body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f4f6f9;
    color: #334155;
}

/* V4.9.3: tombol Tutup/Batal modal dibuat tegas dan konsisten. */
button[id*="close" i], .js-close, .modal-close, .btn-close {
    background: #334155 !important;
    color: #fff !important;
    border: 1px solid #1e293b !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .20);
}
button[id*="close" i]:hover, .js-close:hover, .modal-close:hover, .btn-close:hover {
    background: #1e293b !important;
}

.topbar {
    background: #0f172a;
    color: #fff;
    min-height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
}

.topbar strong {
    font-size: 20px;
    letter-spacing: .2px;
}

.topbar a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 700;
}

.topbar a:hover {
    color: #fff;
}

.wrap {
    padding: 20px;
}

.page-title {
    margin: 0 0 16px;
    font-size: 24px;
    color: #0f172a;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    height: calc(100vh - 104px);
    min-height: 560px;
}

.map-panel,
.sidebar-panel,
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .07);
}

.map-panel {
    overflow: hidden;
    min-height: 460px;
}

.map-toolbar {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#map {
    height: calc(100% - 75px);
    min-height: 460px;
    border: 0;
    border-radius: 0;
}

.sidebar-panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.dashboard-shell.sidebar-hidden {
    grid-template-columns: 1fr;
}

.dashboard-shell.sidebar-hidden .sidebar-panel {
    display: none;
}

.sidebar-panel.is-hidden {
    display: none !important;
}

.dashboard-shell.sidebar-hidden .map-panel {
    min-height: calc(100vh - 104px);
}

.dashboard-shell.sidebar-hidden #map {
    min-height: calc(100vh - 180px);
}

.sidebar-toggle-btn {
    white-space: nowrap;
}

.sidebar-panel h2 {
    margin: 0;
    color: #334155;
    font-size: 19px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.mini-card-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 13px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .03);
}

.clickable-card {
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, .1);
}

.active-filter {
    border-color: #3b82f6 !important;
    background: #f0f7ff;
}

.mini-card-summary h3 {
    margin: 0;
    font-size: 22px;
    color: #1e293b;
}

