:root {
    --ink: #3f4249;
    --muted: #71767f;
    --line: #e7eaec;
    --bg: #f1f5f6;
    --card: #fff;
    --primary: #246b2b;
    --primary-dark: #195320;
    --danger: #c93434;
    --sidebar: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 280px; position: fixed; inset: 0 auto 0 0; background: var(--sidebar); color: var(--ink); padding: 0 24px 20px; display: flex; flex-direction: column; border-right: 1px solid #e9edef; box-shadow: 8px 0 24px rgba(42, 52, 56, .05); z-index: 20; }
.brand { min-height: 64px; display: flex; align-items: center; color: inherit; padding: 8px 0; }
.brand-logo-frame { width: 100%; max-width: 165px; padding: 0; background: transparent; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-name { display: none; font-size: 15px; font-weight: 750; letter-spacing: .01em; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.nav-label { padding: 0 0 8px; color: #245e29; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.nav-link { color: #4f535a; padding: 11px 13px; border-radius: 5px; }
.nav-link:hover { background: #f3f8f2; color: #225d28; }
.nav-link.active { background: #e6f9e3; color: #225d28; font-weight: 700; }
.nav-group-toggle { width: 100%; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; font: inherit; }
.nav-chevron { transition: transform .2s ease; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: none; padding: 4px 0 4px 16px; }
.nav-group.open .nav-submenu { display: grid; gap: 3px; }
.nav-sublink { color: #666b72; padding: 9px 12px; border-left: 1px solid #dfe5df; border-radius: 0 5px 5px 0; }
.nav-sublink:hover, .nav-sublink.active { color: #225d28; background: #f0faee; border-left-color: #65a969; }
.sidebar-user { margin-top: auto; border-top: 1px solid #eceff0; padding: 18px 10px 0; display: grid; gap: 3px; }
.sidebar-user small { color: var(--muted); }
.link-button, .danger-link { background: none; border: 0; padding: 5px 0; color: var(--primary); cursor: pointer; text-align: left; }
.danger-link { color: var(--danger); }
.sidebar-backdrop { display: none; }
.main { margin-left: 280px; min-height: 100vh; background: var(--bg); }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #e9edef; box-shadow: 0 5px 16px rgba(35, 49, 53, .06); display: flex; align-items: center; padding: 0 30px; font-size: 20px; font-weight: 500; position: sticky; top: 0; z-index: 10; }
.menu-toggle { display: none; border: 0; background: none; font-size: 22px; margin-right: 12px; }
.content { width: 100%; min-height: calc(100vh - 64px); padding: 30px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { font-size: 25px; margin: 0 0 5px; }
.page-heading p, .muted { color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid #edf0f1; border-radius: 5px; padding: 24px; box-shadow: 0 8px 22px rgba(37, 48, 52, .09); }
.card h2 { margin-top: 0; font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px; display: grid; gap: 10px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 30px; }
.steps { color: var(--muted); line-height: 2; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font-weight: 650; cursor: pointer; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; border-color: #d0d5dd; color: #344054; }
.button:disabled { opacity: .65; cursor: not-allowed; }
.button.is-loading { gap: 8px; cursor: wait; }
.button.is-loading::before { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; content: ""; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.stack { display: grid; gap: 22px; }
label { display: grid; gap: 7px; font-weight: 600; color: #344054; }
input, select, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px 11px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(36, 107, 43, .12); border-color: #72a977; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.check-row { display: flex; align-items: center; gap: 9px; }
.field-check { align-self: end; min-height: 41px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; }
.section-heading h2 { margin: 0 0 4px; }
.section-heading p { margin: 0; color: var(--muted); }
.permission-list { display: grid; gap: 12px; }
.permission-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr 38px; gap: 12px; align-items: end; background: #f8f9fc; border: 1px solid var(--line); padding: 14px; border-radius: 10px; }
.icon-button { width: 38px; height: 40px; border: 1px solid #e6baba; background: #fff1f1; color: var(--danger); border-radius: 8px; font-size: 23px; cursor: pointer; }
.table-card { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: #f9fafb; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 3px; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; white-space: nowrap; }
.actions form { display: inline; }
.badge { display: inline-flex; border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 650; }
.badge.green { background: #e8f8ef; color: #18794e; }
.badge.gray { background: #eef0f3; color: #596273; }
.badge.blue { background: #eaf0ff; color: #3157d5; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.alert { padding: 13px 16px; border-radius: 9px; margin-bottom: 18px; }
.alert ul { margin: 7px 0 0; }
.alert.success { background: #e9f8ef; color: #166b46; border: 1px solid #bde7cc; }
.alert.danger { background: #fff0f0; color: #9f2727; border: 1px solid #f0c3c3; }
.access-tree { display: grid; gap: 13px; }
.access-menu-group { display: grid; gap: 10px; }
.access-menu { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.submenu-access-tree { display: grid; gap: 10px; margin-left: 28px; padding-left: 15px; border-left: 2px solid #d9e0f5; }
.menu-check { display: flex; align-items: center; gap: 10px; padding: 14px; background: #f8f9fc; }
.menu-check span, .role-option span, .check-row span { display: grid; }
.menu-check small, .role-option small, .check-row small { color: var(--muted); font-weight: 400; margin-top: 2px; }
.permission-checks { padding: 14px 20px 14px 48px; display: grid; gap: 12px; }
.role-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); padding: 14px; border-radius: 10px; }
.role-option:has(input:checked) { border-color: #8ca2eb; background: #f4f6ff; }
.search-box { position: relative; max-width: 700px; }
.search-results { position: absolute; z-index: 5; top: 72px; left: 0; right: 0; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 24, 40, .13); }
.search-result { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; background: #fff; text-align: left; display: grid; gap: 3px; cursor: pointer; }
.search-result:hover { background: #f7f8fb; }
.search-result small { color: var(--muted); }
.selected-user { border: 1px solid #aab9eb; background: #f4f6ff; padding: 14px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
.selected-user div { display: grid; gap: 3px; }
.selected-user span { color: var(--muted); }
.hidden { display: none; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top, #e9efff, #f7f8fb 50%); }
.login-card { width: min(410px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 18px 60px rgba(31, 50, 95, .12); }
.login-brand { min-height: auto; display: grid; justify-items: center; gap: 8px; padding: 0 0 8px; text-align: center; }
.login-brand .brand-logo-frame { max-width: 200px; padding: 4px; }
.login-brand .brand-name { display: block; color: var(--ink); font-size: 20px; }
.login-card > .muted { margin-bottom: 24px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
code { background: #f1f3f6; padding: 2px 5px; border-radius: 4px; }
.welcome-card { max-width: 720px; }
.welcome-card h1 { margin: 0 0 18px; font-size: clamp(24px, 4vw, 32px); }
.welcome-card > p { margin: 0 0 10px; }
.role-summary { margin: 0; padding-left: 22px; line-height: 1.9; }
.pagination { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pagination-status { color: var(--muted); }
.button.disabled { opacity: .55; cursor: not-allowed; }
.button[aria-disabled="true"] { pointer-events: none; }
.transfer-page { display: grid; gap: 20px; }
.transfer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.transfer-heading h1 { margin: 0 0 5px; font-size: 25px; }
.transfer-heading p, .batch-card p { margin: 0; color: var(--muted); }
.balance-card { min-width: 240px; background: #126348; color: #fff; border-radius: 8px; padding: 16px 20px; display: grid; justify-items: end; gap: 7px; box-shadow: 0 8px 20px rgba(18, 99, 72, .17); }
.balance-card span { font-size: 12px; opacity: .9; }
.balance-card strong { font-size: 21px; }
.balance-value-row { display: flex; align-items: center; gap: 10px; }
.balance-toggle { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; }
.balance-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.balance-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.balance-toggle:disabled { cursor: wait; }
.balance-toggle.is-revealed { color: #a7f3d0; }
.balance-toggle.is-revealed:hover { color: #fff; }
.balance-toggle.is-loading::before { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; content: ""; animation: button-spin .7s linear infinite; }
.balance-toggle.is-loading svg { display: none; }
.balance-error { min-height: 14px; max-width: 240px; color: #fee2e2; font-size: 10px; text-align: right; }
.batch-card { display: grid; gap: 7px; }
.batch-card h2, .transfer-history h2 { margin: 0; font-size: 17px; }
.batch-button { width: 100%; margin-top: 6px; }
.batch-button { background: #249572; }
.batch-button:hover { background: #18785b; }
.pending-link { justify-self: center; color: var(--muted); font-size: 12px; text-decoration: underline; }
.pending-link:hover { color: var(--primary); }
.transfer-history { display: grid; gap: 15px; }
.datatable-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.datatable-search { width: min(260px, 100%); font-size: 12px; }
.datatable-search input { padding-block: 8px; }
.datatable-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.datatable-actions { display: flex; gap: 8px; }
.datatable-actions .button:disabled { opacity: .5; cursor: not-allowed; }
.pending-disbursement-page { display: grid; gap: 20px; }
.pending-disbursement-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pending-disbursement-heading h1 { margin: 0 0 5px; font-size: 25px; }
.pending-disbursement-heading p { margin: 0; color: var(--muted); }
.pending-total-card { min-width: 240px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 18px; display: grid; justify-items: end; gap: 6px; background: #fff; }
.pending-total-card span { color: var(--muted); font-size: 12px; }
.pending-total-card strong { color: #20252b; font-size: 21px; }
.pending-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 14px; }
.pending-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 42px; }
.pending-summary-item, .pending-summary-total { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.pending-summary-item { font-weight: 600; }
.pending-summary-item i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pending-summary-item.warning { color: #d97706; }
.pending-summary-item.warning i { background: #f59e0b; }
.pending-summary-item.success { color: #168052; }
.pending-summary-item.success i { background: #16a36d; }
.pending-summary-item.danger { color: #dc2626; }
.pending-summary-item.danger i { background: #ef4444; }
.pending-summary-total { color: var(--muted); margin-left: auto; }
.pending-summary-total strong { color: var(--ink); }
.pending-toolbar-actions { display: flex; gap: 8px; }
.pending-toolbar-actions .button { white-space: nowrap; }
.pending-section { display: grid; gap: 14px; }
.pending-section h2 { margin: 0; font-size: 17px; }
.pending-filter-card { padding: 18px; box-shadow: none; }
.pending-filter-grid { display: grid; grid-template-columns: 1.15fr .7fr .9fr 1fr; gap: 16px; }
.pending-filter-grid > label, .pending-filter-field { font-size: 12px; }
.pending-filter-field { display: grid; align-content: start; gap: 7px; color: #344054; font-weight: 600; }
.pending-filter-grid input, .pending-filter-grid select { margin-top: 1px; min-height: 40px; }
.pending-date-fields { display: flex; align-items: center; gap: 8px; }
.pending-date-fields input { min-width: 0; flex: 1; }
.pending-date-fields span { color: var(--muted); font-weight: 500; }
.bank-multiselect { position: relative; min-width: 0; }
.bank-multiselect-trigger { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 11px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.bank-multiselect-trigger:focus-visible { outline: 3px solid rgba(36, 107, 43, .12); border-color: #72a977; }
.bank-multiselect-summary { display: flex; min-width: 0; align-items: center; gap: 6px; overflow: hidden; font-weight: 400; white-space: nowrap; }
.bank-summary-chip { max-width: 120px; overflow: hidden; border-radius: 4px; padding: 4px 8px; background: #eef0f3; text-overflow: ellipsis; }
.bank-summary-more { color: #596273; }
.bank-multiselect-chevron { font-size: 18px; transition: transform .2s; }
.bank-multiselect-trigger[aria-expanded="true"] .bank-multiselect-chevron { transform: rotate(180deg); }
.bank-multiselect-panel { position: absolute; z-index: 15; top: calc(100% + 5px); right: 0; left: 0; min-width: 300px; border: 1px solid #cbd2da; border-radius: 7px; padding: 8px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); }
.bank-multiselect-panel > input { min-height: 38px; margin: 0 0 7px; }
.bank-option { display: flex; min-height: 35px; align-items: center; gap: 9px; padding: 7px 8px; color: #20252b; font-size: 12px; font-weight: 500; cursor: pointer; }
.bank-option:hover { background: #f5f8f6; }
.bank-option input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: #249572; }
.bank-option-all { border-bottom: 1px solid var(--line); font-weight: 650; }
.bank-options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.bank-options-empty { display: block; padding: 14px 8px; color: var(--muted); font-weight: 400; text-align: center; }
.pending-table-card { padding: 0; overflow: hidden; }
.pending-table-card .table-card { overflow-x: auto; }
#pending-transactions-table { min-width: 2800px; }
#pending-transactions-table th, #pending-transactions-table td { white-space: nowrap; font-size: 12px; padding: 12px 10px; }
#pending-transactions-table th { font-size: 10px; }
#pending-transactions-table td:nth-child(5) { color: #20252b; font-weight: 650; }
#pending-transactions-table input[type="checkbox"] { width: 16px; height: 16px; }
.pending-row-invalid { background: #fffafa; }
.pending-status-cell { display: flex; align-items: center; gap: 14px; }
.pending-edit-button { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 0; padding: 3px; background: transparent; color: #20252b; cursor: pointer; }
.pending-edit-button svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.pending-edit-button:hover { color: var(--primary); }
.pending-edit-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 5px; }
.pending-status { display: inline-flex; border-radius: 6px; padding: 6px 11px; font-size: 11px; font-weight: 750; }
.pending-status.valid { background: #d8f8e5; color: #166534; }
.pending-status.invalid { background: #fee2e2; color: #b91c1c; }
.pending-status.pending { background: #ffd600; color: #171717; }
.pending-status.missing { background: #ffedd5; color: #c2410c; }
.transaction-modal { width: min(100% - 32px, 440px); max-height: min(calc(100vh - 24px), 780px); max-height: min(calc(100dvh - 24px), 780px); margin: auto; border: 0; border-radius: 14px; padding: 0; overflow: hidden; color: var(--ink); box-shadow: 0 22px 48px rgba(15, 23, 42, .28); }
.transaction-modal::backdrop { background: rgba(15, 23, 42, .48); }
.transaction-modal-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(calc(100vh - 24px), 780px); max-height: min(calc(100dvh - 24px), 780px); overflow: hidden; }
.transaction-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.transaction-modal-header h2 { margin: 0; font-size: 18px; }
.transaction-modal-close { width: 25px; height: 25px; border: 1px solid #9ca3af; border-radius: 999px; padding: 0; background: #fff; color: #6b7280; font-size: 21px; line-height: 20px; cursor: pointer; }
.transaction-modal-fields { display: grid; min-height: 0; gap: 15px; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.transaction-modal-fields label { display: grid; gap: 8px; color: #20252b; font-size: 13px; font-weight: 700; }
.transaction-modal-fields input { min-height: 44px; border-color: #dfe5ed; border-radius: 9px; background: #fff; font-size: 13px; }
.transaction-modal-fields input[readonly] { background: #f6f8fa; color: #727780; }
.transaction-editable-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.transaction-save-owner { min-width: 76px; }
.transaction-verification-check { display: inline-grid; width: 15px; height: 15px; place-items: center; border-radius: 999px; background: #13ad68; color: #fff; font-size: 10px; font-style: normal; }
.transaction-verification-check[hidden] { display: none; }
.transaction-field-group { display: grid; gap: 8px; color: #20252b; font-size: 13px; }
.transaction-account-book { border-color: #13795b; background: #fff; color: #13795b; }
.transaction-missing-value, .transaction-api-name { color: #c2410c; font-size: 12px; font-weight: 600; }
.transaction-missing-alert { margin: 0; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 12px; background: #fff7ed; color: #c2410c; font-size: 12px; }
.transaction-modal-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.transaction-modal-message.success { color: #15803d; }
.transaction-modal-message.error { color: #dc2626; }
.transaction-inquiry-button { border-color: #1684ff; background: #fff; color: #0672ec; }
.transaction-inquiry-button:hover { background: #eff7ff; }
.transaction-modal-actions { display: flex; position: relative; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fff; }
.transaction-modal-actions .button { min-width: 88px; }
.transaction-invalid-button { border-color: #fca5a5; background: #fff; color: #ef4444; }
.transaction-valid-button { background: #126348; color: #fff; }
.transaction-modal button:disabled { opacity: .5; cursor: not-allowed; }
.pending-action { color: var(--muted); font-size: 11px; }
.pending-action.selectable { color: #168052; }
.pending-action.invalid { color: #dc2626; }
.pending-table-card .datatable-footer { padding: 12px 16px; border-top: 1px solid var(--line); }
.pending-table-card .datatable-footer .button { padding: 7px 11px; font-size: 12px; }
.batch-status { display: inline-flex; border-radius: 6px; padding: 6px 10px; font-size: 11px; font-weight: 750; text-transform: uppercase; white-space: nowrap; }
.batch-status.menunggu_dikonfirmasi { background: #fff7d6; color: #9a6700; }
.batch-status.menunggu_diproses { background: #fff7d6; color: #9a6700; }
.batch-status.sedang_diproses { background: #dbeafe; color: #1d4ed8; }
.batch-status.selesai_diproses { background: #e0f2fe; color: #1684cf; }
.batch-status.selesai { background: #dcfce7; color: #168052; }
.batch-status.ditolak { background: #fee2e2; color: #dc2626; }
.batch-history-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.batch-action-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 6px 10px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.batch-action-button.detail { background: #0d4939; }
.batch-action-button.detail:hover { background: #07372b; }
.batch-action-button.download { background: #249572; }
.batch-action-button.download:hover { background: #18785b; }
.batch-action-button.delete { background: #ff4242; }
.batch-action-button.delete:hover { background: #dc2626; }
.batch-detail-page { display: grid; gap: 24px; }
.batch-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.batch-detail-heading p { margin: 7px 0 0; color: var(--muted); }
.batch-rejection-remark { max-width: 680px; margin-top: 14px; border: 1px solid #fecaca; border-radius: 8px; padding: 11px 13px; background: #fff7f7; color: #991b1b; font-size: 13px; }
.batch-rejection-remark strong { font-size: 12px; }
.batch-rejection-remark p { margin: 4px 0 0; color: inherit; line-height: 1.5; }
.batch-detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.batch-detail-title h1 { margin: 0; font-size: 27px; color: #202124; }
.batch-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.batch-progress-item { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.batch-progress-item span { color: var(--muted); font-size: 12px; }
.batch-progress-item strong { color: #202124; font-size: 22px; line-height: 1.2; }
.batch-detail-completion { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.batch-detail-completion .button { min-width: 150px; }
.batch-detail-completion .button:disabled { background: #8ee1a8; color: #fff; opacity: 1; }
.button.danger { background: #ff4242; color: #fff; }
.button.danger:hover { background: #dc2626; }
.batch-detail-section { display: grid; gap: 14px; }
.batch-detail-section h2 { margin: 0; font-size: 18px; color: #202124; }
.batch-detail-filters { display: grid; grid-template-columns: 1.15fr .8fr .8fr 1fr; gap: 16px; padding: 20px; box-shadow: none; }
.batch-detail-filters label { font-size: 12px; }
.batch-detail-total { color: var(--muted); font-size: 12px; text-align: right; }
.batch-detail-total strong { margin-left: 8px; color: #202124; font-size: 14px; }
#batch-detail-table { min-width: 2800px; }
#batch-detail-table th, #batch-detail-table td { padding: 12px 10px; white-space: nowrap; font-size: 12px; }
#batch-detail-table th { font-size: 10px; }
.batch-detail-code { color: #20252b; font-weight: 700; }
.espay-status { display: inline-flex; border-radius: 5px; padding: 5px 9px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.espay-status.berhasil_ditransfer { background: #d8f8e5; color: #166534; }
.espay-status.gagal_ditransfer { background: #ff3d3d; color: #fff; }
.espay-status-remark { display: block; max-width: 240px; margin-top: 5px; color: #b42318; font-size: 10px; font-weight: 600; line-height: 1.35; white-space: normal; }
.batch-remove-item { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 6px; padding: 0; background: transparent; color: #ef3f35; font-size: 16px; cursor: pointer; }
.batch-remove-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.batch-remove-item:hover { background: #fff0ef; }
.batch-remove-item:disabled { opacity: .55; cursor: wait; }
.batch-remove-item.is-loading::before { border-color: rgba(239, 63, 53, .3); border-top-color: #ef3f35; }
.batch-book-link { display: inline-flex; border: 1px solid #1684ff; border-radius: 5px; padding: 5px 9px; color: #0672ec; font-size: 11px; }
.removed-transactions-table { min-width: 1180px; }
.removed-transactions-table th, .removed-transactions-table td { padding: 12px 14px; white-space: nowrap; font-size: 11px; }
.removed-transactions-table th { font-size: 10px; }
.batch-confirmation-modal { width: min(100% - 32px, 840px); max-height: min(calc(100dvh - 24px), 760px); margin: auto; border: 0; border-radius: 14px; padding: 0; overflow: hidden; color: var(--ink); box-shadow: 0 22px 48px rgba(15, 23, 42, .28); }
.batch-confirmation-modal::backdrop { background: rgba(15, 23, 42, .48); }
.batch-confirmation-form { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: min(calc(100dvh - 24px), 760px); overflow: hidden; }
.batch-confirmation-summary { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 13px 26px; border-bottom: 1px solid var(--line); background: #fafafa; color: var(--muted); font-size: 12px; }
.batch-confirmation-summary strong { margin-left: 5px; color: var(--ink); }
.batch-confirmation-content { display: grid; min-height: 0; gap: 12px; padding: 22px 26px; overflow-y: auto; }
.batch-confirmation-table { min-width: 760px; border: 1px solid var(--line); border-radius: 10px; }
.batch-confirmation-table th, .batch-confirmation-table td { padding: 14px 16px; white-space: nowrap; }
.batch-confirmation-valid { display: inline-flex; min-width: 58px; justify-content: center; border-radius: 6px; padding: 5px 11px; background: #d8f8e5; color: #166534; font-size: 11px; font-weight: 750; }
.transaction-modal-fields textarea { min-height: 110px; resize: vertical; border-color: #dfe5ed; border-radius: 9px; font: inherit; font-size: 13px; }
.approval-confirmation-modal { width: min(100% - 32px, 500px); margin: auto; border: 0; border-radius: 16px; padding: 0; overflow: hidden; color: var(--ink); box-shadow: 0 22px 48px rgba(15, 23, 42, .28); }
.approval-confirmation-modal::backdrop { background: rgba(15, 23, 42, .48); }
.approval-confirmation-form { display: grid; justify-items: center; gap: 16px; padding: 30px 24px 0; text-align: center; }
.approval-confirmation-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 999px; background: #ff4242; color: #fff; font-size: 28px; font-weight: 800; }
.approval-confirmation-form h2 { margin: 0; font-size: 24px; }
.approval-confirmation-form p { max-width: 410px; margin: 0; color: #343a43; font-size: 17px; font-weight: 500; line-height: 1.55; }
.approval-confirmation-form p.error { color: #dc2626; font-size: 13px; }
.approval-confirmation-form .transaction-modal-actions { width: calc(100% + 48px); margin-top: 0; }
.batch-otp-modal { width: min(100% - 32px, 640px); margin: auto; border: 0; border-radius: 12px; padding: 0; color: var(--ink); box-shadow: 0 22px 48px rgba(15, 23, 42, .24); }
.batch-otp-modal::backdrop { background: rgba(15, 23, 42, .48); }
.batch-otp-form { position: relative; display: grid; justify-items: center; padding: 66px 24px 54px; text-align: center; }
.batch-otp-form h2 { margin: 0 0 15px; font-size: 23px; }
.batch-otp-form > p { margin: 0; font-size: 13px; }
.batch-otp-form > strong { margin-top: 4px; font-size: 13px; font-weight: 500; }
.batch-otp-close { position: absolute; top: 15px; right: 18px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.batch-otp-inputs { display: flex; justify-content: center; gap: 7px; width: 100%; margin: 28px 0 16px; }
.batch-otp-inputs input { width: 43px; height: 48px; border: 1px solid #b8c1cc; border-radius: 5px; text-align: center; font-size: 20px; }
.batch-otp-inputs input:focus { outline: 2px solid #62c8a4; outline-offset: 0; border-color: #62c8a4; }
.batch-otp-form .transaction-modal-message { min-height: 19px; margin-bottom: 8px; }
.batch-otp-form > .button { min-width: 122px; background: #126348; }
.batch-otp-resend { margin-top: 27px !important; }
.batch-otp-resend button { border: 0; padding: 0; background: transparent; color: #ca8b07; text-decoration: underline; cursor: pointer; }
.batch-otp-resend button:disabled { opacity: .5; cursor: wait; }

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: none; }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .sidebar { transform: none; box-shadow: 12px 0 30px rgba(0, 0, 0, .2); }
    .sidebar-backdrop { position: fixed; inset: 0; border: 0; background: rgba(11, 18, 32, .48); z-index: 19; }
    .sidebar-open .sidebar-backdrop { display: block; }
    .main { margin-left: 0; }
    .menu-toggle { display: block; min-width: 44px; min-height: 44px; cursor: pointer; }
    .content { padding: 20px; }
    .permission-row { grid-template-columns: 1fr 1fr; }
    .permission-row .icon-button { grid-column: 2; justify-self: end; }
    .role-list { grid-template-columns: 1fr; }
    .transfer-heading { align-items: stretch; flex-direction: column; }
    .balance-card { min-width: 0; width: 100%; }
    .pending-disbursement-heading { align-items: stretch; flex-direction: column; }
    .pending-total-card { min-width: 0; width: 100%; justify-items: start; }
    .pending-toolbar { grid-template-columns: 1fr; }
    .pending-toolbar-actions { justify-content: flex-end; }
    .pending-filter-grid { grid-template-columns: 1fr 1fr; }
    .pending-filter-grid > label:last-child { grid-column: span 2; }
    .batch-detail-filters { grid-template-columns: 1fr 1fr; }
    .batch-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .stats-grid, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading > .button { width: 100%; }
    .content { padding: 16px; }
    .card { padding: 16px; }
    .permission-row { grid-template-columns: 1fr; }
    .permission-row .icon-button { grid-column: auto; }
    .topbar { padding: 0 10px; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button, .section-heading .button { width: 100%; }
    .section-heading { align-items: flex-start; gap: 12px; flex-direction: column; }
    .permission-checks { padding-left: 20px; }
    .submenu-access-tree { margin-left: 10px; padding-left: 10px; }
    .selected-user { align-items: flex-start; gap: 12px; flex-direction: column; }
    .pagination { justify-content: space-between; flex-wrap: wrap; }
    .pagination-status { width: 100%; order: -1; text-align: center; }
    .datatable-heading, .datatable-footer { align-items: stretch; flex-direction: column; }
    .datatable-search { width: 100%; }
    .datatable-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .pending-disbursement-heading h1 { font-size: 22px; }
    .pending-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
    .pending-summary-total { margin-left: 0; }
    .pending-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .pending-toolbar-actions .button { width: 100%; }
    .pending-filter-grid { grid-template-columns: 1fr; }
    .pending-filter-grid > label:last-child { grid-column: auto; }
    .bank-multiselect-panel { min-width: 0; }
    .pending-date-fields { align-items: stretch; flex-direction: column; }
    .pending-date-fields span { text-align: center; }
    .batch-detail-heading { align-items: stretch; flex-direction: column; }
    .batch-detail-heading > .button { width: 100%; }
    .batch-detail-completion .button { width: 100%; }
    .batch-detail-filters { grid-template-columns: 1fr; }
    .batch-progress { grid-template-columns: 1fr; }
    .transaction-modal { width: min(100% - 24px, 430px); }
    .batch-confirmation-modal { width: min(100% - 24px, 840px); }
    .batch-confirmation-summary { display: grid; gap: 7px; padding-right: 16px; padding-left: 16px; }
    .batch-confirmation-content { padding-right: 16px; padding-left: 16px; }
    .transaction-modal-header, .transaction-modal-fields, .transaction-modal-actions { padding-right: 16px; padding-left: 16px; }
    .transaction-modal-actions .button { flex: 1; }
}
