/* Dashboard terisolasi: seluruh selector diawali dash2- agar tidak memengaruhi menu lain. */
.dash2-page{width:100%;max-width:1600px;margin:0 auto;padding:4px 2px 28px;color:var(--text-primary,#172033);font-family:Inter,Arial,sans-serif;font-size:12px}
.dash2-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 18px}
.dash2-title{font-size:20px;font-weight:800;letter-spacing:-.35px;color:var(--text-primary,#172033)}
.dash2-subtitle{margin-top:5px;color:var(--text-muted,#64748b);font-size:12px}
.dash2-head-actions{display:flex;align-items:center;gap:12px}
.dash2-updated{font-size:11px;color:var(--text-muted,#64748b)}
.dash2-refresh{border:1px solid #dbe2ea;background:#fff;color:#334155;border-radius:9px;padding:8px 12px;font:600 12px Inter,Arial,sans-serif;cursor:pointer}
.dash2-refresh:disabled{opacity:.6;cursor:wait}
.dash2-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:12px 14px;margin-bottom:14px;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.dash2-filter label{font-size:12px;font-weight:700;color:#334155}
.dash2-filter select{min-width:190px;max-width:100%;border:1px solid #d8e0e9;border-radius:8px;padding:8px 30px 8px 10px;background:#fff;color:#1e293b;font:12px Inter,Arial,sans-serif}
.dash2-filter span{color:#64748b;font-size:11px}
.dash2-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
.dash2-summary-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:120px;padding:12px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.035);transition:border-color .15s,box-shadow .15s,transform .15s}
.dash2-summary-card:hover{border-color:#b7c9e2;box-shadow:0 5px 14px rgba(15,23,42,.07);transform:translateY(-1px)}
.dash2-summary-card.active{border:1.5px solid #2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.dash2-card-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eff6ff;color:#2563eb;margin-bottom:8px;font-size:13px}
.dash2-card-label{min-height:28px;color:#475569;font-size:11px;line-height:1.35;font-weight:650}
.dash2-summary-card strong{margin-top:5px;color:#0f172a;font-size:22px;line-height:1.1;font-weight:800;overflow-wrap:anywhere}
.dash2-summary-card small{margin-top:4px;color:#94a3b8;font-size:10px}
.dash2-panel{border:1px solid #e5eaf0;border-radius:14px;background:#fff;padding:16px;box-shadow:0 2px 10px rgba(15,23,42,.035)}
.dash2-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.dash2-panel-head h2{margin:0;color:#172033;font-size:16px;font-weight:800}
.dash2-panel-head p{margin:5px 0 0;color:#64748b;font-size:11px}
.dash2-panel-tools{display:flex;align-items:center;gap:8px}
.dash2-period{border:1px solid #dbe2ea;border-radius:8px;background:#fff;padding:7px 9px;color:#334155;font:11px Inter,Arial,sans-serif}
.dash2-visual-grid{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,2fr);gap:12px;align-items:stretch}
.dash2-chart-card,.dash2-detail-card{min-width:0;border:1px solid #edf0f4;border-radius:11px;background:#fff;padding:13px}
.dash2-card-heading{font-size:12px;font-weight:800;color:#334155}
.dash2-chart{min-height:220px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 0 4px}
.dash2-donut-wrap{position:relative;width:164px;height:164px;flex:0 0 164px}
.dash2-donut-svg{width:100%;height:100%;overflow:visible}
.dash2-donut-segment{fill:none;stroke-width:17;cursor:pointer;pointer-events:stroke;transition:opacity .15s}
.dash2-donut-segment:hover{opacity:.75;stroke-width:20}
.dash2-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.dash2-donut-center strong{font-size:25px;line-height:1.1;color:#172033}
.dash2-donut-center span{margin-top:3px;font-size:10px;color:#64748b}
.dash2-legend{display:flex;flex-direction:column;gap:7px;min-width:120px;max-width:100%}
.dash2-legend button{display:flex;align-items:center;gap:7px;padding:3px 4px;border:0;border-radius:6px;background:transparent;text-align:left;color:#475569;font:11px Inter,Arial,sans-serif;cursor:pointer}
.dash2-legend button:hover,.dash2-legend button.active{background:#f1f5f9;color:#0f172a}
.dash2-legend-dot{width:9px;height:9px;flex:0 0 9px;border-radius:3px}
.dash2-legend-label{flex:1}
.dash2-legend strong{font-size:11px;color:#172033}
.dash2-chart-empty{color:#94a3b8;font-size:11px;text-align:center;padding:40px 12px}
.dash2-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.dash2-detail-caption{margin-top:4px;color:#64748b;font-size:10px}
.dash2-clear-filter{border:1px solid #dbe2ea;background:#fff;border-radius:7px;padding:6px 9px;color:#475569;font:600 10px Inter,Arial,sans-serif;cursor:pointer}
.dash2-clear-filter:disabled{opacity:.4;cursor:default}
.dash2-table-wrap{width:100%;overflow:auto;max-height:470px}
.dash2-table{width:100%;border-collapse:collapse;min-width:560px;font-size:11px}
.dash2-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#64748b;font-size:10px;font-weight:750;text-align:left;white-space:nowrap}
.dash2-table th,.dash2-table td{padding:9px 10px;border-bottom:1px solid #edf0f4;vertical-align:top}
.dash2-table td{color:#334155;line-height:1.45}
.dash2-table tbody tr:hover{background:#fafcff}
.dash2-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:20px;padding:3px 7px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:700}
.dash2-status.good{background:#ecfdf5;color:#047857}
.dash2-status.warn{background:#fffbeb;color:#b45309}
.dash2-status.bad{background:#fef2f2;color:#b91c1c}
.dash2-empty{padding:28px!important;text-align:center;color:#94a3b8!important}
.dash2-table-footer{padding-top:9px;color:#94a3b8;font-size:10px}
.dash2-line-chart{width:100%;max-width:900px;height:auto;overflow:visible}
.dash2-line-grid{stroke:#e9eef4;stroke-width:1}
.dash2-line-path{fill:none;stroke:#2563eb;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.dash2-line-point{fill:#fff;stroke:#2563eb;stroke-width:2;cursor:pointer}
.dash2-line-point:hover{r:6;fill:#dbeafe}
.dash2-line-label{fill:#64748b;font-size:10px}
.dash2-line-y-label{fill:#94a3b8;font-size:9px}
.dash2-error{margin-top:12px;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;background:#fef2f2;color:#b91c1c;font-size:11px}
.dash2-error[hidden]{display:none}
:root[data-theme="dark"] .dash2-page{color:#e2e8f0}
:root[data-theme="dark"] .dash2-filter,:root[data-theme="dark"] .dash2-summary-card,:root[data-theme="dark"] .dash2-panel,:root[data-theme="dark"] .dash2-chart-card,:root[data-theme="dark"] .dash2-detail-card{background:#172033;border-color:#334155;box-shadow:none}
:root[data-theme="dark"] .dash2-title,:root[data-theme="dark"] .dash2-summary-card strong,:root[data-theme="dark"] .dash2-panel-head h2,:root[data-theme="dark"] .dash2-donut-center strong,:root[data-theme="dark"] .dash2-legend strong{color:#f8fafc}
:root[data-theme="dark"] .dash2-card-label,:root[data-theme="dark"] .dash2-card-heading,:root[data-theme="dark"] .dash2-panel-head p,:root[data-theme="dark"] .dash2-table td{color:#cbd5e1}
:root[data-theme="dark"] .dash2-table th{background:#1e293b;color:#94a3b8}
:root[data-theme="dark"] .dash2-table th,:root[data-theme="dark"] .dash2-table td{border-color:#334155}
:root[data-theme="dark"] .dash2-refresh,:root[data-theme="dark"] .dash2-filter select,:root[data-theme="dark"] .dash2-period,:root[data-theme="dark"] .dash2-clear-filter{background:#1e293b;border-color:#475569;color:#e2e8f0}
:root[data-theme="dark"] .dash2-legend button{color:#cbd5e1}
:root[data-theme="dark"] .dash2-legend button:hover,:root[data-theme="dark"] .dash2-legend button.active{background:#334155;color:#fff}
:root[data-theme="dark"] .dash2-summary-card.active{border-color:#60a5fa}
@media(max-width:1100px){.dash2-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dash2-visual-grid{grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr)}}
@media(max-width:760px){.dash2-page{padding:0 0 20px}.dash2-head{align-items:flex-start;flex-direction:column}.dash2-head-actions{width:100%;justify-content:space-between}.dash2-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dash2-summary-card{min-height:112px;padding:10px}.dash2-summary-card strong{font-size:20px}.dash2-visual-grid{grid-template-columns:1fr}.dash2-panel{padding:11px}.dash2-panel-head{flex-direction:column}.dash2-chart-card,.dash2-detail-card{padding:11px}.dash2-chart{min-height:190px}.dash2-filter{align-items:flex-start}.dash2-filter select{flex:1;min-width:150px}.dash2-filter span{width:100%}}


.dash2-filter-row{display:grid;grid-template-columns:auto minmax(120px,1fr) auto minmax(150px,1.4fr) auto minmax(135px,1fr) auto minmax(135px,1fr) auto auto;align-items:center;gap:8px}
.dash2-filter-row label{font-size:11px;font-weight:700;color:#475569}
.dash2-filter-row select,.dash2-filter-row input{min-width:0;width:100%;border:1px solid #d8e0e9;border-radius:8px;padding:8px;background:#fff;color:#1e293b;font:11px Inter,Arial,sans-serif}
.dash2-filter-row #dash2-filter-note{grid-column:1/-1}
@media(max-width:900px){.dash2-filter-row{grid-template-columns:1fr 1fr}.dash2-filter-row label{margin-top:3px}.dash2-filter-row #dash2-filter-note{grid-column:1/-1}}
@media(max-width:420px){.dash2-filter-row{grid-template-columns:1fr 1fr}.dash2-filter-row label{font-size:10px}.dash2-filter-row button{width:100%}}
:root[data-theme="dark"] .dash2-filter-row select,:root[data-theme="dark"] .dash2-filter-row input{background:#1e293b;border-color:#475569;color:#e2e8f0}

/* Analisis biaya per aset khusus bagian Perbaikan Aset */
.dash2-repair-analysis{margin:0 0 14px;padding:14px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.dash2-repair-analysis[hidden]{display:none}
.dash2-analysis-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.dash2-category-filter{display:flex;flex-direction:column;gap:5px;min-width:180px;font-size:10px;font-weight:700;color:#64748b}
.dash2-category-filter select{width:100%;border:1px solid #d8e0e9;border-radius:8px;padding:8px 10px;background:#fff;color:#334155;font:11px Inter,Arial,sans-serif}
.dash2-analysis-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 13px}
.dash2-analysis-stats>div{min-width:0;padding:10px;border:1px solid #edf0f4;border-radius:9px;background:#f8fafc}
.dash2-analysis-stats span{display:block;color:#64748b;font-size:10px}
.dash2-analysis-stats strong{display:block;margin-top:5px;color:#172033;font-size:17px;overflow-wrap:anywhere}
.dash2-analysis-grid{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.5fr);gap:12px}
.dash2-analysis-chart-card,.dash2-analysis-table-card{min-width:0;padding:12px;border:1px solid #edf0f4;border-radius:10px}
.dash2-repair-asset-bars{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.dash2-asset-bar{display:grid;grid-template-columns:minmax(82px,115px) minmax(30px,1fr) auto;align-items:center;gap:8px;width:100%;padding:3px 0;border:0;background:transparent;text-align:left;cursor:pointer}
.dash2-asset-bar-name{overflow:hidden;color:#475569;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.dash2-asset-bar-track{height:10px;overflow:hidden;border-radius:20px;background:#edf2f7}
.dash2-asset-bar-fill{display:block;height:100%;min-width:0;border-radius:20px;background:#3b82f6}
.dash2-asset-bar.active .dash2-asset-bar-fill{background:#0f766e}
.dash2-asset-bar-value{color:#334155;font-size:10px;font-weight:750;white-space:nowrap}
.dash2-asset-bar:hover .dash2-asset-bar-name,.dash2-asset-bar.active .dash2-asset-bar-name{color:#1d4ed8;font-weight:800}
.dash2-asset-summary-table{min-width:500px}
.dash2-asset-summary-table tbody tr{cursor:pointer}
.dash2-asset-summary-table tbody tr.active{background:#eff6ff}
.dash2-analysis-note{margin-top:10px;color:#94a3b8;font-size:10px;line-height:1.5}
:root[data-theme="dark"] .dash2-repair-analysis{background:#172033;border-color:#334155;box-shadow:none}
:root[data-theme="dark"] .dash2-analysis-stats>div{background:#1e293b;border-color:#334155}
:root[data-theme="dark"] .dash2-analysis-stats strong,:root[data-theme="dark"] .dash2-asset-bar-value{color:#f8fafc}
:root[data-theme="dark"] .dash2-analysis-chart-card,:root[data-theme="dark"] .dash2-analysis-table-card{border-color:#334155}
:root[data-theme="dark"] .dash2-category-filter select{background:#1e293b;border-color:#475569;color:#e2e8f0}
:root[data-theme="dark"] .dash2-asset-summary-table tbody tr.active{background:#243b5b}
@media(max-width:760px){.dash2-analysis-head{flex-direction:column}.dash2-category-filter{width:100%}.dash2-analysis-stats{grid-template-columns:1fr 1fr}.dash2-analysis-stats>div:first-child{grid-column:1/-1}.dash2-analysis-grid{grid-template-columns:1fr}.dash2-asset-bar{grid-template-columns:minmax(75px,100px) minmax(30px,1fr) auto}.dash2-repair-analysis{padding:11px}}


/* Analisis permintaan renovasi per outlet */
.dash2-renovation-analysis{margin:0 0 14px;padding:14px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.dash2-renovation-analysis[hidden]{display:none}
.dash2-renovation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:10px 0 13px}
.dash2-renovation-stats>div{min-width:0;padding:10px;border:1px solid #edf0f4;border-radius:9px;background:#f8fafc}
.dash2-renovation-stats span{display:block;color:#64748b;font-size:10px}
.dash2-renovation-stats strong{display:block;margin-top:5px;color:#172033;font-size:16px;overflow-wrap:anywhere}
.dash2-renovation-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dash2-renovation-bars{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.dash2-renovation-bar{display:grid;grid-template-columns:minmax(78px,112px) minmax(24px,1fr) auto;align-items:center;gap:8px;width:100%;padding:3px 0;border:0;background:transparent;text-align:left;cursor:pointer}
.dash2-renovation-bar-name{overflow:hidden;color:#475569;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.dash2-renovation-bar-track{height:10px;overflow:hidden;border-radius:20px;background:#edf2f7}
.dash2-renovation-bar-fill{display:block;height:100%;min-width:0;border-radius:20px;background:#3985d6}
.dash2-renovation-bar.active .dash2-renovation-bar-fill{background:#0f766e}
.dash2-renovation-bar-value{color:#334155;font-size:10px;font-weight:750;white-space:nowrap}
.dash2-renovation-bar:hover .dash2-renovation-bar-name,.dash2-renovation-bar.active .dash2-renovation-bar-name{color:#1d4ed8;font-weight:800}
.dash2-renovation-trend-card{grid-column:1/-1}
.dash2-renovation-outlet-table-card{margin-top:12px;min-width:0}
.dash2-renovation-outlet-table{min-width:480px}
.dash2-renovation-outlet-table tbody tr{cursor:pointer}
.dash2-renovation-outlet-table tbody tr.active{background:#eff6ff}
:root[data-theme="dark"] .dash2-renovation-analysis{background:#172033;border-color:#334155;box-shadow:none}
:root[data-theme="dark"] .dash2-renovation-stats>div{background:#1e293b;border-color:#334155}
:root[data-theme="dark"] .dash2-renovation-stats strong,:root[data-theme="dark"] .dash2-renovation-bar-value{color:#f8fafc}
:root[data-theme="dark"] .dash2-renovation-outlet-table tbody tr.active{background:#243b5b}
@media(max-width:760px){.dash2-renovation-analysis{padding:11px}.dash2-renovation-stats{grid-template-columns:1fr 1fr}.dash2-renovation-chart-grid{grid-template-columns:1fr}.dash2-renovation-trend-card{grid-column:auto}.dash2-renovation-bar{grid-template-columns:minmax(72px,96px) minmax(24px,1fr) auto}}


.dash2-renovation-trend-row{display:grid;grid-template-columns:52px minmax(30px,1fr) auto;align-items:center;gap:8px}
.dash2-renovation-trend-label{color:#64748b;font-size:10px;font-weight:700}
:root[data-theme="dark"] .dash2-renovation-trend-label{color:#cbd5e1}
