:root,#app{--ink:#122941;--petrol:#086869;--mist:#eff4f7;--navy:#173652;--navy-dark:#122941;--navy-light:#285472;--blue:#146491;--blue-light:#e4f1fa;--border:#d1dfe6;--bg:#eff4f7}
#app :is(.rmsAreas,.rmsShell){background:var(--mist);color:var(--ink)}
#app .launcherTop{background:var(--ink);border-bottom:3px solid #38b9ab;height:auto;min-height:56px;padding:8px max(20px,calc((100vw - 1180px)/2));align-items:center;gap:8px}
#app .launcherTop :is(b,span,button){color:white}
#app .launcherTop small{color:#b6d5df}
#app .launcherBrand b{font-size:23px}
#app .launcherBrand small,#app .areaContext>span,#app .launcherIntro p,#app .launcherFoot{display:none}
#app .launcherTop .topTextBtn{background:#24445d;border:1px solid #547286;border-radius:7px;padding:7px 10px}
#app .launcherMain{max-width:1220px;margin:0 auto;padding:clamp(16px,4vh,44px) 20px}
#app .launcherIntro{gap:12px;margin:0;flex-direction:row;align-items:center}
#app .launcherIntro h1{font-size:clamp(21px,2.3vw,29px);line-height:1.18;margin:4px 0 0;color:var(--ink)}
#app .sectionEyebrow,#app .areaBack{color:var(--petrol)}
#app .launcherSearch{width:min(36%,325px);border-color:#b6cbd6;border-radius:10px}
#app .launcherSearch input{height:40px;padding:4px 0}
#app .areaContext{padding:0;border:none}
#app .areaBack{margin-top:8px}
#app .launcherCount{margin:14px 0 10px;color:#486278}
#app .launcherGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#app .launcherTile{min-width:0;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 2px 5px #17365208}
#app .launcherTile:is(:hover,:focus-within){border-color:#258788;box-shadow:0 4px 14px #17365212}
#app .launcherModule{display:grid;grid-template-columns:36px minmax(0,1fr);gap:5px 12px;align-content:center;min-height:0;height:100%;padding:16px;border-radius:12px;color:var(--ink);white-space:normal}
#app .launcherModule[data-open-module]{padding-right:42px}
#app .launcherIcon{grid-row:1/span 2;width:36px;height:36px;border-radius:10px;margin:0;color:var(--petrol);background:#ddf3ef}
#app .launcherIcon svg{width:22px;height:22px}
#app .launcherModule :is(strong,small,.areaToolsCount){grid-column:2;margin:0;text-align:left;overflow-wrap:anywhere;line-height:1.35}
#app .launcherModule strong{font-size:15px;color:var(--ink)}
#app .launcherModule small{font-size:12px;color:#50677c}
#app .areaToolsCount{border:none;padding:2px 0 0;font-size:12px;color:var(--petrol);font-weight:600}
#app [data-open-module] .areaToolsCount{display:none}
#app .launcherFavorite{top:3px;right:3px;width:38px;height:38px}
#app .areaMenu{background:#e1ecf1;min-height:44px;padding:6px 14px}
#app .areaDropdown summary.active,#app .btn.primary,#app :is(.moduleTabs,.innerTabs) button.active{background:var(--petrol);border-color:var(--petrol);color:white}
#app .topbar{border-bottom:2px solid #28898b}
#app :is(.card,.panel,.kpi,.box){border-radius:11px;box-shadow:0 2px 8px #1229410a}
#app .rmsShell thead th:not([class]):not([style]){background:#e2edf3;color:var(--ink)}
#app :is(button,input,select,summary,a,textarea):focus-visible{outline:3px solid #198f96;outline-offset:2px}
@media(max-width:900px){#app .launcherGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:650px),(max-width:900px){#app .areaTile small{display:none}#app .launcherModule{padding:11px;gap:2px 9px}}
@media(max-width:600px){
#app .launcherTop{padding:6px 12px;min-height:48px}
#app .launcherUser>span,#app .launcherIntro .sectionEyebrow{display:none}
#app .launcherMain{padding:12px}
#app .launcherIntro{flex-direction:column;align-items:stretch;gap:9px}
#app .launcherSearch{width:100%}
#app .launcherSearch input{font-size:16px;height:36px}
#app .launcherCount{margin:8px 0}
#app .launcherGrid{grid-template-columns:1fr;gap:6px}
#app .launcherModule{padding:7px 11px;grid-template-columns:32px minmax(0,1fr)}
#app .launcherModule strong{font-size:14px}
#app .launcherIcon{width:32px;height:32px;align-self:center}
#app .areaToolsCount{padding:0;font-size:11px}
}
@media(max-height:455px) and (min-width:601px){#app .launcherGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}}
#app .rmsLauncher{background:radial-gradient(#dbe4ec 0.8px,transparent 1px) 0 0/18px 18px,#f4f7fa}
#app .launcherGrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 8px}
#app .launcherTile,#app .launcherTile:hover{border:0;background:transparent;box-shadow:none}
#app .launcherTile .launcherModule{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 3px;gap:10px}
#app .launcherModule .launcherIcon{width:70px;height:70px;flex:none;background:white;border-radius:16px;border:1px solid #dce4ec;box-shadow:0 4px 10px #1534540e}
#app .launcherIcon svg{width:46px;height:46px}
#app .launcherTile:is(:hover,:focus-within) .launcherIcon{border-color:#439caa;box-shadow:0 5px 14px #1534541e}
#app .launcherModule strong{text-align:center;text-wrap:balance;font-size:14px;font-weight:600;max-width:100%;white-space:normal}
#app .launcherModule :is(small,.areaToolsCount){display:none}
#app .launcherFavorite{left:calc(50% + 19px);top:-3px;right:auto;width:30px;height:30px;padding:0;background:white;border:1px solid #dce4ec;border-radius:50%;font-size:17px}
@media(max-width:960px){#app .launcherGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:510px){#app .launcherGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#app .launcherTile .launcherModule{gap:6px;padding:5px 1px}#app .launcherModule strong{font-size:13px}}
@media(max-width:600px),(max-height:480px){#app .launcherModule .launcherIcon{width:52px;height:52px;border-radius:12px}#app .launcherIcon svg{width:35px;height:35px}}
#app .nUnified :is(.breadcrumb,.moduleTabs,.moduleIntro p,.navToggle){display:none}
#app .nUnified .topbar,#app .rmsLauncher:has(.nAccounting) .launcherTop{background:#122941;color:white;min-height:54px;padding:7px 20px;border-bottom:2px solid #27b4a6}
#app .nUnified .topbar :is(.user b,.user span,.linkbtn){color:white}
#app .nUnified .launcherHomeButton{font-size:23px;letter-spacing:-1px;color:white;background:none;padding:0;border:none}
#app .nUnified .moduleHead{padding:12px 20px}
#app .nUnified .moduleIntro h1{font-size:22px}
#app .nAccounting{background:white;padding:7px 18px;gap:4px}
#app .nAccounting .areaBack{margin:0;padding:10px}
#app .nAccounting [aria-current]{background:#def3ef;color:#07595a;border-radius:7px}
.nAreaName{display:flex;align-items:center;gap:8px;font-weight:700;color:#122941;margin-right:18px}
.nAreaName svg{width:25px;height:25px}
#app .nAccounting .areaDropdownPanel small{display:block;padding:9px 10px 4px;color:#086869;font-weight:700}
@media(min-width:800px){#app .nAccounting details:nth-last-child(-n+2) .areaDropdownPanel{left:auto;right:0}}
#app .nBoard{max-width:1150px}
.nBoard button,.nPrefs summary{cursor:pointer;color:#086869;font-weight:600}
.nTotals,.nMatches:not(:empty){padding:20px;margin:20px 0;background:white;border:1px solid #d1dfe6;border-radius:14px}
.nTotals h2{font-size:18px}
.nTotals p,.nValues span{color:#52697c;font-size:13px;margin:5px 0}
.nValues{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px;margin:17px 0}
.nValues>div{padding:16px;background:#eef4fa;border-radius:10px}
.nValues>div:last-child{background:#e1f5f1}
.nValues strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.nDiff{color:#a43328}
.nBoard button{padding:10px;border:1px solid #bed5dc;background:white;border-radius:8px}
.nBoard button:hover{background:#e1f5f1}
.nMatches button,.nShortcuts button,.nPrefs label{display:inline-flex;gap:6px;margin:4px}
.nPrefs{margin:12px 0}
#app .nUnified:has(#accFilters) .moduleHead{padding:7px 16px}
#app .nUnified:has(#accFilters) .main{padding:8px 14px}
#app #accFilters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:white;padding:10px 14px}
#app #accFilters label:first-of-type{flex:1;min-width:180px}
#accFilters+.panel td small{display:block;color:#547286}
#accFilters+.panel tbody tr:hover{background:#edf8f7}
#accFilters+.panel td:nth-child(2),.nPattern{white-space:nowrap;font-variant-numeric:tabular-nums}
#app .accDialog:has(#nVoucher){width:min(1320px,96vw);max-width:96vw}
#nVoucher{font-size:clamp(20px,2vw,29px);color:#164863;overflow-wrap:anywhere}
#nVoucher~.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:14px;margin:20px 0}
.nColumns,.nDims{color:#086869;min-width:150px}
.nColumns{margin:10px 0;text-align:right}
.nColumns label,.nSetup label{display:inline-flex;align-items:center;gap:6px;margin:6px}
.nDims label{display:block;margin:8px 0}
.nColumns input,.nSetup input[type=checkbox]{width:18px;height:18px;accent-color:#086869}
.nColumns summary,.nDims summary{cursor:pointer;font-weight:600}
#accLines.hide2 tr>:nth-child(2),#accLines.hide3 tr>:nth-child(3),#accLines.hide4 tr>:nth-child(4){display:none}
#accLines input{min-width:100px;border:1px solid #d6e2e7;padding:7px;border-radius:5px}
#accLines [data-field=account_code]{min-width:210px}
#app .nUnified:has(.nBills) .main{padding:8px 14px}
#app .nUnified:has(.nBills) .moduleHead{padding:8px 18px}
#billSearch{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px}
#billSearch input{flex:1;min-width:210px}
#billSearch :is(input,select){padding:8px;border:1px solid #b7ccd6;border-radius:8px;color:#153550;background:white;width:auto}
.nBills td small{display:block;color:#566b80;margin-top:3px}
.nBills .late{color:#a3322a;font-weight:600}
.nBills .billState{background:#e7edf6;color:#254262;padding:4px 10px;border-radius:20px;font-size:12px;white-space:nowrap}
.nBills .paid{background:#ddf5ec;color:#086147}
.nBills .partial{background:#fff0cc;color:#775208}
.nBills> .tablewrap tbody tr:hover{background:#eef8f8}
.nBills> .tablewrap td:nth-child(5){max-width:270px;overflow-wrap:anywhere;white-space:normal}
.nBills:has(.accInvoiceSheet)>:is(#billSearch,.tablewrap){display:none}
.nBills .accInvoiceDates p{color:#106969;margin-top:8px;font-weight:600}
.nBills .accInvoiceSheet{margin:0;max-width:none}
.nBills .nDims{grid-column:1/-1}
.nBills .nDims label{display:inline-block;margin:8px}
#app .omit0 label:has([name=description]),#app .omit1 label:has([name=tax_code]),#app .omit2 .nDims{display:none}
#app .nUnified:has(.nBills) :is(.moduleHead,.contentToolbar){display:none}
#app .nUnified:has(.nBills) .main{padding:0;background:#f7f8fa}
#app .nUnified:has(.nBills) .topbar{min-height:40px;padding:4px 16px}
#app .nUnified:has(.nBills) .nAccounting{background:#f7f8fa;padding:4px 14px}
#app .nBills,#app .nBills .odBill{background:#f7f8fa;border:none;box-shadow:none;border-radius:0;color:#202b38;overflow:visible;font:14px/1.5 Arial,sans-serif}
#app .nBills .btn.primary,#app .odBill .odNote{background:#77536c;color:white;border-color:#77536c}
#app .nBills table{background:white}
#app .nBills thead th{background:#fafbfc;text-transform:none;font-size:13px;font-weight:500}
#app .nBills td{font-size:13px;padding:9px 12px}
#billSearch input{margin-left:auto;max-width:490px;border-radius:22px}
#billSearch small{margin-left:auto}
#app .odBill{display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);grid-template-areas:"bar bar" "controls activity" "err activity" "sheet activity";gap:0 16px;padding:0 16px 24px}
#app .odBill [hidden]{display:none!important}
#app .odBill button{background:white;color:#243445;font:inherit;cursor:pointer;border:1px solid #ced5df;border-radius:6px;padding:7px 12px}
#app .odBill button:disabled{opacity:.55;cursor:not-allowed}
#app .odBill button:hover:not(:disabled){box-shadow:inset 0 0 0 1px #77536c}
#app .odBill .accInvoiceToolbar{grid-area:bar;background:none;padding:10px 0;border:0;gap:9px}
#app .odBill .odBack,#app .odBill :is(.odAdd,[data-add-commercial]){border:none;color:#087b83;background:none;padding:2px}
#app .odBill .odNew{color:#77536c;border-color:#77536c}
.odMore{position:relative}.odMore summary{cursor:pointer;list-style:none;padding:6px}.odMore button{position:absolute;white-space:nowrap;z-index:5}
.odJournal{margin-left:clamp(0px,23vw,400px)}
.odControls{grid-area:controls;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 0;position:sticky;top:0;background:#f7f8fa;z-index:6}
.odControls span{margin-left:auto;background:white;border:1px solid #dce1e7;padding:6px 12px 6px 0;border-radius:7px;color:#627182}
.odControls b{padding:6px 17px;background:#def1f1;clip-path:polygon(0 0,90% 0,100% 50%,90% 100%,0 100%);color:#204047}
.odBill>[role=alert]{grid-area:err}
#app .odBill .accDocGrid{grid-area:sheet;display:block;min-width:0;background:white;border:1px solid #dce1e7;border-radius:8px;padding:0}
.odTitle{padding:22px 24px 0;color:#087b83}
#app .odTitle h2{font-size:32px;font-weight:400;color:#182634;margin:6px 0}
#app .odBill .accInvoiceHeader{padding:6px 24px 22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#app .odBill .accInvoiceHeader section{gap:4px}
#app .odBill .accProviderBlock{background:none;border:0;position:relative;padding:0}
#app .odBill :is(.accInvoiceHeader,[data-extra-panel]) label{display:grid;grid-template-columns:36% minmax(0,1fr);align-items:center;color:#243445;gap:5px;font:inherit}
#app .odBill :is(input:not([type=checkbox]),select){width:100%;min-width:0;background:transparent;border:0;border-bottom:1px solid #e2e6eb;border-radius:0;padding:5px;font:inherit;min-height:32px}
#app .odBill input:focus{border-color:#00858c}
#app .odBill input:user-invalid{background:#fff1ef;border-color:#bd453e}
.odSuggestions{position:absolute;top:34px;left:26%;width:85%;background:white;border-radius:9px;box-shadow:0 6px 24px #192d482b;z-index:4;max-height:240px;overflow:auto}
#app .odSuggestions button{width:100%;border:none;text-align:left;white-space:normal}
#app .odBill .accInvoiceTabs{padding:0 16px;gap:0;flex-wrap:wrap}
#app .odBill .accInvoiceTabs button{border-radius:0;background:#f8f9fa;border-color:#dee2e6;padding:10px 12px}
#app .odBill .accInvoiceTabs [aria-pressed=true]{color:#77536c;background:white;box-shadow:inset 0 3px #77536c;border-bottom-color:white}
#app .odBill :is(.accInvoiceBody,[data-extra-panel]){padding:16px 22px;min-height:170px;overflow:auto}
#app .odBill [data-extra-panel=other] label{max-width:480px;margin:10px 0}
#app .odBill .accInvoiceLine{display:flex;gap:7px;flex-wrap:wrap;align-items:end}
#app .odBill .accInvoiceLine label{flex:1 1 76px;min-width:0;font:inherit}
#app .odBill .accInvoiceLine label:first-child{flex:2 1 115px}
#app .odBill .accInvoiceLine .nDims{flex-basis:100%}
.odAmount strong{display:block;line-height:32px}
.odTotals{text-align:right;border-top:1px solid #dee2e6;padding:16px 24px;line-height:2}
.odTotals :is(b,strong){display:inline-block;min-width:112px}
.odActivity{grid-area:activity;align-self:start;padding:8px 0}
.odActivity textarea{display:block;width:100%;min-height:92px;padding:12px}
.odEvents p{text-align:center;border-bottom:1px solid #dce1e7;margin:22px 0 16px;color:#697585}
.odEvents b{float:left;background:#ac5622;border-radius:8px;color:white;padding:6px 12px;margin-right:10px}
@media(max-width:1020px){#app .odBill{grid-template-columns:1fr;grid-template-areas:"bar" "controls" "err" "sheet" "activity";padding:0 10px}.odJournal{margin-left:auto}}
@media(max-width:720px){#app .odBill .accInvoiceHeader{grid-template-columns:1fr;padding:12px}.odSuggestions{left:0;width:100%}.odControls{position:static}#app .odBill .accInvoiceTabs button{flex:1 1 45%;white-space:normal}}
