@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins/pxiByp8kv8JHgFVrLCz7V1s.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins/pxiByp8kv8JHgFVrLDD4V1s.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins/pxiByp8kv8JHgFVrLEj6V1s.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins/pxiByp8kv8JHgFVrLGT9V1s.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/poppins/pxiEyp8kv8JHgFVrFJA.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/poppins/pxiEyp8kv8JHgFVrJJfedw.ttf") format("truetype");
}

:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-alt: #f7fafc;
    --text: #17324d;
    --muted: #5f7285;
    --primary: #0d4b88;
    --primary-dark: #0a3a69;
    --accent: #f0b429;
    --success: #1d7f52;
    --danger: #be3d2a;
    --border: #d3dee8;
    --shadow: 0 16px 36px rgba(15, 43, 73, 0.08);
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Poppins", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(13, 75, 136, 0.1), transparent 24%),
        linear-gradient(180deg, #f5f8fb 0%, #e9f0f6 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(211, 222, 232, 0.9);
    box-shadow: 0 10px 28px rgba(15, 43, 73, 0.06);
    backdrop-filter: blur(10px);
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-header-copy {
    min-width: 0;
}

.site-header-kicker {
    margin: 0;
    color: #0b7a44;
    font-size: 0.64rem;
    font-weight: 100;
    letter-spacing: 0.06em;
}

.site-header-copy .brand-title {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.02;
    letter-spacing: -0.01em;
    font-weight: 100;
    font-synthesis: none;
    text-transform: uppercase;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f3f6e;
    overflow: visible;
    padding: 0;
    border: 1px solid #dbe5ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 43, 73, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: #c8d6e3;
    box-shadow: 0 10px 18px rgba(15, 43, 73, 0.09);
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.icon-button-notification {
    color: #0b7a44;
}

.notification-wrap {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dbe5ee;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 43, 73, 0.16);
    z-index: 1200;
}

.notification-panel[hidden] {
    display: none !important;
}

.notification-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-panel-head strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.notification-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.notification-panel-chip {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7f5ec;
    color: #1d7f52;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.notification-list {
    display: grid;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px solid #e3ebf3;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.notification-item:hover {
    background: #eef5fb;
    border-color: #d1ddeb;
    transform: translateY(-1px);
}

.notification-item-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.notification-item-copy strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.notification-item-copy span {
    color: var(--muted);
    font-size: 0.74rem;
}

.notification-item-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff4d9;
    color: #8a5a00;
    font-size: 0.72rem;
    font-weight: 700;
}

.notification-empty {
    padding: 10px 2px 2px;
    color: var(--muted);
    font-size: 0.84rem;
}

.notification-footer-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #fff;
}

