/* logo */
.sidebar-wrapper .sidebar-header img {
    width: 200px;
    height: 54px;
}

/**
 * Dashboard mini boxes for data inflow
 */
.full-height {
    height: 100vh;
}

.flex-center {
    align-items: center;
    display: flex;
    justify-content: center;
}

.position-ref {
    position: relative;
}

.top-right {
    position: absolute;
    right: 10px;
    top: 18px;
}

#dtf_container{
    width: 172px;
    height: 42px;
    overflow: visible;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    font-family: Arial, sans-serif;
    margin: 3px;
    text-align: center;
    display: inline-block;
    border-radius: 4px;
    line-height: 18px;
}

#dtf_label{
    font-size: 16px;
    width: 75px;
    display: inline-block;
}

#dtf_perc{
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
}

#dtf_cnt{
    font-size: 16px;
    display: inline;
}

#dtf_avg{
    font-size: 12px;
    display: inline;
}

.dtf_normal{
    background-color: #E0FFE0;
}

.dtf_medium{
    background-color: #FFCCF0;
}

.dtf_critical{
    background-color: #FF88E0;
    font-weight: bolder;
    border-width: 3px;
}

.tooltip-custom {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

.tooltip-custom .tooltiptext {
    visibility: hidden;
    width: 350px;
    background-color: black;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.dtf_normal:hover .tooltiptext {
    visibility: visible;
}

/**
 * Tables
 */
.table-fixed-head {
    overflow-y: auto;
}
.table-fixed-head thead th {
    position: sticky;
    top: 0; /** because of the tr top border 1px, else flowing text is visible in the background, otherwise should be 0 **/
    z-index: 2;
}

.table-sm.dataTable-table tr td,
.table-sm.dataTable-table tr th,
.table.table-sm tr td,
.table.table-sm tr th {
    padding: 0.2rem;
    font-size: 15px;
}

/* table colors  */
.table.table-color-primary thead {
    --bs-table-bg: var(--bs-primary);
    border-color: #eee;
    color: var(--bs-white);
}
.table.table-color-primary thead tr {
    border-top-color: var(--bs-primary);
}
.table.table-color-primary thead th {
    border-left-color: var(--bs-primary);
    border-top-color: var(--bs-primary);
}

.expired_validation {
    color: #ff2c2c;
}

.almost_expired_validation {
    color: #ff6700;
}

/** Device list **/
.table-alert-high {
    background-color: #fff;
    color: dimgray;
}
.table-alert-medium {
    background-color: #FCE9DD;
}
.table-alert-low {
    background-color: #B3DDF2;
}

/* Device & Gateway */
#chart_div {
    width: 1200px;
    height: 500px;
}

.dt-paging-button.current {
    background-color: #f2f7ff !important;
    border-color: #435ebe !important;
    border-radius: 0.3rem !important;
}

.dt-paging-button:not(.current):hover {
    background: #435ebe !important;
    border-color: #435ebe !important;
    border-radius: 0.3rem !important;
}

.dt-paging-button.disabled:hover {
    cursor: default !important;
    color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dash_data_div {
    color: #f2f7ff;
    border: 1px solid white;
    border-radius: .5rem;
}

.dash_data_normal {
    background-color: #435ebe;
}

.dash_data_medium {
    background-color: #ff6700;
}

.dash_data_critical {
    background-color: #ff2c2c;
}

.dash_data_label {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Scrollbaru track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.3rem;
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #435ebe;
    border-radius: 0.3rem;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 94, 190, 0.8);
}

section {
    height: 80vh;
}

.card,
.card-body {
    height: 100% !important;
}

tr:nth-child(2n) {
    background-color: #f2f2f2 !important;
}