.mini-card-summary p {
    margin: 3px 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.bg-total { border-left: 4px solid #475569; }
.bg-nyala { border-left: 4px solid #16a34a; }
.bg-mati { border-left: 4px solid #dc2626; }
.bg-kwh { border-left: 4px solid #d97706; }
.icon-total { background: #f1f5f9; color: #475569; }
.icon-nyala { background: #dcfce7; color: #16a34a; }
.icon-mati { background: #fee2e2; color: #dc2626; }
.icon-kwh { background: #fef3c7; color: #b45309; font-size: 10px; }

.card {
    padding: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover { filter: brightness(.95); }
.btn.secondary { background: #64748b; }
.btn.danger { background: #dc2626; }
.btn.success { background: #16a34a; }
.btn.warning { background: #eab308; color: #fff; }
.btn.dark { background: #0f172a; }
.btn.full { width: 100%; box-sizing: border-box; }
.btn.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 34px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

label {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    display: block;
    margin-bottom: 6px;
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    outline: none;
}

input:focus,
select:focus {
    border-color: #3b82f6;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: auto;
}

.compact-table {
    table-layout: fixed;
}

.jalan-table th:nth-child(1),
.jalan-table td:nth-child(1) {
    width: 240px;
}

.jalan-table th:nth-child(2),
.jalan-table td:nth-child(2) {
    width: auto;
}

.jalan-table th:nth-child(3),
.jalan-table td:nth-child(3) {
    width: 76px;
    text-align: right;
}

.jalan-table th:nth-child(4),
.jalan-table td:nth-child(4) {
    width: 122px;
    text-align: right;
}

.admin-table th {
    text-align: center;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 220px;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    width: auto;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3),
.admin-table th:nth-child(4),
.admin-table td:nth-child(4),
.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 64px;
    text-align: right;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
    width: 86px;
    text-align: right;
}

.tiang-table th {
    text-align: center;
}

.tiang-table th:nth-child(1),
.tiang-table td:nth-child(1) {
    width: 112px;
}

.tiang-table th:nth-child(2),
.tiang-table td:nth-child(2) {
    width: 170px;
}

.tiang-table th:nth-child(3),
.tiang-table td:nth-child(3) {
    width: auto;
}

.tiang-table th:nth-child(4),
.tiang-table td:nth-child(4) {
    width: 72px;
    text-align: center;
}

.tiang-table th:nth-child(5),
.tiang-table td:nth-child(5) {
    width: 150px;
    text-align: center;
}

.tiang-table th:nth-child(6),
.tiang-table td:nth-child(6) {
    width: 140px;
    text-align: center;
}

.tiang-table th:nth-child(7),
.tiang-table td:nth-child(7) {
    width: 104px;
    text-align: center;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.flash {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 700;
}

.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }

.status {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.status.nyala { background: #dcfce7; color: #15803d; }
.status.mati { background: #fee2e2; color: #b91c1c; }
.status.proses { background: #fef3c7; color: #92400e; }

.muted {
    color: #64748b;
    font-size: 13px;
}

.info-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    min-height: 170px;
    overflow-y: auto;
}

.info-panel h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1e293b;
    text-transform: uppercase;
}

.dashboard-control-card {
    color: inherit;
    text-decoration: none;
}

.dashboard-control-card:hover {
    color: inherit;
    transform: translateY(-1px);
}

.pju-condition-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0 2px;
}

.pju-condition-chart {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    border-radius: 50%;
    display:grid;
    place-items:center;
    border: 5px solid #fff;
    box-shadow: 0 9px 24px rgba(15,23,42,.16), inset 0 0 0 1px rgba(15,23,42,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pju-condition-chart:hover { transform: scale(1.025); box-shadow: 0 12px 28px rgba(15,23,42,.2), inset 0 0 0 1px rgba(15,23,42,.08); }
.pju-condition-chart:focus { outline:3px solid rgba(37,99,235,.22); outline-offset:3px; }
.pju-condition-chart-center { width:68px; height:68px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(145deg,#fff,#f1f5f9); box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 3px 10px rgba(15,23,42,.14); color:#0f172a; pointer-events:none; }
.pju-condition-chart-center span { font-size:9px; line-height:1; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:#64748b; }
.pju-condition-chart-center strong { margin-top:4px; font-size:14px; line-height:1; letter-spacing:.2px; }
.pju-condition-legend { min-width: 112px; display: grid; gap: 8px; }
.pju-condition-legend > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 7px; padding:6px 8px; border-radius:8px; background:#fff; border:1px solid #e2e8f0; font-size: 11px; }
.pju-condition-legend strong { color: #0f172a; }
.chart-dot { width: 9px; height: 9px; border-radius: 50%; }
.chart-dot-aktif { background: #16a34a; }
.chart-dot-nonaktif { background: #64748b; }
.chart-dot-rusak { background: #dc2626; }

/* Viewer: mode monitor peta penuh tanpa menu, status rail, kartu, atau sidebar. */
body.viewer-mode { overflow:hidden; background:#0b172a; }
body.viewer-mode > header.topbar,
body.viewer-mode > .system-status-rail,
body.viewer-mode > .mobile-menu-toggle,
body.viewer-mode > .mobile-drawer-backdrop,
body.viewer-mode > .mobile-field-drawer,
body.viewer-mode > .mobile-field-nav { display:none!important; }
body.viewer-mode main.wrap { width:100vw!important; max-width:none!important; height:100vh!important; padding:0!important; margin:0!important; overflow:hidden!important; }
.dashboard-shell--viewer { display:block!important; width:100vw!important; height:100vh!important; min-height:100vh!important; margin:0!important; }
.dashboard-shell--viewer .map-panel { position:relative; width:100%!important; height:100%!important; min-height:100vh!important; border:0!important; border-radius:0!important; box-shadow:none!important; }
.dashboard-shell--viewer #map { width:100%!important; height:100vh!important; min-height:100vh!important; }
.dashboard-shell--viewer .map-toolbar { position:absolute!important; z-index:1000; top:14px; left:14px; right:14px; min-height:52px!important; padding:6px 8px 6px 14px!important; border:1px solid rgba(255,255,255,.72)!important; border-radius:14px!important; background:rgba(255,255,255,.9)!important; backdrop-filter:blur(10px); box-shadow:0 10px 30px rgba(15,23,42,.18)!important; }
.dashboard-shell--viewer .pju-map-title-v34 { min-width:0; }
.dashboard-shell--viewer .pju-jabar-logo-v34 { width:38px!important; height:38px!important; }
.dashboard-shell--viewer .viewer-map-logout { min-height:36px!important; padding:8px 14px!important; border-radius:9px!important; text-decoration:none; }
@media(max-width:600px){.dashboard-shell--viewer .map-toolbar{top:8px;left:8px;right:8px}.dashboard-shell--viewer .pju-map-title-v34>span{font-size:12px!important}.dashboard-shell--viewer .pju-jabar-logo-v34{width:30px!important;height:30px!important}}

.jalan-item {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .18s;
    font-weight: 800;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .03);
}

.jalan-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.jalan-meta {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.pju-card-mini {
    background: #fff;
    border-left: 4px solid #3b82f6;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px;
    margin: 7px 0;
    border-radius: 0 6px 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.btn-kembali {
    background: #64748b;
    color: #fff;
    border: 0;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    margin-bottom: 12px;
}

.actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.actions-compact {
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
}

.actions-compact form {
    margin: 0;
    display: inline-flex;
}

.action-cell {
    width: 122px;
    white-space: nowrap;
}

.admin-action-cell {
    width: 86px;
}

.tiang-action-cell {
    width: 120px;
}

.number-cell {
    width: 76px;
    white-space: nowrap;
    text-align: right;
}

.compact-text,
.jalan-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jalan-name { max-width: none; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.form-section h3 {
    margin: 0 0 10px;
    color: #1e3a5f;
    font-size: 15px;
}

.is-hidden {
    display: none !important;
}

.table-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.admin-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
}

.table-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    padding: 18px;
}

.detail-modal-panel {
    width: min(760px, 100%);
}

.link-button {
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font: inherit;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.link-button:hover {
    text-decoration: underline;
}

.code-link {
    text-decoration: none;
    white-space: nowrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.detail-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    background: #f8fafc;
}

.detail-item span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.detail-item strong {
    color: #0f172a;
    font-size: 14px;
    word-break: break-word;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1e3a5f;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 760px) {
    .table-filter {
        grid-template-columns: 1fr;
    }

    .action-cell {
        width: 116px;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #cbd5e1;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.admin-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
}

.admin-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kontrol-table th:not(:first-child),
.kontrol-table td:not(:first-child) {
    text-align: center;
}

.kontrol-table th:first-child,
.kontrol-table td:first-child {
    text-align: left;
    font-weight: 800;
}

.kontrol-table td:nth-child(2) {
    text-align: left;
}

.table-card {
    margin-top: 16px;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        height: auto;
    }

    .topbar {
        display: block;
        padding: 14px;
    }

    .topbar nav {
        margin-top: 10px;
        line-height: 2;
    }

    .wrap {
        padding: 12px;
    }
}


/* === PJU DASHBOARD MAP FULLSCREEN V2.7 === */
.map-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.map-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.map-fullscreen-icon {
    font-size: 18px;
    line-height: 1;
}

.dashboard-shell:fullscreen,
.dashboard-shell:-webkit-full-screen,
.dashboard-shell.map-fullscreen-fallback {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    grid-template-columns: 1fr !important;
    background: #0f172a;
}

.dashboard-shell:fullscreen .sidebar-panel,
.dashboard-shell:-webkit-full-screen .sidebar-panel,
.dashboard-shell.map-fullscreen-active .sidebar-panel,
.dashboard-shell.map-fullscreen-fallback .sidebar-panel {
    display: none !important;
}

.dashboard-shell:fullscreen .map-panel,
.dashboard-shell:-webkit-full-screen .map-panel,
.dashboard-shell.map-fullscreen-active .map-panel,
.dashboard-shell.map-fullscreen-fallback .map-panel {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.dashboard-shell:fullscreen #map,
.dashboard-shell:-webkit-full-screen #map,
.dashboard-shell.map-fullscreen-active #map,
.dashboard-shell.map-fullscreen-fallback #map {
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    width: 100vw !important;
}

.dashboard-shell:fullscreen .map-toolbar,
.dashboard-shell:-webkit-full-screen .map-toolbar,
.dashboard-shell.map-fullscreen-active .map-toolbar,
.dashboard-shell.map-fullscreen-fallback .map-toolbar {
    min-height: 60px;
    box-sizing: border-box;
}

.dashboard-shell.map-fullscreen-fallback {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
}

body.pju-map-fullscreen-body {
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .map-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .map-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }
    .map-toolbar-actions .btn {
        flex: 1 1 0;
    }
    .map-fullscreen-label {
        display: none;
    }
}


/* === PJU DASHBOARD FULLSCREEN V3.0 OVERRIDE === */
#mapFullscreenBtn .map-fullscreen-label { display:none; }
#mapFullscreenBtn { min-width:40px; width:40px; height:36px; padding:0 !important; }
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn { width:auto !important; }
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn .map-fullscreen-label { display:inline !important; }
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn .map-fullscreen-icon { display:none !important; }
.dashboard-shell.pju-map-v28-full .sidebar-panel { display:none !important; }


/* === PJU DASHBOARD FULLSCREEN V3.2: HEADER ALIGNMENT + TITLE KEEP === */
.map-toolbar {
    min-height: 66px;
    box-sizing: border-box;
    align-items: center !important;
}
.map-toolbar > strong {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    line-height: 1.2;
}
.map-toolbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 8px;
    min-height: 40px;
}
#sidebarToggleBtn,
#mapFullscreenBtn {
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
#sidebarToggleBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#mapFullscreenBtn {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
}
#mapFullscreenBtn .map-fullscreen-icon,
#mapFullscreenBtn .pju-fs-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    line-height: 1;
}

.dashboard-shell.pju-map-v28-full .map-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 6px 12px 6px 16px !important;
}
.dashboard-shell.pju-map-v28-full .map-toolbar > strong {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    min-height: 40px !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
.dashboard-shell.pju-map-v28-full #sidebarToggleBtn {
    display: none !important;
}
.dashboard-shell.pju-map-v28-full .map-toolbar-actions {
    width: auto !important;
    min-height: 40px !important;
    margin-left: auto !important;
}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn {
    width: auto !important;
    min-width: 78px !important;
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
}

@media (max-width: 700px) {
    .map-toolbar {
        align-items: center !important;
    }
    #sidebarToggleBtn,
    #mapFullscreenBtn {
        height: 40px !important;
    }
}


/* === PJU FULLSCREEN V3.3 FINAL OVERRIDE === */
.map-toolbar{display:flex!important;align-items:center!important}
.map-toolbar-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important}
#sidebarToggleBtn,#mapFullscreenBtn{height:40px!important;min-height:40px!important;box-sizing:border-box!important}
#mapFullscreenBtn.pju-fs-btn-v33{width:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important}
#mapFullscreenBtn .pju-fs-expand-v33{display:inline-flex!important;visibility:visible!important;opacity:1!important;width:21px!important;height:21px!important;align-items:center!important;justify-content:center!important;color:#fff!important}
#mapFullscreenBtn .pju-fs-expand-v33 svg{display:block!important;visibility:visible!important;opacity:1!important;width:21px!important;height:21px!important;overflow:visible!important}
#mapFullscreenBtn .map-fullscreen-label{display:none!important}
.dashboard-shell.pju-map-v28-full .map-toolbar>strong{display:block!important;visibility:visible!important;opacity:1!important}
.dashboard-shell.pju-map-v28-full #sidebarToggleBtn{display:none!important}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn.pju-fs-btn-v33{width:auto!important;min-width:78px!important;max-width:none!important;padding:0 14px!important}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn .pju-fs-expand-v33{display:none!important}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn .map-fullscreen-label{display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;font-weight:800!important}


/* === PJU JABAR LOGO V3.4 === */
.pju-map-title-v34{display:inline-flex!important;align-items:center!important;gap:10px!important;margin:0!important;line-height:1.15!important}
.pju-jabar-logo-v34{display:block!important;width:34px!important;height:34px!important;object-fit:contain!important;flex:0 0 34px}
.pju-map-title-v34>span{display:block;white-space:nowrap}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34{display:inline-flex!important;visibility:visible!important;opacity:1!important;gap:12px!important}
.dashboard-shell.pju-map-v28-full .pju-jabar-logo-v34{width:42px!important;height:42px!important;flex-basis:42px}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34>span{display:block!important;visibility:visible!important;opacity:1!important}


/* === PJU HEADER LOGO ALIGN V3.5 === */
.map-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:56px!important}
.map-toolbar>.pju-map-title-v34,.map-toolbar>strong.pju-map-title-v34{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;margin:0!important;padding:0!important;min-width:0!important;line-height:1!important}
.pju-map-title-v34 .pju-jabar-logo-v34{display:block!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;flex:0 0 38px!important;object-fit:contain!important;margin:0!important;padding:0!important;vertical-align:middle!important}
.pju-map-title-v34>span{display:block!important;margin:0!important;padding:0!important;line-height:1.15!important;white-space:nowrap!important;font-weight:800!important}
.map-toolbar-actions{margin-left:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 0 auto!important}
#sidebarToggleBtn,#mapFullscreenBtn{margin:0!important;align-self:center!important}
.dashboard-shell.pju-map-v28-full .map-toolbar{min-height:64px!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34{display:flex!important;flex-direction:row!important;align-items:center!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34 .pju-jabar-logo-v34{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;flex-basis:44px!important}


/* === PJU FULLSCREEN HEADER ALIGN V3.6 === */
.dashboard-shell.pju-map-v28-full .map-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:64px!important;height:64px!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box!important}
.dashboard-shell.pju-map-v28-full .map-toolbar>.pju-map-title-v34,.dashboard-shell.pju-map-v28-full .map-toolbar>strong.pju-map-title-v34{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;align-self:center!important;gap:10px!important;margin:0!important;padding:0!important;height:44px!important;min-height:44px!important;line-height:1!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34 .pju-jabar-logo-v34{display:block!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;flex:0 0 44px!important;margin:0!important;padding:0!important;object-fit:contain!important;align-self:center!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34>span{display:flex!important;align-items:center!important;height:44px!important;margin:0!important;padding:0!important;line-height:44px!important;white-space:nowrap!important}
.dashboard-shell.pju-map-v28-full .map-toolbar-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;align-self:center!important;height:44px!important;min-height:44px!important;margin:0 0 0 auto!important;padding:0!important;gap:8px!important}
.dashboard-shell.pju-map-v28-full #sidebarToggleBtn{display:none!important}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;height:40px!important;min-height:40px!important;margin:0!important;vertical-align:middle!important}

/* === PJU COMPACT HEADER V3.7 === */
.map-toolbar{min-height:46px!important;height:46px!important;padding-top:4px!important;padding-bottom:4px!important;box-sizing:border-box!important}
.pju-map-title-v34 .pju-jabar-logo-v34{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;flex-basis:30px!important}
.pju-map-title-v34>span{line-height:30px!important}
#sidebarToggleBtn,#mapFullscreenBtn{height:36px!important;min-height:36px!important}
.dashboard-shell.pju-map-v28-full .map-toolbar{min-height:50px!important;height:50px!important;padding-top:3px!important;padding-bottom:3px!important}
.dashboard-shell.pju-map-v28-full .map-toolbar>.pju-map-title-v34,.dashboard-shell.pju-map-v28-full .map-toolbar>strong.pju-map-title-v34{height:36px!important;min-height:36px!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34 .pju-jabar-logo-v34{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex-basis:34px!important}
.dashboard-shell.pju-map-v28-full .pju-map-title-v34>span{height:36px!important;line-height:36px!important}
.dashboard-shell.pju-map-v28-full .map-toolbar-actions{height:36px!important;min-height:36px!important}
.dashboard-shell.pju-map-v28-full #mapFullscreenBtn{height:34px!important;min-height:34px!important}

/* === PJU V2.6.6 NAV SUBMENU + SETTINGS DATABASE === */
.main-nav{display:flex;align-items:center;gap:2px;flex-wrap:wrap;justify-content:flex-end}
.main-nav>a,.nav-dropbtn{color:#e2e8f0;text-decoration:none;margin-left:10px;font-size:14px;font-weight:700;white-space:nowrap}
.nav-dropdown{position:relative;display:inline-flex;align-items:center}
.nav-dropbtn{border:0;background:transparent;padding:22px 2px;cursor:pointer;font-family:inherit}
.nav-dropbtn:hover,.main-nav>a:hover{color:#fff}
.nav-dropdown-menu{display:none;position:absolute;top:52px;left:8px;min-width:205px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 12px 30px rgba(15,23,42,.2);padding:7px;z-index:10000}
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{display:block}
.nav-dropdown-menu a{display:block;color:#334155!important;margin:0!important;padding:10px 12px;border-radius:6px;font-size:13px;font-weight:700;text-decoration:none}
.nav-dropdown-menu a:hover{background:#f1f5f9;color:#0f172a!important}
.nav-dropdown-right .nav-dropdown-menu{left:auto;right:0}
.nav-separator{height:1px;background:#e2e8f0;margin:5px 4px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.settings-card{margin:0!important;scroll-margin-top:90px}
.settings-card.database-tools{grid-column:1/-1}
.db-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.db-actions form{display:flex;gap:10px;align-items:center;flex:1;min-width:340px}
.db-actions form input[type=file]{max-width:440px}
.db-warning{margin-top:14px;color:#b45309}
@media(max-width:1000px){.topbar{align-items:flex-start;padding-top:12px;padding-bottom:12px}.main-nav{justify-content:flex-start}.nav-dropbtn{padding:8px 2px}.nav-dropdown-menu{top:34px}.settings-grid{grid-template-columns:1fr}.settings-card.database-tools{grid-column:auto}}
@media(max-width:700px){.topbar{display:block}.topbar strong{display:block;margin-bottom:10px}.main-nav{display:flex}.main-nav>a,.nav-dropbtn{margin-left:0;margin-right:10px}.db-actions form{min-width:100%;display:block}.db-actions form input[type=file]{margin-bottom:10px;max-width:none}}

/* === FASTAMA PJU V2.6.7 - HORIZONTAL TOP MENU + VERTICAL DROPDOWN === */
/* Top menu always stays on one horizontal row. */
.topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    min-height:60px;
    padding:0 18px!important;
    overflow:visible!important;
}
.topbar>strong{
    display:block!important;
    flex:0 0 auto;
    margin:0 22px 0 0!important;
    white-space:nowrap;
}
.topbar nav.main-nav{
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex:1 1 auto;
    flex-direction:row!important;
    align-items:stretch!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:0!important;
    line-height:normal!important;
    overflow:visible!important;
    white-space:nowrap;
}
.main-nav>a,
.main-nav>.nav-dropdown{
    flex:0 0 auto;
}
.main-nav>a,
.nav-dropbtn{
    display:flex!important;
    align-items:center!important;
    min-height:60px;
    box-sizing:border-box;
    margin:0!important;
    padding:0 12px!important;
    border-radius:0;
    white-space:nowrap!important;
}
.nav-dropdown{
    position:relative!important;
    display:flex!important;
    align-items:stretch!important;
}
.nav-dropbtn{
    border:0!important;
    background:transparent!important;
    color:#e2e8f0!important;
    cursor:pointer;
    font-family:inherit;
    font-size:14px;
    font-weight:700;
}
.main-nav>a:hover,
.nav-dropbtn:hover,
.nav-dropdown:hover>.nav-dropbtn,
.nav-dropdown:focus-within>.nav-dropbtn{
    color:#fff!important;
    background:rgba(255,255,255,.07)!important;
}
/* Submenu opens vertically downward, never beside the main menu. */
.nav-dropdown-menu{
    display:none!important;
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:auto!important;
    min-width:210px!important;
    width:max-content;
    max-width:320px;
    margin:0!important;
    padding:7px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    background:#fff!important;
    border:1px solid #dbe3ee!important;
    border-radius:0 0 8px 8px!important;
    box-shadow:0 12px 28px rgba(15,23,42,.22)!important;
    z-index:99999!important;
    white-space:normal!important;
}
.nav-dropdown:hover>.nav-dropdown-menu,
.nav-dropdown:focus-within>.nav-dropdown-menu{
    display:flex!important;
}
.nav-dropdown-menu>a{
    display:block!important;
    width:100%!important;
    box-sizing:border-box;
    min-height:0!important;
    margin:0!important;
    padding:10px 12px!important;
    color:#334155!important;
    background:#fff!important;
    line-height:1.35!important;
    white-space:nowrap!important;
}
.nav-dropdown-menu>a:hover{
    background:#f1f5f9!important;
    color:#0f172a!important;
}
.nav-dropdown-right>.nav-dropdown-menu{
    left:auto!important;
    right:0!important;
}
.nav-separator{
    width:100%;
    height:1px;
    flex:0 0 1px;
}

/* Keep the same horizontal menu behaviour on laptop resolutions too. */
@media (max-width:1000px){
    .topbar{
        display:flex!important;
        align-items:center!important;
        padding:0 10px!important;
    }
    .topbar>strong{margin-right:8px!important;font-size:17px;}
    .topbar nav.main-nav{
        display:flex!important;
        flex-direction:row!important;
        flex-wrap:nowrap!important;
        justify-content:flex-end!important;
        margin:0!important;
        line-height:normal!important;
    }
    .main-nav>a,.nav-dropbtn{padding:0 7px!important;font-size:13px;min-height:56px;}
    .nav-dropdown-menu{top:100%!important;}
}
@media (max-width:700px){
    .topbar{
        display:flex!important;
        flex-wrap:nowrap!important;
        min-width:760px;
    }
    .topbar>strong{display:block!important;margin:0 8px 0 0!important;}
    .main-nav>a,.nav-dropbtn{margin:0!important;padding:0 6px!important;}
}

/* FASTAMA PJU V2.6.10 - Settings CRUD */
.settings-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.settings-toolbar h2{margin-top:0;margin-bottom:4px}.checkbox-line{display:flex;align-items:center;gap:8px;margin:12px 0}.checkbox-line input{width:auto}.modal-panel-wide{width:min(920px,calc(100vw - 32px));max-width:920px}.modal-panel textarea{width:100%;box-sizing:border-box}.settings-card table td,.settings-card table th{vertical-align:middle}@media(max-width:800px){.settings-toolbar{flex-direction:column}.settings-toolbar .btn{width:100%}.modal-panel-wide{width:calc(100vw - 20px)}}

/* FASTAMA PJU V2.6.12 - Filter bar Data Tiang & Kontrol */
.filter-card{padding:12px 14px;}
.pju-filter-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:nowrap;width:100%;}
.pju-filter-bar .filter-field{min-width:150px;display:flex;flex-direction:column;gap:5px;}
.pju-filter-bar .filter-field.filter-search{min-width:220px;flex:1 1 300px;}
.pju-filter-bar label{font-size:12px;font-weight:700;color:#475569;}
.pju-filter-bar input,.pju-filter-bar select{height:38px;margin:0;min-width:0;}
.pju-filter-bar .filter-actions{margin-left:auto;display:flex;gap:8px;align-items:center;white-space:nowrap;}
.filter-memory-note{font-size:11px;color:#64748b;margin-top:7px;}
@media (max-width:900px){.pju-filter-bar{flex-wrap:wrap}.pju-filter-bar .filter-field,.pju-filter-bar .filter-field.filter-search{min-width:180px;flex:1 1 220px}.pju-filter-bar .filter-actions{margin-left:0}}


/* === FASTAMA PJU V2.6.26 - MOBILE FIELD TECHNICIAN === */
.mobile-field-nav,.mobile-field-hint{display:none}
.mobile-location-label{display:none}
@media (max-width:768px){
  html,body{max-width:100%;overflow-x:hidden}
  body{padding-bottom:72px;background:#eef2f7}
  header.topbar{display:flex!important;min-width:0!important;width:100%!important;height:54px!important;min-height:54px!important;padding:0 14px!important;justify-content:center!important;position:sticky!important;top:0!important;z-index:10020!important}
  header.topbar>strong{margin:0!important;font-size:17px!important;line-height:54px!important}
  header.topbar>nav.main-nav{display:none!important}
  .wrap{padding:12px!important}
  .field-mobile-page h1,.field-mobile-page .page-head h1{font-size:21px!important;margin:4px 0 4px!important;color:#0f172a}
  .field-mobile-page .filter-result-summary{font-size:12px!important;margin:0 0 3px!important;color:#475569}
  .mobile-field-hint{display:block;margin:0 0 12px;font-size:11px;line-height:1.4;color:#64748b}
  .mobile-field-nav{display:flex;position:fixed;left:0;right:0;bottom:0;height:64px;padding:4px 6px calc(4px + env(safe-area-inset-bottom));box-sizing:content-box;background:#0f172a;border-top:1px solid rgba(255,255,255,.08);z-index:10050;align-items:stretch;justify-content:space-around;box-shadow:0 -8px 24px rgba(15,23,42,.18)}
  .mobile-field-nav__item{flex:1 1 0;min-width:0;text-decoration:none;color:#e2e8f0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:800;line-height:1.1;border-radius:8px}
  .mobile-field-nav__item:active{background:rgba(255,255,255,.1)}
  .mobile-field-nav__icon{font-size:21px;line-height:1}

  .field-mobile-page .card{border-radius:12px!important;padding:12px!important;margin-top:10px!important;box-shadow:0 2px 8px rgba(15,23,42,.06)}
  .field-mobile-page--tiang>.card:first-of-type{padding:10px!important}
  #openTiangModal{width:100%;min-height:46px;font-size:14px}

  .pju-filter-bar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;align-items:end!important}
  .pju-filter-bar .filter-field,.pju-filter-bar .filter-field.filter-search{min-width:0!important;width:auto!important;flex:none!important}
  .pju-filter-bar .filter-search{grid-column:1/-1}
  .pju-filter-bar input,.pju-filter-bar select{height:44px!important;font-size:14px!important}
  .pju-filter-bar .filter-actions{grid-column:1/-1;margin:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;width:100%!important}
  .pju-filter-bar .filter-actions .btn{width:100%;min-height:44px}
  .filter-memory-note{font-size:10px!important;margin-top:8px!important}

  .field-mobile-page .table-card,.field-mobile-page--kontrol>.card:last-of-type{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .field-mobile-page table,.field-mobile-page table tbody,.field-mobile-page table tr,.field-mobile-page table td{display:block!important;width:100%!important;box-sizing:border-box!important}
  .field-mobile-page table{background:transparent!important;border:0!important}
  .field-mobile-page table thead{display:none!important}
  .field-mobile-page table tbody{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .field-mobile-page table tbody tr{background:#fff!important;border:1px solid #dbe3ee!important;border-radius:12px!important;padding:8px 12px!important;box-shadow:0 2px 7px rgba(15,23,42,.06)!important;overflow:hidden!important}
  .field-mobile-page table tbody tr[style*="display: none"]{display:none!important}
  .field-mobile-page table td{border:0!important;border-bottom:1px dashed #e2e8f0!important;padding:8px 0!important;min-height:34px!important;text-align:right!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;white-space:normal!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important}
  .field-mobile-page table td:last-child{border-bottom:0!important}
  .field-mobile-page table td::before{content:attr(data-label);font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em;text-align:left;flex:0 0 88px}
  .field-mobile-page table td[data-label="Kode PJU"]{font-size:16px!important;font-weight:900!important;color:#0f172a!important}
  .field-mobile-page table td[data-label="Kode PJU"]::before{color:#2563eb}
  .field-mobile-page .code-link{font-size:16px!important;font-weight:900!important;text-align:right!important}
  .field-mobile-page .status{font-size:12px!important;padding:5px 9px!important}

  .field-mobile-page--tiang .tiang-action-cell{align-items:center!important}
  .field-mobile-page--tiang .tiang-action-cell .actions{margin-left:auto!important;display:flex!important;gap:7px!important;flex-wrap:nowrap!important}
  .field-mobile-page--tiang .tiang-action-cell form{margin:0!important}
  .field-mobile-page--tiang .icon-btn{width:40px!important;height:40px!important;flex:0 0 40px!important;font-size:17px!important;border-radius:9px!important}

  .field-mobile-page--kontrol .js-kontrol-power-wrap .btn{min-width:132px;min-height:42px;font-size:14px;border-radius:9px}
  .field-mobile-page--kontrol .js-kontrol-power-wrap form{margin:0 0 0 auto!important}
  .field-mobile-page--kontrol .js-kontrol-power-wrap form .btn{width:100%}
  .field-mobile-page--kontrol td[data-label="Lokasi"]{align-items:flex-start!important;line-height:1.35!important}

  .modal-backdrop{padding:0!important;align-items:stretch!important}
  .modal-panel,.modal-panel-wide,.detail-modal-panel{width:100vw!important;max-width:none!important;min-height:100dvh!important;height:100dvh!important;margin:0!important;border-radius:0!important;box-sizing:border-box!important;overflow-y:auto!important;padding:14px!important}
  .modal-header{position:sticky!important;top:-14px!important;z-index:3!important;background:#fff!important;margin:-14px -14px 12px!important;padding:12px 14px!important;border-bottom:1px solid #e2e8f0!important}
  .modal-header h2{font-size:18px!important;margin:0!important}
  .modal-close{width:40px!important;height:40px!important;font-size:28px!important}
  #tiangForm .form-row{grid-template-columns:1fr!important;gap:10px!important;margin-bottom:10px!important}
  #tiangForm input,#tiangForm select{min-height:46px!important;font-size:16px!important}
  #tiangForm .form-section{padding:10px!important}
  #tiangForm .form-actions{position:sticky!important;bottom:-14px!important;background:#fff!important;margin:14px -14px -14px!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;border-top:1px solid #e2e8f0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;z-index:3!important}
  #tiangForm .form-actions #tiangSubmit{grid-column:1/-1;min-height:48px!important}
  #usePhoneLocation,#tiangModalCancel{min-height:44px!important}
  .mobile-location-label{display:inline!important}
  .detail-grid{grid-template-columns:1fr!important;gap:8px!important}
  .detail-item{padding:10px!important}
}


.tiang-form-scroll{display:contents}
/* === FASTAMA PJU V2.6.27 - MOBILE LEFT DRAWER + FIELD FORM OVERLAY === */
.mobile-menu-toggle,.mobile-field-drawer,.mobile-drawer-backdrop{display:none}
@media (max-width:768px){
  body{padding-bottom:0!important}
  body.mobile-drawer-open{overflow:hidden!important}
  header.topbar{justify-content:center!important;padding:0 58px!important;position:sticky!important}
  header.topbar>strong{max-width:calc(100vw - 120px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .mobile-field-nav{display:none!important}
  .mobile-menu-toggle{display:flex!important;position:fixed;left:12px;top:8px;width:40px;height:38px;padding:8px;border:0;border-radius:9px;background:#1e293b;z-index:10080;align-items:stretch;justify-content:space-between;flex-direction:column;box-shadow:0 2px 7px rgba(15,23,42,.24)}
  .mobile-menu-toggle span{display:block;width:100%;height:3px;border-radius:999px;background:#fff}
  .mobile-menu-toggle:active{transform:scale(.97)}
  .mobile-drawer-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.52);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease;z-index:10088}
  .mobile-drawer-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}
  .mobile-field-drawer{display:flex;position:fixed;left:0;top:0;bottom:0;width:min(84vw,318px);background:#0f172a;color:#fff;z-index:10090;transform:translateX(-102%);transition:transform .2s ease;box-shadow:14px 0 34px rgba(15,23,42,.32);flex-direction:column;overflow:hidden}
  .mobile-field-drawer.is-open{transform:translateX(0)}
  .mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 12px 0 16px;border-bottom:1px solid rgba(255,255,255,.1);flex:0 0 auto}
  .mobile-drawer-head strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-drawer-close{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:29px;line-height:1;cursor:pointer}
  .mobile-drawer-nav{padding:10px 10px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mobile-drawer-nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:0 12px;margin:2px 0;border-radius:9px;text-decoration:none;color:#e2e8f0;font-size:14px;font-weight:700}
  .mobile-drawer-nav a:active,.mobile-drawer-nav a:hover{background:#1e293b;color:#fff}
  .mobile-drawer-section-title{margin:13px 10px 5px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}
  .mobile-drawer-section-title--last{border-top:1px solid rgba(255,255,255,.08);padding-top:13px;margin-top:15px}

  /* Tiang add/edit stays as a real overlay and never falls behind page controls. */
  #tiangModal.modal-backdrop{display:flex!important;position:fixed!important;inset:0!important;z-index:10120!important;background:rgba(15,23,42,.62)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;align-items:flex-end!important;padding:0!important}
  #tiangModal.modal-backdrop.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  #tiangModal .modal-panel{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:94dvh!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:16px 16px 0 0!important;background:#fff!important;overflow:hidden!important;box-shadow:0 -12px 36px rgba(15,23,42,.28)!important}
  #tiangModal .modal-header{position:relative!important;top:auto!important;flex:0 0 auto!important;margin:0!important;padding:11px 14px!important;min-height:52px!important;box-sizing:border-box!important;z-index:5!important}
  #tiangModal #tiangForm{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;padding:0!important;box-sizing:border-box!important}
  #tiangModal #tiangForm .tiang-form-scroll{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:12px!important;box-sizing:border-box!important}
  #tiangModal #tiangForm .form-row{grid-template-columns:1fr!important;gap:9px!important}
  #tiangModal #tiangForm .form-section{margin:10px 0!important}

  /* Action dock is outside the scroll area so buttons are always visible. */
  #tiangModal #tiangForm .form-actions.tiang-mobile-actions{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;flex:0 0 auto!important;margin:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #dbe3ee!important;box-shadow:0 -8px 24px rgba(15,23,42,.12)!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;z-index:8!important}
  #tiangModal #tiangForm .tiang-location-btn{grid-column:1/-1!important;width:100%!important;min-height:50px!important;background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;font-size:15px!important;font-weight:800!important;border-radius:10px!important}
  #tiangModal #tiangForm .tiang-location-btn:active{background:#1d4ed8!important;border-color:#1d4ed8!important}
  #tiangModal #tiangForm #tiangSubmit{grid-column:auto!important;width:100%!important;min-height:48px!important;font-size:14px!important}
  #tiangModal #tiangForm #tiangModalCancel{width:100%!important;min-height:48px!important;font-size:14px!important}
}


/* === FASTAMA PJU V2.6.28 - MOBILE HEADER FIT === */
@media (max-width:768px){
  /* Desktop/right header controls are hidden on mobile; drawer burger is the only navigation control. */
  header.topbar>nav.main-nav{display:none!important;visibility:hidden!important}
  header.topbar{
    justify-content:flex-start!important;
    padding:0 12px 0 66px!important;
    overflow:hidden!important;
  }
  header.topbar>strong{
    display:block!important;
    width:100%!important;
    max-width:calc(100vw - 78px)!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:16px!important;
    line-height:54px!important;
  }
  .mobile-menu-toggle{left:12px!important}
}


/* === FASTAMA PJU V2.6.29 - MOBILE FIT PAGE + FREEZE NAV === */
@media (max-width:768px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body{padding-bottom:72px!important}
  main.wrap{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:10px!important;overflow-x:hidden!important}
  .field-mobile-page,.field-mobile-page *{box-sizing:border-box!important}
  .field-mobile-page{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .field-mobile-page .card,.field-mobile-page .table-card,.field-mobile-page .filter-card{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}

  /* Data Tiang: freeze/sticky working area under the mobile header while page scrolls. */
  .field-mobile-page--tiang .filter-card{
    position:sticky!important;
    top:54px!important;
    z-index:40!important;
    background:#fff!important;
    border:1px solid #dbe3ee!important;
    box-shadow:0 4px 14px rgba(15,23,42,.08)!important;
  }
  .field-mobile-page--tiang .table-card{overflow:visible!important}
  .field-mobile-page--tiang table,
  .field-mobile-page--tiang table tbody,
  .field-mobile-page--tiang table tr,
  .field-mobile-page--tiang table td{
    max-width:100%!important;
    min-width:0!important;
  }
  .field-mobile-page--tiang table tbody tr{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }
  .field-mobile-page--tiang table td{
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .field-mobile-page--tiang table td::before{flex:0 0 82px!important}
  .field-mobile-page--tiang .actions{max-width:calc(100% - 90px)!important;overflow-x:auto!important;scrollbar-width:none}
  .field-mobile-page--tiang .actions::-webkit-scrollbar{display:none}

  /* Fixed bottom technician navigation. */
  .mobile-field-nav{
    display:flex!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:10100!important;
    height:62px!important;
    padding:4px 6px calc(4px + env(safe-area-inset-bottom))!important;
    background:#0f172a!important;
    border-top:1px solid rgba(255,255,255,.1)!important;
    box-shadow:0 -8px 22px rgba(15,23,42,.2)!important;
    align-items:stretch!important;
    justify-content:space-around!important;
    box-sizing:content-box!important;
  }
  .mobile-field-nav__item{
    flex:1 1 0!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    padding:3px 2px!important;
    border-radius:8px!important;
    color:#e2e8f0!important;
    text-decoration:none!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .mobile-field-nav__item:active{background:#1e293b!important}
  .mobile-field-nav__icon{font-size:20px!important;line-height:1!important}

  /* Keep overlays above frozen nav. */
  #tiangModal.modal-backdrop,.modal-backdrop{z-index:10200!important}
  .mobile-field-drawer{z-index:10300!important}
  .mobile-drawer-backdrop{z-index:10290!important}
  .mobile-menu-toggle{z-index:10310!important}
}


/* === FASTAMA PJU V2.6.30 - ADMIN ROAD TO CONTROL SCOPE === */
.kontrol-jalan-scope{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:6px 0 10px;
  padding:8px 10px;
  border:1px solid #bfdbfe;
  border-radius:9px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:13px;
}
.kontrol-jalan-scope .btn-small{padding:6px 10px;min-height:32px;margin-left:auto}
@media(max-width:768px){
  .kontrol-jalan-scope{width:100%;box-sizing:border-box;gap:7px}
  .kontrol-jalan-scope .btn-small{width:100%;margin-left:0;text-align:center}
}


/* === FASTAMA PJU V2.6.31 PROFILE SYSTEM + INCIDENT REPORT === */
.profile-system-intro{margin-top:-6px;margin-bottom:14px}.profile-control-card{margin-top:18px}.schedule-note{margin-top:12px;padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid #dbe3ee;color:#475569;font-size:12px}.days-grid{display:grid;grid-template-columns:repeat(7,minmax(70px,1fr));gap:7px;margin:7px 0 14px}.days-grid .checkbox-line{margin:0;padding:8px;border:1px solid #dbe3ee;border-radius:8px;background:#f8fafc}.report-pju-table th{white-space:nowrap}.incident-status{display:inline-block;padding:5px 8px;border-radius:999px;font-weight:800;font-size:11px}.incident-gagal-menyala{background:#fee2e2;color:#991b1b}.incident-gagal-mati{background:#ffedd5;color:#9a3412}.incident-modul-off{background:#e2e8f0;color:#334155}.incident-open{display:inline-block;margin-left:5px;padding:3px 6px;border-radius:999px;background:#dc2626;color:white;font-size:9px;font-weight:900}.report-duration{font-variant-numeric:tabular-nums;font-weight:800}.btn-small{font-size:12px!important}
@media(max-width:768px){.days-grid{grid-template-columns:repeat(4,1fr)}.profile-control-card .settings-toolbar{align-items:stretch!important}.profile-control-card .settings-toolbar>.actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr!important}.profile-control-card .settings-toolbar>.actions form,.profile-control-card .settings-toolbar>.actions .btn{width:100%}.report-pju-card{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.report-pju-table,.report-pju-table tbody,.report-pju-table tr,.report-pju-table td{display:block!important;width:100%!important;box-sizing:border-box!important}.report-pju-table thead{display:none!important}.report-pju-table tbody{display:grid!important;gap:10px!important}.report-pju-table tr{background:#fff;border:1px solid #dbe3ee;border-radius:12px;padding:8px 12px;box-shadow:0 2px 7px rgba(15,23,42,.06)}.report-pju-table td{border:0!important;border-bottom:1px dashed #e2e8f0!important;padding:8px 0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;text-align:right!important}.report-pju-table td:last-child{border-bottom:0!important}.report-pju-table td:before{content:attr(data-label);font-size:10px;font-weight:900;color:#64748b;text-align:left;flex:0 0 80px}}


/* ========================================================================
   FASTAMA PJU V2.6.36 - NOC UI/UX REFACTOR + MQTT READY
   Visual-only layer. Does not alter V2.6.35 command / ACK logic.
   ======================================================================== */
:root{
    --pju-bg:#eef3f8;
    --pju-surface:#ffffff;
    --pju-surface-soft:#f8fafc;
    --pju-line:#dbe4ee;
    --pju-text:#0f172a;
    --pju-muted:#64748b;
    --pju-navy:#0b172a;
    --pju-blue:#2563eb;
    --pju-green:#16a34a;
    --pju-red:#dc2626;
    --pju-amber:#d97706;
    --pju-radius:12px;
    --pju-shadow:0 10px 30px rgba(15,23,42,.07);
}
body{
    background:linear-gradient(180deg,#f7f9fc 0,#eef3f8 220px,#eef3f8 100%);
    color:var(--pju-text);
}
header.topbar{
    height:58px!important;
    min-height:58px!important;
    padding:0 22px!important;
    background:linear-gradient(90deg,#081425,#0f2340)!important;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 24px rgba(2,6,23,.16)!important;
}
.fastama-brand{display:flex;flex-direction:column;justify-content:center;min-width:210px;line-height:1.05}
.fastama-brand strong{font-size:18px!important;letter-spacing:.3px;color:#fff}
.fastama-brand span{margin-top:4px;font-size:9px;font-weight:800;letter-spacing:1.7px;color:#93c5fd}
header.topbar>nav.main-nav>a,header.topbar .nav-dropbtn{
    height:58px!important;min-height:58px!important;padding:0 12px!important;
    color:#cbd5e1!important;font-size:13px!important;border-bottom:2px solid transparent!important;
    transition:background .15s,color .15s,border-color .15s;
}
header.topbar>nav.main-nav>a:hover,header.topbar .nav-dropbtn:hover,
header.topbar .nav-dropdown:hover>.nav-dropbtn{
    color:#fff!important;background:rgba(255,255,255,.055)!important;border-bottom-color:#60a5fa!important;
}
header.topbar .nav-dropdown-menu{top:58px!important;border-radius:0 0 12px 12px!important;border-color:#dbe4ee!important;padding:7px!important}
header.topbar .nav-dropdown-menu>a{border-radius:8px!important;font-size:13px!important}

.system-status-rail{
    height:36px;box-sizing:border-box;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;
    background:#fff;border-bottom:1px solid var(--pju-line);box-shadow:0 2px 8px rgba(15,23,42,.03);
    position:relative;z-index:800;
}
.system-status-left{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}
.system-status-right{font-size:10px;font-weight:900;letter-spacing:.7px;color:#94a3b8;white-space:nowrap}
.system-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.35px;white-space:nowrap;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}
.system-chip b{font-size:9px;color:#334155}
.system-chip i{width:7px;height:7px;border-radius:50%;display:inline-block;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.12)}
.system-chip--online{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.system-chip--online b{color:#15803d}.system-chip--online i{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}
.system-chip--ready{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.system-chip--ready b{color:#c2410c}.system-chip--ready i{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.13)}

.wrap{padding:16px 20px 20px!important;max-width:1920px;margin:0 auto;box-sizing:border-box}
.page-title{font-size:21px!important;font-weight:850!important;letter-spacing:-.2px;margin:2px 0 14px!important}
.card,.map-panel,.sidebar-panel{border:1px solid var(--pju-line)!important;border-radius:var(--pju-radius)!important;box-shadow:var(--pju-shadow)!important}
.card{padding:16px!important}

.dashboard-shell{height:calc(100vh - 130px);gap:16px;grid-template-columns:minmax(0,2.15fr) minmax(300px,.85fr)}
.map-panel{background:#fff;overflow:hidden}
.map-toolbar{min-height:56px!important;padding:8px 13px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;border-bottom:1px solid var(--pju-line)!important}
.pju-map-title-v34 > span{font-size:16px!important;color:#0f172a!important;letter-spacing:-.1px}
.sidebar-panel{padding:14px!important;gap:11px!important;background:rgba(255,255,255,.96)!important}
.sidebar-panel h2{font-size:15px!important;padding-bottom:9px!important;border-bottom:1px solid var(--pju-line)!important;color:#0f172a!important}
.sidebar-panel label{font-size:11px!important;text-transform:uppercase;letter-spacing:.45px;color:#64748b!important}
.sidebar-panel select{border:1px solid #cbd5e1!important;border-radius:9px!important;padding:9px 10px!important;background:#fff!important}
.mini-card-summary{padding:11px 13px!important;border-radius:10px!important;box-shadow:none!important;background:#fff!important}
.mini-card-summary h3{font-size:24px!important;font-weight:900!important;letter-spacing:-.5px}
.mini-card-summary p{font-size:9.5px!important;letter-spacing:.45px!important}
.card-icon{width:38px!important;height:38px!important;font-size:11px!important}
.clickable-card:hover{transform:translateY(-1px)!important;box-shadow:0 6px 16px rgba(15,23,42,.08)!important}
.info-panel{border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:12px}
.info-panel h3{margin:0 0 6px;font-size:13px;color:#0f172a}.info-panel p{margin:0;font-size:11px;line-height:1.5}

.btn{border-radius:8px!important;padding:9px 13px!important;font-size:12px!important;box-shadow:0 1px 2px rgba(15,23,42,.08);transition:transform .12s,filter .12s,box-shadow .12s}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(15,23,42,.12)}
.btn:active{transform:translateY(0)}
input,select,textarea{border:1px solid #cbd5e1!important;border-radius:8px!important;min-height:38px;background:#fff!important}
input:focus,select:focus,textarea:focus{border-color:#60a5fa!important;box-shadow:0 0 0 3px rgba(59,130,246,.10)!important}

table{border-radius:10px;overflow:hidden;border:1px solid #e2e8f0}
thead th{background:#f1f5f9!important;color:#334155!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #dbe4ee!important}
tbody td{border-bottom:1px solid #eef2f7!important;font-size:12px!important}
tbody tr:hover{background:#f8fbff!important}

.flash{border-radius:10px!important;box-shadow:0 5px 15px rgba(15,23,42,.06)}

@media(max-width:980px){
    header.topbar{height:54px!important;min-height:54px!important;padding:0 12px!important}
    .fastama-brand{min-width:0}.fastama-brand strong{font-size:15px!important}.fastama-brand span{font-size:8px}
    header.topbar>nav.main-nav{display:none!important}
    .system-status-rail{height:34px;padding:0 10px;overflow:hidden}.system-status-right{display:none}.system-chip--neutral{display:none}
    .wrap{padding:12px 10px 82px!important}
    .dashboard-shell{height:auto!important;min-height:0!important;grid-template-columns:1fr!important;gap:12px!important}
    .map-panel{min-height:520px!important}.sidebar-panel{max-height:none!important}
}
@media(max-width:560px){
    .system-chip{font-size:8px;padding:0 6px}.system-chip b{font-size:8px}
    .system-chip--ready b{font-size:0}.system-chip--ready b:after{content:'READY';font-size:8px}
    .map-toolbar{min-height:50px!important;padding:6px 8px!important}.pju-jabar-logo-v34{width:30px!important;height:30px!important;min-width:30px!important}.pju-map-title-v34 > span{font-size:13px!important}
    #sidebarToggleBtn{font-size:0!important;width:38px!important;min-width:38px!important;padding:0!important}#sidebarToggleBtn:after{content:'☰';font-size:17px!important}
}


/* ========================================================================
   FASTAMA PJU V2.6.37 - TABLE ACTION FIT FIX
   UI-only patch: Admin, Nama Jalan, Data Tiang.
   ======================================================================== */
/* Restore compact icon buttons after the V2.6.36 global .btn sizing layer. */
.compact-table .actions-compact .btn.icon-btn,
.compact-table .action-cell .btn.icon-btn{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    flex:0 0 28px!important;
    padding:0!important;
    border-radius:6px!important;
    font-size:12px!important;
    line-height:1!important;
    box-shadow:none!important;
}
.compact-table .actions-compact{gap:4px!important;align-items:center!important;flex-wrap:nowrap!important}
.compact-table .actions-compact form{margin:0!important;display:inline-flex!important}
.compact-table tbody td{padding-top:7px!important;padding-bottom:7px!important;height:42px;box-sizing:border-box}

/* Admin: keep Aksi narrow and rows fixed/compact. */
.admin-table th:nth-child(6),
.admin-table td:nth-child(6){width:70px!important;text-align:center!important}
.admin-table .admin-action-cell .actions-compact{justify-content:center!important}
.admin-table th:nth-child(3),.admin-table td:nth-child(3),
.admin-table th:nth-child(4),.admin-table td:nth-child(4),
.admin-table th:nth-child(5),.admin-table td:nth-child(5){text-align:center!important}

/* Nama Jalan: no map/marker action; fit page and center Total Tiang title/value. */
.jalan-table{width:100%!important;table-layout:fixed!important}
.jalan-table th:nth-child(1),.jalan-table td:nth-child(1){width:26%!important}
.jalan-table th:nth-child(2),.jalan-table td:nth-child(2){width:auto!important}
.jalan-table th:nth-child(3),.jalan-table td:nth-child(3){width:90px!important;text-align:center!important}
.jalan-table th:nth-child(4),.jalan-table td:nth-child(4){width:72px!important;text-align:center!important}
.jalan-table .action-cell .actions-compact{justify-content:center!important}
.jalan-table .compact-text,.jalan-table .jalan-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Data Tiang: map pin same dimensions as Edit/Delete; keep row height fixed. */
.tiang-table th:nth-child(7),.tiang-table td:nth-child(7){width:104px!important;text-align:center!important}
.tiang-table .tiang-action-cell .actions-compact{justify-content:center!important}
.tiang-table .tiang-action-cell .btn.icon-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex-basis:28px!important;font-size:12px!important}

@media (min-width:769px){
    .table-card{max-width:100%!important;overflow-x:hidden!important}
    .compact-table{max-width:100%!important}
}
@media (max-width:768px){
    /* Preserve the intentionally larger field buttons on mobile technician mode. */
    .field-mobile-page--tiang .tiang-action-cell .btn.icon-btn{
        width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px!important;font-size:17px!important;border-radius:9px!important
    }
}


/* V2.6.52 - Group KWH filter one-row + auto close flash */
.flash {
    transition: opacity .35s ease, transform .35s ease, max-height .35s ease, margin .35s ease, padding .35s ease;
}
.flash.flash-auto-hide {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}
.table-filter.kwh-filter-row {
    display: grid;
    grid-template-columns:
        minmax(190px, 1.35fr)
        minmax(135px, .9fr)
        minmax(150px, 1fr)
        minmax(120px, .75fr)
        auto;
    gap: 10px;
    align-items: end;
    width: 100%;
}
.kwh-filter-row .kwh-filter-field {
    min-width: 0;
}
.kwh-filter-row input,
.kwh-filter-row select {
    width: 100%;
    min-width: 0;
}
.kwh-filter-actions {
    justify-content: flex-end;
    align-self: end;
}
@media (max-width: 1050px) {
    .table-filter.kwh-filter-row {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .kwh-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
@media (max-width: 760px) {
    .table-filter.kwh-filter-row {
        grid-template-columns: 1fr;
    }
    .kwh-filter-actions {
        grid-column: auto;
        justify-content: stretch;
    }
    .kwh-filter-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* V4.2 top action + pagination alignment */
.data-action-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.data-action-toolbar .table-pagination-bar{margin:0!important}.data-action-toolbar .pagination-inline{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0}.data-action-toolbar select{width:auto}@media(max-width:768px){.data-action-toolbar{align-items:stretch}.data-action-toolbar>.btn{width:100%}.data-action-toolbar .table-pagination-bar,.data-action-toolbar .pagination-inline{width:100%;justify-content:flex-end;flex-wrap:wrap}}

/* V4.9.4 - Dashboard map: satu aturan final tanpa konflik layout sidebar. */
.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, .85fr);
    gap: 16px;
    height: calc(100vh - 130px);
    min-height: 560px;
}
.dashboard-shell.sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
}
.dashboard-shell.sidebar-hidden .sidebar-panel {
    display: none;
}
.dashboard-shell.sidebar-hidden .map-panel {
    width: 100%;
    max-width: none;
}
.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 50px;
    min-height: 50px;
    padding: 6px 12px;
    box-sizing: border-box;
}
.pju-map-title-v34 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
}
.pju-map-title-v34 .pju-jabar-logo-v34 {
    width: 34px;
    height: 34px;
    min-width: 34px;
    object-fit: contain;
}
.pju-map-title-v34 > span { white-space: nowrap; line-height: 1.15; }
.map-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#sidebarToggleBtn, #mapFullscreenBtn { height: 36px; min-height: 36px; margin: 0; }
#mapFullscreenBtn { width: 40px; min-width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#mapFullscreenBtn .map-fullscreen-icon { display: inline-flex; width: 21px; height: 21px; }
#mapFullscreenBtn .map-fullscreen-icon svg { width: 21px; height: 21px; }
#mapFullscreenBtn .map-fullscreen-label { display: none; }
.dashboard-shell:fullscreen,
.dashboard-shell:-webkit-full-screen,
.dashboard-shell.map-fullscreen-fallback {
    grid-template-columns: minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #0f172a;
}
.dashboard-shell:fullscreen .sidebar-panel,
.dashboard-shell:-webkit-full-screen .sidebar-panel,
.dashboard-shell.map-fullscreen-fallback .sidebar-panel { display: none; }
.dashboard-shell:fullscreen .map-panel,
.dashboard-shell:-webkit-full-screen .map-panel,
.dashboard-shell.map-fullscreen-fallback .map-panel { width: 100vw; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
.dashboard-shell:fullscreen #map,
.dashboard-shell:-webkit-full-screen #map,
.dashboard-shell.map-fullscreen-fallback #map { width: 100vw; height: calc(100vh - 50px); min-height: calc(100vh - 50px); }
.dashboard-shell:fullscreen #sidebarToggleBtn,
.dashboard-shell:-webkit-full-screen #sidebarToggleBtn,
.dashboard-shell.map-fullscreen-fallback #sidebarToggleBtn { display: none; }
.dashboard-shell:fullscreen #mapFullscreenBtn,
.dashboard-shell:-webkit-full-screen #mapFullscreenBtn,
.dashboard-shell.map-fullscreen-fallback #mapFullscreenBtn { width: auto; min-width: 78px; padding: 0 14px; }
.dashboard-shell:fullscreen #mapFullscreenBtn .map-fullscreen-icon,
.dashboard-shell:-webkit-full-screen #mapFullscreenBtn .map-fullscreen-icon,
.dashboard-shell.map-fullscreen-fallback #mapFullscreenBtn .map-fullscreen-icon { display: none; }
.dashboard-shell:fullscreen #mapFullscreenBtn .map-fullscreen-label,
.dashboard-shell:-webkit-full-screen #mapFullscreenBtn .map-fullscreen-label,
.dashboard-shell.map-fullscreen-fallback #mapFullscreenBtn .map-fullscreen-label { display: inline-flex; color: #fff; font-weight: 800; }
@media(max-width:980px){
    .dashboard-shell { grid-template-columns: minmax(0,1fr); height: auto; min-height: 0; }
    .map-panel { min-height: 520px; }
}

/* V5.1.6 - Tipografi pesan dibuat nyaman dibaca.
   Isi pesan/popup normal; judul dan tombol tetap tegas. */
.flash,
.flash *,
#pju-monitor-alert,
.db-warning,
.schedule-note,
.api-mode-note,
.filter-memory-note,
.sync-state,
.sync-state *,
.modal-panel,
.modal-panel p,
.modal-panel span,
.modal-panel small,
.modal-panel label,
.modal-panel td,
.modal-panel .muted,
.gw-box,
.gw-box p,
.gw-box span,
.gw-box small,
.gw-box label,
.gw-box td,
.device-modal-box,
.device-modal-body,
.device-modal-body p,
.device-modal-body span,
.device-modal-body small,
.device-modal-body label,
.device-modal-body strong,
.info-panel .muted,
.info-panel .muted b {
    font-weight: 400 !important;
}

.modal-header h1,
.modal-header h2,
.modal-header h3,
.gw-box > h1,
.gw-box > h2,
.gw-box > h3,
.device-modal-head h1,
.device-modal-head h2,
.device-modal-head h3,
.sync-box > h1,
.sync-box > h2,
.sync-box > h3 {
    font-weight: 700 !important;
}

.modal-panel button,
.modal-panel .btn,
.gw-box button,
.gw-box .btn,
.device-modal-box button,
.device-modal-box .btn,
.sync-box button,
.sync-box .btn {
    font-weight: 700 !important;
}


/* V5.1.7 - Offline Scheduler Default/Custom */
.offline-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:4px 0 18px}
.offline-summary-grid>div{border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;background:#f8fafc;min-width:0}
.offline-summary-grid span,.offline-summary-grid small{display:block;font-size:12px;color:#64748b;font-weight:400}
.offline-summary-grid strong{display:block;margin-top:4px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offline-summary-grid .offline-hold{color:#b45309}
.offline-hold-note{margin-top:14px}
.offline-profile-row{margin-top:4px}
.kontrol-table .js-schedule-setting{min-width:42px;font-size:20px;line-height:1}
@media(max-width:900px){.offline-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.offline-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V5.1.7.7 Scheduler/Weather modal spacing */
.offline-schedule-modal .modal-header{padding-bottom:14px;margin-bottom:8px}
.offline-schedule-modal form{padding-top:4px}
.offline-schedule-modal .offline-summary-grid{gap:12px;margin:8px 0 20px}
.offline-schedule-modal .offline-summary-grid>div{padding:13px 14px;min-height:72px;display:flex;flex-direction:column;justify-content:center}
.offline-schedule-modal .form-row{gap:16px;margin:16px 0}
.offline-schedule-modal .form-row>div{padding-top:4px;padding-bottom:4px}
.offline-section{margin:20px 0 16px;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.offline-section-title{font-weight:700;margin-bottom:14px}.offline-section-title .muted{font-weight:400;font-size:12px;margin-left:6px}
.weather-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.weather-check{display:flex;gap:10px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:10px;padding:12px;background:#fff;min-height:78px}
.weather-check input{margin-top:4px}.weather-check span,.weather-check small{display:block}.weather-check small{margin-top:5px;font-weight:400;line-height:1.35;color:#64748b}
.weather-input-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.weather-input-grid label{display:block;margin-bottom:6px}.weather-input-grid input{width:100%}
.weather-help{display:block;margin-top:12px;color:#64748b;font-weight:400}.offline-schedule-modal .schedule-note{margin:18px 0}.offline-schedule-modal .form-actions{margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}
@media(max-width:900px){.weather-check-grid{grid-template-columns:1fr}.weather-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.weather-input-grid{grid-template-columns:1fr}.offline-schedule-modal .offline-summary-grid>div{min-height:64px}}

/* FASTAMA PJU V5.1.7.8 - compact vertical sensor checkboxes */
.weather-check-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:8px 0 16px;
}
.weather-check{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  column-gap:10px;
  align-items:start;
  width:100%;
  min-height:0;
  padding:9px 12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  box-sizing:border-box;
}
.weather-check input[type="checkbox"]{
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  transform:none !important;
  vertical-align:top;
}
.weather-check > span{min-width:0;display:block}
.weather-check strong{display:block;line-height:1.25}
.weather-check small{display:block;margin-top:2px;font-weight:400;line-height:1.3;color:#64748b}
@media(max-width:900px){.weather-check-grid{display:flex;grid-template-columns:none}}

/* V5.1.7.10 Kontrol PJU - pagination diseragamkan dengan Data Tiang/KWH. */

/* FASTAMA PJU V5.2.0 - Complaint Center */
.complaint-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e2e8f0;color:#334155}.priority-normal{background:#e2e8f0}.priority-high{background:#fef3c7;color:#92400e}.priority-emergency{background:#fee2e2;color:#991b1b}.status-resolved{background:#dcfce7;color:#166534}.status-submitted{background:#fef3c7;color:#92400e}.status-verified,.status-scheduled,.status-on_the_way,.status-in_progress,.status-reopened{background:#dbeafe;color:#1d4ed8}.status-rejected,.status-cancelled,.status-duplicate{background:#f1f5f9;color:#475569}

/* FASTAMA PJU V5.2.4 - Profile Company + Email Settings */
.profile-settings-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:18px;margin-bottom:28px}
.profile-settings-stack>.settings-card{margin:0!important}
.profile-section-card{padding:20px!important;overflow:visible}
.profile-section-header{padding-bottom:16px;margin-bottom:18px!important;border-bottom:1px solid #e5eaf0}
.profile-section-header h2{font-size:19px;line-height:1.25;margin:0 0 5px}
.profile-section-header p{margin:0;line-height:1.55}
.profile-table-wrap{width:100%;overflow-x:auto;border:1px solid #e7ecf2;border-radius:10px;background:#fff}
.profile-table-wrap .compact-table{margin:0;width:100%;border:0}
.profile-table-wrap .compact-table th{padding-top:11px!important;padding-bottom:11px!important}
.profile-table-wrap .compact-table tbody td{padding-top:10px!important;padding-bottom:10px!important;height:48px}
.profile-company-logo{width:44px;height:44px;object-fit:contain;border-radius:8px;background:#fff;padding:3px;border:1px solid #e7ecf2}
.profile-empty-cell{text-align:center!important;padding:24px!important}
.smtp-settings-form{display:grid;gap:18px}
.profile-form-block{padding:16px 17px;border:1px solid #e6ebf1;border-radius:10px;background:#fbfcfe}
.profile-form-block-title{font-weight:800;font-size:13px;margin-bottom:12px;color:#334155}
.profile-form-grid{display:grid;gap:14px 16px;align-items:start}
.profile-form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-form-grid .span-2{grid-column:span 2}
.profile-form-grid label,.smtp-settings-form label{font-weight:700;font-size:12px;margin-bottom:6px;display:block;color:#334155}
.profile-form-grid input,.profile-form-grid select,.smtp-test-form input{width:100%;box-sizing:border-box}
.profile-password-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.profile-password-row .mini-btn{height:40px;min-width:74px}
.input-with-suffix{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.input-with-suffix span{font-size:12px;color:#64748b}
.smtp-option-grid{align-items:stretch}
.profile-check-option{display:flex!important;align-items:flex-start;gap:10px;padding:11px 12px;margin:0!important;border:1px solid #dfe6ee;border-radius:9px;background:#fff;min-height:54px;box-sizing:border-box}
.profile-check-option input{width:auto!important;margin-top:3px}
.profile-check-option span{display:grid;gap:2px}
.profile-check-option strong{font-size:12px}
.profile-check-option small{font-weight:400;color:#64748b;line-height:1.35}
.profile-form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:2px}
.smtp-security-note{font-size:11px}
.smtp-test-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:20px;align-items:center;margin-top:20px;padding:16px 17px;border:1px solid #dbe7f3;border-radius:10px;background:#f8fbff}
.smtp-test-panel p{margin:4px 0 0;line-height:1.45}
.smtp-test-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.profile-modal-form{display:grid;gap:15px}
.profile-modal-form .form-row{margin:0!important;gap:14px!important}
.profile-modal-form .form-actions{margin-top:3px}
.current-upload-file{margin-top:6px;min-height:18px}
@media(max-width:1000px){.profile-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-form-grid-3{grid-template-columns:1fr}.smtp-test-panel{grid-template-columns:1fr}.smtp-test-form{grid-template-columns:1fr auto}}
@media(max-width:700px){.profile-settings-stack{gap:18px}.profile-section-card{padding:15px!important}.profile-form-grid-2,.profile-form-grid-4{grid-template-columns:1fr}.profile-form-grid .span-2{grid-column:span 1}.smtp-test-form{grid-template-columns:1fr}.smtp-test-form .btn{width:100%}.profile-form-actions .btn{width:100%}.smtp-security-note{width:100%;text-align:center}}

/* FASTAMA PJU V5.2.5 - Profile System Tabbed Settings */
.profile-tabs-shell{margin-top:18px;margin-bottom:28px}
.profile-tabs{display:flex;gap:8px;align-items:stretch;padding:6px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;box-shadow:0 1px 2px rgba(15,23,42,.03);margin-bottom:18px}
.profile-tab{appearance:none;border:1px solid transparent;background:transparent;color:#475569;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 16px;border-radius:9px;cursor:pointer;text-align:left;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}
.profile-tab:hover{background:#fff;border-color:#e2e8f0;color:#1e293b}
.profile-tab.is-active{background:#fff;border-color:#d7e0ea;color:#0f172a;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.profile-tab-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#eef4fb;color:#2563eb;font-size:16px;flex:0 0 32px}
.profile-tab.is-active .profile-tab-icon{background:#dbeafe;color:#1d4ed8}
.profile-tab>span:last-child{display:grid;gap:2px;line-height:1.2}
.profile-tab strong{font-size:13px;font-weight:800}
.profile-tab small{font-size:11px;font-weight:400;color:#64748b}
.profile-tab-panel[hidden]{display:none!important}
.profile-tab-panel.is-active{display:block}
.profile-tab-panel .profile-settings-stack{margin-top:0}
.profile-settings-stack-single{gap:0}
@media(max-width:700px){.profile-tabs{display:grid;grid-template-columns:1fr;gap:6px}.profile-tab{padding:9px 10px;min-width:0}.profile-tab small{display:none}.profile-tab strong{font-size:12px}.profile-tab-icon{width:28px;height:28px;flex-basis:28px}.profile-tabs-shell{margin-top:14px}}

/* === FASTAMA PJU V5.2.8.2 - PROFILE TAB BUTTON EMPHASIS === */
.profile-tabs{gap:10px;padding:8px;background:#eef4fb;border-color:#cbd8e8}
.profile-tab{border-width:1px;border-style:solid;font-weight:700;box-shadow:0 1px 2px rgba(15,23,42,.04);transform:translateY(0)}
.profile-tab:nth-child(1){background:#e8f1ff;border-color:#9ec5fe;color:#174ea6}
.profile-tab:nth-child(2){background:#e8fbf6;border-color:#8adfc9;color:#087f5b}
.profile-tab:nth-child(3){background:#fff4e5;border-color:#f5c27a;color:#9a5b00}
.profile-tab:nth-child(1) .profile-tab-icon{background:#cfe2ff;color:#0b5ed7}
.profile-tab:nth-child(2) .profile-tab-icon{background:#c9f5e8;color:#087f5b}
.profile-tab:nth-child(3) .profile-tab-icon{background:#ffe0b2;color:#b45309}
.profile-tab:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.10)}
.profile-tab:nth-child(1):hover{background:#dbeafe;border-color:#60a5fa;color:#0b4aa2}
.profile-tab:nth-child(2):hover{background:#d1fae5;border-color:#34d399;color:#047857}
.profile-tab:nth-child(3):hover{background:#ffedd5;border-color:#fb923c;color:#9a3412}
.profile-tab.is-active{color:#fff;box-shadow:0 6px 16px rgba(15,23,42,.16)}
.profile-tab:nth-child(1).is-active{background:#2563eb;border-color:#1d4ed8;color:#fff}
.profile-tab:nth-child(2).is-active{background:#059669;border-color:#047857;color:#fff}
.profile-tab:nth-child(3).is-active{background:#ea580c;border-color:#c2410c;color:#fff}
.profile-tab.is-active .profile-tab-icon{background:rgba(255,255,255,.18);color:#fff}
.profile-tab.is-active small{color:rgba(255,255,255,.84)}
.profile-tab:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
@media(max-width:700px){.profile-tabs{gap:8px;padding:7px}.profile-tab{min-height:50px;justify-content:center}}