.icon-button-logout {
    color: #1f3f5f;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card,
.panel,
.data-card,
.table-card,
.map-card,
.detail-card {
    background: var(--surface);
    border: 1px solid rgba(211, 222, 232, 0.85);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(100%, 440px);
    padding: 32px;
}

.login-card h1,
.panel h3,
.table-card h3,
.map-card h3,
.detail-card h3 {
    margin-top: 0;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 20px;
    background: linear-gradient(180deg, #0d4b88 0%, #0a3a69 100%);
    color: #fff;
}

.brand-block h1 {
    margin: 12px 0 8px;
    font-size: 1.55rem;
}

.brand-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.main-content {
    padding: 28px;
}

@media (max-width: 980px) {
    .site-header {
        padding: 12px 14px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-header-actions {
        margin-left: auto;
    }

    .site-header-logo {
        width: 42px;
        height: 42px;
    }

    .site-header-copy .brand-title {
        font-size: 0.98rem;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-top: 16px;
    }
}

.topbar {
    margin-bottom: 24px;
}

.topbar h2 {
    margin: 0 0 6px;
}

.topbar p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.data-card,
.table-card,
.map-card,
.detail-card {
    padding: 22px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label,
.text-muted {
    color: var(--muted);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e6f4ec;
    color: #1d6b48;
}

.alert-danger {
    background: #fdecea;
    color: #963326;
}

form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: #e7eef5;
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-warning {
    background: var(--accent);
    color: #3a2a00;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5edf4;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.92rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-success {
    background: #e6f4ec;
    color: #1d6b48;
}

.badge-warning {
    background: #fff4d9;
    color: #8a5a00;
}

.badge-danger {
    background: #fdecea;
    color: #963326;
}

.badge-band-blue {
    background: #e3f3fb;
    color: #0d78ab;
}

.badge-band-yellow {
    background: #fff7d6;
    color: #946d00;
}

.badge-band-gold {
    background: #f6e7bf;
    color: #916200;
}

.badge-band-red {
    background: #fde8e6;
    color: #b12d22;
}

#branch-map,
#branch-detail-map {
    width: 100%;
    min-height: 540px;
    border-radius: 18px;
}

.search-row,
.summary-strip {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.map-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-dot-danger {
    background: var(--danger);
}

.legend-dot-success {
    background: var(--success);
}

.legend-dot-band-blue {
    background: #18a9e6;
}

.legend-dot-band-yellow {
    background: #f7e84a;
}

.legend-dot-band-gold {
    background: #c99700;
}

.legend-dot-band-red {
    background: #ff1d14;
}

.custom-school-marker {
    background: transparent;
    border: none;
}

.school-marker {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(23, 50, 77, 0.14), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.school-marker-danger {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(190, 61, 42, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.school-marker-success {
    background: var(--success);
}

.school-marker-band-blue {
    background: #18a9e6;
    box-shadow: 0 0 0 6px rgba(24, 169, 230, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.school-marker-band-yellow {
    background: #f7e84a;
    box-shadow: 0 0 0 6px rgba(247, 232, 74, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.school-marker-band-gold {
    background: #c99700;
    box-shadow: 0 0 0 6px rgba(201, 151, 0, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.school-marker-band-red {
    background: #ff1d14;
    box-shadow: 0 0 0 6px rgba(255, 29, 20, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

.metric-list {
    display: grid;
    gap: 12px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.room-card {
    background: var(--surface-alt);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #ebf0f5;
}

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

.section-title {
    margin: 0 0 14px;
}

.table-responsive {
    overflow-x: auto;
}

.address-toggle-btn {
    border: 0;
    background: #edf5fc;
    color: var(--primary);
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.address-toggle-btn:hover {
    background: #dbeaf8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 43, 73, 0.08);
}

.address-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 18, 30, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.address-modal-backdrop[hidden] {
    display: none !important;
}

.address-modal {
    width: min(640px, 100%);
    max-height: min(82vh, 720px);
    overflow: auto;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 60px rgba(15, 43, 73, 0.28);
    padding: 22px;
}

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

.address-modal-kicker {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.address-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #edf3f9;
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.address-modal-school {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}

.address-modal-body {
    padding: 16px;
    border-radius: 14px;
    background: var(--surface-alt);
    border: 1px solid #d9e6f2;
    color: var(--text);
    line-height: 1.6;
    word-break: break-word;
}

.note {
    padding: 14px 16px;
    background: #edf5fc;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    color: var(--text);
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-bottom: 12px;
    }

    .main-content {
        padding: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.map-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.map-search-input {
    min-width: 320px;
    flex: 1 1 320px;
}

@media (max-width: 980px) {
    .map-search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .map-search-input {
        min-width: 0;
        width: 100%;
    }
}
#branch-form-map {
    width: 100%;
    min-height: 360px;
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.location-picker-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e5edf4;
    border-radius: 18px;
    background: var(--surface-alt);
}

.location-picker-header {
    align-items: flex-start;
}

.location-picker-copy {
    margin: 6px 0 0;
}

.location-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.location-search-row input {
    flex: 1 1 280px;
}

.location-search-status {
    margin: 0;
}

.location-search-status-error {
    color: var(--danger);
}

@media (max-width: 980px) {
    .location-search-row {
        flex-wrap: wrap;
    }

    .location-search-row input,
    .location-search-row button {
        width: 100%;
    }
}
.map-dashboard-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.map-dashboard-sidebar,
.map-dashboard-main {
    display: grid;
    gap: 18px;
}

.map-dashboard-stage,
.map-dashboard-panel,
.map-metric-card {
    background: linear-gradient(180deg, #0d4b88 0%, #0a3a69 100%);
    color: #edf4ff;
    border: 1px solid rgba(116, 153, 193, 0.22);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(3, 10, 21, 0.35);
}

.map-dashboard-stage,
.map-dashboard-panel {
    padding: 18px;
}

.map-dashboard-intro {
    gap: 10px;
}

.map-dashboard-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(86, 140, 201, 0.18);
    color: #7ea7cf;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-dashboard-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.map-dashboard-panel .text-muted,
.map-dashboard-stage .text-muted,
.map-metric-meta,
.map-bar-item span,
.map-school-card-copy,
.map-school-card-stats,
.map-district-row .text-muted {
    color: rgba(223, 235, 252, 0.72);
}

.map-metric-stack {
    display: grid;
    gap: 14px;
}

.map-metric-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.map-metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7ea7cf;
}

.map-metric-value {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
}

.map-dashboard-panel-title {
    margin: 0;
    font-size: 1rem;
}

.map-dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.map-dashboard-toolbar .section-title {
    margin-bottom: 8px;
    color: #edf4ff;
}

.dashboard-map-stage {
    position: relative;
    padding: 12px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(58, 128, 211, 0.2), transparent 40%),
        linear-gradient(180deg, rgba(17, 35, 60, 0.94) 0%, rgba(10, 20, 35, 0.98) 100%);
    border: 1px solid rgba(116, 153, 193, 0.2);
}

.dashboard-map-overlay {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(13, 75, 136, 0.3);
    color: #dce9fb;
    font-size: 0.92rem;
}

.dashboard-map-overlay strong {
    color: #fff4a8;
}

.dashboard-map-stage #branch-map {
    min-height: 620px;
    border-radius: 16px;
    border: 1px solid rgba(116, 153, 193, 0.18);
}

.map-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.map-legend-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100%;
    padding-top: 4px;
}

.map-legend-dashboard > span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.map-legend-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.map-dashboard-legend-panel .map-dashboard-panel-title {
    margin-bottom: 10px;
}

.map-legend-note small {
    display: block;
    font-size: 0.84rem;
    line-height: 1.5;
}

.map-school-list,
.map-district-list,
.map-bar-list {
    display: grid;
    gap: 12px;
}

.map-school-card {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(116, 153, 193, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #edf4ff;
    text-align: left;
}

.map-school-card:hover {
    background: rgba(92, 149, 215, 0.14);
    border-color: rgba(141, 183, 240, 0.34);
}

.map-school-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.map-school-card-copy,
.map-school-card-stats {
    font-size: 0.88rem;
    line-height: 1.35;
}

.map-school-card-top strong {
    line-height: 1.2;
}

.map-school-card-stats {
    margin-top: -2px;
}

.map-district-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(116, 153, 193, 0.12);
}

.map-district-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.map-district-shortage {
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    align-self: start;
}

.map-district-shortage.is-danger {
    background: rgba(190, 61, 42, 0.2);
    color: #ffb3a5;
}

.map-district-shortage.is-safe {
    background: rgba(29, 127, 82, 0.2);
    color: #a6e8c8;
}

.map-bar-item {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "copy copy"
        "track track"
        "value value";
    align-items: center;
}

.map-bar-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    grid-area: copy;
}

.map-bar-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    grid-area: track;
}

.map-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d4b88 0%, #4d78a3 100%);
}

.map-bar-value {
    font-size: 0.84rem;
    grid-area: value;
}

.map-dashboard-chart-panel .metric-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom-color: rgba(116, 153, 193, 0.12);
}

.map-dashboard-chart-panel .metric-item span {
    color: rgba(223, 235, 252, 0.72);
}

.map-dashboard-chart-panel .metric-item strong {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .map-dashboard-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .map-dashboard-sidebar-right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .map-dashboard-shell,
    .map-dashboard-bottom-grid,
    .map-dashboard-sidebar-right {
        grid-template-columns: 1fr;
    }

    .map-dashboard-toolbar,
    .dashboard-map-overlay,
    .map-bar-copy,
    .map-school-card-top {
        flex-wrap: wrap;
    }

    .dashboard-map-stage #branch-map {
        min-height: 460px;
    }
}
body.layout-map-full .app-shell {
    grid-template-columns: 1fr;
}

body.layout-map-full .sidebar {
    display: none;
}

body.layout-map-full .main-content {
    padding: 24px;
}

body.layout-map-full .topbar {
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    body.layout-map-full .main-content {
        padding: 16px;
    }
}
.map-menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1200;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(9, 18, 31, 0.92);
    color: #edf4ff;
    border: 1px solid rgba(141, 183, 240, 0.3);
    box-shadow: 0 14px 30px rgba(3, 10, 21, 0.28);
}

body.layout-map-full.map-menu-open .app-shell {
    grid-template-columns: 280px 1fr;
}

body.layout-map-full.map-menu-open .sidebar {
    display: block;
}

body.layout-map-full.map-menu-open .map-menu-toggle {
    left: 298px;
}

@media (max-width: 980px) {
    .map-menu-toggle {
        top: 12px;
        left: 12px;
    }

    body.layout-map-full.map-menu-open .app-shell {
        grid-template-columns: 1fr;
    }

    body.layout-map-full.map-menu-open .sidebar {
        display: block;
    }

    body.layout-map-full.map-menu-open .map-menu-toggle {
        left: 12px;
    }
}
body.layout-map-full .main-content {
    padding-top: 22px;
    padding-left: 104px;
}

body.layout-map-full .topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.map-menu-toggle {
    min-width: 74px;
}

body.layout-map-full.map-menu-open .main-content {
    padding-left: 24px;
}

@media (max-width: 980px) {
    body.layout-map-full .main-content {
        padding-top: 72px;
        padding-left: 16px;
    }

    body.layout-map-full.map-menu-open .main-content {
        padding-left: 16px;
    }
}
body.layout-map-full .main-content {
    padding: 24px;
}

body.layout-map-full .topbar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

body.layout-map-full .topbar > div {
    flex: 1 1 auto;
}

body.layout-map-full .topbar h2 {
    line-height: 1.1;
}

body.layout-map-full .map-menu-toggle {
    position: static;
    flex: 0 0 auto;
    min-width: 74px;
    margin-top: 2px;
}

body.layout-map-full.map-menu-open .main-content {
    padding: 24px;
}

body.layout-map-full.map-menu-open .map-menu-toggle {
    left: auto;
}

@media (max-width: 980px) {
    body.layout-map-full .main-content,
    body.layout-map-full.map-menu-open .main-content {
        padding: 16px;
    }

    body.layout-map-full .topbar {
        align-items: flex-start;
    }
}
body.layout-map-full .topbar-map-full {
    align-items: center;
    margin-bottom: 14px;
}

body.layout-map-full .topbar-map-full p {
    margin: 0;
    font-size: 1rem;
}
.map-dashboard-hero-wrap {
    margin-bottom: 18px;
}

.map-dashboard-intro-hero {
    width: 100%;
    max-width: none;
}

.map-dashboard-sidebar-left {
    align-content: start;
}

@media (max-width: 980px) {
    .map-dashboard-intro-hero {
        max-width: none;
    }
}

.map-dashboard-intro-hero {
    width: 100%;
    max-width: none;
}
body.layout-map-full .topbar-map-full {
    align-items: flex-start;
}

body.layout-public-page {
    --public-ink: #11314f;
    --public-muted: #5c7288;
    --public-green: #12914b;
    --public-blue: #2949b8;
    --public-green-soft: #e6f6ec;
    --public-blue-soft: #e8efff;
    background:
        radial-gradient(circle at top left, rgba(18, 145, 75, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(41, 73, 184, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbfe 0%, #edf4fa 100%);
    color: var(--public-ink);
    overflow-x: hidden;
}

body.layout-public-page .public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(207, 220, 233, 0.82);
    box-shadow: 0 12px 28px rgba(15, 43, 73, 0.06);
    backdrop-filter: blur(12px);
}

body.layout-public-page .public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.layout-public-page .public-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

body.layout-public-page .public-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.layout-public-page .public-brand-kicker {
    color: var(--public-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-public-page .public-brand-title {
    font-size: 1.4rem;
    line-height: 1.1;
    font-weight: 100;
    color: var(--public-ink);
}

body.layout-public-page .public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

body.layout-public-page .public-nav-link {
    position: relative;
    padding: 10px 16px;
    border-radius: 999px;
    color: #425a73;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.layout-public-page .public-nav-link:hover,
body.layout-public-page .public-nav-link.is-active {
    background: linear-gradient(90deg, #0e7f5b 0%, #2949b8 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(23, 49, 79, 0.14);
}

body.layout-public-page .public-nav-link:focus-visible {
    outline: 2px solid rgba(41, 73, 184, 0.35);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body.layout-public-page .public-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.layout-public-page .public-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--public-blue);
    font-weight: 800;
    border: 1px solid rgba(41, 73, 184, 0.2);
    box-shadow: 0 10px 22px rgba(15, 43, 73, 0.08);
}

body.layout-public-page .public-login-link.public-login-link-facebook {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #1877f2 0%, #0a56c2 100%);
    box-shadow: 0 14px 28px rgba(24, 119, 242, 0.18);
}

body.layout-public-page .public-login-link.public-login-link-facebook:hover {
    background: linear-gradient(135deg, #1b81ff 0%, #0b5ed8 100%);
}

body.layout-public-page .public-login-link.public-login-link-facebook svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

body.layout-public-page .public-page {
    width: min(1260px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 32px;
}

body.layout-public-page .public-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 34px;
    align-items: center;
    padding: 22px 0 18px;
    margin-top: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.layout-public-page .public-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: center;
    padding: 10px 8px 10px 4px;
}

body.layout-public-page .public-hero-kicker,
body.layout-public-page .public-section-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--public-green-soft);
    color: var(--public-green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-public-page .public-hero-title {
    margin: 0;
    max-width: 11ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    color: var(--public-ink);
    text-wrap: balance;
}

body.layout-public-page .public-hero-text {
    margin: 0;
    max-width: 50ch;
    color: var(--public-muted);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.7;
}

body.layout-public-page .public-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.layout-public-page .public-hero-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

body.layout-public-page .public-hero-hints span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 225, 236, 0.95);
    background: rgba(255, 255, 255, 0.86);
    color: var(--public-muted);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 43, 73, 0.05);
}

body.layout-public-page .public-hero-cta {
    min-height: 48px;
    border-radius: 999px;
    padding-inline: 18px;
}

body.layout-public-page .public-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

body.layout-public-page .public-stat-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(210, 222, 232, 0.9);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 43, 73, 0.06);
}

body.layout-public-page .public-stat-label {
    color: var(--public-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-public-page .public-stat-value {
    font-size: clamp(1.6rem, 2.9vw, 2.4rem);
    line-height: 1;
    color: var(--public-blue);
}

body.layout-public-page .public-stat-meta {
    color: var(--public-muted);
    line-height: 1.45;
}

body.layout-public-page .public-hero-art {
    position: relative;
    min-height: 560px;
    padding: 0;
    display: flex;
    align-items: stretch;
}

body.layout-public-page .public-hero-art-surface {
    position: relative;
    width: 100%;
    min-height: 560px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

body.layout-public-page .public-hero-art-surface::before {
    content: none;
}

body.layout-public-page .public-hero-block {
    position: absolute;
    display: block;
    box-shadow: 0 18px 34px rgba(15, 43, 73, 0.12);
}

body.layout-public-page .public-hero-block-a {
    left: 26px;
    top: 30px;
    width: 146px;
    height: 112px;
    background: var(--public-green);
}

body.layout-public-page .public-hero-block-b {
    right: 38px;
    top: 30px;
    width: 156px;
    height: 176px;
    background: var(--public-blue);
}

body.layout-public-page .public-hero-block-c {
    right: 38px;
    top: 208px;
    width: 188px;
    height: 182px;
    background: var(--public-green);
}

body.layout-public-page .public-hero-block-d {
    left: 208px;
    bottom: 26px;
    width: 200px;
    height: 132px;
    background: var(--public-blue);
}

body.layout-public-page .public-hero-block-e {
    right: 0;
    bottom: 0;
    width: 172px;
    height: 126px;
    background: var(--public-green);
}

body.layout-public-page .public-hero-block-f {
    left: 236px;
    top: 174px;
    width: 112px;
    height: 92px;
    background: var(--public-blue);
}

body.layout-public-page .public-hero-block-g {
    left: 72px;
    bottom: 118px;
    width: 122px;
    height: 88px;
    background: var(--public-green);
}

body.layout-public-page .public-hero-block-h {
    right: 262px;
    top: 118px;
    width: 84px;
    height: 84px;
    background: var(--public-green);
}

body.layout-public-page .public-hero-logo {
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(15, 43, 73, 0.14));
    pointer-events: none;
}

body.layout-public-page .public-hero-logo-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    width: fit-content;
    max-width: 100%;
}

body.layout-public-page .public-hero-copy .public-hero-logo-row {
    margin-bottom: 14px;
}

body.layout-public-page .public-hero-logo-deped {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
}

body.layout-public-page .public-hero-logo-facilities {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
}

body.layout-public-page .public-hero-art .public-hero-logo-row {
    position: absolute;
    left: 21%;
    top: 14%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.layout-public-page .public-hero-art-caption {
    position: absolute;
    left: 30px;
    bottom: 28px;
    z-index: 2;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 43, 73, 0.84);
    font-size: 0.84rem;
    line-height: 1.45;
    box-shadow: 0 16px 32px rgba(15, 43, 73, 0.12);
}

body.layout-public-page .public-hero-art-stat {
    position: absolute;
    top: 30px;
    right: 28px;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 150px;
    padding: 12px 14px 10px;
    color: var(--public-ink);
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(212, 225, 236, 0.8);
    box-shadow: 0 16px 32px rgba(15, 43, 73, 0.12);
}

body.layout-public-page .public-hero-art-stat strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #0f2b55;
}

body.layout-public-page .public-hero-art-stat span {
    font-size: 0.82rem;
    color: rgba(15, 43, 73, 0.78);
    line-height: 1.25;
}

body.layout-public-page .public-map-section,
body.layout-public-page .public-schools-section,
body.layout-public-page .public-contact-section {
    margin-top: 22px;
}

body.layout-public-page .public-intro#home,
body.layout-public-page .public-map-section,
body.layout-public-page .public-schools-section,
body.layout-public-page .public-contact-section {
    scroll-margin-top: 96px;
}

body.layout-public-page .public-metrics-band {
    margin-top: 22px;
    padding: 28px 0;
    border-radius: 28px;
    background: linear-gradient(135deg, #0a3bb0 0%, #0b47c8 52%, #08359c 100%);
    box-shadow: 0 24px 50px rgba(5, 29, 84, 0.22);
}

body.layout-public-page .public-metrics-grid {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.layout-public-page .public-metric-item {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 16px 12px;
    color: #fff;
    text-align: center;
}

body.layout-public-page .public-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.layout-public-page .public-metric-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

body.layout-public-page .public-metric-value {
    font-size: clamp(2.1rem, 3vw, 3.15rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
}

body.layout-public-page .public-metric-label {
    font-size: 0.98rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
}

body.layout-public-page .public-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.layout-public-page .public-section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.12;
    color: var(--public-ink);
}

body.layout-public-page .public-section-heading p {
    max-width: 56ch;
    margin: 0;
    color: var(--public-muted);
    line-height: 1.6;
}

body.layout-public-page .public-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

body.layout-public-page .public-map-panel,
body.layout-public-page .public-insight-card,
body.layout-public-page .public-contact-card,
body.layout-public-page .public-school-card {
    border-radius: 24px;
    border: 1px solid rgba(212, 225, 236, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(15, 43, 73, 0.08);
}

body.layout-public-page .public-map-panel {
    padding: 18px;
}

body.layout-public-page .public-map-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

body.layout-public-page .public-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.layout-public-page .public-filter-form input,
body.layout-public-page .public-filter-form select {
    min-height: 46px;
    border-radius: 14px;
    border-color: #d4deea;
    background: #fff;
}

body.layout-public-page .public-filter-form input {
    flex: 1 1 280px;
}

body.layout-public-page .public-filter-form select {
    flex: 0 0 190px;
}

body.layout-public-page .public-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--public-muted);
    font-weight: 600;
}

body.layout-public-page .public-map-stage {
    position: relative;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(41, 73, 184, 0.14), transparent 34%),
        linear-gradient(180deg, #0f2237 0%, #0a1220 100%);
    border: 1px solid rgba(65, 92, 135, 0.18);
}

body.layout-public-page .public-map-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #fff;
    background: rgba(8, 15, 25, 0.52);
    backdrop-filter: blur(8px);
}

body.layout-public-page .public-map-overlay span {
    color: rgba(229, 239, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-public-page .public-map-overlay strong {
    font-size: 0.96rem;
}

body.layout-public-page #public-branch-map {
    width: 100%;
    min-height: 680px;
    border-radius: 18px;
}

body.layout-public-page .public-insights {
    display: grid;
    gap: 16px;
}

body.layout-public-page .public-insight-card {
    padding: 18px;
}

body.layout-public-page .public-insight-card h3 {
    margin: 0 0 14px;
    color: var(--public-ink);
    font-size: 1.03rem;
}

body.layout-public-page .public-insight-list {
    display: grid;
    gap: 10px;
}

body.layout-public-page .public-insight-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
    color: var(--public-ink);
}

body.layout-public-page .public-insight-row span {
    color: var(--public-muted);
}

body.layout-public-page .public-district-list {
    display: grid;
    gap: 12px;
}

body.layout-public-page .public-district-row {
    display: grid;
    gap: 8px;
}

body.layout-public-page .public-district-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--public-ink);
}

body.layout-public-page .public-district-copy span {
    color: var(--public-muted);
    font-size: 0.84rem;
}

body.layout-public-page .public-district-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7edf4;
}

body.layout-public-page .public-district-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--public-green) 0%, var(--public-blue) 100%);
}

body.layout-public-page .public-school-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.layout-public-page .public-school-card {
    padding: 18px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

body.layout-public-page .public-school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(15, 43, 73, 0.12);
}

body.layout-public-page .public-school-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--public-green) 0%, var(--public-blue) 100%);
}

body.layout-public-page .public-school-card[data-band="blue"]::before {
    background: #18a9e6;
}

body.layout-public-page .public-school-card[data-band="yellow"]::before {
    background: #f7e84a;
}

body.layout-public-page .public-school-card[data-band="gold"]::before {
    background: #c99700;
}

body.layout-public-page .public-school-card[data-band="red"]::before {
    background: #ff1d14;
}

body.layout-public-page .public-school-card[data-band="none"]::before {
    background: var(--public-green);
}

body.layout-public-page .public-school-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.layout-public-page .public-school-card-top strong {
    font-size: 1rem;
    line-height: 1.25;
    color: var(--public-ink);
}

body.layout-public-page .public-school-meta {
    margin-top: 10px;
    color: var(--public-muted);
    line-height: 1.45;
}

body.layout-public-page .public-school-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--public-ink);
}

