:root {
    --left-panel-width: 375px;
    /* --left-panel-width: 380px; */
}
body { background-color: #F3F4F6; }
header { z-index: 5; }
main { z-index: 1; }
footer { z-index: 5; }

.h-100dvh { height: 100dvh; }
.f-10px { font-size: 10px; }
.f-12px { font-size: 12px; }
.m-auto-left { margin-left: auto; }
.nopr { padding-right: 0; }

.warning-nodata { color: #9CA3AF; }
.warning-4 { color: #DC2626; }
.warning-3 { color: #FB923C; }
.warning-2 { color: #EAB308; }
.warning-1 { color: #0EA5E9; }
.warning-0 { color: #10B981; }
.bg-warning-nodata { background-color: #9CA3AF; color: white; }
.bg-warning-4 { background-color: #DC2626; color: white; }
.bg-warning-3 { background-color: #FB923C; color: white; }
.bg-warning-2 { background-color: #EAB308; color: white; }
.bg-warning-1 { background-color: #0EA5E9; color: white; }
.bg-warning-0 { background-color: #10B981; color: white; }

.left-panel {
    position: absolute;
    width: var(--left-panel-width);
    max-width: calc(100% - 24px);
    height: 100%;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    z-index: 5;
    opacity: 1;
    transition: all .5s ease;
    background-color: #F3F4F6;
}
.right-panel {
    padding-left: var(--left-panel-width);
    transition: all .5s ease;
}

.div-search .icon-search {
    position: absolute;
    top: calc(50% - 10px);
    right: 12px;
    font-size: 20px;
}
.div-search input {
    padding-right: 24px !important;
}

[type="checkbox"]+span:not(.lever) { font-size: 12px; padding-right: 10px; }
[type="checkbox"].filled-in:checked+span:not(.lever):after { width: 18px; height: 18px; }
[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after { width: 18px; height: 18px; }
[type="checkbox"].filled-in:checked+span:not(.lever):before { height: 11px; }
[type="checkbox"]+span:not(.lever) { padding-left: 24px; }
[type="checkbox"].filled-in:checked+span:not(.lever):after { background-color: #3B82F6; border: 2px solid #3B82F6; }

hr {
    border: none;
    border-bottom: 1px solid #D9D9D9;
}

.hero-section-map {
    height: 95vh;
    /* height: 100%; */
    min-height: 100%;
    max-height: 100%;
}

.box-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.box-menu-container::-webkit-scrollbar,
.card-legend::-webkit-scrollbar {
  width: 8px;
}

.box-menu-container::-webkit-scrollbar-track,
.card-legend::-webkit-scrollbar-track {
  background-color: #e4e4e4;
  border-radius: 4px;
}

.box-menu-container::-webkit-scrollbar-thumb,
.card-legend::-webkit-scrollbar-thumb {
  background-color: #CDCDCD;
  border-radius: 4px;
}

.left-panel-openclose-container {
    position: absolute;
    top: calc(50% - 24px);
    left: 0;
    z-index: 10;
    background-color: #F3F4F6;
    height: 48px;
    width: 24px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
}
.left-panel-openclose-container i { display: block; margin: auto; }

.box-menu-h3 {
    margin: 10px;
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
}
.box-separator {
    width: 100%;
    height: 10px;
}

.icon-box img,
.icon-box i,
.icon-up-collapsible i,
i.icon-time { display: block; }

.icon-up-collapsible {
    background-color: #F3F4F6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.icon-mainbox-collapsible {
    cursor: pointer;
}

.box-menu-h3 .blue-text { color: #2979C3 !important; }
.box-menu-h3 .yellow-text { color: #9C7A23 !important; }
.box-menu-h3 .green-text { color: #3E704F !important; }

.box-menu-h3 > div {
    opacity: 1;
    transition: all .5s ease;
}


.one-card {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #D9D9D9;
}
.icon-one-card {
    width: 17px;
    height: 20px;
    padding-top: 3px;
    object-fit: contain;
}
.box-data .one-card:first-child {
    border-top: 1px solid #D9D9D9;
}
.box-data .one-card:last-child {
    margin-bottom: 20px;
}
.box-data {
    opacity: 1;
    transition: all .5s ease;
}

.icon-time { font-size: 16px; }
.icon-sumur {
    font-size: 18px;
    display: block;
    color: #D9D9D9;
}
.icon-sumur-on { color: #10B981; }
.icon-sumur-off { color: #DC2626; }

.box-angka {
    width: 60px;
    border-radius: 4px;
    height: 100%;
}
.box-angka > .w-100 {
    line-height: 10px;
}
.box-angka-value {
    font-weight: 600;
}
.w-1of5 { width: calc(100% / 5); }
.garisbawah { width: 100%; height: 4px; }

#map {
    width: 100%;
    height: 100%;
    z-index: 2;
}
.map-info-container {
    position: absolute;
    z-index: 4;
    right: 10px;
    bottom: 10px;
    height: 100%;
    max-height: 100%;
    align-content: end;
    pointer-events: none;
}
.map-info-container > div {
    pointer-events: auto;
}
.card-sensor-offline {
    font-size: 12px;
    width: 245px;
    max-height: 40%;
    overflow-y: auto;
    margin-bottom: 10px;
}
.card-sensor-offline .icon,
.card-legend .icon { display: block; }
.sensor-offline-value {
    width: fit-content;
    border-radius: 12px;
    padding: 0 8px;
    background-color: #EF4444;
    color: white;
}
.offline-sensor-container > .row {
    border-bottom: 1px solid #D9D9D9;
}
.offline-sensor-container > .row:first-child {
    padding-top: 10px;
}

.grey-info {
    background-color: #F3F4F6;
    color: #6B7280;
    padding: 4px;
    border-radius: 4px;
    font-size: 10px;
}

.separator-10px { width: 100%; height: 10px; }

.card-legend {
    font-size: 12px;
    width: 245px;
    max-height: 60%;
    overflow-y: auto;
}
.card-legend > .row {
    transition: all .5s ease;
}
.card-legend [type="checkbox"]+span:not(.lever) {
    height: 14px;
}

.icon-legenda {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.icon-openclose-legenda { cursor: pointer; }

.popup-container {
    width: 220px;
    font-size: 14px;
}
.capsule {
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: auto;
}

.button-triggerpopup {
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    body > div.h-auto-container {
        height: auto;
    }
    .map-content {
        height: calc(100dvh - 56px);
    }

}
