:root {
    --primary: #356b57;
    --primary-strong: #285543;
    --primary-soft: #e4eee8;
    --background: #edf1e8;
    --surface: #f9faf5;
    --surface-soft: #f1f5ef;
    --text: #253229;
    --muted: #657169;
    --line: #d8e0d9;
    --warning-bg: #f7f0df;
    --warning-line: #e7d6aa;
    --danger: #9b3f38;
    --shadow: 0 3px 14px rgba(36, 61, 48, .055);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn,
nav a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2 {
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.05rem;
}

.wrap {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 12px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
}

.muted {
    color: var(--muted);
}

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

.stat {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dfe7e1;
    border-radius: 13px;
    background: var(--surface-soft);
}

.stat span,
.stat small {
    display: block;
    color: var(--muted);
}

.stat b {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.field {
    margin: 13px 0;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea,
input[type="month"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cbd5ce;
    border-radius: 11px;
    background: #fcfdf9;
    color: var(--text);
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input[type="month"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(53, 107, 87, .12);
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 15px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: var(--primary-strong);
}

.btn.alt {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.btn.alt:hover,
.btn.alt:focus-visible {
    background: #d7e6dc;
}

.btn.small {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
}

.list {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

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

.badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9eeea;
    color: #455149;
    font-size: 12px;
    font-weight: 700;
}

.alert {
    padding: 12px 13px;
    margin-bottom: 12px;
    border: 1px solid var(--warning-line);
    border-radius: 12px;
    background: var(--warning-bg);
    color: #5e5134;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.app-header {
    padding-top: env(safe-area-inset-top);
}

.header-wrap {
    padding-bottom: 5px;
}

.header-card {
    margin-bottom: 0;
    padding: 13px 14px;
}

.header-card h3 {
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    min-height: 40px;
    padding: 9px 13px;
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    width: min(100%, 980px);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    background: rgba(249, 250, 245, .97);
    box-shadow: 0 -4px 14px rgba(36, 61, 48, .05);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

.bottom-nav a {
    flex: 1 0 76px;
    min-width: 76px;
    padding: 12px 7px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

.bottom-nav a.active {
    color: var(--primary-strong);
    font-weight: 850;
    background: var(--primary-soft);
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-shell {
    width: min(100%, 420px);
}

.login-card {
    margin: 0;
    padding: 22px;
}

.app-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.section-title {
    margin-top: 22px;
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.login-form {
    margin-top: 20px;
}

.login-card .btn {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 720px) {
    body {
        font-size: 14px;
    }

    .wrap {
        padding: 10px;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .row {
        align-items: flex-start;
    }

    .header-card {
        align-items: center;
    }

    .header-card .muted {
        font-size: 12px;
    }

    .logo {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .stat {
        padding: 12px;
    }

    .stat b {
        font-size: 1.05rem;
    }

    .card > .row:not(.header-card) {
        flex-direction: column;
        align-items: stretch;
    }

    .card > .row form,
    .card > .row .btn {
        width: 100%;
    }
}

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

    .login-page {
        padding: 10px;
    }

    .login-card {
        padding: 18px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .app-header,
    .bottom-nav,
    .btn,
    form,
    .alert {
        display: none !important;
    }

    .wrap {
        max-width: none;
        padding: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
        break-inside: avoid;
    }
}

.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .two-grid { grid-template-columns: 1fr; } }

/* Menu Excel USID */
.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.inline-form .field{min-width:240px;margin:0}
.button-stack{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn.small{padding:8px 11px;font-size:12px;white-space:nowrap}
button.btn:disabled{opacity:.5;cursor:not-allowed}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:11px 10px;border-bottom:1px solid var(--line,#e6e9e7);text-align:left;vertical-align:top}
th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted,#66736d);background:#f7faf8}
select{width:100%;padding:12px 13px;border:1px solid var(--line,#dfe7e2);border-radius:10px;background:#fff;color:inherit;font:inherit}
/* Penagihan & Angsuran: sengaja tanpa library eksternal agar tetap ringan */
.subnav{display:flex;gap:7px;overflow-x:auto;padding-top:10px;scrollbar-width:none}.subnav::-webkit-scrollbar{display:none}.subnav a{white-space:nowrap;padding:9px 12px;border-radius:10px;background:var(--surface-soft);color:var(--muted);text-decoration:none;font-weight:750;font-size:13px}.subnav a.active{background:var(--primary);color:#fff}.grow{flex:1;min-width:190px}.plain-link{text-decoration:none;color:inherit}.assignment-row{display:flex;gap:12px;align-items:center}.compact-fields{display:grid;grid-template-columns:145px minmax(180px,1fr) minmax(160px,1fr) auto;gap:8px;align-items:center;flex:1}.compact-fields input,.compact-fields select{min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.loan-summary{margin-top:12px}.total-box{margin-top:5px}.field textarea{resize:vertical}
@media(max-width:760px){.assignment-row{display:block}.compact-fields{grid-template-columns:1fr;margin-top:10px}.compact-fields .btn{width:100%}.subnav a{padding:9px 10px}.bottom-nav a{flex-basis:82px;min-width:82px}}

.compact-alert{margin:6px 0 0;padding:8px}.badge.ok{background:#dcfce7;color:#166534}.letter-sheet{max-width:780px;margin:0 auto;background:#fff;color:#111;line-height:1.7}.letter-head{text-align:center;border-bottom:3px double #111;padding-bottom:12px;margin-bottom:20px}.letter-head h2{margin:0}.letter-sheet table{width:auto}.letter-sheet td{border:0;padding:2px 12px 2px 0}.letter-sign{text-align:center;margin:40px 0 0 auto;width:260px}@media print{.app-header,.bottom-nav,.no-print,.subnav,.alert{display:none!important}.wrap{max-width:none;padding:0}.letter-sheet{box-shadow:none;border:0;margin:0;max-width:none}.card{box-shadow:none}.app-page{background:#fff}}

/* Grafik laporan bulanan: SVG native, tanpa library eksternal */
.report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.monthly-chart-wrap{width:100%;overflow-x:auto;margin-top:12px}.monthly-chart{display:block;width:100%;min-width:720px;height:auto}.grid-line{stroke:var(--line,#dfe7e2);stroke-width:1}.axis-text{fill:var(--muted,#66736d);font-size:12px}.chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.series-saving{stroke:#16865f;background:#16865f}.series-principal{stroke:#2563eb;background:#2563eb}.series-margin{stroke:#d97706;background:#d97706}.chart-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:13px;font-weight:700}.chart-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.chart-note{margin:8px 0 0}@media(max-width:760px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-chart{min-width:640px}}


/* U_CMD 110 — transaksi cepat */
.autocomplete-field {
    position: static;
}
.search-card {
    overflow: visible;
}
.suggestion-box {
    position: static;
    z-index: auto;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    max-height: none;
}
.suggestion-item {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 68px;
    margin: 0 0 9px;
    padding: 13px 15px;
    box-sizing: border-box;
    text-decoration: none !important;
    color: var(--text) !important;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    line-height: 1.28;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.suggestion-item:last-child {
    margin-bottom: 0;
}
.suggestion-item:hover,
.suggestion-item:focus,
.suggestion-item:active {
    background: var(--primary-soft);
    border-color: var(--primary);
    outline: none;
}
.suggestion-item b {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
}
.suggestion-item span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.3;
    word-break: break-word;
}
.suggestion-empty {
    display: block;
    padding: 14px 15px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
#memberSearch {
    min-height: 48px;
    font-size: 1rem;
}
@media (max-width:760px) {
    .suggestion-box {
        margin-top: 8px;
        padding: 0;
    }
    .suggestion-item {
        min-height: 76px;
        margin-bottom: 10px;
        padding: 15px 14px;
        border-radius: 13px;
    }
    .suggestion-item b {
        font-size: 1.02rem;
    }
    .suggestion-item span {
        font-size: .92rem;
    }
    #memberSearch {
        min-height: 52px;
        font-size: 1.05rem;
    }
}
.big-money {
    font-size: 1.15rem;
    font-weight: 700;
}
.transaction-account {
    padding: 14px;
}
.compact-grid {
    margin-top: 10px;
    margin-bottom: 10px;
}
.danger-alert {
    border-color: #d3a29e;
    background: #f7e7e5;
    color: #7f302c;
}
.switch-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.switch-row input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.receipt-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.thermal-receipt {
    width: 57mm;
    max-width: 100%;
    background: white;
    color: #000;
    padding: 3mm 2.5mm;
    font-family: "Courier New", monospace;
    font-size: 10.5px;
    line-height: 1.35;
}
.receipt-center {
    text-align: center;
}
.receipt-dash {
    border-top: 1px dashed #000;
    margin: 6px 0;
}
.receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.receipt-grand {
    margin-top: 4px;
    font-size: 12px;
}
.receipt-actions {
    width: min(57mm, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

@media print {
    @page {
        size: 57mm auto;
        margin: 0;
    }
    html, body {
        width: 57mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body * {
        visibility: hidden !important;
    }
    #thermalReceipt,
    #thermalReceipt * {
        visibility: visible !important;
    }
    #thermalReceipt {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 57mm !important;
        margin: 0 !important;
        padding: 3mm 2.5mm !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .no-print {
        display: none !important;
    }
}
\n\n/* U_CMD 113 — standar pencarian vertikal untuk semua modul */\n.collection-search-field {\n    position: static;\n    width: 100%;\n}\n.collection-search-field .suggestion-box {\n    width: 100%;\n}\n.collection-search-field .suggestion-balance {\n    font-size: .86rem;\n    color: var(--muted);\n}\n.collection-live-search {\n    min-height: 48px;\n    font-size: 1rem;\n}\n@media (max-width:760px) {\n    .collection-live-search {\n        min-height: 52px;\n        font-size: 1.05rem;\n    }\n}\n

/* U_CMD 114 - live search reliability */
.collection-search-field .suggestion-box,
.search-card .suggestion-box {
    display: block;
}
.collection-search-field .suggestion-box[hidden],
.search-card .suggestion-box[hidden] {
    display: none !important;
}
.suggestion-balance {
    margin-top: 2px;
    font-size: .86rem !important;
}


/* U_CMD 115 - User/Login */
.temporary-password-box {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--primary);
    border-radius: 14px;
    background: var(--primary-soft);
}
.temporary-password {
    display: inline-block;
    margin: 9px 0;
    padding: 9px 13px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px dashed var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 9px;
}


/* U_CMD 116 — tahap 3 kerja lapangan / mobile-first */
.field-hero,
.field-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
}
.field-hero h2,
.field-home h2 {
    margin: 3px 0 4px;
    color: #fff;
}
.field-hero p,
.field-home p {
    margin: 0;
    color: rgba(255,255,255,.84);
}
.field-kicker {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.field-hero .badge {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.field-start-btn {
    flex: 0 0 auto;
    background: #fff;
    color: var(--primary-strong);
}
.field-start-btn:hover,
.field-start-btn:focus {
    background: var(--primary-soft);
}
.field-action-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
}
.field-action-grid > a {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
}
.field-action-grid > a b {
    font-size: 1rem;
}
.field-action-grid > a span {
    color: var(--muted);
    font-size: .82rem;
}
.field-task-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 3px;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}
.field-task-row:first-of-type {
    border-top: 0;
}
.field-task-row div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.field-task-row span,
.field-task-row small {
    color: var(--muted);
}
.field-arrow {
    flex: 0 0 auto;
    font-size: 1.8rem;
    line-height: 1;
}
.field-address {
    margin: 10px 0 0;
    color: var(--muted);
}
.field-product {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.field-product:first-of-type {
    border-top: 0;
}
.field-product-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.field-product-main > div {
    min-width: 0;
}
.field-product-main span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .86rem;
    overflow-wrap: anywhere;
}
.field-product-main strong {
    flex: 0 0 auto;
    text-align: right;
}
.field-buttons {
    display: flex;
    gap: 8px;
    margin-top: 11px;
}
.field-buttons .btn {
    flex: 1 1 0;
}
.wrap-buttons {
    flex-wrap: wrap;
}
.wrap-buttons .btn {
    min-width: 94px;
}
.field-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 11px;
    background: #ecefeb;
    color: var(--muted);
    font-weight: 700;
}
.field-loan-values {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;
    margin-top: 11px;
}
.field-loan-values > div {
    padding: 8px;
    border-radius: 10px;
    background: var(--surface-soft);
}
.field-loan-values span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
}
.field-loan-values b {
    display: block;
    margin-top: 2px;
    font-size: .88rem;
}
.field-search-card {
    position: relative;
}
@media (max-width:760px) {
    .wrap {
        padding: 9px;
        padding-bottom: 76px;
    }
    .card {
        padding: 14px;
        border-radius: 14px;
    }
    .field-hero,
    .field-home {
        align-items: flex-start;
        padding: 15px;
    }
    .field-home {
        flex-direction: column;
    }
    .field-start-btn {
        width: 100%;
    }
    .field-action-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .field-action-grid > a {
        min-height: 86px;
    }
    .field-product-main {
        flex-direction: column;
        gap: 5px;
    }
    .field-product-main strong {
        text-align: left;
        font-size: 1.08rem;
    }
    .field-loan-values {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .field-loan-values > div {
        min-height: 58px;
    }
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        justify-content: space-around;
        overflow: hidden;
        z-index: 50;
    }
    .bottom-nav a {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 5px;
        font-size: .76rem;
        text-align: center;
    }
}


/* U_CMD 117 - kontrol Excel kolektif */
.export-filter {
    align-items: end;
}
.export-filter .field {
    min-width: 180px;
}
.export-filter-button {
    min-width: 120px !important;
}
.batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.success-badge {
    background: #dceee2 !important;
    color: #255b39 !important;
}
.danger-badge {
    background: #f5dfdd !important;
    color: #7b302b !important;
}
.danger-btn {
    background: #8a3a34 !important;
    color: #fff !important;
}
@media (max-width:760px) {
    .export-filter {
        display: grid;
        grid-template-columns: 1fr;
    }
    .export-filter .field,
    .export-filter-button {
        min-width: 0 !important;
        width: 100%;
    }
    .batch-actions {
        flex-direction: column;
        min-width: 130px;
    }
    .batch-actions .btn,
    .batch-actions form {
        width: 100%;
    }
    .batch-actions form .btn {
        width: 100%;
    }
}


/* U_CMD 119 - KPI sementara FO/AO */
.productivity-rule-note {
    margin-bottom: 12px;
}
.productivity-table td,
.productivity-table th {
    white-space: nowrap;
}
.productivity-table td:first-child {
    white-space: normal;
    min-width: 150px;
}
@media (max-width:760px) {
    .productivity-table td:first-child {
        min-width: 135px;
    }
}


/* U_CMD 120 - mode uji / produksi + go-live */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    white-space: nowrap;
}
.mode-test {
    background: #fff0cb;
    color: #775813;
    border: 1px solid #e6cf8d;
}
.mode-production {
    background: #dcefe3;
    color: #225b37;
    border: 1px solid #9bc9aa;
}
.status-list {
    display: grid;
    gap: 8px;
}
.status-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.status-list > div:last-child {
    border-bottom: 0;
}
.status-list span {
    color: var(--muted);
}
.danger-zone {
    border-color: #d6aaa5;
}
.production-zone {
    border-color: #9fc8ac;
}
.go-live-form {
    max-width: 560px;
}
.checklist {
    display: grid;
    gap: 8px;
}
.checklist > div {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
}
.success-alert {
    background: #e2f1e6 !important;
    color: #24583a !important;
    border-color: #a6cdb1 !important;
}
@media (max-width:760px) {
    .header-actions {
        gap: 5px;
    }
    .mode-badge {
        min-height: 27px;
        padding: 4px 7px;
        font-size: .66rem;
    }
    .status-list > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}


/* U_CMD 121 - Audit dan backup */
.health-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 900;
    white-space: nowrap;
}
.health-ok {
    background: #dcefe3;
    color: #235c38;
    border: 1px solid #9ec9aa;
}
.health-warning {
    background: #fff0cb;
    color: #795914;
    border: 1px solid #e3cb89;
}
.health-error {
    background: #f5dfdd;
    color: #7d302b;
    border: 1px solid #d7a9a5;
}
.health-list {
    display: grid;
}
.health-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.health-row:last-child {
    border-bottom: 0;
}
.health-row p {
    margin: 3px 0 0;
    color: var(--muted);
}
.health-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    margin-top: 5px;
    border-radius: 50%;
}
.health-dot-ok {
    background: #4a9161;
}
.health-dot-warning {
    background: #c69b2d;
}
.health-dot-error {
    background: #b8534b;
}
@media (max-width:760px) {
    .health-row {
        padding: 13px 0;
    }
}


/* U_CMD 122 - Monitoring & Rekonsiliasi Posisi */
.monitoring-filter {
    align-items: end;
    margin-top: 12px;
}
.monitoring-filter .field {
    min-width: 180px;
}
.monitoring-filter-button {
    min-width: 120px !important;
}
.sync-status-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
}
.sync-status-item {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
}
.sync-status-item span,
.sync-status-item small {
    display: block;
    color: var(--muted);
}
.sync-status-item b {
    display: block;
    margin: 3px 0;
}
.recon-note {
    margin-bottom: 12px;
}
.recon-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}
.recon-ok {
    background: #dcefe3;
    color: #225b37;
}
.recon-check {
    background: #f5dfdd;
    color: #7b302b;
}
.recon-wait {
    background: #fff0cb;
    color: #775813;
}
@media (max-width:760px) {
    .monitoring-filter {
        display: grid;
        grid-template-columns: 1fr;
    }
    .monitoring-filter .field,
    .monitoring-filter-button {
        min-width: 0 !important;
        width: 100%;
    }
    .sync-status-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