body.layout-public-page .public-school-stats span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4f7fb;
    font-size: 0.82rem;
    font-weight: 700;
}

body.layout-public-page .public-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
}

body.layout-public-page .public-contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body.layout-public-page .public-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

body.layout-public-page .public-social-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

body.layout-public-page .public-social-link-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a56c2 100%);
    box-shadow: 0 14px 28px rgba(24, 119, 242, 0.18);
}

body.layout-public-page .public-social-link-facebook:hover {
    background: linear-gradient(135deg, #1b81ff 0%, #0b5ed8 100%);
}

body.layout-public-page .public-contact-card h2 {
    margin: 8px 0 10px;
    color: var(--public-ink);
}

body.layout-public-page .public-contact-card p {
    margin: 0;
    max-width: 72ch;
    color: var(--public-muted);
    line-height: 1.65;
}

body.layout-public-page .public-footer {
    margin-top: 22px;
    padding: 36px 28px 18px;
    border-radius: 28px 28px 0 0;
    background: #1f2937;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 -18px 36px rgba(15, 23, 42, 0.16);
}

body.layout-public-page .public-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 30px;
}

body.layout-public-page .public-footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

body.layout-public-page .public-footer-col h3 {
    margin: 0 0 6px;
    color: #32b48f;
    font-size: 1rem;
    line-height: 1.2;
}

body.layout-public-page .public-footer-col p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

body.layout-public-page .public-footer-col a {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    width: fit-content;
}

body.layout-public-page .public-footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

body.layout-public-page .public-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

body.layout-public-page .public-footer-contact a {
    color: rgba(255, 255, 255, 0.95);
}

body.layout-public-page .public-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: #32b48f;
}

body.layout-public-page .public-footer-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.layout-public-page .public-footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

body.layout-public-page .school-popup {
    min-width: 280px;
    max-width: min(360px, calc(100vw - 28px));
    color: #17324d;
}

body.layout-public-page .school-popup-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #0d4b88;
}

body.layout-public-page .school-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    font-size: 0.84rem;
}

body.layout-public-page .school-popup-grid div,
body.layout-public-page .school-popup-full {
    display: grid;
    gap: 2px;
}

body.layout-public-page .school-popup-grid span {
    color: #6c7d91;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.layout-public-page .school-popup-grid strong {
    font-size: 0.88rem;
    line-height: 1.3;
    color: #17324d;
}

body.layout-public-page .school-popup-full {
    grid-column: 1 / -1;
}

body.layout-public-page .school-popup-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dbe5ee;
    font-size: 0.84rem;
    line-height: 1.45;
}

body.layout-public-page .school-popup-status strong {
    color: #0d4b88;
}

body.layout-public-page .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 43, 73, 0.22);
}

body.layout-public-page .leaflet-popup-content {
    margin: 10px 12px;
    max-height: min(52vh, 360px);
    overflow: auto;
}

body.layout-public-page .custom-school-marker {
    background: transparent;
    border: none;
}

body.layout-public-page .school-marker {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(23, 50, 77, 0.14), 0 8px 18px rgba(15, 43, 73, 0.25);
}

body.layout-public-page .school-marker-success {
    background: var(--public-green);
}

