@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ============================================================
   REALTIME BAR
   ============================================================ */

.rt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rt-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rt-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dot indicator */
.rt-dot-wrap {
    display: flex;
    align-items: center;
}

.rt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a047;
    animation: rtPulse 1.5s ease-in-out infinite;
}

@keyframes rtPulse {
    0%, 100% { opacity: 1;  transform: scale(1);   }
    50%       { opacity: .4; transform: scale(.7); }
}

/* Labels */
.rt-label {
    font-size: 13px;
    font-weight: 600;
    color: #1b5e20;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.rt-badge {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 9px;
    border-radius: 20px;
}

.rt-countdown {
    font-size: 12px;
    color: #6b7280;
}

.rt-countdown b {
    font-family: 'DM Mono', monospace;
    color: #1b5e20;
}

/* Buttons */
.rt-btn-refresh {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background .15s;
}

.rt-btn-refresh:hover {
    background: #e5e7eb;
}

.rt-btn-export {
    background: #1b5e20;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background .2s;
}

.rt-btn-export:hover    { background: #2e7d32; }
.rt-btn-export:disabled { opacity: .6; cursor: not-allowed; }


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.rt-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #1b3a1e;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    pointer-events: none;
}

.rt-toast-show {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   ALERT — SERANGAN BERAT
   ============================================================ */

.dash-alert-berat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #e53935;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    animation: fadeUp .4s ease;
}

