:root{font-family:Arial,Tahoma,sans-serif;font-size:13px;font-synthesis:none;color:#000;--toolbar:#2b66ac;--strip:#8cc0e4;--menu:#e2f1fb;--rail:#dff1fc;--selected:#ffcc34;--rule:#c4c4c4;--label:#397ed3}
*{box-sizing:border-box}body{margin:0;background:#fff}button,a{font:inherit}button{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:1px dotted #12447e;outline-offset:-2px}u{text-underline-offset:2px}button{cursor:pointer}.application{height:100dvh;min-height:610px;display:grid;grid-template-rows:60px minmax(0,1fr) 26px;overflow:hidden}
.application-header{display:flex;background:var(--toolbar);color:#d3e8f8;min-width:0}.application-name{width:100px;flex-shrink:0;text-decoration:none;color:#b5d8f3;padding:15px 7px 0;line-height:17px;font-size:14px}.application-name strong{display:block;font-size:19px;line-height:19px;letter-spacing:-.2px;color:#badbf3}.header-workspace{flex:1;min-width:0;padding-top:16px}.header-category{font-size:9px;line-height:13px;color:#e4edf8;font-weight:bold}.application-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;padding-right:28px}.application-toolbar button{padding:2px 0;background:transparent;border:0;color:#d2e4f5;text-align:left;white-space:nowrap;line-height:18px}.application-toolbar button:disabled{color:#c1d6ed}.application-toolbar .go-to{background:#e5f3fc;color:#174e87;border:1px solid #b6d5ef;text-align:center;min-width:78px;height:23px;padding:0 9px}.application-toolbar .go-to:disabled{color:#174e87}
.application-body{display:grid;grid-template-columns:minmax(0,1fr) 128px;grid-template-rows:12px minmax(0,1fr);min-height:0}.screen-title{grid-column:1;grid-row:1;background:var(--strip);display:flex;align-items:center;justify-content:space-between;overflow:hidden;padding-left:7px}.screen-title h1{margin:0;font-size:10px;line-height:12px;font-weight:bold}.screen-title button{border:0;padding:0 3px;font-weight:bold;font-size:12px;line-height:11px;background:transparent}main{grid-row:2;grid-column:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;outline:none}.company-pane{border-right:1px solid var(--rule);min-width:0}.period-info{height:92px;display:flex;align-items:flex-start;justify-content:space-between;padding:33px 21px 0;gap:15px}.period-info .date{text-align:right}.small-label{font-size:9px;color:var(--label);font-weight:normal;line-height:12px}.period-value{font-size:12px;font-weight:bold;line-height:17px;margin-top:3px;white-space:nowrap}.company-table-heading{height:20px;display:flex;justify-content:space-between;gap:12px;padding:3px 21px 0;border-top:1px solid #8ebfe4;border-bottom:1px solid #8ebfe4;white-space:nowrap}.company-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 21px;font-size:13px;font-weight:bold;line-height:17px}.company-row .company-name{min-width:0}.company-row .last-entry{text-align:right;white-space:nowrap}.menu-pane{min-width:0;overflow:auto}.gateway-menu{width:min(345px,86%);height:488px;background:var(--menu);border:1px solid #8ebdf0;margin:47px auto 20px;box-shadow:0 1px 2px #0002;display:flex;flex-direction:column}.gateway-menu-title{height:23px;line-height:21px;flex-shrink:0;background:var(--toolbar);color:#fff;text-align:center;font-size:13px}.gateway-menu-body{padding-top:32px;flex:1;display:flex;flex-direction:column}.menu-section{margin:0 0 24px}.menu-section:last-of-type{margin-bottom:0}.menu-heading{font-size:10px;line-height:12px;font-weight:normal;color:#5a97dc;margin:0 0 11px;padding-left:30%}.gateway-menu button{display:block;width:100%;height:16px;line-height:16px;margin:0;padding:0 5px 0 30%;font-size:13px;text-align:left;background:none;border:0;white-space:nowrap;cursor:default}.gateway-menu button.selected{background:var(--selected)}.gateway-menu button:hover{background:#fff0b5}.gateway-menu button.selected:hover{background:var(--selected)}.gateway-menu button[aria-current=true]{outline:none}.gateway-menu button .hot-letter{color:#125ed0}.menu-section.reports{margin-top:17px}.gateway-menu .quit-row{margin-top:auto;margin-bottom:32px}.function-rail{grid-column:2;grid-row:1/span 2;display:flex;flex-direction:column;min-height:0;background:var(--rail);border-left:2px solid #d0e6f3;padding:1px 3px 0 1px}.function-rail>button{background:#fff;border:1px solid #bad9ef;border-right:0;box-shadow:0 1px 1px #a1bad455;height:27px;margin-bottom:2px;padding:3px 0 3px 4px;display:flex;justify-content:space-between;align-items:flex-start;color:#075399;font-size:13px;text-align:left}.function-rail>button>span:last-child:not(:only-child){display:inline-block;width:10px;text-align:center;align-self:stretch;border-left:1px solid #d8e9f5;color:#75b0dd}.rail-space{flex:1}.rail-preview{font-size:10px;line-height:16px;color:#6997b8;padding:8px 4px 12px}.rail-preview span{font-size:9px;color:#79a3bf}.command-strip{display:flex;align-items:stretch;background:#d4e0e5;border-top:1px solid #b8c7ce;gap:4px;padding:2px 4px 0;min-width:0}.command-strip button,.empty-command{border:1px solid #d3dfe7;background:#fff;flex-shrink:0;width:108px;min-width:0}.command-strip button{color:#80a4c8;text-align:left;padding:1px 4px;font-size:12px;display:flex;justify-content:space-between}.command-strip button span{border-left:1px solid #d5e5f0;padding:0 0 0 4px;color:#a3c6dd}.empty-command{width:108px}#screen-hint{font-size:10px;line-height:20px;color:#607c91;margin-left:auto;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loading{font-size:12px;padding:25px 21px;color:#497596}.connection-error{padding:30px 21px;font-size:12px;color:#9a3a2d}.connection-error strong{display:block;margin-bottom:10px}
@media(min-width:1450px){.gateway-menu{margin-top:47px}.application-toolbar{padding-right:40px}}@media(max-width:1000px){.application-toolbar{gap:9px;padding-right:12px}.application-toolbar button{font-size:11px}.application-toolbar .go-to{min-width:65px}.application-body{grid-template-columns:minmax(0,1fr) 105px}.period-info{padding-left:14px;padding-right:14px;gap:9px}.period-value{font-size:11px}.company-row,.company-table-heading{padding-left:14px;padding-right:14px}.company-row{font-size:12px}.small-label{font-size:8px}.gateway-menu{width:88%}.gateway-menu button{padding-left:24%;font-size:12px}.menu-heading{padding-left:24%}.empty-command{width:70px}.function-rail>button{font-size:12px}}
@media(max-width:650px){.application{min-height:610px;grid-template-rows:66px minmax(0,1fr) 26px}.application-name{width:76px;padding-left:5px;font-size:12px}.application-name strong{font-size:14px}.header-workspace{padding-top:10px}.header-category{font-size:8px}.application-toolbar{height:40px;display:flex;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;column-gap:16px;row-gap:0;padding-right:5px}.application-toolbar button{font-size:10px;line-height:15px;padding:0}.application-toolbar .go-to{height:17px;min-width:53px;font-size:10px}.application-body{grid-template-columns:minmax(0,1fr) 65px}.screen-title h1{font-size:9px}.period-info{height:92px;padding:18px 8px 0;display:block}.period-info .date{text-align:left;margin-top:11px}.small-label{font-size:7px;line-height:9px}.period-value{font-size:9px;line-height:12px;margin-top:1px}.company-table-heading{height:28px;padding:3px 7px;align-items:flex-start}.company-table-heading span{max-width:60%;white-space:normal;font-size:7px;line-height:10px}.company-table-heading span:last-child{text-align:right;max-width:40%}.company-row{display:block;padding:12px 8px;font-size:10px;line-height:15px}.company-row .last-entry{text-align:left;white-space:normal;font-size:9px;margin-top:12px}.gateway-menu{width:92%;height:458px;margin-top:29px}.gateway-menu-title{font-size:9px;line-height:21px}.gateway-menu-body{padding-top:29px}.menu-heading{font-size:8px;line-height:11px;padding-left:13%;margin-bottom:9px}.gateway-menu button{font-size:10px;line-height:17px;height:17px;padding-left:13%;padding-right:0}.menu-section{margin-bottom:24px}.menu-section.reports{margin-top:12px}.gateway-menu .quit-row{margin-bottom:26px}.function-rail>button{font-size:9px;height:29px;line-height:12px;padding-left:3px}.function-rail>button>span:first-child{max-width:49px}.function-rail>button>span:last-child:not(:only-child){width:6px}.rail-preview{font-size:8px;line-height:12px;padding-left:2px}.rail-preview span{font-size:7px}.command-strip{gap:3px}.command-strip button{width:63px;font-size:10px}.empty-command{width:38px}.empty-command:nth-of-type(n+3){display:none}#screen-hint{font-size:8px}.connection-error{font-size:10px;padding:15px}}
@media(max-width:650px){.company-row .company-name,.company-row .last-entry{display:block}.company-row .last-entry{margin-top:12px}}

/* Ledger masters follow the form geometry observed in the fictional reference application company. */
.command-strip button:enabled{color:#075399}.command-strip button:enabled span{color:#397ed3}
main.entry-workspace{display:block;position:relative;overflow:auto;background:#fff}
.master-menu{width:min(345px,86%);margin:47px auto 20px;background:var(--menu);border:1px solid #8ebdf0;min-height:280px}
.master-menu-content{padding:32px 0}.master-menu-content .menu-heading{padding-left:28%;margin-bottom:20px}
.master-menu-content button{border:0;width:100%;text-align:left;padding:2px 0 2px 28%;background:none;font:inherit;color:inherit;cursor:pointer}
.master-menu-content button.selected,.master-menu-content button:focus-visible{background:var(--selected)}
.master-menu-content p{font-size:11px;margin:28px 18px;color:#497596;text-align:center}
.ledger-selector{width:min(440px,92%);margin:28px auto;background:var(--menu);border:1px solid #8ebdf0;padding-top:16px}
.ledger-selector>label{display:block;font-size:12px;text-align:center;margin-bottom:7px}
.ledger-selector>input{display:block;margin:0 auto 18px;width:85%;border:1px solid #8ebdf0;padding:4px 7px;font:inherit;background:#fff5b9}
.selection-heading{background:var(--toolbar);text-align:center;color:#fff;padding:4px;font-size:12px}
#ledger-options{max-height:330px;overflow:auto;min-height:180px;padding:10px 0}
#ledger-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;background:transparent;padding:4px 16px;text-align:left;font-size:13px}
#ledger-options button.selected{background:var(--selected)}#ledger-options button small{color:#546e87;font-size:11px}
.selection-note{font-size:10px;color:#497596;margin:12px 16px}.no-ledgers{font-size:12px;padding:0 16px;line-height:20px}
#ledger-form{width:calc(100% - 65px);min-height:100%;display:flex;flex-direction:column;position:relative;border-right:1px solid #c4c4c4}
.screen-title{position:relative}.screen-company{position:absolute;left:30%;width:60%;font-size:10px;line-height:12px;text-align:center;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:650px){.screen-company{display:none}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#sales-form{background:#f3ffe7;min-height:100%;display:flex;flex-direction:column;position:relative;font-size:13px}
.voucher-heading{height:45px;display:flex;align-items:flex-start;padding-top:8px;gap:4px;flex-shrink:0}
.voucher-type{background:var(--toolbar);color:#fff;min-width:110px;text-align:center;padding:1px 5px}.voucher-heading>span{padding:1px 0}.voucher-heading b{padding-left:9px}
.voucher-date{margin-left:auto;display:flex;flex-direction:column;text-align:right;padding:0 3px}.voucher-date input{width:140px;text-align:right;font-weight:bold}.voucher-date span{font-size:12px;margin-top:2px}
#sales-form input,#sales-form select,#sales-form textarea{font:inherit;border:1px solid transparent;border-radius:0;padding:1px 3px;background:transparent;color:#000;outline:none;min-width:0}
#sales-form input:focus,#sales-form select:focus,#sales-form textarea:focus{background:#ffcc34;border-color:#158be2}
.voucher-party{display:grid;grid-template-columns:102px 10px minmax(0,430px);align-items:center;padding:4px 4px 0;position:relative;flex-shrink:0}
.voucher-party input{font-weight:bold}.party-balance{display:flex;gap:8px;padding:1px 4px;color:#435465;font-size:12px;min-height:20px}.party-balance>i:first-child{min-width:94px}
.voucher-lines-heading{display:flex;justify-content:space-between;border-top:1px solid #c4c4c4;border-bottom:1px solid #c4c4c4;padding:2px 4px;font-size:13px;font-weight:normal}
.voucher-lines-heading strong{font-weight:normal}.sale-line{display:grid;grid-template-columns:minmax(0,1fr) 170px;align-items:start;padding:14px 3px 0;gap:20px}
.sale-line select{font-weight:bold;appearance:none;max-width:480px}.sale-line input{text-align:right;font-weight:bold;width:100%}
.voucher-space{flex:1;min-height:210px}.voucher-scope{display:flex;flex-direction:column;gap:4px;font-size:10px;line-height:15px;color:#61754d;padding:22px 6px;max-width:520px}
.voucher-scope strong{font-size:12px;color:#9c3a22;margin-top:10px}.sale-reference{display:flex;gap:25px;font-size:11px;color:#435465;padding:3px 5px}.sale-reference strong{font-weight:normal}
.voucher-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:5px 4px 15px;min-height:56px;flex-shrink:0}
.voucher-narration{display:flex;align-items:flex-start;gap:5px;width:70%;font-size:12px}.voucher-narration label{padding-top:3px}.voucher-narration textarea{resize:vertical;width:100%;min-height:38px;max-height:120px}
.voucher-total{min-width:190px;text-align:right;font-weight:bold;font-style:italic;border-top:1px solid #c4c4c4;border-bottom:3px double #c4c4c4;padding:2px 0}
.party-options{position:absolute;z-index:4;left:112px;top:28px;width:min(360px,calc(100% - 120px));max-height:300px;overflow:auto;background:var(--menu);border:1px solid #8ebdf0;box-shadow:0 2px 4px #0002}.party-options[hidden]{display:none}
.party-options button{width:100%;padding:3px 9px;border:0;background:transparent;display:flex;justify-content:space-between;gap:8px;text-align:left;font-size:12px}.party-options button.selected{background:var(--selected)}.party-options small{color:#546e87;font-size:10px}
.day-book,.accounting-entries{min-height:100%;display:flex;flex-direction:column}.report-company{font-weight:bold;text-align:center;font-size:13px;padding:12px 4px 3px}.report-subtitle{text-align:right;font-size:11px;padding:3px 7px 12px;color:#435465}
.voucher-report{width:100%;border-collapse:collapse;table-layout:auto;font-size:12px}.voucher-report th{font-weight:normal;text-align:left;border-block:1px solid #8ebdf0;padding:4px 6px;white-space:nowrap}.voucher-report td{padding:5px 6px;vertical-align:top}.voucher-report td.amount{text-align:right;white-space:nowrap}.voucher-report th:nth-last-child(-n+2){text-align:right}.voucher-report tr.selected{background:var(--selected)}
.voucher-report td button{font:inherit;font-weight:bold;border:0;background:transparent;text-align:left;padding:0;overflow-wrap:anywhere}.voucher-report tbody tr:hover{background:#fff1b5}.voucher-report tfoot th{font-weight:bold;text-align:right;border-top:1px solid #c4c4c4;border-bottom:3px double #c4c4c4}
.report-total{margin-top:auto;border-top:1px solid #8ebdf0;padding:10px 7px;text-align:right;font-size:12px}.report-total strong{margin-left:30px}.empty-report{font-size:12px;line-height:20px;padding:20px}.entries-header{display:flex;justify-content:space-between;padding:12px 5px}.accounting-entries{background:#f3ffe7}.accounting-entries .voucher-report{margin-top:12px}.accounting-entries .voucher-report td{padding-top:15px}.posting-status{font-size:12px;padding:20px 6px}.entries-narration{margin-top:auto;font-size:12px;padding:12px 6px;overflow-wrap:anywhere}
@media(max-width:650px){#sales-form{font-size:11px}.voucher-type{min-width:63px}.voucher-heading{height:50px}.voucher-date input{width:112px}.voucher-date span{font-size:10px}.voucher-party{grid-template-columns:83px 7px minmax(0,1fr)}.voucher-party input{width:100%;font-size:11px}.party-balance{font-size:10px}.party-balance>i:first-child{min-width:76px}.voucher-lines-heading{font-size:11px}.sale-line{grid-template-columns:minmax(0,1fr) 100px;gap:3px}.voucher-scope{font-size:9px}.voucher-space{min-height:210px}.voucher-bottom{display:flex;flex-direction:column-reverse;gap:8px}.voucher-total{align-self:flex-end;min-width:110px}.voucher-narration{width:100%;font-size:11px}.party-options{left:88px;width:calc(100% - 94px);font-size:11px}.party-options button{font-size:11px;display:block}.party-options small{display:block}.sale-reference{font-size:10px;gap:8px}.report-company{font-size:11px}.report-subtitle{font-size:9px}.voucher-report{font-size:9px;table-layout:fixed}.voucher-report th,.voucher-report td{padding:5px 3px;overflow-wrap:anywhere;white-space:normal}.day-book .voucher-report th:first-child{width:58px}.day-book .voucher-report th:nth-child(2){width:80px}.day-book .voucher-report th:nth-child(3){width:40px}.day-book .voucher-report th:nth-child(4){width:30px}.day-book .voucher-report th:last-child{width:32px}.voucher-report td.amount{white-space:normal;overflow-wrap:anywhere}.entries-header,.posting-status,.entries-narration{font-size:11px}.report-total{font-size:10px}.command-strip #accept-sale{width:100px}.command-strip #open-day-book{width:67px}.command-strip #view-postings{width:76px}}
.ledger-identity{height:116px;flex-shrink:0;display:flex;justify-content:space-between;border-bottom:1px solid #c4c4c4;margin:0 4px}
.identity-fields{padding-top:5px;width:min(640px,78%)}.identity-row{display:grid;grid-template-columns:76px 10px minmax(0,1fr);align-items:center;min-height:19px}
.identity-row label{padding-left:3px}.identity-row input{font-weight:bold}
#ledger-form input,#ledger-form select{font-family:inherit;font-size:13px;line-height:17px;color:#000;background:#fff;border:1px solid transparent;outline:none;border-radius:0;min-width:0;padding:0 3px;height:19px}
#ledger-form input:focus,#ledger-form select:focus{background:var(--selected);border-color:#158be2}
#ledger-form input[aria-invalid=true]{border-color:#b43525}
.opening-total{border-left:1px solid #c4c4c4;width:170px;font-size:13px;display:flex;flex-direction:column;align-items:center}
.opening-total strong{border-bottom:1px solid #c4c4c4;font-size:13px;margin-top:2px;font-weight:normal}.opening-total span{align-self:flex-end;margin:8px;font-size:12px}
.ledger-detail-columns{display:grid;grid-template-columns:45% 55%;flex:1;min-height:325px}
.ledger-accounting{padding:18px 6px;border-right:1px solid #c4c4c4}
.accounting-row{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(145px,42%);align-items:start;font-size:13px;line-height:19px;gap:0}
.accounting-row select{width:100%;font-weight:bold;appearance:none}.parent-group{display:block;padding-left:7px;font-size:13px}.billwise-row{margin-top:12px}.billwise-row select{width:52px;font-weight:normal}
.ledger-mailing{padding:5px 4px}.ledger-mailing h2{font-size:13px;font-weight:bold;text-decoration:underline;text-underline-offset:3px;margin:0 0 4px}
.mailing-row{display:grid;grid-template-columns:40% 10px minmax(0,1fr);gap:0;line-height:20px;font-size:13px}.mailing-row strong{overflow-wrap:anywhere}
.ledger-scope{font-size:11px;line-height:17px;color:#546e87;max-width:350px;margin:125px 8px 20px 0}
.opening-balance{border-top:1px solid #c4c4c4;margin:0 4px;display:flex;justify-content:center;gap:30px;align-items:center;min-height:30px;font-size:13px;font-weight:bold}
.opening-balance>span:last-child{min-width:80px;text-align:right;font-weight:normal}
.opening-editor{gap:12px;flex-wrap:wrap;padding:5px 4px}.opening-editor label{font-weight:normal}.opening-editor .opening-controls{display:flex;align-items:center;gap:4px}.opening-editor [hidden]{display:none!important}#ledger-form #ledger-opening-amount{width:130px;text-align:right;border-color:#b6cadb}#ledger-form #ledger-opening-side{width:48px;border-color:#b6cadb}.opening-editor #opening-balance-warning{flex-basis:100%;margin:2px 0;color:#9b4520;line-height:1.5;font-size:11px;font-weight:normal;text-align:center}.opening-total .opening-total-line{box-sizing:border-box;display:flex;justify-content:space-between;gap:6px;width:100%;padding:3px 6px;font-size:11px}.opening-total .opening-total-line b{font-weight:normal}.opening-total .opening-total-line b:last-child{white-space:nowrap}.opening-total .opening-total-difference{border-top:1px solid #c4c4c4}.opening-total.opening-unbalanced .opening-total-difference{color:#9b4520}.opening-report-warning{color:#9b4520;font-size:12px;line-height:1.5;padding:0 6px}.financial-footnote .opening-report-warning{font-size:11px}.opening-difference-row{color:#9b4520}
#ledger-opening-bills{font:inherit;font-size:12px;font-weight:normal;border:1px solid #8ebdf0;padding:3px 7px;background:#fff}#ledger-opening-bills:focus{outline:2px solid #155db1;background:var(--selected)}#opening-bill-summary{font-size:11px;font-weight:normal}.native-entry-dialog.billwise-dialog.opening-bills{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(510px,85dvh)}.opening-bill-columns{display:grid;grid-template-columns:100px minmax(100px,1fr) 110px 35px;align-items:start}.opening-bills #opening-bills-rows{padding-top:12px}.opening-bills .bill-entry-row{margin:0}.opening-bills [data-opening-step=amount]{text-align:right}.opening-bills [data-opening-step=reference]{font-weight:bold}.opening-bills .allocation-row-commands{padding:8px 5px;display:flex;gap:8px}.opening-bills .allocation-row-commands button{margin:0;font-size:11px}.opening-bills .bill-dialog-scope{margin:8px 5px}.opening-bills [data-opening-step=side]{padding-left:0}@media(max-width:650px){.opening-bill-columns{grid-template-columns:78px minmax(65px,1fr) 80px 28px}.opening-bills .bill-column-headings{font-size:10px}.opening-bills .bill-entry-row input{font-size:10px}.opening-bills .details-commands{display:flex;justify-content:space-between;gap:5px}.opening-bills .details-commands button{margin:0;min-width:0}.opening-bills .bill-dialog-scope{font-size:9px}#ledger-opening-bills{font-size:11px}}
.ledger-error{font-size:12px;line-height:18px;color:#a52c20;padding:0 8px;min-height:0}.ledger-error:not(:empty){padding:10px 8px;border-top:1px solid #e9c6c1;background:#fff4f2}
dialog{border:1px solid #2b66ac;padding:16px 24px;background:var(--menu);box-shadow:0 2px 12px #0003;max-width:90vw;font-size:13px}
dialog::backdrop{background:#0002}dialog p{margin:0 0 18px}dialog button{min-width:65px;margin-right:8px;border:1px solid #8ebdf0;background:#fff;padding:4px 8px}dialog button:focus{background:var(--selected)}
.confirmation-dialog{width:min(440px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:20px;box-sizing:border-box}.confirmation-dialog #confirmation-message{font-weight:bold;font-size:14px;line-height:1.5;margin:0 0 18px}.confirmation-dialog .confirmation-choices{display:flex;gap:16px;flex-wrap:wrap}.confirmation-dialog button{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:132px;min-height:42px;padding:8px 12px;margin:0;font:inherit}.confirmation-dialog button:focus{outline:2px solid #155db1;outline-offset:2px;background:var(--selected)}.confirmation-dialog kbd{font:11px Arial,sans-serif;color:#264d73;white-space:nowrap}.confirmation-dialog .confirmation-consequence{margin:16px 0 8px;line-height:1.4}.confirmation-dialog .confirmation-help{margin:0;border-top:1px solid #a5bfda;padding-top:10px;color:#264d73;font-size:11px;line-height:1.7}
@media(max-width:1000px){#ledger-form{width:100%}.accounting-row{grid-template-columns:minmax(0,1fr) 8px minmax(115px,40%);font-size:12px}.opening-total{width:150px}.ledger-identity{margin-right:0}}
@media(max-width:650px){.ledger-identity{height:107px}.identity-fields{width:100%;padding:6px 4px}.identity-row{grid-template-columns:50px 8px minmax(0,1fr);font-size:11px}.opening-total{display:none}.ledger-detail-columns{grid-template-columns:1fr;min-height:330px;display:block}.ledger-accounting{border-right:0;padding:14px 7px 22px}.accounting-row{grid-template-columns:minmax(0,1fr) 8px 42%;font-size:10px}.parent-group{font-size:10px}#ledger-form input,#ledger-form select{font-size:11px}.ledger-mailing{border-top:1px solid #c4c4c4;padding:8px}.ledger-mailing h2,.mailing-row{font-size:11px}.ledger-scope{margin:35px 0 16px;font-size:10px}.opening-balance{justify-content:flex-start;gap:8px;padding:4px;font-size:10px;flex-wrap:wrap}.opening-balance>span:last-child{min-width:40px}.ledger-selector{margin-top:24px}.master-menu{margin-top:29px}.ledger-company{display:none}.command-strip #accept-ledger{width:100px}.ledger-error{font-size:11px}}
/* Additional fields and dialogs come from the isolated company's recorded screens. */
#ledger-form textarea{font:inherit;border:1px solid transparent;background:transparent;outline:none;resize:vertical;min-width:0;width:100%;padding:1px 3px;max-height:110px}
#ledger-form textarea:focus{background:var(--selected);border-color:#158be2}.mailing-row input{width:100%;font-weight:bold}.mailing-row.address-row{min-height:88px}.ledger-mailing .ledger-scope{margin-top:60px}
.voucher-party{grid-template-columns:96px 10px minmax(0,207px)}
.party-options{left:auto;right:0;top:0;width:298px;height:100%;max-height:none;box-shadow:none;border-top:0}.party-options .selection-heading{text-align:left;font-size:14px;line-height:18px;padding:0 6px}.picker-create-row{height:32px;display:flex;justify-content:flex-end;align-items:flex-end}.picker-create-row #create-party{width:auto;text-align:right;padding:1px 8px}.party-options button{padding:1px 7px;font-size:13px}
.voucher-lines-heading .rate-heading{margin-left:auto;margin-right:55px;font-size:12px}.sale-line[hidden]{display:none}.sale-line{padding-top:0;margin-top:14px;min-height:20px}.sale-line select{width:247px;max-width:100%}.sale-line:has(select:focus){background:#fff0bf}
.native-entry-dialog{position:fixed;left:calc((100vw - 128px)/2);top:calc((100dvh + 46px)/2);transform:translate(-50%,-50%);margin:0;border:1px solid #777;background:white;box-shadow:none;padding:8px 16px;width:min(745px,calc(100vw - 152px));max-height:80dvh;color:#000;font-size:13px}
.native-entry-dialog::backdrop{background:linear-gradient(to bottom,transparent 72px,#77868d88 72px,#77868d88 calc(100% - 26px),transparent calc(100% - 26px))}
.native-entry-dialog h2{font-size:13px;font-weight:bold;text-align:center;text-decoration:underline;text-underline-offset:3px;margin:0 0 7px}.dispatch-columns{display:grid;grid-template-columns:46% 54%;gap:5px}.delivery-note label{display:block;margin:0 0 15px 4px}.native-entry-dialog .delivery-note input{width:150px;max-width:100%}.native-entry-dialog input,.native-entry-dialog textarea{font:inherit;padding:0 3px;height:19px;border:1px solid transparent;border-radius:0;background:white;outline:none;min-width:0;width:100%}.native-entry-dialog input:focus,.native-entry-dialog textarea:focus{background:#ffcc34;border-color:#158be2}.native-entry-dialog input[readonly]{font-weight:bold}.native-entry-dialog textarea{height:70px;resize:vertical}.detail-row{display:grid;grid-template-columns:140px 8px minmax(0,1fr);align-items:start;min-height:22px;line-height:19px}.lading-row{display:flex}.lading-row>.detail-row:first-child{flex:1;min-width:0}.lading-row>.detail-row:last-child{width:115px;grid-template-columns:32px 5px minmax(0,1fr)}.lading-row .detail-row:first-child{grid-template-columns:168px 6px minmax(0,1fr)}
.native-entry-dialog.party-dialog{width:min(472px,calc(100vw - 152px));min-height:280px;padding:8px 18px}.party-dialog .detail-row{grid-template-columns:138px 8px minmax(0,1fr);min-height:19px}.party-region{margin-top:85px}.details-commands{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.details-commands button{min-width:70px;padding:1px 5px;text-align:left;font-size:11px;margin:0}.details-commands small{font-size:10px;color:#397ed3;margin-left:5px}.details-error:empty{display:none}.details-error{font-size:11px;margin:4px 0;color:#a52c20}
@media(max-width:1000px){.native-entry-dialog{left:calc((100vw - 105px)/2);width:calc(100vw - 129px)}.dispatch-columns{grid-template-columns:37% 63%}.native-entry-dialog.party-dialog{width:min(472px,calc(100vw - 129px))}}
@media(max-width:650px){.ledger-mailing .ledger-scope{margin-top:35px}.mailing-row.address-row{min-height:70px}#ledger-form textarea{font-size:11px}.voucher-party{grid-template-columns:83px 7px minmax(0,1fr)}.party-options{left:auto;right:0;width:62%;max-height:none;font-size:11px}.party-options .selection-heading{font-size:10px;line-height:16px;padding:0 4px}.party-options button{font-size:10px;padding:2px 4px}.party-options small{font-size:9px}.voucher-lines-heading .rate-heading{font-size:10px;margin-right:25px}.native-entry-dialog{left:calc((100vw - 65px)/2);width:calc(100vw - 81px);top:calc((100dvh + 46px)/2);padding:8px;font-size:10px}.native-entry-dialog.party-dialog{width:calc(100vw - 81px);padding:8px;min-height:280px}.native-entry-dialog h2{font-size:11px}.dispatch-columns{display:block}.delivery-note{margin-bottom:10px}.delivery-note label{margin-bottom:3px}.native-entry-dialog input,.native-entry-dialog textarea{font-size:10px}.detail-row,.party-dialog .detail-row{grid-template-columns:105px 7px minmax(0,1fr)}.lading-row{display:block}.lading-row .detail-row:first-child{grid-template-columns:132px 7px minmax(0,1fr)}.lading-row>.detail-row:last-child{width:100%;grid-template-columns:105px 7px minmax(0,1fr)}.party-region{margin-top:55px}.details-commands button{font-size:10px;min-width:60px}.details-commands small{font-size:9px}.command-strip #accept-sale{width:90px}.command-strip #open-day-book{width:60px}.command-strip #view-postings{width:65px}.command-strip #party-details{width:75px}}


/* The wider opening breakup needs viewport centring on compact screens. */
@media(max-width:1000px){.native-entry-dialog.billwise-dialog.opening-bills{left:50%}}

#home[aria-disabled='true']{cursor:progress;opacity:.65;text-decoration:underline dotted;text-underline-offset:4px}
.sale-line.item-line{display:grid;grid-template-columns:minmax(140px,2fr) minmax(100px,1fr) 70px 130px 100px 24px;align-items:center;gap:8px;padding-top:2px;margin-top:8px}
.sale-line.item-line select{width:100%;max-width:100%}
.sale-line.item-line input{width:100%}
.voucher-lines-heading.item-mode-heading{display:grid;grid-template-columns:minmax(140px,2fr) minmax(100px,1fr) 70px 130px 100px 24px;gap:8px;align-items:center}
.item-gst-summary{display:flex;justify-content:flex-end;gap:16px;padding:6px 12px;background:#f7fafc;border-top:1px dashed #c0d0dc;font-size:11px;color:#1a365d}
.stock-summary-report table th{font-size:11px;padding:4px}
.stock-summary-report table td{font-size:11px;padding:4px}
.inventory-section-title{font-size:11px;margin-top:10px;margin-bottom:6px;color:#0b2b40;border-bottom:1px solid #c8d4dc;padding-bottom:2px}
.master-delete-container{padding:10px}
.master-delete-btn{background:#fee;border:1px solid #d88;padding:4px 8px;cursor:pointer}
