.dashboard-desa {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(232, 137, 58, 0.1), transparent 22%),
        linear-gradient(180deg, #f6f8f7 0%, #edf2f0 54%, #f3eee6 100%);
}

.dashboard-desa .shell {
    width: min(1320px, calc(100% - 28px));
}

.dashboard-desa .topbar {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 24px 26px;
    border-color: rgba(207, 216, 211, 0.9);
    background:
        linear-gradient(135deg, rgba(12, 58, 63, 0.96), rgba(15, 118, 110, 0.88) 52%, rgba(227, 142, 69, 0.72)),
        #134e4a;
    box-shadow: 0 28px 60px rgba(14, 30, 37, 0.18);
}

.dashboard-desa .topbar::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 46%;
    height: 190px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.dashboard-desa .topbar-menu-label,
.dashboard-desa .topbar-copy p {
    color: rgba(232, 244, 240, 0.78);
}

.dashboard-desa .nav-pills a {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbfa;
    backdrop-filter: blur(10px);
}

.dashboard-desa .nav-pills a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-desa .nav-pills a.active {
    background: #fff7ef;
    border-color: #fff7ef;
    color: #0f4d48;
    box-shadow: 0 14px 28px rgba(8, 20, 22, 0.14);
}

.dashboard-desa .topbar-copy h1 {
    color: #fffefb;
    letter-spacing: -0.03em;
}

.dashboard-desa .layout,
.dashboard-desa .main {
    gap: 16px;
}

.dashboard-desa .panel {
    border-color: rgba(214, 221, 217, 0.98);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 18px 42px rgba(25, 44, 49, 0.08);
    padding: 16px;
}

.dashboard-desa .panel-focus {
    border-color: rgba(174, 197, 189, 0.98);
    box-shadow: 0 18px 34px rgba(22, 55, 59, 0.1);
}

.dashboard-desa .panel-focus.is-priority-focus {
    border-color: rgba(232, 137, 58, 0.48);
    box-shadow: 0 18px 34px rgba(156, 91, 35, 0.14);
}

.dashboard-desa .filters {
    position: relative;
    z-index: 30;
    padding: 10px 12px 12px;
    border-color: rgba(194, 207, 203, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 237, 0.96));
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 44px rgba(23, 41, 46, 0.1);
}

.dashboard-desa .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(218, 223, 219, 0.92);
}

.dashboard-desa .filters-head h2 {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.dashboard-desa .filters-action-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-desa .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: stretch;
}

.dashboard-desa .filters-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 8px;
    border-left: 1px solid rgba(218, 223, 219, 0.92);
}

.dashboard-desa .filters-body {
    overflow: visible;
}

.dashboard-desa .filters.is-collapsed {
    padding-bottom: 10px;
}

.dashboard-desa .filters.is-collapsed .filters-head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-desa .filters.is-collapsed .filters-body {
    display: none;
}

.dashboard-desa .filters.is-busy {
    opacity: 0.92;
}

.dashboard-desa .filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-desa .field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-desa .field-wide {
    grid-column: span 2;
}

.dashboard-desa .field label {
    margin-bottom: 0;
    padding-left: 2px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #59706a;
}

.dashboard-desa .field select,
.dashboard-desa .field input {
    min-width: 0;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #d6ddd8;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8faf9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    font: inherit;
}

.dashboard-desa .field select:hover,
.dashboard-desa .field input:hover {
    border-color: #bfd0ca;
}

.dashboard-desa .field select:focus,
.dashboard-desa .field input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.dashboard-desa .combo-box {
    position: relative;
}

.dashboard-desa .combo-box input {
    width: 100%;
}

.dashboard-desa .combo-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #d6ddd8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(23, 41, 46, 0.14);
}

.dashboard-desa .combo-option {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #213330;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.dashboard-desa .combo-option:hover {
    background: linear-gradient(180deg, rgba(223, 243, 238, 0.88), rgba(255, 247, 238, 0.92));
}

.dashboard-desa .combo-option-title {
    display: block;
    font-size: 0.86rem;
    line-height: 1.4;
}

