:root { color-scheme:light; --navy:#102a3a; --navy-2:#173e52; --ink:#243444; --muted:#677685; --line:#cdd6e2; --surface:#fff; --canvas:#edf1f6; --table-header:#e8edf4; --row-hover:#f1f5fb; --green:#167553; --green-2:#0f5c40; --green-soft:#e9f5ef; --action:#365e91; --action-hover:#294a75; --action-pressed:#203b5e; --action-soft:#dbe8f8; --action-soft-hover:#f1f5f7; --action-border:#7896bb; --action-text:#203b5e; --action-focus:rgba(54,94,145,.24); --gold:#b58a45; --gold-soft:#f5efe5; --warning:#9a6708; --red:#a63d40; --control-height:40px; --action-height:32px; --control-radius:8px; --page-gap:.75rem; --panel-pad:.85rem; --shadow-sm:0 5px 18px rgba(16,42,58,.045); --shadow-lg:0 24px 80px rgba(9,29,40,.28); font-family:Inter,"Noto Sans Myanmar","Myanmar Text",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; background:var(--canvas); color:var(--ink); }
body { font-size:15px; }
a { color:var(--green); text-decoration:none; }
button,input,select,textarea { font:inherit; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:.45rem; font-size:clamp(1.65rem,2.5vw,2.25rem); letter-spacing:-.035em; }
h2 { margin-bottom:.35rem; font-size:1.1rem; }
p { color:var(--muted); line-height:1.55; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr); transition:grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns:76px minmax(0,1fr); }
.sidebar { position:sticky; top:0; z-index:30; height:100vh; padding:1rem .75rem; background:var(--navy); color:#fff; transition:width .2s ease,transform .2s ease,padding .2s ease; box-shadow:8px 0 26px rgba(16,42,58,.08); }
.sidebar-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.brand { display:flex; align-items:center; gap:.75rem; min-width:0; }
.brand-copy { min-width:0; }
.brand strong { display:block; line-height:1.2; overflow:hidden; text-overflow:ellipsis; }
.brand small { display:block; margin-top:.2rem; color:#a9c3cf; font-size:.7rem; text-transform:uppercase; letter-spacing:.09em; }
.brand-mark { display:grid; place-items:center; flex:0 0 38px; height:38px; border-radius:11px; background:#d9f2e6; color:var(--navy); font-weight:850; box-shadow:0 4px 12px rgba(0,0,0,.14); }
.brand-logo { flex:0 0 38px; width:38px; height:38px; padding:2px; border-radius:8px; background:#fff; object-fit:contain; box-shadow:0 4px 12px rgba(0,0,0,.14); }
.sidebar-toggle { display:grid; width:30px; height:30px; place-items:center; flex:0 0 30px; border:1px solid #345566; border-radius:7px; background:#153749; color:#b9d0da; cursor:pointer; }
.sidebar-toggle:hover { border-color:#6a96a9; background:var(--navy-2); color:#fff; }
.nav-menu { display:grid; gap:.2rem; margin-top:1rem; }
.nav-menu a { display:flex; align-items:center; gap:.7rem; min-height:40px; padding:.52rem .68rem; border-radius:8px; color:#c7d7de; font-size:.86rem; font-weight:650; }
.nav-menu a span,.nav-menu a i { width:1.2rem; text-align:center; color:#8fb8aa; }
.nav-menu a:hover { background:#143648; color:#fff; }
.nav-menu a.active { background:var(--navy-2); color:#fff; box-shadow:inset 3px 0 0 #4fc08a; }
.nav-menu a.active i { color:#74d4a4; }
.sidebar-collapsed .sidebar { padding-inline:.65rem; }
.sidebar-collapsed .sidebar-head { justify-content:center; flex-wrap:wrap; }
.sidebar-collapsed .brand-copy { display:none; }
.sidebar-collapsed .brand,.sidebar-collapsed .nav-menu a { justify-content:center; }
.sidebar-collapsed .nav-menu a { gap:0; font-size:0; }
.sidebar-collapsed .nav-menu a span,.sidebar-collapsed .nav-menu a i { font-size:1rem; }
.main-column { min-width:0; }
.topbar { position:sticky; top:0; z-index:10; display:flex; justify-content:space-between; align-items:center; min-height:56px; padding:.55rem clamp(.9rem,2vw,1.5rem); border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); backdrop-filter:blur(12px); box-shadow:0 2px 12px rgba(16,42,58,.035); }
.topbar-actions,.form-actions { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; }
.topbar-left { display:flex; align-items:center; }
.hamburger-button { display:none; width:36px; height:36px; place-items:center; margin-right:.55rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--green); cursor:pointer; }
.sidebar-backdrop { display:none; }
.environment-badge { padding:.25rem .45rem; border-radius:6px; background:var(--green-soft); color:var(--green); font-weight:800; font-size:.7rem; }
.topbar-note { margin-left:.65rem; color:var(--muted); font-size:.82rem; }
.user-chip { padding:.38rem .65rem; border-radius:999px; background:#eef2ef; font-size:.8rem; }
.language-picker { display:inline-flex; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; }
.language-picker button { min-height:34px; padding:.38rem .62rem; border:0; border-right:1px solid var(--line); background:#fff; color:var(--muted); cursor:pointer; font-size:.76rem; font-weight:750; }
.language-picker button:last-child { border-right:0; }
.language-picker button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.language-picker button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.language-picker button:focus-visible { position:relative; outline:3px solid var(--action-focus); outline-offset:-3px; }
.content { width:min(1600px,100%); margin:0 auto; padding:clamp(.8rem,1.5vw,1.35rem); }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1.5rem; margin-bottom:1.6rem; }
.page-heading p { margin-bottom:0; }
.eyebrow { margin-bottom:.45rem!important; color:var(--green)!important; font-weight:800; font-size:.7rem; letter-spacing:.13em; }
.status-pill { display:inline-flex; align-items:center; width:max-content; padding:.28rem .55rem; border-radius:999px; background:#eef2ef; color:#405048; font-size:.72rem; font-weight:750; }
.status-pill.success { background:var(--green-soft); color:var(--green); }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1.2rem; }
.metric-card,.summary-grid article { padding:1.15rem; border:1px solid var(--line); border-radius:13px; background:var(--surface); box-shadow:0 8px 30px rgba(20,45,34,.035); }
.metric-card span,.summary-grid span { display:block; color:var(--muted); font-size:.78rem; }
.metric-card strong,.summary-grid strong { display:block; margin:.55rem 0 .25rem; font-size:1.45rem; }
.metric-card small { color:#89938d; }
.panel { margin-bottom:var(--page-gap); padding:var(--panel-pad); border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:var(--shadow-sm); }
.panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:.75rem; margin-bottom:.75rem; }
.panel-header p { margin-bottom:0; font-size:.86rem; }
.module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.module-card { display:flex; flex-direction:column; gap:.35rem; min-height:95px; padding:1rem; border:1px solid var(--line); border-radius:11px; background:#fafbfd; color:var(--ink); transition:border-color .15s,transform .15s; }
.module-card:hover { border-color:#8bb8a2; transform:translateY(-1px); }
.module-card span { color:var(--muted); font-size:.8rem; line-height:1.4; }
.workspace-grid { margin-bottom:1.2rem; }
.primary-button,.secondary-button,.link-button { display:inline-flex; justify-content:center; align-items:center; gap:.38rem; min-height:var(--control-height); border-radius:var(--control-radius); padding:.5rem .78rem; cursor:pointer; font-size:.82rem; font-weight:750; }
.primary-button { border:1px solid var(--action); background:var(--action); color:#fff; }
.primary-button:hover { border-color:var(--action-hover); background:var(--action-hover); }
.primary-button:active { border-color:var(--action-pressed); background:var(--action-pressed); }
.primary-button:disabled { opacity:.55; cursor:not-allowed; }
.secondary-button { border:1px solid var(--action-border); background:#fff; color:var(--action-text); }
.secondary-button:hover { border-color:var(--action); background:var(--action-soft-hover); color:var(--action-hover); }
.secondary-button:active { border-color:var(--action-hover); background:var(--action-soft); color:var(--action-pressed); }
.secondary-button:disabled,.icon-button:disabled { opacity:.55; cursor:not-allowed; }
.link-button { min-height:auto; padding:.25rem; border:0; background:transparent; color:var(--green); }
.icon-button { display:inline-grid; width:var(--action-height); height:var(--action-height); place-items:center; flex:0 0 var(--action-height); padding:0; border:1px solid var(--action-border); border-radius:8px; background:#fff; color:var(--action-text); cursor:pointer; font-size:.88rem; transition:background .15s,border-color .15s,color .15s; }
.icon-button:hover { border-color:var(--action); background:var(--action-soft-hover); color:var(--action-hover); }
.icon-button:active { border-color:var(--action-hover); background:var(--action-soft); color:var(--action-pressed); }
.icon-button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.inline-button { margin-top:.5rem; }
.filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; margin-bottom:1rem; }
input,select,textarea { width:100%; border:1px solid #cfd8d2; border-radius:var(--control-radius); padding:.52rem .65rem; background:#fff; color:var(--ink); font-size:.84rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,.autocomplete-select { height:var(--control-height); min-height:var(--control-height); }
input[type="checkbox"],input[type="radio"] { width:16px; height:16px; min-height:16px; flex:0 0 16px; margin:0; padding:0; accent-color:var(--green); }
input:focus,select:focus,textarea:focus { outline:3px solid #dcefe5; border-color:var(--green); }
button:focus-visible,a:focus-visible,[role="button"]:focus-visible { outline:3px solid var(--action-focus); outline-offset:2px; }
.filter-bar input { flex:1 1 260px; }
.filter-bar .autocomplete-select { flex:0 1 180px; }
.filter-bar .grow-field { flex:1 1 300px; display:grid; gap:.35rem; color:var(--muted); font-size:.78rem; font-weight:700; }
.filter-bar button { flex:0 0 auto; }
.form-panel h2 { margin-bottom:1rem; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.72rem; margin-bottom:.8rem; }
.form-grid.one-column { grid-template-columns:1fr; }
.form-grid label,.stack-form label { display:grid; gap:.38rem; color:#3f4c45; font-size:.8rem; font-weight:700; }
.form-grid .wide { grid-column:1/-1; }
.product-form-grid { grid-template-columns:repeat(8,minmax(0,1fr)); }
.product-form-grid>label { grid-column:span 4; }
.product-form-grid>label.product-toggle-field { grid-column:span 2; }
.product-form-grid>label.product-toggle-field.product-toggle-start { grid-column:1 / span 2; }
.product-form-grid>label.wide { grid-column:1/-1; }
@media (max-width:700px) { .product-form-grid { grid-template-columns:1fr; } .product-form-grid>label,.product-form-grid>label.product-toggle-field,.product-form-grid>label.product-toggle-field.product-toggle-start { grid-column:1/-1; } }
textarea { min-height:90px; resize:vertical; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:10px; }
table { width:100%; border-collapse:collapse; white-space:nowrap; }
th,td { padding:.56rem .7rem; border-bottom:1px solid var(--line); text-align:left; }
th { background:var(--table-header); color:var(--ink); font-size:.7rem; text-transform:uppercase; letter-spacing:.04em; }
td { font-size:.84rem; }
tbody tr:last-child td { border-bottom:0; }
.compact th,.compact td { padding:.56rem .68rem; }
.empty-table,.loading-state { padding:1.55rem .85rem; color:var(--muted); text-align:center; }
.split-layout { display:grid; grid-template-columns:minmax(270px,.72fr) minmax(0,1.7fr); gap:1rem; align-items:start; }
.collection-layout { grid-template-columns:minmax(280px,.75fr) minmax(0,1fr); }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.7rem; margin-bottom:1rem; }
.summary-grid article { padding:.9rem; }
.summary-grid strong { font-size:1rem; }
.summary-grid .accent { border-color:#91bba7; background:var(--green-soft); }
.schedule-panel { padding:0; overflow:hidden; }
.schedule-panel .panel-header { padding:1rem 1.1rem 0; }
.schedule-panel .table-wrap { border-width:1px 0 0; border-radius:0; }
.tab-row { display:flex; gap:.35rem; margin:-.6rem 0 1rem; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#a9b9b0 transparent; }
.tab-row::-webkit-scrollbar { height:4px; }
.tab-row::-webkit-scrollbar-track { background:transparent; }
.tab-row::-webkit-scrollbar-thumb { border-radius:999px; background:#a9b9b0; }
.tab-row a { padding:.48rem .7rem; border-radius:8px; background:transparent; color:#536572; white-space:nowrap; font-size:.8rem; }
.tab-row a:hover { background:var(--action-soft-hover); color:var(--action-text); }
.tab-row a.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
dl { display:grid; grid-template-columns:130px 1fr; gap:.65rem 1rem; }
dt { color:var(--muted); font-size:.8rem; }
dd { margin:0; }
.money-list dd { text-align:right; font-weight:750; }
.allocation-line { display:grid; gap:.2rem; padding:.8rem 0; border-top:1px solid var(--line); }
.allocation-line span:last-child { color:var(--muted); font-size:.8rem; }
.alert { margin:.8rem 0; padding:.75rem .85rem; border-radius:8px; font-size:.84rem; }
.alert.error { background:#fbeaea; color:var(--red); }
.danger-button { display:inline-flex; justify-content:center; align-items:center; min-height:40px; padding:.6rem .9rem; border:1px solid #d9a6a6; border-radius:9px; background:#fff; color:var(--red); cursor:pointer; font-weight:750; }
.danger-button:hover { border-color:var(--red); background:#fbeaea; }
.danger-button:disabled { opacity:.5; cursor:not-allowed; }
.hash-value { overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.72rem; }
.row-overdue { background:#fff0f0; }
.row-due { background:#edf8f1; }
.receipt-card { border-color:#9bc2ae; }
.operation-amount { display:block; margin-top:.5rem; text-align:right; }
.compact-reversal { display:flex; align-items:end; gap:.7rem; width:min(100%,560px); margin-top:.25rem; }
.compact-reversal label { display:grid; flex:1 1 340px; gap:.38rem; color:#3f4c45; font-size:.8rem; font-weight:700; }
.compact-reversal textarea { min-height:42px; resize:vertical; }
.compact-reversal .danger-button { flex:0 0 auto; min-height:40px; }
.difference-cell { background:#fbeaea; color:var(--red); font-weight:800; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.45rem; }
.actions-heading { text-align:right; }
.print-document { max-width:1000px; margin:0 auto 1.5rem; padding:2rem; border:1px solid var(--line); background:#fff; color:#17221c; }
.print-header { display:flex; justify-content:space-between; gap:2rem; padding-bottom:1rem; border-bottom:2px solid #17221c; }
.print-header > div:last-child { display:grid; gap:.2rem; text-align:right; }
.print-brand { display:flex; align-items:flex-start; gap:.75rem; min-width:0; }
.print-business-logo { flex:0 0 auto; width:64px; height:48px; object-fit:contain; }
.print-section { margin:1.5rem 0; }
.print-grid { grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr); }
.print-totals { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); }
.print-totals span { display:grid; gap:.35rem; padding:.8rem; border:1px solid var(--line); font-size:.78rem; }
.print-totals strong { font-size:1rem; text-align:right; }
.fine-print { overflow-wrap:anywhere; font:10px ui-monospace,SFMono-Regular,Menlo,monospace; }
.signature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin-top:4rem; }
.signature-grid div { padding-top:.7rem; border-top:1px solid #333; text-align:center; font-size:.75rem; }
.voucher-signatures { margin-top:8rem; }
.receipt-total { display:flex; justify-content:space-between; margin-top:1rem; padding:1rem; border:2px solid #17221c; }
.attachment-box { display:grid; gap:.6rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); }
.print-table table { white-space:normal; }
.page-break { break-before:page; }
.empty-state { max-width:520px; margin:10vh auto; padding:2rem; text-align:center; }
.empty-state>span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 1rem; border-radius:50%; background:#f5e9e9; color:var(--red); font-weight:800; }
.login-shell { display:grid; place-items:center; min-height:100vh; padding:1.5rem; background:radial-gradient(circle at 20% 10%,#d9eee3,transparent 35%),#eff5f1; }
.login-card { width:min(420px,100%); padding:2rem; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 25px 70px rgba(20,55,38,.13); }
.login-brand { margin-bottom:2rem; }
.login-brand strong { font-size:1.05rem; }
.stack-form { display:grid; gap:1rem; margin-top:1.2rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.valid.modified:not([type=checkbox]) { border-color:#26b050; }
.invalid { border-color:#c83f3f; }
.validation-message { color:#b52d2d; font-size:.75rem; }
#blazor-error-ui { display:none; position:fixed; inset:auto 1rem 1rem 1rem; z-index:1000; padding:1rem; border-radius:9px; background:#8d2727; color:#fff; }
#blazor-error-ui .dismiss { float:right; cursor:pointer; }
@media (max-width:1000px) { .metric-grid,.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:700px) { .app-shell,.app-shell.sidebar-collapsed{display:block} .sidebar,.sidebar-collapsed .sidebar{position:fixed;inset:0 auto 0 0;width:min(280px,86vw);height:100vh;padding:1.3rem 1rem;transform:translateX(-105%);box-shadow:12px 0 40px rgba(4,18,11,.28)} .sidebar.mobile-open{transform:translateX(0)} .sidebar .sidebar-head,.sidebar-collapsed .sidebar-head{justify-content:space-between;flex-wrap:nowrap} .sidebar .brand,.sidebar-collapsed .brand{justify-content:flex-start} .sidebar .brand-copy,.sidebar-collapsed .brand-copy{display:block} .sidebar .nav-menu,.sidebar-collapsed .nav-menu{display:grid;overflow:visible;margin-top:2rem} .sidebar .nav-menu a,.sidebar-collapsed .nav-menu a{justify-content:flex-start;gap:.75rem;font-size:.92rem} .sidebar .nav-menu a span,.sidebar-collapsed .nav-menu a span,.sidebar .nav-menu a i,.sidebar-collapsed .nav-menu a i{font-size:inherit} .hamburger-button{display:grid} .sidebar-backdrop{position:fixed;inset:0;z-index:20;display:block;border:0;background:rgba(5,20,13,.48);cursor:pointer} .topbar-note,.user-chip{display:none} .page-heading{flex-direction:column} .metric-grid,.summary-grid,.module-grid,.form-grid,.detail-grid{grid-template-columns:1fr} .split-layout,.collection-layout{grid-template-columns:1fr} .compact-reversal{align-items:stretch;flex-direction:column} .compact-reversal .danger-button{width:100%} .content{padding:1rem} }
@media print { @page{size:A4;margin:12mm} .sidebar,.topbar,.no-print,.page-heading .primary-button,.tab-row,button{display:none!important} .app-shell{display:block} .content{width:auto;padding:0} .panel{border:0;box-shadow:none} .print-document{max-width:none;margin:0;padding:0;border:0} .print-header h1{font-size:18px}.print-table th,.print-table td{padding:4px;font-size:9px}.page-break{break-before:page} }
.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .5rem 1rem;
    max-height: 22rem;
    overflow: auto;
    padding: .75rem;
    border: 1px solid var(--border, #d7dde5);
    border-radius: .5rem;
}

.permission-grid label {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.permission-fieldset { min-width:0; }
.permission-toolbar { display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin-bottom:.8rem; padding-bottom:.7rem; border-bottom:1px solid var(--line); color:var(--muted); font-size:.78rem; }
.permission-toolbar>div { display:flex; align-items:center; gap:.45rem; }
.compact-button { min-height:32px; padding:.38rem .65rem; }
.permission-toolbar button:disabled { opacity:.5; cursor:not-allowed; }

.weekly-holiday-line { display:grid; grid-template-columns:repeat(7,minmax(100px,1fr)); gap:.65rem; margin-bottom:1rem; }
.weekday-option { display:flex!important; align-items:center; justify-content:center; gap:.5rem; padding:.8rem .65rem; border:1px solid var(--line); border-radius:9px; background:#f8fbf9; cursor:pointer; }
.weekday-option:has(input:checked) { border-color:var(--green); background:var(--green-soft); color:var(--green); }
.weekday-option input { width:auto; margin:0; }
.checkbox-field { display:flex; align-items:center; gap:.55rem; min-height:42px; }
.checkbox-field input { width:auto; margin:0; }
.field-help { color:var(--muted); font-weight:500; line-height:1.45; }
.modal-backdrop { position:fixed; inset:0; z-index:900; display:grid; place-items:center; padding:1rem; background:rgba(18,31,24,.55); backdrop-filter:blur(2px); }
.modal-dialog { display:flex; flex-direction:column; width:min(900px,100%); max-height:calc(100vh - 2rem); margin:0; padding:0; overflow:hidden; box-shadow:var(--shadow-lg); }
.modal-dialog>.panel-header { padding:1rem 1.2rem; border-bottom:1px solid var(--line); }
.modal-form-body { flex:1 1 auto; min-height:0; padding:1.2rem; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.detail-dialog { width:min(680px,100%); }
.record-detail-list { grid-template-columns:minmax(145px,.7fr) minmax(0,1.3fr); margin:0; }
.record-detail-list dt,.record-detail-list dd { padding:.55rem 0; border-bottom:1px solid var(--line); }
.record-detail-list dd { min-width:0; overflow-wrap:anywhere; white-space:normal; }
.record-detail-list dt:last-of-type,.record-detail-list dd:last-of-type { border-bottom:0; }
.policy-calculation-editor { display:grid; grid-template-columns:auto minmax(150px,1fr) auto minmax(150px,1fr); gap:.65rem; align-items:center; padding:.75rem; border:1px solid var(--line); border-radius:9px; background:#f8fbf9; }
.funding-mode-options { display:flex; flex-wrap:wrap; gap:1rem; grid-column:1/-1; padding-top:.35rem; border-top:1px solid var(--line); }
.table-group-row td { background:#edf5f0; color:var(--green); font-weight:800; }
@media (max-width:700px) { .policy-calculation-editor{grid-template-columns:1fr} .funding-mode-options{grid-column:auto} }

/* Guided new-loan workflow */
.loan-entry-page { width:min(1180px,100%); margin:0 auto; }
.loan-entry-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.loan-entry-header h1 { margin:0; font-size:1.45rem; }
.loan-entry-header .eyebrow { display:block; margin-bottom:.25rem!important; }
.loan-stepper { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin-bottom:1rem; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#a9b9b0 transparent; }
.loan-stepper::-webkit-scrollbar { height:4px; }
.loan-stepper::-webkit-scrollbar-thumb { border-radius:999px; background:#a9b9b0; }
.loan-stepper button { display:flex; align-items:center; gap:.65rem; min-width:175px; padding:.72rem; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--muted); text-align:left; cursor:pointer; }
.loan-stepper button>span:first-child { display:grid; width:30px; height:30px; place-items:center; flex:0 0 30px; border-radius:50%; background:#edf1ee; color:#627068; font-size:.78rem; font-weight:800; }
.loan-stepper button>span:last-child { display:grid; gap:.12rem; min-width:0; }
.loan-stepper strong { color:var(--ink); font-size:.82rem; }
.loan-stepper small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.68rem; }
.loan-stepper button:hover { border-color:var(--action-border); background:var(--action-soft-hover); color:var(--action-text); }
.loan-stepper button.active { border-color:var(--action-border); background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action),0 0 0 2px rgba(70,100,122,.06); }
.loan-stepper button.active>span:first-child,.loan-stepper button.complete>span:first-child { background:var(--action); color:#fff; }
.loan-stepper button.complete { border-color:var(--action-border); }
.loan-stepper button:focus-visible { outline:3px solid var(--action-focus); outline-offset:2px; }
.loan-step-form { position:relative; }
.loan-step-panel { max-width:940px; margin-inline:auto; padding:1.4rem; }
.loan-step-panel .form-grid label { font-size:.82rem; }
.loan-step-panel input:not([type=checkbox]):not([type=radio]),.loan-step-panel .autocomplete-select { min-height:42px; height:42px; padding:.62rem .7rem; font-size:.9rem; }
.loan-step-panel textarea { font-size:.9rem; }
.loan-step-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.loan-step-heading h2,.loan-review-heading h2 { margin:0; font-size:1.25rem; }
.loan-step-heading h2:focus,.loan-review-heading h2:focus { outline:none; }
.loan-step-heading p { max-width:430px; margin:0; font-size:.82rem; text-align:right; }
.step-kicker { display:block; margin-bottom:.3rem; color:var(--green); font-size:.66rem; font-weight:850; letter-spacing:.1em; }
.required-mark,.optional-mark { margin-left:.25rem; color:var(--red); font-size:.64rem; font-weight:750; }
.optional-mark { color:var(--muted); }
.loan-selection-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:1rem 0; padding:.8rem; border:1px solid #cfe1d7; border-radius:10px; background:#f7fbf8; }
.loan-selection-summary>div { display:flex; align-items:center; gap:.65rem; min-width:0; }
.loan-selection-summary i { display:grid; width:34px; height:34px; place-items:center; flex:0 0 34px; border-radius:9px; background:var(--green-soft); color:var(--green); }
.loan-selection-summary span { display:grid; min-width:0; }
.loan-selection-summary small,.product-limit-strip small,.loan-review-context small { color:var(--muted); font-size:.68rem; }
.loan-selection-summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8rem; }
.loan-step-actions { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:1.2rem; padding-top:1rem; border-top:1px solid var(--line); }
.loan-step-actions.end { justify-content:flex-end; }
.loan-step-actions button { gap:.45rem; }
.product-limit-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-bottom:1rem; }
.product-limit-strip span { display:grid; gap:.25rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:9px; background:#f8faf9; }
.product-limit-strip strong { font-size:.78rem; }
.product-limit-strip .inactive-rate-summary { background:#eef1ef; border-color:#d6ddd8; }
.product-limit-strip .inactive-rate-summary strong { color:#8a958e; }
.numeric-input,.numeric-cell { text-align:right; font-variant-numeric:tabular-nums; }
.rate-result { border-color:#98c3ad; background:var(--green-soft); color:var(--green-2); font-weight:800; }
.inactive-rate-field { color:#89958e; }
.loan-step-panel .inactive-rate-field input:disabled { opacity:1; background:#eef1ef; border-color:#d6ddd8; color:#8a958e; cursor:not-allowed; }
.rate-method-card { padding:.8rem; border:1px solid var(--line); border-radius:10px; background:#f8faf9; }
.rate-method-card label { display:flex; }
.rate-method-card p { margin:.2rem 0 0 1.65rem; font-size:.75rem; }
.repayment-frequency { min-width:0; margin:0; padding:.7rem .8rem .8rem; border:1px solid var(--line); border-radius:10px; }
.repayment-frequency legend { padding:0 .3rem; color:#3f4c45; font-size:.82rem; font-weight:700; }
.frequency-options { display:flex; flex-wrap:wrap; gap:.55rem; }
.frequency-option { flex:1 1 150px; cursor:pointer; }
.frequency-option>input { position:absolute; opacity:0; pointer-events:none; }
.frequency-option>span { display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:42px; padding:.6rem .8rem; border:1px solid var(--line); border-radius:9px; background:#f8faf9; }
.frequency-option>input:checked+span { border-color:var(--green); background:var(--green-soft); color:var(--green); box-shadow:0 0 0 2px rgba(23,107,77,.07); }
.frequency-option>input:focus-visible+span { outline:2px solid var(--green); outline-offset:2px; }
.loan-info-note { display:flex; align-items:flex-start; gap:.65rem; padding:.75rem .85rem; border-radius:9px; background:#eef5f1; color:#456154; font-size:.78rem; line-height:1.45; }
.loan-info-note i { margin-top:.15rem; color:var(--green); }
.loan-fieldset { min-width:0; margin:0 0 1rem; padding:1rem; border:1px solid var(--line); border-radius:11px; }
.loan-fieldset legend { padding:0 .45rem; color:var(--ink); font-size:.84rem; font-weight:800; }
.loan-fieldset legend i { margin-right:.35rem; color:var(--green); }
.loan-fieldset .form-grid { margin:0; }
.guarantor-entry-grid { margin-top:.8rem!important; }
.guarantor-entry-grid input[readonly],.guarantor-entry-grid textarea[readonly] { border-color:#d5dde4; background:#eef2f5; color:#56636d; cursor:default; }
.guarantor-match-status { display:flex; align-items:center; gap:.55rem; margin-top:.75rem; padding:.6rem .7rem; border:1px solid #b9d8c6; border-radius:8px; background:#edf7f1; color:#276546; }
.guarantor-match-status.unavailable { border-color:#e5c3c3; background:#fff1f1; color:#943b3b; }
.guarantor-match-status.new { border-color:#b9cbe1; background:#eef4fb; color:#315c88; }
.guarantor-match-status>span { display:grid; gap:.1rem; }
.guarantor-match-status strong { font-size:.76rem; }
.guarantor-match-status small { font-size:.68rem; }
.loan-step-panel .loan-collateral-document-field { grid-template-rows:18px var(--control-height); align-content:start; min-width:0; }
.loan-step-panel .loan-collateral-document-field>span { white-space:nowrap; }
.loan-step-panel .loan-collateral-document-field>input[type="file"] { display:block; min-width:0; width:100%; height:var(--control-height); min-height:var(--control-height); padding:.42rem .6rem; }
.optional-collateral { display:flex; align-items:center; justify-content:flex-end; gap:1rem; }
.optional-collateral p { margin:0; font-size:.8rem; }
.loan-review { display:grid; gap:1rem; }
.loan-review-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.loan-review-heading p { margin:.25rem 0 0; font-size:.8rem; }
.loan-review-heading button { gap:.4rem; }
.loan-review-context { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--line); }
.loan-review-context span { display:grid; gap:.25rem; min-width:0; padding:.72rem .8rem; background:#fff; }
.loan-review-context strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.loan-summary-grid { margin:0; }
.loan-schedule-panel { margin:0; }
.loan-schedule-panel th { position:sticky; top:0; z-index:1; }
.schedule-installment-toolbar { display:flex; align-items:end; gap:.75rem; flex-wrap:wrap; padding:.75rem 1rem; border-bottom:1px solid var(--border); background:#f8fbf9; }
.schedule-installment-toolbar label { width:min(280px,100%); }
.schedule-installment-toolbar>span { min-height:var(--control-height); display:inline-flex; align-items:center; gap:.35rem; color:var(--muted); }
.schedule-day-off td { background:#fff7df !important; color:#825800; border-top:1px solid #f0d996; border-bottom:1px solid #f0d996; }
.schedule-day-off i { margin-right:.4rem; }
.schedule-actions { display:flex; align-items:center; gap:.8rem; }
.schedule-actions>strong { color:var(--green-2); font-size:.82rem; }
.schedule-actions button { gap:.4rem; }
.loan-review .empty-table i { display:block; margin-bottom:.6rem; color:#8aac9b; font-size:1.5rem; }
.loan-review .empty-table p { margin-bottom:1rem; }
.loan-global-error { max-width:940px; margin:1rem auto; }

/* Focused loan detail */
.loan-detail-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:12px; background:#fff; }
.loan-detail-bar>div:first-child { display:grid; gap:.2rem; min-width:0; }
.loan-detail-bar>div:first-child>span { overflow:hidden; color:var(--muted); font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.back-link { width:max-content; color:var(--green); font-size:.76rem; font-weight:750; text-decoration:none; }
.loan-detail-title { display:flex; align-items:center; gap:.6rem; }
.loan-detail-title h1 { margin:0; font-size:1.3rem; }
.loan-detail-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.45rem; }
.loan-detail-tabs { display:flex; width:max-content; max-width:100%; gap:.35rem; margin-bottom:1rem; padding:.28rem; overflow-x:auto; border:1px solid var(--line); border-radius:11px; background:#fff; scrollbar-width:thin; }
.loan-detail-tabs button { display:inline-flex; align-items:center; gap:.42rem; flex:0 0 auto; padding:.58rem .75rem; border:0; border-radius:8px; background:transparent; color:#536159; font-weight:750; cursor:pointer; }
.loan-detail-tabs button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.loan-detail-tabs button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.loan-detail-tabs button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.loan-detail-summary { margin-bottom:1rem; }
.loan-facts dl { grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr); padding:0 1.1rem 1rem; }
.loan-detail-value-actions { display:inline-flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:.45rem; }
.loan-action-dialog { width:min(540px,100%); }
.loan-action-dialog textarea { min-height:110px; }
.loan-document-upload { display:grid; grid-template-columns:minmax(180px,1fr) minmax(240px,2fr); gap:.8rem; padding:1rem; }
.loan-document-upload label { display:grid; gap:.4rem; color:#3f4c45; font-size:.8rem; font-weight:700; }
.document-list { display:flex; flex-wrap:wrap; gap:.45rem; padding:0 1rem 1rem; }

@media (max-width:1000px) {
    .loan-stepper { grid-template-columns:repeat(4,minmax(175px,1fr)); }
    .loan-review-context { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
    .loan-entry-header,.loan-step-heading,.loan-review-heading,.optional-collateral,.schedule-actions { align-items:stretch; flex-direction:column; }
    .loan-step-heading { gap:.5rem; }
    .loan-step-heading p { text-align:left; }
    .loan-step-panel { padding:1rem; }
    .loan-selection-summary,.product-limit-strip,.loan-review-context { grid-template-columns:1fr; }
    .loan-step-actions { position:sticky; bottom:0; z-index:3; margin-inline:-1rem; padding:1rem; background:rgba(255,255,255,.96); }
    .loan-step-actions button { flex:1; }
    .loan-review-heading button { width:100%; }
    .schedule-actions>strong { text-align:right; }
    .loan-detail-bar { align-items:stretch; flex-direction:column; }
    .loan-detail-actions { justify-content:flex-start; }
    .loan-detail-actions>* { flex:1 1 auto; }
    .loan-document-upload { grid-template-columns:1fr; }
}

/* Project-wide navy and steel-blue interaction refinements. */
body { color:var(--ink); background:var(--canvas); }
button,.primary-button,.secondary-button,.danger-button,.action-button,.icon-button { transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s; }
.primary-button:active,.secondary-button:active,.danger-button:active { transform:translateY(1px); }
.primary-button,.secondary-button,.danger-button { min-height:var(--control-height); }
.danger-button { border-color:#e1b3b5; color:var(--red); }
.danger-button:hover { border-color:var(--red); background:#fbebeb; }
.panel,.metric-card,.summary-grid article { border-color:var(--line); }
.status-pill.status-warning,.status-pill.status-pending,.status-pill.status-overdue { background:#fff3d9; color:var(--warning); }
.status-pill.status-error,.status-pill.status-cancelled,.status-pill.status-failed { background:#f8e9e9; color:var(--red); }
.status-pill.status-info,.status-pill.status-open { background:#e8f0f4; color:var(--navy-2); }
.table-wrap { scrollbar-width:thin; scrollbar-color:#b7c8bf transparent; }
.table-wrap::-webkit-scrollbar { width:6px; height:6px; }
.table-wrap::-webkit-scrollbar-thumb { border-radius:999px; background:#b7c8bf; }
.table-wrap th { position:sticky; top:0; z-index:2; }
.table-wrap tbody tr { transition:background-color .12s; }
.table-wrap tbody tr:hover { background:var(--row-hover); }
.modal-backdrop { background:rgba(9,28,39,.64); }
.modal-dialog { border:1px solid rgba(255,255,255,.75); border-radius:14px; }
.modal-dialog>.panel-header { flex:0 0 auto; min-height:54px; }
.modal-dialog>.modal-form-body { min-height:0; overflow-y:auto; scrollbar-width:thin; }
.modal-dialog>.modal-actions { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.55rem; margin:0; padding:.72rem .9rem; border-top:1px solid var(--line); background:#fafbfd; }
.modal-dialog>.modal-actions button { min-width:100px; }
.modal-dialog>.panel-header h2 i { color:var(--green); }
.empty-state { border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }
.empty-state>span { background:#eaf4ef; color:var(--green); }
.empty-state.error-state>span { background:#f8e9e9; color:var(--red); }
.reference-code { padding:.55rem .7rem; border-radius:8px; background:#edf1f6; overflow-wrap:anywhere; font-size:.78rem; }
.login-shell { background:radial-gradient(circle at 18% 8%,rgba(22,117,83,.18),transparent 34%),linear-gradient(145deg,#edf5f2,#f7faf9 55%,#e8eff2); }
.login-card { border-top:4px solid var(--green); box-shadow:0 26px 72px rgba(16,42,58,.17); }
.login-brand { margin-bottom:1.4rem; }
.login-brand small { display:block; margin-top:.12rem; color:var(--muted); font-size:.68rem; font-weight:650; letter-spacing:.04em; text-transform:uppercase; }
.login-card h1 { margin-bottom:.8rem; font-size:1.45rem; }
.login-card .stack-form { gap:.75rem; }
.login-card .primary-button { width:100%; margin-top:.25rem; }
#blazor-error-ui { border:1px solid #c66567; background:var(--red); box-shadow:var(--shadow-lg); }
#blazor-error-ui .reload { color:#fff; font-weight:800; text-decoration:underline; }
#blazor-error-ui .dismiss { display:inline-grid; width:28px; height:28px; place-items:center; border-radius:7px; }
.dashboard-modules .module-card { position:relative; overflow:hidden; }
.dashboard-modules .module-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--green); opacity:0; transition:opacity .15s; }
.dashboard-modules .module-card:hover { border-color:#9fc7b4; box-shadow:0 7px 20px rgba(16,42,58,.07); }
.dashboard-modules .module-card:hover::before { opacity:1; }
.saving-open-account-trigger { width:max-content; min-width:0; }

* { scrollbar-width:thin; scrollbar-color:#b7c8bf transparent; }
*::-webkit-scrollbar { width:7px; height:7px; }
*::-webkit-scrollbar-thumb { border-radius:999px; background:#b7c8bf; }

@media print {
    .print-document { --table-header:#f1f4f7; --row-hover:#fff; --line:#dce3ea; }
    .print-document { font-size:10pt; line-height:1.35; }
    .print-header { align-items:flex-start; gap:12mm; padding-bottom:4mm; }
    .print-table table { width:100%; border-collapse:collapse; }
    .print-table thead { display:table-header-group; }
    .print-table tr { break-inside:avoid; }
    .print-table th,.print-table td { vertical-align:top; }
    .print-table th.numeric,.print-table td.numeric { text-align:right; }
    .signature-grid { break-inside:avoid; margin-top:22mm; }
    .voucher-signatures { margin-top:30mm; }
    .receipt-total,.print-totals { break-inside:avoid; }
}

@media (max-width:700px) {
    .modal-dialog>.modal-actions { flex-direction:column-reverse; }
    .modal-dialog>.modal-actions button { width:100%; }
    .form-actions>button,.form-actions>.primary-button,.form-actions>.secondary-button,.form-actions>.danger-button { flex:1 1 100%; width:100%; }
    .empty-state { margin:6vh auto; padding:1.25rem; }
}
@media (max-width:900px) { .weekly-holiday-line{grid-template-columns:repeat(2,minmax(120px,1fr))} }

/* Focused operations workspaces: Fixed Assets and Partners */
.operations-page { --workspace-accent:#176b4d; }
.operations-page .workspace-heading { margin-bottom:1rem; }
.operations-page .workspace-heading .heading-copy { max-width:720px; }
.operations-page .workspace-heading .heading-copy>p:last-child { margin:.2rem 0 0; font-size:.88rem; }
.operations-page .workspace-tabs { gap:.45rem; margin:0 0 1.1rem; padding:.28rem; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 6px 22px rgba(20,45,34,.035); }
.operations-page .workspace-tabs a { display:inline-flex; align-items:center; gap:.45rem; padding:.58rem .78rem; background:transparent; color:#536159; font-weight:700; }
.operations-page .workspace-tabs a:hover { background:var(--action-soft-hover); color:var(--action-text); }
.operations-page .workspace-tabs a.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.operations-page .workspace-tabs a:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.operations-page .workspace-tabs a i { width:1rem; text-align:center; }
.operations-page .workspace-notice { display:flex; align-items:flex-start; justify-content:space-between; gap:.8rem; margin:0 0 1rem; padding:.78rem .9rem; border:1px solid #b9d9c9; border-radius:10px; background:#edf8f2; color:#245b43; font-size:.84rem; }
.operations-page .workspace-notice.error { border-color:#edc3c3; background:#fbeaea; color:var(--red); }
.operations-page .workspace-panel { padding:0; overflow:hidden; }
.operations-page .workspace-panel>.panel-header { align-items:center; margin:0; padding:1rem 1.1rem; border-bottom:1px solid var(--line); }
.operations-page .workspace-panel>.panel-header h2 { display:flex; align-items:center; gap:.5rem; margin-bottom:.25rem; }
.operations-page .workspace-panel>.panel-header h2 i { color:var(--green); font-size:.9rem; }
.operations-page .panel-count { display:inline-flex; align-items:center; min-width:1.65rem; height:1.65rem; justify-content:center; padding:0 .48rem; border-radius:999px; background:#eaf2ed; color:#466056; font-size:.7rem; font-weight:800; }
.operations-page .table-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:.65rem; padding:.85rem 1.1rem; border-bottom:1px solid var(--line); background:#fafbfd; }
.operations-page .table-toolbar label { display:grid; flex:0 1 190px; gap:.3rem; color:var(--muted); font-size:.72rem; font-weight:750; }
.operations-page .table-toolbar .search-field { flex:1 1 260px; }
.operations-page .table-toolbar input { min-height:38px; padding:.52rem .65rem; }
.operations-page .workspace-panel .table-wrap { border:0; border-radius:0; scrollbar-width:thin; scrollbar-color:#a9b9b0 transparent; }
.operations-page .workspace-panel .table-wrap::-webkit-scrollbar { width:5px; height:5px; }
.operations-page .workspace-panel .table-wrap::-webkit-scrollbar-thumb { border-radius:999px; background:#a9b9b0; }
.operations-page table th { position:sticky; top:0; z-index:1; }
.operations-page tbody tr { transition:background .12s ease; }
.operations-page tbody tr:hover { background:var(--row-hover); }
.operations-page td.numeric,.operations-page th.numeric { text-align:right; font-variant-numeric:tabular-nums; }
.operations-page .action-cell { text-align:right; }
.operations-page .action-group { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.32rem; }
.operations-page .action-button { display:inline-flex; align-items:center; gap:.34rem; min-height:var(--action-height); padding:.35rem .55rem; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--action-text); cursor:pointer; font-size:.76rem; font-weight:750; white-space:nowrap; }
.operations-page .action-button:hover { border-color:var(--action-border); background:var(--action-soft-hover); color:var(--action-hover); }
.operations-page .action-button:active { border-color:var(--action-border); background:var(--action-soft); color:var(--action-pressed); }
.operations-page .action-button.danger { color:var(--red); }
.operations-page .action-button.danger:hover { border-color:#edc3c3; background:#fbeaea; }
.operations-page .action-button:disabled { opacity:.5; cursor:not-allowed; }
.operations-page .status-pill.status-active,.operations-page .status-pill.status-posted,.operations-page .status-pill.status-approved,.operations-page .status-pill.status-paid { background:#e5f4ec; color:#176b4d; }
.operations-page .status-pill.status-submitted,.operations-page .status-pill.status-partial { background:#fff3d9; color:#805b08; }
.operations-page .status-pill.status-draft { background:#eaf0f7; color:#425d78; }
.operations-page .status-pill.status-reversed,.operations-page .status-pill.status-rejected,.operations-page .status-pill.status-deleted,.operations-page .status-pill.status-inactive { background:#f6e8e8; color:#923838; }
.operations-page .table-empty { padding:2.4rem 1rem!important; color:var(--muted); text-align:center; white-space:normal; }
.operations-page .table-empty i { display:block; margin-bottom:.5rem; color:#9eb2a7; font-size:1.25rem; }
.operations-page .modal-dialog>.panel-header { margin:0; }
.collection-dialog { width:min(1180px,100%); }
.schedule-reversal-dialog { width:min(560px,100%); }
.schedule-reversal-dialog textarea { min-height:110px; }
.collections-workspace tr.row-paid>td { background:#e8f6ee; border-bottom-color:#c8e6d4; }
.collections-workspace tr.row-paid>td:first-child { box-shadow:inset 4px 0 0 #249362; }
.collections-workspace tr.row-overdue>td { background:#fff0f0; border-bottom-color:#f0cccc; }
.collections-workspace tr.row-overdue>td:first-child { box-shadow:inset 4px 0 0 #c84a4a; }
.collections-workspace tr.row-absent>td { background:#fff8e9; border-bottom-color:#ead8ae; }
.collections-workspace tr.row-absent>td:first-child { box-shadow:inset 4px 0 0 #bd8a23; }
.collection-entry-dialog { width:min(760px,100%); }
.collection-preview-dialog { width:min(880px,100%); }
.collection-preview-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:.75rem; margin-bottom:1rem; }
.collection-preview-summary article { display:grid; gap:.3rem; padding:.8rem; border:1px solid var(--line); border-radius:9px; background:#f8fbf9; }
.collection-preview-summary span { color:var(--muted); font-size:.72rem; font-weight:750; }
.collection-preview-summary strong { color:var(--ink); font-size:.92rem; font-variant-numeric:tabular-nums; }
.collection-overview-table table { min-width:1500px; }
.collection-overview-table tbody td { vertical-align:middle; }
.collection-overview-filter { border-top:1px solid var(--line); }
.operations-page .collection-overview-filter>.collection-active-filter { display:flex; justify-content:center; align-items:center; align-self:flex-end; flex:0 0 108px; width:108px; height:var(--control-height); min-height:var(--control-height); max-height:var(--control-height); margin:0; padding:0 .75rem; border:1px solid var(--action-border); border-radius:var(--control-radius); background:#fff; color:var(--action-text)!important; font-size:.8rem!important; font-weight:800!important; line-height:1; white-space:nowrap; cursor:pointer; }
.operations-page .collection-overview-filter>.secondary-button { align-self:flex-end; flex:0 0 108px; width:108px; height:var(--control-height); min-height:var(--control-height); max-height:var(--control-height); margin:0; }
.collection-active-filter:hover { border-color:var(--action); background:var(--action-soft-hover); }
.collection-active-filter:has(input:checked) { border-color:var(--action); background:var(--action-soft); box-shadow:inset 0 -2px 0 var(--action); }
.collection-active-filter input { accent-color:var(--action); }
.collection-remaining-total { display:flex; align-items:center; gap:.75rem; margin:.8rem .85rem .9rem; padding:.75rem .9rem; border:1px solid #b8cce2; border-left:4px solid var(--action); border-radius:10px; background:linear-gradient(135deg,#f6faff,#eaf2fb); color:#294f7d; box-shadow:0 5px 16px rgba(32,59,94,.055); }
.collection-remaining-total>span { display:inline-flex; align-items:center; gap:.45rem; font-size:.76rem; font-weight:850; letter-spacing:.025em; text-transform:uppercase; }
.collection-remaining-total strong { margin-left:auto; color:#203b5e; font-size:1.16rem; font-weight:900; white-space:nowrap; }
.collection-remaining-total small { color:#66768a; font-size:.7rem; white-space:nowrap; }
@media (max-width:700px) { .collection-remaining-total { align-items:flex-start; flex-wrap:wrap; } .collection-remaining-total strong { order:3; width:100%; margin-left:0; } }
.collection-search-panel { padding:.9rem 1rem; }
.collection-search-toolbar { display:flex; align-items:flex-end; gap:.75rem; }
.collection-search-toolbar label { display:grid; flex:1 1 460px; gap:.4rem; min-width:0; color:#3f4c45; font-size:.8rem; font-weight:750; }
.collection-search-toolbar label>span { display:flex; align-items:center; gap:.4rem; }
.collection-search-toolbar label>span i { color:var(--green); }
.collection-search-toolbar .secondary-button { flex:0 0 auto; min-height:42px; }
.collection-schedule-header { align-items:center; gap:1rem; padding:1rem 1.1rem; }
.collection-loan-identity { min-width:0; }
.collection-loan-identity .eyebrow { display:flex; align-items:center; gap:.4rem; margin-bottom:.35rem; color:var(--green); font-size:.7rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.collection-loan-identity h2 { margin:0; overflow:hidden; font-size:1.08rem; text-overflow:ellipsis; white-space:nowrap; }
.collection-loan-identity h2 span { color:#99a69f; font-weight:500; }
.collection-loan-identity p { margin:.28rem 0 0; font-size:.78rem; }
.collection-overview-table { isolation:isolate; }
.collection-overview-table table { min-width:1120px; }
.collection-overview-table .sticky-customer-column { position:sticky; left:0; z-index:3; min-width:235px; background:#fff; box-shadow:8px 0 12px -10px rgba(16,42,58,.55); }
.collection-overview-table thead .sticky-customer-column { z-index:4; background:var(--table-header); }
.collection-overview-table tbody tr:hover .sticky-customer-column { background:var(--row-hover); }
.collection-customer-cell { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:.15rem; }
.collection-customer-name-line { display:grid; width:100%; min-width:0; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:.45rem; }
.collection-customer-cell strong,.collection-customer-cell small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.collection-customer-view { width:28px; min-width:28px; height:28px; justify-self:end; }
.collection-schedule-actions { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; flex:1 1 620px; flex-wrap:wrap; }
.collection-schedule-actions .primary-button,.collection-schedule-actions .secondary-button { white-space:nowrap; }
.collection-deposit-action { background:var(--action-soft-hover); }
.collection-deposit-unavailable { border-style:dashed; background:#f6f7f8; color:var(--muted); opacity:1; }
.collection-deposit-complete { border-color:#b8d8c7; background:#edf8f1; color:#24704c; opacity:1; }
.collection-deposit-dialog { width:min(720px,100%); }
.collection-deposit-account-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin-bottom:1rem; }
.collection-deposit-account-summary>div { display:grid; min-width:0; gap:.28rem; padding:.75rem .85rem; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.collection-deposit-account-summary>div:first-child { grid-column:span 2; }
.collection-deposit-account-summary span { color:var(--muted); font-size:.74rem; font-weight:750; }
.collection-deposit-account-summary strong { overflow-wrap:anywhere; color:var(--ink); font-size:.9rem; }
.collection-deposit-account-summary .remaining { border-color:#d8be73; background:#fff9e8; }
.collection-deposit-account-summary .remaining strong { color:var(--warning); }
.collection-balance-due { color:var(--warning); }
.schedule-today-label { display:block; margin-top:2px; color:var(--green); font-size:10px; font-weight:800; line-height:1.1; }
@media (max-width:700px) { .collection-search-toolbar { align-items:stretch; flex-direction:column; } .collection-search-toolbar label { flex-basis:auto; width:100%; } .collection-search-toolbar .secondary-button { width:100%; } .collection-schedule-header { align-items:flex-start; flex-direction:column; } .collection-loan-identity h2 { white-space:normal; } .collection-schedule-actions { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); } .collection-schedule-actions .status-pill { justify-self:start; } .collection-schedule-actions .primary-button,.collection-schedule-actions .secondary-button { width:100%; min-width:0; white-space:normal; } .collection-deposit-account-summary { grid-template-columns:1fr; } .collection-deposit-account-summary>div:first-child { grid-column:auto; } }
.collateral-dialog { width:min(760px,100%); }
.collateral-documents-dialog { width:min(820px,100%); }
.collateral-document-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.9rem; margin-top:1rem; }
.collateral-document-card { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; }
.collateral-document-preview { display:grid; width:100%; height:140px; place-items:center; padding:0; overflow:hidden; border:0; border-bottom:1px solid var(--line); background:#f1f5f2; color:var(--green); cursor:pointer; }
.collateral-document-preview img { width:100%; height:100%; object-fit:cover; transition:transform .18s ease; }
.collateral-document-preview:hover img { transform:scale(1.035); }
.collateral-document-preview>i { font-size:2.4rem; }
.collateral-document-card>div { display:grid; gap:.2rem; padding:.7rem .8rem; }
.collateral-document-card strong { font-size:.8rem; color:var(--ink); }
.collateral-document-card span { overflow:hidden; color:var(--muted); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.collateral-document-card small { color:var(--muted); font-size:.7rem; }
.collateral-panel { grid-column:span 1; min-width:0; }
.table-subtext { display:block; margin-top:.18rem; color:var(--muted); font-size:.76rem; }
.form-grid .full-span { grid-column:1 / -1; }
.checkbox-label { justify-content:flex-end; }
.operations-page .modal-actions { justify-content:flex-end; padding-top:.2rem; }
.operations-page .modal-actions button { min-width:110px; }
.operations-page .modal-form-body>.primary-button,.operations-page .modal-form-body>.danger-button { display:flex; width:max-content; min-width:140px; margin-left:auto; }
.operations-page .danger-summary { border-color:#edc3c3; background:#fdf1f1; }
.assets-workspace .workspace-tabs,.partners-workspace .workspace-tabs,.accounting-workspace .workspace-tabs,.settings-workspace .workspace-tabs,.loans-workspace .workspace-tabs,.collections-workspace .workspace-tabs { width:max-content; max-width:100%; }
.settings-workspace .settings-tabs { padding-bottom:.38rem; scroll-padding-inline:.3rem; }
.settings-workspace .settings-tabs a { flex:0 0 auto; }
.settings-workspace .settings-holiday-panel>.weekly-holiday-line { margin:0; padding:1.1rem; border-bottom:1px solid var(--line); }
.settings-workspace .settings-holiday-body { display:grid; gap:.8rem; padding:1.1rem; }
.settings-workspace .settings-holiday-body>label { display:grid; gap:.4rem; color:#3f4c45; font-size:.8rem; font-weight:700; }
.settings-workspace .settings-holiday-body textarea { min-height:78px; }
.settings-workspace .table-group-row:hover { background:#edf5f0; }
.assets-workspace>.workspace-panel>.panel-header p,.partners-workspace>.workspace-panel>.panel-header p { display:none; }
.assets-workspace>.workspace-panel>.panel-header>.action-group,.partners-workspace>.workspace-panel>.panel-header>.action-group,.settings-workspace>.workspace-panel>.panel-header>.action-group { flex-wrap:wrap; }
.accounting-workspace .accounting-current-record>.panel-header { border-bottom:1px solid var(--line); }
.accounting-workspace { display:flex; flex-direction:column; }
.accounting-workspace .accounting-history-panel { order:1; }
.accounting-workspace .accounting-current-record { order:2; }
.accounting-workspace>.workspace-tabs,.accounting-workspace>.workspace-notice { order:0; }
.accounting-workspace .accounting-current-record>.form-actions,.accounting-workspace .accounting-current-record>.attachment-box,.accounting-workspace .accounting-current-record>.form-grid,.accounting-workspace .accounting-current-record>a { margin:.9rem 1.1rem; }
.accounting-workspace .journal-entry-table { margin:.9rem 0; }
.accounting-workspace .journal-entry-table input { min-width:120px; }
.accounting-workspace .journal-entry-table .line-number { width:42px; color:var(--muted); text-align:center; font-variant-numeric:tabular-nums; }
.accounting-workspace .add-journal-line { margin-bottom:1rem; }
.manual-journal-backdrop { padding:.65rem; }
.operations-page .manual-journal-dialog { width:calc(100vw - 1.3rem); max-width:none; height:calc(100vh - 1.3rem); max-height:none; }
.operations-page .manual-journal-dialog>.modal-form-body { display:flex; flex:1 1 auto; flex-direction:column; padding:.85rem; overflow:hidden; }
.manual-journal-header-fields { flex:0 0 auto; grid-template-columns:minmax(180px,.35fr) minmax(320px,1fr); margin:0; }
.manual-journal-dialog .journal-entry-table { flex:1 1 auto; min-height:220px; margin:.75rem 0; overflow:auto; }
.manual-journal-dialog .add-journal-line { flex:0 0 auto; width:max-content; margin:0; }
.operations-page .manual-journal-footer { justify-content:space-between; flex-wrap:nowrap; min-height:64px; }
.manual-journal-totals { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; margin-right:auto; }
.manual-journal-totals span { display:inline-flex; align-items:center; gap:.45rem; min-height:36px; padding:.38rem .62rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); font-size:.76rem; white-space:nowrap; }
.manual-journal-totals strong { color:var(--ink); font-variant-numeric:tabular-nums; }
.manual-journal-totals .balanced { border-color:#b9d7c7; background:#eaf5ef; color:#276a4d; }
.manual-journal-totals .unbalanced { border-color:#e5bfc1; background:#fff1f1; color:#a63d40; }
.manual-journal-footer-actions { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; }
.operations-page .report-toolbar label { flex:1 1 155px; }
.operations-page .report-toolbar button { flex:0 0 auto; }
.report-catalog-panel { overflow:hidden; }
.report-catalog-header { align-items:center; gap:1rem; }
.report-search { display:block; width:min(100%,320px); }
.report-search-control { position:relative; display:block; }
.report-search-control i { position:absolute; top:50%; left:.8rem; color:var(--muted); transform:translateY(-50%); pointer-events:none; }
.report-search-control input { width:100%; min-height:40px; padding-left:2.25rem; }
.report-category-nav { display:flex; align-items:center; gap:.35rem; padding:.65rem .8rem; overflow-x:auto; border-bottom:1px solid var(--line); scrollbar-width:thin; }
.report-category-nav button { display:inline-flex; align-items:center; justify-content:center; gap:.42rem; flex:0 0 auto; min-height:36px; padding:.42rem .68rem; border:1px solid transparent; border-radius:8px; background:transparent; color:#526173; font-size:.78rem; font-weight:650; white-space:nowrap; cursor:pointer; }
.report-category-nav button:hover { background:#f1f5fb; color:#294a75; }
.report-category-nav button.active { border-color:#bdd0e7; background:#e8eff9; color:#203b5e; box-shadow:inset 0 -2px #365e91; }
.report-category-nav button:focus-visible { outline:3px solid rgba(54,94,145,.24); outline-offset:2px; }
.report-list-heading { display:flex; align-items:center; gap:.5rem; padding:.8rem .85rem .3rem; }
.report-list-heading h3 { margin:0; color:var(--ink); font-size:.9rem; }
.report-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.report-catalog-grid { padding:.5rem .8rem .85rem; }
.report-card { display:grid; grid-template-columns:38px minmax(0,1fr) 14px; align-items:center; gap:.7rem; min-height:74px; padding:.72rem .8rem; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s; }
.report-card-featured { border-color:#c5d5e8; background:#f8fbff; }
.report-card:hover { border-color:#7896bb; background:#f3f7fc; box-shadow:0 4px 12px rgba(36,69,108,.07); }
.report-card:focus-visible { outline:3px solid rgba(54,94,145,.24); outline-offset:2px; }
.report-card-icon { display:grid; width:38px; height:38px; place-items:center; flex:0 0 38px; border-radius:10px; background:#e8eef7; color:#365e91; font-size:.92rem; }
.report-card-copy { display:grid; min-width:0; gap:.2rem; }
.report-card-copy strong { font-size:.85rem; line-height:1.3; }
.report-card-copy small { display:block; color:var(--muted); font-size:.7rem; line-height:1.35; }
.report-card-arrow { color:#99a9a1; font-size:.68rem; }
.report-filter-dialog { width:min(720px,100%); }
.report-filter-description { margin:0 0 .85rem; color:var(--muted); font-size:.78rem; line-height:1.4; }
.report-filter-grid { align-items:end; }
.report-filter-grid label,.report-filter-grid input,.report-filter-grid .autocomplete-select { min-width:0; }
.report-result-backdrop { padding:.65rem; }
.report-result-dialog { width:calc(100vw - 1.3rem); max-width:none; height:calc(100vh - 1.3rem); max-height:none; }
.report-result-header { gap:1rem; }
.report-result-header>div { min-width:0; }
.report-result-header h2 { overflow-wrap:anywhere; }
.report-result-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; padding:.5rem .85rem; border-bottom:1px solid var(--line); background:#f8fafc; }
.report-result-toolbar>span { color:var(--muted); font-size:.75rem; font-weight:700; }
.report-export-title { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
.report-total-highlight { display:inline-flex; align-items:baseline; gap:.45rem; min-height:34px; padding:.35rem .65rem; border:1px solid #9fb9d6; border-radius:8px; background:#e6f0fb; color:#203b5e; box-shadow:0 2px 7px rgba(32,59,94,.06); font-variant-numeric:tabular-nums; }
.report-total-highlight small { color:#526b87; font-size:.68rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.report-total-highlight strong { color:#173b68; font-size:.9rem; font-weight:900; white-space:nowrap; }
.report-result-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.4rem; }
.report-result-actions .secondary-button { min-height:34px; padding:.4rem .58rem; }
.report-result-body { display:flex; flex:1 1 auto; flex-direction:column; padding:.75rem!important; overflow:hidden!important; }
.report-result-table { flex:1 1 auto; max-height:none; overflow:auto; border-radius:8px; scrollbar-width:thin; }
.report-result-table table { min-width:max-content; width:100%; }
.report-result-table th,.report-result-table td { white-space:nowrap; }
.report-category-table table { min-width:560px; }
.report-category-table td:last-child { width:120px; }
.report-result-table tfoot th,.report-result-table tfoot td { position:sticky; bottom:0; z-index:3; padding:.58rem .62rem; border-top:2px solid #7896bb; background:#e8eef7; color:#203b5e; font-weight:850; font-variant-numeric:tabular-nums; }
.report-result-table tfoot td.numeric { text-align:right; }
.report-category-name { display:grid; gap:.2rem; }
.report-category-name small { color:var(--muted); font-size:.72rem; }
.report-category-detail-table table { min-width:1000px; }
.report-category-detail-actions>span { margin-right:auto; color:var(--muted); font-size:.76rem; font-variant-numeric:tabular-nums; }
.report-page-indicator { margin-right:auto; color:var(--muted); font-size:.76rem; font-variant-numeric:tabular-nums; }
.general-report-table { --general-grid:#cbd4dc; --general-group-height:36px; }
.general-report-table table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-variant-numeric:tabular-nums; }
.general-report-table th,.general-report-table td { border-right:1px solid var(--general-grid); border-bottom:1px solid var(--general-grid); padding:.42rem .6rem; min-width:116px; }
.general-report-table tr > :first-child { border-left:1px solid var(--general-grid); }
.general-report-table thead tr:first-child th { top:0; height:var(--general-group-height); border-top:1px solid var(--general-grid); background:#dfe8f1; color:#203b5e; z-index:4; text-align:center; }
.general-report-table thead tr:nth-child(2) th { top:var(--general-group-height); height:44px; background:#edf2f7; color:#29485c; z-index:4; text-align:right; vertical-align:middle; }
.general-report-table .general-report-date-header { position:sticky; left:0; z-index:6!important; min-width:120px; text-align:left!important; }
.general-report-table tbody th { position:sticky; left:0; z-index:3; min-width:120px; background:#fff; text-align:left; font-weight:650; }
.general-report-table tbody tr:nth-child(even) td,.general-report-table tbody tr:nth-child(even) th { background:#fafcff; }
.general-report-table tbody tr:hover td,.general-report-table tbody tr:hover th { background:#f1f5fb; }
.general-report-table tfoot th { left:0; z-index:5; min-width:120px; text-align:left; }
.general-report-table tfoot td { min-width:116px; border-right:1px solid var(--general-grid); border-bottom:1px solid var(--general-grid); }
.report-financial-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin:0 0 .75rem; }
.report-financial-summary article { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:64px; padding:.75rem .85rem; border:1px solid #c8d5e3; border-radius:10px; background:#f8fbff; }
.report-financial-summary span { color:#637286; font-size:.72rem; font-weight:800; letter-spacing:.025em; text-transform:uppercase; }
.report-financial-summary strong { color:#203b5e; font-size:1rem; font-weight:900; white-space:nowrap; font-variant-numeric:tabular-nums; }
.report-financial-summary article.positive { border-color:#a9d3bd; background:#edf8f2; }
.report-financial-summary article.positive strong { color:#126240; }
.report-financial-summary article.negative { border-color:#e2b8ba; background:#fff1f1; }
.report-financial-summary article.negative strong { color:#a63d40; }
.report-detail-total-strip { display:flex; align-items:stretch; justify-content:flex-end; flex-wrap:wrap; gap:.5rem; margin:0 0 .65rem; }
.report-detail-total-strip>span { display:grid; min-width:160px; gap:.18rem; padding:.5rem .65rem; border:1px solid #c8d5e3; border-radius:8px; background:#f8fbff; text-align:right; font-variant-numeric:tabular-nums; }
.report-detail-total-strip small { color:#68778a; font-size:.66rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.report-detail-total-strip strong { color:#203b5e; font-size:.86rem; font-weight:900; }
.financial-statement-table table { min-width:900px; }
.spreadsheet-grid { --sheet-grid:#cbd4dc; border:1px solid var(--sheet-grid); background:#fff; }
.spreadsheet-grid table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-variant-numeric:tabular-nums; }
.spreadsheet-grid th,.spreadsheet-grid td { min-width:118px; padding:.44rem .62rem; border-right:1px solid var(--sheet-grid); border-bottom:1px solid var(--sheet-grid); background:#fff; }
.spreadsheet-grid tr>:last-child { border-right:0; }
.spreadsheet-grid tbody tr:last-child>* { border-bottom:0; }
.spreadsheet-grid thead th { position:sticky; top:0; z-index:4; height:42px; background:#e8edf4; color:#263c50; font-size:.76rem; font-weight:800; vertical-align:middle; }
.spreadsheet-grid thead th.numeric { text-align:right; }
.spreadsheet-grid thead th:first-child { left:0; z-index:6; }
.spreadsheet-grid tbody td:first-child { position:sticky; left:0; z-index:2; min-width:112px; background:#fff; color:#263c50; font-weight:700; }
.spreadsheet-grid tbody tr:nth-child(even) td,.spreadsheet-grid tbody tr:nth-child(even) td:first-child { background:#fafcff; }
.spreadsheet-grid tbody tr:hover td,.spreadsheet-grid tbody tr:hover td:first-child { background:#f1f5fb; }
.spreadsheet-grid td.numeric { text-align:right; }
.spreadsheet-grid .difference-cell { color:#a63d40; font-weight:800; }
.spreadsheet-entry-grid { --sheet-grid:#cbd4dc; border:1px solid var(--sheet-grid); border-radius:8px; background:#fff; }
.spreadsheet-entry-grid table { border-collapse:separate; border-spacing:0; min-width:940px; font-variant-numeric:tabular-nums; }
.spreadsheet-entry-grid th,.spreadsheet-entry-grid td { padding:.38rem .45rem; border-right:1px solid var(--sheet-grid); border-bottom:1px solid var(--sheet-grid); vertical-align:middle; }
.spreadsheet-entry-grid tr>:last-child { border-right:0; }
.spreadsheet-entry-grid tbody tr:last-child>* { border-bottom:0; }
.spreadsheet-entry-grid thead th { position:sticky; top:0; z-index:3; height:42px; background:#e8edf4; color:#263c50; font-size:.76rem; font-weight:800; }
.spreadsheet-entry-grid tbody tr:nth-child(even) td { background:#fafcff; }
.spreadsheet-entry-grid tbody tr:hover td { background:#f1f5fb; }
.spreadsheet-entry-grid input,.spreadsheet-entry-grid .autocomplete-select { width:100%; min-height:38px; height:38px; background:#fff; }
.spreadsheet-entry-grid td:nth-child(3) input,.spreadsheet-entry-grid td:nth-child(4) input { text-align:right; font-variant-numeric:tabular-nums; }
.spreadsheet-entry-grid .action-cell { width:104px; }
.cash-book-summary { margin:.75rem 0; }
.cash-book-summary article { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.cash-book-summary strong { margin:0; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cash-book-table table { min-width:1040px; }
.cash-book-table td:nth-last-child(-n+3),.cash-book-table th:nth-last-child(-n+3) { font-variant-numeric:tabular-nums; }
@media (max-width:700px) {
    .report-result-toolbar { align-items:stretch; }
    .report-export-title,.report-result-actions { width:100%; }
    .report-result-actions .secondary-button { flex:1 1 auto; }
    .report-financial-summary { grid-template-columns:1fr; }
    .report-financial-summary article { min-height:54px; }
    .report-detail-total-strip>span { flex:1 1 130px; min-width:0; }
}
.accounting-report-launcher .panel-header { min-height:58px; }
.dashboard-modules { padding-top:1rem; }
.customers-workspace>.workspace-panel>.panel-header { margin:0; }
.customer-entry-dialog { width:min(980px,100%); }
.customer-entry-section { min-width:0; margin:0 0 1rem; padding:1rem; border:1px solid var(--line); border-radius:11px; background:#fcfdfc; }
.customer-entry-section legend { padding:0 .45rem; color:var(--ink); font-size:.84rem; font-weight:800; }
.customer-entry-section legend i { margin-right:.4rem; color:var(--green); }
.customer-entry-section .form-grid { margin:0; }
.customer-entry-section .form-grid label { font-size:.82rem; }
.customer-entry-section input,.customer-entry-section .autocomplete-select { min-height:42px; height:42px; padding:.62rem .7rem; font-size:.9rem; }
.customer-entry-section textarea { min-height:76px; }
.customer-entry-dialog .modal-actions { position:sticky; bottom:-1.2rem; margin:1rem -1.2rem -1.2rem; padding:1rem 1.2rem; border-top:1px solid var(--line); background:rgba(255,255,255,.97); }
.member-list-active-loan { display:inline-flex; align-items:center; gap:.35rem; max-width:230px; min-height:30px; padding:.28rem .5rem; border:1px solid #76ad91; border-radius:8px; background:#d7ecdf; color:#104c37; text-decoration:none; white-space:nowrap; }
.member-list-active-loan>span { flex:0 0 auto; width:7px; height:7px; border-radius:50%; background:#0b734e; }
.member-list-active-loan strong { font-size:.7rem; }
.member-list-active-loan small { overflow:hidden; color:#165d44; font-size:.68rem; font-weight:750; text-overflow:ellipsis; }
.member-list-active-loan>i { color:#0b734e; font-size:.68rem; transition:transform .16s ease; }
.member-list-active-loan:hover { border-color:#347e5d; background:#c5e3d2; color:#083c2a; }
.member-list-active-loan:hover>i { transform:translateX(2px); }
.member-list-no-loan { display:inline-flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.72rem; font-weight:700; white-space:nowrap; }
.member-list-no-loan i { color:#9caab5; font-size:.62rem; }
.member-guarantor-block { margin-top:.8rem; padding:.8rem; border:1px solid var(--line); border-radius:10px; background:var(--surface,#fff); }
.member-guarantor-block h3 { margin:0 0 .65rem; font-size:.88rem; color:var(--ink); }
.member-guarantor-block .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.compact-identity { align-items:center; margin-bottom:1rem; }
.customer-detail-workspace { display:flex; flex-direction:column; }
.customer-identity-bar { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; padding:.85rem 1rem; }
.customer-identity-main { display:flex; align-items:center; gap:.75rem; min-width:220px; }
.customer-identity-main h2 { margin:.08rem 0 0; font-size:1.15rem; }
.customer-number { color:var(--muted); font-size:.72rem; font-weight:800; letter-spacing:.06em; }
.customer-identity-statuses { display:flex; align-items:center; flex:1 1 auto; flex-wrap:wrap; gap:.45rem; }
.customer-active-loan { display:inline-flex; align-items:center; gap:.38rem; max-width:100%; border:1px solid #5b9f7d; background:#cfe9db; color:#104c37; text-decoration:none; box-shadow:0 2px 7px rgba(15,92,64,.1); }
.customer-active-loan strong { max-width:220px; overflow:hidden; color:#093e2c; text-overflow:ellipsis; white-space:nowrap; }
.customer-active-loan:hover { border-color:#287453; background:#bfe0cf; color:#093e2c; box-shadow:0 3px 10px rgba(15,92,64,.16); }
.customer-active-loan:focus-visible,.member-active-loan-banner:focus-visible { outline:3px solid rgba(22,117,83,.22); outline-offset:2px; }
.active-loan-pulse { position:relative; flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:#0b734e; box-shadow:0 0 0 0 rgba(11,115,78,.42); animation:active-loan-pulse 2.6s ease-out infinite; }
.customer-detail-workspace .status-pill.danger { background:#f6e8e8; color:#923838; }
.customer-detail-tabs { width:max-content; max-width:100%; }
.customer-detail-tabs button { display:inline-flex; align-items:center; flex:0 0 auto; gap:.45rem; padding:.58rem .78rem; border:0; border-radius:8px; background:transparent; color:#536159; cursor:pointer; font:inherit; font-size:.8rem; font-weight:700; white-space:nowrap; }
.customer-detail-tabs button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.customer-detail-tabs button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.customer-detail-tabs button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.customer-detail-workspace .action-button.primary { border-color:var(--action-border); background:var(--action-soft); color:var(--action-text); }
.customer-contact-flags { display:flex; align-items:center; gap:1.25rem; min-height:42px; }
.customer-contact-flags label { display:inline-flex!important; align-items:center; gap:.5rem; margin:0; font-size:.8rem; font-weight:700; }
.customer-contact-flags input { width:auto; margin:0; }
.customer-profile-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0; padding:.25rem 1.1rem 1rem; }
.customer-profile-summary>div { min-width:0; padding:.85rem .75rem; border-bottom:1px solid #edf1ee; }
.customer-profile-summary>div.wide { grid-column:1/-1; }
.customer-profile-summary dt { margin-bottom:.28rem; }
.customer-profile-summary dd { overflow-wrap:anywhere; font-weight:700; }
.member-overview-stack { display:grid; gap:var(--page-gap); min-width:0; }
.member-overview-stack>.workspace-panel,.member-overview-grid>.workspace-panel { margin-bottom:0; }
.member-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--page-gap); min-width:0; }
.member-profile-combined { min-width:0; overflow:hidden; }
.member-profile-combined-body { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); min-width:0; }
.member-profile-pane { min-width:0; padding:.25rem 1rem 1rem; }
.member-loan-pane { border-left:1px solid var(--line); background:#fbfcfe; }
.member-active-loan-banner { display:grid; grid-template-columns:auto minmax(0,.8fr) minmax(0,1.2fr) auto; align-items:center; gap:.7rem; margin:.35rem 0 .55rem; padding:.72rem .8rem; border:1px solid #74ae91; border-left:5px solid #0b734e; border-radius:10px; background:linear-gradient(100deg,#cfeadc 0%,#edf8f2 100%); color:#123f30; text-decoration:none; box-shadow:0 5px 16px rgba(11,115,78,.13); animation:active-loan-glow 2.6s ease-in-out infinite; }
.member-active-loan-banner:hover { border-color:#3e8a67; border-left-color:#075f3f; background:linear-gradient(100deg,#bfdfce 0%,#e4f4eb 100%); box-shadow:0 7px 20px rgba(11,115,78,.2); }
.member-active-loan-title,.member-active-loan-summary { display:grid; min-width:0; gap:.1rem; }
.member-active-loan-title small { color:#39745d; font-size:.62rem; font-weight:850; letter-spacing:.08em; }
.member-active-loan-title strong { overflow:hidden; color:#0f4d38; font-size:.88rem; text-overflow:ellipsis; white-space:nowrap; }
.member-active-loan-summary { justify-items:end; text-align:right; }
.member-active-loan-summary span { overflow:hidden; color:#477163; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.member-active-loan-summary strong { color:#153e30; font-size:.76rem; font-variant-numeric:tabular-nums; }
.member-active-loan-banner>i { color:#0b734e; transition:transform .16s ease,color .16s ease; }
.member-active-loan-banner:hover>i { color:#075f3f; transform:translateX(3px); }
.member-pane-heading { display:flex; align-items:center; gap:.5rem; min-height:38px; margin:.25rem 0 0; color:var(--ink); font-size:.86rem; font-weight:800; }
.member-pane-heading>i { color:var(--ui-primary,#365e91); }
.member-subsection { min-width:0; margin-top:.8rem; padding-top:.65rem; border-top:1px solid var(--line); }
.member-subsection-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-width:0; }
.member-subsection-header .member-pane-heading { min-width:0; }
.member-vertical-details { display:grid; grid-template-columns:minmax(0,1fr); gap:0; width:100%; margin:0; padding:.1rem 0 0; }
.member-vertical-details>div { display:grid; grid-template-columns:minmax(130px,.42fr) minmax(0,1fr); gap:1rem; align-items:start; min-width:0; padding:.66rem .15rem; border-bottom:1px solid #e7edf3; }
.member-vertical-details>div:last-child { border-bottom:0; }
.member-vertical-details dt { min-width:0; color:var(--muted); font-size:.76rem; font-weight:700; line-height:1.45; }
.member-vertical-details dd { min-width:0; margin:0; overflow-wrap:anywhere; color:var(--ink); font-size:.84rem; font-weight:750; line-height:1.45; }
.member-vertical-details.compact>div { padding:.55rem .15rem; }
.overview-document-list { display:grid; padding:.2rem .9rem .8rem; }
.overview-document-list>button { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.7rem; align-items:center; width:100%; min-height:48px; padding:.55rem .65rem; border:0; border-bottom:1px solid #e7edf3; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.overview-document-list>button:hover { background:var(--ui-row-hover,#f1f5fb); }
.overview-document-list span { display:grid; gap:.08rem; min-width:0; }
.overview-document-list strong,.overview-document-list small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.overview-document-list small { color:var(--muted); font-size:.7rem; }
.member-document-gallery,.member-collateral-gallery { display:flex; gap:.55rem; overflow-x:auto; padding:.2rem .9rem .9rem; scrollbar-width:thin; }
.member-document-gallery button,.member-collateral-gallery button { position:relative; flex:0 0 112px; height:86px; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#eef2f6; cursor:pointer; }
.member-document-gallery img,.member-collateral-gallery img { width:100%; height:100%; object-fit:cover; }
.member-document-gallery span { position:absolute; right:0; bottom:0; left:0; padding:.3rem .4rem; overflow:hidden; background:rgba(16,42,58,.78); color:#fff; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.member-loan-overview .panel-header small { display:block; margin-top:.15rem; color:var(--muted); font-size:.72rem; }
.member-loan-number { display:inline-flex; margin:0; color:var(--ui-primary,#365e91); font-size:.86rem; font-weight:850; text-decoration:none; }
.member-loan-number:hover { text-decoration:underline; }
.member-loan-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; padding:.65rem 1rem; }
.member-loan-metrics article { display:grid; gap:.25rem; min-width:0; padding:.75rem; border:1px solid var(--line); border-radius:10px; background:#f7f9fc; }
.member-loan-metrics span { color:var(--muted); font-size:.7rem; }
.member-loan-metrics strong { overflow-wrap:anywhere; color:var(--ink); font-size:.92rem; }
.member-loan-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:.2rem 1rem .9rem; }
.member-loan-details>div { padding:.65rem .25rem; border-bottom:1px solid #e7edf3; }
.member-loan-details dt { margin-bottom:.22rem; color:var(--muted); font-size:.72rem; font-weight:700; }
.member-loan-details dd { margin:0; color:var(--ink); font-size:.83rem; font-weight:750; }
.member-inline-empty { display:grid; justify-items:start; gap:.3rem; margin-top:.5rem; padding:1rem; border:1px dashed var(--line); border-radius:10px; background:#fff; color:var(--muted); }
.member-inline-empty>i { margin-bottom:.2rem; color:#91a4b5; font-size:1.35rem; }
.member-inline-empty strong { color:var(--ink); font-size:.86rem; }
.member-inline-empty span { font-size:.76rem; }
.loan-information-list .numeric-value { font-variant-numeric:tabular-nums; }
.collateral-subsection { margin-top:1rem; }
.member-collateral-list { display:grid; gap:.7rem; padding:.8rem 1rem 1rem; }
.member-collateral-list>article { min-width:0; padding:.8rem; border:1px solid var(--line); border-radius:10px; background:#fbfcfd; }
.member-collateral-list>article>div:first-child { display:flex; justify-content:space-between; gap:.7rem; align-items:center; }
.member-collateral-list p { margin:.5rem 0; color:var(--muted); font-size:.78rem; }
.member-collateral-list dl { display:grid; grid-template-columns:auto 1fr; gap:.3rem .7rem; margin:0; font-size:.74rem; }
.member-collateral-list dt { color:var(--muted); }
.member-collateral-list dd { margin:0; font-weight:700; }
.member-collateral-list .member-collateral-gallery { padding:.7rem 0 0; }
.member-overview-section { min-width:0; overflow:hidden; }
.member-related-overview { min-width:0; overflow:hidden; }
.member-contact-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; border-bottom:1px solid var(--line); }
.member-related-section { min-width:0; }
.member-contact-summary-grid>.member-related-section+.member-related-section { border-left:1px solid var(--line); }
.member-related-heading { display:flex; align-items:center; justify-content:space-between; min-height:48px; gap:.7rem; padding:.55rem .85rem; border-bottom:1px solid var(--line); background:#f8fafc; }
.member-related-heading h3 { display:flex; align-items:center; min-width:0; gap:.45rem; margin:0; color:var(--ink); font-size:.82rem; font-weight:800; }
.member-related-heading h3>i { color:var(--ui-primary,#365e91); }
.member-compact-list { display:grid; min-width:0; }
.member-compact-row { display:grid; grid-template-columns:minmax(82px,.34fr) minmax(0,1fr) auto; align-items:center; min-width:0; gap:.7rem; padding:.68rem .85rem; border-bottom:1px solid #e8edf2; }
.member-compact-row:last-child { border-bottom:0; }
.member-compact-row:hover { background:var(--ui-row-hover,#f1f5fb); }
.member-compact-row strong { min-width:0; overflow-wrap:anywhere; color:var(--ink); font-size:.8rem; }
.member-row-label { color:var(--muted); font-size:.72rem; font-weight:700; }
.member-row-badges { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.3rem; min-width:0; }
.member-row-badges:empty::after { content:"—"; color:var(--muted); font-size:.72rem; }
.member-related-empty { display:flex; align-items:center; min-height:58px; gap:.55rem; padding:.8rem .85rem; color:var(--muted); font-size:.76rem; }
.member-related-empty>i { color:#91a4b5; }
.member-guarantor-summary { min-width:0; }
.member-guarantor-table-wrap { margin:0; border:0; border-radius:0; box-shadow:none; }
.member-guarantor-overview-table { min-width:900px; table-layout:auto; }
.member-guarantor-overview-table th { background:#eef3f8; }
.member-guarantor-overview-table td { vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.member-guarantor-overview-table td:nth-child(4),.member-guarantor-overview-table td:nth-child(6) { white-space:nowrap; }
.member-guarantor-overview-table .member-address-cell { min-width:180px; }
.member-summary-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.65rem; padding:.8rem; }
.member-summary-grid article { display:grid; align-content:center; min-width:0; min-height:76px; gap:.25rem; padding:.7rem .75rem; border:1px solid var(--line); border-radius:9px; background:#f7f9fc; }
.member-summary-grid span { color:var(--muted); font-size:.72rem; font-weight:700; }
.member-summary-grid strong { overflow-wrap:anywhere; color:var(--ink); font-size:.92rem; font-variant-numeric:tabular-nums; }
.overview-list { display:grid; max-height:270px; overflow:auto; scrollbar-width:thin; }
.overview-list-row { display:flex; align-items:center; min-width:0; gap:.65rem; padding:.68rem .82rem; border-bottom:1px solid #e8edf2; }
.overview-list-row:last-child { border-bottom:0; }
.overview-list-row>div { display:grid; min-width:0; gap:.14rem; }
.overview-list-row strong,.overview-list-row small { overflow-wrap:anywhere; }
.overview-list-row strong { color:var(--ink); font-size:.82rem; }
.overview-list-row small { color:var(--muted); font-size:.7rem; }
.overview-icon { display:inline-flex; flex:0 0 32px; width:32px; height:32px; align-items:center; justify-content:center; border-radius:8px; background:var(--action-soft); color:var(--action-text); }
.overview-icon.success { background:#e3f2e9; color:var(--green-2); }
.overview-icon.danger { background:#f6e8e8; color:#923838; }
.overview-empty { padding:1rem .85rem; color:var(--muted); font-size:.78rem; }
.overview-kyc-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.7rem; }
.overview-document-flags { display:flex; flex-wrap:wrap; gap:.45rem; padding-right:.82rem; }
.overview-document-flags span { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .5rem; border-radius:7px; background:#edf2f6; color:var(--muted); font-size:.7rem; font-weight:700; }
.overview-document-flags .complete { background:#e3f2e9; color:var(--green-2); }
.overview-document-flags .missing { background:#fff3dd; color:#8c5c00; }
.overview-chip-list { display:flex; flex-wrap:wrap; gap:.4rem; padding:.15rem .82rem .8rem; }
.overview-chip { display:inline-flex; min-height:32px; align-items:center; gap:.4rem; padding:.35rem .55rem; border:1px solid var(--action-border); border-radius:7px; background:#fff; color:var(--action-text); font:inherit; font-size:.7rem; font-weight:700; cursor:pointer; }
.overview-chip:hover { background:var(--action-soft-hover); }
.overview-chip:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.overview-table td,.overview-table th { white-space:nowrap; }
.guarantor-checkbox-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.72rem; }
.guarantor-workspace .form-grid .guarantor-checkbox-row>.checkbox-field { display:flex; align-items:center; gap:.55rem; min-height:var(--control-height); margin:0; padding:.55rem .7rem; border:1px solid var(--line); border-radius:var(--control-radius); background:#f8fafc; line-height:1.25; cursor:pointer; }
.guarantor-workspace .guarantor-checkbox-row>.checkbox-field input { flex:0 0 16px; width:16px; height:16px; margin:0; }
.guarantor-workspace .guarantor-checkbox-row>.checkbox-field span { min-width:0; }
.customer-related-grid { align-items:start; }
.kyc-checklist { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; padding:1rem 1.1rem; }
.kyc-checklist>div { display:flex; align-items:center; gap:.7rem; padding:.8rem; border:1px solid var(--line); border-radius:10px; background:#fafbfd; }
.kyc-checklist>div>i { font-size:1.1rem; }
.kyc-checklist .complete>i { color:var(--green); }
.kyc-checklist .missing { border-color:#ead7ad; background:#fffaf0; }
.kyc-checklist .missing>i { color:#a36b00; }
.kyc-checklist span { display:grid; gap:.15rem; }
.kyc-checklist small { color:var(--muted); }
.kyc-transition { display:flex; align-items:center; justify-content:center; gap:.8rem; margin-bottom:1rem; padding:.8rem; border-radius:10px; background:#edf1f6; }
.kyc-image-footer { display:grid; gap:.7rem; padding:.85rem 1rem 1rem; border-top:1px solid var(--line); background:#fafbfd; }
.kyc-image-footer-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; color:var(--muted); }
.kyc-image-footer-heading>span { display:inline-flex; align-items:center; gap:.45rem; color:var(--ink); font-size:.82rem; font-weight:800; }
.kyc-image-footer-heading small { font-size:.72rem; }
.kyc-image-gallery { display:flex; gap:.7rem; overflow-x:auto; padding-bottom:.2rem; scrollbar-width:thin; }
.kyc-image-card { display:grid; flex:0 0 150px; min-width:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.kyc-image-card:hover { border-color:#9fc8b5; box-shadow:0 4px 12px rgba(23,107,77,.12); }
.kyc-image-card:focus-visible { outline:3px solid #dcefe5; outline-offset:2px; }
.kyc-image-card img { width:100%; height:105px; object-fit:cover; background:#eef3f0; }
.kyc-image-card span { display:grid; min-width:0; gap:.12rem; padding:.55rem .6rem; }
.kyc-image-card strong,.kyc-image-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kyc-image-card strong { font-size:.75rem; }
.kyc-image-card small { color:var(--muted); font-size:.68rem; }
.selected-file { display:flex; align-items:center; gap:.65rem; padding:.75rem; border:1px solid var(--line); border-radius:9px; background:#edf1f6; }
.selected-file>i { color:var(--green); }
.selected-file span { display:grid; }
.selected-file small { color:var(--muted); }
.detail-list { margin:0 0 1rem; }
.detail-list dd { min-width:0; overflow-wrap:anywhere; }
.history-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin-top:.7rem; }
.history-values>div { display:grid; gap:.18rem; padding:.7rem; border:1px solid var(--line); border-radius:8px; background:#fafbfd; }
.history-values span { color:var(--muted); font-size:.72rem; font-weight:700; }
.history-values strong { overflow-wrap:anywhere; font-size:.86rem; }
@media (max-width:1100px) {
    .member-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .member-overview-grid,.member-profile-combined-body { grid-template-columns:1fr; }
    .member-loan-pane { border-top:1px solid var(--line); border-left:0; }
    .member-contact-summary-grid { grid-template-columns:1fr; }
    .member-contact-summary-grid>.member-related-section+.member-related-section { border-top:1px solid var(--line); border-left:0; }
}
@media (max-width:640px) {
    .member-profile-pane { padding:.2rem .75rem .85rem; }
    .member-vertical-details>div { grid-template-columns:minmax(105px,.42fr) minmax(0,1fr); gap:.65rem; }
    .member-subsection-header { align-items:flex-start; flex-wrap:wrap; }
    .member-related-heading { align-items:flex-start; flex-wrap:wrap; }
    .member-compact-row { grid-template-columns:minmax(76px,.35fr) minmax(0,1fr); }
    .member-row-badges { grid-column:2; justify-content:flex-start; }
    .member-active-loan-banner { grid-template-columns:auto minmax(0,1fr) auto; }
    .member-active-loan-summary { grid-column:2; justify-items:start; text-align:left; }
}
@keyframes active-loan-pulse {
    0% { box-shadow:0 0 0 0 rgba(11,115,78,.44); }
    65%,100% { box-shadow:0 0 0 7px rgba(11,115,78,0); }
}
@keyframes active-loan-glow {
    0%,100% { box-shadow:0 5px 16px rgba(11,115,78,.12),0 0 0 0 rgba(11,115,78,0); }
    50% { box-shadow:0 7px 20px rgba(11,115,78,.2),0 0 0 4px rgba(11,115,78,.1); }
}
@media (prefers-reduced-motion:reduce) {
    .active-loan-pulse,.member-active-loan-banner { animation:none; }
    .member-active-loan-banner>i { transition:none; }
}
.savings-workspace { display:flex; flex-direction:column; }
.saving-open-account-trigger { align-self:flex-start; width:max-content; max-width:100%; margin-bottom:.7rem; }
.savings-top-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-width:0; margin-bottom:var(--page-gap); }
.savings-top-row .savings-tabs { flex:0 1 auto; min-width:0; margin:0; }
.savings-top-row>.saving-open-account-trigger { flex:0 0 auto; margin:0; white-space:nowrap; }
@media (max-width:700px) { .savings-top-row { flex-wrap:wrap; } .savings-top-row .savings-tabs { flex-basis:100%; } .savings-top-row>.saving-open-account-trigger { margin-left:auto; } }
.savings-tabs { display:flex; width:max-content; max-width:100%; gap:.35rem; margin-bottom:1rem; padding:.28rem; overflow-x:auto; border:1px solid var(--line); border-radius:11px; background:#fff; box-shadow:0 6px 22px rgba(20,45,34,.035); scrollbar-width:thin; }
.savings-tabs button { display:inline-flex; align-items:center; gap:.45rem; flex:0 0 auto; padding:.58rem .78rem; border:0; border-radius:8px; background:transparent; color:#536159; cursor:pointer; font:inherit; font-size:.8rem; font-weight:750; white-space:nowrap; }
.savings-tabs button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.savings-tabs button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.savings-tabs button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.savings-search { display:flex; align-items:flex-end; }
.savings-search .search-field { flex:1 1 320px; }
.savings-search .savings-inactive-filter { display:flex; align-items:center; flex:0 0 auto; min-height:38px; }
.savings-search .savings-inactive-filter .checkbox-field { white-space:nowrap; }
.savings-workspace tr.selected-row { background:#edf8f2; }
.saving-account-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:center; gap:1px; margin:1rem 0; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--line); }
.saving-account-strip>span { display:grid; gap:.25rem; min-width:0; align-self:stretch; padding:.72rem .85rem; background:#fff; }
.saving-account-strip small { color:var(--muted); font-size:.68rem; }
.saving-account-strip strong { overflow:hidden; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.saving-account-strip>button { margin:.55rem; }
.account-total-strip { display:flex; align-items:stretch; flex-wrap:wrap; gap:0; margin:.85rem .85rem .9rem; padding:.78rem .85rem; background:linear-gradient(135deg,#f7faff 0%,#edf3fa 100%); border:1px solid #c7d5e5; border-left:4px solid var(--action); border-radius:10px; box-shadow:0 5px 16px rgba(32,59,94,.055); color:var(--text); }
.account-total-strip span { display:flex; align-items:baseline; gap:.55rem; min-height:34px; padding:.18rem 1.1rem; border-right:1px solid #c7d5e5; }
.account-total-strip span:first-child { padding-left:0; }
.account-total-strip span:last-child { border-right:0; }
.account-total-strip small { color:#617084; font-size:.7rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.account-total-strip strong { color:#203b5e; font-size:1.12rem; font-weight:900; line-height:1.25; white-space:nowrap; }
.account-total-strip span:nth-child(2) strong { color:#176447; }
.account-total-strip span:nth-child(3) strong { color:#8a5b00; }
@media (max-width:700px) {
    .account-total-strip { display:grid; grid-template-columns:1fr; padding:.55rem .8rem; }
    .account-total-strip span,.account-total-strip span:first-child { justify-content:space-between; width:100%; padding:.55rem 0; border-right:0; border-bottom:1px solid #cfdae7; }
    .account-total-strip span:last-child { border-bottom:0; }
    .account-total-strip strong { font-size:1.02rem; }
}
.savings-history-panel { margin-top:1rem; }
.savings-transaction-filter .transaction-account-filter { flex:1 1 300px; }
.savings-transaction-filter .autocomplete-select { min-height:38px; }
.savings-transaction-panel .panel-header { background:#fff; }
.amount-in { color:var(--green); font-weight:750; }
.amount-out { color:#9a4a38; font-weight:750; }
.savings-dialog { width:min(580px,100%); }
.saving-transactions-dialog { width:min(920px,100%); }
.saving-transactions-dialog .table-wrap { margin-top:.8rem; scrollbar-width:thin; }
.dialog-period-label { display:flex; align-items:center; gap:.4rem; margin-top:.8rem; color:var(--muted); font-size:.76rem; font-weight:700; }
.savings-dialog .modal-actions { padding:1rem 1.2rem; border-top:1px solid var(--line); }
.savings-dialog textarea { min-height:100px; }
.modal-account-summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.72rem .8rem; border:1px solid #cfe1d7; border-radius:9px; background:#f4faf6; color:#456154; font-size:.8rem; }
.modal-account-summary strong { color:var(--green-2); font-size:.88rem; white-space:nowrap; }
.saving-selected-account { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; min-width:0; }
.saving-type-badge { display:inline-flex; align-items:center; min-height:24px; padding:.2rem .5rem; border:1px solid #9db8d5; border-radius:999px; background:#e8f0fa; color:#294f7d; font-size:.7rem; font-weight:800; letter-spacing:.015em; white-space:nowrap; }
.saving-type-badge.saving-type-voluntary { border-color:#9bcdb7; background:#e7f6ef; color:#176447; }
.saving-type-badge.saving-type-compulsory { border-color:#d3bb7c; background:#fff6db; color:#795a08; }
.confirmation-summary { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr); gap:0; margin-bottom:1rem; }
.confirmation-summary span,.confirmation-summary strong { padding:.62rem 0; border-bottom:1px solid var(--line); }
.confirmation-summary span { color:var(--muted); font-size:.78rem; }
.confirmation-summary strong { overflow-wrap:anywhere; font-size:.84rem; }
.print-toolbar { display:flex; justify-content:flex-end; gap:.6rem; margin-bottom:1rem; }
.borrower-print-setup-dialog { width:min(620px,100%); }
.borrower-print-setup-dialog textarea { min-height:180px; resize:vertical; }
.borrower-print-setup-dialog label small { color:var(--muted); font-size:.72rem; font-weight:500; }
.linked-coa-toggle { padding:.72rem .8rem; border:1px solid #cfe1d7; border-radius:9px; background:#f4faf6; }
.linked-coa-toggle .checkbox-field { color:var(--green-2); font-weight:750; }
.linked-coa-preview { padding:.85rem; border:1px solid #cfe1d7; border-radius:10px; background:#f8fcfa; }
.linked-coa-preview-title { display:flex; align-items:center; gap:.45rem; margin-bottom:.7rem; color:var(--green-2); font-size:.8rem; font-weight:800; }
.coa-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; }
.coa-preview-grid label { min-width:0; }
.coa-preview-grid input[readonly],.form-grid input[readonly] { color:#45584e; background:#f1f5f2; cursor:default; }
@media (max-width:700px) {
    .operations-page .workspace-heading { gap:.9rem; }
    .operations-page .workspace-heading .row-actions,.operations-page .workspace-heading button { width:100%; }
    .operations-page .workspace-heading .row-actions { justify-content:stretch; }
    .operations-page .workspace-tabs { border-radius:10px; }
    .operations-page .workspace-panel>.panel-header { align-items:flex-start; }
    .operations-page .table-toolbar { align-items:stretch; }
    .operations-page .table-toolbar label,.operations-page .table-toolbar button { flex:1 1 100%; width:100%; }
    .operations-page .action-cell { position:sticky; right:0; background:inherit; box-shadow:-8px 0 12px rgba(255,255,255,.82); }
    .operations-page .action-group { justify-content:flex-start; }
    .operations-page .modal-actions { flex-direction:column-reverse; }
    .operations-page .modal-actions button { width:100%; }
    .customer-identity-bar { align-items:flex-start; flex-wrap:wrap; }
    .customer-identity-main,.customer-identity-statuses,.customer-identity-bar>.primary-button { width:100%; }
    .customer-identity-bar>.primary-button { justify-content:center; }
    .customer-profile-summary,.kyc-checklist,.history-values { grid-template-columns:1fr; }
    .customer-profile-summary>div.wide { grid-column:auto; }
    .member-overview-grid,.member-overview-primary-grid,.member-summary-grid,.member-loan-metrics,.member-loan-details { grid-template-columns:1fr; }
    .member-vertical-details>div { grid-template-columns:1fr; gap:.18rem; }
    .overview-kyc-summary { grid-template-columns:1fr; }
    .overview-document-flags { padding:0 .82rem .7rem; }
    .guarantor-checkbox-row { grid-template-columns:1fr; }
    .customer-entry-section { padding:.8rem; }
    .member-guarantor-block .form-grid { grid-template-columns:1fr; }
    .customer-contact-flags { flex-wrap:wrap; }
    .saving-account-strip { grid-template-columns:1fr; }
    .saving-account-strip>button { width:calc(100% - 1.1rem); }
    .coa-preview-grid { grid-template-columns:1fr; }
}

/* Project-wide balanced compact, list-first workspace */
.operations-page { display:flex; flex-direction:column; gap:0; min-width:0; }
.operations-page>.workspace-tabs,.operations-page>.savings-tabs,.operations-page>.loan-detail-tabs,.customer-detail-workspace>.customer-detail-tabs { width:max-content; max-width:100%; margin:0 0 var(--page-gap); }
.operations-page .workspace-tabs,.operations-page .savings-tabs,.operations-page .loan-detail-tabs,.customer-detail-tabs { padding:.22rem; border-radius:9px; box-shadow:none; }
.operations-page .workspace-tabs a,.operations-page .savings-tabs button,.operations-page .loan-detail-tabs button,.customer-detail-tabs button { min-height:36px; padding:.43rem .65rem; font-size:.78rem; }
.operations-page .workspace-panel { margin-bottom:var(--page-gap); border-radius:10px; box-shadow:0 4px 14px rgba(20,45,34,.025); }
.operations-page .workspace-panel>.panel-header { min-height:52px; padding:.68rem .82rem; gap:.6rem; }
.operations-page .workspace-panel>.panel-header h2 { margin:0; font-size:1rem; line-height:1.25; }
.operations-page .workspace-panel>.panel-header p { display:none; }
.operations-page .panel-count { min-width:1.45rem; height:1.45rem; padding:0 .4rem; }
.operations-page .table-toolbar { gap:.5rem; padding:.62rem .82rem; }
.operations-page .table-toolbar label,.operations-page .filter-bar label,.operations-page .form-grid label,.operations-page .stack-form label { gap:.28rem; font-size:.76rem; line-height:1.25; }
.operations-page .table-toolbar input,.operations-page .table-toolbar select,.operations-page .table-toolbar .autocomplete-select { height:var(--control-height); min-height:var(--control-height); padding:.5rem .62rem; }
.operations-page .workspace-panel>.filter-bar { align-items:flex-end; gap:.5rem; margin:0; padding:.62rem .82rem; border-bottom:1px solid var(--line); background:#fafbfd; }
.operations-page .workspace-panel>.filter-bar>input { height:var(--control-height); min-height:var(--control-height); }
.operations-page .workspace-panel .table-wrap,.operations-page>.panel .table-wrap { scrollbar-width:thin; scrollbar-color:#a9b9b0 transparent; }
.operations-page .workspace-panel .table-wrap::-webkit-scrollbar,.operations-page>.panel .table-wrap::-webkit-scrollbar { width:5px; height:5px; }
.operations-page .workspace-panel .table-wrap::-webkit-scrollbar-thumb,.operations-page>.panel .table-wrap::-webkit-scrollbar-thumb { border-radius:999px; background:#a9b9b0; }
.operations-page table th { position:sticky; top:0; z-index:2; padding:.52rem .65rem; background:var(--table-header); }
.operations-page table td { height:42px; padding:.5rem .65rem; }
.operations-page tbody tr:hover { background:var(--row-hover); }
.operations-page td.numeric,.operations-page th.numeric,.operations-page td.numeric-cell,.operations-page th.numeric-cell { text-align:right; font-variant-numeric:tabular-nums; }
.operations-page .action-button { min-height:32px; padding:.3rem .48rem; }
.operations-page .action-group,.operations-page .row-actions { flex-wrap:wrap; gap:.3rem; }
.operations-page .workspace-notice,.operations-page>.alert { margin:0 0 var(--page-gap); padding:.65rem .78rem; }
.operations-page .form-grid { gap:.72rem; margin-bottom:.8rem; }
.operations-page .checkbox-field { min-height:var(--control-height); }
.operations-page textarea { min-height:76px; }
.operations-page .modal-dialog { border-radius:11px; }
.operations-page .modal-dialog>.panel-header { min-height:54px; margin:0; padding:.72rem .9rem; align-items:center; }
.operations-page .modal-dialog>.panel-header h2 { margin:0; font-size:1.02rem; }
.operations-page .modal-dialog>.panel-header p { margin:.15rem 0 0; font-size:.74rem; line-height:1.35; }
.operations-page .modal-form-body { padding:.9rem; }
.operations-page .modal-actions,.operations-page .modal-form-body>.modal-actions { justify-content:flex-end; gap:.55rem; margin:0; padding:.72rem .9rem; border-top:1px solid var(--line); background:#fafbfd; }
.operations-page .modal-form-body>.modal-actions { margin:.85rem -.9rem -.9rem; }
.operations-page .modal-actions button { min-width:100px; }
.accounting-record-dialog { width:min(760px,100%); }
.operations-page .modal-form-body>.primary-button,.operations-page .modal-form-body>.danger-button { margin-top:.1rem; }
.customers-workspace .customer-entry-section { margin-bottom:.7rem; padding:.75rem; }
.customers-workspace .customer-entry-section input,.customers-workspace .customer-entry-section .autocomplete-select,.loan-entry-page .loan-step-panel input:not([type="checkbox"]):not([type="radio"]),.loan-entry-page .loan-step-panel .autocomplete-select { height:var(--control-height); min-height:var(--control-height); font-size:.84rem; }
.customer-identity-bar,.loan-detail-bar,.saving-account-strip { margin-bottom:var(--page-gap); }
.loan-entry-page { width:min(1240px,100%); }
.loan-entry-header { margin-bottom:var(--page-gap); }
.loan-stepper { gap:.4rem; margin-bottom:var(--page-gap); }
.loan-stepper button { padding:.58rem .65rem; border-radius:9px; }
.loan-step-panel { max-width:1040px; padding:1rem; }
.loan-step-heading { margin-bottom:.85rem; padding-bottom:.7rem; }
.loan-fieldset { margin-bottom:.75rem; padding:.8rem; }
.metric-grid { gap:.7rem; margin-bottom:.8rem; }
.metric-card,.summary-grid article { padding:.85rem; border-radius:10px; box-shadow:0 4px 14px rgba(20,45,34,.025); }
.module-grid { gap:.55rem; }
.module-card { min-height:78px; padding:.75rem; border-radius:9px; }
.loan-security-stack { display:grid; gap:var(--page-gap); }
.loan-security-stack>.workspace-panel { margin:0; }
.loan-security-stack .panel-header h2 { display:flex; align-items:center; gap:.45rem; }
.loan-security-stack .panel-header h2>i { color:var(--green); font-size:.88rem; }
.loan-security-stack .table-empty { padding:1.25rem .85rem; }
.loan-security-stack .table-empty i { margin-right:.45rem; color:#91a198; }
.loan-security-stack td strong { font-size:.82rem; }
.loan-security-stack .action-cell { width:1%; }
.loan-document-dialog { width:min(540px,100%); }
.loan-document-dialog input[type="file"],.collateral-documents-dialog input[type="file"] { min-height:40px; padding:.45rem; }
.upload-hint { display:flex; align-items:flex-start; gap:.5rem; padding:.65rem .72rem; border:1px solid #d7e5dc; border-radius:8px; background:#f6faf7; color:var(--muted); font-size:.76rem; line-height:1.4; }
.upload-hint i { margin-top:.1rem; color:var(--green); }
.collateral-documents-dialog .loan-document-upload { margin-bottom:.75rem; padding:.7rem; border:1px solid var(--line); border-radius:9px; background:#f8faf9; }
.selected-upload-file { display:flex; align-items:center; gap:.4rem; margin-top:.25rem; color:var(--green); font-size:.74rem; font-weight:700; }
.collateral-detail-list { display:grid; grid-template-columns:minmax(125px,.65fr) minmax(0,1.35fr); margin:0 0 .85rem; border:1px solid var(--line); border-radius:9px; background:#fff; }
.collateral-detail-list dt,.collateral-detail-list dd { margin:0; padding:.55rem .7rem; border-bottom:1px solid var(--line); }
.collateral-detail-list dt { color:var(--muted); background:#f8faf9; font-size:.75rem; font-weight:700; }
.collateral-detail-list dd { overflow-wrap:anywhere; font-size:.82rem; font-weight:650; }
.collateral-detail-list dt:nth-last-of-type(1),.collateral-detail-list dd:last-child { border-bottom:0; }
.collateral-documents-heading { display:flex; align-items:center; gap:.45rem; margin:.2rem 0 .55rem; font-size:.86rem; }
.collateral-image-footer { display:grid; gap:.75rem; padding:.85rem 1rem 1rem; border-top:1px solid var(--line); background:#fafbfd; }
.collateral-image-footer-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; color:var(--muted); }
.collateral-image-footer-heading>span { display:inline-flex; align-items:center; gap:.45rem; color:var(--ink); font-size:.82rem; font-weight:800; }
.collateral-image-footer-heading small { font-size:.72rem; }
.collateral-image-group { display:grid; gap:.45rem; min-width:0; }
.collateral-image-group>strong { overflow:hidden; color:#405047; font-size:.74rem; text-overflow:ellipsis; white-space:nowrap; }
.collateral-image-gallery { display:flex; gap:.7rem; overflow-x:auto; padding-bottom:.2rem; scrollbar-width:thin; }
.collateral-image-card { display:grid; flex:0 0 150px; min-width:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.collateral-image-card:hover { border-color:#9fc8b5; box-shadow:0 4px 12px rgba(23,107,77,.12); }
.collateral-image-card:focus-visible { outline:3px solid #dcefe5; outline-offset:2px; }
.collateral-image-card img { width:100%; height:105px; object-fit:cover; background:#eef3f0; }
.collateral-image-card span { display:grid; min-width:0; gap:.12rem; padding:.55rem .6rem; }
.collateral-image-card strong,.collateral-image-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.collateral-image-card strong { font-size:.75rem; }
.collateral-image-card small { color:var(--muted); font-size:.68rem; }
.payment-account-coa-field,.payment-account-external-field { align-self:end; }
.payment-account-external-field::before { content:""; display:block; height:var(--control-height); }
.account-control-row-field { align-self:start; }
.category-coa-field,.category-approval-field { align-self:end; }
.category-approval-field::before { content:""; display:block; height:var(--control-height); }
.policy-tier-first-row-field { align-self:start; align-content:start; grid-auto-rows:max-content; }
.policy-tier-first-row-field>.autocomplete-select,.policy-tier-first-row-field>input { height:var(--control-height); min-height:var(--control-height); }
.product-policy-bulk-dialog { width:min(900px,100%); }
.product-policy-fieldset { margin-top:.25rem; padding:.75rem; border:1px solid #dce7e0; border-radius:10px; background:#f8fbf9; }
.product-policy-fieldset legend { padding:0 .35rem; color:#294336; font-size:.82rem; font-weight:800; }
.product-policy-intro { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.65rem; color:#68766f; font-size:.73rem; }
.product-policy-intro a { color:var(--green); font-weight:800; text-decoration:none; }
.product-policy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.product-policy-grid>label { display:grid; align-content:start; gap:.28rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.product-policy-grid .autocomplete-select { width:100%; }
.product-policy-picker { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.65rem; }
.product-policy-picker>label { display:grid; gap:.28rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.product-policy-picker .autocomplete-select { width:100%; }
.policy-selection-count { display:flex; align-items:center; min-height:var(--control-height); padding:0 .7rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); font-size:.73rem; white-space:nowrap; }
.policy-selection-count strong { margin-right:.25rem; color:var(--green); }
.product-policy-empty { margin-top:.65rem; padding:.8rem; border:1px dashed #cfdcd4; border-radius:8px; color:var(--muted); font-size:.76rem; text-align:center; }
.product-policy-selection-list { display:grid; gap:.45rem; margin-top:.65rem; }
.product-policy-selection-row { display:grid; grid-template-columns:minmax(0,1fr) auto 34px; align-items:center; gap:.65rem; padding:.55rem .65rem; border:1px solid var(--line); border-radius:8px; background:#fff; }
.product-policy-selection-row>div { display:grid; min-width:0; gap:.12rem; }
.product-policy-selection-row>div strong,.product-policy-selection-row>div small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-policy-selection-row>div strong { font-size:.78rem; }
.product-policy-selection-row>div small { color:var(--muted); font-size:.69rem; }
.product-policy-selection-row .checkbox-field { min-height:34px; font-size:.73rem; }
.product-policy-details { margin-top:1rem; }
.product-policy-details h3 { margin:0 0 .45rem; font-size:.85rem; color:#2e4639; }
.bulk-policy-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:.7rem; margin:.2rem 0 .65rem; }
.bulk-policy-toolbar label { display:grid; flex:1 1 320px; gap:.28rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.bulk-policy-toolbar>span { flex:0 0 auto; padding:.55rem .7rem; border-radius:8px; background:var(--green-soft); color:var(--green); font-size:.76rem; }
.bulk-policy-table { max-height:390px; scrollbar-width:thin; }
.bulk-policy-table .selection-column { width:82px; text-align:center; }
.bulk-policy-table input[type="checkbox"] { margin:auto; }
.bulk-policy-table tr.selected-row { background:#f0f8f3; }
.bulk-policy-reason { display:grid; gap:.28rem; margin-top:.75rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.policy-editor-dialog { width:min(1040px,100%); }
.policy-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:.75rem; padding-bottom:.45rem; margin-bottom:.65rem; border-bottom:1px solid var(--line); color:#263c31; font-size:.86rem; font-weight:800; }
.policy-section-title small { color:#78867f; font-size:.7rem; font-weight:600; }
.policy-header-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.policy-header-grid label,.policy-reason-field { display:grid; gap:.28rem; align-content:start; }
.policy-header-grid>label { grid-template-rows:18px var(--control-height); }
.policy-header-grid>label>input,.policy-header-grid>label>.autocomplete-select { width:100%; height:var(--control-height); min-height:var(--control-height); }
.policy-field-caption { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-height:18px; line-height:18px; }
.policy-active-field .checkbox-field { min-height:var(--control-height); padding:0 .7rem; border:1px solid var(--line); border-radius:var(--control-radius); background:#f8fbf9; }
.optional-label { color:#89958f; font-size:.68rem; font-weight:600; }
.policy-funding-row { display:flex; align-items:center; gap:1rem; min-height:var(--control-height); margin:.75rem 0; padding:.55rem .75rem; border:1px solid var(--line); border-radius:9px; background:#f8fbf9; font-size:.76rem; }
.policy-funding-row>span { margin-right:auto; font-weight:800; color:#3f4c45; }
.policy-funding-row label { display:flex; align-items:center; gap:.38rem; font-weight:700; }
.tier-heading { margin-top:1rem; }
.policy-tier-list { display:grid; gap:.55rem; }
.policy-tier-row { display:grid; grid-template-columns:34px minmax(125px,1fr) minmax(125px,1fr) minmax(180px,1.15fr) minmax(125px,1fr) 36px; gap:.55rem; align-items:end; padding:.65rem; border:1px solid #dce7e0; border-radius:10px; background:#fafbfd; }
.policy-tier-row>label,.tier-method-field { display:grid; gap:.28rem; color:#3f4c45; font-size:.74rem; font-weight:700; }
.policy-tier-number { display:grid; place-items:center; width:30px; height:var(--control-height); border-radius:8px; background:var(--green-soft); color:var(--green); font-weight:900; }
.tier-method-options { display:flex; align-items:center; gap:.3rem; min-height:var(--control-height); padding:.25rem; border:1px solid var(--line); border-radius:var(--control-radius); background:#fff; }
.tier-method-options label { display:flex; flex:1; align-items:center; justify-content:center; gap:.3rem; height:30px; padding:0 .45rem; border-radius:6px; cursor:pointer; }
.tier-method-options label:has(input:checked) { background:var(--green-soft); color:var(--green); }
.rule-calculation-method { display:flex; flex-direction:column; gap:.28rem; min-width:0; color:var(--text); font-size:.76rem; font-weight:700; }
.tier-remove-button { margin-bottom:2px; color:#ae3838; }
.policy-add-tier { margin-top:.65rem; }
.policy-reason-field { margin-top:1rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.policy-detail-tiers { margin-top:1rem; }
.policy-detail-tiers h3 { margin:0 0 .45rem; font-size:.85rem; color:#2e4639; }
.status-pill+.status-pill { margin-left:.3rem; }
.business-rule-dialog { width:min(760px,100%); }
.confirmation-dialog { width:min(570px,100%); }
.dialog-section-title { margin:.15rem 0 .65rem; padding-bottom:.4rem; border-bottom:1px solid var(--line); color:#2e4639; font-size:.82rem; font-weight:850; }
.dialog-section-title:not(:first-of-type) { margin-top:1rem; }
.aligned-form-grid>label { grid-template-rows:18px var(--control-height); align-content:start; }
.aligned-form-grid>label.full-span { grid-template-rows:18px auto; }
.aligned-form-grid>label>input,.aligned-form-grid>label>.autocomplete-select { width:100%; height:var(--control-height); min-height:var(--control-height); }
.penalty-installment-field { display:grid; grid-template-rows:18px var(--control-height); align-content:start; gap:.28rem; min-width:0; color:#3f4c45; font-size:.76rem; font-weight:700; }
.penalty-installment-field>label { display:block; margin:0; }
.penalty-installment-picker { position:relative; min-width:0; }
.penalty-installment-picker>input { width:100%; height:var(--control-height); min-height:var(--control-height); padding-right:2.6rem; }
.penalty-installment-picker>input::-webkit-search-cancel-button { display:none; }
.penalty-installment-toggle { position:absolute; top:4px; right:4px; display:grid; width:32px; height:32px; place-items:center; border:0; border-radius:6px; background:var(--action-soft); color:var(--action-text); cursor:pointer; }
.penalty-installment-toggle:hover { background:var(--action-soft-hover); }
.penalty-installment-toggle:disabled { opacity:.5; cursor:not-allowed; }
.penalty-installment-options { position:absolute; top:calc(100% + 4px); right:0; left:0; z-index:10; max-height:245px; overflow-y:auto; padding:4px; border:1px solid var(--action-border); border-radius:9px; background:#fff; box-shadow:0 10px 24px rgba(16,42,58,.16); scrollbar-width:thin; }
.penalty-installment-options>button { display:grid; width:100%; gap:.15rem; padding:.55rem .65rem; border:0; border-radius:6px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.penalty-installment-options>button:hover,.penalty-installment-options>button:focus-visible { background:var(--action-soft-hover); outline:none; }
.penalty-installment-options>button span,.penalty-installment-empty { color:var(--muted); font-size:.72rem; }
.penalty-installment-empty { padding:.65rem; }
.rule-help { display:flex; align-items:flex-start; gap:.55rem; margin:.15rem 0 .9rem; padding:.65rem .75rem; border:1px solid #cfe2d8; border-radius:8px; background:#f1f8f4; color:#496057; font-size:.76rem; line-height:1.45; }
.rule-help i { margin-top:.12rem; color:var(--green); }
.automatic-rule-value { display:grid; grid-template-rows:18px var(--control-height); gap:.28rem; color:#3f4c45; font-size:.76rem; font-weight:700; }
.automatic-rule-value strong { display:flex; align-items:center; padding:0 .7rem; border:1px solid var(--line); border-radius:var(--control-radius); background:#f4f7f5; color:var(--muted); }
.control-tabs { display:flex; width:max-content; max-width:100%; gap:.3rem; margin:0 0 var(--page-gap); padding:.22rem; overflow-x:auto; border:1px solid var(--line); border-radius:9px; background:#fff; scrollbar-width:thin; }
.control-tabs button { display:inline-flex; align-items:center; gap:.42rem; min-height:36px; padding:.43rem .68rem; border:0; border-radius:7px; background:transparent; color:#536159; cursor:pointer; font-size:.78rem; font-weight:750; white-space:nowrap; }
.control-tabs button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.control-tabs button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.control-tabs button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.reconciliation-toolbar>button { min-width:100px; }
.difference-balanced { color:var(--green); font-weight:800; }
.difference-unbalanced { color:var(--red); font-weight:800; background:#fff5f5; }
.control-dialog { width:min(720px,100%); }
.dialog-summary-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:.6rem; margin-bottom:.9rem; padding:.75rem; border:1px solid var(--line); border-radius:9px; background:#f8fbf9; font-size:.8rem; }
.dialog-summary-row>span:not(.status-pill) { color:var(--muted); }
.confirmation-summary { display:flex; align-items:center; gap:.75rem; margin-bottom:.8rem; padding:.8rem; border:1px solid #bddccb; border-radius:9px; background:#f0f8f4; color:var(--green); }
.confirmation-summary.warning { border-color:#edcaca; background:#fff5f5; color:var(--red); }
.confirmation-summary>i { font-size:1.2rem; }
.confirmation-summary>div { display:grid; gap:.18rem; min-width:0; }
.confirmation-summary span { color:var(--muted); font-size:.76rem; }
.servicing-dialog { width:min(940px,100%); }
.servicing-action { display:inline-flex; align-items:center; gap:.42rem; font-weight:700; }
.servicing-action i { width:1rem; color:var(--green); text-align:center; }
.servicing-preview-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; margin:.8rem 0; }
.servicing-preview-summary article { display:grid; gap:.25rem; padding:.65rem .7rem; border:1px solid var(--line); border-radius:8px; background:#f8fbf9; }
.servicing-preview-summary article.accent { border-color:#b8d9c8; background:var(--green-soft); }
.servicing-preview-summary span { color:var(--muted); font-size:.7rem; font-weight:750; }
.servicing-preview-summary strong { text-align:right; font-size:.88rem; font-variant-numeric:tabular-nums; }
.servicing-preview-summary.amount-inline-summary article { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.servicing-preview-summary.amount-inline-summary strong { margin-left:auto; white-space:nowrap; }
.collection-search-loading { display:flex; min-height:var(--control-height); align-items:center; gap:.4rem; color:var(--muted); font-size:.78rem; font-weight:700; }
.collection-loan-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.55rem; margin-bottom:var(--page-gap); }
.collection-loan-summary article { display:flex; min-width:0; min-height:82px; flex-direction:column; justify-content:center; gap:.25rem; padding:.65rem .72rem; border:1px solid var(--line); border-radius:9px; background:#fff; box-shadow:0 3px 10px rgba(20,45,34,.025); }
.collection-loan-summary article.accent { border-color:#b8d9c8; background:var(--green-soft); }
.collection-loan-summary span { color:var(--muted); font-size:.68rem; font-weight:750; }
.collection-loan-summary strong { overflow:hidden; color:var(--ink); font-size:.84rem; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.collection-loan-summary small { overflow:hidden; color:var(--muted); font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.collection-loan-summary strong .status-pill { display:inline-flex; }
.servicing-preview-table { max-height:270px; margin-top:.7rem; scrollbar-width:thin; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.dashboard-workspace { display:grid; gap:var(--page-gap); }
.dashboard-workspace>.panel,.dashboard-workspace>.alert { margin-bottom:0; }
.dashboard-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:.8rem; }
.dashboard-filter-fields { display:flex; flex:1 1 auto; align-items:flex-end; gap:.65rem; min-width:0; }
.dashboard-filter-fields>label { display:grid; flex:0 1 220px; gap:.3rem; color:var(--muted); font-size:.74rem; font-weight:750; }
.dashboard-period-field { display:grid; gap:.3rem; }
.dashboard-period-field>span { color:var(--muted); font-size:.74rem; font-weight:750; }
.dashboard-period-options { display:inline-flex; height:var(--control-height); padding:.2rem; border:1px solid var(--line); border-radius:var(--control-radius); background:#f8fbf9; }
.dashboard-period-options button { min-width:66px; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; font-size:.76rem; font-weight:750; }
.dashboard-period-options button:hover { background:var(--action-soft-hover); color:var(--action-text); }
.dashboard-period-options button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.dashboard-period-options button:focus-visible { outline:3px solid var(--action-focus); outline-offset:1px; }
.dashboard-period-options button:disabled { opacity:.55; cursor:not-allowed; }
.dashboard-refresh { display:flex; align-items:center; gap:.65rem; }
.dashboard-refresh small { color:var(--muted); font-size:.7rem; white-space:nowrap; }
.dashboard-refresh small i { margin-right:.25rem; }
.dashboard-metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.dashboard-metric-card { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr) 18px; align-items:center; gap:.7rem; min-height:104px; padding:.8rem; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); transition:transform .15s,border-color .15s,box-shadow .15s; }
.dashboard-metric-card::before { position:absolute; inset:0 auto 0 0; width:3px; background:var(--action); content:""; }
.dashboard-metric-card:hover { border-color:#a9cdbb; box-shadow:0 8px 22px rgba(16,42,58,.08); transform:translateY(-1px); }
.dashboard-metric-card.warning::before { background:var(--warning); }
.dashboard-metric-card.danger::before { background:var(--red); }
.dashboard-metric-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:10px; background:var(--action-soft); color:var(--action-text); }
.dashboard-metric-card.portfolio .dashboard-metric-icon { background:var(--gold-soft); color:var(--gold); }
.dashboard-metric-card.success::before { background:var(--green); }
.dashboard-metric-card.success .dashboard-metric-icon { background:var(--green-soft); color:var(--green); }
.dashboard-metric-card.warning .dashboard-metric-icon { background:#fff5db; color:var(--warning); }
.dashboard-metric-card.danger .dashboard-metric-icon { background:#f9e9e9; color:var(--red); }
.dashboard-metric-copy { display:grid; min-width:0; }
.dashboard-metric-copy small { color:var(--muted); font-size:.72rem; font-weight:750; }
.dashboard-metric-copy strong { margin:.22rem 0 .12rem; color:var(--ink); font-size:clamp(1rem,1.4vw,1.25rem); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.dashboard-metric-copy>span { color:var(--muted); font-size:.7rem; }
.dashboard-metric-arrow { color:#a7b3ad; font-size:.7rem; }
.dashboard-chart-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr); gap:var(--page-gap); }
.dashboard-panel { min-width:0; margin:0; }
.dashboard-panel>.panel-header h2 { display:flex; align-items:center; gap:.42rem; margin:0; }
.dashboard-panel>.panel-header h2>i { color:var(--green); font-size:.86rem; }
.dashboard-chart { min-height:285px; }
.dashboard-chart-legend { display:flex; justify-content:flex-end; gap:1rem; margin:-.2rem .2rem .2rem; color:var(--muted); font-size:.7rem; font-weight:700; }
.dashboard-chart-legend span { display:flex; align-items:center; gap:.35rem; }
.dashboard-chart-legend i { width:18px; height:3px; border-radius:2px; background:var(--green); }
.dashboard-chart-legend .collected i { background:var(--navy-2); }
.dashboard-chart svg { display:block; width:100%; height:260px; overflow:visible; }
.chart-grid-line { stroke:#e4ebe7; stroke-width:1; vector-effect:non-scaling-stroke; }
.chart-axis-value,.chart-axis-date { fill:#7a8780; font-size:10px; }
.chart-series { fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.chart-series.due { stroke:var(--green); }
.chart-series.collected { stroke:var(--navy-2); }
.chart-point { stroke:#fff; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.chart-point.due { fill:var(--green); }
.chart-point.collected { fill:var(--navy-2); }
.chart-point:focus { outline:none; stroke:#f0b429; stroke-width:3; }
.dashboard-chart-empty,.dashboard-empty { display:grid; min-height:190px; place-content:center; justify-items:center; gap:.55rem; color:var(--muted); text-align:center; font-size:.8rem; }
.dashboard-chart-empty i,.dashboard-empty i { color:#9ab5a7; font-size:1.5rem; }
.dashboard-donut-layout { display:grid; grid-template-columns:minmax(180px,.75fr) minmax(190px,1fr); align-items:center; gap:.6rem; min-height:285px; }
.dashboard-donut { width:min(230px,100%); margin:auto; }
.donut-track,.donut-slice { fill:none; stroke-width:24; }
.donut-track { stroke:#eef3f0; }
.donut-slice { transform:rotate(-90deg); transform-origin:100px 100px; transition:stroke-width .15s; }
.donut-slice:hover,.donut-slice:focus { stroke-width:29; outline:none; }
.donut-total-label { fill:var(--muted); font-size:10px; font-weight:700; }
.donut-total-value { fill:var(--ink); font-size:17px; font-weight:850; }
.dashboard-donut-legend { display:grid; gap:.45rem; }
.dashboard-donut-legend>div { display:grid; grid-template-columns:10px minmax(0,1fr); align-items:start; gap:.48rem; }
.dashboard-donut-legend i { width:9px; height:9px; margin-top:.2rem; border-radius:50%; }
.dashboard-donut-legend span { display:grid; min-width:0; }
.dashboard-donut-legend strong { font-size:.72rem; }
.dashboard-donut-legend small { color:var(--muted); font-size:.72rem; overflow-wrap:anywhere; }
.dashboard-operation-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--page-gap); align-items:start; }
.dashboard-recent-panel { grid-column:1/-1; }
.dashboard-action-list { display:grid; gap:.35rem; }
.dashboard-action-list a { display:grid; grid-template-columns:minmax(0,1fr) auto 12px; align-items:center; gap:.6rem; min-height:48px; padding:.5rem .6rem; border:1px solid var(--line); border-radius:8px; background:#fafbfd; color:var(--ink); }
.dashboard-action-list a:hover { border-color:#a9cdbb; background:var(--green-soft); }
.dashboard-action-list span { display:grid; min-width:0; }
.dashboard-action-list strong { overflow:hidden; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-action-list small { color:var(--muted); font-size:.66rem; }
.dashboard-action-list b { display:grid; min-width:28px; height:28px; place-items:center; border-radius:999px; background:var(--green); color:#fff; font-size:.72rem; }
.dashboard-action-list>a>i { color:#9aa9a1; font-size:.65rem; }
.dashboard-operation-grid .dashboard-empty { min-height:170px; }
.dashboard-operation-grid table { min-width:560px; }
.dashboard-lists { min-width:0; display:grid; gap:.65rem; }
.dashboard-lists .workspace-tabs { margin:0; }
.dashboard-lists .workspace-tabs button { display:flex; align-items:center; gap:.4rem; min-height:40px; padding:.5rem .75rem; border:0; border-radius:6px 6px 0 0; background:transparent; color:var(--muted); white-space:nowrap; }
.dashboard-lists .workspace-tabs button.active { background:var(--action-soft); color:var(--action-text); box-shadow:inset 0 -3px 0 var(--action); }
.dashboard-lists .workspace-tabs button:focus-visible { outline:2px solid var(--action); outline-offset:2px; }
.dashboard-lists .panel-header { display:none; }
.dashboard-applied-scope { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; color:var(--muted); font-size:.78rem; padding:0 .2rem; }
.dashboard-applied-scope strong { color:var(--action-text); }
.dashboard-person { display:grid; gap:.2rem; }
.dashboard-person small { color:var(--muted); }
.dashboard-chart-grid>.dashboard-panel { height:100%; }
.payment-balance-table table { min-width:520px; }
.payment-balance-table .balance-negative { color:var(--red); font-weight:750; }
@media (max-width:700px) {
    .content { padding:.7rem; }
    .operations-page .workspace-panel>.panel-header { align-items:stretch; flex-direction:column; }
    .operations-page .workspace-panel>.panel-header .action-group { justify-content:flex-start; }
    .operations-page .workspace-panel>.panel-header .action-group>* { flex:1 1 auto; }
    .operations-page .table-toolbar>* { flex:1 1 100%!important; width:100%; }
    .operations-page .modal-dialog>.panel-header { align-items:center; flex-direction:row; }
    .loan-security-stack .row-actions { min-width:max-content; }
    .payment-account-external-field::before,.category-approval-field::before { display:none; }
    .bulk-policy-toolbar { align-items:stretch; flex-direction:column; }
    .bulk-policy-toolbar label { width:100%; }
    .policy-header-grid { grid-template-columns:1fr; }
    .policy-tier-row { grid-template-columns:32px 1fr; align-items:start; }
    .policy-tier-row>label,.policy-tier-row>.tier-method-field { grid-column:2; }
    .policy-tier-number { grid-column:1; grid-row:1; }
    .tier-remove-button { grid-column:1; grid-row:2; }
    .policy-funding-row { align-items:flex-start; flex-direction:column; gap:.55rem; }
    .product-policy-grid,.product-policy-picker { grid-template-columns:1fr; }
    .product-policy-selection-row { grid-template-columns:minmax(0,1fr) auto 34px; }
    .product-policy-intro { align-items:flex-start; flex-direction:column; }
    .servicing-preview-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .collection-loan-summary { grid-template-columns:1fr; }
    .report-catalog-header .report-search { width:100%; }
    .report-card-grid { grid-template-columns:1fr; }
    .report-catalog-grid { padding:.45rem .65rem .7rem; }
    .report-result-backdrop { padding:.25rem; }
    .report-result-dialog { width:calc(100vw - .5rem); height:calc(100vh - .5rem); }
    .report-result-header { align-items:flex-start!important; flex-direction:row!important; }
    .report-result-actions { width:100%; justify-content:flex-start; }
    .report-result-actions .secondary-button { flex:1 1 auto; }
    .dialog-summary-row { grid-template-columns:auto 1fr; }
    .dashboard-toolbar,.dashboard-filter-fields,.dashboard-refresh { align-items:stretch; flex-direction:column; }
    .dashboard-filter-fields>label { flex-basis:auto; width:100%; }
    .dashboard-period-options { width:100%; }
    .dashboard-period-options button { flex:1; }
    .dashboard-refresh .primary-button { width:100%; }
    .dashboard-metric-grid,.dashboard-chart-grid,.dashboard-operation-grid { grid-template-columns:1fr; }
    .dashboard-recent-panel { grid-column:auto; }
    .dashboard-donut-layout { grid-template-columns:1fr; }
    .dashboard-donut { max-width:210px; }
    .manual-journal-backdrop { padding:.25rem; }
    .operations-page .manual-journal-dialog { width:calc(100vw - .5rem); height:calc(100vh - .5rem); }
    .manual-journal-header-fields { grid-template-columns:1fr; }
    .operations-page .manual-journal-footer { align-items:stretch; flex-direction:column; }
    .manual-journal-totals { width:100%; margin:0; }
    .manual-journal-totals span { flex:1 1 140px; justify-content:space-between; }
    .manual-journal-footer-actions { width:100%; }
    .manual-journal-footer-actions button { flex:1 1 50%; width:auto!important; }
}
@media (min-width:701px) and (max-width:1100px) {
    .dashboard-toolbar { align-items:stretch; flex-direction:column; }
    .dashboard-refresh { justify-content:flex-end; }
    .dashboard-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-chart-grid,.dashboard-operation-grid { grid-template-columns:1fr; }
    .collection-loan-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .report-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-recent-panel { grid-column:auto; }
}
.household-loan-warning {
    width: min(620px, calc(100vw - 2rem));
}

.household-loan-warning .panel-header h2 {
    color: var(--warning, #9a6708);
}

.household-warning-mm {
    display:block;
    margin-bottom:.45rem;
    color:#754e05;
    font-size:.94rem;
    font-weight:850;
    line-height:1.65;
}

.household-warning-details {
    margin: .75rem 0;
}

.household-loan-warning textarea {
    min-height: 88px;
}
