:root{--navy:#102b55;--navy2:#1d3f70;--side:#263942;--side2:#304650;--cyan:#20a7d8;--yellow:#ffbd12;--ink:#243246;--muted:#78879a;--line:#dce4ec;--page:#f1f4f7;--surface:#fff;--red:#bd4242;--green:#25815c;--blue:#386bb5;--shadow:0 6px 20px rgba(27,47,75,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:14px Arial,Helvetica,sans-serif}.topbar{height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 25px;position:sticky;top:0;z-index:10}.brand-lockup{display:flex;align-items:center;gap:10px;color:var(--navy)}.brand-mark{width:35px;height:35px;border-radius:8px;background:var(--navy);color:var(--yellow);display:grid;place-items:center;font-size:21px;font-weight:800}.brand-lockup strong{font-size:13px;letter-spacing:1.4px;display:block}.brand-lockup span{color:#7c8998;font-size:10px;display:block;margin-top:2px}.topbar-note{font-size:11px;color:#748194;display:flex;align-items:center;gap:8px}.local-dot{width:8px;height:8px;border-radius:50%;background:#3fa97b;box-shadow:0 0 0 3px #e6f5ed}.app-layout{min-height:calc(100vh - 60px);display:flex}.sidebar{width:250px;flex-shrink:0;background:var(--side);padding:20px 12px 15px;display:flex;flex-direction:column;color:#e7edf2}.nav-label{font-size:9px;letter-spacing:1.2px;color:#a9b8bf;font-weight:700;margin:9px 10px 7px}.nav-gap{margin-top:22px}.nav-item{width:100%;border:0;background:transparent;text-align:left;border-radius:4px;padding:11px 10px;color:#e0e7eb;font:13px Arial,sans-serif;display:flex;align-items:center;gap:11px;cursor:pointer}.nav-item span{width:17px;text-align:center;color:#9ed2e4;font-size:15px}.nav-item:hover,.nav-item.active{background:var(--side2);color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--cyan);font-weight:700}.nav-submenu{padding:3px 0 7px 26px}.subnav-item{width:100%;border:0;background:transparent;text-align:left;padding:8px 8px;color:#c8d4d8;font:11px Arial,sans-serif;display:flex;justify-content:space-between;gap:5px;cursor:pointer;border-radius:3px}.subnav-item span{color:#9ab3bc;font-size:9px}.subnav-item.active,.subnav-item:hover{background:#3c5864;color:#fff}.subnav-item.active span{color:#ffcf48}.sidebar-bottom{margin-top:auto}.prototype-note{font-size:10px;line-height:1.5;color:#bfd0d4;background:#30444e;border-radius:5px;padding:11px}.prototype-note strong{color:#fff}.main-content{width:100%;max-width:1750px;margin:0 auto;padding:27px 30px 18px;min-width:0}.page{display:none;animation:appear .18s ease}.page.active{display:block}@keyframes appear{from{opacity:.5;transform:translateY(2px)}to{opacity:1;transform:none}}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 19px}.eyebrow{font-size:9px;letter-spacing:1.2px;color:#8795a4;font-weight:700;margin:0 0 5px}.page-heading h1{font-size:23px;color:#172b44;margin:0;letter-spacing:-.3px}.subheading{font-size:12px;color:#8995a4;margin:6px 0 0}.section-card{background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);padding:20px;margin-bottom:17px}.form-card{padding:22px 24px}.form-section-title{display:flex;align-items:center;gap:10px;margin:0 0 16px}.step-number{width:24px;height:24px;border-radius:50%;background:#e9f3fa;color:#147aa0;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.form-section-title h2{font-size:14px;margin:0;color:#263950}.form-section-title p{font-size:10px;color:#98a3af;margin:4px 0 0}.amount-title{margin-top:28px}.form-grid{display:grid;gap:13px 15px;margin-left:34px}.two-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.three-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.five-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.span-2{grid-column:span 2}.field{min-width:0;display:flex;flex-direction:column;gap:6px}.field>span{font-size:10px;color:#4d5d70;font-weight:600}.field b{color:#bf4848}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #cbd7e2;border-radius:3px;background:#fff;padding:9px 10px;font:12px Arial,sans-serif;color:#243246;outline:0;transition:.15s}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#55a9cc;box-shadow:0 0 0 2px rgba(32,167,216,.1)}.field input:disabled,.field input[readonly]{background:#eef2f4;color:#7c8792}.field small{font-size:9px;color:#9aa5b1;line-height:1.35}.field input::placeholder,.field textarea::placeholder{color:#aab4be}.hidden{display:none!important}.checkbox-field{justify-content:flex-end}.toggle{display:flex;align-items:center;gap:8px;height:35px;color:#657487;font-size:11px}.toggle input{position:absolute;opacity:0}.toggle-track{width:33px;height:17px;border-radius:99px;background:#cbd5dc;position:relative;cursor:pointer;transition:.15s}.toggle-track:before{content:"";width:13px;height:13px;position:absolute;top:2px;left:2px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 3px #8b9aa7}.toggle input:checked+.toggle-track{background:#22a5d4}.toggle input:checked+.toggle-track:before{transform:translateX(16px)}.toggle-label{min-width:26px}.calculation-preview{margin:20px 0 0 34px;padding:13px 15px;background:#f1f6fa;border-left:3px solid var(--cyan);border-radius:3px;display:flex;align-items:center;justify-content:space-between;gap:12px}.calculation-preview div{display:flex;flex-direction:column;gap:5px}.calculation-preview span{font-size:10px;color:#65758a;font-weight:600}.calculation-preview strong{font-size:17px;color:#233d61}.calculation-preview small{font-size:9px;color:#96a1ad}.form-actions{margin:19px 0 0 34px;border-top:1px solid #edf0f3;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.required-note{font-size:10px;color:#98a3ae}.required-note b{color:var(--red)}.primary-button,.secondary-button{border:0;border-radius:3px;padding:10px 14px;font:600 11px Arial,sans-serif;cursor:pointer;transition:.15s}.primary-button{color:#fff;background:var(--cyan);box-shadow:0 2px 4px rgba(20,110,150,.1)}.primary-button:hover{background:#168bb8}.primary-button:disabled{opacity:.55;cursor:wait}.primary-button span{color:#ffdc70;margin-left:7px;font-size:15px;vertical-align:-1px}.secondary-button{background:#eff4f7;border:1px solid #dce5eb;color:#3c6680}.secondary-button:hover{background:#e4eef3}.message{font-size:11px;line-height:1.5;padding:10px 12px;border-radius:3px;margin:12px 0 0 34px}.message.success{color:#236c4b;background:#eaf7ef;border:1px solid #cfe9d8}.message.error{color:#a33838;background:#fff0f0;border:1px solid #f0cece}.list-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.search-box{border:1px solid #c9d5df;background:#fff;display:flex;align-items:center;max-width:445px;min-width:210px;height:36px;flex:1}.search-box span{font-size:19px;color:#507088;padding:0 11px}.search-box input{border:0;outline:0;width:100%;font:12px Arial,sans-serif;color:#25364a;height:100%}.asset-total{margin-left:auto;text-align:right;white-space:nowrap;display:flex;flex-direction:column;gap:3px}.asset-total span{font-size:10px;color:#8d99a6}.asset-total strong{font-size:19px;color:#169ecb}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{border:1px solid #b9cbd7;background:#f7fafc;color:#25364a;padding:10px 8px;text-align:left;font-size:10px;font-weight:700}td{border:1px solid #e2e9ee;padding:9px 8px;color:#47586b;font-size:11px;vertical-align:top}tbody tr:nth-child(even){background:#fafcfd}tbody tr:hover{background:#f3f8fa}.loan-table{min-width:1220px}.loan-table th{vertical-align:bottom}.strong{font-weight:700;color:#23394f}.money-positive{color:var(--green)!important;font-weight:700}.money-negative{color:#ad4444!important;font-weight:700}.duplicate-row{background:#fff0f0!important}.duplicate-row td{color:#a44545!important;border-color:#efcbcb}.duplicate-pill,.void-pill{font-size:8px;font-weight:700;letter-spacing:.3px;border-radius:3px;padding:3px 5px;margin-left:4px}.duplicate-pill{color:#a33333;background:#ffe1e1}.void-pill{color:#6d747b;background:#e7e9eb}.status-pill{display:inline-block;padding:4px 6px;background:#eaf6ee;color:#297858;border-radius:2px;font-size:8px;font-weight:700}.status-pill.due{background:#fff4de;color:#9e7017}.status-pill.bad{background:#ffe8e8;color:#a73c3c}.process-select{min-width:112px;border:1px solid #93c9df;background:#eaf7fc;color:#176a8b;border-radius:2px;padding:6px 5px;font-size:10px;font-weight:600;cursor:pointer}.history-link{display:block;color:#1595c4;font-weight:600;font-size:10px;text-decoration:none;margin-top:5px}.history-link:hover{text-decoration:underline}.secondary-line{display:block;font-size:9px;color:#1995bf;margin-top:4px}.list-note,.table-footnote{font-size:9px;color:#929eaa;padding:11px 3px 0}.empty-state{text-align:center;color:#8c98a6;font-size:11px;padding:26px 8px}.filters{display:flex;align-items:flex-end;gap:12px;margin-bottom:15px}.compact-field{min-width:170px}.compact-field input,.compact-field select{padding:8px}.report-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:-3px 0 15px}.report-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#768598;padding:10px 13px;font:600 11px Arial,sans-serif;cursor:pointer}.report-tab.active{color:#167da5;border-color:var(--cyan)}.report-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 15px}.summary-chip{background:#f2f7fa;border:1px solid #e3edf2;border-radius:4px;padding:10px 13px;min-width:145px;display:flex;flex-direction:column;gap:5px}.summary-chip span{font-size:9px;color:#8896a4}.summary-chip strong{font-size:15px;color:#26435e}.summary-chip.positive strong{color:#277555}.summary-chip.negative strong{color:#aa4949}.right{text-align:right}.nav-gap{padding-top:2px}.settings-form{padding:3px 1px}.settings-callout{background:#fff8e7;border:1px solid #f1e5c6;border-radius:4px;padding:12px 14px;margin:0 0 16px}.settings-callout strong{font-size:11px;color:#8a6b18}.settings-callout p{font-size:10px;color:#897d62;margin:5px 0 0;line-height:1.5}.settings-grid{margin-left:0}.settings-form .form-actions,.settings-form .message{margin-left:0}.master-panel{display:none}.master-panel.active{display:block}.master-tabs{margin-top:-3px}.modal-dialog{border:0;padding:0;width:min(620px,calc(100vw - 24px));max-height:92vh;border-radius:4px;box-shadow:0 15px 50px rgba(0,0,0,.25);overflow:auto}.modal-dialog::backdrop{background:rgba(17,29,41,.55)}.modal-header{background:var(--yellow);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-header p{font-size:9px;font-weight:700;letter-spacing:1px;color:#8f6c06;margin:0 0 5px}.modal-header h2{font-size:17px;color:#fff;margin:0}.modal-x{border:0;background:transparent;color:#86660b;font-size:25px;line-height:1;cursor:pointer}.modal-body{padding:16px 19px 18px}.loan-balance-callout{font-size:12px;font-weight:700;color:#28384e;margin-bottom:16px}.modal-grid{margin:0}.fee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.fee-grid input{background:#f2f5f7!important}.total-due-card{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e5eaef;border-bottom:1px solid #e5eaef;padding:12px 2px;margin:14px 0;font-size:11px;font-weight:700;color:#344960}.total-due-card strong{font-size:16px;color:#183558}.modal-note{margin-top:12px}.modal-body .message{margin:12px 0 0}.modal-footer{border-top:1px solid #e3e8ec;padding:12px 16px;display:flex;justify-content:flex-end;gap:9px}.history-dialog{width:min(850px,calc(100vw - 24px))}.history-dialog .modal-header{background:#fff;border-bottom:1px solid var(--line)}.history-dialog .modal-header h2{color:#213852}.history-dialog .modal-x{color:#778392}.history-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;background:#f6f8fa;border-radius:4px;padding:12px;margin-bottom:15px}.history-detail-grid span{display:block;color:#909ca9;font-size:9px;margin-bottom:4px}.history-detail-grid strong{font-size:11px;color:#344960}.table-status{font-size:9px;color:#68798c}.app-footer{padding:18px 2px 5px;color:#a1aab4;font-size:9px;display:flex;justify-content:space-between}.app-footer span{color:#b5bdc5}
@media(max-width:1250px){.five-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.main-content{padding:24px 20px}.sidebar{width:230px}}
@media(max-width:760px){.topbar{height:55px;padding:0 12px}.topbar-note{font-size:9px}.app-layout{display:block}.sidebar{width:auto;position:sticky;top:55px;z-index:8;display:flex;flex-direction:row;overflow:auto;padding:6px;gap:3px}.sidebar>.nav-label,.sidebar-bottom,.nav-gap{display:none}.nav-item{width:auto;min-width:max-content;padding:9px 9px;font-size:10px;gap:6px}.nav-submenu{display:flex;padding:0 4px;gap:2px;min-width:max-content}.subnav-item{width:auto;min-width:max-content;padding:8px 7px;font-size:9px;display:flex;flex-direction:column;gap:2px}.subnav-item span{font-size:8px}.main-content{padding:20px 10px}.page-heading h1{font-size:20px}.section-card{padding:13px 10px}.form-card{padding:17px 11px}.form-grid,.two-grid,.three-grid,.five-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 9px;margin-left:0}.span-2{grid-column:span 2}.form-section-title{gap:8px}.form-section-title p{font-size:9px}.amount-title{margin-top:22px}.calculation-preview,.form-actions,.message{margin-left:0}.calculation-preview{align-items:flex-start;flex-direction:column}.list-toolbar{flex-wrap:wrap}.search-box{max-width:none;min-width:100%}.list-toolbar .secondary-button{flex:1}.asset-total{margin-left:auto}.filters{flex-wrap:wrap}.compact-field{min-width:calc(50% - 7px);flex:1}.report-filters .secondary-button{flex:1}.report-tab{padding:9px 7px;font-size:9px}.fee-grid{grid-template-columns:1fr}.history-detail-grid{grid-template-columns:repeat(2,1fr)}.form-actions{gap:8px}.primary-button,.secondary-button{padding:9px 10px;font-size:10px}.modal-body{padding:13px}.app-footer{font-size:8px}}
.topbar-note label{font-weight:700;color:#52657a}.topbar-note input{width:145px;height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:3px;color:#23394f;font:11px Arial,sans-serif}.money-input{font-variant-numeric:tabular-nums}.user-log-table{min-width:900px}.user-log-table td:nth-child(4){white-space:normal;min-width:320px;max-width:620px}.cancel-log-button{border:0;border-radius:3px;background:#d95757;color:#fff;padding:6px 9px;font:600 10px Arial,sans-serif;cursor:pointer}.cancel-log-button:hover{background:#b94242}.cancel-log-button:disabled{background:#dfe4e8;color:#82909c;cursor:not-allowed}.cancel-log-button.off{background:#e7e9eb;color:#7d858d}.log-status{display:inline-block;padding:4px 6px;border-radius:3px;background:#e7f5eb;color:#26764f;font-size:9px;font-weight:700}.log-status.void-pill{background:#e7e9eb;color:#6d747b}
@media(max-width:760px){.topbar-note{gap:5px}.topbar-note input{width:110px}.topbar-note .local-dot{display:none}}
.rack-input{width:78px;min-width:66px;border:1px solid #cbd7e2;border-radius:3px;padding:7px 6px;font:11px Arial,sans-serif;color:#263950;background:#fff}.rack-input:focus{outline:2px solid #d9f0f8;border-color:#55a9cc}.secondary-line{display:block;color:#8b98a7;font-size:9px;margin-top:4px}.history-link,.photo-link,.print-icon-link{color:#159dca;text-decoration:none;font-weight:700}.history-link{display:block;margin-top:6px}.photo-link{display:block;margin-top:5px;font-size:10px;cursor:pointer}.recorded-status{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px;font-size:9px;color:#5f7183}.print-icon-link{font-size:15px;line-height:1}.process-select{max-width:135px}.ledger-account{margin:16px 0 24px;border:1px solid #cbd7df;border-radius:4px;overflow:hidden}.ledger-title{background:#f1f6f9;padding:10px 12px;color:#25364a;font-size:13px;font-weight:700}.ledger-title span{font-weight:400;color:#7f8c9a;margin-left:5px}.ledger-totals{background:#fbfcfd;font-weight:700}.ledger-totals td{color:#25364a}.ledger-group-table{min-width:790px}.ledger-group-table th,.ledger-group-table td{font-size:10px}.customer-edit-button{border:1px solid #cbd9e2;border-radius:3px;background:#fff;color:#247da0;padding:6px 9px;cursor:pointer;font-size:10px;font-weight:700}.customer-edit-button:hover{background:#eaf6fa}.small-dialog{width:min(500px,calc(100vw - 28px))}.small-dialog .modal-body>.field{margin-bottom:12px}.photos-dialog{width:min(900px,calc(100vw - 28px))}.photos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.photo-card{position:relative;border:1px solid #d9e1e7;border-radius:4px;padding:7px;background:#fafcfd;min-height:170px}.photo-card img{display:block;width:100%;height:170px;object-fit:contain;background:#eef2f4}.photo-card .photo-name{font-size:10px;color:#617083;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:6px 0}.photo-card-actions{display:flex;justify-content:space-between;gap:6px}.photo-card-actions a,.photo-card-actions button{border:0;border-radius:3px;padding:6px 8px;background:#1aa5d3;color:white;font-size:9px;text-decoration:none;cursor:pointer}.photo-card-actions button{background:#e96e71}.photo-picker{max-width:430px}.ledger-empty{padding:18px;color:#8492a0}@media(max-width:900px){.photos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding:18px 14px}.sidebar{width:210px}}
.document-dialog{width:min(850px,calc(100vw - 24px));overflow:hidden}.document-preview{padding:12px;background:#e9edf1}.document-preview iframe{display:block;width:100%;height:min(68vh,760px);border:1px solid #cbd5dc;background:white}.document-dialog.sbg-document{width:min(1120px,calc(100vw - 24px))}.document-dialog.sbg-document .document-preview iframe{height:min(74vh,900px)}.edit-loan-dialog{width:min(900px,calc(100vw - 24px))}.edit-loan-dialog .modal-body{overflow:auto;max-height:72vh}.edit-loan-dialog .form-grid{margin:0}.customer-name-link{color:#178bb5;text-decoration:none;font-weight:700}.customer-name-link:hover{text-decoration:underline}.customer-profile{padding:14px 16px;background:#f1f6f9;border:1px solid #dbe6ed;border-radius:4px;margin-bottom:14px}.customer-profile strong{display:block;color:#23394f;font-size:17px;margin-bottom:7px}.customer-profile span{display:block;color:#758496;font-size:11px;line-height:1.65}#customer-detail-total{white-space:nowrap}@media(max-width:900px){.document-dialog.sbg-document{width:calc(100vw - 12px)}.document-preview{padding:5px}.document-preview iframe{height:70vh}}

.identity-entry{display:flex;gap:5px;align-items:stretch}.identity-entry input{flex:1;min-width:0}.add-customer-button{width:38px;flex:0 0 38px;border:0;border-radius:3px;background:#43bd78;color:#fff;font-size:22px;font-weight:700;cursor:pointer;box-shadow:0 2px 4px #d4eadc}.add-customer-button:hover{background:#2ca963}.add-customer-button:focus-visible{outline:3px solid #bde9ca;outline-offset:1px}.customer-dialog{width:min(640px,calc(100vw - 24px))}.customer-dialog .modal-header{background:#fff;border-bottom:1px solid var(--line)}.customer-dialog .modal-header h2{color:#213852}.customer-dialog .modal-x{color:#778392}.customer-form-grid{gap:12px 16px}.customer-form-grid .span-2{grid-column:span 2}.count-badge{display:inline-block;margin-left:8px;padding:4px 7px;border-radius:10px;background:#e9f5fa;color:#247b9d;font-size:10px;font-weight:700;vertical-align:2px}.customer-name-link{white-space:nowrap}.sbg-document .kv>span{white-space:nowrap}.sbg-document .details>div{min-width:0}@media(max-width:760px){.customer-form-grid{grid-template-columns:1fr}.customer-form-grid .span-2{grid-column:span 1}.customer-dialog .modal-body{max-height:68vh;overflow:auto}}

.heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.loan-table th:last-child{position:sticky;right:0;z-index:4;background:#f7fafc;box-shadow:-4px 0 7px rgba(28,48,65,.08)}
.loan-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-4px 0 7px rgba(28,48,65,.08);min-width:116px}
.loan-table tr:nth-child(even) td:last-child{background:#fafcfd}
.loan-table tr:hover td:last-child{background:#f3f8fa}
.loan-table td:nth-child(3){white-space:normal;min-width:145px;max-width:185px;overflow-wrap:anywhere}
.loan-table td:nth-child(3) .customer-name-link{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.user-log-table{min-width:1120px}
.user-log-table td:nth-child(4),.user-log-table td:nth-child(5){white-space:nowrap;min-width:130px}
.user-log-table td:nth-child(6){white-space:normal;min-width:270px;max-width:520px;overflow-wrap:anywhere}
.user-log-table td:last-child{white-space:nowrap}
.import-template-actions{margin:0 0 14px!important;justify-content:flex-start!important;border:0!important;padding:0!important}
.import-preview{margin-top:15px;padding:15px;background:#f5f8fa;border:1px solid #e1e9ef;border-radius:4px}
.import-preview p{font-size:10px;line-height:1.5;color:#6e7d8b}
.import-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.import-counts span{display:flex;flex-direction:column;gap:5px;padding:10px;background:#fff;border:1px solid #e3ebf0;border-radius:3px;color:#84909b;font-size:9px}
.import-counts b{color:#27435b;font-size:13px}
.import-counts small{font-size:9px;color:#83909c}
.reset-callout{background:#fff1f1;border-color:#f0d0d0}
.reset-callout strong{color:#a23e3e}
.reset-callout p{color:#8c6666}
.danger-button{border:0;border-radius:3px;background:#c94f4f;color:#fff;padding:10px 14px;font:600 11px Arial,sans-serif;cursor:pointer}
.danger-button:hover{background:#ad3c3c}
.danger-button:disabled{opacity:.55;cursor:wait}
.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 2px}
.pagination-controls{display:flex;align-items:center;gap:0}
.page-button{min-width:34px;height:34px;padding:0 10px;border:1px solid #b9cbd7;background:#fff;color:#507088;font:12px Arial,sans-serif;cursor:pointer}
.page-button+.page-button,.page-ellipsis+.page-button{border-left:0}
.page-button.active{background:var(--cyan);border-color:var(--cyan);color:#fff;font-weight:700}
.page-button:disabled{color:#a5afb8;background:#f7f9fa;cursor:default}
.page-ellipsis{height:34px;min-width:34px;display:grid;place-items:center;border-top:1px solid #b9cbd7;border-bottom:1px solid #b9cbd7;background:#fff;color:#82909c}
.pagination-total{font-size:11px;color:#179bc6;white-space:nowrap}
#report-head th{white-space:nowrap}
#report-rows td{font-size:10px}
.form-hint{margin:12px 0 0 34px;color:#738296;font-size:10px;line-height:1.5}
.accounting-schedules-card .section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
.accounting-schedules-card .section-heading h2{margin:0;color:#263950;font-size:14px}
.accounting-schedules-card .section-heading p{margin:5px 0 0;color:#8794a2;font-size:10px}
.accounting-schedules-card .filters{margin-bottom:14px}
@media(max-width:760px){.pagination-bar{align-items:flex-start;flex-direction:column}.pagination-controls{max-width:100%;overflow:auto}.page-button{min-width:31px;padding:0 8px}}
.crm-submenu{padding-left:35px}.crm-submenu .subnav-item{white-space:normal}.crm-panel{display:none}.crm-panel.active{display:block}.crm-toolbar{align-items:center;justify-content:space-between;flex-wrap:wrap}.crm-toolbar>div:first-child{min-width:240px}.crm-help{margin:5px 0 0;color:#8190a0;font-size:10px;line-height:1.45}.crm-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:14px 0 18px}.crm-kpi{min-height:94px;padding:13px 14px;border:1px solid #e1e9ee;border-radius:4px;background:#fbfdfe;display:flex;flex-direction:column;gap:5px}.crm-kpi span{font-size:10px;color:#7f8d9b}.crm-kpi strong{font-size:23px;color:#183b5a}.crm-kpi small{font-size:9px;color:#9ba6b1}.crm-kpi-1 strong,.crm-kpi-2 strong{color:#169cc7}.crm-kpi-4 strong,.crm-kpi-6 strong{color:#c17b20}.crm-overview-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.crm-insight-card{border:1px solid #e2e9ef;border-radius:4px;padding:14px;background:#fff;min-height:185px}.crm-insight-card h2{margin:0 0 13px;font-size:13px;color:#2a4054}.crm-trend{display:flex;flex-direction:column;gap:10px}.crm-trend-row{display:grid;grid-template-columns:88px minmax(70px,1fr) 25px;align-items:center;gap:9px;font-size:10px;color:#708093}.crm-bar-track{height:10px;background:#eff4f7;border-radius:8px;overflow:hidden}.crm-bar-track i{display:block;height:100%;min-width:3px;background:#23a5d1;border-radius:8px}.crm-trend-row b,.crm-source-row b{color:#263d54;font-size:10px;text-align:right}.crm-source-list{display:flex;flex-direction:column;gap:9px}.crm-source-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f4;padding:0 0 8px;font-size:10px;color:#617184}.crm-footnote{margin-top:13px;color:#97a2ad;font-size:9px;line-height:1.45}.crm-table{min-width:960px}.crm-table th{white-space:nowrap}.crm-table td{vertical-align:middle}.crm-table td small{display:block;margin-top:4px;color:#8c99a6;font-size:9px;white-space:normal}.crm-table td:first-child strong{display:block;color:#2c4359}.crm-wrap-cell{white-space:normal;min-width:210px;max-width:350px;line-height:1.45}.crm-segment-pill,.crm-status-pill,.crm-priority,.crm-today-pill{display:inline-block;padding:4px 7px;border-radius:10px;background:#eaf5fa;color:#27799a;font-size:9px;font-weight:700;white-space:nowrap}.crm-status-pill{background:#edf4f7;color:#506477;border-radius:3px}.crm-priority{border-radius:3px;background:#eef3f6;color:#6b7680}.crm-priority-tinggi{background:#fff1df;color:#9e6714}.crm-priority-mendesak{background:#ffebeb;color:#a33939}.crm-priority-rendah{background:#edf6ef;color:#44815b}.crm-code-button{border:0;background:transparent;color:#168bb5;font:700 11px Arial,sans-serif;cursor:pointer;padding:0}.crm-code-button:hover{text-decoration:underline}.crm-open-case{padding:6px 8px}.crm-entry-form{border:1px solid #e3eaf0;border-radius:4px;background:#fcfdfe;padding:14px;margin:12px 0 18px}.crm-form-grid{margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}.crm-entry-form .form-actions{margin:14px 0 0}.crm-list-toolbar{margin-top:18px}.crm-contact-button{display:inline-block;padding:7px 9px;border-radius:3px;background:#32a96a;color:#fff;text-decoration:none;font-size:9px;font-weight:700;white-space:nowrap}.crm-contact-button:hover{background:#268b55}.crm-muted{font-size:9px;color:#99a3ad}.crm-overdue-row td{background:#fffafa}.crm-integration-note{margin:12px 0 14px;background:#f3f8fb;border-color:#dceaf1}.crm-integration-note strong{color:#376781}.crm-integration-note p{color:#607d8c}.crm-today-pill{margin-left:5px;padding:3px 6px;background:#fff1d8;color:#9d6a15}.crm-error{margin:0 0 12px}.crm-acquisition-field{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:end}.crm-acquisition-field>label{display:block;font-size:11px;color:#52657a;font-weight:600}.crm-acquisition-field>label b{color:#ce5555}.crm-acquisition-field select,.crm-acquisition-field input{width:100%;height:36px;border:1px solid #cbd7e2;border-radius:3px;padding:8px;background:#fff;color:#27394d;font:11px Arial,sans-serif}.crm-acquisition-field.survey-required{padding:10px;background:#fffaf0;border:1px solid #f0e2c2;border-radius:4px}.acquisition-detail-input{grid-column:1/-1}.crm-complaint-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:17px;padding:12px;background:#f5f8fa;border:1px solid #e1e9ee;border-radius:4px}.crm-complaint-summary div span{display:block;margin-bottom:4px;color:#8996a2;font-size:9px}.crm-complaint-summary div strong{font-size:10px;color:#30465c}.crm-complaint-summary>p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.5;color:#536478;white-space:pre-wrap}.crm-timeline{border-left:2px solid #dce9ef;margin:0 0 20px 7px;padding:0 0 0 16px}.crm-timeline-item{position:relative;padding:0 0 15px}.crm-timeline-mark{position:absolute;left:-22px;top:2px;width:10px;height:10px;border-radius:50%;border:2px solid #1da0ca;background:white}.crm-timeline-item strong{display:block;color:#2b435a;font-size:11px}.crm-timeline-item small{display:block;margin-top:4px;color:#92a0ad;font-size:9px}.crm-timeline-item p{margin:7px 0 0;color:#586a7c;font-size:10px;line-height:1.5;white-space:pre-wrap}.crm-timeline-item p.crm-solution{color:#287252}.crm-step-form{border-top:1px solid #e4ebef;padding-top:16px}.crm-step-form h3,.crm-complaint-detail-dialog h3{font-size:12px;color:#293f54}.crm-step-form .modal-footer{padding-right:0;padding-bottom:0}.crm-complaint-detail-dialog{width:min(780px,calc(100vw - 24px))}
@media(max-width:760px){.crm-submenu{display:flex;flex-direction:row;padding:0 4px}.crm-overview-grid{grid-template-columns:1fr}.crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-toolbar{align-items:stretch}.crm-toolbar>div:first-child{min-width:100%}.crm-toolbar .search-box{min-width:100%}.crm-form-grid{grid-template-columns:1fr}.crm-complaint-summary{grid-template-columns:1fr}.crm-complaint-summary>p{grid-column:1}.crm-acquisition-field{grid-template-columns:1fr;grid-column:span 2}.crm-step-form .modal-footer{margin:12px 0 0}.crm-kpi{min-height:82px;padding:10px}.crm-kpi strong{font-size:19px}}
.crm-customer-link{border:0;padding:0;background:transparent;color:#178bb5;font:700 11px Arial,sans-serif;text-align:left;cursor:pointer}.crm-customer-link:hover{text-decoration:underline}

.crm-distributions{margin-top:22px;padding-top:18px;border-top:1px solid #e5ebef}
.crm-distribution-heading{margin-bottom:13px}
.crm-distribution-heading h2{margin:0;color:#2a4054;font-size:14px}
.crm-distribution-heading p{max-width:900px;margin:6px 0 0;color:#8190a0;font-size:10px;line-height:1.5}
.crm-distribution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px}
.crm-pie-card{min-width:0;padding:13px;border:1px solid #e2e9ef;border-radius:4px;background:#fff}
.crm-pie-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:#2a4054}
.crm-pie-title strong{font-size:11px}
.crm-pie-title>span{color:#8c99a6;font-size:9px;white-space:nowrap}
.crm-pie-layout{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:13px}
.crm-pie{width:128px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;position:relative}
.crm-pie>div{width:69%;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;box-shadow:0 0 0 1px #edf1f4 inset}
.crm-pie>div>b{color:#1d3b55;font-size:19px;line-height:1.1}
.crm-pie>div>small{margin-top:3px;color:#8a97a4;font-size:8px}
.crm-pie-legend{display:flex;flex-direction:column;gap:7px;max-height:174px;overflow:auto;margin:0;padding:0 5px 0 0;list-style:none}
.crm-pie-legend li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#5c6d7e;font-size:9px;line-height:1.35}
.crm-pie-label{display:flex;align-items:flex-start;gap:6px;min-width:0}
.crm-pie-label>i{flex:none;width:8px;height:8px;margin-top:2px;border-radius:50%}
.crm-pie-label>span{overflow-wrap:anywhere}
.crm-pie-legend li>b{flex:none;color:#334a60;font-size:9px;text-align:right}
.crm-pie-legend li>b small{color:#8996a3;font-size:8px;font-weight:400}
.crm-pie-empty{padding:38px 8px;text-align:center;color:#98a3ae;font-size:10px}
@media(max-width:520px){.crm-distribution-grid{grid-template-columns:1fr}.crm-pie-layout{grid-template-columns:112px minmax(0,1fr);gap:10px}.crm-pie{width:108px}}

/* Authentication and outlet context for the multi-outlet local prototype. */
body:not(.authenticated) .topbar,
body:not(.authenticated) .app-layout { display:none; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:#f1f5f9; }
.auth-screen.hidden { display:none; }
.auth-card { width:min(100%,440px); background:#fff; border:1px solid #dbe4ec; border-radius:14px; box-shadow:0 18px 55px #0f294022; padding:32px; display:grid; gap:14px; }
.auth-card .brand-lockup { margin-bottom:12px; }
.auth-card h1 { margin:0; font-size:27px; color:#15304b; }
.auth-help,.auth-demo-note { margin:0; color:#61748a; font-size:13px; line-height:1.5; }
.auth-demo-note { border-top:1px solid #e5ebf0; padding-top:14px; }
.auth-submit { width:100%; justify-content:center; margin-top:4px; }
.topbar-note { display:flex; align-items:center; gap:10px; }
.topbar-note #active-user-name { width:150px; }
.account-name-button{max-width:230px;padding:8px 10px;border:1px solid #dce5eb;border-radius:4px;background:#fff;color:#244761;font:12px Arial,sans-serif;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.account-name-button:hover{background:#f2f7fa;border-color:#b9d5e2}.account-name-button:focus-visible{outline:3px solid #bde9f6;outline-offset:1px}.password-account-label{margin:0 0 14px;padding:9px 11px;border-radius:4px;background:#f2f6f8;color:#52697c;font-size:11px}
.outlet-context { display:flex; align-items:center; gap:8px; color:#61748a; }
.outlet-context select { min-width:170px; padding:8px 10px; border:1px solid #cbd7e2; border-radius:6px; background:#fff; color:#19344d; }
.outlet-context-name { font-weight:700; color:#244761; padding:8px 12px; background:#eef4f7; border-radius:6px; }
.logout-button { padding:8px 12px; white-space:nowrap; }
.admin-create-form { border-top:1px solid #e1e8ef; margin-top:22px; padding-top:20px; }
.admin-create-form h3 { margin:0 0 8px; color:#183752; }
.permission-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:10px; margin:18px 0; }
.permission-option { display:flex; align-items:center; gap:8px; padding:10px; border:1px solid #dce5ec; border-radius:6px; background:#f9fbfc; }
.permission-option input { accent-color:#19a5d0; }
.credential-result { overflow-wrap:anywhere; color:#173d57; }
.credential-result a { color:#109dca; font-weight:700; }
@media(max-width:850px) {
  .topbar { flex-wrap:wrap; height:auto; gap:8px; padding:10px 14px; }
  .topbar-note { width:100%; flex-wrap:wrap; }
  .topbar-note #active-user-name { width:120px; }
  .account-name-button{max-width:150px}
  .outlet-context select { min-width:140px; }
}
