:root {
    --navy: #16294A;
    --navy-2: #1F3864;
    --navy-soft: #EAF0F8;
    --gold: #B8862E;
    --gold-soft: #FBF3E2;
    --bg: #F0F3F8;
    --surface: #FFFFFF;
    --line: #DEE3EC;
    --ink: #1B2333;
    --muted: #69748A;
    --good: #1E7A4C;
    --good-soft: #E7F5ED;
    --bad: #B0432D;
    --radius: 12px;
    --sidebar-width: 268px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--navy);
}

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-hero { display: none !important; }
}

.login-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: linear-gradient(145deg, #0f1f3d 0%, var(--navy-2) 50%, #1a3058 100%);
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(184,134,46,.15) 0%, transparent 60%);
}

.login-hero img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
    position: relative;
    z-index: 1;
}

.login-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #fff;
    font-size: 28px;
    margin: 24px 0 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-hero p {
    color: #A9B6CE;
    font-size: 14px;
    text-align: center;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.login-hero .badge {
    margin-top: 20px;
    background: rgba(184,134,46,.2);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg);
}

.login-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(10,20,40,.12);
    border: 1px solid var(--line);
}

.login-card .eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.login-card h2 {
    font-family: Georgia, serif;
    color: var(--navy);
    margin: 8px 0 6px;
    font-size: 24px;
}

.login-card .sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 28px;
}

/* App shell — sidebar layout */
.shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f1f3d 0%, var(--navy) 40%, #1a3058 100%);
    color: #EDF1F8;
    border-right: 1px solid rgba(255,255,255,.06);
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand img {
    width: 46px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

.sidebar-title {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
}

.sidebar-sub {
    font-size: 10.5px;
    color: #8fa3c4;
    margin-top: 2px;
    letter-spacing: .02em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

.nav-group { margin-bottom: 18px; }

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7fa3;
    padding: 0 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: #b8c5dc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.nav-item.active {
    background: rgba(184,134,46,.18);
    color: #fff;
    border-left-color: var(--gold);
    font-weight: 600;
}

.nav-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #dce4f2;
}

.nav-item.active .nav-icon {
    background: var(--gold);
    color: #fff;
}

.nav-icon-dot { font-size: 8px; }

.nav-label {
    line-height: 1.35;
    min-width: 0;
}

.sidebar-footer {
    padding: 14px 14px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.12);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sidebar-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(184,134,46,.45);
    flex-shrink: 0;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184,134,46,.35);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.sidebar-user-info {
    min-width: 0;
    font-size: 11.5px;
    color: #a9b6ce;
    line-height: 1.4;
}

.sidebar-user-info b {
    display: block;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info .role-pill {
    margin-top: 4px;
}

.btn-sidebar-logout {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: #dce4f2;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.btn-sidebar-logout:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 150;
}

/* Main content area */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.page-header h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    margin: 0;
    color: var(--navy);
    line-height: 1.25;
}

.page-header .meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.btn-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 8px;
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.role-pill {
    display: inline-block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(184,134,46,.25);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.content {
    padding: 24px 28px 60px;
    flex: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

/* Livewire root & kartu isi memakai lebar penuh area utama */
.content > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Buttons */
.btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all .15s;
}

.btn:hover { border-color: var(--navy-2); color: var(--navy-2); }

.btn-primary {
    background: var(--navy-2);
    border-color: var(--navy-2);
    color: #fff;
}

.btn-primary:hover { background: var(--navy); color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-add {
    border: 1px dashed #9FB0CC;
    background: var(--navy-soft);
    color: var(--navy-2);
    font-size: 12.5px;
    padding: 8px 14px;
    margin-top: 10px;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--muted);
    padding: 4px 8px;
    cursor: pointer;
}

.btn-ghost:hover { color: var(--bad); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.field label {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.field input, .field select, .field textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy-2);
    box-shadow: 0 0 0 3px rgba(31,56,100,.1);
}

.field input:disabled {
    background: #FBFCFE;
    color: var(--navy-2);
    font-weight: 600;
}

.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .id-grid { grid-template-columns: 1fr; } }

.identitas-readonly {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 720px) {
    .identitas-readonly { grid-template-columns: 1fr; }
}
.identitas-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.identitas-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.identitas-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}
.identitas-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin: 0;
}
@media (max-width: 900px) {
    .identitas-details { grid-template-columns: 1fr; }
}
.identitas-row dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 4px;
}
.identitas-row dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}
.card-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Cards */
.section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.section-card .card-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.section-card .card-head h3 {
    font-family: Georgia, serif;
    font-size: 17px;
    margin: 0;
    color: var(--navy);
}

.section-card .card-head .pengisi {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    font-style: italic;
}

.card-body { padding: 18px 22px 22px; min-width: 0; }