.dash-alert-ico {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dash-alert-title {
    font-size: 13px;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 3px;
}

.dash-alert-desc {
    font-size: 12px;
    color: #9b2c2c;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   METRIC CARDS
   ============================================================ */

.dash-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dash-metric {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: box-shadow .2s, transform .2s;
}

.dash-metric:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

/* Coloured top accent bar */
.dash-metric::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.mc-total::after  { background: #388e3c; }
.mc-ringan::after { background: #66bb6a; }
.mc-sedang::after { background: #fb8c00; }
.mc-berat::after  { background: #e53935; }

/* Inner layout */
.dash-metric-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dash-metric-ico {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.dash-metric-val {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    font-family: 'DM Mono', monospace;
}

.dash-metric-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.dash-metric-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

/* Chips */
.dash-chip {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.chip-up  { background: #fff5f5; color: #c53030; }
.chip-neu { background: #f3f4f6; color: #6b7280; }


/* ============================================================
   STATUS STRIP
   ============================================================ */

.dash-status-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100px;
    padding: 13px 18px;
}

.dash-status-div {
    width: 1px;
    height: 36px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.dash-status-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.dash-status-val {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    font-family: 'DM Mono', monospace;
    line-height: 1;
}

.dash-status-lbl {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}


/* ============================================================
   TOP PRIORITY CARD
   ============================================================ */

.dash-top-priority {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1b3a1e 0%, #1b5e20 60%, #2e7d32 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(27, 94, 32, .32);
}

/* Decorative circle */
.dash-top-priority::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

/* Left side */
.dash-tp-left {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-tp-trophy {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-tp-eyebrow {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 5px;
}

.dash-tp-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dash-tp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.dash-tp-badge {
    background: rgba(229, 57, 53, .9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Right side */
.dash-tp-right {
    position: relative;
    text-align: right;
}

.dash-tp-score {
    font-size: 34px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    line-height: 1;
}

.dash-tp-score-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
    margin-top: 3px;
}

.dash-tp-chip {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    margin-top: 6px;
}


/* ============================================================
   PANELS & GRID LAYOUTS
   ============================================================ */

.dash-chart-grid,
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dash-bottom-grid {
    margin-bottom: 18px;
}

.dash-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-panel-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 11px;
    border-bottom: 1px solid #f3f4f6;
}

.dash-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-panel-badge {
    font-size: 10px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
}

.dash-panel-body {
    padding: 14px 16px;
}

/* Chart wrapper */
.dash-chart-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}

/* Legend */
.dash-legend-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 12px;
}

.dash-legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex-shrink: 0;
}


/* ============================================================
   HAMA HORIZONTAL BARS
   ============================================================ */

.dash-hbar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-hbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-hbar-name {
    min-width: 120px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.dash-hbar-bg {
    flex: 1;
    height: 7px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.dash-hbar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .8s ease;
}

.dash-hbar-cnt {
    min-width: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    font-family: 'DM Mono', monospace;
}

.dash-hbar-pct {
    min-width: 34px;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}


/* ============================================================
   AHP CRITERIA BARS
   ============================================================ */

.dash-ahp-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.dash-ahp-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dash-ahp-name {
    min-width: 130px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.dash-ahp-bar-bg {
    flex: 1;
    height: 9px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.dash-ahp-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.dash-ahp-pct {
    min-width: 36px;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

/* Consistency Ratio box */
.dash-cr-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 16px;
}

.dash-cr-label {
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
}

.dash-cr-ok {
    font-size: 10.5px;
    color: #388e3c;
    margin-top: 2px;
}

.dash-cr-val {
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    font-family: 'DM Mono', monospace;
}


/* ============================================================
   LUAS LAHAN CARDS
   ============================================================ */

.dash-luas-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dash-luas-card {
    border: 2px solid;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.dash-luas-val {
    font-size: 22px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    line-height: 1;
}

.dash-luas-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-top: 3px;
}


/* ============================================================
   KECAMATAN TABLE
   ============================================================ */

.dash-kec-table-wrap {
    overflow-x: auto;
}

.dash-kec-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 12px;
}

.dash-kec-table thead th {
    background: #f8faf8;
    color: #374151;
    padding: 9px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.dash-kec-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}

.dash-kec-table tbody tr:hover       { background: #f0faf0; }
.dash-kec-table tbody tr:last-child  { border-bottom: none; }

.dash-kec-table td {
    padding: 8px 12px;
    vertical-align: middle;
}

.dash-kec-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.dash-kec-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.dash-kec-bar-wrap {
    display: flex;
    height: 8px;
    min-width: 70px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.dash-kec-bar-seg {
    height: 100%;
    transition: width .8s ease;
}

/* "Belum terdampak" footer row */
.dash-kec-aman {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f0fdf4;
    border-top: 1px solid #d1fae5;
}

.dash-kec-aman-label {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    flex-shrink: 0;
}

.dash-kec-aman-chip {
    font-size: 10px;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}


/* ============================================================
   PRIORITAS TABLE
   ============================================================ */

.dash-table-section {
    margin-bottom: 18px;
}

/* Toolbar */
.dash-tbl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dash-tbl-pill {
    font-size: 10px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Filter pills */
.dash-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dash-fpill {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all .15s;
}

.dash-fpill:hover  { background: #f9fafb; }
.dash-fpill.active { background: #1b5e20; border-color: #1b5e20; color: #fff; }

/* Table wrapper */
.dash-tbl-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-tbl {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

/* Header */
.dash-tbl thead th {
    background: #1b3a1e;
    color: rgba(255, 255, 255, .82);
    padding: 11px 13px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.dash-tbl thead th:first-child { padding-left: 16px; }
.dash-tbl thead th:last-child  { padding-right: 16px; text-align: center; }

/* Body */
.dash-tbl tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}

.dash-tbl tbody tr:hover      { background: #f0faf0; }
.dash-tbl tbody tr:last-child { border-bottom: none; }

.dash-tbl td {
    padding: 11px 13px;
    font-size: 13px;
    vertical-align: middle;
}

.dash-tbl td:first-child { padding-left: 16px; }
.dash-tbl td:last-child  { padding-right: 16px; text-align: center; }

.dash-tbl-name { font-weight: 600; color: #111827; }
.dash-tbl-sub  { font-size: 11px; color: #9ca3af; margin-top: 2px; }


/* ============================================================
   RANK BADGE
   ============================================================ */

.dash-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
}

.rank-1 { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.rank-2 { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.rank-3 { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.rank-n { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }


/* ============================================================
   BADGES — TINGKAT SERANGAN
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge.ringan { background: #e8f5e9; color: #2e7d32; }
.badge.sedang { background: #fff3e0; color: #b45309; }
.badge.berat  { background: #ffebee; color: #c53030; }

.badge.ringan::before { background: #43a047; }
.badge.sedang::before { background: #fb8c00; }
.badge.berat::before  { background: #e53935; }


/* ============================================================
   CHIPS — LUAS LAHAN & STATUS
   ============================================================ */

.dash-luas-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.luas-luas_kecil  { background: #e8f5e9; color: #2e7d32; }
.luas-luas_sedang { background: #fff3e0; color: #b45309; }
.luas-luas_besar  { background: #ffebee; color: #c53030; }

.dash-status-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-menunggu  { background: #fff3e0; color: #b45309; }
.status-diproses  { background: #e3f2fd; color: #1565c0; }
.status-selesai   { background: #e8f5e9; color: #2e7d32; }
.status-ditolak   { background: #ffebee; color: #c53030; }


/* ============================================================
   NILAI TOPSIS (progress bar + number)
   ============================================================ */

.dash-nilai-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dash-nilai-bg {
    width: 60px;
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.dash-nilai-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #43a047, #1b5e20);
}

.dash-nilai-num {
    min-width: 46px;
    font-size: 12px;
    font-weight: 700;
    color: #1b5e20;
    font-family: 'DM Mono', monospace;
    text-align: right;
}

/* Detail button */
.dash-btn-detail {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all .15s;
}

.dash-btn-detail:hover {
    border-color: #66bb6a;
    color: #2e7d32;
    background: #f0faf0;
}


/* ============================================================
   MAP
   ============================================================ */

.dash-map-section {
    margin-bottom: 20px;
}

.dash-map-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

#map {
    height: 420px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Leaflet legend */
.map-legend {
    min-width: 150px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    padding: 13px 15px;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #374151;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.legend-title {
    font-size: 12px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 9px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    margin-bottom: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.ringan { background: #43a047; }
.legend-dot.sedang { background: #fb8c00; }
.legend-dot.berat  { background: #e53935; }

.map-legend hr {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 7px 0;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.dash-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dash-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-page-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

.dash-btn-back {
    background: #374151;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background .2s;
}

.dash-btn-back:hover { background: #1f2937; }


/* ============================================================
   SUMMARY STRIP
   ============================================================ */

.dash-summary-strip {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-sum-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100px;
    padding: 13px 18px;
}

.dash-sum-sep {
    width: 1px;
    height: 36px;
    background: #f3f4f6;
    flex-shrink: 0;
    align-self: center;
}

.dash-sum-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.dash-sum-val {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    font-family: 'DM Mono', monospace;
    line-height: 1;
}

.dash-sum-lbl {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}


/* ============================================================
   FILTER CARD
   ============================================================ */

.dash-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 14px;
}

.dash-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.dash-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-filter-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.dash-filter-field input,
.dash-filter-field select {
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #374151;
    transition: border-color .15s;
}

.dash-filter-field input:focus,
.dash-filter-field select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, .12);
}

.dash-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.dash-btn-filter {
    height: 36px;
    background: #1b5e20;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background .2s;
}

.dash-btn-filter:hover { background: #2e7d32; }

.dash-btn-reset {
    height: 36px;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.dash-btn-reset:hover { background: #e5e7eb; }


/* ============================================================
   KONTAK / PESAN PREVIEW
   ============================================================ */

.dash-kontak-pesan {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    max-width: 340px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;


}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .dash-metric-grid                  { grid-template-columns: repeat(2, 1fr); }
    .dash-chart-grid,
    .dash-bottom-grid                  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .dash-metric-grid                  { grid-template-columns: 1fr 1fr; }
    .dash-luas-cards                   { grid-template-columns: 1fr; }
    .dash-top-priority                 { flex-direction: column; align-items: flex-start; gap: 14px; }
    .rt-bar                            { flex-direction: column; align-items: flex-start; }
    .dash-status-strip                 { flex-wrap: wrap; }
}