:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --line: #dbe3ef;
    --text: #162033;
    --muted: #667085;
    --primary: #0f5ea8;
    --primary-dark: #0a477f;
    --nav: #0b2545;
    --nav-soft: #123a68;
    --gold: #d99a2b;
    --green: #16a34a;
    --yellow: #f59e0b;
    --red: #dc2626;
}

/* SIMPATUH-BOSP Lite v1.6.2 — Filtered Budget Compliance Pie */
.grc-section {
    --grc-blue: #0f5ea8;
    --grc-navy: #0b2545;
    --grc-green: #16a34a;
    --grc-yellow: #f59e0b;
    --grc-red: #dc2626;
    padding: 18px;
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fbff 0%, #fff 38%, #f7fafc 100%);
    box-shadow: 0 18px 42px rgba(11, 37, 69, .08);
}

.grc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.grc-section-head h2 {
    margin: 3px 0 5px;
    color: var(--grc-navy);
    font-size: 23px;
}

.grc-section-head p {
    margin: 0;
    color: #64748b;
}

.grc-filter-scope {
    display: inline-flex;
    max-width: 100%;
    margin-top: 9px;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.grc-eyebrow {
    color: var(--grc-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.grc-data-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    white-space: nowrap;
}

.grc-risk {
    min-width: 172px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 12px;
}

.grc-risk span,
.grc-risk small {
    display: block;
    font-size: 11px;
    font-weight: 800;
}

.grc-risk strong {
    display: block;
    margin: 2px 0;
    font-size: 21px;
}

.grc-risk-low { color: #166534; background: #f0fdf4; border-color: #86efac; }
.grc-risk-medium { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.grc-risk-high { color: #991b1b; background: #fef2f2; border-color: #fca5a5; }

.grc-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.grc-kpi {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    background: #fff;
}

.grc-kpi::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--grc-blue);
    content: '';
}

.grc-kpi.score-low::before { background: var(--grc-green); }
.grc-kpi.score-medium::before { background: var(--grc-yellow); }
.grc-kpi.score-high::before { background: var(--grc-red); }

.grc-kpi span,
.grc-kpi small {
    display: block;
    color: #64748b;
}

.grc-kpi span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.grc-kpi strong {
    display: block;
    margin: 5px 0 2px;
    color: #0f2744;
    font-size: clamp(17px, 1.7vw, 25px);
    line-height: 1.1;
}

.grc-section .card {
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    overflow: hidden;
}

.grc-section .card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
}

.grc-section .card-header small {
    color: #64748b;
}

.grc-pie-wrap {
    display: grid;
    grid-template-columns: minmax(120px, .72fr) minmax(140px, 1.28fr);
    gap: 14px;
    align-items: center;
}

.grc-pie {
    position: relative;
    width: min(170px, 100%);
    aspect-ratio: 1;
    margin: auto;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 35, 64, .05), 0 10px 24px rgba(15, 35, 64, .09);
}

.grc-pie::after {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #e5edf5;
    content: '';
}

.grc-pie > div {
    position: absolute;
    inset: 25%;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
}

.grc-pie strong {
    color: #0f2744;
    font-size: 20px;
}

.grc-pie span {
    color: #64748b;
    font-size: 10px;
}

.grc-legend {
    display: grid;
    gap: 12px;
}

.grc-legend-item {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 5px 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-left: 4px solid var(--segment-color, #64748b);
    border-radius: 10px;
    background: #fff;
    color: #0f2744;
}

.grc-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--segment-color, #64748b);
}

.grc-legend-label {
    color: #0f2744;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.grc-legend-percent {
    color: var(--segment-color, #0f2744);
    font-size: 16px;
    font-weight: 900;
}

.grc-legend-amount {
    grid-column: 2 / 4;
    overflow-wrap: anywhere;
    color: var(--segment-color, #0f2744);
    font-size: clamp(19px, 1.65vw, 27px);
    font-weight: 950;
    letter-spacing: -.35px;
    line-height: 1.1;
}

.grc-legend-detail,
.grc-legend-breakdown {
    grid-column: 2 / 4;
    color: #475569;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
}

.grc-legend-breakdown {
    color: #991b1b;
    font-weight: 850;
}

.grc-legend-item em {
    grid-column: 2 / 4;
    color: var(--segment-color, #1d4ed8);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.grc-legend-item-link {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.grc-legend-item-link:hover,
.grc-legend-item-link:focus-visible {
    border-color: var(--segment-color, #1d4ed8);
    outline: 0;
    box-shadow: 0 9px 22px rgba(15, 39, 68, .13);
    transform: translateY(-2px);
}

.grc-empty {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
}

.grc-chart-note {
    margin-top: 12px;
    padding: 7px 10px;
    border-left: 3px solid #dc2626;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
}

.compliance-detail-hero.is-match {
    background: linear-gradient(135deg, #166534, #16a34a);
}

.compliance-detail-hero.is-mismatch {
    background: linear-gradient(135deg, #991b1b, #dc2626);
}

.compliance-detail-scope {
    padding: 11px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a5f;
}

.compliance-detail-kpi,
.compliance-breakdown {
    height: 100%;
    padding: 17px 18px;
    border: 1px solid #dbe7f3;
    border-left: 5px solid #0f5ea8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 39, 68, .07);
}

.compliance-detail-kpi.ok { border-left-color: #16a34a; }
.compliance-detail-kpi.bad { border-left-color: #dc2626; }
.compliance-detail-kpi span,
.compliance-breakdown span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.compliance-detail-kpi strong,
.compliance-breakdown strong {
    display: block;
    margin: 5px 0 3px;
    overflow-wrap: anywhere;
    color: #0f2744;
    font-size: clamp(23px, 2.3vw, 34px);
    font-weight: 950;
    letter-spacing: -.5px;
    line-height: 1.1;
}

.compliance-detail-kpi.ok strong { color: #15803d; }
.compliance-detail-kpi.bad strong { color: #b91c1c; }
.compliance-detail-kpi small,
.compliance-breakdown small { color: #64748b; font-weight: 700; }

.compliance-breakdown.adjust { border-left-color: #f59e0b; background: #fffbeb; }
.compliance-breakdown.wrong { border-left-color: #dc2626; background: #fef2f2; }
.compliance-breakdown.adjust strong { color: #a16207; }
.compliance-breakdown.wrong strong { color: #b91c1c; }

.compliance-detail-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.compliance-detail-toolbar > div small {
    display: block;
    margin-top: 2px;
    color: #64748b;
}

.compliance-detail-toolbar form { width: min(520px, 100%); }
.compliance-detail-toolbar input { min-width: 240px; }

.compliance-detail-table th {
    white-space: nowrap;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

.compliance-detail-table td { vertical-align: top; }
.compliance-detail-table td > span,
.compliance-detail-table td > small { display: block; margin-top: 3px; }
.compliance-detail-table td > small { color: #64748b; line-height: 1.35; }

.compliance-detail-amount {
    display: block;
    min-width: 145px;
    font-size: 17px;
    font-weight: 950;
    white-space: nowrap;
}
.compliance-detail-amount.ok { color: #15803d; }
.compliance-detail-amount.adjust { color: #a16207; }
.compliance-detail-amount.wrong { color: #b91c1c; }

.compliance-status-chip {
    display: inline-flex !important;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}
.compliance-status-chip.ok { color: #166534; background: #dcfce7; }
.compliance-status-chip.adjust { color: #92400e; background: #fef3c7; }
.compliance-status-chip.wrong { color: #991b1b; background: #fee2e2; }

.compliance-detail-table details { margin-top: 7px; color: #475569; }
.compliance-detail-table summary { cursor: pointer; font-size: 11px; font-weight: 800; }

.grc-components {
    display: grid;
    gap: 13px;
}

.grc-components > div > span { color: #334155; font-weight: 800; }
.grc-components > div > span small { color: #94a3b8; font-weight: 600; }
.grc-components > div > b { float: right; color: #0f2744; }
.grc-components > div > div,
.grc-trend > div > div {
    height: 7px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.grc-components i,
.grc-trend i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f5ea8, #38bdf8);
}

.grc-alert-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grc-alert-list li {
    padding: 10px 12px;
    border-left: 4px solid;
    border-radius: 8px;
    line-height: 1.4;
}

.grc-alert-list li.high { border-color: var(--grc-red); background: #fef2f2; color: #991b1b; }
.grc-alert-list li.medium { border-color: var(--grc-yellow); background: #fffbeb; color: #92400e; }
.grc-alert-list li.low { border-color: var(--grc-green); background: #f0fdf4; color: #166534; }

.grc-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.grc-actions a {
    flex: 1;
    padding: 9px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    text-align: center;
}

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

.grc-workflow div {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.grc-workflow b { display: block; color: #0f2744; font-size: 24px; }
.grc-workflow span { color: #64748b; font-size: 11px; }

.grc-tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.grc-tag-low { color: #166534; background: #dcfce7; }
.grc-tag-medium { color: #92400e; background: #fef3c7; }
.grc-tag-high { color: #991b1b; background: #fee2e2; }

.grc-heatmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.grc-heatmap a {
    display: grid;
    gap: 3px;
    min-height: 110px;
    padding: 13px;
    border: 1px solid;
    border-radius: 11px;
}

.grc-heatmap a strong { font-size: 14px; }
.grc-heatmap a span,
.grc-heatmap a small { font-size: 10px; }
.grc-heatmap a b { font-size: 23px; }
.grc-heat-high { color: #991b1b; background: #fef2f2; border-color: #fca5a5 !important; }
.grc-heat-medium { color: #92400e; background: #fffbeb; border-color: #fcd34d !important; }
.grc-heat-low { color: #166534; background: #f0fdf4; border-color: #86efac !important; }

.grc-trend {
    display: grid;
    gap: 14px;
}

.grc-trend > div {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 5px 8px;
    align-items: center;
}

.grc-trend > div > div { margin: 0; }
.grc-trend b { color: #0f2744; }
.grc-trend small { grid-column: 2 / 4; color: #64748b; }

@media (max-width: 1200px) {
    .grc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grc-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .grc-section { padding: 12px; }
    .grc-section-head { align-items: flex-start; flex-direction: column; }
    .grc-risk { width: 100%; }
    .grc-kpis,
    .grc-pie-wrap,
    .grc-heatmap { grid-template-columns: 1fr; }
    .grc-section .card-header { align-items: flex-start; flex-direction: column; }
    .compliance-detail-toolbar { align-items: stretch; flex-direction: column; }
    .compliance-detail-toolbar form { flex-wrap: wrap; }
    .compliance-detail-toolbar input { min-width: 100%; }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(15, 94, 168, 0.08), rgba(238, 243, 248, 0) 260px),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--nav), var(--primary));
    color: #fff;
    box-shadow: 0 8px 26px rgba(11, 37, 69, 0.22);
}

.topbar strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0;
}

.brand-logo {
    float: left;
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.topbar span {
    color: #d5dfef;
    font-size: 12px;
}

.userbar {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.userbar a {
    color: #fff;
    font-weight: 700;
}

.sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: 248px;
    padding: 18px 14px;
    background: var(--nav);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: #d8e6f5;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: var(--nav-soft);
    color: #fff;
}

.content {
    margin-left: 248px;
    padding: 98px 28px 36px;
}

.login-content {
    max-width: 460px;
    margin: 0 auto;
    padding: 110px 20px;
}

h1 {
    margin: 0 0 18px;
    font-size: 28px;
    color: #102033;
}

h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.panel,
.login-card,
.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 32, 51, 0.07);
}

.panel,
.login-card {
    padding: 18px;
    margin-bottom: 18px;
}

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

.kpi {
    padding: 18px;
    border-top: 4px solid var(--primary);
}

.kpi span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.kpi strong {
    font-size: 25px;
    color: #0b2545;
}

.kpi.success {
    border-left: 5px solid var(--green);
}

.kpi.warning {
    border-left: 5px solid var(--yellow);
}

.kpi.danger {
    border-left: 5px solid var(--red);
}

.chart-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    gap: 18px;
}

.filters,
.grid-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.checkline input {
    width: auto;
    min-height: auto;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 8px 16px;
    margin: 12px 0 18px;
}

.check-grid.compact {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
}

.danger-zone {
    border-color: rgba(220, 38, 38, 0.35);
    border-top: 4px solid var(--red);
}

.operation-grid,
.guide-grid,
.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.operation-card,
.formula-grid div,
.example-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.operation-card h3,
.split-grid h3,
.note-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.mini-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 22px;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e6eef8;
    color: #0b2545;
    font-size: 12px;
    font-weight: 800;
}

.guide-hero {
    border-top: 4px solid var(--primary);
}

.compliance-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: stretch;
    border-top: 4px solid var(--primary);
    background:
        linear-gradient(135deg, rgba(15, 94, 168, 0.08), rgba(255,255,255,0)),
        var(--surface);
}

.compliance-hero h2 {
    font-size: 22px;
}

.simulation-result {
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.simulation-result p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.guide-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.75;
}

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

.formula-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--nav);
}

.formula-grid span,
.status-row span {
    color: var(--muted);
    line-height: 1.5;
}

.status-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: center;
    margin-top: 16px;
}

.note-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
}

.note-card {
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.note-card.tinggi {
    border-left-color: var(--red);
}

.note-card .badge.tinggi {
    background: var(--red);
}

.note-card .badge.normal {
    background: var(--yellow);
}

.note-card .badge.rendah {
    background: var(--green);
}

.note-card.normal {
    border-left-color: var(--yellow);
}

.note-card.rendah {
    border-left-color: var(--green);
}

.note-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.note-card-head input {
    font-weight: 800;
}

.note-card-meta {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.note-card-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.recommend-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.grid-form .wide {
    grid-column: span 2;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c9d6e5;
    border-radius: 6px;
    padding: 9px 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 94, 168, 0.16);
    border-color: var(--primary);
}

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

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
    color: #fff;
}

.button.small {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
}

button:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.danger-button {
    background: linear-gradient(180deg, var(--red), #991b1b);
}

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

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

th,
td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef5fb;
    color: #344054;
    font-size: 12px;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #f8fbff;
}

.badge {
    display: inline-block;
    min-width: 86px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.badge.hijau,
.badge.selesai {
    background: var(--green);
}

.badge.kuning,
.badge.dalam.proses {
    background: var(--yellow);
}

.badge.merah,
.badge.belum.selesai {
    background: var(--red);
}

.badge.berhasil {
    background: var(--green);
}

.badge.gagal {
    background: var(--red);
}

.badge.sesuai,
.badge.boleh {
    background: var(--green);
}

.badge.tidak-sesuai,
.badge.tidak-boleh {
    background: var(--red);
}

.badge.perlu-review,
.badge.review,
.badge.batas-perlu-hitung,
.badge.batas,
.badge.wajib,
.badge.lemah {
    background: var(--yellow);
}

.badge.terhubung {
    background: var(--green);
}

.badge.tidak-terhubung {
    background: var(--red);
}

.badge.aktif {
    background: var(--green);
}

.badge.nonaktif {
    background: #64748b;
}

.badge.belum,
.badge.belum-diverifikasi {
    background: var(--yellow);
}

.badge.tinggi,
.badge.rutin {
    background: var(--green);
}

.badge.normal {
    background: var(--yellow);
}

.badge.sedang,
.badge.perlu-dipantau,
.badge.mendesak {
    background: var(--yellow);
}

.badge.rendah,
.badge.sangat-mendesak {
    background: var(--red);
}

.badge.rendah {
    background: var(--green);
}

.badge.sedang {
    background: var(--yellow);
}

.badge.tinggi {
    background: var(--red);
}

.badge.belum-ada {
    background: #64748b;
}

.note {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

.alert {
    padding: 11px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    background: #ecfdf3;
    color: #027a48;
    font-weight: 700;
}

.alert.error {
    background: #fef3f2;
    color: #b42318;
}

.hint {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.profile-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(11, 37, 69, 0.95), rgba(15, 94, 168, 0.92)),
        #0b2545;
    color: #fff;
    box-shadow: 0 16px 36px rgba(11, 37, 69, 0.22);
}

.profile-hero h2 {
    margin: 5px 0 8px;
    color: #fff;
    font-size: 24px;
}

.profile-hero p {
    margin: 0;
    color: #dbeafe;
}

.eyebrow {
    color: #ffd37a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
    min-width: 340px;
}

.profile-metrics div {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
}

.profile-metrics span {
    display: block;
    color: #cfe3ff;
    font-size: 12px;
    font-weight: 700;
}

.profile-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

code {
    background: #edf2f7;
    border-radius: 4px;
    padding: 2px 5px;
}

@media (max-width: 900px) {
    .topbar {
        position: static;
        flex-direction: column;
    }

    .sidebar {
        position: static;
        display: flex;
        width: auto;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .kpi-grid,
    .chart-grid,
    .filters,
    .grid-form,
    .operation-grid,
    .guide-grid,
    .split-grid,
    .formula-grid,
    .note-board,
    .note-card-controls {
        grid-template-columns: 1fr;
    }

    .grid-form .wide {
        grid-column: auto;
    }

    .profile-hero {
        flex-direction: column;
    }

    .profile-metrics {
        min-width: 0;
        grid-template-columns: 1fr;
    }
}

/* Pratinjau pembaruan Rapor Pendidikan dan optimasi BOSP */
.preview-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.preview-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.preview-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6eef8;
    color: var(--nav);
}

.preview-step.active {
    border-color: rgba(15, 94, 168, 0.45);
    background: #f1f7fe;
    color: var(--primary-dark);
}

.preview-step.active strong {
    background: var(--primary);
    color: #fff;
}

.preview-guard {
    border-top: 4px solid var(--gold);
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.preview-actions .inline-form {
    flex-wrap: wrap;
}

.muted {
    color: var(--muted);
    line-height: 1.5;
}

.badge.siap-diperbarui {
    background: var(--green);
}

.badge.validasi-batas,
.badge.butuh-telaah,
.badge.belum-teranggarkan {
    background: var(--yellow);
}

.badge.terkendala-juknis {
    background: var(--red);
}

@media (max-width: 900px) {
    .preview-actions {
        align-items: stretch;
    }
}

/* Scorecard sekolah disandingkan dengan Rapor Pendidikan Sheet 2.2 */
.scorecard-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: stretch;
    border-top: 4px solid var(--primary);
    background:
        linear-gradient(135deg, rgba(15, 94, 168, 0.08), rgba(255,255,255,0)),
        var(--surface);
}

.scorecard-hero h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.eyebrow-dark {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.scorecard-status {
    min-width: 205px;
    padding: 16px 18px;
    border-radius: 9px;
    background: #f3f8fe;
    border: 1px solid #cfe0f2;
}

.scorecard-status span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.scorecard-status strong {
    display: block;
    margin: 6px 0 9px;
    color: var(--nav);
    font-size: 28px;
}

.scorecard-kpi-grid .kpi small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.scorecard-formula {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.scorecard-table th {
    white-space: nowrap;
}

.scorecard-table td {
    min-width: 148px;
    line-height: 1.45;
}

.scorecard-table td:nth-child(1) {
    min-width: 44px;
    width: 44px;
    text-align: center;
    font-weight: 800;
}

.scorecard-table td:nth-child(2) {
    min-width: 245px;
}

.scorecard-table td:nth-child(3) {
    min-width: 240px;
}

.scorecard-table .badge {
    margin-bottom: 5px;
}

.score-value {
    display: block;
    color: var(--primary-dark);
    font-size: 19px;
}

.badge.selaras,
.badge.baik,
.badge.terhubung-sesuai {
    background: var(--green);
}

.badge.perlu-penyelarasan,
.badge.perlu-penguatan,
.badge.cukup-baik,
.badge.terhubung-perlu-telaah,
.badge.belum-ditemukan,
.badge.belum-ada-markas,
.badge.belum-terhubung,
.badge.belum-siap,
.badge.batas-perlu-hitung {
    background: var(--yellow);
}

.badge.belum-direncanakan,
.badge.terkendala-juknis,
.badge.perlu-perbaikan-segera {
    background: var(--red);
}

.badge.skor-tidak-tersedia {
    background: #64748b;
}

.badge.baca-saja {
    background: #64748b;
}

@media (max-width: 900px) {
    .scorecard-hero {
        flex-direction: column;
    }

    .scorecard-status {
        min-width: 0;
    }

    .scorecard-formula {
        grid-template-columns: 1fr;
    }
}


/* Matriks Kinerja, hasil analisis interaktif, realisasi, dan feedback sekolah */
.analysis-hero,
.scorecard-action-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-top: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(15, 94, 168, 0.07), rgba(255,255,255,0)), var(--surface);
}

.analysis-hero h2,
.scorecard-action-panel h2 {
    margin-bottom: 8px;
    font-size: 21px;
}

.analysis-guard {
    min-width: 170px;
    padding: 14px 16px;
    border: 1px solid #cfe0f2;
    border-radius: 9px;
    background: #f3f8fe;
    color: var(--primary-dark);
    text-align: right;
}

.analysis-guard span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.analysis-guard strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
}

.analysis-kpi-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.analysis-kpi-grid .kpi small,
.priority-summary-grid small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.35;
}

.source-panel {
    border-left: 5px solid #64748b;
}

.interactive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.analysis-controls {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(170px, 0.5fr);
    gap: 9px;
    min-width: min(100%, 590px);
}

.filter-buttons {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-trigger.active {
    background: linear-gradient(180deg, var(--nav), var(--primary-dark));
}

.analysis-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.priority-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 10px 25px rgba(16, 32, 51, 0.06);
}

.priority-card[hidden] {
    display: none;
}

.priority-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: start;
    padding: 17px 18px 15px;
    border-top: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(15,94,168,0.06), rgba(255,255,255,0));
}

.priority-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--nav);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.priority-main h3 {
    margin: 3px 0 6px;
    color: var(--nav);
    font-size: 17px;
}

.priority-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.priority-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.priority-score {
    min-width: 150px;
    text-align: right;
}

.priority-score span,
.priority-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.priority-score strong {
    display: block;
    margin: 6px 0 3px;
    color: var(--primary-dark);
    font-size: 23px;
}

.priority-score small {
    color: var(--muted);
}

.priority-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    border-top: 1px solid var(--line);
}

.priority-summary-grid > div {
    min-height: 88px;
    padding: 13px 16px;
    border-right: 1px solid var(--line);
}

.priority-summary-grid > div:last-child {
    border-right: 0;
}

.priority-summary-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--nav);
    font-size: 15px;
}

.priority-details {
    border-top: 1px solid var(--line);
    background: #fbfdff;
}

.priority-details > summary {
    padding: 13px 18px;
    color: var(--primary-dark);
    font-weight: 800;
    cursor: pointer;
}

.priority-details[open] > summary {
    border-bottom: 1px solid var(--line);
}

.detail-grid,
.action-forms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 13px;
    padding: 16px 18px;
}

.action-forms-grid {
    grid-template-columns: repeat(2, minmax(270px, 1fr));
    border-top: 1px dashed var(--line);
}

.detail-card,
.action-form,
.feedback-history {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-card h4,
.action-form h4,
.feedback-history h4 {
    margin: 0 0 10px;
    color: var(--nav);
    font-size: 15px;
}

.detail-card p {
    margin: 0 0 9px;
    color: #344054;
    line-height: 1.5;
}

.action-form {
    display: grid;
    gap: 10px;
}

.feedback-form {
    border-left: 5px solid var(--gold);
}

.feedback-history {
    margin: 0 18px 18px;
}

.feedback-item {
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.feedback-item:first-of-type {
    border-top: 0;
}

.feedback-item p {
    margin: 7px 0;
    line-height: 1.5;
}

.performance-table td {
    min-width: 150px;
    line-height: 1.45;
}

.performance-table td:first-child {
    width: 44px;
    min-width: 44px;
    text-align: center;
    font-weight: 800;
}

.badge.koreksi-juknis,
.badge.tertunda,
.badge.butuh-pendampingan {
    background: var(--red);
}

.badge.menunggu-pelaporan,
.badge.pemetaan-markas,
.badge.usulan-pendampingan,
.badge.permintaan-sekolah,
.badge.ditelaah,
.badge.terkirim {
    background: var(--yellow);
}

.badge.tercapai,
.badge.berjalan,
.badge.monitoring-mandiri,
.badge.dijadwalkan,
.badge.ditindaklanjuti {
    background: var(--green);
}

@media (max-width: 900px) {
    .analysis-hero,
    .scorecard-action-panel,
    .interactive-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .analysis-guard,
    .priority-score {
        min-width: 0;
        text-align: left;
    }

    .analysis-kpi-grid,
    .analysis-controls,
    .detail-grid,
    .action-forms-grid,
    .priority-summary-grid {
        grid-template-columns: 1fr;
    }

    .priority-card-head {
        grid-template-columns: auto 1fr;
    }

    .priority-score {
        grid-column: 1 / -1;
    }

    .priority-summary-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .priority-summary-grid > div:last-child {
        border-bottom: 0;
    }
}

.badge.tanggapan-sekolah,
.badge.konfirmasi-tindak-lanjut {
    background: var(--primary);
}

.badge.perlu-klarifikasi,
.badge.koreksi-data {
    background: var(--yellow);
}


/* Enterprise cycle workspace: Bootstrap 5 enhancement */
.enterprise-workspace .nav-tabs .nav-link { font-weight: 600; }
.enterprise-workspace .tab-content { min-height: 520px; }
.enterprise-workspace .table th { white-space: nowrap; }
.enterprise-workspace details summary { cursor: pointer; color: #0d6efd; }
.enterprise-workspace .card { border-radius: .75rem; }

/* SIMPATUH-BOSP patch: sidebar vertical scroll for long menu lists */
.sidebar {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) rgba(255,255,255,.08);
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.55); }

/* SIMPATUH-BOSP patch: visible color coding for Gap Rapor-Anggaran per SNP */
.snp-gap-row.snp-gap-baik { background: #f0fdf4; }
.snp-gap-row.snp-gap-waspada { background: #fffbeb; }
.snp-gap-row.snp-gap-bahaya { background: #fef2f2; }
.snp-gap-row.snp-gap-info { background: #eff6ff; }
.snp-gap-row.snp-gap-netral { background: #f8fafc; }
.badge.snp-gap-badge {
    min-width: 0;
    white-space: normal;
    text-transform: none;
    line-height: 1.2;
    max-width: 240px;
}
.badge.snp-gap-badge.snp-gap-baik,
.badge.ada-prioritas-dan-dukungan-anggaran { background: #16a34a; color: #fff; }
.badge.snp-gap-badge.snp-gap-waspada,
.badge.prioritas-ada-mapping-belum-selesai { background: #f59e0b; color: #111827; }
.badge.snp-gap-badge.snp-gap-bahaya,
.badge.prioritas-rapor-belum-didukung-anggaran { background: #dc2626; color: #fff; }
.badge.snp-gap-badge.snp-gap-info,
.badge.belanja-ada-tanpa-prioritas-rapor { background: #2563eb; color: #fff; }
.badge.snp-gap-badge.snp-gap-netral,
.badge.tidak-ada-prioritas { background: #64748b; color: #fff; }

@media (max-width: 900px) {
    .sidebar {
        max-height: 52vh;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar a { flex: 0 0 auto; }
}

/* SIMPATUH-BOSP update: stronger fixed sidebar vertical scroll */
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 72px);
    overscroll-behavior: contain;
}
.alert.warning {
    border-left: 5px solid var(--yellow);
    background: #fffbeb;
    color: #7c2d12;
}


/* SIMPATUH-BOSP fix: sidebar scroll always available on long menus */
.sidebar {
    max-height: 100vh;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
.sidebar nav, .sidebar .menu, .sidebar .sidebar-menu {
    min-height: 0;
}
@media (max-width: 991.98px) {
    .sidebar {
        max-height: 70vh;
        overflow-y: auto !important;
    }
}


/* SIMPATUH-BOSP Lite v1.1.0 interface refresh */
.brand-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.version-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .02em;
}
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.28) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 99px; }
.sidebar-section-title {
    margin: 0 8px 10px;
    color: rgba(216,230,245,.72);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.sidebar a.active {
    background: linear-gradient(135deg, var(--primary), #27a4f2);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15,94,168,.32);
}
.sidebar-version {
    margin: 18px 6px 6px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #d8e6f5;
    border: 1px solid rgba(255,255,255,0.10);
}
.sidebar-version span { color: #fff; font-weight: 800; }
.sidebar-version small { color: rgba(216,230,245,.76); }
.dashboard-hero {
    display: grid;
    grid-template-columns: 1fr minmax(230px, .28fr);
    gap: 20px;
    align-items: stretch;
    padding: 28px;
    border-radius: 22px;
    color: #fff;
    background:
      radial-gradient(circle at top left, rgba(251,191,36,.42), transparent 33%),
      radial-gradient(circle at bottom right, rgba(45,212,191,.28), transparent 34%),
      linear-gradient(135deg, #082f49, #0f5ea8 54%, #2563eb);
    box-shadow: 0 22px 54px rgba(11,37,69,.28);
    overflow: hidden;
    position: relative;
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    border: 38px solid rgba(255,255,255,.09);
}
.dashboard-hero h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: #fff;
    margin-bottom: 10px;
}
.dashboard-hero p {
    max-width: 900px;
    color: rgba(255,255,255,.86);
    margin-bottom: 18px;
}
.hero-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-mini-card {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    align-self: center;
}
.hero-mini-card span { display: block; font-size: 12px; text-transform: uppercase; opacity: .8; font-weight: 800; }
.hero-mini-card strong { display: block; font-size: 26px; margin: 5px 0; }
.hero-mini-card small { color: rgba(255,255,255,.86); }
.login-content {
    max-width: 1060px;
    padding: 112px 20px 40px;
}
.login-modern {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(340px,.72fr);
    gap: 22px;
    align-items: stretch;
}
.login-hero-panel {
    padding: 34px;
    border-radius: 24px;
    color: #0b2545;
    background:
      radial-gradient(circle at top right, rgba(15,94,168,.15), transparent 35%),
      linear-gradient(135deg, #ffffff, #eef7ff);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(16,32,51,.10);
}
.app-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #27a4f2);
    box-shadow: 0 16px 36px rgba(15,94,168,.25);
}
.login-hero-panel h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    color: #0b2545;
}
.lead-copy { color: var(--muted); font-size: 16px; }
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}
.feature-list span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e7f2ff;
    color: #0f5ea8;
    font-weight: 800;
    font-size: 12px;
}
.login-card-modern { padding: 28px; }
.btn-login-main {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), #27a4f2);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15,94,168,.2);
}
@media (max-width: 920px) {
    .dashboard-hero, .login-modern { grid-template-columns: 1fr; }
    .hero-mini-card { align-self: stretch; }
}
@media (max-width: 760px) {
    .topbar { position: static; flex-direction: column; padding: 14px 18px; }
    .sidebar { position: static; width: auto; max-height: 42vh; }
    .content { margin-left: 0; padding: 22px 18px 30px; }
    .login-content { padding: 22px 18px 34px; }
}

/* Safe MARKAS pipeline update */
.sidebar { overflow-y: auto; }
.pipeline-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0b2545, #0f5ea8 60%, #2563eb);
    box-shadow: 0 14px 34px rgba(11,37,69,.2);
}
.pipeline-hero h2 { font-size: 24px; }
.pipeline-steps { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pipeline-steps span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 700;
}
.pipeline-steps span.active { background: #fff; color: #0b2545; }
.pipeline-kpi { border: 0; border-left: 5px solid #64748b; box-shadow: 0 8px 22px rgba(16,32,51,.08); }
.pipeline-kpi-success { border-left-color: #16a34a; }
.pipeline-kpi-warning { border-left-color: #f59e0b; }
.pipeline-kpi-danger { border-left-color: #dc2626; }
.pipeline-kpi-snp { border-left-color: #ea580c; }
.pipeline-kpi-rekening { border-left-color: #991b1b; }
.pipeline-table details summary { cursor: pointer; color: #0f5ea8; font-size: 12px; }
.pipeline-row-juknis { border-left: 5px solid #dc2626; }
.pipeline-row-snp { border-left: 5px solid #ea580c; }
.pipeline-row-kode-rekening { border-left: 5px solid #991b1b; }
.pipeline-row-lolos { border-left: 5px solid #16a34a; }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.pipeline-legend span { padding: 6px 10px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; }
.legend-green { background: #16a34a; }
.legend-yellow { background: #f59e0b; color: #111827 !important; }
.legend-red { background: #dc2626; }
.legend-orange { background: #ea580c; }
.legend-purple { background: #7e22ce; }
.legend-darkred { background: #7f1d1d; }
.badge.lolos-penuh,
.badge.divalidasi,
.badge.disetujui,
.badge.cocok-exact,
.badge.terpetakan-snp { background: #16a34a; }
.badge.lolos-bersyarat,
.badge.perlu-perbaikan,
.badge.menunggu-validasi-operator,
.badge.menunggu-keputusan-kabid,
.badge.belum-diputuskan { background: #f59e0b; color: #111827; }
.badge.tidak-lolos-juknis,
.badge.ditolak,
.badge.ditolak-operator { background: #dc2626; }
.badge.belum-terpetakan-snp { background: #ea580c; }
.badge.tidak-lolos-kode-rekening,
.badge.kode-tidak-ditemukan { background: #7f1d1d; }
.badge.cocok-prefix,
.badge.prefix { background: #7e22ce; }
.badge.kode-tidak-tersedia,
.badge.belum-divalidasi,
.badge.terkunci,
.badge.exact { background: #64748b; }
.badge.dikembalikan { background: #f59e0b; color: #111827; }
@media (max-width: 991px) {
    .pipeline-hero { align-items: flex-start; flex-direction: column; }
    .pipeline-steps { justify-content: flex-start; }
}

/* Governance dashboards v1.3 */
.notification-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.notification-link b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.sticky-filter { position: sticky; top: 82px; z-index: 7; }
.sticky-table thead th { position: sticky; top: 0; z-index: 3; background: #f8fafc; box-shadow: inset 0 -1px #dbe3ef; }
.risk-row-tinggi { border-left: 5px solid #dc2626; background: rgba(254,226,226,.24); }
.risk-row-sedang { border-left: 5px solid #f59e0b; background: rgba(254,243,199,.22); }
.risk-row-rendah { border-left: 5px solid #16a34a; }
.risk-matrix { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.risk-box { min-height: 150px; padding: 18px; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; color: #fff; box-shadow: 0 10px 24px rgba(16,32,51,.12); }
.risk-box strong { font-size: 38px; line-height: 1; }
.risk-box span { font-size: 15px; font-weight: 900; margin: 8px 0 4px; }
.risk-box small { color: rgba(255,255,255,.84); }
.risk-box.high { background: linear-gradient(135deg,#991b1b,#ef4444); }
.risk-box.medium { background: linear-gradient(135deg,#b45309,#f59e0b); }
.risk-box.low { background: linear-gradient(135deg,#166534,#22c55e); }
.decision-summary { border-top: 5px solid #0f5ea8; }
.metric-box { min-height: 92px; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); background: #f8fafc; }
.metric-box strong { font-size: 25px; }
.metric-box span { font-size: 11px; color: var(--muted); }
.metric-box.success { border-bottom: 4px solid #16a34a; }
.metric-box.warning { border-bottom: 4px solid #f59e0b; }
.metric-box.danger { border-bottom: 4px solid #dc2626; }
.metric-box.orange { border-bottom: 4px solid #ea580c; }
.metric-box.darkred { border-bottom: 4px solid #7f1d1d; }
.review-form { min-width: 230px; }
.notification-list { display: grid; gap: 12px; }
.notification-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid #64748b; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(16,32,51,.06); }
.notification-card.unread { background: #f5faff; }
.notification-card p { margin: 5px 0; }
.notification-card small { color: var(--muted); }
.notification-card.severity-success { border-left-color: #16a34a; }
.notification-card.severity-warning { border-left-color: #f59e0b; }
.notification-card.severity-danger { border-left-color: #dc2626; }
.badge.risiko-rendah { background: #16a34a; }
.badge.risiko-sedang { background: #f59e0b; color: #111827; }
.badge.risiko-tinggi { background: #dc2626; }
.badge.disetujui-bersyarat, .badge.lolos-bersyarat { background: #f59e0b; color: #111827; }
.badge.pdf-ada, .badge.pdf-tersedia, .badge.excel-ada, .badge.excel-tersedia { background: #16a34a; }
.badge.pdf-belum-ada { background: #dc2626; }
.badge.lolos-bersyarat { background: #f59e0b; color: #111827; }
.badge.valid { background: #16a34a; }
.badge.dikecualikan { background: #64748b; }
@media (max-width: 1000px) { .risk-matrix { grid-template-columns: 1fr; } .sticky-filter { position: static; } }
@media print {
  .topbar,.sidebar,.no-print,.hero-actions,.pipeline-steps { display:none!important; }
  .content { margin:0!important; padding:12px!important; }
  body { background:#fff!important; font-size:11px; }
  .pipeline-hero { color:#000!important; background:#fff!important; border:1px solid #ccc; box-shadow:none; }
  .pipeline-hero h2 { color:#000!important; }
  .card { box-shadow:none!important; break-inside:avoid; }
  a { color:#000!important; text-decoration:none!important; }
}
.quick-workspace { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.quick-workspace a { display:flex; flex-direction:column; gap:5px; min-height:92px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 22px rgba(16,32,51,.06); transition:.16s ease; }
.quick-workspace a:hover { transform:translateY(-2px); border-color:#0f5ea8; box-shadow:0 12px 26px rgba(15,94,168,.12); }
.quick-workspace strong { color:#0b2545; font-size:15px; }
.quick-workspace span { color:var(--muted); font-size:12px; line-height:1.5; }

/* Hybrid Rule-Based Juknis Matching v1.4.0 */
.badge.lolos-otomatis { background:#16a34a; }
.badge.lolos-bersyarat { background:#f59e0b; color:#111827; }
.badge.perlu-hitung-batas { background:#7e22ce; }
.badge.tidak-lolos { background:#dc2626; }
.badge.belum-ada-aturan { background:#64748b; }
.hybrid-score { display:inline-block; padding:2px 7px; border-radius:999px; background:#e2e8f0; color:#0f172a; font-size:11px; font-weight:800; }
.hybrid-result-cell { min-width:300px; }
.hybrid-result-cell details { margin-top:5px; }
.hybrid-result-cell ul { margin:4px 0 6px 18px; padding:0; }
.hybrid-quick-filters .btn { border-radius:999px; }
.hybrid-simulation { background:#f8fafc; }
.hybrid-readonly { max-height:380px; overflow:auto; background:#0f172a; color:#e2e8f0; padding:15px; border-radius:10px; }
.hybrid-master-page textarea { min-height:72px; }

/* Rekap Kelengkapan Sekolah v1.5.0 */
.completeness-hero { background:linear-gradient(135deg,#172554,#2563eb 58%,#0ea5e9); }
.completeness-kpi { transition:transform .16s ease,box-shadow .16s ease; }
.completeness-kpi:hover { transform:translateY(-3px);box-shadow:0 14px 28px rgba(15,94,168,.16); }
.pipeline-kpi-info { border-left-color:#0ea5e9; }
.pipeline-kpi-primary { border-left-color:#2563eb; }
.pipeline-kpi-dark { border-left-color:#0f172a; }
.completeness-tabs { display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:8px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(16,32,51,.06);overflow-x:auto; }
.completeness-tabs a { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;border-radius:10px;color:#334155;font-weight:800;white-space:nowrap; }
.completeness-tabs a b { display:inline-grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:999px;background:#e2e8f0;color:#0f172a;font-size:11px; }
.completeness-tabs a.active { background:linear-gradient(135deg,#0f5ea8,#2563eb);color:#fff; }
.completeness-tabs a.active b { background:#fff;color:#0f5ea8; }
.completeness-donut { --complete:0; width:142px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#16a34a calc(var(--complete)*1%),#e2e8f0 0);flex:0 0 auto; }
.completeness-donut::before { content:"";position:absolute;inset:16px;border-radius:50%;background:#fff; }
.completeness-donut strong,.completeness-donut span { position:relative;z-index:1;display:block;text-align:center; }
.completeness-donut strong { font-size:28px;line-height:1;color:#0f172a; }
.completeness-donut span { margin-top:-28px;padding-top:48px;font-size:11px;color:#64748b;font-weight:800; }
.completeness-donut.small-donut { width:112px; }
.completeness-donut.small-donut::before { inset:13px; }
.completeness-district { max-height:360px;overflow:auto; }
.completeness-mini-progress { width:92px;height:7px;display:inline-flex;vertical-align:middle;margin-right:6px;background:#e2e8f0; }
.completeness-mini-progress .progress-bar,.completeness-table .progress-bar,.school-readiness-card .progress-bar { background:linear-gradient(90deg,#0ea5e9,#16a34a); }
.completeness-table td { vertical-align:middle; }
.completeness-row-success { border-left:5px solid #16a34a; }
.completeness-row-warning { border-left:5px solid #f59e0b;background:rgba(254,243,199,.16); }
.completeness-row-danger { border-left:5px solid #dc2626;background:rgba(254,226,226,.15); }
.completeness-row-info,.completeness-row-primary { border-left:5px solid #2563eb;background:rgba(219,234,254,.14); }
.completeness-row-secondary { border-left:5px solid #64748b; }
.completeness-stage-grid { display:grid;gap:5px;min-width:270px; }
.completeness-stage { display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc; }
.completeness-stage>span { display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:900;background:#cbd5e1;color:#334155;flex:0 0 auto; }
.completeness-stage div { min-width:0;display:flex;flex-direction:column; }
.completeness-stage strong { font-size:11px;color:#0f172a; }
.completeness-stage small { color:#64748b;font-size:10px;white-space:normal; }
.completeness-stage.done { border-color:#bbf7d0;background:#f0fdf4; }
.completeness-stage.done>span { background:#16a34a;color:#fff; }
.completeness-stage.active { border-color:#fed7aa;background:#fff7ed; }
.completeness-stage.active>span { background:#f97316;color:#fff; }
.analysis-summary { display:grid;gap:4px;min-width:210px;font-size:11px; }
.analysis-summary span { padding:4px 7px;border-radius:7px;background:#f1f5f9;color:#334155; }
.analysis-summary span.ok { background:#dcfce7;color:#166534; }
.analysis-summary span.warn { background:#fef3c7;color:#92400e; }
.analysis-summary span.danger { background:#fee2e2;color:#991b1b; }
.completeness-status { display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap; }
.completeness-status.status-success { background:#dcfce7;color:#166534; }
.completeness-status.status-warning { background:#fef3c7;color:#92400e; }
.completeness-status.status-danger { background:#fee2e2;color:#991b1b; }
.completeness-status.status-info,.completeness-status.status-primary { background:#dbeafe;color:#1d4ed8; }
.completeness-status.status-secondary { background:#e2e8f0;color:#475569; }
.readiness-score { display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:115px; }
.readiness-score strong { font-size:22px; }
.readiness-score span { font-size:10px;font-weight:800; }
.readiness-high strong { color:#15803d; }.readiness-medium strong { color:#b45309; }.readiness-low strong { color:#b91c1c; }
.deadline-chip { display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap; }
.deadline-normal { background:#dcfce7;color:#166534; }
.deadline-perhatian { background:#fef3c7;color:#92400e; }
.deadline-terlambat { background:#fee2e2;color:#991b1b; }
.completeness-table details summary { cursor:pointer;color:#0f5ea8;font-size:11px;margin-top:6px; }
.completeness-table details ul { margin:5px 0 0 16px;padding:0;font-size:10px;max-width:260px; }
.dashboard-stage-flow { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.dashboard-stage { position:relative;display:flex;align-items:center;gap:12px;min-height:86px;padding:15px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc; }
.dashboard-stage:not(:last-child)::after { content:"→";position:absolute;right:-18px;top:31px;color:#94a3b8;font-size:20px;z-index:2; }
.dashboard-stage>b { display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#cbd5e1;color:#334155;flex:0 0 auto; }
.dashboard-stage div { display:flex;flex-direction:column; }
.dashboard-stage strong { font-size:13px; }.dashboard-stage small { font-size:11px;color:#64748b; }
.dashboard-stage.done { background:#f0fdf4;border-color:#bbf7d0; }.dashboard-stage.done>b { background:#16a34a;color:#fff; }
.dashboard-stage.active { background:#fff7ed;border-color:#fed7aa; }.dashboard-stage.active>b { background:#f97316;color:#fff; }
.school-action-list { margin:0;padding-left:22px;display:grid;gap:9px; }
.school-action-list li { padding:7px 9px;border-radius:8px;background:#f8fafc;border-left:4px solid #f59e0b; }
.priority-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px; }
.priority-grid a { display:flex;flex-direction:column;min-height:100px;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc; }
.priority-grid b { font-size:28px;color:#0f5ea8; }.priority-grid span { margin-top:6px;color:#475569;font-size:11px;font-weight:800; }
@media (max-width:1200px) { .completeness-tabs{grid-template-columns:repeat(5,180px)}.priority-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-stage-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stage:not(:last-child)::after{display:none} }
@media (max-width:760px) { .priority-grid{grid-template-columns:1fr 1fr}.dashboard-stage-flow{grid-template-columns:1fr}.completeness-donut{width:112px}.completeness-table{font-size:12px} }
@media print { .completeness-tabs,.sticky-filter,.completeness-table .btn-group-vertical{display:none!important}.completeness-district{max-height:none}.completeness-table details{display:none} }
.completeness-inline-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.completeness-inline-summary a { display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;box-shadow:0 7px 18px rgba(16,32,51,.05); }
.completeness-inline-summary b { font-size:24px;color:#0f5ea8; }.completeness-inline-summary span { color:#475569;font-size:11px;font-weight:800; }
@media(max-width:760px){.completeness-inline-summary{grid-template-columns:1fr 1fr}}

/* Rekap Basis Kepatuhan v1.6.6 */
.coverage-panel { padding:22px;border:1px solid #dbe3ef;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(15,46,82,.08); }
.coverage-panel-head { display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px; }
.coverage-panel-head h2 { margin:3px 0 6px;font-size:23px;color:#0f2744; }
.coverage-panel-head p { margin:0;color:#52657a; }
.coverage-meta { display:flex;flex-direction:column;align-items:flex-end;padding:10px 13px;border:1px solid #dbeafe;border-radius:11px;background:#eff6ff;color:#1e3a8a;white-space:nowrap; }
.coverage-meta span { font-size:10px;color:#64748b; }
.coverage-card-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px; }
.coverage-card { --coverage:#2563eb;display:flex;min-height:175px;flex-direction:column;padding:16px;border:1px solid #dbe3ef;border-top:5px solid var(--coverage);border-radius:14px;background:#fff;color:#1e293b;box-shadow:0 8px 20px rgba(15,46,82,.06);transition:transform .16s ease,box-shadow .16s ease; }
.coverage-card:hover { transform:translateY(-3px);box-shadow:0 15px 28px rgba(15,46,82,.13);color:#0f172a; }
.coverage-card>span { min-height:38px;font-size:12px;font-weight:900;color:#475569;text-transform:uppercase;letter-spacing:.03em; }
.coverage-card>strong { margin:5px 0 10px;font-size:29px;line-height:1;color:var(--coverage); }
.coverage-card>strong small { font-size:14px;color:#64748b; }
.coverage-card>div { height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden; }
.coverage-card>div i { display:block;height:100%;border-radius:inherit;background:var(--coverage); }
.coverage-card>small { margin-top:8px;line-height:1.45;color:#64748b; }
.coverage-card>em { margin-top:auto;padding-top:11px;font-size:11px;font-style:normal;font-weight:900;color:var(--coverage); }
.coverage-blue { --coverage:#2563eb }.coverage-violet { --coverage:#7c3aed }.coverage-green { --coverage:#16a34a }.coverage-amber { --coverage:#d97706 }.coverage-red { --coverage:#dc2626 }
.coverage-status-row { display:flex;flex-wrap:wrap;gap:8px;margin-top:15px; }
.coverage-status-row span { padding:7px 10px;border-radius:999px;font-size:11px; }
.coverage-status-row .status-on { background:#dcfce7;color:#166534 }.coverage-status-row .status-off { background:#e2e8f0;color:#475569 }
.coverage-warning { margin-top:13px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#854d0e; }
.coverage-warning summary { cursor:pointer;padding:10px 12px;font-weight:900; }
.coverage-warning ul { margin:0;padding:0 28px 12px; }
.coverage-definition { display:flex;flex-wrap:wrap;gap:8px; }
.coverage-definition span { padding:8px 11px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;color:#475569;font-size:11px; }
.coverage-tabs { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:16px;padding:6px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(16,32,51,.06); }
.coverage-tabs a { display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-radius:10px;color:#334155;font-weight:800; }
.coverage-tabs a b { padding:4px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:11px; }
.coverage-tabs a.active { background:linear-gradient(135deg,#173b68,#2563eb);color:#fff; }
.coverage-tabs a.active b { background:#fff;color:#1d4ed8; }
.coverage-snp-card { display:grid;grid-template-columns:1fr 1fr;gap:10px;height:100%;padding:18px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;color:#334155;box-shadow:0 8px 20px rgba(15,46,82,.06); }
.coverage-snp-card>span { grid-column:1/-1;width:max-content;padding:4px 8px;border-radius:7px;background:#dbeafe;color:#1d4ed8;font-weight:900; }
.coverage-snp-card h3 { grid-column:1/-1;margin:0;font-size:17px;color:#0f2744; }
.coverage-snp-card>div { display:flex;flex-direction:column;padding:10px;border-radius:9px;background:#f8fafc; }
.coverage-snp-card>div b { font-size:22px;color:#0f5ea8; }.coverage-snp-card>div small { color:#64748b; }
.coverage-snp-card>strong,.coverage-snp-card>p,.coverage-snp-card>em,.coverage-snp-card>.badge { grid-column:1/-1; }
.coverage-snp-card>strong { font-size:18px;color:#0f172a; }.coverage-snp-card>p { margin:0;color:#64748b;font-size:11px; }
.coverage-snp-card>em { font-style:normal;font-weight:900;color:#2563eb; }
.coverage-pagination { display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px;padding:11px 14px;border:1px solid #dbe3ef;border-radius:10px;background:#fff; }
.coverage-pagination div { display:flex;align-items:center;gap:12px; }.coverage-pagination a { font-weight:800; }
@media(max-width:1250px){.coverage-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.coverage-panel-head{display:block}.coverage-meta{align-items:flex-start;margin-top:12px}.coverage-card-grid{grid-template-columns:1fr 1fr}.coverage-tabs{grid-template-columns:repeat(5,180px);overflow-x:auto}}
@media(max-width:520px){.coverage-card-grid{grid-template-columns:1fr}.coverage-pagination{align-items:flex-start;flex-direction:column}}
@media print{.coverage-panel{box-shadow:none}.coverage-warning{display:none}.coverage-detail-page .pipeline-hero{background:#fff!important;color:#000!important;border:1px solid #ccc}.coverage-detail-page .table{font-size:10px}.coverage-snp-card{break-inside:avoid;box-shadow:none}}

/* SIMPATUH-BOSP Lite v1.7.3 — Page Management & Performance */
.simponi-pagination {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}
.simponi-pagination .pagination-summary { color: var(--muted); font-size: 13px; }
.simponi-pagination nav { justify-self: center; }
.simponi-pagination .pagination-size-form { justify-self: end; margin: 0; }
.simponi-pagination .pagination-size-form label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.simponi-pagination .pagination-size-form select { min-width: 72px; padding: 5px 24px 5px 8px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.managed-table thead th,
.table-wrap .managed-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; box-shadow: inset 0 -1px 0 var(--line); }
.managed-table tbody tr:hover { background: #f8fbff; }
.managed-table td { vertical-align: middle; }
.panel details > summary.button { display: inline-flex; cursor: pointer; list-style: none; }
.panel details > summary.button::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
    .simponi-pagination { grid-template-columns: 1fr; justify-items: stretch; }
    .simponi-pagination nav,
    .simponi-pagination .pagination-size-form { justify-self: start; }
    .simponi-pagination nav { max-width: 100%; overflow-x: auto; }
}

/* SIMPATUH-BOSP Lite v1.8.2 — branding, professional header, and mobile navigation */
.brand-block { display:flex; align-items:center; min-width:0; }
.brand-copy { min-width:0; }
.brand-logo { float:none; flex:0 0 auto; width:46px; height:46px; margin:0 12px 0 0; border-radius:10px; background:#fff; padding:5px; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.brand-title-row strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agency-name { display:block; margin-top:3px; color:#dbeafe !important; font-size:11px !important; font-weight:700; }
.topbar-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.user-summary { display:flex; flex-direction:column; color:#fff !important; font-weight:800; line-height:1.2; }
.user-summary small { margin-top:3px; color:#d5dfef; font-size:10px; font-weight:600; }
.logout-link { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:8px 13px; border:1px solid rgba(255,255,255,.42); border-radius:9px; background:rgba(255,255,255,.10); color:#fff !important; font-weight:900; }
.logout-link:hover { background:#fff; color:var(--nav) !important; }
.mobile-menu-toggle, .sidebar-close { display:none; border:0; cursor:pointer; }
.sidebar-mobile-head { display:none; }
.sidebar-backdrop { display:none; }

/* Admin logo setting */
.app-logo-preview { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#f8fafc; }
.app-logo-preview img { width:72px; height:72px; object-fit:contain; padding:6px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.app-logo-preview .meta { min-width:0; }
.app-logo-preview .meta strong { display:block; margin-bottom:4px; color:var(--nav); }
.app-logo-upload-note { margin-top:6px; color:var(--muted); font-size:11px; }

@media (max-width: 760px) {
    body { overflow-x:hidden; }
    .topbar {
        position:sticky !important;
        top:0;
        z-index:1040;
        min-height:64px;
        flex-direction:row !important;
        align-items:center;
        gap:8px;
        padding:9px 10px !important;
    }
    .brand-block { flex:1 1 auto; min-width:0; }
    .brand-logo { width:40px; height:40px; margin-right:9px; border-radius:9px; }
    .brand-title-row { gap:6px; min-width:0; }
    .brand-title-row strong { font-size:15px; max-width:47vw; }
    .version-pill { display:none; }
    .agency-name { display:none !important; }
    .topbar-actions { flex:0 0 auto; gap:6px; }
    .mobile-menu-toggle {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:5px;
        min-height:38px;
        padding:7px 9px;
        border:1px solid rgba(255,255,255,.34);
        border-radius:9px;
        background:rgba(255,255,255,.12);
        color:#fff;
        font-weight:900;
        font-size:15px;
    }
    .mobile-menu-toggle span { display:none; }
    .userbar { gap:6px; white-space:normal; }
    .user-summary { display:none; }
    .notification-link { display:inline-flex; min-height:38px; align-items:center; padding:7px 8px; border-radius:9px; background:rgba(255,255,255,.10); font-size:0; }
    .notification-link::before { content:'🔔'; font-size:16px; }
    .notification-link b { margin-left:2px; font-size:10px; }
    .logout-link { display:inline-flex !important; min-height:38px; padding:7px 10px; border-color:rgba(255,255,255,.55); background:#fff; color:var(--nav) !important; font-size:12px; }

    .sidebar {
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        bottom:0 !important;
        z-index:1060;
        display:block !important;
        width:min(86vw, 320px) !important;
        max-height:none !important;
        height:100dvh;
        padding:12px 12px 22px !important;
        border-right:1px solid rgba(255,255,255,.10);
        border-bottom:0 !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        transform:translateX(-105%);
        transition:transform .22s ease;
        box-shadow:18px 0 42px rgba(4,18,35,.28);
    }
    .sidebar-open .sidebar { transform:translateX(0); }
    .sidebar-mobile-head { display:flex; align-items:center; justify-content:space-between; margin:0 2px 10px; padding:6px 6px 10px; border-bottom:1px solid rgba(255,255,255,.14); color:#fff; }
    .sidebar-close { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:9px; background:rgba(255,255,255,.12); color:#fff; font-size:27px; line-height:1; }
    .sidebar a { display:block; margin-bottom:4px; padding:11px 12px; }
    .sidebar-backdrop { position:fixed; inset:0; z-index:1050; background:rgba(2,13,26,.54); opacity:0; visibility:hidden; display:block; transition:opacity .22s ease, visibility .22s ease; }
    .sidebar-open .sidebar-backdrop { opacity:1; visibility:visible; }
    .sidebar-open { overflow:hidden; }

    .content { margin-left:0 !important; padding:18px 12px 28px !important; }
    .login-content { padding:18px 12px 28px !important; }
    h1 { font-size:22px; margin-bottom:14px; }
    .panel, .login-card { padding:14px; border-radius:12px; }
    .table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    table { min-width:680px; }
    .grid-form, .filters, .operation-grid, .guide-grid, .split-grid { grid-template-columns:1fr !important; }
    input, select, textarea, button, .button { max-width:100%; }
    .button, button { min-height:40px; }
    .app-logo-preview { align-items:flex-start; }
}

@media (max-width: 390px) {
    .brand-title-row strong { max-width:42vw; font-size:14px; }
    .logout-link { padding-left:8px; padding-right:8px; }
}

.login-government .government-brand-panel { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:10px; }
.login-government-logo { width:92px; height:92px; object-fit:contain; padding:8px; border-radius:18px; background:#fff; box-shadow:0 16px 34px rgba(11,37,69,.18); }
.government-app-name { margin-top:8px; color:#0b2545; font-size:clamp(28px,4vw,42px); font-weight:950; letter-spacing:-.02em; }
.government-agency { color:#475569; font-size:14px; font-weight:800; }
.government-access-badge { display:inline-flex; margin-top:6px; padding:7px 11px; border:1px solid #bfdbfe; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
@media (max-width:760px) {
  .login-government .government-brand-panel { align-items:center; text-align:center; padding:22px 16px; }
  .login-government-logo { width:78px; height:78px; }
  .government-app-name { font-size:27px; }
}


/* v3.1.37.15 — proportional action controls & pagination */
:root{--ui-btn-h:36px;--ui-btn-compact-h:32px}
button,.button,.btn{min-height:var(--ui-btn-h);padding:7px 13px;font-size:13px;line-height:1.2;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;vertical-align:middle}
.btn-sm,.button.small,.btn.btn-sm,table .btn,table .button,table button{min-height:var(--ui-btn-compact-h);padding:5px 10px;font-size:12px;border-radius:8px}
.icon-btn,.btn-icon{width:32px;height:32px;min-width:32px;min-height:32px;padding:0}
.icon-btn svg,.btn-icon svg,.btn svg,.button svg,button svg{width:17px;height:17px;flex:0 0 17px}
.simponi-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding:10px 0}
.simponi-pagination.compact{padding:6px 0}
.simponi-pagination .pagination{display:flex;gap:4px;flex-wrap:wrap}
.simponi-pagination .page-link{min-width:32px;height:32px;padding:5px 8px;border-radius:8px!important;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.pagination-summary{font-size:12px;color:#667085}.pagination-size-form label{display:flex;align-items:center;gap:7px;font-size:12px;color:#667085}.pagination-size-form select{min-height:32px;height:32px;padding:4px 28px 4px 8px;font-size:12px;border-radius:8px}
@media(max-width:760px){button,.button,.btn{min-height:36px}.simponi-pagination{align-items:flex-start}.pagination-summary{width:100%}.simponi-pagination nav{max-width:100%;overflow-x:auto}.pagination-size-form{margin-left:auto}}
/* v3.1.37.17 — contextual help and proportional page typography */
.page-title-help{display:flex;align-items:center;gap:9px;margin-bottom:14px}.page-title-help h1{margin:0;font-size:clamp(20px,2vw,24px);line-height:1.25}.page-help-btn{width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#475467;display:inline-flex;align-items:center;justify-content:center}.page-help-btn:hover{background:#f8fafc;color:#175cd3;border-color:#b2ccff}.page-help-btn svg{width:17px;height:17px}.page-help-drawer{width:min(420px,92vw)}.page-help-drawer .offcanvas-title{font-size:18px}.help-function-list{padding-left:20px;font-size:13px;line-height:1.7}.guide-search{max-width:560px}.guide-card h3{font-size:16px}.guide-card p,.guide-card li{font-size:13px;line-height:1.55}.compliance-page table{font-size:13px}.compliance-page .table th{font-size:12px}.compliance-page .badge{font-size:12px}.documents-page,.documents-page table{font-size:13px}.documents-page .card-header{font-size:13px}