.helptext {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px;
    padding: 10px 14px;
    background: var(--navy-soft);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.locked-note {
    font-size: 12px;
    color: var(--navy);
    background: var(--gold-soft);
    border: 1px solid #E7D2A2;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.table-wrap::-webkit-scrollbar {
    height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
    background: #f1f4f8;
    border-radius: 0 0 10px 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: #c5ced9;
    border-radius: 999px;
    border: 2px solid #f1f4f8;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
    background: #9aa8ba;
}

.table-scroll-hint {
    margin: 0 0 8px;
    font-size: 11.5px;
    color: var(--muted);
    text-align: right;
}

.iku-table-scroll + .btn-add,
.iku-table-scroll + .bukti-row {
    margin-top: 0;
}

.iku-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 4px;
}

table.iku-table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

table.iku-table th, table.iku-table td {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 12.8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

table.iku-table th {
    min-width: 96px;
}

table.iku-table td.label-fixed {
    white-space: normal;
    min-width: 200px;
    max-width: 320px;
}

table.iku-table th.col-no,
table.iku-table td.col-no {
    min-width: 36px;
    width: 36px;
    white-space: nowrap;
}

table.iku-table th.col-action,
table.iku-table td.col-action {
    min-width: 44px;
    width: 44px;
}

table.iku-table th.col-sdg,
table.iku-table td.col-sdg {
    min-width: 72px;
    text-align: center;
}

table.iku-table td.col-sdg input[type=number] {
    min-width: 56px;
    text-align: center;
}

table.iku-table th:last-child, table.iku-table td:last-child { border-right: none; }

table.iku-table thead th {
    background: var(--navy-soft);
    color: var(--navy);
    font-weight: 700;
    font-size: 11.5px;
    position: sticky;
    top: 0;
}

table.iku-table tbody tr:hover { background: #FAFBFD; }

table.iku-table input {
    width: 100%;
    min-width: 120px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12.8px;
    background: transparent;
}

table.iku-table input[type=number] {
    min-width: 88px;
    font-family: 'Consolas', monospace;
    text-align: right;
}

table.iku-table input:hover { border-color: var(--line); }
table.iku-table input:focus { border-color: var(--navy-2); outline: none; background: #fff; }

table.iku-table td.select-cell {
    white-space: normal;
    padding: 6px 8px;
    vertical-align: middle;
}

table.iku-table td.select-cell--role {
    min-width: 148px;
}

table.iku-table td.select-cell--unit {
    min-width: 220px;
}

table.iku-table td.select-cell select {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 30px 7px 10px;
    font-size: 12.5px;
    font-family: inherit;
    line-height: 1.35;
    color: var(--navy);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a85' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

table.iku-table td.select-cell--role select {
    min-width: 132px;
}

table.iku-table td.select-cell--unit select {
    min-width: 200px;
    max-width: 280px;
}

table.iku-table td.select-cell select:hover {
    border-color: #c5cdd8;
}

table.iku-table td.select-cell select:focus {
    outline: none;
    border-color: var(--navy-2);
    box-shadow: 0 0 0 3px rgba(31, 56, 100, .1);
}

table.iku-table td.select-cell select:disabled {
    background-color: #FBFCFE;
    color: var(--muted);
    cursor: not-allowed;
}

table.iku-table td.readonly {
    color: var(--navy-2);
    font-family: 'Consolas', monospace;
    font-weight: 600;
    text-align: right;
    background: #FBFCFE;
}

table.iku-table td.label-fixed { font-weight: 600; background: #FBFCFE; }
table.iku-table tr.total-row td { background: var(--navy-soft); font-weight: 700; }

.col-no { width: 36px; text-align: center; color: var(--muted); font-family: monospace; font-size: 11px; }
.col-action { width: 44px; text-align: center; }

.bukti-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bukti-row label { font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.bukti-row input { flex: 1; min-width: 240px; }

.result-pill {
    background: var(--gold-soft);
    border: 1px solid #E7D2A2;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--navy);
}

.result-pill b { font-family: 'Consolas', monospace; font-size: 16px; }

/* KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.kpi-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gold);
}

.kpi-card .kpi-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}

.kpi-card .kpi-title {
    font-family: Georgia, serif;
    font-size: 14px;
    color: var(--navy);
    margin: 5px 0 12px;
    min-height: 38px;
}

.kpi-card .kpi-value {
    font-family: 'Consolas', monospace;
    font-size: 28px;
    color: var(--ink);
    font-weight: 700;
}

.kpi-card .kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* IKU9 */
.nominal-list { display: flex; flex-direction: column; gap: 4px; }

.nominal-row {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.nominal-row:last-child { border-bottom: none; }

.pct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pct-card {
    background: var(--navy-soft);
    border-radius: 10px;
    padding: 14px 16px;
}

.pct-card .pct-label { font-size: 11.5px; color: var(--navy); font-weight: 600; }
.pct-card .pct-value { font-family: 'Consolas', monospace; font-size: 24px; color: var(--navy); margin-top: 6px; }

/* IKU12 */
.criteria-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.criteria-num {
    font-family: monospace;
    font-size: 12px;
    color: #fff;
    background: var(--navy-2);
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.criteria-text { flex: 1; font-size: 13.5px; line-height: 1.5; }

.yn-toggle { display: flex; gap: 8px; }

.yn-toggle button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.yn-toggle button.active-yes { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.yn-toggle button.active-no { background: #FBEAE6; border-color: var(--bad); color: var(--bad); }

.status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--navy-soft);
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--navy);
    font-weight: 600;
}

/* Alerts */
.alert-error {
    background: #FBEAE6;
    color: var(--bad);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success {
    background: var(--good-soft);
    color: var(--good);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #FBFCFE;
}

.badge-tipe {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--navy-soft);
    color: var(--navy);
}

.sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sync-info { font-size: 12px; color: var(--muted); }

/* Monitoring IKU */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.iku-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--line);
}

.iku-chip-ok {
    background: var(--good-soft);
    color: var(--good);
    border-color: #b8dfc9;
}

.iku-chip-pending {
    background: #f4f5f7;
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.status-ok { background: var(--good-soft); color: var(--good); }
.status-partial { background: var(--gold-soft); color: #8a6918; }
.status-empty { background: #f0f2f5; color: var(--muted); }

.payload-preview {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 360px;
    margin: 0;
}

.master-bukti-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.master-bukti-active {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--good-soft);
    border-radius: 8px;
    font-size: 13px;
    word-break: break-all;
}

.master-bukti-active a { color: var(--good); font-weight: 600; }

.bukti-consolidated {
    width: 100%;
    min-height: 120px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink);
    resize: vertical;
}

/* Rekap Dikti */
.rekap-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rekap-group-card { page-break-inside: avoid; }

.rekap-group-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.rekap-group-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.rekap-capaian-box {
    text-align: right;
    background: var(--navy-soft);
    padding: 12px 18px;
    border-radius: 10px;
    min-width: 140px;
}

.rekap-capaian-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.rekap-capaian-value { font-family: 'Consolas', monospace; font-size: 26px; font-weight: 700; color: var(--navy); }
.rekap-capaian-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.rekap-subsection { margin-bottom: 28px; }
.rekap-subsection:last-of-type { margin-bottom: 0; }

.rekap-subtitle {
    font-family: Georgia, serif;
    font-size: 15px;
    color: var(--navy);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-soft);
}

.bukti-kelompok {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed var(--line);
    background: #fafbfd;
    margin-left: -22px;
    margin-right: -22px;
    margin-bottom: -22px;
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 22px;
    border-radius: 0 0 12px 12px;
}

@media print {
    .no-print { display: none !important; }
    .rekap-group-card { break-inside: avoid; margin-bottom: 20px; }
    .section-card { box-shadow: none; border: 1px solid #ccc; }
}

.flash-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 100;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0,0,0,.25);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .btn-menu {
        display: flex;
    }

    .content { padding: 18px 16px 60px; }
    .page-header { padding: 14px 16px; }
}

/* Periode, target admin, capaian triwulan */
.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.admin-hero h3 {
    margin: 0 0 6px;
    font-family: Georgia, serif;
    font-size: 20px;
}

.admin-hero p {
    margin: 0;
    font-size: 13px;
    color: #c8d4e8;
    max-width: 640px;
}

.admin-hero-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
}

.admin-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 100px;
}

.hero-stat span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #b8c8de;
}

.hero-stat b {
    font-size: 18px;
}

.inline-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.card-head--toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.target-iku-group {
    margin-bottom: 28px;
}

.target-iku-group:last-child {
    margin-bottom: 0;
}

.target-iku-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--navy);
}

