/* Verbatim copy of the \3c style> block in esaas-billing-desk-v18.html. Do not edit or reformat: the frozen screenshots depend on it. */
:root{--nav:#0b1830;--nav2:#101f3c;--paper:#fff;--bg:#f3f6fb;--ink:#14223a;--muted:#526580;--sub:#61738d;--line:#dce4ef;--blue:#245ce5;--blue-dark:#1a4acd;--cyan:#4adef5;--r:12px;--shadow:0 2px 6px #172f5710}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 "Aptos","Segoe UI",system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button[disabled]{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #2563eb;outline-offset:3px}h1,h2,h3,p{margin:0}svg.icon{width:18px;height:18px;flex:none;vertical-align:middle}svg.icon.sm{width:15px;height:15px}.muted{color:var(--muted)}.small{font-size:12px}.mono,.num,.amount{font-variant-numeric:tabular-nums}.mono{font-family:ui-monospace,Consolas,monospace}.num{text-align:right}.nowrap{white-space:nowrap}
.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;z-index:5;background:#10263b;color:#dce9f4;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid #071b2e}
.brand{display:flex;align-items:center;gap:9px;flex:none;min-height:57px;padding:8px 12px;background:var(--desk-title);border-bottom:1px solid #0b2034}
.logo{display:grid;place-items:center;background:#e7f0f7;color:#284f70;width:30px;height:30px;border-radius:2px;border:1px solid #c1d3e2;flex:none}
.logo svg{width:18px;height:18px}
.brand strong{color:#fff;display:block;font-size:19px;line-height:1.02;letter-spacing:-.35px}
.brand small{display:block;font-size:9px;letter-spacing:1.05px;margin-top:4px;color:#e2edf7;font-weight:700}
.nav{padding:6px 7px 10px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5c7d99 #10263b}
.navtitle{padding:7px 6px 4px;color:#b3cadd;font-size:9px;letter-spacing:1px;font-weight:750;border-top:1px solid #35536b;margin:7px 0 2px}
.navtitle:first-child{border-top:0;margin-top:0;padding-top:5px}
.nav button{width:100%;min-height:30px;display:flex;align-items:center;gap:7px;text-align:left;margin:1px 0;padding:4px 6px;border:1px solid transparent;border-left-width:3px;border-radius:2px;background:transparent;color:inherit;font-size:12px;font-weight:550;line-height:1.2}
.nav button svg{width:15px;height:15px;color:#b2c8dc}
.nav button:hover{background:#203e59;border-color:#3c5c77;color:#fff}
.nav button[aria-current=page],.nav button.active{background:var(--desk-title);border-color:#4980a8;border-left-color:#a4d8f6;color:#fff;box-shadow:none;font-weight:700}
.nav button[aria-current=page] svg,.nav button.active svg{color:#e5f3ff}
.nav button:focus-visible{outline:2px solid #b6e2ff;outline-offset:-3px}
.nav button .tag{margin-left:auto;border:1px solid #6384a0;background:#1c3650;color:#edf6ff;padding:0 4px;border-radius:2px;font-size:10px;flex:none}
.sidefoot{display:flex;align-items:center;gap:7px;flex:none;min-height:43px;padding:6px 10px;margin:0;border-top:1px solid #42607a;border-radius:0;background:#142d45}
.sidefoot svg{width:15px;height:15px;color:#bfd8ed}
.sidefoot strong,.sidefoot small{display:block}
.sidefoot strong{color:#edf5ff;font-size:10px}
.sidefoot small{font-size:9px;color:#bed0e1}
.main{min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid var(--line);min-height:62px;padding:0 27px;position:sticky;top:0;z-index:4}.crumb,.topright{display:flex;align-items:center;gap:11px}.crumb{color:var(--muted);font-size:12px}.crumb b{color:var(--ink)}.topright{gap:12px}.demo{font-size:10px;letter-spacing:.45px;font-weight:800;background:#eaf4ff;color:#245799;padding:5px 8px;border-radius:6px;white-space:nowrap}.avatar{display:grid;place-items:center;width:33px;height:33px;color:#254eb9;font-weight:750;background:#eaf0ff;border:1px solid #d7e3ff;border-radius:10px;font-size:11px}.menu-toggle{display:none!important}.scrim{display:none}.screen{width:100%;max-width:1640px;align-self:center;padding:24px 27px 19px;min-height:calc(100vh - 108px)}.footbar{margin-top:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:11px 27px;font-size:11px;color:var(--muted);background:#f9fbff}.green-dot,.blue-dot,.gray-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#26a675;margin-right:5px}.blue-dot{background:#325feb}.gray-dot{background:#9baecb}
.heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:18px}.heading h1{font-size:29px;letter-spacing:-.95px;line-height:1.18;margin:3px 0 5px}.heading p{color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#244fb1;font-weight:800;text-transform:uppercase}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn{min-height:36px;border:1px solid var(--line);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:#243b5a;padding:6px 11px;font-size:12px;font-weight:700;white-space:nowrap}.btn:hover{background:#edf3ff;border-color:#b6c9eb}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 5px #245ce540}.btn.primary:hover{background:var(--blue-dark)}.btn.ghost{background:transparent;border-color:transparent}.btn.slim{min-height:29px;padding:4px 8px;font-size:11px}.btn.icononly{padding:6px;width:35px}.btn.danger{color:#a52840}.link{appearance:none;border:0;background:none;padding:0;color:#204ebc;font:inherit;font-weight:700;text-align:left}.link:hover{text-decoration:underline}.filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filter select,.filter input{min-height:35px}.filter input[type=search]{width:min(265px,100%)}input,select,textarea{color:var(--ink);background:#fff;border:1px solid #cbd7e8;border-radius:6px;padding:7px 9px;min-width:0}input:read-only{background:#f4f7fd;color:#516583}textarea{resize:vertical;width:100%}kbd{background:#f2f6fc;border:1px solid #dce5f1;border-bottom-width:2px;padding:1px 6px;border-radius:4px;color:#2a466f;font-size:11px;white-space:nowrap}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:13px 14px;box-shadow:var(--shadow);min-width:0}.stathead{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#465c79;font-size:12px;font-weight:700}.statmark{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#edf2ff;color:#2a5dda}.statmark.teal{background:#dbf7ef;color:#107758}.statmark.amber{background:#fff1df;color:#9b5b09}.statmark.violet{background:#f0eaff;color:#7146b8}.stat h2{font-size:clamp(18px,2vw,24px);letter-spacing:-.55px;margin:5px 0 3px;white-space:nowrap}.stat h2 span{font-size:11px;letter-spacing:0;color:#58708d;margin-right:4px}.statfoot{font-size:11px;color:var(--muted)}
.dashgrid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:14px;margin-bottom:15px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);min-width:0}.panelhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 15px 10px}.panelhead h2{font-size:15px;letter-spacing:-.2px}.panelhead p{font-size:11px;color:var(--muted);margin-top:2px}.legend{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:10px;justify-content:flex-end;padding-top:3px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.chart{padding:0 10px 2px;position:relative}.chart svg{width:100%;height:auto;display:block;max-height:193px;overflow:visible}.chart svg text{fill:#526986;font-size:10px}.chart svg .chart-month{cursor:pointer;outline:none}.chart svg .chart-month:focus rect.hit,.chart svg .chart-month:hover rect.hit{fill:#eff4ff}.chart svg .chart-month.current text{font-weight:800;fill:#1b4ab6}.chartcaption{min-height:29px;padding:4px 15px 8px;color:var(--muted);font-size:11px}.queue{padding:0 14px 7px}.queue-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;border-top:1px solid #e9eef6;padding:8px 0;width:100%;background:#fff;color:var(--ink);border-left:0;border-right:0;border-bottom:0;text-align:left}.queue-row:hover{background:#f7faff}.qdate{display:grid;text-align:center;place-content:center;width:37px;height:35px;border-radius:7px;background:#edf3ff;color:#2c55ac;line-height:1.05;font-size:9px;font-weight:800}.qdate b{font-size:15px}.qdate.late{background:#fff0e5;color:#a24c17}.queue-row strong{display:block;font-size:12px}.queue-row small{display:block;color:var(--muted);font-size:10px}.queue-row .num{font-weight:750;font-size:12px}
.toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 14px;border-bottom:1px solid var(--line)}.tablewrap{overflow:auto}.tablewrap table{width:100%;border-collapse:collapse;min-width:640px;font-size:12px}.tablewrap th{padding:8px 13px;white-space:nowrap;text-align:left;background:#eef3fa;color:#435a76;font-size:10px;font-weight:800;letter-spacing:.52px;text-transform:uppercase}.tablewrap td{padding:9px 13px;border-top:1px solid #e7edf6;vertical-align:middle}.tablewrap td.num,.tablewrap th.num{text-align:right}.tablewrap tbody tr:nth-child(even){background:#fbfcff}.tablewrap tbody tr:hover{background:#f0f5ff}.tablewrap td small{display:block;color:var(--muted);font-size:10px}.tablewrap td.empty{text-align:center;padding:23px 14px}.badge{display:inline-flex;align-items:center;gap:4px;background:#eef2f8;color:#4a607a;padding:3px 7px;border-radius:5px;font-size:10px;font-weight:750;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.paid,.accepted,.active{--badge-theme:#e3f6ee;--badge-text:#12734f}.overdue,.expired,.declined,.cancelled{--badge-theme:#fff0ed;--badge-text:#a3323a}.part-paid,.paused{--badge-theme:#fff3dd;--badge-text:#885511}.open,.sent,.converted,.issued{--badge-theme:#eaf0ff;--badge-text:#2d55b6}.badge{background:var(--badge-theme,#edf1f7);color:var(--badge-text,#4a607a)}.tablefoot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 14px;color:var(--muted);border-top:1px solid var(--line);font-size:11px}.tablefoot button{margin-left:4px}.strip{padding:10px 13px;border:1px solid #d7e4ff;background:#edf4ff;color:#35547d;border-radius:8px;font-size:12px;margin-bottom:14px}.strip strong{color:#214b9f}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report-grid .tablewrap table{min-width:440px}.spacer{margin-top:15px}
dialog{border:1px solid #cbd8eb;border-radius:14px;padding:0;width:min(930px,calc(100% - 24px));max-height:calc(100dvh - 30px);color:var(--ink);box-shadow:0 16px 65px #0e234f57;background:#fff}dialog.narrow{width:min(520px,calc(100% - 24px))}dialog::backdrop{background:#0b18358c}.dlghead{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:15px 19px 13px;border-bottom:1px solid var(--line);background:#f7faff}.dlghead h2{font-size:20px;letter-spacing:-.4px}.dlghead p{font-size:12px;color:var(--muted);margin-top:3px}.dlgbody{padding:15px 19px}.dlgfoot{padding:10px 19px;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);background:#f7faff}.dlgfoot .grow{flex:1;color:var(--muted);font-size:11px}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.formgrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:flex;gap:5px;flex-direction:column;font-weight:700;font-size:12px}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;font-weight:400}.sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 8px}.sectiontitle h3{font-size:13px}.editorgrid{border:1px solid var(--line);border-radius:8px;max-height:254px}.editorgrid table{min-width:690px}.editorgrid td,.editorgrid th{padding:6px}.editorgrid th:first-child,.editorgrid td:first-child{padding-left:9px}.editorgrid input,.editorgrid select{width:100%;font-size:12px;padding:5px}.editorgrid select{min-width:104px}.editorgrid input.name{min-width:130px}.editorgrid input[type=number]{width:72px;text-align:right}.editorgrid input.rate{width:96px}.totals{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-top:11px}.totals dl,.docsum{margin:0 0 0 auto;min-width:215px}.totals dl div,.docsum div{display:flex;justify-content:space-between;gap:16px;padding:4px 0;color:var(--muted);font-size:12px}.totals dt,.totals dd,.docsum dt,.docsum dd{margin:0}.totals dl div:last-child,.docsum div:last-child{font-weight:800;color:var(--ink);border-top:1px solid var(--line);margin-top:3px;padding-top:7px}.error{color:#a12839;font-size:12px;display:block;min-height:17px;margin-top:7px}.error:empty{min-height:0;margin:0}.infogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.infogrid div{padding:8px 10px;background:#f0f5fc;border-radius:7px;font-size:12px}.infogrid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:750;letter-spacing:.4px}.docnotes{white-space:pre-wrap}.toast{display:none;position:fixed;right:20px;bottom:20px;background:#112c53;color:#fff;border:1px solid #345b90;padding:10px 14px;border-radius:9px;box-shadow:var(--shadow);z-index:15;max-width:calc(100% - 40px)}.toast.on{display:block}.printarea{display:none}.printhead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:2px solid #17365e;padding-bottom:14px;margin-bottom:18px}.printhead h1{font-size:25px}.printarea footer{margin-top:32px;padding-top:10px;border-top:1px solid #bbc9dc}
@media(max-width:1120px){.shell{grid-template-columns:194px minmax(0,1fr)}.screen{padding-left:17px;padding-right:17px}.topbar,.footbar{padding-left:17px;padding-right:17px}.stats{gap:8px}.stat{padding:10px}.stat h2{font-size:19px}.dashgrid{gap:10px}}
@media(max-width:850px){.shell{display:block}.sidebar{display:none;position:fixed;width:228px;left:0;top:0;height:100dvh;z-index:9}.shell.nav-open .sidebar{display:flex}.shell.nav-open .scrim{display:block;position:fixed;inset:0;background:#0b183578;z-index:8;border:0}.menu-toggle{display:inline-flex!important}.report-grid{grid-template-columns:1fr}}
@media(max-width:620px){.screen{padding:16px 11px}.topbar{padding:0 10px;min-height:52px}.crumb,.topright{gap:7px}.crumb .wide{display:none}.heading{align-items:flex-start;flex-direction:column;gap:9px}.heading h1{font-size:25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashgrid{grid-template-columns:1fr}.formgrid,.formgrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.dlgbody,.dlghead,.dlgfoot{padding-left:11px;padding-right:11px}.infogrid{grid-template-columns:repeat(2,minmax(0,1fr))}.footbar{padding:10px;flex-wrap:wrap}.chart svg{max-height:none}.topright .demo{font-size:9px}.filter input[type=search]{width:min(180px,100%)}}
@media print{@page{size:A4;margin:14mm}body{background:white;color:#111}body>*{display:none!important}body>.printarea{display:block!important;font-size:12px}.printarea .tablewrap{overflow:visible}.printarea .tablewrap table{min-width:0}.printarea .tablewrap th,.printarea .infogrid div{background:#eff3f8!important;print-color-adjust:exact}.printarea .tablewrap tr{break-inside:avoid}.printarea .docsum{width:230px}}
[hidden]{display:none!important}.acct-label{display:inline-flex;align-items:center;gap:6px;padding-inline-start:calc(var(--depth)*14px);white-space:nowrap}.acct-label svg,.tree-leaf{color:#4069a9}.tree-leaf{font-size:15px}.acct-check{flex-direction:row;align-items:center}.acct-check input{width:auto}.vouchergrid table{min-width:570px}.vouchergrid select{min-width:190px}.vouchergrid input[type=number]{width:116px}.vouchergrid th:nth-child(3){text-align:left}.voucher-journal table,.account-ledger-table table{min-width:480px}.voucher-sign{margin-top:45px;display:flex;gap:28px;justify-content:space-between}.voucher-sign span{min-width:100px;flex:1;border-top:1px solid #879ab1;padding-top:7px;text-align:center}.dlgbody>.field:has(#book-account){margin-bottom:10px}.nav button[data-id="Cash & Bank Vouchers"]{line-height:1.18}
.screen.oracle-screen{padding:13px 12px 24px;max-width:none;background:#eaf0f4;min-height:calc(100vh - 99px);font-size:12px;align-self:stretch}
.oracle-screen .erp-window,.oracle-screen .erp-tabs{border:1px solid #aebdca;border-radius:2px;background:#f3f7fa;overflow:hidden;margin:0 0 8px;box-shadow:0 1px 2px #243b5a1c}
.oracle-screen .erp-crumb,.erp-toolbar,.erp-hint,.erp-band{padding:5px 8px}.oracle-screen .erp-crumb{padding:6px 8px;background:#f6f8fa;color:#223d53}
.erp-title{color:#fff;background:linear-gradient(#366590,#214a71);padding:5px 8px;display:flex;justify-content:space-between;align-items:center;min-height:29px}
.erp-title h1{font-size:13px;line-height:1.3;font-weight:700;letter-spacing:0}.erp-title span{color:#eff6fa;font-size:10px}
.erp-toolbar,.erp-tabs,.erp-subtools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.erp-toolbar{padding:4px 8px;background:#f4f7f9}.erp-hint{color:#465c6b;border-top:1px solid #cbd7df;font-size:10px;background:#f6f9fb}
.erp-btn{background:linear-gradient(#fff,#f1f5f8);border:1px solid #b2c1ce;color:#233a50;border-radius:2px;min-height:27px;padding:2px 8px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font:inherit;font-size:11px;font-weight:550}
.erp-btn:hover{background:#e1ecf7;border-color:#7e9eb9}.erp-btn kbd{border:none;background:transparent;padding:0;margin-left:2px;font-size:10px;font-weight:650;color:inherit}.erp-btn.sel{background:linear-gradient(#386991,#214b73);border-color:#224769;color:#fff}.erp-btn.primary-erp{background:linear-gradient(#d49a5c,#ae681f);border-color:#9f672e;color:white;font-weight:700}.erp-btn.save-erp{background:linear-gradient(#43806c,#286151);border-color:#23594a;color:white;font-weight:700}
.erp-tabs{justify-content:space-between;padding:4px 6px}.erp-tabs>div{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.erp-tabs input,.erp-tabs select{min-height:26px;border-radius:2px;background:#f9fbfc;border-color:#b3c3d2;font-size:11px;padding:4px 8px}.erp-tabs input{width:clamp(190px,28%,295px)}
.erp-band{background:linear-gradient(#e5edf4,#dbe6ef);color:#234057;border-bottom:1px solid #b2c1ce;font-size:11px;font-weight:700;min-height:25px}
.erp-counter{background:#d6e1eb;border:1px solid #b5c4d2;padding:0 4px;border-radius:2px;margin-left:4px;font-size:10px}
.erp-grid table{min-width:560px}.erp-grid table th{background:#d7e2ec;color:#385169;border-right:1px solid #bfcdd8;padding:4px 6px;font-size:9px;letter-spacing:.32px}
.erp-grid table td{background:#f9fbfd;border:1px solid #d2dee7;border-top:0;padding:5px 6px;font-size:11px}.erp-grid table td:first-child{border-left:0}.erp-grid table td:last-child{border-right:0}.erp-grid table tr:last-child td{border-bottom:0}.erp-grid tbody tr:nth-child(even) td{background:#f5f8fa}.erp-grid tbody tr:hover td{background:#edf5fb}.erp-grid .erp-btn{padding-inline:5px;min-height:25px}.erp-grid .erp-btn+ .erp-btn{margin-left:3px}
.erp-form{padding:10px 12px 11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 9px;background:#f0f5f9}.erp-field{display:flex;flex-direction:column;gap:4px;min-width:0}.erp-field>span{font-size:9px;font-weight:750;color:#3d566d;text-transform:uppercase;letter-spacing:.62px}.erp-field input,.erp-lines input{border:1px solid #b4c3cf;border-radius:2px;background:#fff;min-height:29px;padding:4px 7px;min-width:0;width:100%;font-size:12px}.erp-field input[readonly],.erp-lines input:disabled,.erp-field input:disabled{background:#f2f5f8;color:#3c5064;opacity:1}.erp-field input:focus,.erp-lines input:focus{outline:1px solid #34668f;outline-offset:0}.erp-money{grid-column:span 2}.erp-branch{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #bccad6;border-radius:2px;background:#f4f8fb;white-space:nowrap}@media(max-width:580px){.erp-branch{display:none}}
.erp-lov{position:relative;min-width:0}.erp-lov input{padding-right:24px}.erp-lov-arrow{position:absolute;right:0;top:0;bottom:0;width:24px;background:transparent;border:0;color:#3f5a70;font-size:16px;line-height:1}.erp-lov-arrow:hover{background:#ebf3fc}
.erp-lines-top{display:flex;justify-content:space-between;gap:7px;align-items:center;border-top:1px solid #aebdca;padding:6px;background:#eef4f8;font-size:10px;color:#304c62}.erp-lines-top span{font-size:9px;color:#566878}
.erp-grid .erp-lines{min-width:600px;table-layout:fixed;width:100%}.erp-grid .erp-lines td,.erp-grid .erp-lines th{padding:3px 4px}.erp-grid .erp-lines th:first-child,.erp-grid .erp-lines th:last-child{width:28px}.erp-rownum,.erp-remove{text-align:center}.erp-grid .erp-remove button{border:0;background:none;padding:2px;min-width:18px;color:#64778b}.erp-grid tfoot td{background:#edf3f8!important}
.erp-line-note{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-start;background:#f3f7fa;border-top:1px solid #c6d4df;min-height:24px;padding:4px 7px;font-size:10px;color:#435b6f}.erp-line-note span:last-child{margin-left:auto;font-weight:650}
.erp-inline-error{color:#a1263d;padding:4px 7px;font-size:11px}.erp-inline-error:empty{display:none}.erp-subtools{margin-top:8px}.erp-class-label{padding:5px 8px;background:#e8f0f7;border:1px solid #cfdeeb;color:#27425e;font-weight:650}
.erp-lookup-pop{position:fixed;z-index:16;border:1px solid #829cb4;background:#fff;box-shadow:0 7px 18px #14394b35;box-sizing:border-box}
.erp-lookup-scroll{position:relative;max-height:min(224px,var(--erp-lov-space,224px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#8ba4bb #edf3f8}
.erp-lookup-scroll>button{display:block;text-align:left;width:100%;padding:6px 8px;border:0;border-bottom:1px solid #e1e9ef;background:#fff;color:#173954;font-size:11px;line-height:1.32;overflow-wrap:anywhere}.erp-lookup-scroll>button:hover,.erp-lookup-scroll>button[aria-selected=true]{background:#e1edf8}.erp-lookup-scroll>p{padding:8px}.erp-picker-foot{background:#eef4f8;padding:4px 6px;font-size:10px}
.footbar.erp-statusbar{background:#102c47;color:#e6f4ff;border-top:1px solid #061a2c;min-height:24px;padding:4px 10px}.footbar.erp-statusbar kbd{background:transparent;color:#fff;border:0;padding:0;margin-left:5px}
@media(max-width:760px){.erp-form{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-money{grid-column:1/-1}.erp-lines-top{flex-wrap:wrap}.erp-tabs input{width:min(100%,250px)}.erp-subtools{gap:4px}}
/* Shared window, grid and form styling across Billing Desk. */
:root{--desk-workspace:#eaf0f4;--desk-surface:#f3f7fa;--desk-edge:#aebdca;--desk-rule:#c6d4df;--desk-head:#d7e2ec;--desk-band:linear-gradient(#e5edf4,#dbe6ef);--desk-button:linear-gradient(#fff,#f1f5f8);--desk-title:linear-gradient(#366590,#214a71)}
body,.main{background:var(--desk-workspace)}
.topbar{min-height:49px;padding-inline:12px;background:#f4f7fa;border-bottom-color:var(--desk-edge)}
.topbar .demo,.topbar .avatar{border-radius:2px;background:#e7eff6;color:#294b6a;border:1px solid #c0cfda}
.topbar .avatar{width:28px;height:28px}
.topbar .btn.icononly{min-height:28px;width:29px;border-radius:2px}
.screen.oracle-screen{background:var(--desk-workspace);min-height:0;flex:1}
.oracle-screen .erp-window,.oracle-screen .erp-tabs,.oracle-screen .panel{background:var(--desk-surface);border:1px solid var(--desk-edge);border-radius:2px;box-shadow:0 1px 2px #243b5a1c}
.erp-title{background:var(--desk-title)}
.erp-band{background:var(--desk-band)}
.oracle-screen .panelhead{align-items:center;padding:6px 8px;min-height:36px;gap:6px;background:var(--desk-band);border-bottom:1px solid #b2c1ce;color:#234057}
.oracle-screen .panelhead h2{font-size:12px;line-height:1.3;letter-spacing:0}
.oracle-screen .panelhead p{color:#435c72;font-size:10px;margin-top:2px}
.oracle-screen .panelhead select{max-width:46%;min-width:0}
.oracle-screen .toolbar{padding:5px 7px;gap:5px;border-bottom:1px solid #b2c1ce;background:#f4f7f9}
.oracle-screen .btn,#modal .btn{background:var(--desk-button);border-color:#b2c1ce;color:#233a50;border-radius:2px;box-shadow:none;min-height:27px;font-size:11px;font-weight:550;padding:3px 8px;gap:5px}
.oracle-screen .btn:hover,#modal .btn:hover{background:#e1ecf7;border-color:#7e9eb9;color:#1c374e}
.erp-btn.primary-erp,.oracle-screen .btn.primary,#modal .btn.primary{background:linear-gradient(#b87838,#8c4d15);border-color:#89501e;color:#fff;font-weight:700}
.erp-btn.primary-erp:hover,.oracle-screen .btn.primary:hover,#modal .btn.primary:hover{background:linear-gradient(#a76a2d,#7b3f0f)}
#modal .btn[type=submit].primary{background:linear-gradient(#43806c,#286151);border-color:#23594a}
#modal .btn[type=submit].primary:hover{background:linear-gradient(#397661,#224f44)}
.oracle-screen .btn.ghost,#modal .btn.ghost{background:transparent;border-color:transparent}
.oracle-screen .btn.ghost:hover,#modal .btn.ghost:hover{background:#e0eaf3;color:#203a52}
.oracle-screen .btn.danger,#modal .btn.danger{color:#9e2c40}
.oracle-screen .btn.slim,#modal .btn.slim{min-height:24px;padding:2px 6px}
.oracle-screen .btn.icononly,#modal .btn.icononly{width:28px;padding:3px}
.oracle-screen .filter,.oracle-screen .actions,#modal .actions{gap:5px}
.oracle-screen :is(input,select,textarea):not([type=checkbox]):not([type=radio]),#modal :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-radius:2px;border-color:#b4c3cf;color:#213c53}
.oracle-screen .filter :is(input,select),.oracle-screen .panelhead select,#modal .sectiontitle select{background:#f9fbfc;min-height:28px;padding:4px 7px;font-size:11px}
.oracle-screen .tablewrap th,#modal .tablewrap th{background:var(--desk-head);color:#385169;border-right:1px solid #bfcdd8;padding:4px 6px;font-size:9px;letter-spacing:.35px}
.oracle-screen .tablewrap td,#modal .tablewrap td{background:#f9fbfd;border:1px solid #d2dee7;border-top:0;padding:5px 6px;font-size:11px}
.oracle-screen .tablewrap td:first-child,#modal .tablewrap td:first-child{border-left:0}
.oracle-screen .tablewrap td:last-child,#modal .tablewrap td:last-child{border-right:0}
.oracle-screen .tablewrap tbody tr:nth-child(even) td,#modal .tablewrap tbody tr:nth-child(even) td{background:#f5f8fa}
.oracle-screen .tablewrap tbody tr:hover td,#modal .tablewrap tbody tr:hover td{background:#edf5fb}
.oracle-screen .tablewrap tr:last-child td,#modal .tablewrap tr:last-child td{border-bottom:0}
.oracle-screen .erp-grid .erp-lines th,.oracle-screen .erp-grid .erp-lines td{padding:3px 4px}
.oracle-screen .tablefoot{background:#edf3f8;border-top-color:#b2c1ce;padding:4px 7px}
.oracle-screen .link,#modal .link{color:#214f77}
.oracle-screen .badge,#modal .badge{border-radius:2px;padding:2px 5px}
.oracle-screen .strip,#modal .strip{padding:6px 8px;border-color:#b6c9db;background:#e7f0f7;border-radius:2px;margin-bottom:8px;color:#365571}
.oracle-screen .strip strong,#modal .strip strong{color:#244866}
.oracle-screen .stats,.oracle-screen .dashgrid,.oracle-screen .report-grid{gap:8px;margin-bottom:8px}
.oracle-screen .stat{border-radius:2px;border-color:var(--desk-edge);padding:0 0 6px;background:#f9fbfd;box-shadow:0 1px 2px #243b5a1c}
.oracle-screen .stathead{background:var(--desk-band);border-bottom:1px solid #b2c1ce;color:#234057;padding:3px 7px;font-size:11px;min-height:30px}
.oracle-screen .statmark{width:20px;height:20px;border-radius:2px;background:#eef4f9;flex:none}
.oracle-screen .stat h2{padding:0 7px;margin:4px 0 2px;font-size:clamp(17px,1.8vw,23px);color:#193b59;white-space:normal;overflow-wrap:anywhere}
.oracle-screen .statfoot{padding:0 7px;font-size:10px;line-height:1.35}
.oracle-screen .chart{background:#f9fbfd;padding:4px 10px 0}
.oracle-screen .chartcaption{border-top:1px solid var(--desk-rule);min-height:24px;padding:4px 7px}
.oracle-screen .queue{padding:0 7px}
.oracle-screen .queue-row{background:#f9fbfd;border-top-color:#d2dee7;padding:5px 0}
.oracle-screen .queue-row:first-child{border-top:0}
.oracle-screen .queue-row:hover{background:#edf5fb}
.oracle-screen .qdate{border-radius:2px;background:#e3edf5;color:#2c577e}
.oracle-screen .qdate.late{background:#fff0e5;color:#9e490c}
.oracle-screen .panel.spacer{margin-top:8px}
#modal{border:1px solid #879eb2;border-radius:2px;background:var(--desk-surface);box-shadow:0 12px 38px #102c475c}
#modal .dlghead.erp-title{align-items:center;padding:5px 9px;min-height:33px;color:#fff;border-bottom:1px solid #24476a}
#modal .dlghead h2{font-size:13px;font-weight:700;letter-spacing:0}
#modal .dlghead p{color:#edf4fa;font-size:11px;margin-top:2px}
#modal .dlghead .btn.ghost{color:#fff}
#modal .dlghead .btn.ghost:hover{background:#e2ebf4;color:#1b3b58}
#modal .dlgbody{padding:10px 12px;background:#f0f5f9}
#modal .dlgfoot{padding:6px 9px;background:#e9f0f6;border-top-color:#b2c1ce;gap:5px}
#modal .formgrid{gap:7px 9px}
#modal .field>span{font-size:10px;color:#3d566d;letter-spacing:.36px;text-transform:uppercase}
#modal .field :is(input,select,textarea):not([type=checkbox]):not([type=radio]){min-height:29px;padding:4px 7px;background:#fff}
#modal .field input[readonly]{background:#e9f0f6}
#modal .sectiontitle{background:var(--desk-band);border:1px solid #b6c7d6;padding:4px 7px;margin:10px 0 4px;flex-wrap:wrap}
#modal .sectiontitle h3{font-size:11px;color:#234057}
#modal .editorgrid{border-radius:2px;border-color:var(--desk-edge)}
#modal .infogrid>div{background:#f7fafc;border:1px solid #c1cfdb;border-radius:2px}
#modal :is(.totals dl,.docsum) div:last-child{border-top-color:#b2c1ce}
@media(max-width:620px){
 .topbar{padding-inline:8px}
 .screen.oracle-screen{padding:8px 6px 13px}
 .oracle-screen .panelhead{flex-wrap:wrap}
 .oracle-screen .panelhead select{max-width:100%}
 .oracle-screen .statfoot{overflow-wrap:anywhere}
 #modal .dlghead,#modal .dlgbody,#modal .dlgfoot{padding-inline:8px}
}
/* Color reference: the eSaaS POS dashboard. UI layout and actions stay the same. */
:root{
 --ink:#102a52;--muted:#526c91;--sub:#526c91;--line:#d6e3f7;
 --bg:#f1f6ff;--paper:#fff;--blue:#0866f5;--blue-dark:#0756e8;--cyan:#00bfff;
 --desk-workspace:#f1f6ff;--desk-surface:#fff;--desk-edge:#d6e3f7;--desk-rule:#d6e3f7;
 --desk-head:#eff6ff;--desk-band:#eff6ff;--desk-button:linear-gradient(#fff,#f5f9ff);
 --desk-title:linear-gradient(90deg,#061b42 0%,#075bf5 100%);
 --pos-section:#063b87;--pos-side-text:#e8f3ff;--pos-light-text:#e5efff;
 --pos-accent:#0866f5;--pos-chart-blue:#0866f5;--pos-chart-green:#009e60;
 --pos-active:linear-gradient(100deg,#0756e8,#0866f5 62%,#00bfff);
}
.sidebar{
 color:var(--pos-side-text);border-right-color:#031436;
 background:radial-gradient(90% 34% at 118% -6%,#006bff8c,transparent 58%),radial-gradient(68% 26% at -16% 24%,#062a72e6,transparent 64%),linear-gradient(#07275f 0%,#062a72 20%,#041a4a 50%,#031436 76%,#020c22 100%);
 box-shadow:inset -16px 0 28px #00103047;
}
.sidebar::after{
 content:"";position:absolute;inset:auto 0 0;height:150px;pointer-events:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 232 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='0' y2='1' gradientUnits='objectBoundingBox'%3E%3Cstop stop-color='%2322d3ee' stop-opacity='.56'/%3E%3Cstop offset='1' stop-color='%23021d4a' stop-opacity='.06'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 67C32 44 58 96 97 78S142 28 180 28 210 31 232 17V150H0Z' fill='url(%23g)' opacity='.55'/%3E%3Cpath d='M0 79C29 54 63 104 100 86S148 37 184 37 211 38 232 25' fill='none' stroke='%23128eff' stroke-opacity='.18' stroke-width='12'/%3E%3Cpath d='M0 82C29 57 61 110 101 92S147 44 185 44 213 45 232 33' fill='none' stroke='%2325caff' stroke-opacity='.45' stroke-width='3'/%3E%3Cpath d='M0 91C29 69 63 116 102 101S150 51 189 52 215 52 232 44' fill='none' stroke='%23e4f8ff' stroke-opacity='.67' stroke-width='1'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-size:100% 100%;
}
.sidebar .brand,.sidebar .nav,.sidebar .sidefoot{position:relative;z-index:1}
.sidebar .brand{background:#061b4278;border-bottom-color:#8cb9f036}
.sidebar .logo{background:#f4f9ff;border-color:#d6e3f7;color:#102a52}
.sidebar .brand small,.navtitle{color:#c1d9f5}
.nav{scrollbar-color:#506da4 #041a4a}
.navtitle{border-top-color:#abc8f12b}
.nav button svg{color:#d2e5ff}
.nav button:hover{background:#194c9877;border-color:#507db36b}
.nav button[aria-current=page],.nav button.active{
 background:var(--pos-active);border-color:transparent;
 box-shadow:0 0 0 1px #00bfff66,0 0 13px #008cff66;color:#fff;
 text-shadow:0 1px 2px #06245788;
}
.nav button[aria-current=page] svg,.nav button.active svg{color:#fff}
.nav button:focus-visible{outline-color:#d0f0ff}
.nav button .tag{background:#061b4299;border-color:#9dd8ff75;color:#fff}
.sidebar .sidefoot{background:#06162cbf;border-top-color:#b5def836;color:#e8f3ff}
.sidebar .sidefoot small,.sidebar .sidefoot svg{color:#bfd4ef}
.topbar{background:#fff;border-bottom-color:var(--desk-edge)}
.topbar .avatar,.topbar .demo,.erp-branch{background:#f1f6ff;color:#193f70;border-color:#d6e3f7}
.footbar.erp-statusbar{background:#061b42;border-top-color:#041334;color:#e8f3ff}
.oracle-screen .erp-crumb,.oracle-screen .toolbar,.erp-toolbar,.erp-hint,.oracle-screen .tablefoot,.erp-line-note{background:#f5f9ff}
.erp-hint,.oracle-screen .toolbar,.oracle-screen .tablefoot,.erp-line-note{border-color:var(--desk-edge)}
.oracle-screen .panelhead{background:var(--pos-section);border-bottom-color:var(--pos-section);color:#fff}
.oracle-screen .panelhead p,.oracle-screen .panelhead .legend{color:var(--pos-light-text)}
.erp-band{background:#eff6ff;border-bottom-color:var(--desk-edge);color:#102a52}
.erp-form{background:#f8fbff}
.erp-grid tfoot td{background:#eff6ff!important}
.erp-lines-top{background:#eff6ff;border-top-color:var(--desk-edge);color:#102a52}
.oracle-screen .tablewrap th,#modal .tablewrap th{color:#526c91;border-right-color:#d6e3f7}
.oracle-screen .tablewrap td,#modal .tablewrap td{background:#fff;border-color:#e1e9f4}
.oracle-screen .tablewrap tbody tr:nth-child(even) td,#modal .tablewrap tbody tr:nth-child(even) td{background:#fbfdff}
.oracle-screen .tablewrap tbody tr:hover td,#modal .tablewrap tbody tr:hover td{background:#f1f6ff}
.erp-btn,.oracle-screen .btn,#modal .btn{border-color:#d6e3f7;color:#102a52;background:var(--desk-button)}
.erp-btn:hover,.oracle-screen .btn:hover,#modal .btn:hover{background:#eaf3ff;border-color:#9cbdf2;color:#102a52}
.erp-btn.sel,.erp-btn.primary-erp,.oracle-screen .btn.primary,#modal .btn.primary{
 background:var(--pos-accent);border-color:#0756e8;color:#fff;
}
.erp-btn.sel:hover,.erp-btn.primary-erp:hover,.oracle-screen .btn.primary:hover,#modal .btn.primary:hover{background:#0756e8;color:#fff}
.erp-btn.save-erp,#modal .btn[type=submit].primary{background:#087e50;border-color:#086841;color:#fff}
.erp-btn.save-erp:hover,#modal .btn[type=submit].primary:hover{background:#076943;color:#fff}
.oracle-screen .btn.ghost,#modal .btn.ghost{background:transparent;border-color:transparent}
.oracle-screen .btn.danger,#modal .btn.danger{color:#b32135}
.oracle-screen .link,#modal .link{color:#0756cb}
.oracle-screen :is(input,select,textarea):not([type=checkbox]):not([type=radio]),#modal :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-color:#c6d8f3;color:#102a52}
#modal .dlghead.erp-title{background:var(--desk-title);border-bottom-color:#063b87}
#modal .dlgbody,#modal .dlgfoot{background:#f7faff}
#modal .dlgfoot,#modal .infogrid>div,#modal .sectiontitle,#modal .editorgrid{border-color:#d6e3f7}
#modal .sectiontitle,#modal .infogrid>div{background:#eff6ff}
.oracle-screen .stat,.oracle-screen .stathead,.oracle-screen .chart,.oracle-screen .queue-row{background:#fff}
.oracle-screen .stathead{border-bottom-color:#edf3fc;color:#526c91}
.oracle-screen .stat h2{color:#0756cb}
.oracle-screen .stat:has(.teal) h2{color:#087e50}.oracle-screen .stat:has(.amber) h2{color:#8b540e}.oracle-screen .stat:has(.violet) h2{color:#633697}
.oracle-screen .statmark{background:#eaf3ff;color:#0866f5}
.oracle-screen .statmark.teal{background:#e9f8f0;color:#087e50}
.oracle-screen .statmark.amber{background:#fff5e3;color:#8b540e}
.oracle-screen .statmark.violet{background:#f3edfc;color:#633697}
.oracle-screen .legend span:first-child i,.oracle-screen .chart rect[fill="#2d608b"]{background:var(--pos-chart-blue)!important;fill:var(--pos-chart-blue)}
.oracle-screen .legend span:nth-child(2) i,.oracle-screen .chart rect[fill="#43806c"]{background:var(--pos-chart-green)!important;fill:var(--pos-chart-green)}
.erp-lookup-pop{border-color:#a7c4ed}
.erp-lookup-scroll{scrollbar-color:#769acb #eff6ff}
.erp-lookup-scroll>button{color:#102a52;border-bottom-color:#d6e3f7}
.erp-lookup-scroll>button:hover,.erp-lookup-scroll>button[aria-selected=true]{background:#e5f0ff}
.erp-picker-foot{background:#eff6ff}
@media(max-height:675px){.sidebar::after{opacity:.3}}
/* Report workspace: filters above the posted figures, consistent with the financial reference. */
.nav .report-group-toggle{font-weight:700}
.nav .report-group-toggle .report-chevron{margin-inline-start:auto;width:13px;height:13px;flex:none;opacity:.78}
.nav .report-group-toggle[aria-expanded=true] .report-chevron{transform:rotate(90deg)}
.nav .report-group-toggle.has-current{color:#fff;background:#194c9877;border-color:#507db36b}
.nav .nav-tree{--tree-line:#9db6dc55;--tree-elbow:10px;--tree-mid:15px;position:relative;list-style:none;margin:0 0 3px 8px;padding:0 0 4px var(--tree-elbow)}
.nav .nav-tree::before{content:"";position:absolute;top:1px;bottom:0;left:0;width:var(--tree-elbow);border-left:1px solid var(--tree-line);border-bottom:1px solid var(--tree-line);border-bottom-left-radius:11px;pointer-events:none}
.nav .nav-branch{position:relative;margin:0;padding:0;list-style:none}
.nav .nav-branch::before{content:"";position:absolute;left:calc(-1 * var(--tree-elbow));top:var(--tree-mid);width:var(--tree-elbow);border-top:1px solid var(--tree-line);pointer-events:none}
.nav .report-submenu{--tree-mid:14px;margin-left:19px;margin-bottom:4px}
.nav .report-submenu button,.nav .sidebar-submenu button{min-height:27px;font-size:11px;padding-block:4px;line-height:1.2}
.nav .sidebar-main-disclosure{margin:2px 0}
.nav .nav-tree+.sidebar-main-disclosure{margin-top:6px}
.nav .sidebar-submenu{--tree-mid:14px;margin-left:19px;margin-bottom:4px}
.report-filter-grid{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap;padding:8px}
.report-filter-grid label.field{min-width:120px;max-width:290px}
.report-filter-grid label.field span{font-size:10px;color:#526c91}
.report-filter-grid .field input,.report-filter-grid .field select{height:28px;padding:3px 6px;background:#f9fbff}
.report-filter-grid .field input[readonly]{background:#eff6ff}
.report-filter-grid label.field>span.dmy{font-size:inherit;color:inherit}
.report-check{display:flex;align-items:center;gap:5px;min-height:27px;padding:2px 3px;font-size:11px;color:#233e5f;white-space:nowrap}
.report-check input{margin:0}
.report-error{padding:2px 8px 7px;color:#b32135;font-size:11px}
.report-error:empty{display:none}
.report-summary dl{display:flex;flex-wrap:wrap;margin:0;padding:4px 0}
.report-summary dl>div{flex:1 1 112px;padding:3px 8px;border-inline-end:1px solid var(--desk-rule)}
.report-summary dl>div:last-child{border-inline-end:none}
.report-summary dt{font-size:10px;font-weight:700;color:#526c91}
.report-summary dd{margin:2px 0 0;color:#102a52;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
.report-block .erp-band{background:var(--pos-section);color:#fff}
.report-block .erp-grid table{min-width:450px}
.report-block .report-wide table{min-width:710px}
.report-block .report-table .report-total td{font-weight:750;background:#eff6ff!important;color:#102a52;border-top:1px solid #bdcfe9}
.report-block .report-group-head{text-align:center}
.report-block[lang=ur] .erp-band,.report-block[lang=ur] th,.report-block[lang=ur] .report-total td{font-size:12px}
.report-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.report-pair .report-block{min-width:0}
@media(max-width:780px){.report-pair{grid-template-columns:1fr;gap:0}}
@media(max-width:550px){.report-filter-grid label.field{flex:1 1 115px;max-width:100%}}
@page billing-report-wide{size:A4 landscape;margin:12mm}
@media print{
 .printarea:has(.report-paper-wide){page:billing-report-wide}
 .report-print-meta{font-size:11px;line-height:1.5;color:#435671;margin:0 0 12px}
 .printarea .report-block{margin:0 0 11px}
 .printarea .report-block .erp-band{background:#e4ecf8!important;color:#142947!important;border:1px solid #b8cce3;print-color-adjust:exact;break-after:avoid}
 .printarea .report-block .tablewrap table{min-width:0}
 .printarea .report-block th,.printarea .report-block td{padding:4px 6px;font-size:10px}
 .printarea .report-block thead{display:table-header-group}
}
/* Voucher-style controls for the quotation and invoice editors only. */
#modal.billing-editor{width:min(1030px,calc(100% - 24px))}
#modal.billing-editor .dlgbody{padding:8px 10px}
#modal .bill-head{border:1px solid var(--desk-edge);margin-bottom:8px}
#modal .bill-head .erp-form{grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 9px}
#modal .billing-lines-head{border:1px solid var(--desk-edge);margin-bottom:0}
#modal .billing-lines-head .erp-subtools{margin:0}
#modal.billing-editor .bill-lov input[type=text]{padding-inline-end:25px}
#modal.billing-editor .bill-tool-picker{width:min(215px,52vw)}
#modal.billing-editor .editorgrid{border-color:var(--desk-edge);max-height:265px}
#modal.billing-editor .editorgrid table{min-width:750px;table-layout:fixed}
#modal.billing-editor .editorgrid :is(th,td){padding:3px 4px}
#modal.billing-editor .editorgrid th:nth-child(2){width:26%}
#modal.billing-editor .editorgrid th:nth-child(3){width:16%}
#modal.billing-editor .editorgrid th:nth-child(5){width:14%}
#modal.billing-editor .editorgrid th:last-child,#modal.billing-editor .editorgrid th:first-child{width:30px}
#modal.billing-editor .editorgrid td input{min-width:0;width:100%;min-height:29px;padding:4px 6px;font-size:12px}
#modal.billing-editor .editorgrid td .bill-lov input[type=text]{padding-inline-end:25px}
#modal.billing-editor .editorgrid tbody{counter-reset:billing-line}
#modal.billing-editor .editorgrid tr{counter-increment:billing-line}
#modal.billing-editor .editorgrid .erp-rownum::before{content:counter(billing-line)}
#modal.billing-editor .editorgrid .erp-remove .btn{padding:2px 0;width:22px;min-height:24px}
#modal.billing-editor .totals{margin-top:7px;gap:8px}
#modal.billing-editor .bill-note{margin-top:8px}
#modal.billing-editor .bill-note textarea{min-height:45px;border-radius:2px}
#modal.billing-editor .billing-lines-head .btn{min-height:27px}
@media(max-width:600px){#modal .bill-head .erp-form{grid-template-columns:repeat(2,minmax(0,1fr))}#modal .bill-head .bill-customer-field{grid-column:1/-1}}
/* Digital product channels borrow the Billing Desk vocabulary and table styles. */
.digital-filters .filter{align-items:end;flex-wrap:wrap;gap:7px}
.digital-filters .field{gap:3px;font-size:11px;min-width:0}
.digital-filters .field:first-child{min-width:min(175px,100%)}
.digital-filters .field :is(input,select){min-height:29px;font-size:12px}
.digital-filters .btn{min-height:29px}
.digital-filters .error:not(:empty){flex:1 0 100%}
.digital-stats{margin-top:8px}
.digital-note{margin:6px 0 10px}
.digital-panel{margin-top:10px}
.digital-panel td small{display:block;white-space:nowrap}
#modal.billing-editor .bill-head .erp-form{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){#modal.billing-editor .bill-head .erp-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
.oracle-screen .digital-filters .field select{max-width:100%}
#credit-preview,#credit-refund-fields{grid-column:1/-1}
@media(max-width:460px){#credit-refund-fields.formgrid{grid-template-columns:minmax(0,1fr)}}
/* v18: working date in header, DD/MM/YYYY date fields, list tables and line items fit without sideways scroll. */
.workdate{display:flex;align-items:center;gap:6px;font-size:11px;color:#193f70}
.workdate>label{font-weight:700;white-space:nowrap}
.workdate .dmy{width:124px;flex:none}
.workdate input[data-dmy]{min-height:28px;border-radius:2px;border-color:#c6d8f3;color:#102a52;font-size:12px;padding:3px 7px}
.workdate-mode{font-size:10px;font-weight:700;color:#087e50;background:#e9f8f0;border:1px solid #bfe6d2;border-radius:2px;padding:1px 5px}
.workdate-today{border:1px solid #d6e3f7;background:#fff;color:#0756cb;border-radius:2px;min-height:26px;font-size:11px;font-weight:700;padding:2px 7px;white-space:nowrap}
.workdate-today:hover{background:#eaf3ff}
.dmy{position:relative;display:block;min-width:0;width:100%}
.dmy>input[data-dmy]{width:100%;padding-right:28px!important;font-variant-numeric:tabular-nums}
.dmy-btn{position:absolute;top:1px;right:1px;bottom:1px;width:26px;display:grid;place-items:center;border:0;background:transparent;color:#526c91;padding:0;border-radius:2px}
.dmy-btn:hover{background:#eaf3ff;color:#0756cb}.dmy-btn svg{width:15px;height:15px}
.dmy-btn[disabled]{display:none}
.dmy-native{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0;margin:0}
input[data-dmy][aria-invalid=true]{border-color:#b32135!important;background:#fff6f7!important}
@media(max-width:1000px){.workdate>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
@media(max-width:620px){.workdate-mode{display:none}.workdate .dmy{width:112px}.topright .demo{display:none}}
.screen .tablewrap{overflow-y:hidden}
@media(min-width:851px){.screen .tablewrap:has(#list-body)>table{min-width:0}}
.screen .tablewrap td:last-child:has(.btn){white-space:nowrap;width:1%}
#modal.billing-editor .editorgrid{container-type:inline-size;overflow-x:hidden}
#modal.billing-editor .editorgrid table{min-width:0}
#modal.billing-editor .editorgrid th:nth-child(2){width:auto}
#modal.billing-editor .editorgrid th:nth-child(3){width:15%}
#modal.billing-editor .editorgrid th:nth-child(4),#modal.billing-editor .editorgrid th:nth-child(6),#modal.billing-editor .editorgrid th:nth-child(7){width:8%}
#modal.billing-editor .editorgrid th:nth-child(5){width:12%}
#modal.billing-editor .editorgrid th:nth-child(8){width:13%}
@container (max-width:700px){
 #modal.billing-editor .editorgrid{max-height:none}
 #modal.billing-editor .editorgrid thead{display:none}
 #modal.billing-editor .editorgrid table,#modal.billing-editor .editorgrid tbody{display:block;width:100%}
 #modal.billing-editor .editorgrid tbody tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 26px;grid-template-areas:"desc desc desc cyc cyc rm" "qty rate disc tax total total";gap:5px 6px;padding:7px 7px 8px;border-bottom:1px solid #d6e3f7;background:#fff}
 #modal.billing-editor .editorgrid tbody tr:nth-child(even){background:#fbfdff}
 #modal.billing-editor .editorgrid tbody td{display:block;border:0!important;padding:0!important;background:none!important;min-width:0}
 #modal.billing-editor .editorgrid td:nth-child(1){display:none}
 #modal.billing-editor .editorgrid td:nth-child(2){grid-area:desc}#modal.billing-editor .editorgrid td:nth-child(3){grid-area:cyc}
 #modal.billing-editor .editorgrid td:nth-child(4){grid-area:qty}#modal.billing-editor .editorgrid td:nth-child(5){grid-area:rate}
 #modal.billing-editor .editorgrid td:nth-child(6){grid-area:disc}#modal.billing-editor .editorgrid td:nth-child(7){grid-area:tax}
 #modal.billing-editor .editorgrid td:nth-child(8){grid-area:total;text-align:right;font-weight:700;align-self:end;padding-bottom:6px!important}
 #modal.billing-editor .editorgrid td:nth-child(9){grid-area:rm;align-self:end}
 #modal.billing-editor .editorgrid td:is(:nth-child(n+2):nth-child(-n+8))::before{display:block;margin-bottom:2px;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:#526c91;text-align:left}
 #modal.billing-editor .editorgrid td:nth-child(2)::before{content:"Line " counter(billing-line) " · Item description"}
 #modal.billing-editor .editorgrid td:nth-child(3)::before{content:"Billing cycle"}
 #modal.billing-editor .editorgrid td:nth-child(4)::before{content:"Qty"}
 #modal.billing-editor .editorgrid td:nth-child(5)::before{content:"Rate (PKR)"}
 #modal.billing-editor .editorgrid td:nth-child(6)::before{content:"Disc. %"}
 #modal.billing-editor .editorgrid td:nth-child(7)::before{content:"Tax %"}
 #modal.billing-editor .editorgrid td:nth-child(8)::before{content:"Line total";text-align:right}
}
@container (max-width:440px){
 #modal.billing-editor .editorgrid tbody tr{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"desc desc desc rm" "cyc cyc qty qty" "rate rate disc tax" "total total total total"}
 #modal.billing-editor .editorgrid td:nth-child(9){justify-self:end}
}
/* React mounts into #root. display:contents removes its box, so .shell, #modal and #toast lay out
   exactly as they did as direct children of <body> in v18. */
#root {
  display: contents;
}
