/* Public dashboard styled to match the Direktorat PUPS CMS. */
:root {
    --forest-950: #153d2f;
    --forest-900: #15432f;
    --forest-800: #23694e;
    --forest-700: #25805f;
    --primary: #23694e;
    --bs-primary: #23694e;
    --bs-primary-rgb: 35, 105, 78;
    --bs-link-color: #23694e;
    --primary-soft: #edf5ef;
    --leaf: #8fac82;
    --lime-soft: #eff8e9;
    --ink: #233b30;
    --muted: #64776d;
    --line: #dfe8e2;
    --page: #f4f7f5;
    --card: #ffffff;
    --shadow: 0 4px 18px #173b2b04;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.dashboard-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; background: var(--page); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; overflow-y: auto; padding: 24px 12px 18px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 2px 24px; color: var(--ink); }
.brand-copy { display: grid; min-width: 0; line-height: 1.4; }
.brand-copy span { margin-top: 4px; font-size: 10px; color: var(--muted); font-weight: 400; }
.brand-copy strong { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid #dce7e1; border-radius: 10px; color: var(--forest-800); background: var(--primary-soft); cursor: pointer; }
.mobile-menu-toggle:focus-visible { outline: 3px solid rgba(35, 105, 78, .2); outline-offset: 2px; }
.mobile-menu-icon { display: grid; gap: 4px; width: 19px; }
.mobile-menu-icon span { display: block; width: 100%; height: 2px; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.sidebar-label { margin: 16px 10px 8px; color: #7c8d83; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: 9px; color: #4c6356; font-size: 12px; font-weight: 500; transition: background .18s ease, color .18s ease; }
.side-nav a svg { flex: 0 0 17px; opacity: .78; }
.side-nav a:hover { color: #174630; background: #edf5ef; }
.side-nav a.active { color: #fff; background: var(--primary); font-weight: 600; box-shadow: 0 4px 12px #23694e18; }
.side-nav a.active svg { color: #e5f4e9; opacity: 1; }
.sidebar-divider { height: 1px; margin: 20px 10px; background: var(--line); }
.sidebar-card { margin: auto 5px 0; padding: 15px; border: 1px solid #dceee1; border-radius: 11px; background: #f3faf5; }
.sidebar-card .card-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--forest-700); font-size: .66rem; font-weight: 500; }
.card-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(138, 203, 101, .14); }
.sidebar-card strong { display: block; margin-top: 9px; color: var(--forest-950); font-size: .95rem; }
.sidebar-card p { margin: 5px 0 0; color: #698078; font-size: .73rem; line-height: 1.5; }
.sidebar-footer { margin: 17px 10px 0; color: #98a59e; font-size: .66rem; }

.main { min-width: 0; padding: 0 30px 34px; background: var(--page); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.topbar-title p { margin: 0; color: var(--muted); font-size: 11px; }
.topbar-title h1 { margin: 5px 0 0; color: var(--ink); font-size: clamp(22px, 2vw, 25px); font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }

.content { margin: 0 auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { position: relative; min-width: 0; min-height: 188px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px #173b2b04; transition: border-color .18s ease, box-shadow .18s ease; }
.stat-card:hover { border-color: #91b6a0; box-shadow: 0 6px 20px #173b2b08; }
.stat-card:hover .stat-icon { background: #e0eee5; }
.stat-card.primary { border-color: var(--line); color: inherit; background: var(--card); box-shadow: var(--shadow); }
.stat-card.primary::after { display: none; }
.stat-icon { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.stat-card.primary .stat-icon { color: var(--primary); background: var(--primary-soft); }
.stat-label { display: block; margin-top: 0; padding-right: 42px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; min-height: 36px; }
.stat-card.primary .stat-label { color: #64776d; }
.stat-value { display: block; margin-top: 14px; color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card.primary .stat-value { color: #233b30; }
.stat-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.65; }
.stat-card.primary .stat-meta { color: var(--muted); }
.stat-growth { color: var(--primary); }
.stat-card.primary .stat-growth { color: var(--primary); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 24px; margin-top: 24px; }
.dashboard-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px #173b2b04; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: #f8fbf9; }
.card-kicker { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.card-header h3 { margin: 6px 0 0; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; }
.card-header p:not(.card-kicker) { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.card-option { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 7px; color: var(--forest-700); background: #eff7f2; font-size: .66rem; font-weight: 500; white-space: nowrap; }
.card-option i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.card-body { padding: 24px; }

.bps-card { grid-row: span 2; }
.pusat-card { grid-column: 1 / -1; }
.pusat-breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pusat-breakdowns h4 { font-size: .95rem; margin-bottom: 18px; }
.pusat-breakdowns .bar-row { grid-template-columns: minmax(90px, 1fr) minmax(40px, 1fr) 40px; }
@media (max-width: 991px) { .pusat-breakdowns { grid-template-columns: 1fr; } }
.bar-list { display: grid; gap: 17px; }
.bar-row { display: grid; grid-template-columns: minmax(95px, .83fr) minmax(100px, 2.25fr) 28px; align-items: center; gap: 12px; }
.bar-label { overflow: hidden; color: #4e655a; font-size: .78rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 7px; overflow: hidden; border-radius: 8px; background: #edf3ef; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #28684c, #8fac82); }
.bar-number { color: var(--forest-900); font-size: .79rem; font-weight: 850; text-align: right; }
.chart-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding: 12px; border-radius: 10px; color: #4c6356; background: #f3f8f4; font-size: 11px; line-height: 1.65; }
.chart-footer svg { flex: 0 0 15px; color: var(--primary); }
.empty-state { margin: 8px 0; color: var(--muted); font-size: .82rem; text-align: center; }

.donut-layout { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; }
.donut { position: relative; width: 220px; height: 220px; border-radius: 50%; margin: 0 auto; }
.donut::before { content: ""; position: absolute; inset: 28px; border-radius: inherit; background: #fff; box-shadow: inset 0 0 0 1px #eaf0eb; }
.donut-center { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { color: var(--forest-950); font-size: 1.52rem; line-height: 1; }
.donut-center span { margin-top: 4px; color: var(--muted); font-size: .61rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.legend { display: grid; gap: 11px; max-height: 270px; overflow-y: auto; padding-right: 4px; }
.legend-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.legend-key { width: 8px; height: 8px; border-radius: 50%; }
.legend-name { overflow: hidden; color: #5d7168; font-size: .72rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.legend-value { color: var(--forest-900); font-size: .73rem; font-weight: 850; }

.mini-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mini-stat > div { padding: 13px; border: 1px solid #e7eee9; border-radius: 10px; background: #fbfcfb; }
.mini-stat span { display: block; color: var(--muted); font-size: .66rem; font-weight: 700; }
.mini-stat strong { display: block; margin-top: 3px; color: var(--forest-950); font-size: 1.16rem; }

.dashboard-data-overlay { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #dfe8e2; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(18,58,46,.18); backdrop-filter: blur(10px); }
.dashboard-data-overlay .form-label { margin: 0; color: var(--forest-900); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.dashboard-data-overlay .form-select { min-width: 130px; width: auto; font-size: .85rem; border-color: #c9ddd0; }
.dashboard-shell .footer { padding-bottom: 110px; }
@media (max-width: 575px) { .dashboard-data-overlay { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); padding: 10px 12px; gap: 10px; } }
.active-type-chart-scroll { width: 100%; overflow-x: auto; padding: 2px 0 4px; }
.active-type-chart { display: block; width: 100%; min-width: 760px; height: auto; }
.active-type-chart-grid { stroke: #e3ebe6; stroke-width: 1; }
.active-type-chart-axis { stroke: #bdcbc3; stroke-width: 1.2; }
.active-type-chart-y-label { fill: #7a8c83; font-size: 9px; }
.active-type-chart-x-label { fill: #52675e; font-size: 9px; font-weight: 600; }
.active-type-chart-value { fill: #214b3d; font-size: 10px; font-weight: 700; }
.active-type-chart-bar { fill: url(#activePartnerBarGradient); filter: drop-shadow(0 5px 7px rgba(31, 150, 112, .16)); }

.trend-card { margin-top: 24px; }
.trend-layout { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 22px; align-items: stretch; }
.year-chart-panel { min-width: 0; }
.year-chart-shell { min-height: 330px; padding: 14px 12px 5px; border: 1px solid #e2ebe5; border-radius: 12px; background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%); }
.year-chart-shell canvas { width: 100% !important; height: 305px !important; }
.year-chart-fallback { display: none; place-items: center; min-height: 305px; margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.trend-summary { padding: 22px; border: 1px solid #dfe8e2; border-radius: 12px; color: var(--ink); background: #f3f8f4; }
.trend-summary p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.trend-summary strong { display: block; margin: 10px 0 20px; color: var(--primary); font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.trend-summary div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dfe8e2; color: #4c6356; font-size: 11px; }
.trend-summary .trend-year-list { display: block; max-height: 270px; overflow-y: auto; padding-right: 5px; }
.trend-summary b { color: var(--ink); font-size: 12px; font-weight: 600; }
.province-chart-panel { margin: 0 24px 24px; padding: 20px; border: 1px solid #e2ebe5; border-radius: 12px; background: #fbfdfb; }
.province-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.province-chart-heading h4 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.province-chart-heading p, .province-chart-note { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.province-chart-bars { display: grid; gap: 12px; max-height: 480px; overflow-y: auto; margin: 0; padding: 0 8px 2px 0; list-style: none; }
.province-chart-row { display: grid; grid-template-columns: minmax(130px, 190px) minmax(40px, 1fr) 45px; align-items: center; gap: 12px; }
.province-chart-label { color: #4e655a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.province-chart-track { display: block; height: 18px; overflow: hidden; border-radius: 5px; background: #e9f0eb; }
.province-chart-bar { display: block; min-width: 3px; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #23694e, #7ca887); }
.province-chart-bar-unknown { background: #9aa79f; }
.province-chart-value { color: var(--ink); font-size: 11px; text-align: right; }
.province-chart-note { margin-top: 16px; }
@media (max-width: 620px) {
    .province-chart-panel { margin-right: 14px; margin-left: 14px; padding: 14px; }
    .province-chart-row { grid-template-columns: minmax(95px, 120px) minmax(30px, 1fr) 32px; gap: 8px; }
    .province-chart-label, .province-chart-value { font-size: 10px; }
}

.partnership-table-card { margin-top: 24px; }
.partnership-table-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.partnership-download-excel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--primary); border-radius: 9px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .18s ease; }
.partnership-download-excel:hover:not(:disabled) { background: var(--forest-800); }
.partnership-download-excel:focus-visible { outline: 3px solid #8fac82; outline-offset: 3px; }
.partnership-download-excel:disabled { opacity: .55; cursor: not-allowed; }
.partnership-export-status { margin: 0; padding: 12px 24px; color: var(--forest-800); background: #eff7f2; font-size: 12px; }
.partnership-filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #f8fbf9; }
.partnership-filter-control { min-width: 0; }
.partnership-filter-control label { display: block; margin-bottom: 6px; color: #78877f; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.partnership-filter-control .form-select,
.partnership-filter-control .form-control { min-height: 39px; border-color: #dfe5e1; border-radius: 8px; color: #4e6258; background-color: #fff; box-shadow: none; font-size: .75rem; }
.partnership-filter-control .form-select:focus,
.partnership-filter-control .form-control:focus { border-color: #67ad8e; box-shadow: 0 0 0 3px rgba(35, 105, 78, .11); }
.partnership-reset-filter { min-height: 39px; padding: 0 13px; border: 1px solid #dfe5e1; border-radius: 8px; color: #65766d; background: #fff; font-size: .69rem; font-weight: 750; white-space: nowrap; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.partnership-reset-filter:hover { border-color: #77b99c; color: var(--forest-800); background: #f1f8f4; }
.partnership-table-wrap { width: 100%; overflow-x: auto; }
#partnershipDetailTable { width: 100% !important; min-width: 1600px; margin: 0 !important; }
#partnershipDetailTable thead th { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f3f7f4; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
#partnershipDetailTable tbody td { padding: 15px 12px; border-color: #e9efeb; color: #334e3f; font-size: 12px; vertical-align: middle; }
#partnershipDetailTable tbody tr:hover td { background: #f7fbf8; }
.partnership-row-number { width: 48px; color: #7a8981 !important; font-variant-numeric: tabular-nums; font-weight: 750; text-align: center; }
.partnership-cell-truncate { display: block; max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partnership-status { padding: 5px 8px; border-radius: 6px; font-size: .66rem; font-weight: 750; }
.partnership-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.partnership-link:hover { color: #174c36; text-decoration: underline; }
.partnership-detail-button { display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #b9d8c9; border-radius: 9px; color: var(--forest-800); background: #edf7f2; transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease; }
.partnership-detail-button:hover { border-color: var(--primary); color: #fff; background: var(--primary); transform: translateY(-1px); }
.partnership-detail-button:focus-visible { outline: 3px solid rgba(35,105,78,.22); outline-offset: 2px; }
.partnership-detail-icon { position: relative; display: inline-block; width: 17px; height: 17px; border: 1.8px solid currentColor; border-radius: 70% 15%; transform: rotate(45deg); }
.partnership-detail-icon::after { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.partnership-detail-dialog { width: min(940px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 26px 80px rgba(13,52,40,.32); }
.partnership-detail-dialog::backdrop { background: rgba(12,38,30,.66); backdrop-filter: blur(4px); }
.partnership-detail-dialog[open] { animation: partnership-detail-enter .2s ease-out; }
@keyframes partnership-detail-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.partnership-detail-panel { max-height: calc(100vh - 32px); overflow-y: auto; }
.partnership-detail-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); color: #fff; background: #153d2f; }
.partnership-detail-header p { margin: 0 0 5px; color: #bfe1d0; font-size: .66rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.partnership-detail-header h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.partnership-detail-close { display: grid; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.09); font-size: 1.35rem; line-height: 1; }
.partnership-detail-close:hover { background: rgba(255,255,255,.18); }
.partnership-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-bottom: 1px solid #e7ece9; background: #f5f9f7; }
.partnership-detail-summary strong { display: block; color: var(--forest-900); font-size: .92rem; }
.partnership-detail-summary span:first-child { color: var(--muted); font-size: .75rem; }
.partnership-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 8px 24px 20px; }
.partnership-detail-field { min-width: 0; margin: 0; padding: 15px 12px; border-bottom: 1px solid #edf1ef; }
.partnership-detail-field dt { margin-bottom: 6px; color: #7b8982; font-size: .62rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.partnership-detail-field dd { margin: 0; color: #2d4037; font-size: .79rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.partnership-detail-field-wide { grid-column: 1 / -1; }
.partnership-detail-document-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--primary); font-weight: 600; }
.partnership-detail-document-link:hover { color: #174c36; text-decoration: underline; }
.partnership-detail-footer { display: flex; justify-content: flex-end; padding: 15px 24px 20px; border-top: 1px solid #e8eeea; background: #fafcfb; }
.partnership-detail-footer button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: var(--primary); font-size: .75rem; font-weight: 800; }
.partnership-table-card div.dt-container { padding: 0 20px 14px; }
.partnership-table-card div.dt-container > .dt-layout-row:last-child { align-items: center; margin: 14px 0 0; }
.partnership-table-card div.dt-container .dt-info { color: #74837b; font-size: .72rem; }
.partnership-table-card div.dt-container .pagination { margin: 0; }
.partnership-table-card div.dt-container .page-link { min-width: 32px; border-color: #e0e6e2; color: #596d63; font-size: .72rem; text-align: center; box-shadow: none; }
.partnership-table-card div.dt-container .page-item.active .page-link { border-color: var(--primary); color: #fff; background: var(--primary); }
.partnership-table-card div.dt-container .page-item.disabled .page-link { color: #a7b1ac; background: #f6f8f7; }

.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.quality-list { display: grid; gap: 16px; }
.quality-row { display: grid; gap: 7px; }
.quality-label { display: flex; justify-content: space-between; gap: 14px; color: #566d63; font-size: .75rem; font-weight: 700; }
.quality-label strong { color: var(--forest-900); }
.quality-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf2ee; }
.quality-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #28684c, #8fac82); }
.quality-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.quality-details div { padding: 12px; border-radius: 9px; background: #f6f9f7; }
.quality-details span { display: block; color: var(--muted); font-size: .66rem; font-weight: 700; }
.quality-details strong { display: block; margin-top: 4px; color: var(--forest-950); font-size: 1.2rem; }
.rank-list { display: grid; gap: 11px; }
.rank-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: .69rem; font-weight: 850; }
.rank-name { overflow: hidden; color: #4f665b; font-size: .77rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.rank-number { color: var(--forest-900); font-size: .77rem; font-weight: 850; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 17px 2px 0; border-top: 1px solid var(--line); color: #83948c; font-size: .69rem; }
.footer strong { color: var(--forest-700); }

@media (max-width: 1360px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1120px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .bps-card { grid-row: auto; }
}

@media (max-width: 860px) {
    .dashboard-shell { display: block; }
    .sidebar { position: sticky; z-index: 100; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; height: 72px; overflow: visible; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 5px 18px rgba(18, 58, 46, .08); }
    .brand { width: auto; min-width: 0; height: 54px; padding: 0; }
    .mobile-menu-toggle { display: grid; }
    .sidebar.mobile-menu-open .mobile-menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .sidebar.mobile-menu-open .mobile-menu-icon span:nth-child(2) { opacity: 0; }
    .sidebar.mobile-menu-open .mobile-menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .side-nav { position: absolute; top: calc(100% + 1px); right: 10px; left: 10px; display: none; gap: 5px; overflow: visible; padding: 10px; border: 1px solid var(--line); border-radius: 0 0 13px 13px; background: #fff; box-shadow: 0 18px 35px rgba(18, 58, 46, .16); }
    .sidebar.mobile-menu-open .side-nav { display: grid; }
    .side-nav a { min-height: 44px; padding: 0 13px; font-size: .79rem; }
    .side-nav a.active { box-shadow: none; }
    .side-nav a:hover { transform: none; }
    .sidebar-label, .sidebar-divider, .sidebar-card, .sidebar-footer { display: none; }
    .main { padding: 0 20px 28px; }
    .topbar { min-height: 73px; }
    .partnership-filter-bar { grid-template-columns: 1fr 1fr; }
    .partnership-reset-filter { width: 100%; }
}

@media (max-width: 620px) {
    .main { padding: 0 14px 24px; }
    .topbar { align-items: center; gap: 10px; }
    .topbar-title p { display: none; }
    .topbar-title h1 { font-size: 1.25rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .lower-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 132px; }
    .card-header, .card-body { padding-left: 15px; padding-right: 15px; }
    .card-header h3 { font-size: 1.13rem; }
    .bar-row { grid-template-columns: 80px minmax(65px, 1fr) 26px; gap: 8px; }
    .bar-label { font-size: .69rem; }
    .donut-layout { grid-template-columns: 1fr; }
    .trend-layout { grid-template-columns: 1fr; }
    .trend-summary { min-height: 135px; }
    .partnership-filter-bar { grid-template-columns: 1fr; padding: 14px; }
    .partnership-table-card div.dt-container { padding-right: 14px; padding-left: 14px; }
    .partnership-detail-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); border-radius: 14px; }
    .partnership-detail-panel { max-height: calc(100vh - 18px); }
    .partnership-detail-header, .partnership-detail-summary { padding-right: 16px; padding-left: 16px; }
    .partnership-detail-grid { grid-template-columns: 1fr; padding-right: 12px; padding-left: 12px; }
    .partnership-detail-field-wide { grid-column: auto; }
    .partnership-detail-footer { padding-right: 16px; padding-left: 16px; }
    .footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
    .stat-grid { grid-template-columns: 1fr; }
}


/* Shared visual language with the CMS welcome panel and metric cards. */
.brand-icon { display: grid; place-items: center; flex: 0 0 38px; height: 42px; border-radius: 12px; color: #23694e; background: #edf5ef; }
.topbar-scope { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #dfe8e2; border-radius: 20px; background: #fff; color: #4c6356; font-size: 11px; white-space: nowrap; }
.topbar-scope > span { width: 6px; height: 6px; border-radius: 50%; background: #23694e; }
.public-hero { display: flex; justify-content: space-between; gap: 32px; padding: 34px; border-radius: 20px; background: radial-gradient(ellipse at right top, #347656 0, transparent 65%), #153d2f; color: #fff; }
.public-hero-copy { max-width: 650px; }
.public-hero .hero-eyebrow { margin: 0 0 12px; color: #d6e9bb; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.public-hero h2 { margin: 0 0 14px; color: #fff; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -.6px; }
.public-hero-copy > p:not(.hero-eyebrow) { margin: 0; max-width: 530px; color: #dbe9e1; font-size: 13px; line-height: 1.8; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; }
.hero-button-light { color: #204632; background: #fff; }
.hero-button-light:hover { color: #153d2f; background: #edf5e8; }
.hero-button-outline { color: #fff; border-color: #7c9a89; }
.hero-button-outline:hover { color: #fff; background: #ffffff12; }
.public-hero-aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 24px; min-width: 215px; }
.hero-institution { display: inline-flex; padding: 8px 12px; border-radius: 12px; background: #fff; }
.hero-institution img { width: 150px; height: 60px; object-fit: contain; }
.hero-scope { text-align: right; }
.hero-scope span { display: block; color: #c1d9b0; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.hero-scope strong { display: block; margin: 7px 0; color: #fff; font-size: 22px; }
.hero-scope small { display: block; color: #dbe9e1; font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.section-heading h2 { margin: 7px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.stat-card:nth-child(2) .stat-icon { color: #365d9d; background: #edf3ff; }
.stat-card:nth-child(3) .stat-icon { color: #7756a6; background: #f3eefa; }
.stat-card:nth-child(4) .stat-icon, .stat-card:nth-child(5) .stat-icon { color: #936c17; background: #fcf3dd; }
.pusat-breakdowns > section { min-width: 0; padding: 18px; border: 1px solid #e3ebe7; border-radius: 12px; background: #f8fbf9; }
.pusat-breakdowns h4 { font-size: 13px; font-weight: 600; line-height: 1.6; color: #233b30; }
.pusat-breakdowns .bar-row { grid-template-columns: minmax(65px, 1fr) minmax(25px, .8fr) 28px; gap: 8px; }
.pusat-breakdowns .bar-label { font-size: 11px; }
.chart-footer a { color: #23694e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.partnership-filter-control label { color: #64776d; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.partnership-filter-control .form-select, .partnership-filter-control .form-control { min-height: 42px; border-color: #dbe5df; border-radius: 9px; font-size: 12px; color: #233b30; }
.partnership-reset-filter { min-height: 42px; border-radius: 9px; font-weight: 600; }
.partnership-table-card .table { --bs-table-hover-bg: #edf5ef; }
.partnership-status.bg-success { background: #eaf4ed !important; color: #276047 !important; }
.partnership-status.bg-primary { background: #edf3ff !important; color: #365d9d !important; }
.partnership-status.bg-warning { background: #fcf3dd !important; color: #805c10 !important; }
.partnership-status.bg-danger { background: #fbeeed !important; color: #9f4545 !important; }
.partnership-status.bg-secondary { background: #eef1f3 !important; color: #576370 !important; }
.dashboard-data-overlay { border-color: #cddfd1; border-radius: 12px; box-shadow: 0 8px 28px #173b2b18; }
.dashboard-data-overlay .form-label { font-size: 12px; font-weight: 600; }
.dashboard-data-overlay .form-select { min-height: 42px; border-radius: 9px; font-size: 12px; color: #233b30; border-color: #dbe5df; }
:is(a, button, input, select):focus-visible { outline: 3px solid #c5a04a; outline-offset: 3px; }
:is(#overview, #pusat, #bps, #mitra, #tren, #data-kerja-sama, #active-partner-types) { scroll-margin-top: 24px; }
@media (min-width: 1361px) { .stat-card.primary { grid-column: span 2; } }
@media (min-width: 1200px) and (max-width: 1360px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat-card.primary { grid-column: span 2; } }
@media (max-width: 1120px) { .public-hero { padding: 28px; gap: 24px; } .public-hero-aside { min-width: 170px; } .hero-scope strong { font-size: 20px; } .stat-card { padding: 18px; } .stat-icon { top: 18px; right: 18px; width: 34px; height: 34px; } .stat-label { font-size: 11px; } }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-card.primary { grid-column: span 2; } .public-hero { gap: 24px; } .public-hero-aside { min-width: 150px; } .hero-institution img { width: 125px; height: 50px; } :is(#overview, #pusat, #bps, #mitra, #tren, #data-kerja-sama, #active-partner-types) { scroll-margin-top: 88px; } .topbar { min-height: 78px; } }
@media (max-width: 620px) { .public-hero { flex-direction: column; padding: 24px; gap: 20px; border-radius: 16px; } .public-hero-aside { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; gap: 16px; } .hero-institution img { width: 105px; height: 42px; } .hero-scope span { font-size: 8px; } .hero-scope strong { font-size: 17px; } .hero-scope small { display: none; } .public-hero h2 { font-size: 25px; } .public-hero-actions { gap: 8px; } .hero-button { padding: 9px 12px; font-size: 11px; } .topbar-scope { font-size: 10px; padding: 6px 9px; } .topbar-title h1 { font-size: 18px; } .stat-card { min-height: 174px; } .stat-value { font-size: 30px; } .card-header { padding-top: 18px; } .card-header h3 { font-size: 16px; } .card-header { flex-wrap: wrap; } .bar-row { grid-template-columns: minmax(110px, 1fr) minmax(65px, 1fr) 26px; } .section-heading { margin-top: 24px; } .section-heading > span { display: none; } .pusat-breakdowns > section { padding: 14px; } .dashboard-grid, .lower-grid { gap: 16px; } }
@media (max-width: 390px) { .stat-card.primary { grid-column: auto; } .topbar-scope { padding: 6px; } .topbar-title h1 { font-size: 16px; } .brand-copy strong { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.dashboard-data-overlay .btn-primary { color: #fff; background: #23694e; border-color: #23694e; }

@media (min-width: 861px) and (max-width: 1199px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-card.primary { grid-column: span 2; } }
@media (max-width: 1120px) { .lower-grid { grid-template-columns: 1fr; } }

.partnership-duration { white-space: nowrap; }
.partnership-duration-hint { margin: 0; padding: 12px 24px; color: var(--muted); background: #f8fbf9; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.6; }
@media (max-width: 620px) { .partnership-duration-hint { padding: 12px 14px; } }