.target-iku-num {
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
}

.target-ind-label {
    white-space: normal;
    min-width: 280px;
    max-width: 420px;
}

.target-table input[type=number] {
    min-width: 100px;
}

.periode-banner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.periode-banner--blocked {
    border-left-color: #c0392b;
    background: #fff8f8;
}

.periode-banner-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 700;
}

.periode-banner-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: var(--navy);
    margin-top: 2px;
}

.periode-banner-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.periode-banner-targets {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.periode-banner-targets div span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.periode-banner-targets div b {
    font-size: 16px;
    color: var(--navy);
}

.evaluasi-field {
    margin-top: 16px;
}

.evaluasi-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 84px;
}

.evaluasi-field textarea:focus {
    outline: none;
    border-color: var(--navy-2);
}

.alert-warn {
    background: #fff8e6;
    border: 1px solid #f0d78c;
    color: #7a5d12;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #922b21;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

.status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.status-pill.status-yes { background: #e6f4ea; color: #1e7e34; }
.status-pill.status-partial { background: var(--gold-soft); color: #8a6918; }
.status-pill.status-empty { background: #f0f2f5; color: var(--muted); }

.action-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bukti-upload input[type=file] {
    font-size: 13px;
}

.field-error {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
}

@media print {
    .sidebar, .sidebar-overlay, .btn-menu, .page-header { display: none !important; }
    .app-main { margin-left: 0 !important; }
    .btn-add, .col-action { display: none !important; }
}
