:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#142636;background:#f4f7f8}*{box-sizing:border-box}body{margin:0}.shell{display:flex;min-height:100vh}aside{width:244px;background:#112e3b;color:#d9e5e7;display:flex;flex-direction:column;padding:26px 14px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 13px 31px}.brandmark{background:#13b69d;color:#fff;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:25px}.brand b{display:block;letter-spacing:2px}.brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#9eb5b9;margin-top:4px}nav{display:grid;gap:5px}nav button{border:0;background:transparent;color:#b8ccd0;display:flex;gap:13px;align-items:center;text-align:left;padding:12px 14px;border-radius:9px;cursor:pointer;font-size:13px}nav button span{font-size:19px;width:20px}nav button:hover,nav button.active{background:#244958;color:#fff}.asidefoot{margin-top:auto;border-top:1px solid #34515d;padding:20px 13px 0;font-size:12px;line-height:1.8;color:#9eb5b9}main{flex:1;min-width:0;max-width:1500px;margin:auto;padding:34px 40px 70px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px}.eyebrow{font-size:11px;color:#68828a;letter-spacing:1px;font-weight:700}h1{font-size:30px;margin:8px 0 0;color:#193441}h2{font-size:17px;margin:0 0 15px}.badge{background:#dff5ed;color:#11745e;border:1px solid #bee6d6;padding:8px 12px;border-radius:30px;font-size:12px;font-weight:700}.card{background:#fff;border:1px solid #e0e8e9;border-radius:13px;padding:23px;box-shadow:0 3px 15px #16394408;margin-bottom:20px}.card p{color:#6b7f86;font-size:13px}.warning{background:#fff8e9;border:1px solid #f2dfae;border-left:4px solid #d8a437;border-radius:9px;padding:19px 22px;margin-bottom:20px;color:#6f5723}.warning p{margin:6px 0}.warning small{color:#896c32}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats .card{min-height:121px}.stats span{font-size:13px;color:#6b818a}.stats strong{display:block;font-size:36px;margin-top:11px;color:#1a4450}.rows>div,.review{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e7eded}.rows em{color:#78929b;font-style:normal;font-size:12px;margin-left:7px}.review{gap:20px}.review span{color:#8b6830;font-size:13px}form{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}input,select{border:1px solid #cbd9dc;border-radius:7px;padding:10px 11px;min-width:145px;max-width:100%;background:#fff;color:#17343f}input[type=file]{width:100%;border-style:dashed;padding:15px}button{background:#087f72;color:#fff;border:0;border-radius:7px;padding:10px 15px;font-weight:650;cursor:pointer}button:hover{background:#075f56}button:disabled{opacity:.5;cursor:not-allowed}.notice{background:#e5f1f4;padding:12px 16px;border-radius:7px;margin-bottom:18px;color:#285060;word-break:break-word}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:#66818a;font-weight:650;background:#f5f8f8}td,th{padding:12px;border-bottom:1px solid #e8eeee;white-space:nowrap}td button{font-size:12px;padding:7px 10px}@media(max-width:800px){.shell{display:block}aside{width:100%;height:auto;position:static}.brand{padding-bottom:15px}nav{display:flex;overflow:auto}nav button{white-space:nowrap}.asidefoot{display:none}main{padding:24px 16px}.stats{grid-template-columns:1fr}header{align-items:flex-start;gap:8px}h1{font-size:25px}.badge{white-space:nowrap}}.draft-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.draft-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#49616a}.draft-form input,.draft-form select,.draft-form textarea{width:100%;min-width:0}.draft-form textarea{min-height:70px;resize:vertical;border:1px solid #cbd9dc;border-radius:7px;padding:10px 11px;font:inherit}.draft-form button{justify-self:start}.row-actions{display:flex;gap:6px}.invoice-print{display:none}@media(min-width:1101px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:801px)and (max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.draft-form{grid-template-columns:1fr}}.sidebar-toggle{background:#244958;color:#fff;margin:0 8px 16px;text-align:left;font-size:12px}.sidebar-collapsed aside{width:76px;padding-left:8px;padding-right:8px}.sidebar-collapsed .brand{padding:0 10px 20px}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed nav button{justify-content:center;padding:12px}.sidebar-collapsed .sidebar-toggle{text-align:center;margin:0 3px 16px}.draft-lines{grid-column:1/-1;min-width:0}.draft-lines h3{margin:12px 0 2px}.draft-lines p{margin:4px 0 10px}.draft-lines td input{min-width:0;width:100%}.draft-lines th:nth-child(2),.draft-lines td:nth-child(2){min-width:260px}.draft-lines th:nth-child(3),.draft-lines td:nth-child(3),.draft-lines th:nth-child(4),.draft-lines td:nth-child(4){min-width:110px}.draft-line-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}.draft-line-actions strong{font-size:17px;color:#173d4a}@media(max-width:800px){.sidebar-collapsed aside{width:100%}.sidebar-collapsed .nav-label{display:inline}.sidebar-collapsed nav button{justify-content:flex-start}.sidebar-collapsed .brand-copy{display:block}}.list-controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}.list-controls input{flex:1;min-width:240px}.list-controls select{min-width:210px}.customer-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;max-height:350px;overflow:auto}.customer-cards button{text-align:left;background:#f5f8f8;color:#17343f;border:1px solid #d9e5e7;overflow-wrap:anywhere}.customer-cards button.selected{background:#dff5ed;border-color:#13b69d}.customer-cards small{display:block;margin-top:5px;color:#66818a}.customer-detail{margin:20px 0;padding:18px;border:1px solid #d9e5e7;border-radius:8px}.customer-detail h3{margin-top:0}.customer-cards{margin-top:12px}.number-list{line-height:1.8;overflow-wrap:anywhere}details{padding:12px 0;border-bottom:1px solid #e7eded}summary{cursor:pointer;font-weight:700;color:#234b58}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#102a35a8;z-index:50;display:grid;place-items:center;padding:20px}.draft-modal{background:#fff;border-radius:14px;width:min(1100px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:24px;box-shadow:0 18px 60px #071b2766}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.modal-head p{margin:4px 0 10px;color:#5f7b84;font-size:13px}.modal-head button{background:#e8f1f2;color:#163943}.customer-detail{background:#f8fbfb}.customer-detail h3:not(:first-child){margin-top:26px}.table-link{background:none;color:#087f72;text-decoration:underline;padding:0;font:inherit;font-weight:700}.table-link:hover{background:none;color:#075f56}.detail-modal{width:min(1000px,100%)}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.detail-grid>div{background:#f5f8f8;padding:13px;border-radius:8px;overflow-wrap:anywhere}.detail-grid dt{font-size:12px;color:#66818a}.detail-grid dd{margin:6px 0 0;font-weight:700}.detail-description{white-space:pre-wrap;overflow-wrap:anywhere}.document-preview{width:100%;height:min(65vh,760px);border:1px solid #cbd9dc;margin-top:14px}.document-viewer{margin-top:14px}.preview-pages{display:flex;align-items:center;gap:12px;margin-bottom:10px}.preview-scroll{max-height:65vh;overflow:auto;background:#e9eff0;padding:12px;text-align:center}.preview-scroll canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff;box-shadow:0 2px 12px #17343f33}.preview-note{font-size:12px;color:#66818a}.docx-preview{background:#fff;border:1px solid #cbd9dc;padding:28px;max-height:65vh;overflow:auto;line-height:1.5;color:#172d38}.docx-preview p{white-space:pre-wrap}.docx-preview table{width:auto;max-width:100%;border-collapse:collapse}.docx-preview td,.docx-preview th{white-space:normal;border:1px solid #cbd9dc;padding:6px}.docx-preview img{max-width:100%}.detail-modal.expanded{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.modal-actions{display:flex;gap:8px;flex-shrink:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:10px}.preview-zoom{display:flex;align-items:center;gap:8px}.preview-zoom span{min-width:48px;text-align:center;font-weight:700}.preview-zoom button,.preview-pages button{padding:7px 11px}.preview-pages{margin:0}.preview-scroll canvas{max-width:none}.docx-preview{padding:0}.docx-zoom-content{padding:28px;min-width:max-content}@media(max-width:600px){.modal-actions{flex-direction:column}.preview-toolbar{align-items:flex-start}.docx-zoom-content{padding:14px}}@media print{@page{size:A4;margin:18mm}body{background:#fff;color:#111}.shell{display:block;min-height:0}.shell>aside,.shell>main{display:none}.invoice-print{display:block;font-family:Arial,Segoe UI,sans-serif;color:#111;font-size:11pt}.invoice-print .draft-mark{font-size:22pt;font-weight:800;color:#9b1c1c;border:2px solid #9b1c1c;display:inline-block;padding:5px 12px;margin-bottom:20px}.invoice-head{display:flex;justify-content:space-between;align-items:start;border-bottom:2px solid #333;padding-bottom:14px}.invoice-head h1{font-size:19pt;margin:0;color:#111}.invoice-head div{text-align:right;line-height:1.6}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.invoice-parties section{border:1px solid #bbb;padding:12px;min-height:145px;overflow-wrap:anywhere}.invoice-parties h2{font-size:11pt;margin:0 0 12px;color:#111}.invoice-parties p{white-space:pre-line;line-height:1.5;margin:7px 0}.invoice-print table{width:100%;border-collapse:collapse}.invoice-print th,.invoice-print td{border:1px solid #bbb;padding:9px;white-space:normal;vertical-align:top}.invoice-print th{background:#eee;color:#111}.invoice-print th:nth-child(2){width:45%}.invoice-total{display:flex;justify-content:space-between;border-top:2px solid #333;margin-top:22px;padding-top:12px;font-size:13pt}.draft-foot{font-size:9pt;color:#555;margin-top:45px}}.duplicate-panel{margin:1.25rem 0;padding:1rem;border:1px solid #c7d9dd;border-radius:.7rem;background:#f7fafb}.duplicate-panel p{margin:.4rem 0 1rem;color:#52707b}.duplicate-row{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.65rem 0;border-top:1px solid #dbe6e9}.duplicate-row label{display:flex;align-items:center;gap:.6rem;flex:1;min-width:15rem}.duplicate-row small{width:100%;color:#995c00}.revision-reason{padding:.8rem;margin:.75rem 0;border:1px solid #d99b31;border-radius:.5rem;background:#fff7e8}.revision-reason label{display:block;margin:.6rem 0}.revision-reason textarea{display:block;width:100%;min-height:4rem;margin-top:.35rem}.cancelled-notice{margin:1rem 0;padding:1rem;border:1px solid #cf8585;border-radius:.55rem;background:#fff4f4;color:#712b2b}.cancelled-notice p{margin:.4rem 0}.invoice-cancel-actions{margin:1rem 0}.invoice-cancel-actions small{display:block;margin:.35rem 0;color:#995c00}.cancel-form{margin-top:.8rem;padding:1rem;border:1px solid #d6a0a0;border-radius:.5rem;background:#fff9f9}.cancel-form label{display:block;margin:.5rem 0}.cancel-form textarea{display:block;width:100%;min-height:4rem;margin-top:.35rem}.bank-allocation-form{margin-top:1.5rem;padding:1.1rem;border:1px solid #c7d9dd;border-radius:.7rem;background:#f7fafb}.bank-allocation-form h3{margin:0 0 .4rem}.bank-allocation-form p,.bank-candidates p{color:#526e78;font-size:13px}.bank-allocation-form label{display:grid;gap:.35rem;margin:.8rem 0;font-size:13px;font-weight:600}.bank-allocation-form label:has(input[type=checkbox]){display:flex;align-items:center;font-weight:400}.bank-allocation-form input:not([type=checkbox]),.bank-allocation-form select,.bank-allocation-form textarea{width:100%;max-width:600px}.bank-allocation-form textarea{min-height:70px;padding:10px 11px;border:1px solid #cbd9dc;border-radius:7px;font:inherit}.bank-candidates{margin:1.5rem 0;padding:1rem;border:1px solid #d9e5e7;border-radius:8px}.customer-aliases{color:#526e78;font-size:13px}.customer-list-title{margin-top:28px}.customer-balance-list{margin-top:16px;border:1px solid #d9e5e7;border-radius:10px;overflow:hidden}.customer-balance-columns,.customer-balance-row{display:grid;grid-template-columns:minmax(60px,.58fr) minmax(85px,.72fr) repeat(5,minmax(0,1fr));gap:12px;align-items:start;padding:11px 14px}.customer-balance-columns{background:#edf3f4;color:#526e78;font-size:11px;font-weight:700}.customer-balance-columns span,.customer-balance-cell{min-width:0;overflow-wrap:anywhere}.customer-balance-group{border-top:1px solid #d9e5e7}.customer-balance-group:first-of-type{border-top:0}.customer-balance-name{display:flex;justify-content:space-between;gap:10px;width:100%;padding:11px 14px;border-radius:0;background:#f7fafb;color:#173d4a;text-align:left;overflow-wrap:anywhere}.customer-balance-name:hover{background:#e8f3f2;color:#075f56}.customer-balance-name span{font-size:11px;white-space:nowrap;color:#087f72}.customer-balance-row+.customer-balance-row{border-top:1px dashed #d9e5e7}.customer-balance-cell{font-size:12px;font-variant-numeric:tabular-nums}.customer-balance-cell strong{display:block;font-size:13px}.customer-balance-cell.currency strong{color:#087f72}.customer-balance-cell.balance strong{color:#173d4a}.customer-balance-cell small{display:block;color:#9a611b;margin-top:3px}.customer-balance-label{display:none}@media(max-width:1250px){.customer-balance-columns{display:none}.customer-balance-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:15px}.customer-balance-label{display:block;color:#66818a;font-size:11px;margin-bottom:3px}}@media(max-width:550px){.customer-balance-row{grid-template-columns:1fr 1fr}.customer-balance-cell strong{font-size:12px}}.customer-bank-summary{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:16px;padding:16px;border:1px solid #cbdfe3;border-radius:9px;background:#f3f8f9}.customer-bank-summary strong,.customer-bank-summary span{display:block}.customer-bank-summary span{margin-top:5px;color:#526e78;font-size:12px;line-height:1.5}.customer-bank-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.customer-bank-actions button{font-size:12px}@media(max-width:1000px){.customer-bank-summary{display:block}.customer-bank-actions{margin-top:12px}}.counterparty-groups{margin-top:16px;max-height:360px;overflow:auto;border:1px solid #d9e5e7;border-radius:8px}.counterparty-group{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #e7eded}.counterparty-group:last-child{border-bottom:0}.counterparty-group b,.counterparty-group small{display:block}.counterparty-group small{margin-top:4px;color:#66818a}.counterparty-group button{flex-shrink:0}.counterparty-description{white-space:normal;min-width:240px;max-width:480px;overflow-wrap:anywhere}.counterparty-totals{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;padding:12px;background:#f5f8f8;border-radius:8px}@media(max-width:650px){.counterparty-group{align-items:flex-start;flex-direction:column}}.bank-workspace-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 14px;margin-bottom:10px;scrollbar-width:thin}.bank-workspace-tabs button{flex:none;background:#e9f0f2;color:#285060;border:1px solid #d0dfe2;white-space:nowrap}.bank-workspace-tabs button:hover{background:#d9e9eb}.bank-workspace-tabs button.active{background:#087f72;border-color:#087f72;color:#fff}.bank-workspace-tabs button:focus-visible,.list-pager button:focus-visible{outline:3px solid #e2ae3a;outline-offset:2px}.list-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;color:#526e78;font-size:13px}.list-pager>div{display:flex;align-items:center;gap:10px}.list-pager button{padding:7px 10px}@media(max-width:650px){.list-pager{align-items:flex-start;flex-direction:column}}:root{font-family:Segoe UI Variable,Segoe UI,Inter,Arial,sans-serif;color:#19313d;background:#f1f5f5;--ink:#19313d;--muted:#5e7781;--line:#d8e5e5;--teal:#087f72;--teal-dark:#08685f;--navy:#102f3c}body{background:linear-gradient(145deg,#edf5f3 0,#f6f8f8 430px,#f2f5f6)}button,input,select,textarea{font:inherit}button{transition:background-color .15s ease,box-shadow .15s ease,transform .15s ease}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #e9bd63;outline-offset:2px}.shell{min-height:100dvh;align-items:stretch}.shell>aside{background:linear-gradient(175deg,#0d303e,#123844 72%,#0d2935);box-shadow:8px 0 30px #102e3b12;padding-top:24px;z-index:10}.shell>aside .brand{padding-bottom:24px}.brandmark{background:linear-gradient(145deg,#19bfa6,#078b83);box-shadow:0 6px 18px #04aa9a37}.shell>aside nav{gap:5px}.shell>aside nav button{min-height:46px;font-weight:600;border:1px solid transparent;border-radius:10px}.shell>aside nav button span:first-child{width:20px;flex:none;font-size:18px}.shell>aside nav button .nav-label{width:auto;flex:1;font-size:13px;line-height:1.3}.shell>aside nav button:hover{background:#ffffff16}.shell>aside nav button.active{background:#d9f4ee;color:#0a534e;border-color:#b5e8db;box-shadow:0 4px 14px #041b1a1a}.sidebar-toggle{background:#ffffff16;border:1px solid #ffffff24;border-radius:9px}.sidebar-toggle:hover{background:#ffffff28}.shell>main{width:100%;max-width:1600px;padding:36px clamp(22px,3vw,54px) 80px}.page-header{align-items:flex-end;padding:0 2px 2px;margin-bottom:24px}.eyebrow{color:#658189;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}h1{font-size:clamp(27px,2.3vw,38px);letter-spacing:-.035em;line-height:1.15;color:#102f3c}h2{color:#163744;letter-spacing:-.015em}.badge{background:#e1f4ed;color:#09685d;border-color:#b6e1d3;white-space:nowrap}.card{border:1px solid #dfe8e8;border-radius:16px;padding:clamp(17px,2vw,26px);box-shadow:0 8px 26px #183d4610,0 1px 3px #183d4607;margin-bottom:18px}.card>h2{margin-bottom:15px}.card>p{line-height:1.55;max-width:1000px}.warning{border-radius:13px;box-shadow:0 4px 20px #956c1910;background:linear-gradient(100deg,#fff7e4,#fffaf0)}.stats{gap:14px}.stats .card{background:linear-gradient(155deg,#fff 55%,#eaf6f2);min-height:125px}.stats strong{color:#0b5155;font-size:clamp(29px,2.5vw,40px);letter-spacing:-.04em}.notice{border-left:4px solid #168c84;background:#e9f7f3;border-radius:8px}input,select,textarea{border-color:#c8d9dc;border-radius:9px;min-height:42px}input:focus,select:focus,textarea:focus{border-color:#0b978a}input[type=file]{background:#fbfefe;border-color:#b7d6d6}button{background:var(--teal);border-radius:9px;min-height:40px}button:hover{background:var(--teal-dark)}.table-link{color:#08756f;text-decoration:none;text-align:left;min-height:auto}.table-link:hover{color:#034d4a;text-decoration:underline}.tablewrap{border:1px solid #e3ecec;border-radius:10px}.tablewrap table{font-variant-numeric:tabular-nums}.tablewrap th{background:#edf4f4;color:#496873;font-size:12px;letter-spacing:.01em}.tablewrap td,.tablewrap th{padding:12px 13px}.tablewrap tbody tr:hover{background:#f6faf9}.list-controls{padding:10px;background:#f4f8f8;border:1px solid #e2eded;border-radius:10px}.list-controls input,.list-controls select{background:#fff}.rows>div{gap:12px;align-items:center}.rows>div b{font-variant-numeric:tabular-nums;white-space:nowrap}.overview-more{margin-top:16px;background:#e5f3f0;color:#08685f}.overview-more:hover{background:#d4ebe5}.customer-detail,.customer-profile,.review-editor,.bank-allocation-form{border-radius:13px}.customer-balance-list{border-radius:12px}.customer-balance-name{background:#f0f7f6}.customer-balance-name:hover{background:#dff0eb}.bank-workspace-tabs{padding-bottom:8px;margin-bottom:14px}.bank-workspace-tabs button{border-radius:999px;padding:10px 16px}.bank-workspace-tabs button.active{box-shadow:0 5px 15px #087f722c}.bank-workspace-tabs{scrollbar-width:none}.bank-workspace-tabs::-webkit-scrollbar{display:none}.invoice-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.invoice-list-head h2{margin:0}.invoice-imports summary{font-size:15px;font-weight:750;color:#15515a;list-style:none;cursor:pointer}.invoice-imports summary:after{content:"▾";float:right;color:#087f72}.invoice-imports[open] summary:after{content:"▴"}.invoice-import-option{padding-top:16px;margin-top:16px;border-top:1px solid #e1eaea}.invoice-import-option h3{font-size:14px;margin:0 0 7px}.invoice-import-option p{color:var(--muted);font-size:13px}.modal-backdrop{background:#092532b8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.draft-modal{border:1px solid #e0eaea;box-shadow:0 26px 90px #071b2770}.modal-head{position:sticky;top:-24px;z-index:2;padding:5px 0 12px;background:#fff;border-bottom:1px solid #e4eded;margin-bottom:14px}.modal-head button{flex-shrink:0}.mobile-topbar,.mobile-bottom-nav,.mobile-close,.mobile-menu-backdrop{display:none}@media(max-width:1050px){.shell>aside{width:76px;padding-left:8px;padding-right:8px}.shell>aside .brand{padding:0 10px 20px}.shell>aside .brand-copy,.shell>aside .nav-label{display:none}.shell>aside nav button{justify-content:center;padding:12px}.shell>aside .sidebar-toggle{text-align:center;margin:0 3px 16px;font-size:0}.shell>aside .sidebar-toggle:after{content:"☰";font-size:17px}.shell>main{padding:28px 24px 64px}}@media(max-width:720px){html,body,#root{min-width:0;width:100%}.shell{display:block;min-height:100dvh}.mobile-topbar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:25;height:62px;padding:8px 15px;background:#102f3cf2;color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 4px 18px #09253221}.mobile-topbar .brandmark{width:34px;height:34px;font-size:22px;flex-shrink:0}.mobile-topbar strong{font-size:15px;letter-spacing:.13em;white-space:nowrap}.mobile-topbar strong small{font-size:9px;font-weight:600;letter-spacing:.1em;color:#a8d6d0}.mobile-topbar button{margin-left:auto;background:#ffffff18;border:1px solid #ffffff31;color:#fff;min-height:38px;padding:7px 13px}.mobile-menu-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:29;background:#071e29a8;border:0;border-radius:0;width:100%;height:100%;padding:0}.shell>aside,.sidebar-collapsed.shell>aside{display:flex;position:fixed;top:0;bottom:0;left:0;z-index:30;width:min(82vw,315px);height:100dvh;padding:22px 14px;transform:translate(-105%);transition:transform .22s ease;box-shadow:16px 0 45px #04151b42;overflow-y:auto}.shell>aside.mobile-open{transform:translate(0)}.shell>aside .brand,.sidebar-collapsed.shell>aside .brand{padding:0 12px 20px}.shell>aside .brand-copy,.shell>aside .nav-label,.sidebar-collapsed.shell>aside .brand-copy,.sidebar-collapsed.shell>aside .nav-label{display:block}.shell>aside nav,.sidebar-collapsed.shell>aside nav{display:grid;overflow:visible}.shell>aside nav button,.sidebar-collapsed.shell>aside nav button{justify-content:flex-start;white-space:normal;padding:12px 14px;font-size:14px}.shell>aside .sidebar-toggle{display:none}.mobile-close{display:block;order:-1;align-self:flex-end;background:#ffffff18;color:#fff;margin:0 0 15px;min-height:36px;font-size:12px}.shell>main{width:100%;padding:22px 14px calc(96px + env(safe-area-inset-bottom));margin:0}.page-header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.page-header .eyebrow{font-size:9px;line-height:1.4}.page-header h1{font-size:26px;margin-top:5px}.page-header .badge{font-size:10px;padding:6px 8px}.card{border-radius:14px;padding:17px;margin-bottom:14px}.card h2{font-size:17px}.warning{padding:15px 17px;font-size:13px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats .card{min-height:105px;padding:14px}.stats strong{font-size:27px;margin-top:8px}.stats span{font-size:11px;line-height:1.35;display:block}form:not(.draft-form){display:grid;grid-template-columns:minmax(0,1fr);gap:10px}form:not(.draft-form)>input,form:not(.draft-form)>select,form:not(.draft-form)>button{width:100%;min-width:0}input,select,textarea{font-size:16px;min-width:0;max-width:100%}.list-controls{display:grid;grid-template-columns:1fr;gap:8px;padding:10px}.invoice-list-head{align-items:stretch;flex-direction:column}.invoice-list-head button{align-self:flex-start}.list-controls input,.list-controls select{width:100%;min-width:0}.row-actions{flex-wrap:wrap}.rows>div{align-items:flex-start;flex-direction:column;gap:5px}.rows>div b{font-size:16px}.review{flex-direction:column;gap:6px}.review span{text-align:left;overflow-wrap:anywhere}.data-table{border:0;overflow:visible}.data-table table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}.data-table thead{display:none}.data-table tbody{display:grid;gap:10px}.data-table tbody tr{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 13px #183d460a;padding:8px 12px}.data-table tbody tr:hover{background:#fff}.data-table td{display:grid;grid-template-columns:minmax(85px,35%) minmax(0,1fr);align-items:start;gap:8px;padding:8px 0;border-bottom:1px solid #eef2f2;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.data-table td:last-child{border-bottom:0}.data-table td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.035em;padding-top:2px}.data-table td .row-actions{justify-content:flex-start}.data-table td button{min-height:32px;max-width:100%;white-space:normal;text-align:left}.customer-detail{padding:12px;margin:16px 0}.customer-balance-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.customer-balance-cell{min-width:0}.customer-balance-cell strong{font-size:13px;overflow-wrap:anywhere}.customer-bank-actions button{width:100%}.counterparty-groups{max-height:none}.counterparty-group{align-items:stretch;flex-direction:column;gap:8px}.counterparty-group button{align-self:flex-start}.bank-workspace-tabs{margin-left:-14px;margin-right:-14px;padding:2px 14px 12px;scroll-snap-type:x proximity}.bank-workspace-tabs button{scroll-snap-align:start;min-height:42px}.list-pager{align-items:stretch}.list-pager>div{justify-content:space-between}.modal-backdrop{padding:0;align-items:end;-webkit-backdrop-filter:none;backdrop-filter:none}.draft-modal,.detail-modal,.detail-modal.expanded{width:100%;height:min(94dvh,100%);max-height:94dvh;padding:16px 14px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;box-shadow:0 -16px 50px #071b2770}.modal-head{top:-16px;padding:5px 0 10px;gap:8px}.modal-head h2{font-size:18px;line-height:1.3}.modal-head p{font-size:11px;overflow-wrap:anywhere}.modal-actions{flex-direction:row;flex-wrap:wrap;gap:5px}.modal-actions button,.modal-head button{padding:8px 10px;font-size:12px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.detail-grid>div{padding:10px}.review-fields{grid-template-columns:1fr}.review-editor,.bank-allocation-form{padding:13px}.draft-form{grid-template-columns:1fr}.draft-lines{min-width:0}.draft-lines .tablewrap{overflow-x:auto}.draft-lines table{min-width:640px}.preview-scroll,.docx-preview{max-height:50dvh}.mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:24;height:calc(64px + env(safe-area-inset-bottom));padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d7e4e4;box-shadow:0 -5px 24px #1339441a}.mobile-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:0;min-height:52px;padding:3px 1px;color:#607982;background:transparent;border-radius:10px}.mobile-bottom-nav button.active{background:#e1f3ee;color:#087267}.mobile-bottom-nav button span{font-size:20px;line-height:1}.mobile-bottom-nav button small{font-size:10px;font-weight:700;white-space:nowrap}}@media(max-width:390px){.page-header .badge{display:none}.stats strong{font-size:24px}.data-table td{grid-template-columns:minmax(72px,32%) minmax(0,1fr)}}@media print{.mobile-topbar,.mobile-bottom-nav,.mobile-menu-backdrop{display:none!important}}@media screen{html[data-theme]{--font-ui: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;--font-title: var(--font-ui);--page: #f6f8fb;--surface: #ffffff;--surface-soft: #f5f7fa;--surface-hover: #eef3fb;--ink: #172133;--muted: #65738a;--line: #e1e6ee;--line-strong: #cbd4e0;--accent: #2458e8;--accent-hover: #1944bd;--accent-soft: #eaf0ff;--accent-ink: #ffffff;--nav-bg: #f2f5f9;--nav-ink: #637187;--warn-bg: #faf4e8;--warn-line: #e6d7b8;--warn-ink: #806226;--danger-bg: #fdf0f0;--danger-line: #e9c6c6;--danger-ink: #ac3838;--success-bg: #edf6f0;--success-ink: #35644a;--overlay: #101c35a3;--radius: 12px;--field-radius: 7px;--teal: var(--accent);--teal-dark: var(--accent-hover);--navy: var(--ink);background:var(--page);color:var(--ink);color-scheme:light;font-family:var(--font-ui);font-size:14px;-webkit-font-smoothing:antialiased}html[data-theme=atolye]{--font-title: Georgia, "Times New Roman", serif;--page: #f8f7f3;--surface: #fffefa;--surface-soft: #f2f1ec;--surface-hover: #edeee6;--ink: #202923;--muted: #6d736c;--line: #e2e1d9;--line-strong: #cacdc2;--accent: #205648;--accent-hover: #173f35;--accent-soft: #e5eee7;--accent-ink: #fffefa;--nav-bg: #fffefa;--nav-ink: #626b62;--warn-bg: #f7f1e4;--warn-line: #e4d7ba;--warn-ink: #7d602f;--overlay: #18271ed0;--radius: 8px;--field-radius: 5px}html[data-theme=grafit]{--page: #131a22;--surface: #1a232e;--surface-soft: #202b38;--surface-hover: #273447;--ink: #edf0f7;--muted: #abb7c9;--line: #2f3a4a;--line-strong: #48566c;--accent: #a6b4ff;--accent-hover: #c0caff;--accent-soft: #2c3658;--accent-ink: #17213e;--nav-bg: #10171f;--nav-ink: #acb8cc;--warn-bg: #322d25;--warn-line: #5d5037;--warn-ink: #e0c589;--danger-bg: #38272e;--danger-line: #6a424d;--danger-ink: #f4a8b4;--success-bg: #203d36;--success-ink: #a5d9c5;--overlay: #03070dcc;--radius: 10px;color-scheme:dark}html[data-theme] body{background:var(--page);color:var(--ink)}html[data-theme] .shell{background:var(--page);font-family:var(--font-ui)}html[data-theme] .shell>aside{background:var(--nav-bg);color:var(--nav-ink);border-right:1px solid var(--line);box-shadow:none;flex-shrink:0;width:228px;padding:30px 15px 22px}html[data-theme] .shell>main{max-width:1680px;padding:42px clamp(24px,3vw,58px) 70px;align-self:flex-start}html[data-theme] .brand{gap:10px;padding:0 13px 30px;color:var(--ink)}html[data-theme] .brandmark{border-radius:8px;width:33px;height:33px;font-size:21px;color:var(--accent);background:var(--accent-soft);box-shadow:none}html[data-theme] .brand-copy b{font-size:23px;letter-spacing:-.8px;font-weight:650;line-height:1.15}html[data-theme] .brand-copy small{color:var(--muted);letter-spacing:.04em;font-size:10px;margin-top:5px}html[data-theme] .shell>aside nav{gap:6px}html[data-theme] .shell>aside nav button{color:var(--nav-ink);padding:12px 14px;border-radius:7px;border:1px solid transparent;min-height:47px;background:transparent;box-shadow:none;gap:11px}html[data-theme] .shell>aside nav button .nav-label{color:inherit;width:auto;font-size:13px;font-weight:500;line-height:1.35}html[data-theme] .shell>aside nav button span:first-child{display:grid;place-items:center;width:21px;height:21px}html[data-theme] .shell>aside nav button svg{width:20px;height:20px;flex-shrink:0}html[data-theme] .shell>aside nav button:hover{background:var(--surface-hover);color:var(--ink)}html[data-theme] .shell>aside nav button.active{background:var(--accent-soft);color:var(--accent);border-color:transparent;box-shadow:none}html[data-theme] .shell>aside nav button.active .nav-label{font-weight:650}html[data-theme] .shell .sidebar-toggle{color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:6px;font-weight:500;font-size:11px;min-height:32px;padding:7px 10px;margin-bottom:23px}html[data-theme] .shell .sidebar-toggle:hover{background:var(--surface-hover);color:var(--ink)}html[data-theme] .asidefoot{color:var(--muted);border-color:var(--line)}html[data-theme] .page-header{align-items:center;gap:22px;margin-bottom:29px}html[data-theme] .page-header-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;flex-shrink:0}html[data-theme] .eyebrow{color:var(--muted);letter-spacing:1.15px;font-size:9px;font-weight:500;line-height:1.6}html[data-theme] .shell h1{font-family:var(--font-title);color:var(--ink);font-size:clamp(30px,2.7vw,41px);font-weight:650;letter-spacing:-.035em;line-height:1.2;margin-top:7px}html[data-theme] .shell h2,html[data-theme] .shell h3{color:var(--ink);font-family:var(--font-ui);font-weight:650;letter-spacing:-.015em}html[data-theme] .shell h2{font-size:17px}html[data-theme] .shell h3{font-size:16px}html[data-theme] .badge{background:var(--success-bg);color:var(--success-ink);border:1px solid transparent;padding:6px 9px;font-size:10px;font-weight:600}html[data-theme] .card{background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:none;padding:24px;margin-bottom:21px}html[data-theme] .card>p,html[data-theme] .invoice-import-option p{color:var(--muted);line-height:1.65}html[data-theme] .stats{gap:16px;margin-bottom:1px}html[data-theme] .stats .card{background:var(--surface);min-height:117px;border-radius:var(--radius)}html[data-theme] .stats span{color:var(--muted);font-size:12px}html[data-theme] .stats strong{color:var(--ink);font-family:var(--font-ui);font-size:clamp(28px,2.5vw,37px);font-weight:600;letter-spacing:-.045em;font-variant-numeric:tabular-nums}html[data-theme] .warning{background:var(--warn-bg);border:1px solid var(--warn-line);border-left:3px solid var(--warn-line);color:var(--warn-ink);box-shadow:none;border-radius:var(--radius);padding:15px 19px;font-size:12px;line-height:1.55}html[data-theme] .warning small{color:var(--warn-ink);opacity:.9}html[data-theme] .notice{color:var(--accent);background:var(--accent-soft);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--field-radius);font-size:13px}html[data-theme] .shell button,html[data-theme] .theme-picker-dialog button{font-family:var(--font-ui)}html[data-theme] .shell button{background:var(--accent);color:var(--accent-ink);border-radius:var(--field-radius);min-height:38px;padding:10px 15px;font-weight:600;box-shadow:none}html[data-theme] .shell button:hover{background:var(--accent-hover)}html[data-theme] :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}html[data-theme] .shell :is(input,select,textarea){background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--field-radius);min-height:40px;font-family:var(--font-ui);box-shadow:none;accent-color:var(--accent)}html[data-theme] .shell :is(input,select,textarea):focus{border-color:var(--accent)}html[data-theme] .shell :is(input,textarea)::placeholder{color:var(--muted);opacity:.9}html[data-theme] .shell :is(input[type=checkbox],input[type=radio]){min-width:16px;width:16px;height:16px;min-height:16px;flex-shrink:0}html[data-theme] .shell input[type=file]{background:var(--surface-soft);border:1px dashed var(--line-strong);padding:17px}html[data-theme] .shell input[type=file]::file-selector-button{color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--field-radius);padding:7px 12px;margin-right:12px;font:inherit;cursor:pointer}html[data-theme] .shell :is(.draft-form label,.review-fields label,.bank-allocation-form label){color:var(--muted)}html[data-theme] .list-controls{padding:0;background:transparent;border:0;gap:10px;margin-bottom:19px}html[data-theme] .list-controls :is(input,select){background:var(--surface)}html[data-theme] .tablewrap{border:1px solid var(--line);border-radius:var(--field-radius);background:var(--surface)}html[data-theme] .tablewrap :is(th,td){padding:14px 13px;border-color:var(--line);font-variant-numeric:tabular-nums}html[data-theme] .tablewrap th{color:var(--muted);background:var(--surface-soft);font-size:11px;font-weight:600;letter-spacing:.01em}html[data-theme] .tablewrap td{color:var(--ink);font-size:12px}html[data-theme] .tablewrap tbody tr:last-child td{border-bottom:0}html[data-theme] .tablewrap tbody tr:hover{background:var(--surface-hover)}html[data-theme] .shell .table-link{color:var(--accent);background:transparent;padding:0;min-height:auto;text-decoration:none;font-size:inherit;font-weight:600}html[data-theme] .shell .table-link:hover{background:transparent;text-decoration:underline}html[data-theme] .shell :is(.row-actions button,.preview-zoom button,.preview-pages button,.list-pager button,.modal-head button){background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);font-size:12px;padding:8px 11px;min-height:33px}html[data-theme] .shell :is(.row-actions button,.preview-zoom button,.preview-pages button,.list-pager button,.modal-head button):hover{background:var(--surface-hover);border-color:var(--line-strong)}html[data-theme] .rows>div,html[data-theme] .review,html[data-theme] .shell details{border-color:var(--line)}html[data-theme] .rows>div{padding:17px 0;font-size:13px}html[data-theme] .rows b{font-family:var(--font-ui);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}html[data-theme] .rows em{display:inline-block;color:var(--accent);background:var(--accent-soft);padding:3px 6px;border-radius:4px;font-size:10px}html[data-theme] .shell :is(.review span,.review-reason,.duplicate-row small,.invoice-cancel-actions small){color:var(--warn-ink)}html[data-theme] .shell summary,html[data-theme] .invoice-imports summary{color:var(--ink)}html[data-theme] .invoice-imports summary:after{content:"⌄";color:var(--muted);font-size:17px}html[data-theme] .invoice-imports[open] summary:after{content:"⌃"}html[data-theme] .invoice-import-option{border-color:var(--line)}html[data-theme] .shell .overview-more{color:var(--accent);background:var(--accent-soft)}html[data-theme] .shell .bank-workspace-tabs{border-bottom:1px solid var(--line);gap:2px;padding-bottom:0;margin-bottom:23px}html[data-theme] .shell .bank-workspace-tabs button{color:var(--muted);background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;padding:12px 17px;min-height:44px}html[data-theme] .shell .bank-workspace-tabs button:hover{color:var(--ink);background:var(--surface-soft)}html[data-theme] .shell .bank-workspace-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);background:transparent}html[data-theme] .list-pager{color:var(--muted);font-size:12px}html[data-theme] :is(.customer-profile,.customer-detail,.review-editor,.duplicate-panel,.bank-allocation-form,.bank-candidates,.customer-bank-summary,.customer-balance-list,.counterparty-groups){color:var(--ink);background:var(--surface);border-color:var(--line);border-radius:var(--radius)}html[data-theme] :is(.review-editor,.bank-allocation-form,.duplicate-panel,.customer-bank-summary){background:var(--surface-soft)}html[data-theme] :is(.customer-detail,.customer-profile){padding:22px}html[data-theme] :is(.customer-detail p,.customer-profile-fields b,.customer-bank-summary span,.customer-aliases,.bank-allocation-form p,.bank-candidates p,.duplicate-panel p,.counterparty-group small){color:var(--muted)}html[data-theme] .customer-profile pre,html[data-theme] .counterparty-totals{background:var(--surface-soft);color:var(--ink)}html[data-theme] .profile-pending{background:var(--warn-bg);color:var(--warn-ink)}html[data-theme] .profile-confirmed{background:var(--success-bg);color:var(--success-ink)}html[data-theme] .shell .customer-cards button{background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-theme] .shell .customer-cards button.selected,html[data-theme] .shell .customer-cards button:hover{background:var(--accent-soft);border-color:var(--accent)}html[data-theme] .customer-cards small{color:var(--muted)}html[data-theme] .customer-balance-columns{color:var(--muted);background:var(--surface-soft);padding-top:14px;padding-bottom:14px;font-weight:600}html[data-theme] .customer-balance-group,html[data-theme] .customer-balance-row+.customer-balance-row{border-color:var(--line)}html[data-theme] .shell .customer-balance-name{border-radius:0;background:var(--surface-soft);color:var(--ink);padding:13px 14px;font-size:13px}html[data-theme] .shell .customer-balance-name:hover{color:var(--accent);background:var(--surface-hover)}html[data-theme] .customer-balance-name span,html[data-theme] .customer-balance-cell.currency strong,html[data-theme] .customer-balance-cell.balance strong{color:var(--accent)}html[data-theme] .customer-balance-row{padding-top:16px;padding-bottom:16px}html[data-theme] .customer-balance-cell strong{font-family:var(--font-ui);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}html[data-theme] .customer-balance-label{color:var(--muted)}html[data-theme] .customer-balance-cell small{color:var(--warn-ink)}html[data-theme] .counterparty-group{padding:16px;border-color:var(--line)}html[data-theme] .counterparty-group b{font-size:13px;font-weight:600}html[data-theme] .duplicate-row{border-color:var(--line)}html[data-theme] .revision-reason{background:var(--warn-bg);border-color:var(--warn-line)}html[data-theme] :is(.cancelled-notice,.cancel-form){color:var(--danger-ink);background:var(--danger-bg);border-color:var(--danger-line)}html[data-theme] .review-error,html[data-theme] [role=alert]{color:var(--danger-ink)}html[data-theme] .modal-backdrop{background:var(--overlay);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}html[data-theme] .draft-modal{color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 24px 100px #00000038}html[data-theme] .modal-head{background:var(--surface);border-color:var(--line);padding-bottom:16px}html[data-theme] .modal-head p{color:var(--muted)}html[data-theme] .detail-grid>div{background:var(--surface-soft);border-radius:var(--field-radius);border:1px solid var(--line);padding:14px}html[data-theme] .detail-grid dt{color:var(--muted);font-size:11px}html[data-theme] .detail-grid dd{color:var(--ink);font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:15px;font-weight:600}html[data-theme] .draft-line-actions strong{color:var(--ink)}html[data-theme] .preview-scroll{background:var(--surface-soft);border:1px solid var(--line);border-radius:var(--field-radius)}html[data-theme] .preview-note{color:var(--muted)}html[data-theme] .docx-preview,html[data-theme] .preview-scroll canvas{color-scheme:light;background:#fff;color:#172d38}html[data-theme] .docx-preview{border-color:#cbd9dc}html[data-theme] .docx-preview :is(h1,h2,h3){color:#172d38;font-family:var(--font-ui)}html[data-theme] .docx-preview h1{font-size:30px}html[data-theme] .docx-preview h2{font-size:17px}html[data-theme] .docx-preview h3{font-size:16px}html[data-theme] .docx-preview :is(td,th){color:#172d38;border-color:#cbd9dc}html[data-theme] .docx-preview p{color:#172d38}html[data-theme] .theme-picker{display:flex}html[data-theme] .shell .theme-picker-trigger{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);padding:9px 12px;min-height:37px;font-size:12px;font-weight:500;white-space:nowrap}html[data-theme] .shell .theme-picker-trigger:hover{background:var(--surface-hover)}html[data-theme] .theme-picker-trigger svg{width:17px;height:17px}html[data-theme] .theme-picker-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:24px;background:var(--overlay);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}html[data-theme] .theme-picker-dialog{color:var(--ink);background:var(--surface);width:min(810px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;border:1px solid var(--line-strong);border-radius:16px;padding:28px;box-shadow:0 25px 90px #00000035;font-family:var(--font-ui)}html[data-theme] .theme-picker-header{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;margin-bottom:23px}html[data-theme] .theme-picker-header h2{color:var(--ink);font-size:23px;font-weight:600;letter-spacing:-.02em;margin:0 0 7px}html[data-theme] .theme-picker-header p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}html[data-theme] .theme-picker-header button{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:6px;padding:8px 11px;font-size:12px;min-height:34px;flex-shrink:0}html[data-theme] .theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}html[data-theme] .theme-option{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 8px 15px;min-width:0;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:10px;cursor:pointer;transition:border-color .15s}html[data-theme] .theme-option:hover{background:var(--surface-soft);border-color:var(--accent)}html[data-theme] .theme-option:is(.selected,[aria-checked=true],[aria-pressed=true]){border:2px solid var(--accent);padding:7px 7px 14px;background:var(--surface)}html[data-theme] .theme-option-name{display:flex;align-items:center;justify-content:space-between;margin:13px 7px 5px;color:var(--ink);font-size:15px;font-weight:650}html[data-theme] .theme-option-name svg{color:var(--accent);width:18px;height:18px}html[data-theme] .theme-option-description{display:block;color:var(--muted);margin:0 7px;font-size:12px;font-weight:400;line-height:1.5}html[data-theme] .theme-preview{position:relative;display:flex;gap:10px;height:130px;overflow:hidden;border-radius:5px;background:#fff;border:1px solid #e0e5ef;padding-right:10px}html[data-theme] .theme-preview-nav{display:block;width:27%;flex-shrink:0;background:#eef2f8;padding:19px 8px}html[data-theme] .theme-preview-nav:before,html[data-theme] .theme-preview-nav:after{content:"";display:block;height:6px;background:#a9b6cc;border-radius:2px;margin-bottom:12px;box-shadow:0 18px #d0d8e6,0 36px #d0d8e6}html[data-theme] .theme-preview-nav:after{display:none}html[data-theme] .theme-preview-main{display:block;position:relative;flex:1;min-width:0;margin-top:22px;height:13px;border-radius:2px;background:#26324b}html[data-theme] .theme-preview-main:before{content:"";position:absolute;top:26px;left:0;width:100%;height:22px;border-radius:3px;background:#eaf0ff;border-left:3px solid #2458e8}html[data-theme] .theme-preview-main:after{content:"";position:absolute;top:64px;left:0;width:100%;height:1px;background:#e1e6ee;box-shadow:0 13px #e1e6ee,0 26px #e1e6ee}html[data-theme] .theme-preview[data-preview=atolye]{background:#faf9f4;border-color:#e2e1d9;display:block;padding:0 12px}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-nav{width:auto;height:19px;margin:0 -12px;padding:0;background:#fffefa;border-bottom:1px solid #e2e1d9}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-nav:before{width:28px;height:4px;position:absolute;top:7px;left:12px;background:#205648;box-shadow:43px 0 #ced2c8,76px 0 #ced2c8,109px 0 #ced2c8}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-main{width:75%;margin-top:15px;height:12px;background:#353a30}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-main:before{background:#e5eee7;border-color:#205648;width:125%}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-main:after{background:#e2e1d9;width:125%;box-shadow:0 13px #e2e1d9,0 26px #e2e1d9}html[data-theme] .theme-preview[data-preview=grafit]{background:#1a232e;border-color:#303b4a}html[data-theme] .theme-preview[data-preview=grafit] .theme-preview-nav{background:#10171f}html[data-theme] .theme-preview[data-preview=grafit] .theme-preview-nav:before{background:#a6b4ff;box-shadow:0 18px #394659,0 36px #394659}html[data-theme] .theme-preview[data-preview=grafit] .theme-preview-main{background:#dbe0ec}html[data-theme] .theme-preview[data-preview=grafit] .theme-preview-main:before{background:#2c3658;border-color:#a6b4ff}html[data-theme] .theme-preview[data-preview=grafit] .theme-preview-main:after{background:#344154;box-shadow:0 13px #344154,0 26px #344154}html[data-theme] .theme-picker-status{margin:20px 0 0;min-height:20px;color:var(--muted);font-size:12px;line-height:1.6}html[data-theme=atolye] .shell h1{font-weight:400;font-size:clamp(33px,3.1vw,46px);letter-spacing:-.045em}html[data-theme=atolye] .brand-copy b{font-family:var(--font-title);font-size:30px;font-weight:400;letter-spacing:-1.3px}html[data-theme=atolye] .brand-copy b:after{content:"✦";color:#aa9067;font-size:17px;vertical-align:top;margin-left:3px}html[data-theme=grafit] .card{border-color:var(--line)}html[data-theme=grafit] .stats strong{color:#f4f5ff}html[data-theme=grafit] .customer-balance-name{background:#202b38}}@media screen and (min-width:721px){html[data-theme] .shell.sidebar-collapsed>aside{width:76px;padding-left:8px;padding-right:8px}html[data-theme] .shell.sidebar-collapsed>aside .brand{padding:0 12px 26px}html[data-theme] .shell.sidebar-collapsed>aside nav button{justify-content:center;padding:12px}html[data-theme=atolye] .shell,html[data-theme=atolye] .shell.sidebar-collapsed{display:block}html[data-theme=atolye] .shell>aside,html[data-theme=atolye] .shell.sidebar-collapsed>aside{width:100%;height:auto;min-height:77px;display:flex;flex-direction:row;align-items:center;gap:30px;position:sticky;top:0;padding:14px clamp(24px,3vw,58px);z-index:30;border-right:0;border-bottom:1px solid var(--line);box-shadow:none}html[data-theme=atolye] .shell>aside .brand,html[data-theme=atolye] .shell.sidebar-collapsed>aside .brand{padding:0;min-width:148px;flex-shrink:0}html[data-theme=atolye] .shell>aside .brandmark{display:none}html[data-theme=atolye] .shell>aside .brand-copy{display:flex;align-items:baseline;gap:7px}html[data-theme=atolye] .shell>aside .brand-copy small{font-size:11px;letter-spacing:0;margin:0;color:#998364}html[data-theme=atolye] .shell>aside .sidebar-toggle{display:none}html[data-theme=atolye] .shell>aside nav{display:flex;align-items:stretch;gap:3px;flex:1;overflow-x:auto;min-width:0;scrollbar-width:thin}html[data-theme=atolye] .shell>aside nav button,html[data-theme=atolye] .shell.sidebar-collapsed>aside nav button{padding:12px 11px;min-height:48px;border-radius:0;border:0;border-bottom:2px solid transparent;justify-content:center;flex:0 0 auto;gap:7px;background:transparent}html[data-theme=atolye] .shell>aside nav button span:first-child{display:none}html[data-theme=atolye] .shell>aside nav button .nav-label{display:block;white-space:nowrap;font-size:12px}html[data-theme=atolye] .shell>aside nav button.active{border-bottom-color:var(--accent);background:transparent}html[data-theme=atolye] .shell>main{max-width:1540px;padding-top:39px}}@media screen and (min-width:721px)and (max-width:1100px){html[data-theme] .shell{display:flex}html[data-theme] .shell>aside{width:76px;height:100dvh;position:sticky;padding-left:8px;padding-right:8px}html[data-theme] .shell>aside .brand{padding:0 12px 26px}html[data-theme] .shell>aside .brand-copy,html[data-theme] .shell>aside .nav-label{display:none}html[data-theme] .shell>aside nav{display:grid;overflow:visible}html[data-theme] .shell>aside nav button{justify-content:center;padding:12px}html[data-theme] .shell>aside .sidebar-toggle{font-size:0;text-align:center;margin-left:3px;margin-right:3px}html[data-theme] .shell>aside .sidebar-toggle:after{content:"☰";font-size:16px}html[data-theme] .shell>main{padding:28px 24px 64px}html[data-theme=atolye] .shell,html[data-theme=atolye] .shell.sidebar-collapsed{display:block}html[data-theme=atolye] .shell>aside,html[data-theme=atolye] .shell.sidebar-collapsed>aside{flex-wrap:wrap;gap:12px;padding:19px 24px 0}html[data-theme=atolye] .shell>aside nav{width:100%;flex-basis:100%;display:flex;overflow-x:auto}html[data-theme=atolye] .shell>aside .brand-copy,html[data-theme=atolye] .shell.sidebar-collapsed>aside .brand-copy{display:flex}html[data-theme=atolye] .shell>aside .brand-copy b{font-size:28px}html[data-theme=atolye] .shell>aside nav button{flex-grow:1}html[data-theme=atolye] .shell>aside nav button .nav-label{display:block}html[data-theme=atolye] .shell>main{padding-top:30px}}@media screen and (max-width:720px){html[data-theme] .shell{display:block}html[data-theme] .mobile-topbar{display:flex;height:62px;padding:11px 17px;background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;gap:9px}html[data-theme] .mobile-topbar .brandmark{background:var(--accent-soft);color:var(--accent);width:31px;height:31px;font-size:20px}html[data-theme] .mobile-topbar strong{font-size:19px;letter-spacing:-.6px;font-weight:650}html[data-theme] .mobile-topbar strong small{color:var(--muted);font-size:9px;letter-spacing:.02em;font-weight:400}html[data-theme] .shell .mobile-topbar button{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:7px 10px;min-height:33px;font-size:12px}html[data-theme] .shell>aside,html[data-theme] .shell.sidebar-collapsed>aside{position:fixed;top:0;bottom:0;left:0;height:100dvh;width:min(83vw,315px);display:flex;flex-direction:column;padding:20px 16px;z-index:45;background:var(--nav-bg);box-shadow:16px 0 50px #00000024;transform:translate(-105%);overflow-y:auto}html[data-theme] .shell>aside.mobile-open{transform:translate(0)}html[data-theme] .shell>aside .brand{padding:0 12px 26px}html[data-theme] .shell>aside .brand-copy,html[data-theme] .shell>aside .nav-label{display:block}html[data-theme] .shell>aside nav{display:grid;overflow:visible;gap:6px}html[data-theme] .shell>aside nav button{justify-content:flex-start;padding:13px;min-height:48px}html[data-theme] .shell>aside nav button .nav-label{font-size:14px}html[data-theme] .shell>aside .sidebar-toggle{display:none}html[data-theme] .shell .mobile-close{display:block;color:var(--ink);background:var(--surface-soft);border:1px solid var(--line);min-height:32px;padding:7px 11px}html[data-theme] .shell .mobile-menu-backdrop{background:var(--overlay);border-radius:0;z-index:44}html[data-theme] .shell>main{padding:25px 16px calc(92px + env(safe-area-inset-bottom))}html[data-theme] .page-header{align-items:flex-start;gap:12px;margin-bottom:23px;flex-wrap:wrap}html[data-theme] .page-header>div:first-child{flex:1;min-width:160px}html[data-theme] .page-header h1{font-size:28px;line-height:1.15;margin-top:5px}html[data-theme] .page-header .eyebrow{font-size:8px;letter-spacing:.6px}html[data-theme] .page-header-tools{gap:6px}html[data-theme] .page-header .badge{display:none}html[data-theme] .shell .theme-picker-trigger{font-size:11px;padding:8px 10px;min-height:34px}html[data-theme] .card{border-radius:var(--radius);padding:17px;margin-bottom:15px}html[data-theme] .card h2{font-size:16px;line-height:1.4}html[data-theme] .stats{gap:10px}html[data-theme] .stats .card{padding:15px;min-height:108px}html[data-theme] .stats strong{font-size:29px}html[data-theme] .stats span{font-size:11px}html[data-theme] .warning{font-size:12px;padding:14px 16px}html[data-theme] .shell :is(input,select,textarea){min-height:44px;font-size:16px}html[data-theme] .shell :is(input[type=checkbox],input[type=radio]){min-height:18px;width:18px;height:18px}html[data-theme] .shell button{min-height:42px}html[data-theme] .list-controls{gap:9px}html[data-theme] .data-table{background:transparent;border:0}html[data-theme] .data-table tbody{gap:11px}html[data-theme] .data-table tbody tr{background:var(--surface);border-color:var(--line);border-radius:var(--field-radius);box-shadow:none;padding:8px 12px}html[data-theme] .data-table tbody tr:hover{background:var(--surface)}html[data-theme] .data-table td,html[data-theme] .data-table tbody tr:last-child td{padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}html[data-theme] .data-table td:last-child,html[data-theme] .data-table tbody tr:last-child td:last-child{border-bottom:0}html[data-theme] .data-table td:before{color:var(--muted);font-size:10px;text-transform:none;letter-spacing:0;font-weight:500}html[data-theme] .data-table td button{min-height:35px}html[data-theme] .shell .bank-workspace-tabs{padding:0 16px;margin-left:-16px;margin-right:-16px;margin-bottom:20px}html[data-theme] .shell .bank-workspace-tabs button{padding:13px 12px;font-size:12px}html[data-theme] .rows>div{gap:9px;font-size:13px;padding:16px 0}html[data-theme] .rows b{font-size:18px}html[data-theme] :is(.customer-detail,.customer-profile,.review-editor,.bank-allocation-form){padding:15px}html[data-theme] .customer-balance-list{border:0;overflow:visible;background:transparent}html[data-theme] .customer-balance-group{background:var(--surface);border:1px solid var(--line);border-radius:var(--field-radius);overflow:hidden;margin-bottom:14px}html[data-theme] .customer-balance-group:first-of-type{border-top:1px solid var(--line)}html[data-theme] .shell .customer-balance-name{padding:15px;font-size:14px;background:var(--surface);border-bottom:1px solid var(--line);align-items:baseline}html[data-theme] .customer-balance-row{gap:16px 12px;padding:15px}html[data-theme] .customer-balance-cell strong{font-size:14px}html[data-theme] .customer-balance-cell.balance strong{font-size:16px}html[data-theme] .customer-balance-label{margin-bottom:5px;font-size:10px}html[data-theme] .customer-bank-summary{padding:15px}html[data-theme] .modal-backdrop{padding:0}html[data-theme] .draft-modal,html[data-theme] .detail-modal,html[data-theme] .detail-modal.expanded{border-radius:16px 16px 0 0;padding:18px 15px calc(22px + env(safe-area-inset-bottom));max-height:94dvh;height:min(94dvh,100%);border-bottom:0}html[data-theme] .modal-head{top:-18px;padding-top:4px}html[data-theme] .modal-head h2{font-size:17px}html[data-theme] .detail-grid>div{padding:11px}html[data-theme] .detail-grid dd{font-size:14px}html[data-theme] .mobile-bottom-nav{background:var(--surface);border-top:1px solid var(--line);box-shadow:none}html[data-theme] .shell .mobile-bottom-nav button{color:var(--muted);background:transparent;border-radius:6px;padding:3px 1px;min-height:52px}html[data-theme] .shell .mobile-bottom-nav button.active{color:var(--accent);background:var(--accent-soft)}html[data-theme] .mobile-bottom-nav button svg{width:21px;height:21px}html[data-theme] .mobile-bottom-nav button small{font-size:9px;font-weight:500}html[data-theme] .theme-picker-backdrop{padding:12px}html[data-theme] .theme-picker-dialog{padding:21px;max-height:calc(100dvh - 24px);border-radius:13px}html[data-theme] .theme-picker-header{gap:12px;margin-bottom:19px}html[data-theme] .theme-picker-header h2{font-size:22px}html[data-theme] .theme-options{grid-template-columns:1fr;gap:11px}html[data-theme] .theme-option{display:grid;grid-template-columns:108px minmax(0,1fr);grid-template-rows:auto 1fr;align-items:center;column-gap:12px;padding:9px}html[data-theme] .theme-option:is(.selected,[aria-checked=true],[aria-pressed=true]){padding:8px}html[data-theme] .theme-preview{grid-row:1 / 3;height:88px;gap:7px;padding-right:7px}html[data-theme] .theme-preview-nav{width:24%;padding:15px 5px}html[data-theme] .theme-preview-main{margin-top:18px;height:8px}html[data-theme] .theme-preview-main:before{top:18px;height:15px}html[data-theme] .theme-preview-main:after{top:43px;box-shadow:0 10px #e1e6ee,0 20px #e1e6ee}html[data-theme] .theme-preview[data-preview=atolye]{padding:0 8px}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-nav{margin:0 -8px;height:14px}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-nav:before{height:3px;width:18px;top:5px;left:8px;box-shadow:27px 0 #ced2c8,50px 0 #ced2c8,73px 0 #ced2c8}html[data-theme] .theme-preview[data-preview=atolye] .theme-preview-main{height:8px;margin-top:12px}html[data-theme] .theme-option-name{margin:9px 0 4px;font-size:16px}html[data-theme] .theme-option-description{margin:0 0 6px;align-self:start;font-size:11px;line-height:1.5}html[data-theme] .theme-picker-status{font-size:11px;margin-top:16px}html[data-theme=atolye] .mobile-topbar .brandmark{display:none}html[data-theme=atolye] .mobile-topbar strong{font-family:var(--font-title);font-size:25px;font-weight:400}html[data-theme=atolye] .mobile-topbar strong small{font-family:var(--font-ui);color:#998364;font-size:10px}html[data-theme=atolye] .page-header h1{font-size:33px}html[data-theme=atolye] .shell .mobile-bottom-nav button.active{background:transparent;position:relative}html[data-theme=atolye] .shell .mobile-bottom-nav button.active:after{content:"";position:absolute;bottom:0;width:26px;height:2px;background:var(--accent)}}@media screen and (prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *:before,html[data-theme] *:after{scroll-behavior:auto!important;transition:none!important}}@media screen{.bank-customer-select{display:grid;gap:7px;min-width:0}.bank-customer-select select{width:100%;min-width:0;text-overflow:ellipsis}.bank-customer-select small{white-space:normal;color:var(--muted);line-height:1.45;font-size:11px}.bank-customer-select .review-error{color:var(--danger, #b83e44)}.bank-row-description{white-space:normal;overflow-wrap:anywhere}.bank-row-description summary{cursor:pointer;color:var(--ink);line-height:1.6}.bank-row-description p{color:var(--muted);line-height:1.6;margin:8px 0 0}.bank-list-scope{font-size:12px;color:var(--muted)}}@media screen and (min-width:721px){.bank-receipts-list .tablewrap table{table-layout:fixed;min-width:1060px;width:100%}.bank-receipts-list .tablewrap :is(th,td){white-space:normal;overflow-wrap:anywhere;vertical-align:top}.bank-receipts-list .tablewrap :is(th,td):nth-child(1){width:9%}.bank-receipts-list .tablewrap :is(th,td):nth-child(2){width:9%}.bank-receipts-list .tablewrap :is(th,td):nth-child(3){width:7%}.bank-receipts-list .tablewrap :is(th,td):nth-child(4){width:25%}.bank-receipts-list .tablewrap :is(th,td):nth-child(5){width:26%}.bank-receipts-list .tablewrap :is(th,td):nth-child(6){width:15%}.bank-receipts-list .tablewrap :is(th,td):nth-child(7){width:9%}}@media screen and (max-width:720px){.bank-receipts-list .data-table td:nth-child(4){grid-template-columns:1fr}}.review-editor{margin:20px 0;padding:18px;border:1px solid #d5e2e5;border-radius:10px;background:#f8fbfb}.review-editor h3{margin:0 0 8px}.review-reason{color:#825c19}.review-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.review-fields label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#46636d}.review-fields input,.review-fields select,.review-fields textarea{width:100%;min-width:0}.review-fields textarea{min-height:66px;border:1px solid #cbd9dc;border-radius:7px;padding:10px}.review-note{grid-column:1/-1}.review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:14px}.review-actions label{display:flex;align-items:center;gap:7px;font-size:13px}.review-actions input{min-width:0}.review-error{color:#ae2222;font-weight:700}.customer-profile{background:#fff;border:1px solid #d8e5e7;border-radius:10px;padding:18px;margin:18px 0}.customer-profile-head{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.customer-profile-head h3{margin:0 0 8px}.profile-pending,.profile-confirmed{display:inline-block;padding:5px 9px;border-radius:20px;font-size:12px;font-weight:700}.profile-pending{background:#fff1d6;color:#805416}.profile-confirmed{background:#ddf5ec;color:#126d57}.customer-profile-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:18px 0}.customer-profile-fields>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.customer-profile-fields b{font-size:12px;color:#63808a}.customer-profile-fields span{white-space:pre-wrap}.customer-profile-fields textarea,.customer-profile-fields input{width:100%;min-width:0;border:1px solid #cbd9dc;border-radius:7px;padding:9px;font:inherit}.customer-profile-fields textarea{min-height:72px}.customer-profile-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.customer-profile-actions label{display:flex;align-items:center;gap:7px;font-size:13px}.customer-profile-actions input{min-width:0}.customer-profile pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f4f7f8;padding:12px;border-radius:7px}