.dashboard-desa .combo-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.dashboard-desa .field-note {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.dashboard-desa .action-link,
.dashboard-desa .action-button,
.dashboard-desa .icon-button {
    min-width: 116px;
    padding: 7px 10px;
    font-size: 0.8rem;
}

.dashboard-desa .toggle-button,
.dashboard-desa .icon-button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dashboard-desa .toggle-button:hover,
.dashboard-desa .icon-button:hover,
.dashboard-desa .action-link:hover,
.dashboard-desa .action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(27, 43, 48, 0.08);
}

.dashboard-desa .grid-4 {
    gap: 10px;
}

.dashboard-desa #summaryGrid .stat {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 15px;
    border-radius: 16px;
    border-color: rgba(216, 223, 219, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 236, 0.96));
    box-shadow: 0 14px 30px rgba(25, 44, 49, 0.06);
    min-height: 118px;
}

.dashboard-desa #summaryGrid .stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #0f766e, #e8893a);
}

.dashboard-desa .stat .label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #667873;
}

.dashboard-desa .stat .value {
    font-size: clamp(1rem, 1.6vw, 1.38rem);
    letter-spacing: -0.04em;
    color: #16312d;
    word-break: break-word;
}

.dashboard-desa .stat .meta {
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.dashboard-desa .grid-2 {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: 14px;
}

.dashboard-desa .card-head {
    margin-bottom: 10px;
}

.dashboard-desa .card-head h2 {
    font-size: 0.94rem;
    letter-spacing: -0.01em;
}

.dashboard-desa .card-head p,
.dashboard-desa .muted {
    font-size: 0.84rem;
    line-height: 1.45;
}

.dashboard-desa .badge {
    border: 1px solid rgba(15, 118, 110, 0.14);
    background: rgba(222, 243, 237, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
    padding: 6px 10px;
}

.dashboard-desa .badge.priority {
    border-color: rgba(216, 108, 46, 0.16);
    background: rgba(255, 234, 223, 0.96);
}

.dashboard-desa .list {
    gap: 8px;
}

.dashboard-desa .bar-row {
    grid-template-columns: minmax(180px, 260px) 1fr auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.dashboard-desa .bar-row:hover {
    background: rgba(245, 248, 246, 0.9);
    transform: translateY(-1px);
}

.dashboard-desa .bar-row.active {
    background: linear-gradient(180deg, rgba(223, 243, 238, 0.88), rgba(255, 247, 238, 0.92));
    box-shadow: inset 0 0 0 1px rgba(168, 208, 196, 0.7);
}

.dashboard-desa .bar-label {
    font-size: 0.88rem;
}

.dashboard-desa .bar-label small {
    margin-top: 4px;
    line-height: 1.35;
    font-size: 0.78rem;
}

.dashboard-desa .track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ece5d8, #e8e0d1);
}

.dashboard-desa .fill {
    background: linear-gradient(90deg, #0f766e, #4db194);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.26);
}

.dashboard-desa .fill.priority {
    background: linear-gradient(90deg, #e8893a, #f2b06b);
}

.dashboard-desa .fill.supplementary {
    background: linear-gradient(90deg, #ef8354, #f8bc8f);
}

.dashboard-desa .bar-value {
    min-width: 100px;
    color: #213330;
    font-size: 0.84rem;
}

.dashboard-desa .chart-shell {
    position: relative;
    width: 100%;
    height: 260px;
    margin: 4px auto 10px;
}

.dashboard-desa .chart-shell canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.dashboard-desa .chart-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    border: 1px dashed rgba(190, 199, 194, 0.96);
    border-radius: 16px;
    color: #6b7b77;
    background: rgba(255, 252, 246, 0.92);
    font-size: 0.82rem;
}

.dashboard-desa .chart-fallback[hidden] {
    display: none !important;
}

.dashboard-desa .chart-total {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin-bottom: 10px;
}

.dashboard-desa .chart-total strong {
    font-size: 1.45rem;
    line-height: 1;
    color: #17332f;
}

.dashboard-desa .chart-total span {
    color: #61726d;
    font-size: 0.78rem;
}

.dashboard-desa .legend {
    display: grid;
    gap: 8px;
}

.dashboard-desa .legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(220, 225, 221, 0.96);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffefb, #f7f3ea);
    font-size: 0.84rem;
}

.dashboard-desa .legend-item small {
    line-height: 1.4;
    color: var(--muted);
}

.dashboard-desa .swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #d0d7cf;
}

.dashboard-desa .swatch.priority {
    background: #d86c2e;
}

.dashboard-desa .swatch.non-priority {
    background: #0d7c66;
}

.dashboard-desa .loading-panel {
    position: relative;
}

.dashboard-desa .loading-panel::before {
    content: "Memuat...";
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid #e5d9c7;
    color: #715b3d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dashboard-desa .table-wrap table {
    font-size: 0.86rem;
}

.dashboard-desa .table-wrap th,
.dashboard-desa .table-wrap td {
    padding: 10px 12px;
}

@media (max-width: 1180px) {
    .dashboard-desa .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-desa .field-wide {
        grid-column: span 1;
    }

    .dashboard-desa .grid-2 {
        grid-template-columns: 1fr;
    }

    .dashboard-desa .filters-head {
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .dashboard-desa .shell {
        width: min(100% - 20px, 1320px);
    }

    .dashboard-desa .topbar {
        padding: 20px 18px;
    }

    .dashboard-desa .filters-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-desa .filters-head,
    .dashboard-desa .filters-action-cluster {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-desa .dashboard-actions,
    .dashboard-desa .filters-actions {
        width: 100%;
    }

    .dashboard-desa .filters-actions {
        padding-left: 0;
        padding-top: 10px;
        border-left: 0;
        border-top: 1px solid rgba(218, 223, 219, 0.92);
    }

    .dashboard-desa .bar-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-desa .bar-value {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .dashboard-desa .shell {
        width: min(100% - 14px, 1320px);
    }

    .dashboard-desa .topbar,
    .dashboard-desa .panel {
        border-radius: 20px;
    }

    .dashboard-desa .filters {
        padding: 12px;
    }

    .dashboard-desa .dashboard-actions,
    .dashboard-desa .filters-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-desa .dashboard-actions .action-link,
    .dashboard-desa .dashboard-actions .action-button,
    .dashboard-desa .filters-actions .icon-button {
        width: 100%;
    }
}

.dashboard-desa .mapbox {
    overflow: hidden;
}

.dashboard-desa .map-stage {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(118, 141, 166, 0.18);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #eff5fb 0%, #f8fbff 100%);
}

.dashboard-desa #leafletMap {
    width: 100%;
    height: 420px;
    z-index: 1;
}

.dashboard-desa .map-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(245, 249, 255, 0.76);
    z-index: 20;
}

.dashboard-desa .map-loading.is-active {
    display: flex;
}

.dashboard-desa .map-loading-card {
    width: min(320px, calc(100% - 2rem));
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 36px rgba(24, 43, 69, 0.14);
}

.dashboard-desa .map-loading-copy {
    margin-top: 0.8rem;
    font-size: 0.84rem;
    color: #516170;
    text-align: center;
}

.dashboard-desa .skeleton.map {
    width: 100%;
    height: 160px;
    border-radius: 12px;
}

.dashboard-desa .leaflet-control.map-info,
.dashboard-desa .leaflet-control.map-legend {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(31, 50, 74, 0.16);
    padding: 0.7rem 0.8rem;
    color: #284057;
}

.dashboard-desa .leaflet-control.map-info {
    min-width: 200px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.dashboard-desa .leaflet-control.map-info strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.84rem;
}

.dashboard-desa .leaflet-control.map-legend {
    min-width: 180px;
}

.dashboard-desa .leaflet-control.map-legend .row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.35;
}

.dashboard-desa .leaflet-control.map-legend .row + .row {
    margin-top: 0.45rem;
}

.dashboard-desa .leaflet-control.map-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
}