body.layout-public-page .school-marker-band-blue {
    background: #18a9e6;
    box-shadow: 0 0 0 6px rgba(24, 169, 230, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

body.layout-public-page .school-marker-band-yellow {
    background: #f7e84a;
    box-shadow: 0 0 0 6px rgba(247, 232, 74, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

body.layout-public-page .school-marker-band-gold {
    background: #c99700;
    box-shadow: 0 0 0 6px rgba(201, 151, 0, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

body.layout-public-page .school-marker-band-red {
    background: #ff1d14;
    box-shadow: 0 0 0 6px rgba(255, 29, 20, 0.22), 0 8px 18px rgba(15, 43, 73, 0.25);
}

@media (max-width: 1180px) {
    body.layout-public-page .public-intro,
    body.layout-public-page .public-map-layout {
        grid-template-columns: 1fr;
    }

    body.layout-public-page .public-hero-art {
        min-height: 440px;
        padding: 0;
    }

    body.layout-public-page .public-metrics-grid {
        width: min(100%, calc(100% - 32px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.layout-public-page .public-school-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body.layout-public-page .public-header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    body.layout-public-page .public-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    body.layout-public-page .public-page {
        width: min(100%, calc(100% - 20px));
        padding-top: 16px;
    }

    body.layout-public-page .public-intro {
        padding: 20px;
    }

    body.layout-public-page .public-hero-title {
        max-width: 12ch;
        font-size: clamp(2.45rem, 3.8vw, 3.9rem);
    }

    body.layout-public-page .public-stat-grid {
        grid-template-columns: 1fr;
    }

    body.layout-public-page .public-hero-art {
        min-height: 360px;
        padding: 0;
    }

    body.layout-public-page .public-hero-art-stat {
        top: 18px;
        right: 18px;
        min-width: 118px;
    }

    body.layout-public-page .public-hero-art-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
        max-width: none;
    }

    body.layout-public-page .public-map-panel,
    body.layout-public-page .public-insight-card,
    body.layout-public-page .public-contact-card {
        padding: 16px;
    }

    body.layout-public-page .public-metrics-band {
        padding: 20px 0;
        border-radius: 22px;
    }

    body.layout-public-page #public-branch-map {
        min-height: 520px;
    }

    body.layout-public-page .public-school-grid {
        grid-template-columns: 1fr;
    }

    body.layout-public-page .public-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    body.layout-public-page .public-contact-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.layout-public-page .public-header {
        gap: 8px;
        padding: 10px 12px 8px;
        align-items: flex-start;
    }

    body.layout-public-page .public-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    body.layout-public-page .public-brand-logo {
        width: 34px;
        height: 34px;
    }

    body.layout-public-page .public-brand-title {
        font-size: 0.76rem;
        line-height: 1.15;
        max-width: none;
        white-space: nowrap;
    }

    body.layout-public-page .public-nav-link,
    body.layout-public-page .public-login-link {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    body.layout-public-page .public-page {
        width: min(100%, calc(100% - 10px));
    }

    body.layout-public-page .public-intro,
    body.layout-public-page .public-map-panel,
    body.layout-public-page .public-insight-card,
    body.layout-public-page .public-contact-card,
    body.layout-public-page .public-school-card {
        border-radius: 20px;
    }

    body.layout-public-page .public-hero-title {
        font-size: clamp(1.8rem, 10vw, 2.25rem);
        line-height: 0.96;
        max-width: none;
    }

    body.layout-public-page .public-hero-text {
        font-size: 0.95rem;
    }

    body.layout-public-page .public-hero-copy {
        max-width: none;
    }

    body.layout-public-page .public-hero-art {
        display: none;
    }

    body.layout-public-page .public-hero-logo-row {
        gap: 6px;
        margin-bottom: 10px;
    }

    body.layout-public-page .public-hero-logo-deped {
        width: 58px;
        height: 58px;
    }

    body.layout-public-page .public-hero-logo-facilities {
        width: 58px;
        height: 58px;
    }

    body.layout-public-page .public-hero-art-stat {
        min-width: 112px;
        padding: 10px 10px 8px;
    }

    body.layout-public-page .public-hero-art-stat strong {
        font-size: 1.6rem;
    }

    body.layout-public-page .public-metrics-grid {
        width: min(100%, calc(100% - 24px));
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.layout-public-page .public-hero-hints {
        gap: 8px;
    }

    body.layout-public-page .public-hero-hints span {
        min-height: 34px;
        font-size: 0.78rem;
    }

    body.layout-public-page .public-filter-form input,
    body.layout-public-page .public-filter-form select,
    body.layout-public-page .public-filter-form button {
        width: 100%;
        flex: 1 1 100%;
    }

    body.layout-public-page .public-header {
        justify-content: space-between;
    }

    body.layout-public-page .public-nav {
        order: 3;
        width: 100%;
        gap: 6px;
        padding-top: 4px;
        flex-wrap: wrap;
    }

    body.layout-public-page .public-nav-link {
        border-radius: 999px;
    }

    body.layout-public-page .public-map-panel {
        padding: 14px;
    }

    body.layout-public-page .public-map-toolbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    body.layout-public-page .public-legend {
        gap: 10px;
        font-size: 0.8rem;
    }

    body.layout-public-page .public-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    body.layout-public-page .public-map-stage {
        padding: 10px;
        border-radius: 18px;
    }

    body.layout-public-page .public-map-overlay {
        position: static;
        margin-bottom: 10px;
        padding: 9px 11px;
        border-radius: 14px;
    }

    body.layout-public-page #public-branch-map {
        min-height: 360px;
        border-radius: 14px;
    }

    body.layout-public-page .public-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    body.layout-public-page .public-section-heading p {
        max-width: none;
    }

    body.layout-public-page .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.layout-public-page .school-popup {
        min-width: 0;
        max-width: calc(100vw - 22px);
    }

    body.layout-public-page .school-popup-grid {
        grid-template-columns: 1fr;
    }

    body.layout-public-page .leaflet-popup-content {
        max-height: min(46vh, 300px);
    }
}

@media (max-width: 375px) {
    body.layout-public-page .public-header {
        padding: 9px 10px 8px;
        gap: 6px;
    }

    body.layout-public-page .public-brand-title {
        font-size: 0.68rem;
        max-width: none;
        white-space: nowrap;
    }

    body.layout-public-page .public-hero-title {
        font-size: clamp(1.68rem, 9.8vw, 2rem);
    }

    body.layout-public-page .public-hero-logo-row {
        gap: 4px;
        margin-bottom: 8px;
    }

    body.layout-public-page .public-hero-logo-deped,
    body.layout-public-page .public-hero-logo-facilities {
        width: 50px;
        height: 50px;
    }

    body.layout-public-page .public-map-panel,
    body.layout-public-page .public-insight-card,
    body.layout-public-page .public-contact-card,
    body.layout-public-page .public-school-card {
        border-radius: 18px;
    }

    body.layout-public-page .public-map-panel {
        padding: 12px;
    }

    body.layout-public-page .public-map-stage {
        padding: 8px;
    }

    body.layout-public-page #public-branch-map {
        min-height: 320px;
    }
}

@media (max-width: 980px) {
    body.layout-admin-mobile {
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
        line-height: 0 !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        fill: currentColor !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.layout-admin-mobile .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .site-header-kicker {
        display: none !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.46rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.05em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-admin-mobile .site-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    body.layout-admin-mobile .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-admin-mobile .app-shell {
        display: block !important;
        min-height: auto !important;
    }

    body.layout-admin-mobile .sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: min(88vw, 320px) !important;
        height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        padding: 14px 8px 16px !important;
        border-right: 1px solid #d7e2ec !important;
        border-radius: 0 22px 22px 0 !important;
        background: #fff !important;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18) !important;
        transform: translateX(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
        z-index: 1700 !important;
    }

    body.layout-admin-mobile.map-menu-open .sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.layout-admin-mobile.map-menu-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 56px 0 0 0 !important;
        background: rgba(8, 15, 26, 0.42) !important;
        z-index: 1600 !important;
    }

    body.layout-admin-mobile .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 54px 10px 12px !important;
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .topbar,
    body.layout-admin-mobile .topbar-map-full {
        margin-bottom: 6px !important;
        padding: 0 !important;
    }

    body.layout-admin-mobile .topbar h2 {
        margin: 0 !important;
        font-size: 0.92rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .topbar p {
        margin: 2px 0 0 !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .panel,
    body.layout-admin-mobile .data-card,
    body.layout-admin-mobile .table-card,
    body.layout-admin-mobile .map-card,
    body.layout-admin-mobile .detail-card {
        padding: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-admin-mobile .site-header {
        gap: 4px !important;
        padding: 6px 8px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        gap: 3px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        font-size: 0.4rem !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 26px !important;
        height: 26px !important;
    }

    body.layout-admin-mobile .main-content {
        padding: 50px 8px 10px !important;
    }
}

@media (max-width: 980px) {
    body.layout-admin-mobile {
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
        line-height: 0 !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        fill: currentColor !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.layout-admin-mobile .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .site-header-kicker {
        display: none !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.46rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.05em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-admin-mobile .site-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    body.layout-admin-mobile .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-admin-mobile .app-shell {
        display: block !important;
        min-height: auto !important;
    }

    body.layout-admin-mobile .sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: min(88vw, 320px) !important;
        height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        padding: 14px 8px 16px !important;
        border-right: 1px solid #d7e2ec !important;
        border-radius: 0 22px 22px 0 !important;
        background: #fff !important;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18) !important;
        transform: translateX(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
        z-index: 1700 !important;
    }

    body.layout-admin-mobile.map-menu-open .sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.layout-admin-mobile.map-menu-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 56px 0 0 0 !important;
        background: rgba(8, 15, 26, 0.42) !important;
        z-index: 1600 !important;
    }

    body.layout-admin-mobile .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 54px 10px 12px !important;
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .topbar,
    body.layout-admin-mobile .topbar-map-full {
        margin-bottom: 6px !important;
        padding: 0 !important;
    }

    body.layout-admin-mobile .topbar h2 {
        margin: 0 !important;
        font-size: 0.92rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .topbar p {
        margin: 2px 0 0 !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .panel,
    body.layout-admin-mobile .data-card,
    body.layout-admin-mobile .table-card,
    body.layout-admin-mobile .map-card,
    body.layout-admin-mobile .detail-card {
        padding: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-admin-mobile .site-header {
        gap: 4px !important;
        padding: 6px 8px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        gap: 3px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        font-size: 0.4rem !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 26px !important;
        height: 26px !important;
    }

    body.layout-admin-mobile .main-content {
        padding: 50px 8px 10px !important;
    }
}

@media (max-width: 980px) {
    body.layout-admin-mobile .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        color: #0f3f6e !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.layout-admin-mobile .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .site-header-kicker {
        display: none !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.42rem !important;
        line-height: 0.92 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-admin-mobile .site-header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        gap: 4px !important;
        margin-left: auto !important;
        align-items: center !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-admin-mobile .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-admin-mobile .app-shell {
        display: block !important;
        min-height: auto !important;
    }

    body.layout-admin-mobile .sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: min(88vw, 320px) !important;
        height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        padding: 16px 8px 18px !important;
        background: #fff !important;
        border-right: 1px solid #d7e2ec !important;
        border-radius: 0 22px 22px 0 !important;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18) !important;
        transform: translateX(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
        z-index: 1700 !important;
    }

    body.layout-admin-mobile.map-menu-open .sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.layout-admin-mobile.map-menu-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 56px 0 0 0 !important;
        background: rgba(8, 15, 26, 0.42) !important;
        z-index: 1600 !important;
    }

    body.layout-admin-mobile .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 54px 10px 12px !important;
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .topbar,
    body.layout-admin-mobile .topbar-map-full {
        margin-bottom: 6px !important;
        padding: 0 !important;
    }

    body.layout-admin-mobile .topbar h2 {
        margin: 0;
        font-size: 0.92rem;
        line-height: 1.1;
    }

    body.layout-admin-mobile .topbar p {
        margin: 2px 0 0;
        font-size: 0.72rem;
        line-height: 1.1;
    }

    body.layout-admin-mobile .panel,
    body.layout-admin-mobile .data-card,
    body.layout-admin-mobile .table-card,
    body.layout-admin-mobile .map-card,
    body.layout-admin-mobile .detail-card {
        padding: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-admin-mobile .site-header {
        gap: 4px !important;
        padding: 4px 6px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        gap: 3px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        font-size: 0.36rem !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 24px !important;
        height: 24px !important;
    }

    body.layout-admin-mobile .main-content {
        padding: 50px 8px 10px !important;
    }
}

@media (max-width: 560px) {
    body.layout-map-full .main-content {
        padding: 54px 10px 12px !important;
    }

    body.layout-map-full .topbar,
    body.layout-map-full .topbar-map-full {
        margin-bottom: 6px !important;
        padding: 0 !important;
    }

    body.layout-map-full .topbar-map-full {
        gap: 2px !important;
    }

    body.layout-map-full .map-header-inline {
        gap: 4px !important;
    }

    body.layout-map-full .map-dashboard-title {
        font-size: 0.92rem !important;
        line-height: 1.05 !important;
    }

    body.layout-map-full .map-header-welcome {
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px 12px 16px !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .main-content {
        padding: 14px 8px 10px !important;
    }

    body.layout-map-full .map-dashboard-title {
        font-size: 0.86rem !important;
    }

    body.layout-map-full .map-header-welcome {
        font-size: 0.68rem !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        color: #0f3f6e !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.42rem !important;
        line-height: 0.92 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-map-full .site-header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        gap: 4px !important;
        margin-left: auto !important;
        align-items: center !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        gap: 4px !important;
        padding: 4px 6px !important;
    }

    body.layout-map-full .site-header-brand {
        gap: 3px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        font-size: 0.36rem !important;
    }

    body.layout-map-full .icon-button {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Absolute final mobile header fix: one horizontal row only */
@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        color: #0f3f6e !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.42rem !important;
        line-height: 0.92 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-map-full .site-header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        gap: 4px !important;
        margin-left: auto !important;
        align-items: center !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        gap: 4px !important;
        padding: 4px 6px !important;
    }

    body.layout-map-full .site-header-brand {
        gap: 3px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        font-size: 0.36rem !important;
    }

    body.layout-map-full .icon-button {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: 6px !important;
        padding: 6px 8px !important;
        flex-wrap: nowrap !important;
    }

    body.layout-map-full .site-header-brand {
        display: grid !important;
        grid-template-columns: 14px 22px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        grid-column: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        color: #0f3f6e !important;
        line-height: 0 !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        grid-column: 2 !important;
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.layout-map-full .site-header-copy {
        grid-column: 3 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.4rem !important;
        line-height: 0.92 !important;
        letter-spacing: -0.045em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        grid-column: 2 !important;
        display: flex !important;
        gap: 4px !important;
        margin-left: 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        padding: 4px 6px !important;
        column-gap: 4px !important;
    }

    body.layout-map-full .site-header-brand {
        grid-template-columns: 12px 20px minmax(0, 1fr) !important;
        column-gap: 3px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        font-size: 0.36rem !important;
    }

    body.layout-map-full .icon-button {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        display: grid !important;
        grid-template-columns: 14px 22px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 4px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        grid-column: 1 !important;
        position: static !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        grid-column: 2 !important;
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.layout-map-full .site-header-copy {
        grid-column: 3 !important;
        min-width: 0 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.42rem !important;
        line-height: 0.92 !important;
        letter-spacing: -0.04em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        gap: 4px !important;
        margin-left: auto !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        display: grid !important;
        grid-template-columns: 16px 24px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 4px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        grid-column: 1 !important;
        display: inline-flex !important;
        position: static !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0f3f6e !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 12px !important;
        height: 12px !important;
        display: block !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        grid-column: 2 !important;
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.layout-map-full .site-header-copy {
        grid-column: 3 !important;
        min-width: 0 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.46rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        flex: 0 0 auto !important;
        gap: 4px !important;
        margin-left: 0 !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        gap: 4px !important;
        padding: 4px 6px !important;
    }

    body.layout-map-full .site-header-brand {
        grid-template-columns: 14px 22px minmax(0, 1fr) !important;
        column-gap: 3px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        font-size: 0.42rem !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 14px !important;
        height: 14px !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 118px !important;
        font-size: 0.5rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        gap: 4px !important;
        margin-left: auto !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Final mobile header override */
body.layout-map-full .site-header-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.layout-map-full .map-menu-toggle-header {
    display: none !important;
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .site-header-brand {
        gap: 4px !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 14px !important;
        height: 14px !important;
        fill: currentColor !important;
    }

    body.layout-map-full .site-header-logo {
        width: 26px !important;
        height: 26px !important;
        flex: 0 0 26px !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 122px !important;
        font-size: 0.54rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.035em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        gap: 4px !important;
        margin-left: auto !important;
    }

    body.layout-map-full .icon-button {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 13px !important;
        height: 13px !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        padding: 4px 6px !important;
        gap: 3px !important;
    }

    body.layout-map-full .site-header-brand {
        gap: 3px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 16px !important;
        height: 16px !important;
        flex-basis: 16px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        max-width: 108px !important;
        font-size: 0.48rem !important;
    }

    body.layout-map-full .icon-button {
        width: 26px !important;
        height: 26px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

body.layout-map-full .site-header-brand {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

body.layout-map-full .map-menu-toggle-header {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
}

body.layout-map-full .site-header-logo {
    flex: 0 0 auto;
}

body.layout-map-full .site-header-copy {
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 980px) {
    body.layout-map-full .site-header-brand {
        flex-wrap: nowrap !important;
    }
}

body.layout-map-full .map-menu-toggle-header {
    display: none;
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        margin: 0 !important;
        padding: 0;
        border: 1px solid #dbe5ee;
        border-radius: 11px;
        background: #fff;
        color: #0f3f6e;
        box-shadow: 0 6px 14px rgba(15, 43, 73, 0.05);
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    body.layout-map-full .site-header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .site-header-logo {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 130px !important;
        font-size: 0.58rem !important;
        line-height: 1 !important;
        letter-spacing: -0.03em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        gap: 6px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body.layout-map-full .icon-button {
        width: 30px !important;
        height: 30px !important;
        border-radius: 10px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-map-full .icon-badge {
        top: -6px !important;
        right: -6px !important;
        min-width: 15px !important;
        height: 15px !important;
        font-size: 0.56rem !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        max-width: 112px !important;
        font-size: 0.5rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
    }

    body.layout-map-full .icon-button {
        width: 28px !important;
        height: 28px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 13px !important;
        height: 13px !important;
    }
}

.map-menu-toggle-header {
    display: none;
}

@media (max-width: 980px) {
    body.layout-map-full .site-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 0;
        border: 1px solid #dbe5ee;
        border-radius: 11px;
        background: #fff;
        color: #0f3f6e;
        box-shadow: 0 6px 14px rgba(15, 43, 73, 0.05);
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    body.layout-map-full .site-header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-map-full .site-header-logo {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }

    body.layout-map-full .site-header-copy {
        min-width: 0 !important;
    }

    body.layout-map-full .site-header-kicker {
        display: none !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        display: block !important;
        max-width: 130px !important;
        font-size: 0.58rem !important;
        line-height: 1 !important;
        letter-spacing: -0.03em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body.layout-map-full .site-header-actions {
        gap: 6px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body.layout-map-full .icon-button {
        width: 30px !important;
        height: 30px !important;
        border-radius: 10px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-map-full .icon-badge {
        top: -6px !important;
        right: -6px !important;
        min-width: 15px !important;
        height: 15px !important;
        font-size: 0.56rem !important;
    }
}

@media (max-width: 375px) {
    body.layout-map-full .site-header {
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    body.layout-map-full .map-menu-toggle-header {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    body.layout-map-full .map-menu-toggle-header svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-map-full .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
    }

    body.layout-map-full .site-header-copy .brand-title {
        max-width: 112px !important;
        font-size: 0.5rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
    }

    body.layout-map-full .icon-button {
        width: 28px !important;
        height: 28px !important;
    }

    body.layout-map-full .icon-button svg {
        width: 13px !important;
        height: 13px !important;
    }
}

@media (max-width: 420px) {
    body:not(.login-page) .site-header {
        padding: 6px 8px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    body:not(.login-page) .site-header-brand {
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        align-items: center !important;
    }

    body:not(.login-page) .site-header-logo {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }

    body:not(.login-page) .site-header-copy {
        min-width: 0 !important;
    }

    body:not(.login-page) .site-header-kicker {
        font-size: 0.46rem !important;
        line-height: 1 !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 2px !important;
    }

    body:not(.login-page) .site-header-copy .brand-title {
        display: block !important;
        max-width: 130px !important;
        font-size: 0.62rem !important;
        line-height: 1.02 !important;
        letter-spacing: -0.01em !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body:not(.login-page) .site-header-actions {
        gap: 6px !important;
        flex: 0 0 auto !important;
    }

    body:not(.login-page) .icon-button {
        width: 30px !important;
        height: 30px !important;
        border-radius: 10px !important;
    }

    body:not(.login-page) .icon-button svg {
        width: 14px !important;
        height: 14px !important;
    }

    body:not(.login-page) .icon-badge {
        top: -7px !important;
        right: -6px !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.62rem !important;
    }

    body.layout-map-full .topbar,
    body.layout-map-full .topbar-map-full {
        padding: 6px 0 !important;
        margin-bottom: 8px !important;
    }

    body.layout-map-full .topbar-map-full {
        gap: 4px !important;
    }

    body.layout-map-full .map-dashboard-title {
        font-size: 0.95rem !important;
        line-height: 1.05 !important;
    }

    body.layout-map-full .map-header-welcome {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 560px) {
    body:not(.login-page) .site-header {
        padding: 8px 10px !important;
        gap: 10px !important;
        align-items: center !important;
    }

    body:not(.login-page) .site-header-brand {
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body:not(.login-page) .site-header-logo {
        width: 34px !important;
        height: 34px !important;
    }

    body:not(.login-page) .site-header-kicker {
        font-size: 0.55rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0.05em !important;
    }

    body:not(.login-page) .site-header-copy .brand-title {
        display: block !important;
        max-width: calc(100vw - 156px) !important;
        font-size: 0.8rem !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    body:not(.login-page) .site-header-actions {
        gap: 8px !important;
        margin-left: auto !important;
    }

    body:not(.login-page) .icon-button {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
    }

    body:not(.login-page) .icon-button svg {
        width: 16px !important;
        height: 16px !important;
    }

    body.layout-map-full .topbar,
    body.layout-map-full .topbar-map-full {
        margin-bottom: 10px !important;
        padding: 8px 0 !important;
    }

    body.layout-map-full .topbar-map-full {
        gap: 6px !important;
    }

    body.layout-map-full .map-dashboard-title {
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    body.layout-map-full .map-header-welcome {
        font-size: 0.84rem !important;
        white-space: normal !important;
        text-align: left !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .app-shell {
        display: block !important;
        min-height: auto !important;
    }

    body.layout-map-full .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 64px 12px 16px !important;
        overflow-x: hidden !important;
    }

    body.layout-map-full .topbar,
    body.layout-map-full .topbar-map-full {
        position: sticky !important;
        top: 0 !important;
        z-index: 1500 !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        padding: 10px 0 !important;
        background: linear-gradient(180deg, rgba(245, 248, 251, 0.98) 0%, rgba(245, 248, 251, 0.92) 100%) !important;
        backdrop-filter: blur(12px);
    }

    body.layout-map-full .topbar-map-full {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    body.layout-map-full .map-menu-toggle {
        display: inline-flex !important;
        position: fixed !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 1800 !important;
    }

    body.layout-map-full .sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: min(86vw, 320px) !important;
        max-width: 320px !important;
        height: calc(100vh - 56px) !important;
        padding: 16px 8px 18px !important;
        overflow-y: auto !important;
        background: #fff !important;
        border-right: 1px solid #d7e2ec !important;
        border-radius: 0 22px 22px 0 !important;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18) !important;
        transform: translateX(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
        z-index: 1700 !important;
    }

    body.layout-map-full.map-menu-open .sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.layout-map-full.map-menu-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 56px 0 0 0 !important;
        background: rgba(8, 15, 26, 0.42) !important;
        z-index: 1600 !important;
    }

    body.layout-map-full .map-dashboard-shell,
    body.layout-map-full .map-dashboard-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.layout-map-full .map-dashboard-shell {
        display: grid !important;
    }

    body.layout-map-full .map-dashboard-sidebar-left {
        position: static !important;
        width: 100% !important;
        align-self: stretch !important;
    }

    body.layout-map-full .map-dashboard-main {
        min-width: 0 !important;
        width: 100% !important;
    }

    body.layout-map-full .map-dashboard-stage,
    body.layout-map-full .map-dashboard-panel {
        padding: 12px !important;
    }

    body.layout-map-full .dashboard-map-stage {
        padding: 8px !important;
    }

    body.layout-map-full .dashboard-map-stage #branch-map {
        min-height: 320px !important;
        width: 100% !important;
    }

    body.layout-map-full .dashboard-map-overlay {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.layout-map-full .map-dashboard-toolbar,
    body.layout-map-full .summary-strip,
    body.layout-map-full .map-school-card-top,
    body.layout-map-full .map-bar-copy,
    body.layout-map-full .map-district-row,
    body.layout-map-full .map-dashboard-chart-panel .metric-item {
        display: grid !important;
        gap: 8px !important;
    }

    body.layout-map-full .map-search-form,
    body.layout-map-full .map-search-form .btn,
    body.layout-map-full .map-search-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.layout-map-full .map-metric-stack {
        grid-template-columns: 1fr !important;
    }

    body.layout-map-full .map-legend-dashboard {
        grid-template-columns: 1fr !important;
    }

    body.layout-map-full .map-legend-dashboard > span {
        white-space: normal !important;
    }

    body.layout-map-full .map-header-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    body.layout-map-full .map-header-welcome {
        white-space: normal !important;
        text-align: left !important;
    }
}

@media (max-width: 980px) {
    body.layout-map-full {
        overflow-x: hidden;
    }

    body.layout-map-full .app-shell {
        display: block;
        min-height: auto;
    }

    body.layout-map-full .main-content {
        margin-left: 0;
        padding: 72px 14px 18px;
        width: 100%;
        min-width: 0;
    }

    body.layout-map-full .topbar,
    body.layout-map-full .topbar-map-full {
        position: sticky;
        top: 0;
        z-index: 890;
        margin-bottom: 14px;
        padding: 12px 0;
        background: linear-gradient(180deg, rgba(245, 248, 251, 0.98) 0%, rgba(245, 248, 251, 0.92) 100%);
        backdrop-filter: blur(12px);
    }

    body.layout-map-full .topbar-map-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    body.layout-map-full .topbar-map-full > div {
        width: 100%;
    }

    body.layout-map-full .map-menu-toggle {
        display: inline-flex;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1200;
    }

    body.layout-map-full .sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        width: min(88vw, 320px);
        height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 16px 8px 18px;
        background: #fff;
        border-right: 1px solid #d7e2ec;
        border-radius: 0 22px 22px 0;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18);
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
        z-index: 1100;
    }

    body.layout-map-full.map-menu-open .sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.layout-map-full.map-menu-open::before {
        content: '';
        position: fixed;
        inset: 64px 0 0 0;
        background: rgba(8, 15, 26, 0.42);
        z-index: 1000;
    }

    body.layout-map-full .map-dashboard-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.layout-map-full .map-dashboard-sidebar-left {
        position: static;
        width: 100%;
        align-self: stretch;
    }

    body.layout-map-full .map-dashboard-main {
        min-width: 0;
    }

    body.layout-map-full .map-metric-stack {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    body.layout-map-full .map-dashboard-stage,
    body.layout-map-full .map-dashboard-panel {
        padding: 14px;
    }

    body.layout-map-full .dashboard-map-stage {
        padding: 10px;
    }

    body.layout-map-full .dashboard-map-overlay {
        flex-direction: column;
        align-items: flex-start;
    }

    body.layout-map-full .dashboard-map-stage #branch-map {
        min-height: clamp(320px, 54vh, 420px);
    }

    body.layout-map-full .map-dashboard-bottom-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.layout-map-full .map-dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.layout-map-full .map-search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    body.layout-map-full .map-search-input,
    body.layout-map-full .map-search-form .btn {
        width: 100%;
        min-width: 0;
    }

    body.layout-map-full .map-legend-dashboard {
        grid-template-columns: 1fr;
    }

    body.layout-map-full .map-legend-dashboard > span {
        white-space: normal;
    }

    body.layout-map-full .summary-strip {
        align-items: flex-start;
    }

    body.layout-map-full .map-school-card-top,
    body.layout-map-full .map-bar-copy,
    body.layout-map-full .map-district-row,
    body.layout-map-full .map-dashboard-chart-panel .metric-item {
        grid-template-columns: 1fr;
    }

    body.layout-map-full .map-school-card-top strong,
    body.layout-map-full .map-bar-copy strong,
    body.layout-map-full .map-bar-copy span,
    body.layout-map-full .map-district-row strong,
    body.layout-map-full .map-district-row .text-muted,
    body.layout-map-full .map-dashboard-chart-panel .metric-item span,
    body.layout-map-full .map-dashboard-chart-panel .metric-item strong {
        text-align: left;
    }

    body.layout-map-full .map-district-shortage {
        justify-self: start;
    }

    body.layout-map-full .map-header-inline {
        flex-direction: column;
        gap: 6px;
    }

    body.layout-map-full .map-header-welcome {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    body.layout-map-full .main-content {
        padding: 68px 12px 16px;
    }

    body.layout-map-full .map-metric-stack {
        grid-template-columns: 1fr;
    }

    body.layout-map-full .map-dashboard-stage,
    body.layout-map-full .map-dashboard-panel {
        padding: 12px;
    }

    body.layout-map-full .dashboard-map-stage #branch-map {
        min-height: 360px;
    }

    body.layout-map-full .map-dashboard-title {
        font-size: 1.15rem;
    }

    body.layout-map-full .dashboard-map-overlay {
        font-size: 0.84rem;
    }

    body.layout-map-full .map-school-card,
    body.layout-map-full .map-district-row,
    body.layout-map-full .map-bar-item,
    body.layout-map-full .map-dashboard-chart-panel .metric-item {
        gap: 8px;
    }
}

body.layout-map-full .map-header-card {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 16px 18px;
    margin: 0;
}

body.layout-map-full .topbar-map-full > div:last-child {
    min-width: max-content;
    padding-top: 8px;
}

@media (max-width: 980px) {
    body.layout-map-full .topbar-map-full > div:last-child {
        min-width: 0;
        padding-top: 0;
    }
}
body.layout-map-full .map-header-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
}

body.layout-map-full .map-header-card .map-dashboard-title {
    flex: 1 1 100%;
}

body.layout-map-full .map-header-welcome {
    margin: 0;
    color: rgba(223, 235, 252, 0.82);
    font-size: 1rem;
}
body.layout-map-full .map-header-card {
    align-items: flex-start;
}

body.layout-map-full .map-header-card .map-dashboard-kicker {
    flex: 1 1 100%;
}

body.layout-map-full .map-header-card .map-dashboard-title {
    flex: 1 1 auto;
    margin: 0;
}

body.layout-map-full .map-header-welcome {
    flex: 0 0 auto;
    align-self: center;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card .map-dashboard-title,
    body.layout-map-full .map-header-welcome {
        flex: 1 1 100%;
        text-align: left;
        white-space: normal;
    }
}
body.layout-map-full .map-header-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex: 1 1 100%;
}

body.layout-map-full .map-header-datetime {
    color: rgba(223, 235, 252, 0.82);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-topline {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    body.layout-map-full .map-header-datetime {
        white-space: normal;
    }
}
body.layout-map-full .map-header-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "topline datetime"
        "title welcome";
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
}

body.layout-map-full .map-header-topline {
    grid-area: topline;
    display: block;
    min-width: 0;
}

body.layout-map-full .map-header-card .map-dashboard-kicker {
    display: inline-flex;
    max-width: 100%;
}

body.layout-map-full .map-header-datetime {
    grid-area: datetime;
    text-align: right;
    white-space: nowrap;
}

body.layout-map-full .map-header-card .map-dashboard-title {
    grid-area: title;
    min-width: 0;
    line-height: 1.15;
}

body.layout-map-full .map-header-welcome {
    grid-area: welcome;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "datetime"
            "title"
            "welcome";
    }

    body.layout-map-full .map-header-datetime,
    body.layout-map-full .map-header-welcome {
        text-align: left;
        white-space: normal;
    }
}
body.layout-map-full .map-header-topline {
    justify-content: flex-start;
    gap: 12px;
}

body.layout-map-full .map-header-datetime {
    text-align: left;
}
body.layout-map-full .map-header-topline {
    justify-content: space-between;
    gap: 16px;
}

body.layout-map-full .map-header-datetime {
    text-align: right;
}
body.layout-map-full .map-header-topline {
    width: 100%;
    flex: 1 1 100%;
}

body.layout-map-full .map-header-topline .map-dashboard-kicker {
    margin-right: auto;
}
body.layout-map-full .map-header-card {
    grid-template-areas:
        "topline topline"
        "title side";
}

body.layout-map-full .map-header-side {
    grid-area: side;
    display: grid;
    justify-items: end;
    gap: 6px;
}

body.layout-map-full .map-header-datetime {
    grid-area: auto;
    text-align: right;
}

body.layout-map-full .map-header-welcome {
    grid-area: auto;
    text-align: right;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-areas:
            "topline"
            "title"
            "side";
    }

    body.layout-map-full .map-header-side {
        justify-items: start;
    }

    body.layout-map-full .map-header-datetime,
    body.layout-map-full .map-header-welcome {
        text-align: left;
    }
}
body.layout-map-full .map-header-card {
    grid-template-areas:
        "topline side"
        "title side";
}

body.layout-map-full .map-header-topline {
    grid-area: topline;
    width: auto;
    flex: 0 1 auto;
}

body.layout-map-full .map-header-side {
    align-self: start;
    padding-top: 2px;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-areas:
            "topline"
            "side"
            "title";
    }
}
body.layout-map-full .map-header-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "topline datetime"
        "title side";
}

body.layout-map-full .map-header-topline {
    grid-area: topline;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

body.layout-map-full .map-header-datetime {
    grid-area: datetime;
    text-align: right;
    white-space: nowrap;
    align-self: center;
}

body.layout-map-full .map-header-side {
    grid-area: side;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body.layout-map-full .map-header-welcome {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "datetime"
            "title"
            "side";
    }

    body.layout-map-full .map-header-datetime,
    body.layout-map-full .map-header-welcome,
    body.layout-map-full .map-header-side {
        text-align: left;
        justify-content: flex-start;
        white-space: normal;
    }
}
body.layout-map-full .map-header-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "topline side"
        "title side";
}

body.layout-map-full .map-header-topline {
    grid-area: topline;
    width: 100%;
    display: flex;
    align-items: center;
}

body.layout-map-full .map-header-topline .map-dashboard-kicker {
    margin-right: 0;
}

body.layout-map-full .map-header-side {
    grid-area: side;
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 6px;
    padding-top: 2px;
}

body.layout-map-full .map-header-datetime {
    text-align: right;
    white-space: nowrap;
}

body.layout-map-full .map-header-welcome {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "side"
            "title";
    }

    body.layout-map-full .map-header-side {
        justify-items: start;
    }

    body.layout-map-full .map-header-datetime,
    body.layout-map-full .map-header-welcome {
        text-align: left;
        white-space: normal;
    }
}
body.layout-map-full .map-header-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "topline datetime"
        "title welcome";
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
}

body.layout-map-full .map-header-topline {
    grid-area: topline;
    min-width: 0;
}

body.layout-map-full .map-header-datetime {
    grid-area: datetime;
    text-align: right;
    white-space: nowrap;
    color: rgba(223, 235, 252, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
}

body.layout-map-full .map-header-card .map-dashboard-title {
    grid-area: title;
    margin: 0;
    min-width: 0;
}

body.layout-map-full .map-header-welcome {
    grid-area: welcome;
    margin: 0;
    text-align: right;
    white-space: nowrap;
    color: rgba(223, 235, 252, 0.82);
}

@media (max-width: 980px) {
    body.layout-map-full .map-header-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "datetime"
            "title"
            "welcome";
    }

    body.layout-map-full .map-header-datetime,
    body.layout-map-full .map-header-welcome {
        text-align: left;
        white-space: normal;
    }
}


.map-dashboard-shell {
    grid-template-columns: 240px minmax(0, 1fr);
}

.map-dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .map-dashboard-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .map-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

body.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #edf1f6;
}

body.login-page .login-shell {
    width: 100%;
    display: grid;
    place-items: center;
}

body.login-page .login-card {
    width: min(100%, 448px);
    padding: 0 26px 28px;
    border-radius: 18px;
    border: 0;
    box-shadow: 0 16px 38px rgba(25, 42, 70, 0.14);
    overflow: hidden;
}

body.login-page .login-banner {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: 0 auto 12px;
    background: #fff;
}

body.login-page .login-copy {
    text-align: center;
    margin: 14px 0 10px;
}

body.login-page .login-copy h1 {
    margin: 0;
    color: #0b2b49;
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.login-page .login-subtitle {
    margin: 6px 0 0;
    font-size: 0.96rem;
    line-height: 1.35;
    color: #4f6381;
}

body.login-page .login-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eaf3ff;
    border-left: 4px solid #5a97eb;
    color: #2f3d52;
    font-size: 0.95rem;
    line-height: 1.35;
}

body.login-page .login-note-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: #5a6e87;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

body.login-page .login-form {
    gap: 14px;
}

body.login-page .login-field {
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0e2d4c;
}

body.login-page .login-field span {
    display: inline-block;
}

body.login-page .login-field input {
    height: 50px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid #d7e1ee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

body.login-page .login-field input:focus {
    outline: none;
    border-color: #7fb1f5;
    box-shadow: 0 0 0 4px rgba(90, 151, 235, 0.16);
}

body.login-page .login-password-field .password-input-wrap {
    position: relative;
}

body.login-page .login-password-field input {
    padding-right: 52px;
}

body.login-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5c6f87;
}

body.login-page .password-toggle:hover,
body.login-page .password-toggle:focus-visible {
    background: rgba(90, 111, 135, 0.09);
    box-shadow: none;
}

body.login-page .password-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.login-page .login-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
}

body.login-page .login-link {
    color: #214f8f;
    font-size: 0.92rem;
    font-weight: 800;
}

body.login-page .login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    border-radius: 12px;
    background: linear-gradient(90deg, #1b7c3e 0%, #3150a9 100%);
    box-shadow: 0 12px 22px rgba(35, 79, 134, 0.22);
    font-size: 1rem;
}

body.login-page .login-submit:hover {
    filter: brightness(1.03);
}

body.login-page .login-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

/* UI refresh overrides */
body:not(.login-page) .site-header {
    padding: 16px 22px;
    gap: 16px;
    flex-wrap: nowrap;
}

body:not(.login-page) .site-header-brand {
    min-width: 0;
    flex: 1 1 auto;
}

body:not(.login-page) .site-header-logo {
    width: 45px;
    height: 45px;
}

body:not(.login-page) .site-header-copy .brand-title {
    font-size: 18px;
    line-height: 1.02;
    font-weight: 100;
    font-synthesis: none;
    color: #0f172a;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:not(.login-page) .site-header-actions {
    margin-left: auto;
    gap: 10px;
}

body:not(.login-page) .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

body:not(.login-page) .app-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 70px);
}

body:not(.login-page) .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 292px;
    align-self: start;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 20px 8px 18px;
    background: #fff;
    border-right: 1px solid #d7e2ec;
    color: var(--text);
    z-index: 850;
}

body:not(.login-page) .sidebar-profile {
    margin: 0 4px 14px;
    padding: 0 10px 10px;
    text-align: center;
}

body:not(.login-page) .sidebar-avatar {
    display: none;
}

body:not(.login-page) .sidebar-name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    color: #2f3e52;
}

body:not(.login-page) .sidebar-email {
    margin: 6px 0 0;
    color: #8e9fba;
    font-size: 15px;
    font-weight: 400;
    word-break: break-word;
}

body:not(.login-page) .sidebar-datetime {
    display: block;
    margin: 6px 0 0;
    color: #8a97ab;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

body:not(.login-page) .sidebar-role {
    margin: 7px 0 0;
    color: #0c7c61;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body:not(.login-page) .nav-links {
    gap: 8px;
    margin-top: 0;
}

body:not(.login-page) .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 18px;
    background: transparent;
    color: #43556f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    width: calc(100% - 8px);
    margin-inline: 4px;
    text-align: left;
}

body:not(.login-page) .nav-links a:hover {
    transform: translateX(1px);
    background: rgba(216, 225, 236, 0.34);
    color: #334a63;
    box-shadow: none;
}

body:not(.login-page) .nav-links a.active {
    background: linear-gradient(90deg, #0c7b61 0%, #3042a4 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(16, 47, 104, 0.22);
}

body:not(.login-page) .nav-links a::before {
    content: "";
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background-color: currentColor;
    opacity: 0.78;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body:not(.login-page) .nav-links a:nth-child(1)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-8.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-8.5Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(2)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(3)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5ZM11 13h2v4h4v2h-4v4h-2v-4H7v-2h4v-4Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5ZM11 13h2v4h4v2h-4v4h-2v-4H7v-2h4v-4Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(4)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5ZM6 15h12v2H6v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10l6 6v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm10 1.5V11h5.5L14 5.5ZM6 15h12v2H6v-2Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(5)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16v2H4v-2Zm1-8 5 5L21 5l-1.4-1.4-11 11-3.6-3.6L5 11Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16v2H4v-2Zm1-8 5 5L21 5l-1.4-1.4-11 11-3.6-3.6L5 11Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(6)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h5v2H6v10h3v2H4V5Zm6 7 5-5v3h5v4h-5v3l-5-5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h5v2H6v10h3v2H4V5Zm6 7 5-5v3h5v4h-5v3l-5-5Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a:nth-child(7)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17v-2H4V9h6V7l5 5-5 5Zm9-14H11a2 2 0 0 0-2 2v2h2V5h8v14h-8v-2H9v2a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17v-2H4V9h6V7l5 5-5 5Zm9-14H11a2 2 0 0 0-2 2v2h2V5h8v14h-8v-2H9v2a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z'/%3E%3C/svg%3E");
}

body:not(.login-page) .nav-links a.active::before {
    opacity: 1;
}

body:not(.login-page) .main-content {
    padding: 24px;
    margin-left: 292px;
    min-width: 0;
}

body:not(.login-page) .topbar {
    margin-bottom: 18px;
}

body:not(.login-page) .panel,
body:not(.login-page) .data-card,
body:not(.login-page) .table-card,
body:not(.login-page) .map-card,
body:not(.login-page) .detail-card {
    border-radius: 20px;
    border: 1px solid rgba(211, 222, 232, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(15, 43, 73, 0.08);
}

body:not(.login-page) .panel,
body:not(.login-page) .data-card,
body:not(.login-page) .table-card,
body:not(.login-page) .map-card,
body:not(.login-page) .detail-card {
    padding: 22px;
}

body:not(.login-page) .btn,
body:not(.login-page) button {
    border-radius: 12px;
    font-weight: 700;
}

body:not(.login-page) .btn-primary {
    background: linear-gradient(90deg, #0c7b61 0%, #3042a4 100%);
    box-shadow: 0 12px 20px rgba(16, 47, 104, 0.16);
}

body:not(.login-page) .btn-secondary {
    background: #edf3f9;
    color: #26384d;
}

body:not(.login-page) .topbar h2 {
    margin-bottom: 4px;
    color: #11263d;
}

body:not(.login-page) .topbar p {
    color: #6c7d91;
}

body.layout-map-full .main-content {
    padding: 24px;
}

body.layout-map-full .topbar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

body.layout-map-full .map-menu-toggle {
    position: static;
    flex: 0 0 auto;
    min-width: 74px;
    margin-top: 2px;
    border-radius: 999px;
    background: rgba(9, 18, 31, 0.94);
    color: #edf4ff;
    border: 1px solid rgba(141, 183, 240, 0.3);
    box-shadow: 0 14px 30px rgba(3, 10, 21, 0.28);
}

body.layout-map-full .topbar > div {
    flex: 1 1 auto;
    min-width: 0;
}

body.layout-map-full .map-header-card {
    margin: 0;
    padding: 16px 18px;
    border-radius: 22px;
}

body.layout-map-full .map-header-card .map-dashboard-title {
    margin: 0;
    line-height: 1.15;
}

body.layout-import-page .main-content {
    background:
        radial-gradient(circle at top right, rgba(13, 75, 136, 0.06), transparent 24%),
        linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
}

body.layout-import-page .import-page-shell {
    display: grid;
    gap: 14px;
}

body.layout-import-page .import-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: stretch;
}

body.layout-import-page .import-hero-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

body.layout-import-page .import-eyebrow {
    color: #0b7a44;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-import-page .import-title {
    margin: 0;
    color: #11263d;
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
    line-height: 1.15;
    font-weight: 800;
}

body.layout-import-page .import-subtitle {
    margin: 0;
    color: #51657c;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 62ch;
}

body.layout-import-page .import-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

body.layout-import-page .import-hero-actions .btn {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
}

body.layout-import-page .import-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 14px;
}

body.layout-import-page .import-upload-panel,
body.layout-import-page .import-rules-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

body.layout-import-page .import-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.layout-import-page .import-panel-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f5ec;
    color: #1d7f52;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

body.layout-import-page .import-form {
    display: grid;
    gap: 12px;
    align-content: start;
}

body.layout-import-page .import-file-field {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed #cfdbea;
    background: #f8fbfe;
    color: #334a63;
    font-weight: 600;
    font-size: 0.92rem;
    align-content: start;
    justify-items: start;
}

body.layout-import-page .import-file-field input[type="file"] {
    width: 100%;
    max-width: 100%;
    display: block;
}

body.layout-import-page .import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    margin-top: -2px;
}

body.layout-import-page .import-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
    border-radius: 10px;
}

body.layout-import-page .import-note {
    margin-top: 2px;
}

body.layout-import-page .import-metric-list {
    display: grid;
    gap: 8px;
}

body.layout-import-page .import-metric-list .metric-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

body.layout-import-page .import-upload-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.layout-import-page .import-upload-tip {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe5ee;
    color: #41576f;
    line-height: 1.45;
    font-size: 0.92rem;
    box-shadow: 0 8px 20px rgba(15, 43, 73, 0.04);
}

body.layout-import-page .import-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

body.layout-import-page .import-warning-card {
    margin-top: 18px;
}

@media (max-width: 980px) {
    body:not(.login-page) .site-header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    body:not(.login-page) .site-header-actions {
        margin-left: auto;
    }

    body:not(.login-page) .site-header-copy .brand-title {
        white-space: normal;
        font-size: 0.98rem;
    }

    body:not(.login-page) .app-shell {
        grid-template-columns: 1fr;
    }

    body:not(.login-page) .main-content {
        margin-left: 0;
    }

    body:not(.login-page) .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(217, 227, 238, 0.9);
    }

    body.layout-map-full .topbar {
        flex-wrap: wrap;
    }

    body.layout-map-full .main-content,
    body.layout-map-full.map-menu-open .main-content {
        padding: 16px;
        margin-left: 0;
    }

    body.layout-import-page .import-hero,
    body.layout-import-page .import-grid,
    body.layout-import-page .import-upload-strip,
    body.layout-import-page .import-results-grid {
        grid-template-columns: 1fr;
    }
}

body.login-page .login-alert {
    margin-bottom: 16px;
}

body.login-page .login-card form {
    display: grid;
    gap: 14px;
}

@media (max-width: 560px) {
    body.login-page {
        padding: 16px;
    }

    body.login-page .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.login-page .login-banner {
        width: min(100%, 220px);
    }

    body.login-page .login-copy h1 {
        font-size: 2.25rem;
    }

    body.login-page .login-subtitle {
        font-size: 0.95rem;
    }
}

/* Dashboard alignment fix */
body.layout-map-full .map-dashboard-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    align-items: start;
}

body.layout-map-full .map-dashboard-sidebar-left {
    position: sticky;
    top: 86px;
    align-self: start;
}

body.layout-map-full .map-dashboard-main {
    min-width: 0;
}

body.layout-map-full .map-dashboard-main > * {
    min-width: 0;
}

body.layout-map-full .map-dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

@media (max-width: 1280px) {
    body.layout-map-full .map-dashboard-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    body.layout-map-full .map-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .map-dashboard-shell,
    body.layout-map-full .map-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    body.layout-map-full .map-dashboard-sidebar-left {
        position: static;
    }
    body.layout-map-full .map-metric-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dashboard-only visual refresh */
body.layout-map-full {
    background: linear-gradient(180deg, #f5f8fb 0%, #e9eef5 100%);
}

body.layout-map-full .map-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.layout-map-full .map-dashboard-sidebar-left {
    position: static;
    top: auto;
    align-self: stretch;
    width: 100%;
}

body.layout-map-full .map-metric-stack {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

body.layout-map-full .map-metric-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(211, 222, 232, 0.95);
    box-shadow: 0 14px 30px rgba(15, 43, 73, 0.08);
    padding: 16px;
}

body.layout-map-full .map-metric-label {
    color: #6a7c92;
    font-size: 0.75rem;
}

body.layout-map-full .map-metric-meta {
    color: #7d8da3;
    font-size: 0.88rem;
    line-height: 1.35;
}

body.layout-map-full .map-metric-value {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

body.layout-map-full .map-dashboard-panel,
body.layout-map-full .map-card,
body.layout-map-full .table-card,
body.layout-map-full .panel,
body.layout-map-full .data-card,
body.layout-map-full .detail-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border: 1px solid rgba(211, 222, 232, 0.95);
    box-shadow: 0 16px 34px rgba(15, 43, 73, 0.08);
}

body.layout-map-full .map-dashboard-stage {
    padding: 18px;
}

body.layout-map-full .dashboard-map-stage {
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid rgba(211, 222, 232, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.layout-map-full .dashboard-map-overlay {
    background: linear-gradient(90deg, #0d4b88 0%, #0a3a69 100%);
    color: #edf4ff;
    box-shadow: none;
}

body.layout-map-full .dashboard-map-overlay strong {
    color: #ffe987;
}

body.layout-map-full .map-dashboard-toolbar {
    margin-bottom: 14px;
}

body.layout-map-full .map-search-input {
    min-width: 0;
    background: #fff;
}

body.layout-map-full .summary-strip {
    align-items: baseline;
}

body.layout-map-full .map-dashboard-panel-title,
body.layout-map-full .section-title {
    color: #11263d;
}

body.layout-map-full .map-dashboard-chart-panel .metric-item,
body.layout-map-full .map-district-row {
    border-bottom-color: #edf2f7;
}

body.layout-map-full .map-bar-copy strong,
body.layout-map-full .map-bar-copy span,
body.layout-map-full .map-bar-value,
body.layout-map-full .map-district-row strong,
body.layout-map-full .map-district-row .text-muted,
body.layout-map-full .map-school-card-copy,
body.layout-map-full .map-school-card-stats,
body.layout-map-full .map-dashboard-chart-panel .metric-item span,
body.layout-map-full .map-dashboard-chart-panel .metric-item strong {
    color: #41576f;
}

body.layout-map-full .map-dashboard-chart-panel .metric-item strong,
body.layout-map-full .map-bar-copy strong,
body.layout-map-full .map-district-row strong {
    color: #11263d;
}

body.layout-map-full .map-school-card {
    background: #fff;
    color: var(--text);
    border: 1px solid #e5ebf2;
    box-shadow: 0 10px 20px rgba(15, 43, 73, 0.06);
}

body.layout-map-full .map-school-card:hover {
    background: #f8fbfe;
    border-color: #cfdbea;
}

body.layout-map-full .map-district-shortage.is-danger {
    background: #fdecea;
    color: #b2352a;
}

body.layout-map-full .map-district-shortage.is-safe {
    background: #e7f5ec;
    color: #1d7f52;
}

body.layout-map-full .map-legend,
body.layout-map-full .map-legend-note,
body.layout-map-full .text-muted,
body.layout-map-full .map-metric-meta {
    color: var(--muted);
}

body.layout-map-full .map-dashboard-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

body.layout-map-full .map-dashboard-main > section,
body.layout-map-full .map-dashboard-main > .map-dashboard-panel,
body.layout-map-full .map-dashboard-main > .map-card,
body.layout-map-full .map-dashboard-main > .table-card {
    width: 100%;
}

body.layout-map-full .map-dashboard-main > .map-dashboard-stage,
body.layout-map-full .map-dashboard-main > .map-dashboard-bottom-grid,
body.layout-map-full .map-dashboard-main > .table-card,
body.layout-map-full .map-dashboard-main > section {
    justify-self: stretch;
}

body.layout-map-full .map-dashboard-stage,
body.layout-map-full .map-dashboard-bottom-grid {
    width: 100%;
    min-width: 0;
}

body.layout-reports-page .reports-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.layout-reports-page .reports-summary-grid .data-card {
    min-height: 88px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.layout-reports-page .reports-summary-grid .stat-number {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.05;
}

body.layout-reports-page .reports-summary-grid .stat-label {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.25;
}

body.layout-reports-page .reports-table-card {
    margin-top: 18px;
    overflow: hidden;
}

body.layout-reports-page .report-table {
    table-layout: auto;
    min-width: 1280px;
}

body.layout-reports-page .report-table th,
body.layout-reports-page .report-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
    line-height: 1.35;
}

body.layout-reports-page .report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    color: #5e7086;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    vertical-align: bottom;
    white-space: normal;
}

body.layout-reports-page .report-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

body.layout-reports-page .report-table tbody tr:hover {
    background: #f4f8fc;
}

body.layout-reports-page .report-table td {
    vertical-align: middle;
    white-space: normal;
}

body.layout-reports-page .report-table td:nth-child(1) {
    width: 92px;
    font-weight: 700;
    white-space: nowrap;
}

body.layout-reports-page .report-table td:nth-child(2) {
    width: 280px;
    font-weight: 700;
    word-break: break-word;
}

body.layout-reports-page .report-table td:nth-child(3) {
    width: 112px;
    white-space: nowrap;
}

body.layout-reports-page .report-table td:nth-child(4) {
    width: 132px;
    white-space: nowrap;
}

body.layout-reports-page .report-table td:nth-child(5),
body.layout-reports-page .report-table td:nth-child(6),
body.layout-reports-page .report-table td:nth-child(7),
body.layout-reports-page .report-table td:nth-child(8),
body.layout-reports-page .report-table td:nth-child(9),
body.layout-reports-page .report-table td:nth-child(10),
body.layout-reports-page .report-table td:nth-child(11),
body.layout-reports-page .report-table td:nth-child(12) {
    width: 96px;
    text-align: center;
    white-space: nowrap;
}

body.layout-reports-page .report-table th:nth-child(5),
body.layout-reports-page .report-table th:nth-child(6),
body.layout-reports-page .report-table th:nth-child(7),
body.layout-reports-page .report-table th:nth-child(8),
body.layout-reports-page .report-table th:nth-child(9),
body.layout-reports-page .report-table th:nth-child(10),
body.layout-reports-page .report-table th:nth-child(11),
body.layout-reports-page .report-table th:nth-child(12) {
    text-align: center;
}

body.layout-reports-page .report-table a {
    color: #102f68;
    text-decoration: none;
}

body.layout-reports-page .report-table a:hover {
    text-decoration: underline;
}

body.layout-reports-page .report-table .badge {
    min-width: 82px;
    justify-content: center;
}

body.layout-branch-form-page .grid-2 {
    grid-template-columns: 1fr;
}

body.layout-branch-form-page .grid-2 > .panel {
    width: 100%;
}

body.layout-settings-page .settings-panel {
    display: grid;
    gap: 16px;
}

body.layout-settings-page .settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body.layout-settings-page .settings-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.layout-settings-page .settings-manual-button {
    white-space: nowrap;
}

body.layout-settings-page .settings-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

body.layout-settings-page .settings-status.is-ok {
    background: #e7f5ec;
    color: #1d7f52;
}

body.layout-settings-page .settings-status.is-warn {
    background: #fff4d9;
    color: #8a5a00;
}

body.layout-settings-page .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

body.layout-settings-page .settings-card-wide {
    grid-column: 1 / -1;
}

body.layout-settings-page .settings-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbe5ee;
    background: #f8fbfe;
    display: grid;
    gap: 12px;
    align-self: start;
}

body.layout-settings-page .settings-card h4 {
    margin: 0;
    font-size: 1rem;
}

body.layout-settings-page .settings-card > p.text-muted {
    margin: 0;
}

body.layout-settings-page .settings-form {
    display: grid;
    gap: 12px;
}

body.layout-settings-page .settings-form .actions {
    justify-content: flex-start;
}

body.layout-settings-page .smtp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.layout-settings-page .smtp-field {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

body.layout-settings-page .smtp-field span {
    color: #17324d;
}

body.layout-settings-page .smtp-field-full {
    grid-column: 1 / -1;
}

body.layout-settings-page .settings-note {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe5ee;
    background: #fff;
    color: #41576f;
}

body.layout-settings-page .settings-note-ok,
body.layout-settings-page .settings-note-warn {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

body.layout-settings-page .settings-note-ok {
    background: #e7f5ec;
    color: #1d7f52;
}

body.layout-settings-page .settings-note-warn {
    background: #fff4d9;
    color: #8a5a00;
}

body.layout-settings-page .settings-manual-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(9, 18, 31, 0.56);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

body.layout-settings-page .settings-manual-backdrop[hidden] {
    display: none !important;
}

body.layout-settings-page .settings-manual-modal {
    width: min(980px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #dbe5ee;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 43, 73, 0.24);
}

body.layout-settings-page .settings-manual-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

body.layout-settings-page .settings-manual-kicker {
    margin: 0 0 4px;
    color: #0b7a44;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-settings-page .settings-manual-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid #dbe5ee;
    background: #f8fbfe;
    color: #17324d;
    font-size: 1.4rem;
    line-height: 1;
}

body.layout-settings-page .settings-manual-body {
    display: grid;
    gap: 16px;
}

body.layout-settings-page .settings-manual-intro,
body.layout-settings-page .settings-manual-section {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe5ee;
    background: #f8fbfe;
}

body.layout-settings-page .settings-manual-intro {
    color: #41576f;
    font-size: 0.98rem;
    line-height: 1.65;
}

body.layout-settings-page .settings-manual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.layout-settings-page .settings-manual-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe5ee;
    background: #fff;
}

body.layout-settings-page .settings-manual-card h4,
body.layout-settings-page .settings-manual-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

body.layout-settings-page .settings-manual-card p,
body.layout-settings-page .settings-manual-section p,
body.layout-settings-page .settings-manual-section li {
    color: #41576f;
    line-height: 1.65;
}

body.layout-settings-page .settings-manual-section ol,
body.layout-settings-page .settings-manual-section ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 1280px) {
    body.layout-map-full .map-metric-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.layout-map-full .map-metric-stack {
        grid-template-columns: 1fr;
    }

    body.layout-settings-page .settings-header,
    body.layout-settings-page .settings-header-actions {
        align-items: stretch;
    }

    body.layout-settings-page .settings-header {
        flex-direction: column;
    }

    body.layout-settings-page .settings-header-actions {
        justify-content: flex-start;
    }

    body.layout-settings-page .settings-manual-grid {
        grid-template-columns: 1fr;
    }

    body.layout-settings-page .settings-manual-modal {
        padding: 16px;
        max-height: 90vh;
    }

    body.layout-settings-page .smtp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.layout-map-full .map-dashboard-shell,
    body.layout-map-full .map-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    body.layout-map-full .map-dashboard-sidebar-left {
        position: static;
    }

    body.layout-reports-page .reports-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.layout-reports-page .report-table {
        table-layout: auto;
    }

    body.layout-reports-page .report-table td,
    body.layout-reports-page .report-table th {
        width: auto;
        white-space: normal;
    }

    body.layout-settings-page .settings-grid {
        grid-template-columns: 1fr;
    }
}

body.layout-map-full .sidebar {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 292px;
    align-self: start;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 20px 8px 18px;
    background: #fff;
    border-right: 1px solid #d7e2ec;
    z-index: 850;
}

body.layout-map-full .map-menu-toggle,
body.layout-map-full.map-menu-open .map-menu-toggle {
    display: none;
}

body.layout-map-full .app-shell {
    grid-template-columns: 1fr;
}

body.layout-map-full .main-content {
    min-width: 0;
    margin-left: 292px;
}

@media (max-width: 980px) {
    body:not(.login-page) .sidebar {
        position: static;
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        overflow: visible;
    }

    body.layout-map-full .sidebar {
        position: static;
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        overflow: visible;
    }
}

body.layout-map-full .sidebar-profile {
    margin: 0 4px 14px;
    padding: 0 10px 10px;
    text-align: center;
}

body.layout-map-full .sidebar-avatar {
    display: none;
}

body.layout-map-full .sidebar-name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    color: #2f3e52;
}

body.layout-map-full .sidebar-email {
    margin: 6px 0 0;
    color: #8e9fba;
    font-size: 15px;
    font-weight: 400;
    word-break: break-word;
}

@media (max-width: 980px) {
    body.layout-admin-mobile {
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0f3f6e !important;
        line-height: 0 !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 11px !important;
        height: 11px !important;
        fill: currentColor !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.layout-admin-mobile .site-header-copy {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.layout-admin-mobile .site-header-kicker {
        display: none !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        display: block !important;
        max-width: 100% !important;
        font-size: 0.46rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.05em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.layout-admin-mobile .site-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    body.layout-admin-mobile .icon-button svg {
        width: 12px !important;
        height: 12px !important;
    }

    body.layout-admin-mobile .app-shell {
        display: block !important;
        min-height: auto !important;
    }

    body.layout-admin-mobile .sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: min(88vw, 320px) !important;
        height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        padding: 14px 8px 16px !important;
        border-right: 1px solid #d7e2ec !important;
        border-radius: 0 22px 22px 0 !important;
        background: #fff !important;
        box-shadow: 0 18px 40px rgba(15, 43, 73, 0.18) !important;
        transform: translateX(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
        z-index: 1700 !important;
    }

    body.layout-admin-mobile.map-menu-open .sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.layout-admin-mobile.map-menu-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 56px 0 0 0 !important;
        background: rgba(8, 15, 26, 0.42) !important;
        z-index: 1600 !important;
    }

    body.layout-admin-mobile .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 54px 10px 12px !important;
        overflow-x: hidden !important;
    }

    body.layout-admin-mobile .topbar,
    body.layout-admin-mobile .topbar-map-full {
        margin-bottom: 6px !important;
        padding: 0 !important;
    }

    body.layout-admin-mobile .topbar h2 {
        margin: 0 !important;
        font-size: 0.92rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .topbar p {
        margin: 2px 0 0 !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    body.layout-admin-mobile .panel,
    body.layout-admin-mobile .data-card,
    body.layout-admin-mobile .table-card,
    body.layout-admin-mobile .map-card,
    body.layout-admin-mobile .detail-card {
        padding: 12px !important;
    }
}

@media (max-width: 375px) {
    body.layout-admin-mobile .site-header {
        gap: 4px !important;
        padding: 6px 8px !important;
    }

    body.layout-admin-mobile .site-header-brand {
        gap: 3px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header {
        width: 14px !important;
        height: 14px !important;
    }

    body.layout-admin-mobile .map-menu-toggle-header svg {
        width: 10px !important;
        height: 10px !important;
    }

    body.layout-admin-mobile .site-header-logo {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    body.layout-admin-mobile .site-header-copy .brand-title {
        font-size: 0.4rem !important;
    }

    body.layout-admin-mobile .icon-button {
        width: 26px !important;
        height: 26px !important;
    }

    body.layout-admin-mobile .main-content {
        padding: 50px 8px 10px !important;
    }
}

body.layout-map-full .sidebar-datetime {
    display: block;
    margin: 6px 0 0;
    color: #8a97ab;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

body.layout-map-full .sidebar-role {
    margin: 7px 0 0;
    color: #0c7c61;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.layout-map-full .nav-links {
    gap: 8px;
    margin-top: 0;
}

body.layout-map-full .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 18px;
    background: transparent;
    color: #43556f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    width: calc(100% - 8px);
    margin-inline: 4px;
    text-align: left;
}

body.layout-map-full .nav-links a:hover {
    transform: translateX(1px);
    background: rgba(216, 225, 236, 0.34);
    color: #334a63;
    box-shadow: none;
}

body.layout-map-full .nav-links a.active {
    background: linear-gradient(90deg, #0c7b61 0%, #3042a4 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(16, 47, 104, 0.22);
}

body.layout-map-full .nav-links a::before {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    opacity: 0.78;
}

body.layout-map-full .map-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

body.layout-map-full .map-header-inline .map-dashboard-title {
    margin: 0;
    line-height: 1.1;
}

body.layout-map-full .map-header-welcome {
    margin: 0;
    text-align: right;
    white-space: nowrap;
    color: #6c7d91;
}

body.layout-map-full .topbar,
body.layout-map-full .topbar-map-full {
    width: 100%;
}

body.layout-map-full .topbar-map-full {
    align-items: flex-start;
}
