:root{font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:#182e2c;background:#f2f5f2;font-size:14px;--green:#17614d;--line:#dfe7e1}*{box-sizing:border-box}body{margin:0;display:flex}aside{width:224px;background:#102f28;color:#dfebe5;position:fixed;inset:0 auto 0 0;padding:40px 24px;display:flex;flex-direction:column}.brand{font-size:36px;letter-spacing:6px;font-weight:700}.brand span{color:#b8d2ad}.brand small{display:block;font-size:12px;font-weight:400;letter-spacing:3px;margin:12px 0 44px}nav{display:grid;gap:12px}nav button{text-align:left;background:transparent;color:#e5eee8;border:1px solid #35554b;padding:14px}.sidebottom{margin-top:auto;display:grid;gap:18px}.sidebottom small{font-size:11px;color:#b1c4bb}main{margin-left:224px;width:calc(100% - 224px);padding:38px 42px;max-width:1700px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}header small{font-size:10px;letter-spacing:2px;color:#678077}h1{font-size:30px;font-weight:600;margin:10px 0}h2{font-size:18px;font-weight:600;margin:0 0 20px}p,li{line-height:1.9}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:20px;box-shadow:0 4px 20px #14291a04}.login{max-width:460px;margin:60px auto}.eyebrow{color:var(--green);font-size:12px;letter-spacing:2px;margin-bottom:18px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#486058}input,select,textarea{font:inherit;font-size:14px;width:100%;padding:11px 12px;border:1px solid #cdd9d1;border-radius:7px;color:#193b30;background:#fff}input:focus,select:focus,textarea:focus{outline:2px solid #8abb9e;outline-offset:1px}input:disabled,select:disabled,textarea:disabled{background:#f5f7f5;color:#304d41}button,.button{font:inherit;text-decoration:none;display:inline-block;border:1px solid #c9d8cf;border-radius:7px;padding:11px 16px;background:#fff;color:#254c3b;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:#edf4ed}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0f4939}.login form{display:grid;gap:20px;margin-top:28px}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.toolbar input,.toolbar select{min-width:145px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 24px}.stat{background:white;border:1px solid var(--line);padding:20px;border-radius:10px}.stat small{display:block;color:#6b7c71;font-size:11px;margin-bottom:14px}.stat strong{font-size:24px;font-weight:500;font-variant-numeric:tabular-nums}.stat.warning{background:#fff7e9;border-color:#e8cb91}.tablewrap{padding:0;overflow:auto}table{border-collapse:collapse;width:100%;min-width:820px}th{text-align:left;background:#e9efea;color:#6a7b70;font-size:11px;letter-spacing:.3px;padding:18px}td{padding:20px 18px;border-top:1px solid #edf0eb}td small{display:block;margin-top:6px;color:#8b978c}.num{text-align:right;font-variant-numeric:tabular-nums}.red{color:#b54831}.badge{padding:5px 9px;border-radius:4px;font-size:11px;white-space:nowrap;background:#ecefe9}.submitted{background:#fff0ce;color:#8e651b}.approved{background:#e0f0e5;color:#216443}.returned{background:#fbe6df;color:#9d4431}.muted{font-size:12px;color:#7e8d82}#empty{text-align:center;padding:65px;color:#8a978c}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.twocol{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.twocol .grid{grid-template-columns:1fr 1fr}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.sectionhead h2{margin:0}.denom{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid #f1f3ef}.denom input{width:140px;text-align:right}#denoms{margin-bottom:22px}.detailrow{display:flex;align-items:end;gap:14px;margin:14px 0}.detailrow label{flex:1}.smallbtn{color:#ad4f39}.sticky{position:sticky;bottom:12px;background:#edf3edee;border:1px solid #c8d7c9;padding:16px;border-radius:12px;backdrop-filter:blur(10px)}#notice{padding:15px 20px;margin:14px 0;border-radius:8px;position:sticky;top:8px;z-index:3}.error{background:#fbe9df;color:#9c3e27}.success{background:#dcefe0;color:#1d633b}#audit{font-size:12px;color:#6a8070}#reviewNote{color:#a65338;font-size:12px}#today{font-size:12px;color:#7c8b7f}[hidden]{display:none!important}@media(max-width:1100px){main{padding:25px}aside{width:180px;padding:30px 18px}main{margin-left:180px;width:calc(100% - 180px)}.stats{grid-template-columns:repeat(2,1fr)}.twocol{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){body{display:block}aside{position:static;width:auto;padding:16px}.brand{font-size:24px}.brand small{margin:6px 0 14px}nav{display:flex;flex-wrap:wrap;gap:8px}.sidebottom{margin-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}main{margin:0;width:100%;padding:20px 14px}.grid{grid-template-columns:1fr}.detailrow{flex-wrap:wrap}.detailrow label{min-width:120px}.stat strong{font-size:19px}#today{display:none}}@media print{aside,header,.toolbar,.sticky,button,#notice,#audit,.muted{display:none!important}main{margin:0;padding:0;width:100%;max-width:none}.card{box-shadow:none;break-inside:avoid;margin-bottom:10px;padding:14px}.stats{gap:6px;margin:8px 0}.stat{padding:8px}.stat strong{font-size:16px}input,select,textarea{border:0;padding:3px;background:white!important;color:black!important}.twocol{display:grid;grid-template-columns:1fr 1fr}body{background:white;font-size:11px}h2{font-size:14px;margin-bottom:10px}}

.detailrow{flex-wrap:wrap}.receiptarea{flex-basis:100%;padding:12px 0;border-top:1px solid #edf0eb}.receiptarea .receiptUpload{display:inline-flex;flex-direction:row;cursor:pointer;min-width:0}.receiptUpload input{width:200px;padding:0;border:0;font-size:12px}.receiptarea>small{display:block;margin:8px 0}.receiptgallery{display:flex;gap:12px;flex-wrap:wrap}.receiptcard{width:150px;display:grid;gap:6px;overflow-wrap:anywhere}.receiptthumb{padding:4px}.receiptthumb img{width:132px;height:110px;object-fit:contain}.receiptviewer{width:min(95vw,1100px);max-width:95vw;max-height:95vh;border:1px solid #b5c9ba;border-radius:12px;padding:18px}.receiptviewer img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:15px auto}.receiptviewer::backdrop{background:#112d25aa}label.receiptUpload:has(input:disabled){display:none}@media print{.receiptarea .receiptUpload,.receiptarea>small{display:none!important}.receiptthumb{display:block!important;border:0}.receiptthumb img{width:120px;height:100px}}

.chequerow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px 0;border-bottom:1px solid #dfe7e1;margin-bottom:15px}.chequerow .smallbtn{align-self:end;justify-self:start}@media(max-width:650px){.chequerow{grid-template-columns:1fr}}



.cashTotals{display:grid;gap:8px;margin:14px 0 20px}.cashTotals .stat{padding:12px 15px;background:#f4f8f4;display:flex;align-items:center;justify-content:space-between;gap:10px}.cashTotals .stat small{margin:0}.cashTotals .stat strong{font-size:20px}



#cardFees{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#cardFees .stat{padding:14px}#cardFees .stat strong{font-size:20px}.twocol h3{font-size:15px;margin:24px 0 14px}@media(max-width:650px){#cardFees{grid-template-columns:1fr}}



@media print{body.printDaily main>header,body.printDaily main>section:not(#dailySummary),body.printDaily #dailySummary>:not(#dailyPrintSheet){display:none!important}body.printDaily #dailyPrintSheet{display:block!important}body.printDaily #dailyPrintSheet table{min-width:0;width:100%;table-layout:fixed}body.printDaily #dailyPrintSheet th,body.printDaily #dailyPrintSheet td{padding:8px 6px;overflow-wrap:anywhere;border:1px solid #bbb;font-size:10px}body.printDaily #dailyPrintSheet th:first-child{width:27%}body.printDaily #dailyPrintSheet p{font-size:11px;line-height:1.6}body.printDaily #dailyPrintSheet h1{font-size:23px}}



#monthlyLedgerNav{margin:0}#monthlyPhotos{margin-top:18px}#monthlyPhotos .receiptarea{display:block}#monthlyLedger .receiptgallery{padding:8px 0}



#cashExpenses{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}#cashExpenses .sectionhead{flex-wrap:wrap}#cashExpenses .detailrow label{min-width:110px}#cashExpenses .receiptarea{width:100%}



#entryOverview{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}#entryOverview h3{font-size:16px}#overviewValues{grid-template-columns:repeat(3,minmax(0,1fr))}#overviewValues .stat{background:#f4f8f4}#overviewValues .stat strong{font-size:23px}@media(max-width:850px){#overviewValues{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){#overviewValues{grid-template-columns:1fr}}



@page dailyReport{size:A4 landscape;margin:12mm}@media print{body.printDaily #dailyPrintSheet{page:dailyReport}body.printDaily #dailyPrintSheet th:first-child{width:24%}}



#paymentFields:has(.cardComparison){display:block}.cardComparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cardCompareColumn{display:grid;gap:18px;align-content:start}.cardCompareColumn h3{margin:0;padding-bottom:12px;border-bottom:1px solid var(--line)}#cardDifferences{grid-template-columns:repeat(2,minmax(0,1fr))}#cardDifferences .stat{padding:14px}#cardDifferences .stat strong{font-size:21px}#legacyCardDetails{margin:18px 0;color:#697b71}#legacyCardDetails .grid{margin-top:14px}@media(max-width:450px){.cardComparison{gap:10px}.cardCompareColumn label{font-size:11px}.cardCompareColumn input{padding:10px 6px}}



#paymentDifferenceSection{margin:22px 0;padding-top:16px;border-top:1px solid var(--line)}#paymentDifferences{display:grid;grid-template-columns:1fr;gap:12px}#paymentDifferences .stat{margin:0}#paymentDifferences .stat strong{font-size:25px}



#cashReconciliation{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.cashTotals{display:grid;gap:10px;margin:14px 0}.cashTotals .stat{padding:14px}#cashReconciliationResult{margin-top:14px}#cashReconciliation .stat strong{font-size:22px}



.reportTotalCheck{display:flex;flex-direction:row;align-items:center;gap:9px;margin:12px 0}.reportTotalCheck input{width:18px;height:18px}.reportTotalCheck span{line-height:1.6}



.incomeReportComparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:22px 0}#fiveItemTotal .stat,#incomeReportDifference .stat{margin:0}#incomeReportDifference{margin-bottom:18px}.incomeReportComparison input{margin-bottom:8px}@media(max-width:650px){.incomeReportComparison{grid-template-columns:1fr}}



.stationRenameForm{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.stationRenameForm label{min-width:160px;flex:1}#stationManagementRows td:last-child{white-space:nowrap}#stationManagementRows td:last-child button+button{margin-left:8px}



#stats{grid-template-columns:repeat(5,minmax(0,1fr))}#stats .stat strong{font-size:23px}@media(max-width:1200px){#stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){#stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){#stats{grid-template-columns:1fr}}



#selectAllEntries,#rows input[data-select-entry]{width:18px;height:18px;cursor:pointer}#selectedSettlement .stats{grid-template-columns:repeat(4,minmax(0,1fr))}#selectedSettlement{border-color:#a9c8b8}@media(max-width:900px){#selectedSettlement .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){#selectedSettlement .stats{grid-template-columns:1fr}}



.fxDayGroup{padding:0;overflow:hidden}.fxDayGroup>summary{padding:20px 24px;cursor:pointer;font-weight:600;background:#e9efea}.fxDayGroup[open]>summary{border-bottom:1px solid #dfe7e1}.fxDayGroup>.muted{display:block;padding:10px 24px}



.fxDayBreakdown{display:block;margin-top:7px;padding-left:18px;font-size:12px;font-weight:400;color:#486058}



/* Compact only the cash-ledger entry form; reports keep their existing layout. */

#forex>.card:first-child{max-width:1000px;padding:16px 18px}

#forex>.card:first-child h2{font-size:17px;margin-bottom:8px}

#forex>.card:first-child>.muted{margin:6px 0 12px;font-size:11px;line-height:1.6}

#fxForm .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:end}

#fxForm label{gap:5px}#fxForm label:has(input[name=person]){grid-column:span 2}

#fxForm input,#fxForm select{padding:7px 9px;font-size:13px;min-height:34px}

#fxForm .toolbar{gap:8px;margin:12px 0 0}#fxForm button{padding:8px 14px;font-size:13px}

@media(max-width:1100px){#fxForm .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:650px){#fxForm .grid{grid-template-columns:1fr}#fxForm label:has(input[name=person]){grid-column:auto}}



#fxPhotoDisclosure{margin-top:10px;font-size:12px}#fxPhotoDisclosure>summary{cursor:pointer;color:#17614d}#fxPhotos .receiptarea{padding:8px 0;border:0}#fxPhotos .receiptUpload{padding:6px 10px}



#fxForm .grid>#fxPhotoDisclosure{margin:0;align-self:end;min-width:0}#fxForm .grid>#fxPhotoDisclosure>summary{padding:8px 9px;min-height:34px;border:1px solid #cdd9d1;border-radius:7px;background:#fff}#fxForm .grid>#fxPhotoDisclosure[open]{grid-column:1 / -1}



/* Vertical entry layout for the FX and cash-payment form. */

#forex>.card:first-child{max-width:620px}#fxForm .grid{grid-template-columns:minmax(0,1fr);gap:11px}#fxForm label:has(input[name=person]){grid-column:auto}#fxForm .grid>#fxPhotoDisclosure,#fxForm .grid>#fxPhotoDisclosure[open]{grid-column:auto;width:100%}



:is(#bankRows,#bankOlderRows) input[data-bank-select],.batchCheck input{width:18px;height:18px}.batchCheck{display:flex;flex-direction:row;align-items:center;margin:15px 0}.batchTools .toolbar{margin:0}.batchTools p{margin-bottom:0}#batchPreviewPanel>label{margin:12px 0}#batchDetail>.tablewrap{margin-bottom:20px}#batchDetail table{min-width:650px}#batchDepositForm details{margin:12px 0}.depositItem{padding:14px 0;border-top:1px solid #dfe7e1}.depositItem p{margin:5px 0}.depositItem button,.depositItem .button{margin:7px 7px 0 0}#batchReason input{max-width:400px}



/* Keep the unauthenticated page limited to the sign-in controls. */

body.signed-out{display:block;background:#f2f5f2}

body.signed-out>aside,body.signed-out main>header{display:none!important}

body.signed-out main{margin:0;width:100%;max-width:none;min-height:100vh;min-height:100dvh;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}

body.signed-out main>section:not(#login){display:none!important}

body.signed-out #login{width:100%;max-width:380px;margin:0;padding:26px}

body.signed-out #loginForm{margin:0;gap:18px}

body.signed-out #notice{width:100%;max-width:380px;margin:0 0 12px}



/* Match batch and deposit workflows to the compact vertical cash-ledger layout. */

#bankSummary,#batchManagement{max-width:1080px}

#bankSummary>.toolbar{gap:10px;margin:10px 0 14px}

#bankSummary .batchTools,#batchPreviewPanel,#batchDetail>.card:not(.tablewrap){max-width:620px;padding:16px 18px}

#bankSummary .batchTools .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:end}

#bankSummary .batchTools .toolbar>label{grid-column:1 / -1;max-width:270px}

#bankSummary .batchTools p,#batchPreviewPanel p,#batchDetail p{font-size:12px;line-height:1.6;margin:8px 0}

#bankSummary .batchTools button,#batchPreviewPanel button,#batchManagement button,#batchManagement .button{padding:8px 11px;font-size:12px}

#bankSummary input,#batchManagement input,#batchManagement select{padding:7px 9px;min-height:34px;font-size:13px}

#batchPreviewPanel h2,#batchDetail h2{font-size:17px;margin-bottom:10px}

#batchPreviewPanel>.tablewrap,#batchDetail>.tablewrap{max-width:620px;overflow:auto}

#batchPreviewPanel table{min-width:0;width:100%;table-layout:fixed}

#batchPreviewPanel td{padding:10px 8px;font-size:13px}

#batchPreviewPanel td:first-child{width:64%}

#batchPreviewPanel label{margin:10px 0;gap:5px}

#batchDetail table{min-width:0;width:100%}

#batchDetail th,#batchDetail td{padding:10px 8px;font-size:12px}

#batchDetail>.tablewrap:nth-child(2) table{table-layout:fixed}

#batchDetail>.tablewrap:nth-child(2) td:first-child{width:64%}

#batchDepositForm .grid{grid-template-columns:minmax(0,1fr);gap:10px;max-width:450px}

#batchDepositForm label{gap:5px}

#batchDetail .depositItem{padding:10px 0;font-size:13px}

#batchHistory th,#batchHistory td,:is(#bankRows,#bankOlderRows) td{padding:12px 10px}

#batchHistory th,#bankHead th{padding:12px 10px}

@media(max-width:650px){#bankSummary .batchTools .toolbar{grid-template-columns:1fr}#bankSummary .batchTools .toolbar>label{max-width:none}#batchDetail>.tablewrap{overflow-x:auto}#batchDetail>.tablewrap:nth-child(3) table{min-width:470px}}



/* Stack the entire batch workflow vertically, including daily summary rows. */

#bankSummary,#batchManagement{max-width:620px}

#bankSummary>.toolbar,#batchManagement>.toolbar,#batchDetail>.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px;max-width:620px}

#bankSummary>.toolbar label,#bankSummary>.toolbar button{width:100%}

#bankSummary .batchTools .toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px}

#bankSummary .batchTools .toolbar>label{max-width:none;width:100%}

#bankSummary .batchTools button{width:100%}

#bankSummary>.tablewrap{border:0;background:transparent;overflow:visible}

#bankSummary table,:is(#bankRows,#bankOlderRows){display:block;min-width:0;width:100%}

#bankHead{display:none}

:is(#bankRows,#bankOlderRows) tr{display:block;background:#fff;border:1px solid #dfe7e1;border-radius:10px;padding:12px 16px;margin-bottom:12px}

:is(#bankRows,#bankOlderRows) td{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;padding:6px 0;text-align:right;font-size:13px}

:is(#bankRows,#bankOlderRows) td::before{color:#6a7b70;text-align:left;font-size:12px;flex:1}

:is(#bankRows,#bankOlderRows) td:nth-child(1)::before{content:'选择日期'}

:is(#bankRows,#bankOlderRows) td:nth-child(2)::before{content:'营业日期'}

:is(#bankRows,#bankOlderRows) td:nth-child(3)::before{content:'美金现金 US$'}

:is(#bankRows,#bankOlderRows) td:nth-child(4)::before{content:'CREDIT扣费后 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(5)::before{content:'LINX扣费后 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(6)::before{content:'收银台支票 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(7)::before{content:'批发支票 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(8)::before{content:'现金汇总 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(9)::before{content:'当天收银总额／营业额 TT$'}

:is(#bankRows,#bankOlderRows) td:nth-child(2){font-weight:600}

:is(#bankRows,#bankOlderRows) td:last-child{flex-direction:column;align-items:stretch;padding-top:10px}

:is(#bankRows,#bankOlderRows) td:last-child button{width:100%;margin:0;padding:8px}

#batchHistory .tablewrap{border:0;background:transparent;overflow:visible}

#batchHistory table{display:block;min-width:0;width:100%}

#batchHistory table>tr:first-child{display:none}

#batchHistory table>tr:not(:first-child){display:block;background:#fff;border:1px solid #dfe7e1;border-radius:10px;padding:12px 16px;margin-bottom:12px}

#batchHistory td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px 0;font-size:13px;overflow-wrap:anywhere}

#batchHistory td::before{color:#6a7b70;font-size:12px;flex:0 0 75px}

#batchHistory td:nth-child(1)::before{content:'批次'}

#batchHistory td:nth-child(2)::before{content:'结账日期'}

#batchHistory td:nth-child(3)::before{content:'营业日期'}

#batchHistory td:nth-child(4)::before{content:'存款状态'}

#batchHistory td:last-child{display:block}

#batchHistory td:last-child button{width:100%}

#batchDetail>.tablewrap:nth-child(3){overflow:visible;background:transparent;border:0}

#batchDetail>.tablewrap:nth-child(3) table{display:block;min-width:0;width:100%}

#batchDetail>.tablewrap:nth-child(3) table>tr:first-child{display:none}

#batchDetail>.tablewrap:nth-child(3) table>tr:not(:first-child){display:block;background:#fff;border:1px solid #dfe7e1;border-radius:8px;padding:10px 14px;margin-bottom:9px}

#batchDetail>.tablewrap:nth-child(3) td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 0}

#batchDetail>.tablewrap:nth-child(3) td::before{color:#6a7b70;text-align:left;flex:1}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(1)::before{content:'款项'}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(2)::before{content:'币种'}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(3)::before{content:'应存金额'}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(4)::before{content:'已存金额'}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(5)::before{content:'未存余额'}

#batchDetail .depositItem button,#batchDetail .depositItem .button{display:block;width:100%;margin:8px 0 0;text-align:center}



/* Put each day's selection and date first; expand figures only on demand. */

:is(#bankRows,#bankOlderRows) tr.bankDayRow{padding:9px 12px;margin-bottom:8px}

:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:0;text-align:left}

:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader::before{content:none}

:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader input{flex:0 0 18px;margin:0}

:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader button{flex:1;width:auto;border:0;background:transparent;text-align:left;font-weight:600;padding:8px 4px;font-size:14px}

:is(#bankRows,#bankOlderRows) tr.bankDayRow:not(.is-open)>td:not(:first-child){display:none}

:is(#bankRows,#bankOlderRows) tr.bankDayRow.is-open>td[data-label]::before{content:attr(data-label)}

:is(#bankRows,#bankOlderRows) tr.bankDayRow.is-open>td[data-label]{font-weight:400;padding:6px 0}

:is(#bankRows,#bankOlderRows) tr.bankDayRow.is-open>td:last-child::before{content:none}



:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader button{white-space:normal;overflow-wrap:anywhere;line-height:1.6}



@media screen{

 #dailySummary{max-width:620px}

 #dailySummary>.card:first-child{padding:16px 18px}

 #dailySummary h2{font-size:17px;margin-bottom:10px}

 #dailySummary .toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:10px 0}

 #dailySummary .toolbar label,#dailySummary .toolbar button{width:100%}

 #dailySummary input,#dailySummary button{padding:8px 10px;min-height:34px;font-size:13px}

 #dailySummary p{font-size:12px;line-height:1.6;margin:8px 0}

 #dailySummary .dailyHelp{font-size:12px;color:#6a7b70;margin-top:10px}

 #dailySummary .dailyHelp>summary{cursor:pointer}

 #detailCashActivity{display:block;margin:12px 0}

 #detailCashActivity:empty{display:none}

 #detailCashActivity .stat{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-radius:7px;margin-bottom:6px}

 #detailCashActivity .stat small{font-size:12px;margin:0}

 #detailCashActivity .stat strong{font-size:16px;text-align:right}

 #summaryCompact .dailyStation{padding:0;margin-bottom:10px;overflow:hidden}

 #summaryCompact .dailyStation>summary{cursor:pointer;padding:13px 15px;background:#e9efea;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}

 #summaryCompact .dailyStation[open]>summary{border-bottom:1px solid #dfe7e1}

 #summaryCompact .dailyAmountList{margin:0;padding:7px 14px}

 #summaryCompact .dailyAmountList>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:8px 0;border-bottom:1px solid #edf0eb;align-items:start}

 #summaryCompact .dailyAmountList>div:last-child{border-bottom:0}

 #summaryCompact dt{font-size:12px;color:#486058;line-height:1.5}

 #summaryCompact dd{margin:0;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

}



#batchDetail>.tablewrap:nth-child(3) td:nth-child(5)::before{content:'G4S已交收待到账'}

#batchDetail>.tablewrap:nth-child(3) td:nth-child(6)::before{content:'未存／未交收余额'}

.depositSlot{border:1px solid #dfe7e1;border-radius:8px;margin:10px 0;overflow:hidden}.depositSlot>summary{padding:12px;cursor:pointer;background:#e9efea;font-weight:600;font-size:13px}.depositSlotBody{padding:12px}.depositRunForm .grid{display:grid;grid-template-columns:1fr;gap:10px}.depositRunForm input{min-width:0}.depositRunForm>details{margin:12px 0}.depositRunForm>button,.depositSlotBody>button,.depositSlotBody>.button{display:block;width:100%;margin-top:9px;text-align:center}.runAmountList{margin:10px 0}.runAmountList>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0}.runAmountList dt{font-size:12px;color:#486058}.runAmountList dd{margin:0;font-size:13px}



#batchPreviewPanel .batchPreviewActions{display:flex;flex-direction:row;gap:8px;align-items:stretch}#batchPreviewPanel .batchPreviewActions button{flex:1;min-width:0;white-space:normal}



/* Keep sidebar labels readable on hover, focus and the current page. */

aside nav button{background:#173f34;color:#f1f7f3;border-color:#41685b}

aside nav button:hover,aside nav button:active,aside nav button:focus-visible,aside nav button[aria-current="page"]{background:#2c5e50;color:#fff;border-color:#8cbba8}

aside nav button:focus-visible{outline:2px solid #b8d2ad;outline-offset:2px}

.userAccountRow{padding:14px 0;border-bottom:1px solid #dfe7e1}.passwordResetForm{display:grid;gap:10px;max-width:380px;margin-top:10px}#ownerPassword{margin:5px 0 14px}



.previewDepositEditor{max-width:600px;margin:14px 0}.previewDepositFields{display:grid;gap:12px;margin-top:12px}.previewDepositFields table{min-width:0;width:100%;table-layout:fixed}.previewDepositFields th,.previewDepositFields td{padding:10px 5px;word-break:break-word}.previewDepositFields input{min-width:0}.previewDepositFields table input{text-align:right;padding:9px 6px}



.batchHistoryItem{max-width:650px;background:#fff;border:1px solid var(--line);border-radius:10px;margin:0 0 12px}.batchHistoryItem>summary{cursor:pointer;padding:14px;list-style-position:inside}.batchHistoryItem>summary>strong{margin-left:6px}.batchHistoryAmounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 0 18px}.batchHistoryAmounts>span{display:grid;gap:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.batchHistoryAmounts small{color:#6a7b70;font-size:12px}.batchPending{display:block;margin:9px 0 0 18px;color:#806237;font-size:11px}.batchHistoryDetails{padding:0 14px 14px;border-top:1px solid var(--line)}.batchHistoryDetails>button{width:100%}.batchHistoryRun{border-top:1px solid var(--line);padding:12px 0;font-size:12px}.batchHistoryRun p{margin:8px 0}.batchHistoryRun button,.batchHistoryRun a{margin:4px}



#ledger{max-width:800px}.ledgerScopeDetails{margin:12px 0;color:#6a7b70;font-size:12px}.ledgerScopeDetails>summary{cursor:pointer}.ledgerSelectAll{display:flex;flex-direction:row;align-items:center;gap:7px;padding:10px 0}.ledgerCompactList{background:transparent;border:0;overflow:visible}.ledgerCompactList table,.ledgerCompactList tbody,.ledgerCompactList tr,.ledgerCompactList td{display:block;min-width:0;width:100%}.ledgerCompactList td{border:0;padding:0}.ledgerCompactRow{display:flex;gap:12px;align-items:flex-start;background:white;border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:9px}.ledgerCompactRow>input{flex:0 0 18px;margin-top:3px}.ledgerEntryDetails{min-width:0;flex:1}.ledgerEntryDetails>summary{cursor:pointer;line-height:1.7;list-style-position:inside}.ledgerEntryTitle{font-size:13px;font-weight:600;margin-right:10px;overflow-wrap:anywhere}.ledgerEntryDetails .badge{display:inline-block;font-size:10px;padding:2px 6px}.ledgerEntryBody{border-top:1px solid var(--line);margin-top:10px;padding-top:5px}.ledgerEntryAmounts{margin:8px 0 14px}.ledgerEntryAmounts>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:12px}.ledgerEntryAmounts dt{color:#486058}.ledgerEntryAmounts dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ledgerEntryBody>button{width:100%}

.ledgerSelectAll #selectAllEntries{min-width:18px;flex:0 0 18px;margin:0}



.ledgerDayGroup{border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:10px}.ledgerDayGroup>summary{padding:14px 16px;cursor:pointer;font-size:13px;font-weight:600}.ledgerDayBody{padding:0 10px 2px}.ledgerDayBody .ledgerCompactRow{padding:10px;margin-bottom:8px;background:#f9fbf9}.ledgerDayBody .ledgerEntryTitle{font-weight:500}



.workbenchHeading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.workbenchExports{display:flex;gap:8px;flex-wrap:wrap}.workbenchExports .button{font-size:12px;padding:9px 12px}@media(max-width:650px){.workbenchHeading{gap:6px}.workbenchExports{margin:0 0 8px}.workbenchExports .button{padding:8px;font-size:11px}}



.stationQuickPanel{margin:0 0 18px;display:grid;gap:10px}.stationQuickPanel>label{max-width:190px}.stationQuickButtons{display:flex;gap:8px;flex-wrap:wrap}.stationQuickButtons button{background:#e7f1eb;border-color:#abc8b8;color:#194f3c;padding:10px 13px;font-size:13px}.stationQuickButtons button:hover{background:#d3e6da}@media(max-width:650px){.stationQuickButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stationQuickButtons button{white-space:normal;padding:10px}}



@media screen{

 #editor{max-width:680px}#editor .card{padding:16px;border-radius:10px;margin-bottom:12px}#editor h2{font-size:16px;margin-bottom:12px}#editor h3{font-size:14px;margin:16px 0 10px}#editor .sectionhead{gap:10px;margin-bottom:12px;flex-wrap:wrap}#editor .sectionhead h2{margin:0}#editor .grid,#editor .twocol{grid-template-columns:minmax(0,1fr);gap:12px}#editor input,#editor select,#editor textarea{padding:9px 10px;min-width:0}#editor label{gap:5px}#editor .toolbar{gap:8px;margin:12px 0}#editor .toolbar button{padding:9px 12px}#editor .sticky{bottom:8px;padding:10px;z-index:2}#entryOverview{margin-top:16px;padding-top:12px}#editor .stats,#editor #overviewValues,#editor #cardFees,#editor #cardDifferences{grid-template-columns:minmax(0,1fr);gap:6px;margin:10px 0 14px}#editor .stat,#editor #overviewValues .stat,#editor #cardFees .stat,#editor #cardDifferences .stat{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:7px;min-width:0}#editor .stat small{font-size:12px;margin:0;line-height:1.5;max-width:68%}#editor .stat strong,#editor #overviewValues .stat strong,#editor #cardFees .stat strong,#editor #cardDifferences .stat strong{font-size:18px;text-align:right;overflow-wrap:anywhere}#editor .denom{padding:5px 0;gap:12px}#editor .denom input{width:110px}#editor #denoms{margin-bottom:14px}#editor .detailrow{gap:9px;flex-wrap:wrap;margin:10px 0}#editor .detailrow label{min-width:140px}#editor .cardComparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#editor .cardCompareColumn{gap:12px;min-width:0}#editor .cardCompareColumn h3{margin:0;padding-bottom:8px}.entryHelp{margin:10px 0;color:#6a7b70;font-size:12px}.entryHelp>summary,.entryAudit>summary{cursor:pointer;font-size:12px}.entryHelp p{margin:8px 0}.entryAudit>summary{font-weight:600}#editor #wholesaleDetail section{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}

}

@media screen and (max-width:450px){#editor .card{padding:12px}#editor .cardComparison{gap:8px}#editor .cardCompareColumn label{font-size:11px}#editor .cardCompareColumn input{padding:9px 6px}#editor .stat small{max-width:62%;font-size:11px}#editor .stat strong,#editor #overviewValues .stat strong{font-size:16px}}



#editor #entryOverview{margin-top:0;padding-top:0;border-top:0}#editor #entryOverview #overviewScope{margin-top:0}



@media screen{#editor .denom{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px;align-items:center;gap:12px}#editor .denom input{width:100%}.denomSubtotal{text-align:right;font-variant-numeric:tabular-nums;font-size:13px;color:#214f3c;white-space:nowrap}}@media screen and (max-width:450px){#editor .denom{grid-template-columns:minmax(0,1fr) 70px 100px;gap:8px}.denomSubtotal{font-size:12px}}



@media screen{#editor #cashTotals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 16px}#editor #cashTotals .stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;padding:12px;min-width:0}#editor #cashTotals .stat small{max-width:100%;font-size:11px}#editor #cashTotals .stat strong{font-size:20px;text-align:left}}@media screen and (max-width:450px){#editor #cashTotals{grid-template-columns:1fr}#editor #cashTotals .stat{gap:7px}#editor #cashTotals .stat strong{font-size:19px}}



.cashNetSummary{border-top:1px solid var(--line);margin-top:16px;padding-top:4px}@media screen{#editor #cashNetSummary .stat{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;background:#eef6ef}#editor #cashNetSummary .stat small{max-width:100%}#editor #cashNetSummary .stat strong{font-size:24px;text-align:left}}



#cashReconciliation>.entryHelp{display:none}#editor #cashReconciliation #cashNetSummary{border-top:0;padding-top:0;margin-top:12px}



.finalCheckDisclosure>summary{cursor:pointer;font-size:16px;font-weight:600}.finalCheckDisclosure[open]>summary{margin-bottom:14px}



#editor #incomeReportComparison{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}#editor #fiveItemTotal .stat{margin:0}#editor #incomeReportComparison>div{min-width:0}



.compactEntryRecord{margin:9px 0;border:1px solid var(--line);border-radius:8px;background:#fff}.compactRecordDisclosure>summary{padding:11px 12px;cursor:pointer;font-size:12px;overflow-wrap:anywhere;font-weight:500}.compactRecordDisclosure[open]>summary{border-bottom:1px solid var(--line);background:#f0f5f1}.compactRecordDisclosure>.detailrow,.compactRecordDisclosure>.chequerow{padding:12px;margin:0!important;border:0!important}.compactRecordClose{width:100%;margin-top:8px}.compactRecordDisclosure .receiptarea{width:100%}#editor .compactRecordDisclosure>.detailrow{display:flex;flex-direction:column;align-items:stretch}#editor .compactRecordDisclosure .detailrow>label{min-width:0;width:100%}

#editor>.toolbar{display:none}



.editorStationSwitcher{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.editorStationSwitcher button{background:#e7f1eb;border-color:#abc8b8;color:#194f3c;font-size:12px;padding:9px 12px}.editorStationSwitcher button:hover{background:#d3e6da}@media(max-width:450px){.editorStationSwitcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.editorStationSwitcher button{white-space:normal}}



@media screen{#editor .cashOpeningCard>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#editor .cashOpeningCard label{min-width:0}#editor .cashOpeningCard input{width:100%}}@media screen and (max-width:450px){#editor .cashOpeningCard>.grid{grid-template-columns:1fr}}



#editor .cashOpeningCard>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cashInPanel>summary{cursor:pointer;font-weight:600;font-size:13px}.cashInBody{margin-top:12px}.cashInRecord{border:1px solid var(--line);border-radius:8px;margin:9px 0}.cashInRecord>summary{cursor:pointer;padding:11px;font-size:12px}.cashInRecordBody{display:grid;gap:10px;padding:12px;border-top:1px solid var(--line)}.cashInRecordBody>button{width:100%}.cashInBody>button{margin-top:6px}.cashInRecord .receiptarea{width:100%}@media(max-width:450px){#editor .cashOpeningCard>.grid{grid-template-columns:1fr}}



.legacyCashSection>summary{font-size:13px;font-weight:600;cursor:pointer}.legacyCashSection details{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}.legacyCashSection details>summary{font-size:12px;cursor:pointer}.legacyCashSection p{font-size:12px;margin:7px 0}



@media screen{#editor .entryBasicsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}#editor .usdCashRow{display:grid;grid-template-columns:minmax(65px,1fr) minmax(120px,1.2fr) 90px 110px;gap:10px;align-items:center;border-bottom:1px solid #f1f3ef;padding:7px 0}#editor .usdCashRow>.denom{display:contents}#editor .usdCashCaption{grid-column:1;grid-row:1;font-size:12px;color:#486058}#editor .usdCashRow>.denom>input{grid-column:3;grid-row:1;width:100%}#editor .usdCashRow .denomSubtotal{grid-column:4;grid-row:1}#editor .usdRateInline{grid-column:2;grid-row:1;font-size:11px}#editor .usdRateInline input{padding:9px 7px}}@media screen and (max-width:450px){#editor .entryBasicsGrid{gap:10px}#editor .usdCashRow{grid-template-columns:minmax(0,1fr) 70px 100px;gap:8px}#editor .usdCashRow>.denom>input{grid-column:2}#editor .usdCashRow .denomSubtotal{grid-column:3}#editor .usdRateInline{grid-column:1/-1;grid-row:2}}



@media screen{#editor .cashCompareRow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;margin:14px 0}#editor .cashCompareRow #cashNetSummary{margin:0;padding:0;border:0}#editor .cashCompareRow #cashNetSummary>h3{display:none}#editor .cashCompareRow #cashNetSummary .stat,#editor .cashCompareRow #cashReconciliationResult .stat{height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px;border-radius:7px}#editor .cashCompareRow #cashNetSummary .stat small,#editor .cashCompareRow #cashReconciliationResult .stat small{max-width:100%;font-size:11px}#editor .cashCompareRow #cashNetSummary .stat strong,#editor .cashCompareRow #cashReconciliationResult .stat strong{font-size:22px;text-align:left}#editor .cashCompareRow>label{padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff;justify-content:space-between;gap:10px;font-size:11px}#editor .cashCompareRow>label input{width:100%;font-size:18px;padding:7px;min-width:0}}@media screen and (max-width:450px){#editor .cashCompareRow{gap:6px}#editor .cashCompareRow #cashNetSummary .stat,#editor .cashCompareRow #cashReconciliationResult .stat,#editor .cashCompareRow>label{padding:8px}#editor .cashCompareRow #cashNetSummary .stat strong,#editor .cashCompareRow #cashReconciliationResult .stat strong{font-size:17px;overflow-wrap:anywhere}#editor .cashCompareRow>label input{font-size:16px;padding:7px 4px}}



.expenseHeadingTotal{font-size:12px;font-weight:500;color:#35604b;font-variant-numeric:tabular-nums}@media screen{#editor .cashCompareRow{align-items:stretch;grid-auto-rows:1fr}#editor .cashCompareRow>#cashNetSummary,#editor .cashCompareRow>#cashReconciliationResult{display:flex;min-width:0;min-height:108px}#editor .cashCompareRow>#cashNetSummary>.stat,#editor .cashCompareRow>#cashReconciliationResult>.stat{width:100%;height:auto;flex:1;box-sizing:border-box;min-height:108px}#editor .cashCompareRow>label{min-height:108px;box-sizing:border-box}#editor .cashCompareRow .stat small,#editor .cashCompareRow>label{line-height:1.5}#editor .cashCompareRow>label input{height:38px}}

@media screen{#editor #cashReconciliation .cashCompareRow>#cashNetSummary,#editor #cashReconciliation .cashCompareRow>#cashReconciliationResult{margin:0;padding:0;border:0}}



@media screen{

 #editor #cardFees{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch;grid-auto-rows:1fr}

 #editor #paymentDifferences{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;grid-auto-rows:1fr;margin:10px 0 14px}

 #editor #cardFees>.stat,#editor #paymentDifferences>.stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;height:100%;min-height:108px;padding:12px;box-sizing:border-box;border-radius:7px;margin:0}

 #editor #cardFees>.stat small,#editor #paymentDifferences>.stat small{max-width:100%;font-size:11px;line-height:1.5;margin:0}

 #editor #cardFees>.stat strong,#editor #paymentDifferences>.stat strong{font-size:20px;text-align:left;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

}

@media screen and (max-width:450px){

 #editor #cardFees{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}

 #editor #paymentDifferences{gap:6px}

 #editor #cardFees>.stat,#editor #paymentDifferences>.stat{padding:8px;min-height:108px}

 #editor #cardFees>.stat strong,#editor #paymentDifferences>.stat strong{font-size:17px}

}



@media screen{

 #editor #incomeReportComparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;grid-auto-rows:1fr;margin:14px 0}

 #editor #incomeReportComparison>div{display:flex;min-width:0;margin:0;padding:0}

 #editor #incomeReportComparison .stat,#editor #incomeReportComparison>div>label:not([hidden]){display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;height:100%;min-height:108px;padding:12px;margin:0;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px;line-height:1.5}

 #editor #incomeReportComparison .stat.warning{background:#fff7e9;border-color:#e8cb91}

 #editor #incomeReportComparison .stat small{max-width:100%;font-size:11px;line-height:1.5;margin:0}

 #editor #incomeReportComparison .stat strong{font-size:20px;text-align:left;max-width:100%;overflow-wrap:anywhere}

 #editor #incomeReportComparison input{height:38px;min-width:0;width:100%;padding:7px;font-size:18px}

}

@media screen and (max-width:450px){

 #editor #incomeReportComparison{gap:6px}

 #editor #incomeReportComparison .stat,#editor #incomeReportComparison>div>label:not([hidden]){padding:8px;min-height:108px}

 #editor #incomeReportComparison .stat strong{font-size:17px}

 #editor #incomeReportComparison input{font-size:16px;padding:7px 4px}

}



@media screen{

 #editor #cardDifferences{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;grid-auto-rows:1fr;margin:10px 0 14px}

 #editor #cardDifferences>.stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;height:100%;min-height:108px;padding:12px;margin:0;box-sizing:border-box;border-radius:7px}

 #editor #cardDifferences>.stat small{max-width:100%;font-size:11px;line-height:1.5;margin:0}

 #editor #cardDifferences>.stat strong{font-size:20px;text-align:left;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

}

@media screen and (max-width:450px){

 #editor #cardDifferences{gap:6px}

 #editor #cardDifferences>.stat{padding:8px;min-height:108px}

 #editor #cardDifferences>.stat strong{font-size:17px}

}



.editorUsage>summary{cursor:pointer;font-size:14px;font-weight:600}.editorUsageBody{padding-top:10px}.editorUsageSection{border-top:1px solid var(--line);padding-top:8px;margin-top:9px}#editor .editorUsageSection h3{font-size:13px;margin:6px 0}#editor .editorUsageSection p{font-size:12px;line-height:1.8;margin:5px 0}@media print{#editorUsage{display:none!important}}



#internalUsage p{font-size:12px;line-height:1.8;margin:8px 0}



.monthlyPaymentPanels{max-width:760px}.monthlyPaymentPanel>summary{font-size:14px;font-weight:600;cursor:pointer}.monthlyPaymentBody{padding-top:14px}.monthlyPaymentBody .grid{grid-template-columns:1fr;gap:10px}.monthlyPaymentBody form>button{margin-top:12px}.monthlyPaymentBody .receiptarea{margin-top:12px}.monthlyPaymentRecords{display:grid;gap:7px;margin-top:10px}.monthlyPaymentRecord>button{width:100%;text-align:left;white-space:normal;font-size:12px}.monthlyPaymentBody textarea{min-height:60px}



.autoDailyPanel>summary{font-size:15px;font-weight:600;cursor:pointer}.autoDailyControls{margin:14px 0}.autoReportGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.autoReportBankGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.autoReportBlock{border:1px solid #334f44;background:white;min-width:0;overflow:auto;margin-bottom:8px}.autoReportBlock h3{margin:0;padding:7px 9px;font-size:13px;font-weight:600;background:#ddedd9;border-bottom:1px solid #334f44}.autoReportBlock.peach h3{background:#f3dfd0}.autoReportBlock.cyan h3{background:#c7e6ef}.autoReportBlock table{width:100%;min-width:0;font-size:11px;table-layout:fixed}.autoReportBlock th,.autoReportBlock td{border:1px solid #bbc8bf;padding:6px 5px;font-size:11px;word-break:break-word;letter-spacing:0}.autoReportBlock th{color:#253f32;background:#eef4eb}.autoReportBlock.peach th{background:#f9ece3}.autoReportBlock.cyan th{background:#e2f2f6}.autoReportBlock td.num{font-variant-numeric:tabular-nums}.autoReportBlock tbody tr:last-child{font-weight:600}.autoReportScope{font-size:11px;color:#667d6b;line-height:1.7}.autoReportHelp{font-size:12px;margin:12px 0}.autoReportHelp>summary{cursor:pointer}.autoReportHelp p{margin:6px 0}.autoDailyPanel[open]{max-width:1200px}#autoDailySheet>h2{text-align:center;font-size:20px;margin-top:15px}#autoDailySheet>.autoReportBlock{margin-top:10px}

@media(max-width:850px){.autoReportGrid,.autoReportBankGrid{grid-template-columns:1fr}.autoReportBlock table{font-size:10px}.autoReportBlock th,.autoReportBlock td{padding:5px 4px;font-size:10px}}

@media print{body.printAutoDaily main>section:not(#monthlyLedger),body.printAutoDaily #monthlyLedger>:not(#monthlyAutoReport),body.printAutoDaily #monthlyAutoReport>:not(#autoDailySheet){display:none!important}body.printAutoDaily #monthlyLedger,body.printAutoDaily #monthlyAutoReport,body.printAutoDaily #autoDailySheet{display:block!important}body.printAutoDaily #monthlyAutoReport{border:0;padding:0;max-width:none}body.printAutoDaily .autoReportGrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}body.printAutoDaily .autoReportBankGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}body.printAutoDaily .autoReportBlock{break-inside:avoid;overflow:visible}body.printAutoDaily .autoReportBlock table{min-width:0}body.printAutoDaily .autoReportBlock th,body.printAutoDaily .autoReportBlock td{padding:4px;font-size:9px}body.printAutoDaily .autoReportHelp{display:none}body.printAutoDaily #autoDailySheet>h2{font-size:18px}}



.autoReportColumn{min-width:0;display:flex;flex-direction:column;gap:8px}.autoReportColumn>.autoReportBlock{margin:0}.autoReportGrid{align-items:start}



.autoReportBankDisclosure{border:1px solid var(--line);border-radius:8px;padding:11px 13px;margin:10px 0;background:#fff}.autoReportBankDisclosure>summary{cursor:pointer;font-size:13px;font-weight:600}.autoReportBankDisclosure[open]>.autoReportBankGrid{margin-top:12px}@media print{body.printAutoDaily .autoReportBankDisclosure{border:0;padding:0;margin:6px 0}body.printAutoDaily .autoReportBankDisclosure>summary{display:none}}



.autoReportInternalDisclosure>.autoReportBlock{margin-top:12px}@media print{body.printAutoDaily .autoReportInternalDisclosure>.autoReportBlock{margin-top:0}}



.autoReportColumn>.autoReportCompactDisclosure{margin:0}.autoReportCompactDisclosure>.autoReportBlock{margin-top:12px}@media print{body.printAutoDaily .autoReportCompactDisclosure>.autoReportBlock{margin-top:0}}



.autoReportColumn>.monthlyPaymentPanels{display:grid;gap:8px;max-width:none}.autoReportColumn .monthlyPaymentPanel{margin:0;padding:11px 13px;border-radius:8px;box-shadow:none}.autoReportColumn .monthlyPaymentPanel>summary{font-size:13px}.autoReportColumn>.autoReportInternalDisclosure{margin:0}@media print{body.printAutoDaily #autoDailySheet .monthlyPaymentPanels{display:none!important}}



.autoReportColumn>.autoReportGrid{grid-template-columns:1fr;margin:0}@media print{body.printAutoDaily .autoReportColumn>.autoReportGrid{grid-template-columns:1fr}}



#autoDailySheet .autoReportBlock th,#autoDailySheet .autoReportBlock td,#autoDailySheet .autoReportBlock td.num{ text-align:center;vertical-align:middle}#autoDailySheet .autoReportBlock h3{text-align:center}

.bankBalanceSection{min-width:0}.bankOpeningSettings{font-size:12px;margin:10px 0}.bankOpeningSettings>summary{cursor:pointer}.bankOpeningSettings form{border-top:1px solid #d7e2dc;padding:8px 0}.bankOpeningSettings .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bankOpeningSettings h4{margin:8px 0}.bankOpeningSettings input{width:100%;min-width:0}.bankOpeningSettings button{margin-top:8px}@media(max-width:520px){.bankOpeningSettings .grid{grid-template-columns:1fr}}@media print{.bankOpeningSettings{display:none!important}}

.payrollEntry,.payrollHistory,.payrollHelp{max-width:760px}.payrollTop,.payrollQuick{display:grid;grid-template-columns:1fr 1fr;gap:12px}.payrollHours{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:10px 0}.payrollHours label{font-size:11px}.payrollHours input{width:100%;min-width:0;padding:8px}.payrollSettings{margin:14px 0;font-size:13px}.payrollSettings>summary{cursor:pointer;margin-bottom:12px}.payrollSettings .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.payrollSettings button{margin:10px 0}.payrollCopyLabel{display:flex;align-items:center;gap:6px}.payrollCopyLabel input{width:auto}.payrollSlip{background:white;color:#142f2b;border:1px solid #cad7cf;padding:16px;margin:12px 0;max-width:760px;box-sizing:border-box;font-size:12px}.payrollSlip h2,.payrollSlip h3,.payrollCompany{text-align:center;margin:4px 0}.payrollSlip h2{font-size:19px}.payrollSlip h3{font-size:15px}.payrollSlip h4{margin:10px 0}.payrollCompany{font-size:11px}.payrollSlipGrid{display:grid;grid-template-columns:1fr 1.6fr;gap:12px}.payrollSlip table{min-width:0;width:100%;border-collapse:collapse;table-layout:fixed}.payrollSlip td,.payrollSlip th{padding:4px;border:1px solid #a9bdb1;font-size:11px;white-space:normal;word-break:break-word}.payrollSlip td:last-child,.payrollSlip th:last-child{text-align:right;width:30%;font-variant-numeric:tabular-nums}.payrollSignature{margin:14px 0 3px;font-size:11px}.payrollHistory details{border:1px solid #d3dfd7;border-radius:7px;padding:10px;margin:8px 0}.payrollHistory summary{cursor:pointer;font-weight:600}.payrollHistory details button{display:block;width:100%;text-align:left;margin-top:7px}.payrollHelp{font-size:12px}.payrollHelp summary{cursor:pointer}@media(max-width:600px){.payrollHours{grid-template-columns:repeat(4,minmax(0,1fr))}.payrollSettings .grid{grid-template-columns:1fr 1fr}.payrollSlip{padding:9px}.payrollSlipGrid{gap:6px}.payrollSlip td,.payrollSlip th{font-size:9px;padding:3px}.payrollActions{gap:6px}}@media print{body.printPayroll aside,body.printPayroll main>header,body.printPayroll #notice,body.printPayroll main>section:not(#payroll),body.printPayroll #payroll>:not(#payrollPrintArea){display:none!important}body.printPayroll main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}body.printPayroll #payroll,body.printPayroll #payrollPrintArea{display:block!important}body.printPayroll .payrollSlip{display:block;break-inside:avoid;max-width:190mm;margin:4mm auto;padding:4mm;font-size:10px;box-shadow:none}body.printPayroll .payrollSlip h2{font-size:16px}body.printPayroll .payrollSlip h3{font-size:12px}body.printPayroll .payrollSlip td,body.printPayroll .payrollSlip th{padding:2px 4px;font-size:9px}body.printPayroll .payrollCompany,body.printPayroll .payrollSignature{font-size:9px}body.printPayroll .payrollSignature{margin-top:8px}body.printPayroll .payrollSlip+.payrollSlip{border-top:1px dashed #666;margin-top:7mm}}

.payrollHours label{display:flex;flex-direction:column;justify-content:space-between;gap:5px}.payrollHours input{height:36px;box-sizing:border-box}.payrollSlipGrid table{align-self:start}

.payrollWeekly{max-width:760px}.payrollWeekly>label{max-width:260px}.payrollWeekly .toolbar{margin:12px 0}.payrollWeekLinks a[aria-disabled=true]{opacity:.55;cursor:not-allowed}.payrollWeekly .muted{margin-bottom:0}@media(max-width:600px){.payrollWeekLinks{display:grid;grid-template-columns:1fr}.payrollWeekLinks a{text-align:center}}

.payrollActions #payrollPrintMode{min-width:180px}.payrollPairPanel{border-bottom:1px solid #d7e2da;padding-bottom:12px;margin-bottom:12px}.payrollPairPanel>label{max-width:280px}.payrollPairGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.payrollPairMode #payrollForm>.payrollTop,.payrollPairMode #payrollHours,.payrollPairMode .payrollQuick,.payrollPairMode .payrollSettings,.payrollPairMode #payrollPeriod,.payrollPairMode #payrollState,.payrollPairMode #payrollSave,.payrollPairMode #payrollNew{display:none!important}@media(max-width:600px){.payrollPairGrid{grid-template-columns:1fr}}

@page payrollSheet{size:A4 portrait;margin:0}@media print{body.printPayroll{display:block!important;margin:0!important;padding:0!important}body.printPayroll main{display:block!important;width:210mm!important;max-width:210mm!important;margin:0!important;padding:0!important}body.printPayroll #payrollPrintArea{page:payrollSheet;box-sizing:border-box;width:210mm!important;margin:0!important;padding:8mm!important;display:block!important}body.printPayroll .payrollSlip{box-sizing:border-box;width:194mm;max-width:194mm;height:135mm;margin:0!important;padding:3mm!important;break-inside:avoid;page-break-inside:avoid;break-after:auto;line-height:1.1;font-size:9px}body.printPayroll .payrollSlip+.payrollSlip{margin-top:5mm!important}body.printPayroll .payrollSlip h2{font-size:15px;margin:1mm 0;line-height:1.1}body.printPayroll .payrollSlip h3{font-size:11px;margin:1mm 0;line-height:1.1}body.printPayroll .payrollSlip h4{font-size:10px;margin:2mm 0;line-height:1.1}body.printPayroll .payrollSlip p{font-size:9px;line-height:1.15;margin:1mm 0;overflow-wrap:anywhere}body.printPayroll .payrollSlipGrid{gap:3mm;grid-template-columns:1fr 1.6fr}body.printPayroll .payrollSlip td,body.printPayroll .payrollSlip th{font-size:9px;line-height:1.05;padding:1mm;vertical-align:middle}body.printPayroll .payrollSignature{margin-top:2mm!important}}



#employees{max-width:760px}#employeeList{display:grid;gap:7px}#employeeList button{text-align:left}#employeeForm .employeeFields,#employeeLetterSettings .employeeFields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.employeeFields input,.employeeFields textarea,.employeeFields select{width:100%;min-width:0}.employeeFields textarea{min-height:58px}.employeeAttachments,#employeeLetterSettings{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.employeeAttachments summary,#employeeLetterSettings summary{cursor:pointer;font-weight:600}.employeeAttachments input{display:block;margin:10px 0}#employeeDocuments>div{display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0}#employeeDocuments a{overflow-wrap:anywhere}.employmentLetter{background:white;color:#111;padding:30px;font:15px/1.7 Arial,sans-serif;max-width:760px;border:1px solid #ccd7cf;margin-top:16px}.employmentLetter h2,.letterContact{text-align:center;white-space:pre-line}.employmentLetter h2{font-size:20px}.employmentLetter h3{font-size:15px}.employmentLetter .letterDate{text-align:right}.letterSignature{margin-top:50px}.employmentLetter p{white-space:pre-line;overflow-wrap:anywhere}.employeeHelp{margin-top:16px}.employeeHelp p{font-size:12px;line-height:1.8}

@media(max-width:520px){#employeeForm .employeeFields,#employeeLetterSettings .employeeFields{grid-template-columns:1fr}.employmentLetter{padding:18px}}

@page employmentSheet{size:A4 portrait;margin:0}

@media print{body.printEmploymentLetter>aside,body.printEmploymentLetter main>header,body.printEmploymentLetter #notice,body.printEmploymentLetter main>section:not(#employees),body.printEmploymentLetter #employees>:not(#employeeLetterArea){display:none!important}body.printEmploymentLetter,body.printEmploymentLetter main{display:block!important;margin:0!important;padding:0!important;width:210mm!important;max-width:none!important;background:white!important}body.printEmploymentLetter #employees,body.printEmploymentLetter #employeeLetterArea{display:block!important;max-width:none!important;margin:0!important;padding:0!important}body.printEmploymentLetter .employmentLetter{page:employmentSheet;border:0;margin:0;padding:20mm;width:210mm;min-height:290mm;max-width:none;box-sizing:border-box;font-size:12pt;line-height:1.6}}



.payrollCategories{max-width:760px;margin-bottom:12px}.payrollSundayMode>:not(#payrollCategories):not(#payrollWeekendPanel){display:none!important}#payrollWeekendPanel{max-width:900px}.weekendPerson{border:1px solid var(--line);border-radius:7px;margin:8px 0;padding:10px}.weekendPerson summary{cursor:pointer;font-weight:600}.weekendFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.weekendFields input{width:100%;min-width:0}#weekendHistory{display:grid;gap:7px}#weekendHistory button{text-align:left}#weekendTotal{font-weight:bold}#weekendForm .toolbar{margin-top:12px}.weekendSheet{background:white;padding:16px;overflow:auto}.weekendSheet h2,.weekendSheet>p{text-align:center}.weekendSheet table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:800px}.weekendSheet th,.weekendSheet td{border:1px solid #111;padding:8px 4px;text-align:center;font-size:11px;word-break:break-word}.weekendSheet th:nth-child(2){width:20%;text-align:left}.weekendSheet th:last-child{width:12%}.weekendSheet .weekendSum{background:#fff200;font-weight:700}.weekendSheet tbody tr:last-child{background:#f3dddd}#weekendPrintArea:empty{display:none}@media(max-width:600px){.weekendFields{grid-template-columns:1fr 1fr}}

@page weekendSheet{size:A4 landscape;margin:0}

@media print{body.printWeekendPay aside,body.printWeekendPay main>header,body.printWeekendPay #notice,body.printWeekendPay main>section:not(#payroll),body.printWeekendPay #payroll>:not(#payrollWeekendPanel),body.printWeekendPay #payrollWeekendPanel>:not(#weekendPrintArea){display:none!important}body.printWeekendPay,body.printWeekendPay main{display:block!important;width:297mm!important;max-width:none!important;margin:0!important;padding:0!important}body.printWeekendPay #payroll,body.printWeekendPay #payrollWeekendPanel,body.printWeekendPay #weekendPrintArea{display:block!important;max-width:none!important;margin:0!important;padding:0!important}.printWeekendPay .weekendSheet{page:weekendSheet;width:297mm;box-sizing:border-box;padding:10mm;overflow:visible}.printWeekendPay .weekendSheet table{min-width:0}.printWeekendPay .weekendSheet th,.printWeekendPay .weekendSheet td{font-size:10px;padding:6px 3px}.printWeekendPay .weekendSheet tr{break-inside:avoid}.printWeekendPay .weekendSheet th:last-child{width:12%}}



.employeeSickPanel{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.employeeSickPanel>summary{cursor:pointer;font-weight:600}#employeeSickRecords>details{border:1px solid var(--line);border-radius:6px;padding:9px;margin:7px 0}#employeeSickRecords summary{cursor:pointer}#employeeSickRecords button{margin-top:8px}#employeeSickForm .employeeFields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}#employeeSickForm input{width:100%;min-width:0}#employeeSickForm .muted{font-size:12px}@media(max-width:520px){#employeeSickForm .employeeFields{grid-template-columns:1fr}}



.employeeSickPhotos{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.employeeSickPhotos input{display:block;max-width:100%;margin:8px 0}.employeeSickPhotos small{font-size:11px;color:#687f73}.employeeSickPhotos>div>div{display:flex;gap:12px;justify-content:space-between;padding:7px 0}.employeeSickPhotos a{overflow-wrap:anywhere}



.payrollLoanMode>:not(#payrollCategories):not(#payrollLoanPanel){display:none!important}#payrollLoanPanel{max-width:760px}#loanHistory{display:grid;gap:7px;margin-top:12px}#loanHistory button{text-align:left}#loanForm .employeeFields,.loanInstallment .employeeFields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}#loanForm input,#loanForm select{width:100%;min-width:0}.loanInstallment{border:1px solid var(--line);padding:10px;border-radius:7px;margin:8px 0}.loanInstallment summary{cursor:pointer;font-weight:600}.loanInstallment button{margin:5px}.loanInstallment p{font-size:12px}#loanForm .toolbar{margin:12px 0}.loanSheet{background:white;padding:20px}.loanSheet h2{text-align:center}.loanSheet table{width:100%;min-width:0;border-collapse:collapse}.loanSheet th,.loanSheet td{border:1px solid #222;padding:8px;font-size:12px}.payrollHistoryPreview .payrollSlip{width:100%;margin:10px 0}#payrollRecords label{display:block;margin-top:12px}#payrollRecords select{width:100%;min-width:0}#payrollRecords .toolbar{margin-top:8px}@media(max-width:520px){#loanForm .employeeFields,.loanInstallment .employeeFields{grid-template-columns:1fr}}@media screen{body.printHistorySlip #payrollPrintArea{display:none!important}}

@page loanSheet{size:A4 portrait;margin:0}

@media print{body.printPayrollLoan aside,body.printPayrollLoan main>header,body.printPayrollLoan #notice,body.printPayrollLoan main>section:not(#payroll),body.printPayrollLoan #payroll>:not(#payrollLoanPanel),body.printPayrollLoan #payrollLoanPanel>:not(#loanPrintArea){display:none!important}body.printPayrollLoan,body.printPayrollLoan main{display:block!important;width:210mm!important;margin:0!important;padding:0!important;max-width:none!important}body.printPayrollLoan #payroll,body.printPayrollLoan #payrollLoanPanel,body.printPayrollLoan #loanPrintArea{display:block!important;max-width:none!important}body.printPayrollLoan .loanSheet{page:loanSheet;box-sizing:border-box;width:210mm;padding:16mm}body.printPayrollLoan tr{break-inside:avoid}}



.mobileNavigation{display:none}

@media screen and (max-width:650px){aside{padding:10px 14px;display:block}aside>.brand,aside>nav,aside>.sidebottom{display:none!important}.mobileNavigation{display:block;width:100%;max-width:none}.mobileNavigation label{color:#d8e9e0;font-size:11px;gap:5px}.mobileNavigation select{width:100%;min-height:42px;padding:9px 12px;border:1px solid #8aafa0;border-radius:7px;background:#fff;color:#193b30;font-size:15px}main>header small{display:none}main>header{margin-bottom:16px}main>header h1{font-size:24px;margin:4px 0}}

@media print{.mobileNavigation{display:none!important}}



.historyLedgerPanel{max-width:900px}.historyLedgerPanel>summary{font-weight:600;cursor:pointer}.historyLedgerPanel .toolbar{margin-top:14px}.historyLedgerPanel details{margin:9px 0;border:1px solid var(--line);border-radius:7px;padding:10px}.historyLedgerPanel summary{cursor:pointer}.historyLedgerPanel p{font-size:12px;line-height:1.8}.historyLedgerLine{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.historyLedgerLine strong{font-variant-numeric:tabular-nums;text-align:right}.historyLedgerDay>summary{font-weight:600}#historyLedgerDays{margin-top:12px}.historyLedgerPanel .toolbar label{min-width:170px}@media print{.historyLedgerPanel{display:none!important}}



:is(#bankRows,#bankOlderRows) tr.bankDayRow.is-open>td.bankCashPreview{display:block;padding:8px 0;text-align:left}:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankCashPreview::before{content:none}



.fxWalletHeader{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 18px;align-items:center;margin-bottom:16px}.fxWalletHeader h2{margin:0}.fxWalletCards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}.fxWalletCards .stat{padding:10px 12px;min-width:0;height:100%}.fxWalletCards .stat small{margin-bottom:5px;font-size:11px}.fxWalletCards .stat strong{font-size:20px;overflow-wrap:anywhere}.fxWalletCaption{grid-column:1/-1;color:#61796c;font-size:11px}@media(max-width:680px){.fxWalletHeader{grid-template-columns:1fr}.fxWalletCards .stat{padding:9px 7px}.fxWalletCards .stat strong{font-size:17px}.fxWalletCards .stat small{font-size:10px}}



#bankOlderArchive{margin-top:14px}#bankOlderArchive>summary{padding:10px 0}#bankOlderArchive>table{margin-top:8px}.pendingBatchPicker{width:100%;border:1px solid #c6d8cd;border-radius:6px;padding:9px 12px}.pendingBatchPicker>summary{cursor:pointer;text-align:center}.pendingBatchPicker>button{margin-top:10px}#pendingBatchDates{max-height:300px;overflow-y:auto;margin-top:8px}#pendingBatchDates label{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e4ebe6;padding:9px 0;font-size:12px}#pendingBatchDates input{width:18px;height:18px;flex:0 0 18px}



#bankSummary .batchTools #pendingBatchDates label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;text-align:left;width:100%;margin:0;padding:9px 0}#bankSummary .batchTools #pendingBatchDates input{width:18px!important;height:18px;flex:0 0 18px;margin:0}#bankSummary .batchTools #pendingBatchDates span{font-size:12px;line-height:1.5}#pendingBatchPicker>summary{user-select:none}#bankSummary .batchTools #pendingBatchDates p{font-size:11px;margin:6px 0}



#pendingBatchPicker{border:0;padding:0;width:100%}#pendingBatchDates{max-height:none;overflow:visible}.pendingAmountCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pendingAmountCards .stat{padding:10px;min-width:0;height:100%}.pendingAmountCards .stat small{font-size:11px}.pendingAmountCards .stat strong{font-size:18px;overflow-wrap:anywhere}@media(max-width:450px){.pendingAmountCards .stat{padding:8px}.pendingAmountCards .stat strong{font-size:16px}}



.pendingWalletBox{border-top:1px solid #d8e4dc;margin-top:14px;padding-top:10px}.pendingWalletBox h3{font-size:13px;margin:0 0 9px}.pendingWalletBox>small{display:block;margin-top:8px;font-size:11px;line-height:1.5}



.pendingDayCard{border:1px solid #dfe7e1;border-radius:9px;background:#fff;padding:10px;margin:8px 0}.pendingDayHeader{display:flex;align-items:center;gap:9px}.pendingDayHeader>span{font-size:12px;color:#718078}#bankSummary .batchTools #pendingBatchDates .pendingDayHeader>input{width:20px!important;height:20px;flex:0 0 20px}#bankSummary .batchTools .pendingDayHeader>button{width:auto;flex:1;min-width:0;border:0;background:transparent;text-align:left;font-weight:600;padding:7px 0;white-space:normal;line-height:1.5}.pendingDayContent{padding-top:10px}.pendingCashGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.pendingCashGrid small{display:block;font-size:11px;color:#718078;margin-bottom:4px}.pendingCashGrid strong{display:block;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pendingCashBalance{grid-column:1/-1;border-top:1px solid #d8e4dc;padding-top:9px}.pendingCashGrid .negative{color:#a94432}#bankSummary .batchTools .pendingDayContent>button{margin-top:12px;width:100%}



.pendingDepositBalances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid #ceded3;padding-top:10px;margin-top:12px}.pendingDepositBalances>div{min-width:0;background:#eef6f0;border:1px solid #d6e5db;border-radius:6px;padding:9px 7px}.pendingDepositBalances small{display:block;font-size:11px;color:#476557;line-height:1.5;margin-bottom:6px}.pendingDepositBalances strong{display:block;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pendingDepositBalances .negative{color:#a94432}@media(max-width:450px){.pendingDepositBalances strong{font-size:16px}.pendingDepositBalances small{font-size:10px}}



#bankSummary>.historyWalletBox{max-width:620px;padding:14px 16px}.historyWalletBox .stat{background:#eef6f0}.historyWalletBox>small{display:block;font-size:11px;line-height:1.6;margin-top:9px}



#fxWalletHeader{grid-template-columns:minmax(0,1fr)}



.stationHistoryPicker{font-size:11px;min-width:180px;max-width:280px;margin-left:auto}.stationHistoryPicker select{width:100%;padding:7px;font-size:12px}.stationHistoryPreview{border-top:1px solid #d6e3d9;margin-top:12px;padding-top:12px}.stationHistoryPreview h3{font-size:14px;margin:0 0 8px}.stationHistoryPreview p{font-size:11px;line-height:1.6}.stationHistoryAmounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}.stationHistoryAmounts .stat{padding:9px;min-width:0}.stationHistoryAmounts small{font-size:10px}.stationHistoryAmounts strong{font-size:16px;overflow-wrap:anywhere}.stationHistoryPreview table{width:100%;min-width:0;table-layout:fixed;margin-top:8px}.stationHistoryPreview td,.stationHistoryPreview th{font-size:11px;padding:7px;overflow-wrap:anywhere}.stationHistoryPreview>button{margin-top:10px}@media(max-width:600px){.stationHistoryPicker{margin-left:0;max-width:none;width:100%}.stationHistoryAmounts{grid-template-columns:repeat(2,minmax(0,1fr))}}



.stationHistoryAmounts .stat{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px}.stationHistoryAmounts .stat small{display:block;margin:0;line-height:1.5}.stationHistoryAmounts .stat strong{display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}

.wholesaleTrackingPanel>div{padding-top:10px}.wholesaleTrackingPanel .wholesaleTrackingForm{margin:10px 0;border:1px solid #dbe6df;border-radius:7px;padding:10px}.wholesaleTrackingPanel .grid{margin-top:10px}.wholesaleTrackingPanel form>.toolbar,.wholesaleAllocationRows{grid-column:1/-1}.wholesaleAllocationRow{display:grid;grid-template-columns:22px minmax(0,1fr) 100px;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e2ebe5}.wholesaleAllocationRow input[type=checkbox]{width:20px;height:20px;padding:0}.wholesaleAllocationRow input[type=number]{min-width:0;width:100%}.wholesaleBookLine{border:1px solid #d4e4da;border-radius:7px;background:#eef6f0;padding:10px;margin:10px 0}.wholesaleTrackingPanel table{min-width:0;table-layout:fixed;width:100%}.wholesaleTrackingPanel td,.wholesaleTrackingPanel th{padding:5px;font-size:11px;overflow-wrap:anywhere}.wholesaleTrackingPanel>div>details{margin:10px 0}.wholesaleTrackingPanel .warning{padding:10px;border:1px solid #d6ac77;border-radius:6px;background:#fff7eb}.wholesaleTrackingPanel summary{line-height:1.6}.wholesaleTrackingPanel button{margin:5px 3px 5px 0}@media(max-width:600px){.wholesaleTrackingPanel .grid{grid-template-columns:1fr}.wholesaleAllocationRow{grid-template-columns:22px minmax(0,1fr) 90px}}

.wholesaleInvoiceCard{border:1px solid #dce7df;border-radius:7px;padding:8px;margin:8px 0}.wholesaleInvoiceCard>summary{display:flex;flex-wrap:wrap;gap:5px 12px}.wholesaleInvoiceCard>summary>strong,.wholesaleInvoiceCard>summary>span:last-child{white-space:nowrap}.wholesaleInvoiceValues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wholesaleInvoiceValues small,.wholesaleInvoiceValues strong{display:block}.wholesaleInvoiceValues strong{white-space:nowrap;font-variant-numeric:tabular-nums}.wholesaleInvoiceValues small{font-size:11px;color:#667d72}

.wholesaleReceiptEditor{border:1px solid #cadfd1;border-radius:7px;padding:9px;margin:10px 0;grid-column:1/-1}.wholesaleReceiptEditor>div{padding-top:9px}.wholesaleReceiptEditor>div>label{display:block;margin-bottom:9px}.wholesaleReceiptEditor input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:7px}.wholesaleReceiptEditor input[type=number],.wholesaleReceiptEditor input[type=text],.wholesaleReceiptEditor input[type=date]{width:100%;min-width:0}.wholesaleReceiptEditor strong{display:block;font-variant-numeric:tabular-nums}.wholesaleNewInvoice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px dashed #bbd3c4;border-radius:6px;padding:10px;margin:9px 0}.wholesaleNewInvoice>button{grid-column:1/-1}.wholesaleNewInvoice label{font-size:12px}@media(max-width:450px){.wholesaleNewInvoice{grid-template-columns:1fr}}



.compactBankExpenseTable{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.compactBankExpenseTable th,.compactBankExpenseTable td{padding:7px 6px;border:1px solid #bdcec4;text-align:center;overflow-wrap:anywhere}.compactBankExpenseTable th{background:#eaf2ed}.compactBankExpenseTable th:first-child{width:18%}.compactBankExpenseTable th:last-child{width:26%}.compactBankExpenseTable td:last-child{white-space:nowrap}.compactBankExpenseTable .bankExpenseOpen{border:0;background:none;padding:0;font:inherit;color:inherit;min-height:0;white-space:normal;overflow-wrap:anywhere}.chequeListTools{justify-content:space-between;align-items:end}.chequeListTools label{flex:1;min-width:140px}.chequeListTools button{font-size:12px;padding:9px}.monthlyPaymentBody>.muted{font-size:11px}



.printBankExpenses{display:none}@media print{body.printAutoDaily .printBankExpenses{display:block}}



/* Keep the cheque list within its column, including narrow phone screens. */

.monthlyPaymentBody .compactBankExpenseTable{min-width:0;width:100%;font-size:11px}

.monthlyPaymentBody .compactBankExpenseTable th,.monthlyPaymentBody .compactBankExpenseTable td{padding:4px 5px;line-height:1.35;height:auto}

.monthlyPaymentBody .compactBankExpenseTable th:first-child{width:15%}

.monthlyPaymentBody .compactBankExpenseTable th:last-child{width:27%}

.monthlyPaymentBody:has(>.chequeListTools){padding-top:6px;min-width:0}

.monthlyPaymentBody .chequeListTools{display:flex;flex-wrap:nowrap;gap:8px;margin:4px 0 8px;min-width:0}

.monthlyPaymentBody .chequeListTools label{flex:0 1 180px;min-width:0;gap:3px;font-size:11px}

.monthlyPaymentBody .chequeListTools input{min-width:0;width:100%;padding:6px 8px;font-size:12px;height:33px}

.monthlyPaymentBody .chequeListTools button{flex:0 0 auto;padding:7px 9px;font-size:11px;min-height:33px}

.monthlyPaymentBody:has(>.chequeListTools)>.muted{margin:5px 0;font-size:10px;line-height:1.5}

.monthlyPaymentBody:has(>.chequeListTools)>.monthlyPaymentRecords{margin-top:6px;min-width:0}

@media(max-width:480px){.monthlyPaymentBody .chequeListTools label{flex:1 1 130px}.monthlyPaymentBody .compactBankExpenseTable th,.monthlyPaymentBody .compactBankExpenseTable td{padding:4px 3px;font-size:10px}}



.bankCurrencySummary{width:100%;min-width:0}.bankCurrencySummary table{min-width:0;width:100%;table-layout:fixed}.bankCurrencySummary th,.bankCurrencySummary td{padding:6px 3px;font-size:11px;line-height:1.35;overflow-wrap:normal}.bankCurrencySummary th:first-child{width:28%}.bankCurrencySummary td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}@media(max-width:480px){.bankCurrencySummary th,.bankCurrencySummary td{font-size:9px;padding:5px 2px}.bankCurrencySummary th:first-child{width:28%}}



.wholesaleDayPanel table{width:100%;min-width:0;table-layout:fixed}.wholesaleDayPanel th,.wholesaleDayPanel td{padding:5px;font-size:11px;overflow-wrap:anywhere}.wholesaleDayPanel>div>details{margin-top:8px}.wholesaleDayPanel summary{cursor:pointer}.wholesaleDayPanel>div{padding-top:8px}



.autoReportColumn>details table,.autoReportColumn .monthlyPaymentRecords table{min-width:0;width:100%;table-layout:fixed}

.autoReportColumn>details th,.autoReportColumn>details td{padding:5px 4px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}

.compactAddTools{display:flex;justify-content:flex-end;margin:7px 0}.compactAddTools button{padding:6px 9px;font-size:11px}

.autoReportColumn .monthlyPaymentPanel>p{font-size:10px;line-height:1.5;margin:7px 0}

#bankIncomeForm{margin-top:9px}.monthlyPaymentRecords .bankExpenseOpen,.compactBankExpenseTable .bankExpenseOpen{font-size:inherit;white-space:normal}

@media(max-width:480px){.autoReportColumn>details th,.autoReportColumn>details td{padding:4px 3px;font-size:10px}}



.wholesaleCombinedTable th:first-child{width:23%}.wholesaleCombinedTable th:nth-child(2){width:17%}.wholesaleCombinedTable th,.wholesaleCombinedTable td{font-size:10px;padding:5px 3px}.wholesaleCombinedTable td{overflow-wrap:anywhere}.wholesaleDayPanel>div>.muted{font-size:10px;line-height:1.5}



.wireRecordsPanel table{min-width:0;width:100%;table-layout:fixed}.wireRecordsPanel th,.wireRecordsPanel td{padding:5px 3px;font-size:10px;overflow-wrap:anywhere}.wireRecordsPanel th:first-child{width:23%}.wireRecordsPanel button{padding:5px;font-size:10px;white-space:normal}.wireRecordsPanel .grid{margin:10px 0}.wireRecordsPanel .grid>.toolbar{grid-column:1/-1}.wireRecordsPanel details button{margin:4px}.wireRecordsPanel .compactBankExpenseTable td:last-child{white-space:normal}



.wireFullyPaid>td{color:#0070c0}.wireRecordsPanel .compactAddTools{justify-content:space-between;gap:10px;align-items:end}.wireRecordsPanel .compactAddTools label{max-width:170px;min-width:0}.wireRecordsPanel .compactAddTools input{padding:6px;font-size:12px}.wireRecordsPanel details p{margin:5px 0;font-size:10px;line-height:1.5}



.wireRecordsPanel>div{max-width:980px}.wireRecordsPanel>summary{font-size:14px}

.wireRecordsPanel table{font-size:12px}.wireRecordsPanel th,.wireRecordsPanel td{font-size:12px;padding:5px 4px;line-height:1.45}

.wireRecordsPanel .compactBankExpenseTable th:first-child{width:27%}.wireRecordsPanel .compactBankExpenseTable th:nth-child(2){width:17%}.wireRecordsPanel .compactBankExpenseTable th:last-child{width:12%}

.wireRecordsPanel .compactBankExpenseTable td:nth-child(n+3):nth-child(-n+5){white-space:nowrap}

.wireRecordsPanel details{margin:3px 0 0}.wireRecordsPanel details>summary{font-size:11px;line-height:1.4;white-space:normal}.wireRecordsPanel details p{font-size:11px;text-align:left}.wireRecordsPanel button{font-size:12px;padding:4px 5px}.wireRecordsPanel .muted{line-height:1.45}

@media(max-width:480px){.wireRecordsPanel{padding:12px 8px}.wireRecordsPanel th,.wireRecordsPanel td{font-size:11px;padding:5px 2px}.wireRecordsPanel .compactBankExpenseTable th:nth-child(2){width:15%}.wireRecordsPanel .compactBankExpenseTable th:last-child{width:13%}.wireRecordsPanel button{font-size:11px;padding:4px 2px}.wireRecordsPanel details>summary{font-size:10px}}



@media(max-width:480px){.wireRecordsPanel .compactBankExpenseTable th:first-child{width:25%}.wireRecordsPanel .compactBankExpenseTable th:nth-child(2){width:13%}.wireRecordsPanel .compactBankExpenseTable th:last-child{width:11%}}



.wirePersonSearch{position:relative;min-width:0}.wirePersonOptions{position:absolute;left:0;right:0;top:100%;z-index:8;max-height:220px;overflow:auto;background:#fff;border:1px solid #b9cfc3;border-radius:7px;box-shadow:0 5px 14px #183d3218}.wirePersonOptions button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e7eeea;border-radius:0;font-size:12px;padding:9px;white-space:normal}.wirePersonOptions small{display:block;padding:9px}.wireRecordsPanel .grid:has(.wirePersonSearch){align-items:start}



.wireRecordsPanel .compactAddTools{flex-wrap:wrap}.wireRecordsPanel .compactAddTools>.button{padding:6px 9px;font-size:12px}.wireAnnualPanel>div{max-width:980px}.wireAnnualPanel table{min-width:0;width:100%;table-layout:fixed}.wireAnnualPanel th,.wireAnnualPanel td{padding:9px;font-size:13px}.wireAnnualPanel h3{font-size:15px;margin:0 0 10px}



.wholesaleLedgerScroll{max-width:100%;overflow-x:auto;margin:8px 0}.wholesaleLedgerTable{width:100%;border-collapse:collapse;font-size:13px;line-height:1.35}.wholesaleLedgerTable th,.wholesaleLedgerTable td{padding:6px 8px;border:1px solid #bdcec3;vertical-align:middle}.wholesaleLedgerTable th{background:#e8f1eb}.wholesaleLedgerTable td:nth-child(n+3),.wholesaleLedgerTable th:nth-child(n+3){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.wholesaleLedgerTable td:first-child{white-space:nowrap}.wholesaleLedgerTable small{display:block;font-size:11px;color:#6a7b74}.wholesaleLedgerTable .bankExpenseOpen{padding:2px 4px;font-size:12px}.wholesaleDebtSummaryTable{min-width:430px!important;font-size:13px!important}.wholesaleDebtSummaryTable th,.wholesaleDebtSummaryTable td{padding:6px 8px!important}.wholesaleLedgerScroll .wholesaleDebtSummaryTable{margin:0}



.wholesaleCompactHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}.wholesaleCompactHeader>strong{min-width:0;font-size:15px;line-height:1.5}.wholesaleCompactHeader>button{flex-shrink:0;font-size:13px;padding:8px 10px}.wholesaleTrackingPanel>#wholesaleNumberManagement{margin:0;border:0;padding:0}.wholesaleTrackingPanel>#wholesaleNumberManagement[open]{margin-top:12px;border-top:1px solid #dce7df;padding-top:10px}.wholesaleTrackingPanel>#wholesaleNumberManagement>summary[hidden]{display:none}@media(max-width:500px){.wholesaleCompactHeader{gap:8px;align-items:flex-start}.wholesaleCompactHeader>strong{font-size:12px}.wholesaleCompactHeader>button{max-width:52%;white-space:normal;font-size:12px;padding:7px 8px;line-height:1.4}}



.wholesaleCompactHeader>.wholesaleContentToggle{flex:1;min-width:0;max-width:none;text-align:left;background:transparent;border:0;padding:0;font-size:15px;font-weight:700;line-height:1.5;white-space:normal}.wholesaleContentToggle:before{content:'▾ ';}.wholesaleContentToggle[aria-expanded=false]:before{content:'▸ ';}@media(max-width:500px){.wholesaleCompactHeader>.wholesaleContentToggle{font-size:12px}}



.wholesaleDebtDetailsButton{display:inline-block;margin-left:9px;padding:3px 7px;font-size:12px;line-height:1.3;vertical-align:middle;white-space:nowrap}.wholesaleDebtDetailsButton:before{content:'▸ ';}.wholesaleDebtDetailsButton[aria-expanded=true]:before{content:'▾ ';}



.wholesaleHistoryTools{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;margin:12px 0}.wholesaleHistoryTools>details{flex:1 1 280px;min-width:0}.wholesaleHistoryTools>label{flex:0 1 220px;font-size:12px}.wholesaleHistoryTools>label input{padding:7px 9px;font-size:13px}.wholesaleHistoryTools>button{align-self:center;padding:7px 9px;font-size:12px}.wholesaleHistoryTools+.wholesaleLedgerScroll .autoReportBlock table{min-width:650px}.wholesaleHistoryTools+.wholesaleLedgerScroll td,.wholesaleHistoryTools+.wholesaleLedgerScroll th{font-size:13px;padding:6px 8px}



.wholesaleLedgerTable .wholesaleMonthSubtotal th,.wholesaleLedgerTable .wholesaleMonthSubtotal td{background:#f5ecdf;font-weight:600;border-top:2px solid #c8b69d}



/* Compact screen tables; printed reports keep their existing layout. */

@media screen{

 main table{max-width:760px;min-width:min(620px,100%);font-size:11px;line-height:1.4}

 main table th,main table td{font-size:11px!important;line-height:1.4!important;padding:5px 7px!important;letter-spacing:0!important}

 main table td small{font-size:10px;margin-top:2px;line-height:1.35}

 main table .num{white-space:nowrap;word-break:normal;font-variant-numeric:tabular-nums}

 main table button,main table .button{font-size:11px!important;padding:4px 7px!important;line-height:1.4!important;min-height:28px}

 main table input:not([type=checkbox]),main table select{font-size:12px;padding:6px 7px;min-height:30px}

 main .autoReportBlock{max-width:760px}

 main .autoReportBlock h3{font-size:12px;padding:6px 7px}

 main .wholesaleDebtSummaryTable,main .wholesaleLedgerTable{max-width:760px}

 main .wholesaleLedgerScroll{margin:6px 0}

 main .autoReportBlock:has(>h3:empty)>h3{display:none}

}



@media screen{

 #wholesaleTrackingPanel .wholesaleCompactHeader{max-width:680px;justify-content:flex-start;gap:16px}

 #wholesaleTrackingPanel .wholesaleCompactHeader>.wholesaleContentToggle{flex:0 1 auto}

 #wholesaleTrackingPanel .wholesaleHistoryTools{max-width:680px;justify-content:flex-start;align-items:center;gap:8px 12px}

 #wholesaleTrackingPanel .wholesaleHistoryTools>details{flex:0 1 auto}

 #wholesaleTrackingPanel .wholesaleHistoryTools>label{flex:0 1 205px}

 #wholesaleTrackingPanel .autoReportBlock,#wholesaleTrackingPanel .wholesaleLedgerTable{max-width:680px}

 #wholesaleTrackingPanel .wholesaleDebtSummaryTable{width:100%;max-width:680px}

 #wholesaleTrackingPanel .wholesaleDebtSummaryTable table{min-width:0;width:100%}

 #wholesaleTrackingPanel .wholesaleLedgerScroll{max-width:680px}

 #wholesaleTrackingPanel .muted{max-width:680px}

 #wholesaleTrackingPanel .wholesaleHistoryTools>details[open]{flex-basis:100%}

 @media(max-width:500px){#wholesaleTrackingPanel .wholesaleCompactHeader{gap:8px}#wholesaleTrackingPanel .wholesaleCompactHeader>.wholesaleContentToggle{flex:1}#wholesaleTrackingPanel .wholesaleHistoryTools{gap:8px}#wholesaleTrackingPanel .wholesaleHistoryTools>details{flex-basis:100%}#wholesaleTrackingPanel .wholesaleHistoryTools>label{flex:1;min-width:0}}

}



@media screen{#monthlyLedger>.autoDailyPanel,#monthlyLedger>#wholesaleTrackingPanel{width:100%;max-width:1200px;margin-left:0;margin-right:0}}



@media screen{

 #wireRecordsPanel .compactAddTools{justify-content:flex-start;align-items:end;max-width:760px;gap:10px}

 #wireRecordsPanel .compactAddTools>.button,#wireRecordsPanel .compactAddTools>button{margin-left:0;flex:0 0 auto}

 main table th{font-weight:700!important;color:#183c31}

 main table td{font-weight:600;color:#183c31}

 main table td small{color:#52685d;font-weight:500}

 #wireRecordsPanel .wireFullyPaid>td{color:#005ca8!important;font-weight:600}

}



.wireRecordsPanel>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;list-style:none}.wireRecordsPanel>summary::-webkit-details-marker{display:none}.wireRecordsPanel>summary:before{content:'▸';margin-right:-10px}.wireRecordsPanel[open]>summary:before{content:'▾'}.wireAnnualInline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:#244638;font-size:11px;line-height:1.6;font-weight:500}.wireAnnualInline>strong{font-size:11px}.wireAnnualInline>span{display:flex;flex-wrap:wrap;gap:4px 14px}.wireAnnualInline>span>span{white-space:nowrap;font-variant-numeric:tabular-nums}.wireAnnualInline>span>span:last-child{font-weight:700}@media(max-width:600px){.wireAnnualInline{flex-basis:100%;margin-left:12px}.wireRecordsPanel>summary{gap:7px 12px}}



@media screen{#monthlyLedger>.card{width:100%!important;max-width:1200px!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}}



.wireMonthDisclosure{margin-top:12px}.wireMonthDisclosure>summary{display:inline-block;cursor:pointer;border:1px solid #a8c0b1;border-radius:6px;padding:7px 11px;font-size:13px;font-weight:700;color:#183c31;background:#f5f9f5;list-style:none}.wireMonthDisclosure>summary::-webkit-details-marker{display:none}.wireMonthDisclosure>summary:before{content:'▸ ';}.wireMonthDisclosure[open]>summary:before{content:'▾ ';}.wireMonthDisclosure>.wireMonthDisclosureTools{margin:10px 0}.wireMonthDisclosureTools>label{font-weight:600}



@media screen{#wireRecordsPanel>summary,#wireRecordsPanel>summary>span:first-of-type{font-weight:700;color:#14392d}#wireRecordsPanel .wireAnnualInline,#wireRecordsPanel .wireAnnualInline>strong{font-weight:700;color:#193d31}#wireRecordsForm label{font-weight:700;color:#1d4335}#wireRecordsForm input,#wireRecordsForm select,#wireRecordsForm textarea{font-weight:600;color:#183b2f}#wireRecordsForm input::placeholder{color:#526d60;opacity:1;font-weight:500}#wireRecordsForm summary{font-weight:700;color:#214533}#wireRecordsPanel>div>p.muted{font-weight:600;color:#4d6658}}



.inventoryPanel>summary{font-size:14px;font-weight:700;cursor:pointer}.inventoryPanel>div{max-width:760px}.inventoryPanel .grid{margin:12px 0}.inventoryPanel>div>input[type=search]{max-width:340px;margin:12px 0}.inventoryTable{min-width:0;width:100%;table-layout:fixed}.inventoryTable th:first-child{width:35%}.inventoryTable th:nth-child(2){width:35%}.inventoryTable td{vertical-align:top;overflow-wrap:anywhere}.inventoryTable td.num{white-space:nowrap}.inventoryTable details>summary{cursor:pointer}.inventoryTable details p{font-size:11px;line-height:1.5}.inventoryTable button{white-space:normal}



.inventoryTable th:first-child{width:32%}.inventoryTable th:nth-child(2){width:32%}.inventoryTable th:nth-child(3){width:14%}.inventoryTable th:last-child{width:22%}#inventoryPanel .inventoryTable td:last-child{padding:5px 4px!important}.inventoryTable button{white-space:nowrap}



.inventoryRowActions button{display:block;margin:0 0 4px}.inventoryTable th:first-child{width:30%}.inventoryTable th:nth-child(2){width:30%}.inventoryTable th:nth-child(3){width:14%}.inventoryTable th:last-child{width:26%}.inventoryPanel .toolbar{gap:8px}.inventoryPanel form>p{grid-column:1/-1}



@media screen{#inventoryPanel .inventoryTable{font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",Arial,sans-serif}#inventoryPanel .inventoryTable th,#inventoryPanel .inventoryTable td{font-size:13px!important;color:#123b2c!important;font-weight:600!important;line-height:1.6!important;padding:7px 8px!important}#inventoryPanel .inventoryTable th{font-weight:700!important;background:#e5efe8}#inventoryPanel .inventoryTable td.num{font-size:15px!important;font-weight:700!important}#inventoryPanel .inventoryTable button{font-size:12px!important;color:#153e2e!important;font-weight:600!important}#inventoryPanel .inventoryTable details p{font-size:12px;color:#355244}#inventoryPanel .inventoryStockGroup{margin:14px 0 20px}#inventoryPanel .inventoryStockGroup>h3{font-size:15px;color:#163d2d;margin:0 0 8px;font-weight:700}}



#inventoryPanel .inventoryTable{border-collapse:collapse;border:1px solid #aabeb0;table-layout:fixed}#inventoryPanel .inventoryTable th,#inventoryPanel .inventoryTable td{border:1px solid #b7c9bd;vertical-align:middle}#inventoryPanel .inventoryTable th:first-child{width:30%}#inventoryPanel .inventoryTable th:nth-child(2){width:27%}#inventoryPanel .inventoryTable th:nth-child(3){width:13%}#inventoryPanel .inventoryTable th:nth-child(4),#inventoryPanel .inventoryTable th:nth-child(5){width:15%}#inventoryPanel .inventoryEditCell,#inventoryPanel .inventoryLogCell{text-align:center;padding:5px 4px!important}#inventoryPanel .inventoryTable button{white-space:nowrap;margin:0}@media(max-width:600px){#inventoryPanel .inventoryStockGroup .wholesaleLedgerScroll{overflow-x:auto}#inventoryPanel .inventoryTable{min-width:570px!important}}



.inventoryPanel .inventoryMoveLines{grid-column:1/-1;display:grid;gap:10px}.inventoryMoveLine{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) auto;gap:8px;border:1px solid #c8d8ce;border-radius:7px;padding:10px;align-items:end}.inventoryMoveLine>small{grid-column:1/-1;font-size:12px;color:#3e5d4a}.inventoryPanel .toolbar>label:has(input[type=datetime-local]){min-width:220px}.inventoryMoveLine>button{font-size:12px;padding:8px}.inventoryPanel #inventoryMovementEditor>.toolbar{grid-column:1/-1}@media(max-width:600px){.inventoryMoveLine{grid-template-columns:minmax(0,1fr) minmax(85px,.6fr)}.inventoryMoveLine>button{grid-column:1/-1;justify-self:start}}



.inventoryAllLogsPanel{border:1px solid #c6d8cb;border-radius:7px;margin:12px 0;padding:10px}.inventoryAllLogsPanel>summary{font-size:13px;font-weight:700;cursor:pointer}.inventoryAllLogsPanel>div{overflow-x:auto}.inventoryAllLogsPanel table{min-width:650px!important}.inventoryAllLogsPanel button{margin-top:8px}



.inventorySearchTools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}.inventorySearchTools>input{width:340px;max-width:100%;flex:0 1 340px}.inventorySearchTools>.button{font-size:13px;font-weight:600;padding:9px 12px;white-space:nowrap}



.inventoryStockGroup>summary{font-size:15px;font-weight:700;color:#163d2d;cursor:pointer;padding:9px 11px;border:1px solid #bdd0c2;border-radius:6px;background:#f0f6f1}.inventoryStockGroup[open]>summary{margin-bottom:8px}.inventorySearchTools>button{font-size:13px;font-weight:700;padding:9px 12px;white-space:nowrap}



#inventoryPanel>h3{font-size:16px;font-weight:700;color:#143c2c;margin:0 0 14px;line-height:1.5}



@media screen{#monthlyAutoReport>summary,#wholesaleTrackingPanel .wholesaleCompactHeader>.wholesaleContentToggle,#wireRecordsPanel>summary>span:first-of-type,#inventoryPanel>h3{font-size:18px!important;font-weight:700!important;color:#103d2d!important;line-height:1.5!important}#monthlyAutoReport>summary,#wireRecordsPanel>summary{color:#103d2d!important}#wireRecordsPanel>summary:before{font-size:18px;font-weight:700;color:#103d2d}}



#monthlyLedger>#monthlyExpenseCard{display:none!important}



/* Higher contrast across on-screen ledger pages, preserving semantic colors. */

@media screen{

 body{color:#12382d;font-weight:600}

 main{color:#12382d}

 main :is(p,li,label,dt,dd,small,summary,span,div,td,th){font-weight:600}

 main :is(h1,h2,h3,h4,strong,th,summary){font-weight:700}

 main :is(label,small,.muted,.autoReportScope,.ledgerScopeDetails),main header small,#today,#audit{color:#365748!important;font-weight:600!important}

 main :is(input,select,textarea,button,.button){font-weight:600}

 main :is(input,select,textarea){color:#143d2e}

 main :is(input,textarea)::placeholder{color:#4c685b;opacity:1;font-weight:600}

 main :is(input,select,textarea):disabled{color:#425e50}

 main table :is(th,td){font-weight:600!important}

 main table th,main :is(h1,h2,h3,h4,strong){font-weight:700!important}

 aside :is(button,select,.button),aside .brand,aside .sidebottom small,#identity{font-weight:600;color:#f0f8f2}

 aside .brand{font-weight:700}

 aside button{border-color:#53786a}

 aside .sidebottom button{color:#163e2e}

 #notice.error,main .error,main .red,main .negative{color:#9d3023!important;font-weight:700}

 #notice.success,main .success{color:#155c32!important;font-weight:600}

 #wireRecordsPanel .wireFullyPaid>td{color:#00559a!important;font-weight:600!important}

}



@media screen{#editor h2,#editor .finalCheckDisclosure>summary{font-size:18px!important;line-height:1.5!important}}



/* One outer content width per screen; nested compact reports retain their own layouts. */

@media screen{

 main>section:not(#login){--ledger-panel-width:1200px;width:100%;max-width:var(--ledger-panel-width);min-width:0}

 main>#forex,main>#bankSummary,main>#batchManagement{--ledger-panel-width:620px!important}

 main>#editor{--ledger-panel-width:680px!important}

 main>#ledger{--ledger-panel-width:800px!important}

 main>#payroll{--ledger-panel-width:760px!important}

 main>section:not(#login)>.card{width:100%;max-width:100%;margin-left:0;margin-right:0;box-sizing:border-box}

 #forex>#fxRows,#forex>#fxBalances,#forex>#fxDailyTotals,#forex>.legacyCashSection{width:100%;max-width:100%;min-width:0}

 #fxRows>.fxDayGroup{width:100%;max-width:100%;margin-left:0;margin-right:0}

 #payroll>.card{max-width:100%}

}



/* Keep the shared current date beside the page heading on every screen. */

@media screen{main>header{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px}main>header>#today{display:block!important;order:-1;text-align:left;align-self:flex-start;font-size:12px;line-height:1.5;margin:0}}



@media screen{

 .identityMenu{width:100%;min-width:0}.identityMenu>summary{cursor:pointer;font-weight:700;line-height:1.6;list-style-position:outside;margin-left:12px}.identityMenu #identity{display:inline}

 .identityMenuActions{display:grid;gap:8px;margin-top:10px}.identityMenuActions>button{text-align:left;width:100%;white-space:normal}

 body.signed-out .identityMenu{display:none!important}

}

@media screen and (max-width:650px){aside>.sidebottom{display:block!important;margin-top:10px}aside>.sidebottom>small{display:none}.identityMenu>summary{color:#e5eee8}.identityMenuActions{max-width:100%}}



@media screen{.accountEditForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:680px;padding:16px;border:1px solid #b3c8bc;border-radius:8px;margin:12px 0}.accountEditForm fieldset,.accountEditForm>.toolbar{grid-column:1/-1;min-width:0}.accountEditForm fieldset{border:1px solid #b3c8bc;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.permissionCheck{display:flex;flex-direction:row;align-items:center;gap:8px}.permissionCheck input{width:18px;min-width:18px;height:18px}.accountEditForm .muted{grid-column:1/-1}.userAccountRow>button{margin-right:8px}.accountEditForm .toolbar{margin:0;flex-wrap:wrap}}

@media screen and (max-width:650px){.accountEditForm{grid-template-columns:1fr}.accountEditForm fieldset{grid-template-columns:1fr}}



/* Compact account directory; edit forms expand only for the selected row. */

@media screen{

 #userList{width:100%;max-width:760px;min-width:0}.accountListToolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}.accountListToolbar>label{flex:1 1 220px;min-width:0}.accountListToolbar input,.accountListToolbar select{min-width:0;width:100%}.accountListWrap{width:100%;min-width:0}.accountListTable{width:100%;table-layout:fixed;min-width:0!important}.accountListTable th,.accountListTable td{padding:8px!important;font-size:13px!important;vertical-align:middle;overflow-wrap:anywhere}.accountListTable th:nth-child(4){width:92px}.accountListTable td button{padding:6px 10px}.accountListTable .accountDetailsRow:not(:has(.accountEditForm)){display:none}.accountDetailsRow>td{padding:0!important}.accountDetailsRow .accountEditForm{margin:8px;max-width:100%}

}

@media screen and (max-width:650px){.accountListTable th,.accountListTable td{padding:6px 4px!important;font-size:12px!important}.accountListTable th:nth-child(4){width:66px}.accountListTable td button{padding:6px 8px}.accountListToolbar{gap:8px}.accountDetailsRow .accountEditForm{margin:6px;padding:10px}}



@media screen{main .explanatoryCopy,main #guide,main #internalUsage,main .ledgerScopeDetails{display:none!important}}



@media screen{.phoneCardDateTools{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.phoneCardDateTools>label{width:190px;max-width:100%;margin:0}.phoneCardDateTools>button{min-height:38px}.phoneCardPanel{max-width:100%;margin:4px 0 8px}.phoneCardHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.phoneCardHeading h2{margin:0;font-size:18px}.phoneCardForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #cdd9d1;padding:14px;border-radius:8px;margin:12px 0}.phoneCardForm>.toolbar{grid-column:1/-1;margin:0}.phoneCardForm input{min-width:0}.phoneCardDifference{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.phoneCardDifference output{font-size:20px;font-weight:700;white-space:nowrap}.phoneCardDayRow{margin:8px 0;padding:10px;border:1px solid #cdd9d1;border-radius:7px}.phoneCardDayRow summary{cursor:pointer;font-weight:700;overflow-wrap:anywhere}.phoneCardDayRow>small{display:block;margin:8px 0}.phoneCardTable{width:100%;max-width:100%;min-width:0!important;table-layout:fixed;margin-top:10px}.phoneCardTable th,.phoneCardTable td{padding:7px;border:1px solid #b7cabe;font-size:13px}.phoneCardTable td:last-child{text-align:right;white-space:nowrap}.phoneCardHistory>summary{cursor:pointer;font-weight:700}}

@media screen and (max-width:650px){.phoneCardPanel{padding:14px}.phoneCardForm{grid-template-columns:1fr;padding:10px}.phoneCardHeading{align-items:flex-start}.phoneCardHeading>button{white-space:normal}.phoneCardTable th:first-child{width:58%}.phoneCardDayRow{padding:8px}.phoneCardTable th,.phoneCardTable td{font-size:12px;padding:6px 4px}}

@media print{#phoneCardToggle,#phoneCardPanel{display:none!important}}



/* Evenly sized daily-summary disclosures, with independent expanded content. */

@media screen{

 #autoDailySheet .autoReportColumn{gap:12px}

 #autoDailySheet .autoReportColumn>.monthlyPaymentPanels,#autoDailySheet .autoReportColumn>.autoReportGrid{gap:12px;margin:0}

 #autoDailySheet .autoReportColumn>details,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details,#autoDailySheet .autoReportColumn>.autoReportGrid>details{width:100%;max-width:100%;min-width:0;margin:0!important;padding:0!important;border:1px solid var(--line);border-radius:8px;box-sizing:border-box;background:#fff}

 #autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:60px;padding:14px 16px;font-size:16px!important;font-weight:700;line-height:1.5;cursor:pointer;overflow-wrap:anywhere;box-sizing:border-box}

 #autoDailySheet .autoReportColumn>details>summary::before,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary::before,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary::before{content:'▶';font-size:12px;flex:0 0 12px}

 #autoDailySheet .autoReportColumn>details[open]>summary::before,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details[open]>summary::before,#autoDailySheet .autoReportColumn>.autoReportGrid>details[open]>summary::before{content:'▼'}

 #autoDailySheet .autoReportColumn>details>summary::-webkit-details-marker,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary::-webkit-details-marker,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary::-webkit-details-marker{display:none}

 #autoDailySheet .autoReportColumn>details[open],#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details[open],#autoDailySheet .autoReportColumn>.autoReportGrid>details[open]{padding:0 14px 14px!important}

 #autoDailySheet .autoReportColumn>details[open]>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details[open]>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details[open]>summary{margin:0 -14px 10px}

}

@media screen and (max-width:650px){#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{min-height:76px;padding:12px;font-size:16px!important}}



@media screen{

 #editor h2,#editor .finalCheckDisclosure>summary{background:#e3efe7!important;color:#124c3b!important;border-left:4px solid #23735a;border-radius:6px;padding:10px 12px;font-size:18px!important;font-weight:700!important;line-height:1.5!important;box-sizing:border-box}

 #editor .sectionhead h2{flex:1 1 220px;min-width:0;margin:0}

 #editor .finalCheckDisclosure>summary{cursor:pointer}

}



@media screen{#editor h2,#editor .finalCheckDisclosure>summary{background:#c8dfd1!important;color:#103f30!important;border-left-color:#17614d;font-weight:700!important;font-size:18px!important}#editor .drawerExpenseSection{margin-top:0;padding:16px}}



@media screen{.reportDownloadBody{display:grid;gap:14px;margin-top:14px;width:100%;max-width:760px}.reportDownloadBody>label{max-width:220px}.reportChoiceLinks{display:flex;gap:12px;flex-wrap:wrap;align-items:stretch}.reportChoiceItem{flex:1 1 180px;display:grid;gap:8px;padding:12px;border:1px solid #b9cfc0;border-radius:8px;background:#f4f8f5;min-width:0}.reportChoiceItem>a{text-align:center;white-space:normal;line-height:1.5}.reportChoiceItem>.reportViewLink{background:#d7e8dd;font-size:15px;font-weight:700!important}.reportChoiceItem>.reportDownloadLink{font-size:13px;padding:8px 12px}.reportPreviewPage{display:block!important;margin:0;padding:20px;color:#163d32}.reportPreviewHeading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.reportPreviewHeading h1{margin:0;font-size:22px}.reportPreviewScroll{width:100%;overflow:auto;max-height:85vh;border:1px solid #91b09d}.reportPreviewScroll table{width:max-content!important;max-width:none!important;min-width:1600px!important;border-collapse:collapse;table-layout:auto!important;margin:0}.reportPreviewScroll td,.reportPreviewScroll th{border:1px solid #b7cbbd;padding:7px 9px;min-width:90px;white-space:nowrap;font-size:12px}.reportPreviewScroll th{background:#d5e8dc;text-align:center}.reportPreviewScroll td{text-align:right}.reportPreviewScroll .reportTotal td{background:#e6efe8;font-weight:700!important}}

@media screen and (max-width:650px){.reportChoiceLinks{gap:10px}.reportChoiceItem{flex-basis:140px;padding:10px}.reportPreviewPage{padding:12px}.reportPreviewHeading h1{font-size:18px}}

@media print{.reportPreviewPage{display:block;margin:0;padding:0}.reportPreviewHeading .button{display:none}.reportPreviewScroll{overflow:visible;max-height:none;border:0}.reportPreviewScroll table{font-size:8px;min-width:0;max-width:none;width:100%}.reportPreviewScroll td,.reportPreviewScroll th{padding:2px;font-size:8px}}



/* Shared, high-contrast heading bars for the six monthly-management sections. */

@media screen{

 #monthlyAutoReport>summary,#wholesaleTrackingPanel .wholesaleContentToggle,#wireRecordsPanel>summary,#inventoryPanel>h3,#reportDownloads>summary,#historyLedgerPanel>summary{background:#c8dfd1!important;color:#103f30!important;border:0;border-left:4px solid #17614d;border-radius:6px;padding:10px 14px!important;font-size:18px!important;font-weight:700!important;line-height:1.5!important;min-height:52px;box-sizing:border-box;overflow-wrap:anywhere}

 #monthlyAutoReport[open]>summary,#wireRecordsPanel[open]>summary,#reportDownloads[open]>summary,#historyLedgerPanel[open]>summary{margin-bottom:14px}

 #inventoryPanel>h3{margin:0 0 14px}

 #wholesaleTrackingPanel .wholesaleContentToggle{text-align:left;white-space:normal;flex:1 1 260px}

}

/* Compact tables keep report content inside the page; the viewer can enlarge it. */

@media screen{

 .reportPreviewPage{width:100%;min-width:0;padding:12px!important}

 .reportPreviewHeading{gap:10px;margin-bottom:10px}

 .reportPreviewHeading h1{font-size:20px}

 .reportSizeControls{display:flex;gap:6px;flex-wrap:wrap}

 .reportSizeControls button{padding:7px 10px;font-size:13px}

 .reportSizeControls button[aria-pressed=true]{background:#d5e8dc;border-color:#17614d}

 .reportPreviewScroll{max-width:100%;min-width:0;max-height:calc(100vh - 100px)}

 .reportPreviewScroll table{min-width:0!important;width:max-content!important}

 .reportPreviewScroll td,.reportPreviewScroll th{min-width:0!important;padding:4px 6px!important;letter-spacing:0;line-height:1.35;font-size:12px;color:#103f30}

 main table td,main table th{padding-top:5px;padding-bottom:5px}

 main .tablewrap{max-width:100%;min-width:0}

}

@media print{.reportSizeControls{display:none!important}.reportPreviewScroll table{zoom:1!important}}



/* Six income/bank reports share one desktop row; small screens retain wrapping. */

@media screen and (min-width:1000px){

 .reportDownloadBody{max-width:1120px}

 .reportChoiceLinks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;width:100%}

 .reportChoiceItem{padding:10px;min-width:0}

 .reportChoiceItem>.reportViewLink{font-size:14px;padding:9px 6px;display:flex;align-items:center;justify-content:center;min-height:54px}

 .reportChoiceItem>.reportDownloadLink{padding:8px 6px}

}



@media screen{.chequePaymentGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.chequePaymentGrid>.chequeFullRow{grid-column:1/-1}.chequePaymentGrid>label{min-width:0}.chequePaymentGrid input,.chequePaymentGrid select{min-width:0;width:100%}}



@media screen{

 #expenses .drawerExpenseGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:end}

 #expenses .drawerExpenseGrid>label{min-width:0}

 #expenses .drawerExpenseGrid input,#expenses .drawerExpenseGrid select{width:100%;min-width:0}

 #expenses .drawerExpenseGrid>.drawerPayee{grid-column:1;grid-row:1}

 #expenses .drawerExpenseGrid>.drawerInvoice{grid-column:2;grid-row:1}

 #expenses .drawerExpenseGrid>.drawerPurpose{grid-column:1;grid-row:2}

 #expenses .drawerExpenseGrid>.drawerPaymentType{grid-column:2;grid-row:2}

 #expenses .drawerExpenseGrid>.drawerFullRow,#expenses .drawerExpenseGrid>div,#expenses .drawerExpenseGrid>.compactRecordClose{grid-column:1/-1}

}



/* Buy USD and wire repayments pair the USD amount with the exchange rate. */

@media screen{

 #fxForm:has(select[name=kind] option:is([value=buy],[value=wire]):checked)>.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px}

 #fxForm:has(select[name=kind] option:is([value=buy],[value=wire]):checked)>.grid>*{grid-column:1/-1!important;min-width:0}

 #fxForm:has(select[name=kind] option:is([value=buy],[value=wire]):checked)>.grid>#fxUsdLabel,#fxForm:has(select[name=kind] option:is([value=buy],[value=wire]):checked)>.grid>#fxRateLabel{grid-column:auto!important}

 #fxForm:has(select[name=kind] option:is([value=buy],[value=wire]):checked) input{min-width:0;width:100%}

}



@media screen{

 #fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px}

 #fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>*{grid-column:1/-1!important;min-width:0}

 #fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>label:has(input[name=person]),#fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>#fxMisc_invoice_number,#fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>#fxTtLabel,#fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>#fxMisc_expense_purpose,#fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>#fxMisc_vehicle,#fxForm:has(select[name=kind] option[value=cash_misc]:checked)>.grid>#fxMisc_vehicle_expense_type{grid-column:auto!important}

 #fxForm:has(select[name=kind] option[value=cash_misc]:checked) input,#fxForm:has(select[name=kind] option[value=cash_misc]:checked) select{width:100%;min-width:0}

}



/* Distinct daily receipt and expense disclosure headings. */

@media screen{#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{background:#d3e4dc!important;color:#163f36!important;font-weight:800!important;border-radius:7px;box-shadow:inset 4px 0 #729c8b}#autoDailySheet .autoReportColumn>details>summary *,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary *,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary *{color:inherit!important}#autoDailySheet .autoReportColumn>details>summary:hover,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary:hover,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary:hover{background:#c3d9ce!important}#autoDailySheet .autoReportColumn>details>summary:focus-visible,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary:focus-visible,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary:focus-visible{outline:3px solid #bc852b;outline-offset:2px}}



/* Wholesale cheque and card income section headings. */

@media screen{#wholesalePanel section:has(>#wholesale_cheque)>.sectionhead,#wholesalePanel section:has(>#wholesale_credit)>.sectionhead,#wholesalePanel section:has(>#wholesale_linx)>.sectionhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}#wholesalePanel section:has(>#wholesale_cheque)>.sectionhead>h3,#wholesalePanel section:has(>#wholesale_credit)>.sectionhead>h3,#wholesalePanel section:has(>#wholesale_linx)>.sectionhead>h3{flex:1 1 200px;min-width:0;margin:0;padding:10px 14px;border-left:4px solid #387da0;border-radius:6px;background:#d6eaf4!important;color:#174a68!important;font-size:18px!important;font-weight:800!important;line-height:1.5;overflow-wrap:anywhere}}



@media screen{#wholesalePanel>h2:first-child{display:none}#wholesalePanel section>.sectionhead>h3,#wholesalePanel .wholesaleDebtSection>h3{flex:1 1 200px;min-width:0;margin:0;padding:10px 14px;border-left:4px solid #387da0;border-radius:6px;background:#d6eaf4!important;color:#174a68!important;font-size:18px!important;font-weight:800!important;line-height:1.5;overflow-wrap:anywhere}#wholesalePanel section>.sectionhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}#wholesalePanel .wholesaleDebtSection{margin:18px 0}#wholesalePanel .wholesaleDebtSection table{width:100%;min-width:570px}#wholesalePanel .wholesaleDebtSection th,#wholesalePanel .wholesaleDebtSection td{padding:6px;font-size:12px}}



@media screen{#wholesalePanel .wholesaleDebtSection>.sectionhead>h3{flex:1 1 200px}#wholesalePanel .workbenchDebtEntry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;margin:10px 0;border:1px solid #b8d3df;border-radius:7px}#wholesalePanel .workbenchDebtEntry>button{grid-column:1/-1;justify-self:start}#wholesalePanel .workbenchDebtEntry input{min-width:0;width:100%}}@media screen and (max-width:420px){#wholesalePanel .workbenchDebtEntry{grid-template-columns:1fr}}



@media screen{#wholesalePanel .wholesaleEntryTop{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px;min-width:0;width:100%}#wholesalePanel .wholesaleEntrySecond{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;width:100%}#wholesalePanel .wholesaleEntrySecond>details{flex:1 1 220px;min-width:0}#wholesalePanel .wholesaleEntrySecond>.receiptarea{flex:1 1 220px;min-width:0;margin:0}#wholesalePanel .wholesaleCashEntry,#wholesalePanel .workbenchDebtEntry{display:flex;flex-direction:column;align-items:stretch;gap:12px}#wholesalePanel .wholesaleContinueActions{margin:0;gap:10px}#wholesalePanel .wholesaleEntryTop input{min-width:0}#wholesalePanel .wholesaleDebtLink{padding:10px;border:1px solid #c9d8cf;border-radius:7px}#wholesalePanel .wholesaleDebtLink>label{margin-top:10px}}@media(max-width:480px){#wholesalePanel .wholesaleEntryTop{gap:6px;grid-template-columns:1fr 1.2fr 1fr}#wholesalePanel .wholesaleEntryTop input{padding:8px 6px}#wholesalePanel .wholesaleContinueActions button{white-space:normal}}



@media screen{#wholesalePanel .wholesaleSimplePanel>h3{padding:10px 14px;border-left:4px solid #387da0;border-radius:6px;background:#d6eaf4;color:#174a68;font-size:18px}#wholesalePanel .wholesaleSimpleScroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #aec4cc;border-radius:5px}#wholesalePanel .wholesaleSimpleScroll table{width:100%;min-width:1050px;table-layout:fixed;border-collapse:collapse}#wholesalePanel .wholesaleSimpleScroll th,#wholesalePanel .wholesaleSimpleScroll td{border:1px solid #bfd0d6;padding:5px;vertical-align:top;font-size:13px;color:#143e50}#wholesalePanel .wholesaleSimpleScroll th{background:#e0eef5;font-weight:800}#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:120px}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3){width:150px}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:65px}#wholesalePanel .wholesaleSimpleScroll input,#wholesalePanel .wholesaleSimpleScroll select{width:100%;min-width:0;font-size:13px;padding:7px 4px;border-radius:4px}#wholesalePanel .wholesaleSimpleScroll .simpleDue,#wholesalePanel .wholesaleSimpleScroll .simpleDue input{color:#b42323!important}#wholesalePanel .wholesaleSimpleScroll tfoot td{background:#e5f0f4;font-weight:800;white-space:nowrap}#wholesalePanel .wholesaleSimpleScroll button{padding:6px;font-size:12px}#wholesalePanel .wholesaleSimplePanel{min-width:0;width:100%}#wholesalePanel:has(.wholesaleSimplePanel)>h2{display:none}#wholesalePanel .wholesaleSimpleScroll input:disabled{opacity:1;color:#244653;background:#f5f8f9}}



/* Fit the wholesale worksheet to its container, with labeled rows on narrow screens. */

@media screen{#wholesalePanel .wholesaleSimpleScroll{container-type:inline-size;overflow-x:visible;min-width:0}#wholesalePanel .wholesaleSimpleScroll table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed}#wholesalePanel .wholesaleSimpleScroll th{width:auto!important;overflow-wrap:anywhere}#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:18%!important}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:7%!important}#wholesalePanel .wholesaleSimpleScroll input,#wholesalePanel .wholesaleSimpleScroll select{font-size:12px;padding:6px 3px}#wholesalePanel .wholesaleSimpleScroll tfoot td{white-space:normal;overflow-wrap:anywhere}#wholesalePanel .wholesaleSimpleScroll input[type=number]{appearance:textfield}#wholesalePanel .wholesaleSimpleScroll input::-webkit-inner-spin-button,#wholesalePanel .wholesaleSimpleScroll input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}

@media screen{#wholesalePanel .wholesaleUploadButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin:0 0 12px;min-width:0}#wholesalePanel .wholesaleUploadButtons>.receiptUpload{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;width:100%;min-height:44px;margin:0;padding:10px 12px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;overflow:hidden;font-size:14px;line-height:1.5;font-weight:700;background:#f2f8fb;border:1px solid #aec9d5;color:#174a68}#wholesalePanel .wholesaleUploadButtons input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}#wholesalePanel .wholesaleUploadButtons>.receiptUpload:focus-within{outline:2px solid #387da0;outline-offset:2px}#wholesalePanel .wholesaleUploadButtons>.receiptUpload:hover{background:#e1eef5}}@media screen and (max-width:360px){#wholesalePanel .wholesaleUploadButtons{grid-template-columns:1fr}}



/* Compact ledger: every delivery remains one horizontal row. */

@media screen{#wholesalePanel .wholesaleSimpleScroll{overflow-x:auto;container-type:normal}#wholesalePanel .wholesaleSimpleScroll table{display:table!important;width:100%!important;min-width:520px!important;max-width:none!important;table-layout:fixed}#wholesalePanel .wholesaleSimpleScroll thead{display:table-header-group!important}#wholesalePanel .wholesaleSimpleScroll tbody{display:table-row-group!important}#wholesalePanel .wholesaleSimpleScroll tfoot{display:table-footer-group!important}#wholesalePanel .wholesaleSimpleScroll tr{display:table-row!important}#wholesalePanel .wholesaleSimpleScroll th,#wholesalePanel .wholesaleSimpleScroll td{display:table-cell!important;padding:3px 2px;font-size:11px;vertical-align:middle;line-height:1.25}#wholesalePanel .wholesaleSimpleScroll td:before{display:none!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:18%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(7),#wholesalePanel .wholesaleSimpleScroll th:nth-child(8){width:12%!important}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:7%!important}#wholesalePanel .wholesaleSimpleScroll input,#wholesalePanel .wholesaleSimpleScroll select{font-size:11px!important;padding:4px 2px!important;min-height:26px!important;height:26px!important;border-radius:3px;line-height:1.2}#wholesalePanel .wholesaleSimpleScroll select{margin-top:2px;height:23px!important;min-height:23px!important}#wholesalePanel .wholesaleSimpleScroll td input[type=number]{text-align:right}#wholesalePanel .wholesaleSimpleScroll button{font-size:10px;padding:4px 2px;min-height:26px;white-space:normal}#wholesalePanel .wholesaleSimpleScroll tfoot td{padding:5px 2px;font-size:10px;font-variant-numeric:tabular-nums}#wholesalePanel .wholesaleSimpleScroll th{font-weight:800!important}}



/* Calm, aligned bank-income entry form. */

@media screen{#bankIncomeForm{margin-top:14px;min-width:0}#bankIncomeForm>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 12px!important;margin:0 0 16px!important;align-items:start}#bankIncomeForm>.grid>label{min-width:0;gap:6px;font-size:13px;font-weight:700;color:#244b42}#bankIncomeForm>.grid>label[data-bank-field=source_kind]{grid-column:1/-1;padding:12px;background:#edf5f1;border:1px solid #d0e1d8;border-radius:8px}#bankIncomeForm>.grid>label[data-bank-field=note]{grid-column:1/-1}#bankIncomeForm input:not([type=checkbox]),#bankIncomeForm select{width:100%;min-width:0;min-height:40px;padding:9px 10px;border-radius:6px;font-size:14px;line-height:1.4}#bankIncomeForm textarea{width:100%;min-width:0;min-height:64px;resize:vertical;padding:9px 10px;font-size:14px}#bankIncomeForm [name=amount]{text-align:right;font-variant-numeric:tabular-nums;font-size:17px;font-weight:800;background:#f8fbf9;color:#174b3c}#bankIncomeForm .wholesaleReceiptEditor{padding:12px;margin:0 0 16px;background:#f7fafc;border-color:#bfd4df}#bankIncomeForm .wholesaleReceiptEditor>summary{font-weight:800;color:#245a74;line-height:1.5;cursor:pointer}#bankIncomeForm .wholesaleReceiptEditor>div{padding-top:14px}#bankIncomeForm .wholesaleAllocationRow{padding:10px 0;gap:8px;font-size:13px}#bankIncomeForm .wholesaleAllocationRow span{overflow-wrap:anywhere;line-height:1.5}#bankIncomeForm>button{min-height:40px;border-radius:6px;padding:9px 16px;font-size:14px;margin-bottom:10px}#bankIncomeForm>.primary{min-width:140px}.bankIncomePanel .compactBankExpenseTable{width:100%;table-layout:fixed;border:1px solid #cbdcd2;border-radius:6px;overflow:hidden}.bankIncomePanel .compactBankExpenseTable th{background:#eaf2ed;color:#245044;font-weight:800}.bankIncomePanel .compactBankExpenseTable td,.bankIncomePanel .compactBankExpenseTable th{padding:9px 8px!important;font-size:12px!important;overflow-wrap:anywhere}.bankIncomePanel .compactBankExpenseTable td:last-child{font-variant-numeric:tabular-nums;text-align:right;font-weight:800}.bankIncomePanel .compactBankExpenseTable th:last-child{text-align:right}}

@media screen and (max-width:420px){#bankIncomeForm>.grid{gap:12px 10px!important}#bankIncomeForm input:not([type=checkbox]),#bankIncomeForm select{padding:8px 7px;font-size:13px}#bankIncomeForm>.grid>label[data-bank-field=person],#bankIncomeForm>.grid>label[data-bank-field=reference]{grid-column:1/-1}#bankIncomeForm .wholesaleAllocationRow{grid-template-columns:20px minmax(0,1fr) 85px}#bankIncomeForm>button{padding:9px 12px}}



@media screen{.chequeEntrySheet{width:100%;min-width:0;margin:8px 0}.chequeEntrySheet>label{max-width:240px;margin:10px 0;font-size:12px;font-weight:700}.chequeEntryScroll{max-width:100%;overflow-x:auto;border:1px solid #b8ced6;border-radius:5px}.chequeEntryScroll table{width:100%!important;min-width:380px!important;table-layout:fixed;border-collapse:collapse}.chequeEntryScroll th,.chequeEntryScroll td{border:1px solid #c7d8de;padding:4px!important;font-size:12px!important;vertical-align:middle}.chequeEntryScroll th{background:#dcecf4;color:#174a68;font-weight:800}.chequeEntryScroll th:nth-child(1){width:20%}.chequeEntryScroll th:nth-child(2){width:35%}.chequeEntryScroll th:nth-child(3){width:22%}.chequeEntryScroll th:nth-child(4){width:23%}.chequeEntryScroll input,.chequeEntryScroll select{min-width:0;width:100%;padding:6px 3px;font-size:12px;min-height:32px;border-radius:4px}.chequeEntryScroll input[type=number]{text-align:right;appearance:textfield}.chequeEntryScroll input::-webkit-inner-spin-button{display:none}.chequeEntryScroll tfoot td{background:#e7f1f6;font-weight:800;font-variant-numeric:tabular-nums}.chequeEntryScroll tfoot td:nth-child(3){text-align:right}.chequeEntryScroll .bankExpenseOpen{white-space:normal;padding:2px;font-size:12px;text-align:left}.chequeEntrySheet>.toolbar{margin:12px 0;gap:8px}.chequeEntrySheet .receiptarea{margin-top:10px}.chequeEntrySheet input:disabled{opacity:1}}



@media screen{.monthlyPaymentBody:has(>.chequeEntrySheet)>.chequeListTools{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0}.monthlyPaymentBody:has(>.chequeEntrySheet)>.chequeListTools>label{min-width:120px;max-width:180px;flex:1;font-size:12px}.monthlyPaymentBody:has(>.chequeEntrySheet)>.chequeListTools input,.monthlyPaymentBody:has(>.chequeEntrySheet)>.chequeListTools select{width:100%;min-width:0;min-height:36px;font-size:13px;padding:7px 8px}}



@media screen{#wholesalePanel .wholesaleSimpleScroll table{min-width:480px!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:23%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:12%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(7){width:14%!important}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:7%!important}#wholesalePanel .wholesaleSimpleScroll td:last-child>button{display:block;width:100%;margin:2px 0;font-size:10px;line-height:1.25;padding:4px 1px}#wholesalePanel .wholesaleSimpleScroll .simpleAddRow{background:#e8f2f8;color:#245a74;border-color:#aec9d8}}



@media screen{#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll tbody td:nth-child(3),#wholesalePanel .wholesaleSimpleScroll tfoot td:nth-child(3){background:#fce8e8!important;color:#a1222b!important}#wholesalePanel .wholesaleSimpleScroll tbody td:nth-child(3) input{background:#fff3f3!important;border-color:#e4b5b9!important;color:#ad1f2b!important;font-weight:800!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:24%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(7){width:12%!important}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:13%!important}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell{position:relative}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>input{padding-right:25px!important}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>select{position:absolute;right:3px;top:50%;transform:translateY(-50%);margin:0!important;width:23px!important;min-width:23px!important;height:24px!important;min-height:24px!important;padding:0!important;color:transparent;background-color:#e9f2f7;border-color:#afc6d3;cursor:pointer}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>select option{color:#143e50;background:#fff}#wholesalePanel .wholesaleSimpleScroll td:last-child>button{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:9px!important;line-height:1.2;padding:4px 1px!important}#wholesalePanel .wholesaleSimpleScroll tr{height:auto}}



@media screen{#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>select{appearance:none;-webkit-appearance:none}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell:after{content:'▾';position:absolute;right:9px;top:50%;transform:translateY(-50%);pointer-events:none;color:#245a74;font-size:12px;line-height:1}}



@media screen{#wholesalePanel .wholesaleSimpleScroll tbody tr{height:auto!important}#wholesalePanel .wholesaleSimpleScroll tbody td{padding:3px 2px!important;vertical-align:middle}#wholesalePanel .wholesaleSimpleScroll tbody td:last-child button{min-height:24px!important;margin:0!important}#wholesalePanel .wholesaleSimpleScroll tfoot .simpleAddRow{display:block;width:100%;min-height:26px;white-space:normal!important;line-height:1.2;font-size:10px!important;padding:5px 2px!important}#wholesalePanel .wholesaleSimpleScroll tbody input,#wholesalePanel .wholesaleSimpleScroll tbody select{margin-bottom:0!important}}



@media screen{#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell:after{display:none!important}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>input{padding-right:42px!important}#wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>.simpleCustomerOpen{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:39px;min-height:24px;height:24px;margin:0;padding:3px 1px;font-size:10px;white-space:nowrap;color:#245a74;background:#e7f1f7;border-color:#afc6d3}.wholesaleCustomerChooser{width:min(480px,calc(100vw - 28px));max-height:85vh;padding:16px;border:1px solid #b5ccd5;border-radius:12px;color:#174a68;background:#fff;box-sizing:border-box;box-shadow:0 12px 45px #102f2833}.wholesaleCustomerChooser::backdrop{background:#173d354d}.wholesaleCustomerChooserHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.wholesaleCustomerChooserHeader strong{font-size:17px;font-weight:800}.wholesaleCustomerChooserHeader button{padding:7px 12px}.wholesaleCustomerChooser>input{width:100%;min-width:0;font-size:14px;padding:10px;margin-bottom:10px}.wholesaleCustomerChooserList{max-height:55vh;overflow-y:auto;display:grid;gap:7px}.wholesaleCustomerChooserList>button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:11px 12px;font-size:14px;line-height:1.5;border-color:#cfdee5;background:#f4f9fc;color:#174a68}.wholesaleCustomerChooserList>button:hover{background:#dfedf5}.wholesaleCustomerChooserList>.customerUseManual{border-style:dashed;background:#edf5ef}}



@media screen{#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:23%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5){width:10%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(7){width:18%!important}#wholesalePanel .wholesaleSimpleScroll th:last-child{width:8%!important}#wholesalePanel .wholesaleSimpleScroll .simpleCardControl{display:flex;align-items:center;min-width:0;width:100%;height:26px;border:1px solid #c4d4cc;border-radius:3px;overflow:hidden;background:#fff}#wholesalePanel .wholesaleSimpleScroll .simpleCardControl>input{flex:1 1 0;width:0!important;min-width:0!important;border:0!important;border-radius:0;height:24px!important;min-height:24px!important;padding:3px 2px!important;margin:0!important;background:transparent}#wholesalePanel .wholesaleSimpleScroll .simpleCardControl>select{flex:0 0 44px;width:44px!important;min-width:44px!important;max-width:44px;margin:0!important;padding:2px 0!important;border:0!important;border-left:1px solid #c4d4cc!important;border-radius:0;height:24px!important;min-height:24px!important;font-size:9px!important;background:#eaf2f7;color:#174a68}#wholesalePanel .wholesaleSimpleScroll tbody tr{height:auto!important}}



@media screen{#wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:14%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:25%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(3),#wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:11%!important}#wholesalePanel .wholesaleSimpleScroll th:nth-child(7),#wholesalePanel .wholesaleSimpleScroll th:last-child{width:17%!important}#wholesalePanel .wholesaleSimpleScroll .simpleNumberCell{position:relative}#wholesalePanel .wholesaleSimpleScroll .simpleNumberCell>input{padding-right:21px!important}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu{position:absolute;right:3px;top:50%;transform:translateY(-50%);margin:0;z-index:2}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu[open]{z-index:20}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu>summary{display:flex;align-items:center;justify-content:center;width:19px;height:23px;list-style:none;cursor:pointer;border:1px solid #bed0d9;border-radius:3px;background:#eaf2f7;color:#245a74;font-size:14px;font-weight:800}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu>summary::-webkit-details-marker{display:none}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu>button,#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu>details{position:absolute;left:0;top:25px;width:100px;margin:0;padding:8px;background:#fff;border:1px solid #c5d5de;border-radius:5px;box-shadow:0 3px 12px #173b3526;color:#a12626;font-size:12px;white-space:nowrap}#wholesalePanel .wholesaleSimpleScroll .simpleRowMenu>details{top:62px;color:#245a74}#wholesalePanel .wholesaleSimpleScroll tfoot .simpleAddRow{margin-top:4px;white-space:nowrap!important;font-size:10px!important}}



@media screen{.wholesaleCustomerChooser>.customerAddInvoiceRow{width:100%;margin-top:12px;padding:10px 12px;border-color:#b3cbd9;background:#e5f1f8;color:#245a74;font-weight:800;white-space:normal}}



@media screen{#wholesalePanel .wholesaleSimpleScroll tfoot .simpleFooterAdd{display:inline-flex;align-items:center;justify-content:center;min-height:25px;width:auto;max-width:100%;margin:0;padding:4px 8px;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;background:#e0edf6;color:#245a74;border-color:#abc7d8;border-radius:4px}}



@media screen{#cashExpenses #addExpense{display:none!important}#cashExpenses .drawerLedgerScroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #b8cfd9;border-radius:5px;margin-top:10px}#cashExpenses .drawerLedgerTable{width:100%!important;min-width:650px!important;table-layout:fixed;border-collapse:collapse}#cashExpenses .drawerLedgerTable th,#cashExpenses .drawerLedgerTable td{border:1px solid #c4d6df;padding:4px!important;vertical-align:middle;font-size:11px;line-height:1.3;min-width:0}#cashExpenses .drawerLedgerTable th{background:#dcecf5;color:#174a68;font-weight:800}#cashExpenses .drawerLedgerTable th:nth-child(1){width:19%}#cashExpenses .drawerLedgerTable th:nth-child(2){width:12%}#cashExpenses .drawerLedgerTable th:nth-child(3){width:12%}#cashExpenses .drawerLedgerTable th:nth-child(4){width:20%}#cashExpenses .drawerLedgerTable th:nth-child(5){width:15%}#cashExpenses .drawerLedgerTable th:nth-child(6){width:14%}#cashExpenses .drawerLedgerTable th:nth-child(7){width:8%}#cashExpenses .drawerLedgerRow{display:table-row!important;margin:0;padding:0;border:0;background:#fff}#cashExpenses .drawerLedgerRow label{display:block;font-size:0;line-height:0;margin:0;min-width:0}#cashExpenses .drawerLedgerRow label>small{display:none}#cashExpenses .drawerLedgerRow input:not([type=file]),#cashExpenses .drawerLedgerRow select{width:100%;min-width:0;min-height:29px;height:29px;padding:4px 3px;border-radius:3px;font-size:11px;line-height:1.3}#cashExpenses .drawerLedgerRow input[type=number]{text-align:right;appearance:textfield}#cashExpenses .drawerLedgerRow input::-webkit-inner-spin-button{display:none}#cashExpenses .drawerLedgerRow button{font-size:11px;padding:5px;white-space:normal;margin:0;min-height:27px}#cashExpenses .drawerLedgerRow .receiptarea{display:block;margin:0;padding:0;border:0;min-width:0}#cashExpenses .drawerLedgerRow .receiptUpload{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:29px;padding:4px;font-size:11px;line-height:1.3;white-space:normal;color:#245a74;background:#edf5fa}#cashExpenses .drawerLedgerRow .receiptUpload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#cashExpenses .drawerLedgerRow .receiptarea>.muted{display:none}#cashExpenses .drawerLedgerRow .receiptgallery{display:block;margin:0}#cashExpenses .drawerLedgerRow .receiptcard{display:block;margin:3px 0;padding:0;font-size:10px;border:0}#cashExpenses .drawerLedgerRow .receiptcard img{display:none}#cashExpenses .drawerLedgerRow .receiptthumb:after{content:'查看'}#cashExpenses .drawerLedgerRow .receiptcard small{display:none}#cashExpenses .drawerLedgerCarFields:has(label:not([hidden])){display:grid;gap:5px;margin-top:5px}#cashExpenses .drawerLedgerCarFields label:not([hidden]){font-size:10px;line-height:1.3}#cashExpenses .drawerLedgerTable tfoot td{background:#e4f0f6;color:#174a68;font-weight:800}#cashExpenses #drawerLedgerTotal{text-align:right;font-variant-numeric:tabular-nums}#cashExpenses #drawerLedgerAdd{font-size:10px;padding:5px 3px;min-height:26px;white-space:normal}}



/* Keep seven-column entry intact while making the right-hand actions reachable on touch screens. */

.drawerLedgerNavigation{display:none}

@media screen and (max-width:700px){

 #cashExpenses .drawerLedgerNavigation{display:flex;gap:8px;margin-top:10px}

 #cashExpenses .drawerLedgerNavigation button{flex:1;min-width:0;min-height:40px;padding:8px 5px;font-size:13px;white-space:normal;background:#e3eff7;color:#174a68;border-color:#abc7d8}

 #cashExpenses .drawerLedgerScroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:auto}

 #cashExpenses .drawerLedgerRow input:not([type=file]),#cashExpenses .drawerLedgerRow select{min-height:36px;height:36px;font-size:14px}

 #cashExpenses .drawerLedgerRow button,#cashExpenses .drawerLedgerRow .receiptUpload{min-height:36px;font-size:13px}

 #cashExpenses .drawerLedgerTable th,#cashExpenses .drawerLedgerTable td{font-size:12px}

}

@media print{.drawerLedgerNavigation{display:none!important}}



/* Card reconciliation uses the same inputs and computed values in compact tables. */

#editor .cardComparisonTableWrap{display:block!important;grid-column:1/-1;width:100%;min-width:0}

#editor .cardReconciliationTable{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;margin:8px 0 14px}

#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{border:1px solid #b9cfd4;padding:9px 7px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;font-size:13px}

#editor .cardReconciliationTable thead th{background:#dcecf3;color:#174a68;text-align:center;font-weight:800}

#editor .cardReconciliationTable th:first-child{width:30%;text-align:left}

#editor .cardReconciliationTable tbody th{background:#f0f5f3;font-weight:700}

#editor .cardReconciliationTable td{text-align:right;font-variant-numeric:tabular-nums}

#editor .cardTableInput{display:block;margin:0;font-size:0;line-height:0;min-width:0}

#editor .cardTableInput input{width:100%;min-width:0;padding:7px 4px;font-size:14px;text-align:right;box-sizing:border-box}

#editor .cardTableMismatch{color:#a32727;background:#fff0ed;font-weight:800}

#editor #cardDifferences[hidden]{display:none!important}

#editor #cardFees.cardResultTableHost,#editor #paymentDifferences.cardResultTableHost{display:block!important;width:100%}

#editor .cardResultTable th:first-child{width:65%}

#editor .cardResultTable strong{font-size:16px!important;color:inherit}

@media(max-width:600px){#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{font-size:12px;padding:7px 3px}#editor .cardTableInput input{font-size:16px;padding:6px 2px;min-height:38px}#editor .cardResultTable strong{font-size:15px!important}}



#editor .cardFeesDisclosure{margin-top:14px;margin-bottom:16px}

#editor .cardFeesDisclosure>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;font-weight:800;color:#173f36;list-style:none;padding:9px 0}

#editor .cardFeesDisclosure>summary::-webkit-details-marker{display:none}

#editor .cardFeesDisclosure>summary::after{content:'▾';font-size:16px}

#editor .cardFeesDisclosure[open]>summary::after{content:'▴'}

#editor .cardFeesDisclosure>summary:focus-visible{outline:2px solid #397996;outline-offset:3px}

@media print{#editor .cardFeesDisclosure::details-content{display:block!important;content-visibility:visible!important}}



#editor .workbenchEntryTable{display:table!important;width:100%!important;min-width:0;table-layout:fixed;border-collapse:collapse;margin:8px 0 14px;color:#173f36}

#editor .workbenchEntryTable th,#editor .workbenchEntryTable td{border:1px solid #b9cfd4;padding:7px;vertical-align:middle;font-size:13px;white-space:normal;overflow-wrap:anywhere}

#editor .workbenchEntryTable th{background:#e0edf2;font-weight:800;text-align:left}

#editor .workbenchEntryTable tbody th{background:#eff5f2;width:45%}

#editor .workbenchEntryTable td{font-variant-numeric:tabular-nums}

#editor .workbenchTableInput{display:block!important;min-width:0;margin:0!important;font-size:0!important;line-height:0!important}

#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .workbenchTableInput textarea{display:block;width:100%;min-width:0;box-sizing:border-box;margin:0;font-size:14px;line-height:1.35;padding:7px 5px}

#editor .workbenchTableInput input[type=number]{text-align:right}

#editor .workbenchTableInput .denomSubtotal{font-size:13px;line-height:1.4}

#editor .workbenchBasicTableHost,#editor #adjustFields,#editor .workbenchComparisonHost,#editor #cashTotals{display:block!important;width:100%;min-width:0}

#editor #denoms{display:block!important;width:100%}

#editor .cashCountEntryTable th:first-child{width:42%}

#editor .cashCountEntryTable td:last-child{text-align:right}

#editor .cashCountEntryTable .denomSubtotal{font-size:14px;font-weight:800;white-space:normal}

#editor .workbenchChequeScroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

#editor .workbenchChequeTable{min-width:950px!important}

#editor .workbenchChequeTable th:nth-child(1){width:16%}#editor .workbenchChequeTable th:nth-child(3){width:8%}#editor .workbenchChequeTable th:nth-child(5){width:14%}#editor .workbenchChequeTable th:last-child{width:7%}

#editor .workbenchChequeRow{display:table-row!important;background:white;border:0;margin:0;padding:0}

#editor .workbenchChequeRow button{margin:0;padding:7px;font-size:12px;white-space:normal}

#editor .workbenchChequeRow .receiptarea{display:block;margin:0;padding:0;border:0;min-width:0}

#editor .workbenchChequeRow .receiptUpload{position:relative;overflow:hidden;display:block;font-size:12px;line-height:1.4;padding:6px;white-space:normal;min-height:32px}

#editor .workbenchChequeRow .receiptUpload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}

#editor .workbenchChequeRow .receiptarea>.muted{display:none}

#editor .workbenchChequeRow .receiptgallery{display:block;margin:0}#editor .workbenchChequeRow .receiptcard{display:block;padding:0;margin:3px 0;border:0}#editor .workbenchChequeRow .receiptcard img{display:none}#editor .workbenchChequeRow .receiptthumb:after{content:'查看照片'}#editor .workbenchChequeRow .receiptcard small{display:none}

#editor .workbenchIncomeComparison td{width:33.333%;text-align:right}

#editor .workbenchIncomeComparison .stat{display:block!important;border:0!important;background:transparent!important;min-height:0!important;margin:0!important;padding:0!important}

#editor .workbenchIncomeComparison .stat small,#editor .workbenchIncomeComparison h3{display:none}

#editor .workbenchIncomeComparison .stat strong{font-size:16px!important;overflow-wrap:anywhere}

#editor .workbenchBasicTableHost .usdCashCaption{display:none}

#editor .chequeTableNavigation{display:none}

@media(max-width:700px){#editor .chequeTableNavigation{display:flex;gap:8px;margin:8px 0}#editor .chequeTableNavigation button{flex:1;min-width:0;min-height:38px;font-size:12px;white-space:normal}#editor .workbenchEntryTable th,#editor .workbenchEntryTable td{font-size:12px;padding:5px}#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .workbenchTableInput textarea{font-size:16px;min-height:38px}#editor .workbenchIncomeComparison .stat strong{font-size:14px!important}}

@media print{#editor .chequeTableNavigation{display:none!important}#editor .workbenchChequeScroll{overflow:visible}#editor .workbenchChequeTable{min-width:0!important}}



#editor .cardResultTableHost{display:block!important;width:100%;min-width:0}



#editor td.workbenchTableWarning{background:#fff0ed;color:#a32727;font-weight:800}



#editor .workbenchChequeTable{min-width:0!important}

#editor .workbenchChequeTable th:nth-child(1){width:30%}#editor .workbenchChequeTable th:nth-child(2){width:22%}#editor .workbenchChequeTable th:nth-child(3){width:24%}#editor .workbenchChequeTable th:nth-child(4){width:24%}

#editor .chequeTableNavigation{display:none!important}

#editor .workbenchChequeRow td:first-child{position:relative;padding-right:24px}

#editor .chequeRowMenu{position:absolute;right:3px;top:50%;transform:translateY(-50%);z-index:2}

#editor .chequeRowMenu summary{cursor:pointer;list-style:none;border:1px solid #bed0d5;border-radius:3px;padding:3px;color:#245a74;font-size:14px;line-height:1}

#editor .chequeRowMenu summary::-webkit-details-marker{display:none}

#editor .chequeRowMenu[open]{z-index:5}

#editor .chequeRowMenu[open] button{position:absolute;left:0;top:22px;width:90px;background:white;box-shadow:0 2px 5px #0002}

#editor .workbenchChequeRow label[hidden]{display:none!important}



#cashExpenses details.drawerLedgerCarFields{display:block!important;margin:5px 0 0;padding:0;border:0;background:transparent}

#cashExpenses details.drawerLedgerCarFields[hidden]{display:none!important}

#cashExpenses .drawerLedgerCarFields>summary{font-size:11px;line-height:1.4;font-weight:700;color:#245a74;cursor:pointer;padding:5px 2px;white-space:normal}

#cashExpenses details.drawerLedgerCarFields>label:not([hidden]){display:block;font-size:10px;line-height:1.3;margin-top:5px}

#cashExpenses .drawerLedgerActions{margin-top:10px;justify-content:flex-end}

#cashExpenses #drawerCancelEntry{min-height:38px;white-space:normal}



#cashExpenses .drawerLedgerRow label[hidden]{display:none!important}



#cashExpenses .drawerLedgerTable{min-width:560px!important}

#cashExpenses .drawerLedgerTable th:nth-child(1){width:21%}#cashExpenses .drawerLedgerTable th:nth-child(2){width:14%}#cashExpenses .drawerLedgerTable th:nth-child(3){width:14%}#cashExpenses .drawerLedgerTable th:nth-child(4){width:29%}#cashExpenses .drawerLedgerTable th:nth-child(5){width:14%}#cashExpenses .drawerLedgerTable th:nth-child(6){width:8%!important}

#cashExpenses details.drawerPurposeDetails{margin:0}

#cashExpenses .drawerPurposeDetails>summary{padding:6px 3px;min-height:29px;box-sizing:border-box;font-size:12px;border:1px solid #b9cfd4;border-radius:3px;background:#f4f8f6;line-height:1.4}

#cashExpenses .drawerPurposeBody>label:not([hidden]){display:block;font-size:11px;line-height:1.4;margin:6px 0 0}

#cashExpenses .drawerPurposeBody>label[hidden]{display:none!important}



/* Compact workbench spacing reserves more room for readable text. */

@media screen{

 #editor{font-size:15px;line-height:1.4}

 #editor #entryForm>.card,#editor #entryForm .twocol>.card{padding:12px 14px;margin-bottom:10px}

 #editor #entryForm .twocol{gap:10px}

 #editor .sectionhead{gap:8px;margin-bottom:8px}

 #editor h2,#editor .finalCheckDisclosure>summary{font-size:20px!important;line-height:1.3!important;padding:8px 10px!important;margin-bottom:8px}

 #editor h3{font-size:16px;line-height:1.4;margin:8px 0 6px}

 #editor .toolbar{gap:8px;margin:8px 0}

 #editor .grid{gap:8px}

 #editor .stats{gap:8px;margin:6px 0 8px}

 #editor .cardReconciliationTable,#editor .workbenchEntryTable{margin:5px 0 8px}

 #editor .cardReconciliationTable th,#editor .cardReconciliationTable td,#editor .workbenchEntryTable th,#editor .workbenchEntryTable td{font-size:15px;line-height:1.35;padding:5px 6px;letter-spacing:0}

 #editor .cardTableInput input,#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select{font-size:16px;min-height:34px;height:34px;padding:5px 4px}

 #editor .workbenchTableInput textarea{font-size:16px;min-height:65px;padding:6px}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong{font-size:18px!important;line-height:1.35}

 #editor .cardFeesDisclosure{margin:4px 0}

 #editor .cardFeesDisclosure>summary{font-size:16px;min-height:34px;padding:5px 0;gap:6px}

 #editor #paymentDifferenceSection{margin:7px 0 0;padding-top:7px}

 #editor #paymentDifferences{margin:4px 0 0}

 #editor #denoms{margin-bottom:8px}

 #editor .usdCashRow{padding:2px 0;margin:0}

 #editor .cashCompareRow{margin:6px 0;gap:6px}

 #editor .sticky{padding:8px;bottom:6px}

 #editor button,#editor .button{font-size:15px;min-height:34px;padding:6px 9px}

 #editor #cashExpenses .drawerLedgerScroll{margin-top:6px}

 #editor #cashExpenses .drawerLedgerTable th,#editor #cashExpenses .drawerLedgerTable td{font-size:14px;padding:4px!important;line-height:1.35}

 #editor #cashExpenses .drawerLedgerRow input:not([type=file]),#editor #cashExpenses .drawerLedgerRow select{font-size:16px;height:34px;min-height:34px;padding:5px 3px}

 #editor #cashExpenses .drawerPurposeDetails>summary{font-size:15px;line-height:1.35;padding:5px 3px;min-height:34px}

 #editor #cashExpenses .drawerPurposeBody>label:not([hidden]){font-size:14px;line-height:1.35;margin-top:4px}

 #editor #cashExpenses .drawerLedgerRow .receiptUpload,#editor .workbenchChequeRow .receiptUpload{font-size:14px;min-height:34px;padding:5px}

 #editor #cashExpenses .drawerLedgerRow button{font-size:14px;min-height:32px;padding:5px}

 #editor #cashExpenses #drawerLedgerAdd{font-size:13px;padding:4px;min-height:32px}

 #editor #cashExpenses .drawerLedgerActions{margin-top:6px}

 #editor .expenseHeadingTotal{font-size:14px}

}

@media screen and (max-width:600px){

 #editor #entryForm>.card,#editor #entryForm .twocol>.card{padding:9px 8px;margin-bottom:8px}

 #editor .cardReconciliationTable th,#editor .cardReconciliationTable td,#editor .workbenchEntryTable th,#editor .workbenchEntryTable td{font-size:14px;padding:5px 3px}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong{font-size:17px!important}

 #editor .cardTableInput input,#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor #cashExpenses .drawerLedgerRow input:not([type=file]),#editor #cashExpenses .drawerLedgerRow select{font-size:16px;min-height:36px;height:36px}

 #editor button,#editor .button{min-height:38px}

}



/* Readable workbench type: project labels must be as legible as the input amounts. */

@media screen{

 #editor .workbenchEntryTable th,#editor .workbenchEntryTable td,#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{font-size:18px!important;font-weight:700;line-height:1.35;letter-spacing:0}

 #editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .workbenchTableInput textarea,#editor .cardTableInput input{font-size:20px!important;min-height:38px;height:auto;padding:5px 6px}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong{font-size:20px!important}

 #editor #cashExpenses .drawerLedgerTable th,#editor #cashExpenses .drawerLedgerTable td{font-size:18px!important}

 #editor #cashExpenses .drawerLedgerRow input:not([type=file]),#editor #cashExpenses .drawerLedgerRow select,#editor #cashExpenses .drawerPurposeDetails>summary{font-size:18px!important;min-height:38px;height:auto}

 #editor #cashExpenses .drawerPurposeBody>label:not([hidden]){font-size:17px}

 #editor #cashExpenses .drawerLedgerRow .receiptUpload,#editor .workbenchChequeRow .receiptUpload{font-size:17px!important}

}

@media screen and (max-width:600px){

 #editor .workbenchEntryTable th,#editor .workbenchEntryTable td,#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{font-size:18px!important}

 #editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .cardTableInput input{font-size:20px!important}

}



/* Money values share the same readable, centered treatment throughout the workbench. */

@media screen{

 #editor .workbenchEntryTable td,#editor .cardReconciliationTable td{vertical-align:middle;text-align:center!important}

 #editor input[type=number],#editor .workbenchTableInput input[type=number],#editor .cardTableInput input,#editor .workbenchTableInput input[readonly]{text-align:center!important;font-size:22px!important;font-weight:800}

 #editor #cashExpenses .drawerLedgerRow input[type=number]{text-align:center!important;font-size:22px!important}

 #editor .denomSubtotal,#editor .cashCountEntryTable .denomSubtotal{display:block!important;width:100%;font-size:22px!important;font-weight:800;line-height:1.4;text-align:center!important;margin:0}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong,#editor .stat strong{display:block;font-size:22px!important;font-weight:800;text-align:center!important;line-height:1.4;font-variant-numeric:tabular-nums}

 #editor #cashExpenses #drawerLedgerTotal,#editor #chequeTotal{font-size:22px!important;font-weight:800;text-align:center!important;vertical-align:middle}

 #editor #chequeTotal{display:block;padding:5px 0}

 #editor .wholesaleSimplePanel input[type=number],#editor .wholesaleSimplePanel .simpleCardControl input{font-size:22px!important;text-align:center!important}

 #editor .workbenchEntryTable th:not(:first-child),#editor .cardReconciliationTable thead th:not(:first-child){text-align:center}

 #editor .expenseHeadingTotal{font-size:18px!important;font-weight:800}

}



@media screen{

 #editor #cashExpenses .drawerLedgerRow .receiptUpload{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-height:26px;height:26px;font-size:12px!important;line-height:1.2;padding:4px 6px!important;white-space:nowrap;border-radius:4px}

 #editor #cashExpenses .drawerLedgerRow button.smallbtn{min-height:26px;height:26px;font-size:12px;padding:4px 6px;line-height:1.2}

 #editor #cashExpenses .drawerLedgerRow td:has(>.receiptarea){text-align:center}

 #editor #cashExpenses .drawerLedgerActions{gap:8px;flex-wrap:wrap}

 #editor #cashExpenses #drawerSaveAndExit{min-height:38px;white-space:normal}

}



@media screen{#editor #cashExpenses .drawerPurposeDetails>summary{font-size:14px!important;line-height:1.35;padding:5px 3px;min-height:29px}}



/* Balanced desktop and phone sizes replace the previous oversized workbench rules. */

@media screen{

 #editor{font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}

 #editor h2,#editor .finalCheckDisclosure>summary{font-size:18px!important;line-height:1.3!important;padding:7px 9px!important}

 #editor .workbenchEntryTable th,#editor .workbenchEntryTable td,#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{font-size:15px!important;line-height:1.3;padding:5px 6px}

 #editor input[type=number],#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .workbenchTableInput textarea,#editor .cardTableInput input,#editor .workbenchTableInput input[readonly]{font-size:17px!important;min-height:34px;height:auto;line-height:1.25;padding:5px 4px}

 #editor .denomSubtotal,#editor .cashCountEntryTable .denomSubtotal{font-size:17px!important;line-height:1.25;white-space:nowrap;overflow-wrap:normal;word-break:normal}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong,#editor .stat strong,#editor #cashExpenses #drawerLedgerTotal,#editor #chequeTotal{font-size:18px!important;line-height:1.3}

 #editor #cashExpenses .drawerLedgerTable th,#editor #cashExpenses .drawerLedgerTable td{font-size:14px!important}

 #editor #cashExpenses .drawerLedgerRow input:not([type=file]),#editor #cashExpenses .drawerLedgerRow select,#editor #cashExpenses .drawerLedgerRow input[type=number]{font-size:16px!important;min-height:34px;height:34px}

 #editor #cashExpenses .drawerPurposeBody>label:not([hidden]){font-size:13px}

 #editor .wholesaleSimplePanel input[type=number],#editor .wholesaleSimplePanel .simpleCardControl input{font-size:17px!important}

 #editor .expenseHeadingTotal{font-size:14px!important}

 #editor .cardFeesDisclosure>summary,#editor h3{font-size:15px}

 #editor .cashCountEntryTable th:first-child{width:34%}#editor .cashCountEntryTable th:nth-child(2){width:24%}#editor .cashCountEntryTable th:nth-child(3){width:42%}

 #editor .cashCountEntryTable .workbenchTableInput{padding:0;border:0}

}

@media screen and (max-width:700px){

 #editor{font-size:13px}

 #editor h2,#editor .finalCheckDisclosure>summary{font-size:16px!important;padding:6px 8px!important}

 #editor .workbenchEntryTable th,#editor .workbenchEntryTable td,#editor .cardReconciliationTable th,#editor .cardReconciliationTable td{font-size:13px!important;line-height:1.25;padding:4px}

 #editor input[type=number],#editor .workbenchTableInput input:not([type=hidden]),#editor .workbenchTableInput select,#editor .workbenchTableInput textarea,#editor .cardTableInput input,#editor .workbenchTableInput input[readonly]{font-size:16px!important;min-height:34px;height:34px;padding:4px 3px}

 #editor .workbenchTableInput textarea{height:auto;min-height:60px}

 #editor .denomSubtotal,#editor .cashCountEntryTable .denomSubtotal{font-size:14px!important;line-height:1.2;white-space:nowrap}

 #editor .cardResultTable strong,#editor .workbenchIncomeComparison .stat strong,#editor .stat strong,#editor #cashExpenses #drawerLedgerTotal,#editor #chequeTotal{font-size:15px!important;line-height:1.25}

 #editor #cashExpenses .drawerLedgerTable th,#editor #cashExpenses .drawerLedgerTable td{font-size:13px!important}

 #editor #cashExpenses .drawerLedgerRow input:not([type=file]),#editor #cashExpenses .drawerLedgerRow select,#editor #cashExpenses .drawerLedgerRow input[type=number]{font-size:16px!important;min-height:34px;height:34px}

 #editor #cashExpenses .drawerPurposeDetails>summary{font-size:13px!important;line-height:1.25;min-height:29px}

 #editor .wholesaleSimplePanel input[type=number],#editor .wholesaleSimplePanel .simpleCardControl input{font-size:16px!important}

 #editor .cardFeesDisclosure>summary,#editor h3{font-size:14px}

 #editor button,#editor .button{font-size:13px;min-height:34px;padding:5px 6px}

 #editor .sticky{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;bottom:4px;max-width:100%}

 #editor .sticky button{font-size:12px;line-height:1.25;min-height:36px;padding:5px 3px;white-space:normal;margin:0!important;width:100%}

 #editor .workbenchEntryTable,#editor .cardReconciliationTable{max-width:100%}

}



@media screen{#editor #cashExpenses .drawerPurposeDetails>summary{font-size:12px!important}}

@media screen and (max-width:700px){#editor #cashExpenses .drawerPurposeDetails>summary{font-size:11px!important}}



@media screen{

 #editor #cashExpenses .drawerLedgerTable th:nth-child(4){width:34%}

 #editor #cashExpenses .drawerLedgerTable th:nth-child(5){width:11%}

 #editor #cashExpenses .drawerLedgerTable th:nth-child(6){width:6%}

 #editor #cashExpenses .drawerLedgerRow .receiptUpload{font-size:10px!important;min-height:24px;height:24px;padding:3px!important;line-height:1.2}

 #editor #cashExpenses .drawerLedgerRow button.smallbtn{font-size:10px;min-height:24px;height:24px;padding:3px;line-height:1.2}

}



.phoneCardForm{display:block!important}

.phoneCardForm .phoneCardEntryTable{margin:0 0 10px}

.phoneCardPanel .phoneCardTable th,.phoneCardPanel .phoneCardTable td{width:auto;text-align:center;vertical-align:middle;overflow-wrap:anywhere;font-size:14px;padding:6px}

.phoneCardPanel .phoneCardTable th:first-child{width:30%}

.phoneCardPanel .phoneCardTable th:nth-child(2),.phoneCardPanel .phoneCardTable th:nth-child(3){width:25%}

.phoneCardPanel .phoneCardTable th:nth-child(4){width:20%}

.phoneCardPanel .phoneCardTable th{background:#deedf2;color:#174a68}

.phoneCardTableInput{display:block;margin:0;font-size:0;line-height:0}

.phoneCardTableInput input{width:100%;min-width:0;box-sizing:border-box;font-size:16px;line-height:1.3;padding:6px 3px;min-height:36px;text-align:center}

.phoneCardEntryTable .phoneCardDifference{display:block;text-align:center;margin:0;padding:0}

.phoneCardEntryTable .phoneCardDifference>strong{display:none}

.phoneCardEntryTable .phoneCardDifference output{display:block;font-size:16px;font-weight:800;padding:4px;white-space:normal;overflow-wrap:anywhere}

.phoneCardForm>.toolbar{margin:0;gap:8px}

@media(max-width:650px){.phoneCardPanel .phoneCardTable th,.phoneCardPanel .phoneCardTable td{font-size:12px;padding:4px 2px}.phoneCardPanel .phoneCardTable th:first-child{width:34%}.phoneCardPanel .phoneCardTable th:nth-child(2),.phoneCardPanel .phoneCardTable th:nth-child(3){width:23%}.phoneCardPanel .phoneCardTable th:nth-child(4){width:20%}.phoneCardEntryTable .phoneCardDifference output{font-size:14px}}



@media screen{

 #editor #cashExpenses .drawerPurposeDetails>summary{background:#f2f4f3;color:#425951;border-color:#c7d3cd}

 #editor #cashExpenses .drawerPurposeDetails[open]>summary{background:#dceaf6;color:#174d78;border-color:#82accb;border-bottom-left-radius:0;border-bottom-right-radius:0}

 #editor #cashExpenses .drawerPurposeBody{background:#eef5fc;border:1px solid #82accb;border-top:0;border-left:3px solid #4f86b2;padding:6px;border-radius:0 0 5px 5px}

 #editor #cashExpenses .drawerPurposeBody>label:not([hidden]){color:#194c77;font-weight:800;margin:0 0 7px;line-height:1.4}

 #editor #cashExpenses .drawerPurposeBody>label:not([hidden]):last-of-type{margin-bottom:0}

 #editor #cashExpenses .drawerPurposeBody select{background:#fff;color:#173f63;border-color:#9bbbd3}

 #editor #cashExpenses .drawerPurposeBody select:focus{outline:2px solid #5a90b9;outline-offset:1px;background:#fffdf2}

}



/* Compact label/value tables preserve the original inputs and accounting events. */

#bankIncomeForm>.systemEntryTableHost{display:block!important;margin:0 0 12px!important}

.systemEntryTable{width:100%;table-layout:fixed;border-collapse:collapse}

.systemEntryTable th,.systemEntryTable td{border:1px solid #b9ced8;padding:6px;vertical-align:middle}

.systemEntryTable th{width:32%;background:#e0edf3;color:#194e6b;text-align:left;font-size:14px}

.systemEntryTable label.workbenchTableInput{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:0!important;line-height:0}

.systemEntryTable label.workbenchTableInput input,.systemEntryTable label.workbenchTableInput select,.systemEntryTable label.workbenchTableInput textarea{display:block;width:100%;margin:0;font-size:16px!important;line-height:1.35;min-width:0;box-sizing:border-box}

#bankIncomeForm .systemEntryTable [name=amount]{text-align:center}

@media(max-width:650px){.systemEntryTable th{font-size:13px;width:30%}.systemEntryTable th,.systemEntryTable td{padding:4px}}

.systemEntryTable label.workbenchTableInput [hidden]{display:none!important}



/* Payroll print controls stay above the employee field. */

.payrollEntryHeader{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;margin-bottom:12px}

.payrollEntryHeader h2{margin:0;align-self:center}

.payrollPrintTools{display:flex;justify-content:flex-end;align-items:end;gap:7px;min-width:0}

.payrollPrintTools label{font-size:12px;margin:0;min-width:0}

.payrollPrintTools select{font-size:12px;min-height:30px;padding:4px;max-width:180px;width:100%}

.payrollPrintTools button{font-size:12px;min-height:30px;padding:5px 8px;white-space:nowrap}

@media(max-width:650px){.payrollEntryHeader{gap:7px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.payrollEntryHeader h2{font-size:16px}.payrollPrintTools{flex-wrap:wrap}.payrollPrintTools label{width:100%}.payrollPrintTools select{max-width:none;font-size:16px}.payrollPrintTools button{font-size:12px}}



.payrollActions{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;overflow-x:auto;align-items:center;padding-bottom:5px}

.payrollActions>button{flex:0 0 auto;white-space:nowrap;font-size:12px!important;min-height:32px!important;padding:6px 8px!important;margin:0!important}

.payrollWeekPreviewScroll{overflow:auto;max-width:100%;max-height:70vh}

.payrollWeekPreviewTable{border-collapse:collapse;width:max-content;min-width:100%;font-size:12px;font-variant-numeric:tabular-nums}

.payrollWeekPreviewTable th,.payrollWeekPreviewTable td{border:1px solid #aab7bc;padding:5px 7px;white-space:nowrap;text-align:right}

.payrollWeekPreviewTable thead th{background:#dcebf1;color:#174b66;position:sticky;top:0;z-index:1}

.payrollWeekPreviewTable td:nth-child(2),.payrollWeekPreviewTable th:nth-child(2){text-align:left;min-width:175px}

.payrollWeekPreviewTable [data-money=loan]{background:#e3debd;color:#b52222}

.payrollWeekPreviewTable [data-money=net]{font-weight:800;background:#edf4ed}

.payrollWeekPreviewTable tfoot{background:#e4edf1;font-weight:800}

.payrollWeekPreviewPanel .toolbar h2{font-size:17px;margin:0;margin-right:auto}



@page weeklyPayrollSheet{size:A4 landscape;margin:8mm}

@media print{body.printWeekPayroll aside,body.printWeekPayroll main>header,body.printWeekPayroll #notice,body.printWeekPayroll main>section:not(#payroll),body.printWeekPayroll #payroll>:not(#payrollWeekPreviewPanel),body.printWeekPayroll #payrollWeekPreviewPanel>.toolbar button,body.printWeekPayroll #payrollWeekPreviewPanel>.toolbar a,body.printWeekPayroll #payrollWeekPreviewPanel>.toolbar label{display:none!important}body.printWeekPayroll,body.printWeekPayroll main,body.printWeekPayroll #payroll,body.printWeekPayroll #payrollWeekPreviewPanel{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}body.printWeekPayroll #payrollWeekPreviewPanel{page:weeklyPayrollSheet;border:0}body.printWeekPayroll .payrollWeekPreviewScroll{overflow:visible;max-height:none}body.printWeekPayroll .payrollWeekPreviewTable{width:100%;min-width:0;table-layout:fixed;font-size:7px}body.printWeekPayroll .payrollWeekPreviewTable th,body.printWeekPayroll .payrollWeekPreviewTable td{font-size:7px;padding:2px;white-space:normal;overflow-wrap:anywhere;min-width:0}body.printWeekPayroll .payrollWeekPreviewTable tr{break-inside:avoid}body.printWeekPayroll [hidden]{display:none!important}body.printWeekPayroll [data-week-section=sunday]{break-before:page}}



.payrollWeekly>summary,.payrollHistory>summary{font-size:16px;font-weight:800;background:#dcebf1;color:#194f6c;padding:10px;border-radius:5px;cursor:pointer}

.payrollWeekly[open]>summary,.payrollHistory[open]>summary{margin-bottom:12px}

.payrollSummaryTable{width:100%;border-collapse:collapse;table-layout:fixed;margin:9px 0;font-size:13px}

.payrollSummaryTable th,.payrollSummaryTable td{border:1px solid #bfd1d9;padding:7px 9px;overflow-wrap:anywhere}

.payrollSummaryTable th{width:48%;background:#eef4f6;color:#214e62;text-align:left;font-weight:700}

.payrollSummaryTable td{text-align:center;font-variant-numeric:tabular-nums}

.payrollSummaryTable tr:last-child{font-weight:800}

.payrollSummaryTable .button{font-size:12px;padding:5px 10px;min-height:30px}

.payrollWeekLinks{display:block}



.payrollWeekPreviewPanel,.payrollSlipPreviewShell{position:relative;padding-top:55px!important}

.payrollPreviewClose{position:absolute;right:12px;top:10px;z-index:3;background:#e3edf6;color:#164c74;border:1px solid #7eabc9;font-size:13px;font-weight:800;padding:7px 13px;white-space:nowrap}

.payrollPreviewClose:hover{background:#cddfed}

.payrollSlipPreviewShell{max-width:792px;border:1px solid #c7d7ce;border-radius:8px;background:white;margin:12px 0;padding:12px}

.payrollSlipPreviewShell .payrollSlip{margin-top:0}

@media print{.payrollPreviewClose{display:none!important}body.printPayroll #payroll>#payrollSlipPreviewShell{display:block!important;padding:0!important;border:0!important;margin:0!important;max-width:none!important}body.printWeekPayroll .payrollWeekPreviewPanel{padding-top:0!important}}



.payrollSavedWeekPanel{border:1px solid #b8cedb;border-radius:6px;background:#f4f8fb;padding:10px;margin-top:12px}

.payrollSavedWeekPanel .toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}

.payrollSavedWeekPanel h3{font-size:14px;margin:0}

.payrollSavedWeekTable th:first-child{width:36%}.payrollSavedWeekTable td:first-child{text-align:left}

.payrollSavedWeekTable button,.payrollSavedWeekPanel>.toolbar button{font-size:12px;padding:5px 8px;min-height:30px}

@media(max-width:650px){.payrollSavedWeekTable th,.payrollSavedWeekTable td{font-size:12px;padding:5px 3px}}



.dateDisplayControl{display:block;position:relative;min-width:0;width:100%;line-height:normal}

.dateDisplayControl>input{width:100%;box-sizing:border-box;color:transparent!important;-webkit-text-fill-color:transparent!important}

.dateDisplayValue{position:absolute;inset:0 29px 0 9px;display:flex;align-items:center;pointer-events:none;color:#174b44;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden}

.dateDisplayControl:focus-within>input{color:#174b44!important;-webkit-text-fill-color:#174b44!important}

.dateDisplayControl:focus-within>.dateDisplayValue{visibility:hidden}

.dateDisplayDisabled{opacity:.65}

.payrollHours .payrollDayName,.payrollHours .payrollDayDate{display:block;line-height:1.35;white-space:nowrap}

.payrollHours .payrollDayName{font-size:12px;color:#254c46;font-weight:800}

.payrollHours .payrollDayDate{font-size:12px;color:#3b5d56;margin:3px 0 5px}

#payroll .payrollTop label,#payroll .payrollQuick label,#payroll .payrollSettings label{font-size:14px;font-weight:700;color:#204c42}

#payroll .payrollSummaryTable th,#payroll .payrollSummaryTable td{font-size:14px;color:#20483f}

#payroll .payrollTop input,#payroll .payrollQuick input,#payroll .payrollHours input,#payroll .payrollSettings input,#payroll .payrollSettings select{font-size:16px;font-weight:650;color:#19463d}

@media(max-width:650px){.payrollHours .payrollDayName,.payrollHours .payrollDayDate{font-size:11px;white-space:normal}.payrollHours .payrollDayDate{min-height:2.7em}#payroll .payrollSummaryTable th,#payroll .payrollSummaryTable td{font-size:13px}}



@media print{.dateDisplayControl:focus-within>.dateDisplayValue{visibility:visible}.dateDisplayControl:focus-within>input{color:transparent!important;-webkit-text-fill-color:transparent!important}}



.weekendEntryScroll{overflow-x:auto;width:100%;margin:10px 0}

.weekendEntryTable{border-collapse:collapse;width:100%;min-width:690px;table-layout:fixed}

.weekendEntryTable th,.weekendEntryTable td{border:1px solid #b8ceda;padding:5px;font-size:13px;text-align:center;vertical-align:middle}

.weekendEntryTable th{background:#dcebf2;color:#194f6a}.weekendEntryTable th:first-child{width:24%}.weekendEntryTable th:last-child{width:7%}

.weekendEntryTable input,.weekendEntryTable select{width:100%;min-width:0;font-size:14px;padding:5px 3px;min-height:34px;box-sizing:border-box}.weekendEntryTable input{text-align:center}

.weekendEntryTable button{font-size:11px;padding:4px;min-height:28px}.weekendEntryTable output{font-weight:800}.weekendEntryTable small{display:block;font-size:11px}



.loanEditorHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}.loanEditorHead h3{font-size:16px;margin:0}

.loanClosePreview{font-size:13px;font-weight:800;background:#deebf5;color:#184e73;border:1px solid #80abc8;padding:7px 12px;white-space:nowrap}#loanPrintClose{display:block;margin:12px 0 5px auto}#loanPrintClose[hidden]{display:none}

.loanScheduleScroll{overflow-x:auto;max-width:100%}.loanScheduleTable{border-collapse:collapse;width:100%;min-width:600px;table-layout:fixed;margin:10px 0}.loanScheduleTable th,.loanScheduleTable td{border:1px solid #b8ced8;padding:6px;text-align:center;font-size:13px;vertical-align:middle}.loanScheduleTable th{background:#dcebf2;color:#184d68}.loanScheduleTable th:first-child{width:6%}.loanScheduleTable th:nth-child(2){width:24%}.loanScheduleTable th:last-child{width:23%}.loanScheduleTable input{width:100%;min-width:0;box-sizing:border-box;font-size:15px;padding:6px 4px;text-align:center}.loanRowActions{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.loanRowActions button{font-size:11px;padding:4px 6px;min-height:28px}.loanScheduleTable output{font-weight:750}.loanRowActions details{font-size:12px;width:100%}

@media print{.loanEditorHead,.loanClosePreview{display:none!important}}



.loanHistoryScroll{overflow-x:auto;max-width:100%;margin-top:12px}.loanHistoryTable{width:100%;border-collapse:collapse;table-layout:fixed;min-width:480px}.loanHistoryTable th,.loanHistoryTable td{border:1px solid #b8ced8;padding:7px 5px;font-size:13px;text-align:center;vertical-align:middle;overflow-wrap:anywhere}.loanHistoryTable th{background:#deedf3;color:#194d68}.loanHistoryTable th:first-child{width:26%}.loanHistoryTable td:first-child{text-align:left;font-weight:750}.loanHistoryTable td:nth-child(4){font-weight:800}.loanHistoryTable button{font-size:12px;padding:5px 7px;min-height:30px;white-space:nowrap}



#loanPeriodEstimate{display:block;font-size:13px;line-height:1.5;color:#245947;font-weight:700;margin-top:5px}.loanBottomNote{display:block;margin:12px 0}.loanBottomNote input{width:100%;box-sizing:border-box}



.loanSettledNotice{margin-top:14px;border:2px solid #467b66;padding:10px;text-align:center;color:#215a43}.loanSettledNotice strong{font-size:17px}.loanSettledNotice p{margin:5px 0;font-weight:700}



.companyContracts>summary{font-size:16px;font-weight:800;background:#dcebf2;color:#194f6a;padding:10px;border-radius:5px;cursor:pointer}.companyContracts[open]>summary{margin-bottom:12px}.contractControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.companyContracts textarea{width:100%;box-sizing:border-box;font-size:15px;line-height:1.55;margin:6px 0}.companyContracts button{font-size:13px;padding:7px 10px}.companyContracts #contractRecords button{display:block;width:100%;text-align:left;margin:5px 0}.contractPaperHost:has(.contractPaper){position:relative;padding-top:48px;background:#fff;border:1px solid #bfd2cc;border-radius:8px}.contractPreviewClose{position:absolute;right:12px;top:10px;background:#e0edf7;color:#174e75;font-weight:800}.contractPaper{padding:24px;max-width:800px;margin:auto;background:white;color:#111;font:14px/1.6 Arial,sans-serif}.contractPaper h2{text-align:center;font-size:20px}.contractText{white-space:pre-wrap;overflow-wrap:anywhere}

@page contractSheet{size:A4 portrait;margin:17mm}

@media print{body.printCompanyContract aside,body.printCompanyContract main>header,body.printCompanyContract #notice,body.printCompanyContract main>section:not(#employees),body.printCompanyContract #employees>:not(#contractPaperHost),body.printCompanyContract .contractPreviewClose{display:none!important}body.printCompanyContract,body.printCompanyContract main,body.printCompanyContract #employees,body.printCompanyContract #contractPaperHost{display:block!important;padding:0!important;margin:0!important;width:auto!important;max-width:none!important;border:0!important}body.printCompanyContract .contractPaper{page:contractSheet;padding:0;max-width:none;font-size:11pt}}

@media(max-width:650px){.contractControls{grid-template-columns:1fr}.contractPaper{padding:14px}}



/* Keep every station visible; mark the active one without hiding its label. */

.editorStationSwitcher button[aria-pressed="true"]{background:#d9eaf7!important;border:2px solid #2f6c91!important;color:#123f5b!important;box-shadow:inset 0 -3px 0 #2f6c91;font-weight:800}

.stationDocumentUpload{flex:0 1 auto;min-width:0;max-width:290px}.stationDocumentUpload .receiptarea{margin:0;padding:0;border:0}.stationDocumentUpload .receiptUpload{font-size:13px!important;padding:8px 10px!important;white-space:nowrap}.stationDocumentUpload .receiptarea>small{font-size:11px;line-height:1.3;display:block;margin:4px 0}.stationDocumentUpload .receiptgallery:empty{display:none}.stationDocumentUpload .receiptgallery{max-height:150px;overflow:auto}.stationDocumentUpload .receiptthumb img{max-width:65px;max-height:65px}.stationDocumentUpload .receiptcard{max-width:110px}

@media(max-width:600px){.stationDocumentUpload{max-width:100%;flex-basis:100%}.stationDocumentUpload .receiptUpload{font-size:12px!important}.editorStationSwitcher{gap:6px}.editorStationSwitcher button{padding:7px 6px!important}}



.stationDocumentUpload .receiptUpload{position:relative;overflow:hidden;display:inline-flex;align-items:center}.stationDocumentUpload .receiptUpload input[type=file]{position:absolute!important;inset:0!important;opacity:0!important;cursor:pointer;width:100%!important;height:100%!important}.stationDocumentDetails{margin:8px 0 12px}.stationDocumentDetails:not(:has(.receiptcard)){display:none}.stationDocumentDetails summary{color:#235a72;font-weight:700;cursor:pointer}.stationDocumentDetails .receiptgallery{max-height:280px;overflow:auto}.stationDocumentDetails .receiptthumb img{max-width:110px;max-height:100px}.stationDocumentDetails .receiptcard{max-width:160px}.stationDocumentUpload{max-width:220px}



#ownerActivityButton{font-size:13px;padding:9px 10px;text-align:center;background:#e2eef5;color:#163e59;border-color:#a8c3d6}.ownerActivityDialog{width:min(1180px,96vw);max-width:96vw;max-height:92vh;border:1px solid #b6cbd4;border-radius:12px;padding:18px;color:#183d3e}.ownerActivityDialog::backdrop{background:#12282d80}.ownerActivityDialog>.sectionhead{position:sticky;top:0;background:#fff;z-index:2;align-items:center}.ownerActivityDialog .sectionhead h2{margin:0}.ownerActivityDialog .sectionhead button{font-weight:700}.ownerActivityDialog table{width:100%;border-collapse:collapse}.ownerActivityDialog th{background:#deedf4}.ownerActivityDialog th,.ownerActivityDialog td{border:1px solid #bfd0d8;padding:8px;vertical-align:top;font-size:13px;overflow-wrap:anywhere}.ownerActivityDialog td:nth-child(1){white-space:nowrap}.ownerActivityDialog td:nth-child(5){min-width:260px}.ownerActivityDialog details summary{cursor:pointer;font-weight:700;color:#245772}.ownerActivityDialog details td{white-space:pre-wrap;min-width:90px;max-width:350px}.ownerActivityTableWrap{overflow:auto}.ownerActivityDialog .toolbar input{max-width:190px}.ownerActivityDialog>p{margin:8px 0}@media(max-width:600px){.ownerActivityDialog{padding:10px}.ownerActivityDialog>.sectionhead{display:flex;justify-content:space-between;gap:8px}.ownerActivityDialog h2{font-size:18px!important}.ownerActivityDialog td,.ownerActivityDialog th{font-size:12px;padding:6px}}



.stationHeaderAligned{display:grid!important;grid-template-columns:minmax(220px,1fr) 175px minmax(180px,240px);gap:12px!important;align-items:end!important}.stationHeaderAligned .stationHeading{margin:0!important;min-width:0;line-height:1.35!important}.stationHeadingLabel,.stationHeadingName{display:block}.stationHeadingName{margin-top:4px;color:#164d70;font-size:1em;font-weight:800;white-space:nowrap}.stationHeaderAligned .stationDocumentUpload{width:100%;max-width:none;min-width:0}.stationUploadLabel{display:block;font-size:12px;font-weight:700;color:#28514b;margin-bottom:6px}.stationHeaderAligned .stationHistoryPicker{min-width:0;max-width:none;width:100%;margin:0!important;gap:6px}.stationHeaderAligned .stationDocumentUpload .receiptUpload,.stationHeaderAligned .stationHistoryPicker select{width:100%;height:42px;display:flex;align-items:center;justify-content:center;padding:8px!important;font-size:13px!important}.stationHeaderAligned .stationHistoryPicker{font-size:12px!important}

@media(max-width:1000px){.stationHeaderAligned{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stationHeaderAligned .stationHeading{grid-column:1/-1}.stationHeaderAligned .stationDocumentUpload{grid-column:1;grid-row:2}.stationHeaderAligned .stationHistoryPicker{grid-column:2;grid-row:2}.stationHeaderAligned .stationHeadingName{white-space:normal}}



.stationHeaderAligned #reviewNote:empty{display:none}.stationHeaderAligned #reviewNote:not(:empty){grid-column:1/-1;grid-row:2}.stationHeaderAligned .stationHeading{grid-column:1;grid-row:1}.stationHeaderAligned .stationDocumentUpload{grid-column:2;grid-row:1}.stationHeaderAligned .stationHistoryPicker{grid-column:3;grid-row:1}@media(max-width:1000px){.stationHeaderAligned .stationHeading{grid-column:1/-1;grid-row:1}.stationHeaderAligned .stationDocumentUpload{grid-column:1;grid-row:2}.stationHeaderAligned .stationHistoryPicker{grid-column:2;grid-row:2}.stationHeaderAligned #reviewNote:not(:empty){grid-row:3}}



.stationFloatCashInRow th{width:25%}.stationFloatCashInRow td{width:25%}.stationFundingHint{display:block;font-size:12px;color:#49625d;margin-top:6px;line-height:1.5}.stationFloatCashInRow label{min-width:0}.stationFloatCashInRow input{min-width:0;text-align:center!important}@media(max-width:600px){.stationFloatCashInRow th{font-size:12px!important;padding:6px!important}.stationFloatCashInRow td{padding:5px!important}.stationFloatCashInRow input{font-size:16px!important;padding:8px 4px!important}.stationFundingHint{font-size:11px}}



/* Daily date and cash-balance labels: a modest increase in size and contrast. */

:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader button{font-size:17px!important;font-weight:750!important;color:#123f46!important;line-height:1.5!important}#bankSummary .batchTools .pendingDayHeader>button{font-size:17px!important;font-weight:750!important;color:#123f46!important}@media(max-width:600px){:is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader button,#bankSummary .batchTools .pendingDayHeader>button{font-size:16px!important}}



#bankSummary #pendingBatchDates .pendingDayCard{max-width:620px;padding:9px 11px;margin:8px 0}#bankSummary #pendingBatchDates .pendingDayHeader>input{width:20px!important;height:20px!important;flex:0 0 20px;margin:0!important}#bankSummary #pendingBatchDates .pendingDayContent{padding-top:6px}.pendingCashTable{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}.pendingCashTable th,.pendingCashTable td{border:1px solid #c7d8dc;padding:5px 8px!important;font-size:14px!important;line-height:1.35;vertical-align:middle}.pendingCashTable thead th{background:#dcecf3;color:#194b63;text-align:left}.pendingCashTable thead th:first-child{width:15%}.pendingCashTable thead th:nth-child(2){width:55%}.pendingCashTable thead th:last-child{width:30%;text-align:right}.pendingCashTable tbody th{font-weight:600;text-align:left}.pendingCashTable tbody th[scope=rowgroup]{text-align:center;font-weight:750}.pendingCashTable td{text-align:right;font-weight:750!important;white-space:nowrap}.pendingCashTable-income th[scope=rowgroup]{background:#e7f1f8;color:#24536e}.pendingCashTable-expense th[scope=rowgroup]{background:#fcf0e6;color:#855232}.pendingCashTable-balance th,.pendingCashTable-balance td{background:#eaf4ed;color:#164f3d;font-weight:750!important}#bankSummary .batchTools .pendingDayContent>button{display:block;width:auto;margin:7px 0 0 auto;padding:6px 13px;font-size:13px}@media(max-width:600px){.pendingCashTable th,.pendingCashTable td{font-size:13px!important;padding:5px 6px!important}#bankSummary #pendingBatchDates .pendingDayCard{padding:8px}}



#bankSummary #pendingBatchDates .pendingDayCard{max-width:480px!important}#bankSummary #pendingBatchDates table.pendingCashTable{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important}



#bankSummary .pendingRange{display:block;width:100%;flex-basis:100%;max-width:480px;border:1px solid #b9ccd3;border-radius:7px;background:#fff;margin:8px 0 5px;padding:0;align-self:stretch}#bankSummary .pendingRange>summary{padding:10px 12px;font-size:14px;font-weight:700;color:#21546a;cursor:pointer}.pendingRangeOptions{border-top:1px solid #d7e2e5;padding:7px;max-height:250px;overflow-y:auto}.pendingRangeOption{display:flex!important;flex-direction:row!important;gap:9px;align-items:center;padding:8px 6px;font-size:14px}.pendingRangeOption input{width:18px!important;height:18px!important;flex:0 0 18px;margin:0!important}.pendingRangeOptions button{padding:6px 10px;margin:5px}#bankSummary #pendingBatchDates .pendingDayCard{max-width:480px!important;padding:5px 9px!important;margin:6px 0!important}#bankSummary #pendingBatchDates .pendingDayHeader>button{padding:5px 0!important;min-height:32px;font-size:15px!important;line-height:1.4!important}#bankSummary :is(#bankRows,#bankOlderRows) tr.bankDayRow{max-width:480px!important;padding:6px 11px!important;margin:6px 0!important}#bankSummary :is(#bankRows,#bankOlderRows) td.bankDayHeader button{font-size:16px!important;padding:6px 0!important}#bankSummary .batchTools #pendingBatchPicker{width:100%;max-width:480px}



#bankSummary #pendingDateRange .pendingRangeOptions{width:100%;max-width:100%;min-width:0;overflow-x:hidden;box-sizing:border-box}#bankSummary #pendingDateRange .pendingRangeOption{min-width:0!important;max-width:100%;width:100%!important}#bankSummary #pendingDateRange .pendingRangeOption input{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important;padding:0!important}



/* Consistent daily-report panel and control widths. */

#bankSummary>.card{width:100%!important;max-width:1100px!important;box-sizing:border-box}#bankSummary .batchTools .toolbar{width:100%;min-width:0}#bankSummary .batchTools .toolbar>label:has(#batchSettleDate){width:100%;max-width:none;flex-basis:100%}#bankSummary #pendingDateRange,#bankSummary .batchTools #pendingBatchPicker,#bankSummary #pendingBatchDates,#bankSummary #pendingBatchDates .pendingDayCard{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}#bankSummary :is(#bankRows,#bankOlderRows) tr.bankDayRow{width:100%!important;max-width:100%!important;box-sizing:border-box}#bankSummary .pendingDayHeader{min-width:0}#bankSummary #pendingBatchDates .pendingDayHeader>button,#bankSummary :is(#bankRows,#bankOlderRows) td.bankDayHeader button{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}#bankSummary #bankRows,#bankSummary #bankOlderRows{width:100%}#bankSummary #pendingBatchDates{overflow-x:hidden}



#batchManagement>.toolbar{gap:12px}#batchManagement #batchBackDaily,#batchManagement #batchBackList{font-size:18px!important;font-weight:750!important;padding:13px 18px!important;min-height:46px}#batchManagement .batchHistoryItem>summary>strong{font-size:20px!important}#batchManagement .batchHistoryAmounts small{font-size:15px!important;font-weight:650}#batchManagement .batchHistoryAmounts span>span{font-size:21px!important;font-weight:750}#batchManagement .batchHistoryDetails{font-size:15px;line-height:1.6}#batchManagement .dayDepositUpload{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;font-size:14px!important;padding:8px 11px!important;margin-top:10px;white-space:normal}#batchManagement .dayDepositUpload input[type=file]{position:absolute!important;inset:0!important;opacity:0!important;width:100%!important;height:100%!important;cursor:pointer}.dayDepositReceipts{padding:10px 0;border-bottom:1px solid #dce5df;margin-bottom:10px}.dayDepositReceipts h3{font-size:16px;margin:0 0 8px}.dayDepositReceipts .receiptgallery{display:flex;flex-wrap:wrap;gap:8px}.dayDepositReceipts .receiptthumb img{max-width:120px;max-height:110px}.dayDepositReceipts>.primary{font-size:14px;padding:8px 12px}.dayDepositReceipts .receiptarea{margin-top:8px}#batchManagement .batchHistoryItem .dayDepositUpload{grid-column:1/-1;justify-self:start}@media(max-width:600px){#batchManagement #batchBackDaily,#batchManagement #batchBackList{font-size:16px!important;padding:10px 12px!important}#batchManagement .batchHistoryAmounts small{font-size:13px!important}#batchManagement .batchHistoryAmounts span>span{font-size:18px!important}}



/* Internal cash ledger: compact field tables and visibly separate cash flows. */

#forex>.card:first-child{max-width:1100px}

#fxForm .fxInputTable{width:100%;table-layout:fixed;border-collapse:collapse}

#fxForm .fxInputTable td{padding:0;border:1px solid #b7cdd4}

#fxForm .fxInputTable tr:has(>td>[hidden]){display:none}

#fxForm .fxInputTable label{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:7px 10px;background:linear-gradient(to right,#edf4f2 220px,#fff 220px);font-size:16px;font-weight:650}

#fxForm .fxInputTable label[hidden]{display:none}

#fxForm .fxInputTable input,#fxForm .fxInputTable select{width:100%;min-width:0;margin:0;font-size:16px;min-height:38px}

#fxForm .fxInputTable #fxPhotoDisclosure{padding:9px 10px;margin:0}

.fxEntryModes{margin:10px 0}.fxEntryModes button[aria-pressed=true]{background:#17654f;color:white;border-color:#17654f}

.fxIncomeRecords h3,.fxExpenseRecords h3{font-size:17px;margin:12px 0 0;padding:8px 10px;background:#e4f2e8;color:#194d32}

.fxExpenseRecords h3{background:#fff0e5;color:#783b20}

#forex .fxDayGroup table{font-size:15px}#forex .fxDayGroup td{padding:8px}

@media(max-width:600px){#fxForm .fxInputTable label{grid-template-columns:110px minmax(0,1fr);gap:8px;padding:6px 8px;font-size:14px;background:linear-gradient(to right,#edf4f2 118px,#fff 118px)}#fxForm .fxInputTable input,#fxForm .fxInputTable select{font-size:16px}#forex .fxDayGroup table{min-width:760px}}



.fxEntrySummary{margin-top:16px}.fxEntrySummary h3{font-size:17px;margin:0 0 10px}.fxEntrySummary table{width:100%;font-size:16px}.fxEntrySummary tbody tr:first-child{background:#edf7ef}.fxEntrySummary tbody tr:last-child{background:#fff3e8}.fxEntrySummary small{display:block;margin-top:8px}#fxForm>.toolbar{flex-wrap:wrap;gap:8px}



#forex .fxDayGroup{padding:12px;margin-bottom:12px}

.fxDaySummary table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px!important}

.fxDaySummary th,.fxDaySummary td{border:1px solid #bdd0d5;padding:7px 9px!important;overflow-wrap:anywhere}

.fxDaySummary th{width:25%;background:#eef4f3;text-align:left;font-weight:650}

.fxDaySummary td{width:25%;text-align:center;background:white;font-weight:700}

.fxDaySummary .fxDateRow th,.fxDaySummary .fxDateRow td{background:#dceaf1;color:#174a60}

.fxDaySummary .fxFlowRow th:first-child,.fxDaySummary .fxFlowRow td:nth-child(2){background:#e6f3e8;color:#225532}

.fxDaySummary .fxFlowRow th:nth-child(3),.fxDaySummary .fxFlowRow td:nth-child(4){background:#fff0e5;color:#7a3c20}

#fxSaveNext{background:#17654f;color:#fff;border-color:#17654f}

@media(max-width:600px){.fxDaySummary th,.fxDaySummary td{font-size:13px;padding:6px!important}}



#fxForm .fxInputTable label[hidden]{display:none!important}



#fxForm .fxRecordFields{border:0;padding:0;margin:0;min-width:0}

#fxForm .fxRecordFields:disabled input,#fxForm .fxRecordFields:disabled select{opacity:1;color:#36584f;background:#f1f4f3;cursor:default}

.fxRecordBanner{border:2px solid #c08b32;background:#fff6df;color:#593c0e;padding:12px 14px;border-radius:8px;margin:12px 0}

.fxRecordBanner>strong{display:block;font-size:19px;margin-bottom:5px}.fxRecordBanner>span{display:block;font-size:14px}.fxRecordBanner .toolbar{margin:9px 0 0;gap:8px}.fxRecordBanner button{font-size:15px;font-weight:700}



#forex .fxDaySummary .fxDateRow td:nth-child(2){font-size:21px;font-weight:800;color:#12495b}

.fxPastDetails{margin-top:10px}.fxPastDetails>summary{font-size:15px;font-weight:700;color:#24576b;background:#edf3f6;padding:9px 11px;border:1px solid #bdd0d5;border-radius:5px;cursor:pointer}

@media(max-width:600px){#forex .fxDaySummary .fxDateRow td:nth-child(2){font-size:18px}}



/* Readable internal ledger text, scoped to this page. */

#forex{color:#123e39;font-size:17px;font-weight:650}

#forex table,#forex .fxDayGroup table,#forex .fxDaySummary table{font-size:17px!important}

#forex td,#forex th{color:#123e39;font-weight:700;line-height:1.5}

#forex small,#forex .muted,#forex .fxWalletCaption{font-size:15px!important;color:#355850;font-weight:650;line-height:1.5}

#forex .fxInputTable label{font-size:17px!important;font-weight:750}

#forex input,#forex select,#forex button,#forex .button,#forex summary{font-size:17px!important;font-weight:700}

#forex .fxWalletCards .stat small{font-size:16px!important}#forex .fxWalletCards .stat strong{font-size:24px!important;font-weight:800}

#forex .fxDaySummary .fxDateRow td:nth-child(2){font-size:23px!important;font-weight:800}

#forex h3,#forex .fxIncomeRecords h3,#forex .fxExpenseRecords h3{font-size:19px;font-weight:800}

@media(max-width:600px){#forex{font-size:16px}#forex table,#forex .fxDayGroup table,#forex .fxDaySummary table{font-size:16px!important}#forex .fxInputTable label,#forex button,#forex .button,#forex summary{font-size:16px!important}#forex small,#forex .muted,#forex .fxWalletCaption{font-size:14px!important}#forex .fxWalletCards .stat small{font-size:14px!important}#forex .fxWalletCards .stat strong{font-size:21px!important}#forex .fxDaySummary .fxDateRow td:nth-child(2){font-size:20px!important}}



/* Let combined details flow naturally instead of forcing each piece onto a line. */

#forex .fxIncomeRecords table,#forex .fxExpenseRecords table{width:100%;table-layout:fixed;min-width:0}

#forex .fxIncomeRecords th:first-child,#forex .fxExpenseRecords th:first-child{width:64%}

#forex .fxIncomeRecords th:nth-child(2),#forex .fxExpenseRecords th:nth-child(2){width:23%}

#forex .fxIncomeRecords th:nth-child(3),#forex .fxExpenseRecords th:nth-child(3){width:13%}

#forex .fxCombinedDetail>strong,#forex .fxCombinedDetail>div,#forex .fxCombinedDetail>small{display:inline!important;line-height:1.55}

#forex .fxCombinedDetail>strong~div:before,#forex .fxCombinedDetail>strong~small:before{content:' · ';color:#68837a}

#forex .fxCombinedDetail{overflow-wrap:anywhere;vertical-align:middle}

#forex .fxCompactActions>small{display:none!important}

#forex .fxCompactActions button{margin:0;padding:5px 8px;white-space:nowrap}

#forex .fxIncomeRecords td:nth-child(2),#forex .fxExpenseRecords td:nth-child(2){white-space:nowrap;vertical-align:middle}

@media(max-width:600px){#forex .fxIncomeRecords table,#forex .fxExpenseRecords table{min-width:540px}}



/* Daily report cards use the disclosure's font size throughout. */

#forex .fxDayGroup{--fx-report-font:17px}

#forex .fxDayGroup table,#forex .fxDayGroup th,#forex .fxDayGroup td,#forex .fxDayGroup strong,#forex .fxDayGroup small,#forex .fxDayGroup h3,#forex .fxDayGroup button,#forex .fxDayGroup a,#forex .fxDayGroup summary,#forex .fxDaySummary .fxDateRow td:nth-child(2){font-size:var(--fx-report-font)!important;line-height:1.45;font-weight:700}

#forex .fxDaySummary .fxDateRow td:nth-child(2){white-space:nowrap;overflow-wrap:normal}

@media(max-width:600px){#forex .fxDayGroup{--fx-report-font:16px}}



#forex .fxDayGroup{--fx-report-font:16px}

#forex .fxEntrySummary,#forex .fxEntrySummary table,#forex .fxEntrySummary th,#forex .fxEntrySummary td,#forex .fxEntrySummary h3,#forex .fxEntrySummary small{font-size:16px!important;line-height:1.45;font-weight:700}

#forex .fxEntrySummary h3{white-space:normal}

@media(max-width:600px){#forex .fxDayGroup{--fx-report-font:15px}#forex .fxEntrySummary,#forex .fxEntrySummary table,#forex .fxEntrySummary th,#forex .fxEntrySummary td,#forex .fxEntrySummary h3,#forex .fxEntrySummary small{font-size:15px!important}}



#forex .fxDaySummary table{min-width:0!important;width:100%}

#forex .fxDaySummary .fxDateRow th:first-child{width:16%}

#forex .fxDaySummary .fxDateRow td:nth-child(2){width:34%}

#forex .fxDaySummary .fxDateRow th:nth-child(3),#forex .fxDaySummary .fxDateRow td:nth-child(4){width:25%}



#forex .fxDayGroup{--fx-report-font:15px}

#forex .fxEntrySummary,#forex .fxEntrySummary table,#forex .fxEntrySummary th,#forex .fxEntrySummary td,#forex .fxEntrySummary h3,#forex .fxEntrySummary small{font-size:15px!important}

@media(max-width:600px){#forex .fxDayGroup{--fx-report-font:14px}#forex .fxEntrySummary,#forex .fxEntrySummary table,#forex .fxEntrySummary th,#forex .fxEntrySummary td,#forex .fxEntrySummary h3,#forex .fxEntrySummary small{font-size:14px!important}}



.payrollPayDatePanel{display:flex;flex-wrap:wrap;align-items:end;gap:8px 12px;margin:10px 0;padding:10px;background:#edf4f8;border:1px solid #b9cfd8;border-radius:6px}.payrollPayDatePanel label{margin:0;min-width:220px}.payrollPayDatePanel small{display:block;width:100%;font-size:14px;color:#284f58}.payrollPayDatePrint{font-weight:700;text-align:center}



/* A small readability increase for the payroll screen; printed layouts retain their sizes. */

@media screen{

 #payroll{color:#173e37;font-weight:650}

 #payroll label,#payroll summary,#payroll .payrollPayDatePanel small{font-size:15px;font-weight:700;color:#173e37}

 #payroll table th,#payroll table td{font-size:15px;font-weight:650;color:#173e37;line-height:1.45}

 #payroll table th{font-weight:800}

 #payroll input,#payroll select{font-size:17px;font-weight:700;color:#173e37}

 #payroll .payrollDayName,#payroll .payrollDayDate{font-size:13px;font-weight:750;color:#173e37}

 #payroll .payrollWeekPreviewTable th,#payroll .payrollWeekPreviewTable td{font-size:12px}

 #payroll .payrollSlip th,#payroll .payrollSlip td{font-size:13px}

 #payroll .payrollActions button{font-weight:750}

}

@media screen and (max-width:650px){

 #payroll label,#payroll summary,#payroll .payrollPayDatePanel small,#payroll table th,#payroll table td{font-size:14px}

 #payroll input,#payroll select{font-size:16px}

 #payroll .payrollDayName,#payroll .payrollDayDate{font-size:12px}

 #payroll .payrollWeekPreviewTable th,#payroll .payrollWeekPreviewTable td{font-size:12px}

 #payroll .payrollSlip th,#payroll .payrollSlip td{font-size:13px}

}



@media screen and (max-width:650px){

 #payroll .payrollTop{grid-template-columns:minmax(0,1fr)}

 #payroll .payrollTop label,#payroll .payrollTop input{min-width:0;width:100%}

 #payroll .payrollHours{grid-template-columns:repeat(3,minmax(0,1fr))}

 #payroll .payrollHours label,#payroll .payrollHours input{min-width:0}

 #payroll .payrollDayDate{white-space:nowrap;min-height:0}

}



@media screen{#payroll .payrollAttendance{display:block;width:100%;min-width:0;font-size:12px;font-weight:650;margin-top:5px;padding:6px 2px;min-height:34px;color:#17463e;background:#edf4f7}#payroll .payrollHours label{align-content:start}}



@media screen{

 #payroll .payrollHours>label{display:grid;grid-template-rows:minmax(34px,auto) 20px 36px 34px;align-content:start;align-items:start;gap:4px}

 #payroll .payrollHours .payrollDayName{white-space:normal;overflow-wrap:normal;line-height:1.3;min-height:34px}

 #payroll .payrollHours .payrollDayDate{margin:0;min-height:0;line-height:20px;white-space:nowrap}

 #payroll .payrollHours input,#payroll .payrollHours select{margin:0;height:34px}

}



.cashierHomeNav{display:flex;align-items:center;margin:0 0 12px}.cashierHomeNav button{font-size:16px;font-weight:750;padding:9px 14px;background:#fff;color:#155747;border:1px solid #9ebdb1;border-radius:7px}@media print{.cashierHomeNav{display:none!important}}



#payroll .payrollQuick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}

#payroll .payrollQuick>label,#payroll .payrollPresetCell{min-width:0}

#payroll .payrollQuick input{width:100%;min-width:0;height:38px;padding:7px 8px;font-size:16px}

#payroll .payrollPresetCell label{margin:0;display:grid;gap:5px}

#payroll .payrollPresetCell .payrollPresetCount{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;margin-top:6px;font-size:13px}

#payroll .payrollPresetCount input{height:32px;font-size:15px}

@media(max-width:650px){#payroll .payrollQuick{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}



#payroll .payrollRowEdit{display:inline-block;float:right;width:auto;margin:0 0 0 6px;padding:2px 6px;min-height:24px;font-size:12px;font-weight:700;white-space:nowrap}

.payrollEntryEditBar{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#e7f1fa;border:1px solid #9dbed4;border-radius:6px;padding:10px 12px;margin:10px 0;color:#17465c}

.payrollEntryEditBar strong{font-size:16px}.payrollEntryEditBar button{white-space:nowrap;font-size:15px;font-weight:750}

.payrollEntryEditBar[hidden]{display:none}

@media(max-width:600px){.payrollEntryEditBar{align-items:flex-start}.payrollEntryEditBar strong{font-size:14px}}

@media print{.payrollRowEdit,.payrollEntryEditBar{display:none!important}}



/* Payroll summary prints within one A4 landscape sheet per selected report. */

@page weeklyPayrollSheet{size:A4 landscape;margin:7mm}

@media print{

 body.printWeekPayroll,body.printWeekPayroll main,body.printWeekPayroll #payroll{min-width:0!important;width:100%!important;box-sizing:border-box!important}

 body.printWeekPayroll #payrollWeekPreviewPanel{width:275mm!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;box-sizing:border-box!important;box-shadow:none!important;background:#fff!important}

 body.printWeekPayroll #payrollWeekPreviewPanel>.toolbar{display:block!important;margin:0 0 3mm!important;padding:0!important}

 body.printWeekPayroll #payrollWeekPreviewPanel>.toolbar h2{font-size:10pt!important;line-height:1.15!important;margin:0!important}

 body.printWeekPayroll #payrollWeekPreviewPanel>p{font-size:7pt!important;line-height:1.15!important;margin:1mm 0!important}

 body.printWeekPayroll .payrollWeekPreviewScroll{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important}

 body.printWeekPayroll .payrollWeekPreviewScroll[hidden]{display:none!important}

 body.printWeekPayroll #payroll .payrollWeekPreviewTable{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;margin:0!important;font-size:var(--weekly-print-font,6.5pt)!important}

 body.printWeekPayroll #payroll .payrollWeekPreviewTable th,body.printWeekPayroll #payroll .payrollWeekPreviewTable td{width:auto!important;min-width:0!important;max-width:none!important;font-size:var(--weekly-print-font,6.5pt)!important;font-weight:500!important;line-height:1.08!important;padding:var(--weekly-print-pad,.4mm) .45mm!important;box-sizing:border-box!important;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important;border:.15mm solid #8196a0!important}

 body.printWeekPayroll #payroll .payrollWeekPreviewTable thead th{position:static!important;font-weight:750!important;white-space:normal!important;overflow-wrap:anywhere!important}

 body.printWeekPayroll #payroll .payrollWeekPreviewTable tfoot th{font-weight:800!important}

 body.printWeekPayroll [data-week-section=weekly] .payrollWeekPreviewTable th:nth-child(1){width:3%!important}

 body.printWeekPayroll [data-week-section=weekly] .payrollWeekPreviewTable th:nth-child(2){width:16%!important}

 body.printWeekPayroll [data-week-section=weekly] .payrollWeekPreviewTable th:nth-child(3){width:3%!important}

 body.printWeekPayroll [data-week-section=weekly] .payrollWeekPreviewTable td:nth-child(2){white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}

 body.printWeekPayroll [data-week-section=sunday] .payrollWeekPreviewTable th:first-child{width:24%!important}

 body.printWeekPayroll [data-week-section=sunday] .payrollWeekPreviewTable td:first-child{white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}

 body.printWeekPayroll .payrollWeekPreviewTable tr{break-inside:avoid!important;page-break-inside:avoid!important}

 body.printWeekPayroll #payroll .payrollRowEdit{display:none!important}

}



.weekendDateGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}.weekendDateGrid label{min-width:0}.weekendDateGrid input{width:100%;min-width:0}#weekendRows [data-week-custom-date]{display:block;min-width:120px;width:100%;margin-top:5px}#weekendRows [data-week-custom-date][hidden]{display:none}@media(max-width:650px){.weekendDateGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.weekendWorkDateNote{display:block;font-size:.8em;font-weight:normal;margin-top:3px}



#fxDailyTotals{display:block}#fxDailyTotals:empty{display:none}.fxActivitySummaryTable{width:100%;border-collapse:collapse;background:#fff;font-size:16px}.fxActivitySummaryTable th,.fxActivitySummaryTable td{border:1px solid #b7cfd6;padding:10px 12px;text-align:left;font-weight:600}.fxActivitySummaryTable thead{background:#dcebf1}.fxActivitySummaryTable .num{text-align:right;white-space:nowrap}.fxActivitySummaryTable .income{background:#e7f3e9}.fxActivitySummaryTable .expense{background:#fff2e8}.fxActivitySummaryTable .exchange{background:#f1f6f8}@media(max-width:600px){.fxActivitySummaryTable{font-size:14px}.fxActivitySummaryTable th,.fxActivitySummaryTable td{padding:8px}}



/* Larger cash activity summary labels and amounts. */

#fxDailyTotals .fxActivitySummaryTable th,#fxDailyTotals .fxActivitySummaryTable td{font-size:20px;line-height:1.45;padding:11px 12px}@media(max-width:600px){#fxDailyTotals .fxActivitySummaryTable th,#fxDailyTotals .fxActivitySummaryTable td{font-size:18px;padding:9px 8px}}



#fxDailyTotals .fxActivitySummaryTable{min-width:0;max-width:none;width:100%;table-layout:auto}#fxDailyTotals .fxActivitySummaryTable th,#fxDailyTotals .fxActivitySummaryTable td{font-size:20px!important;line-height:1.45!important;padding:11px 12px!important;word-break:normal;overflow-wrap:normal}#fxDailyTotals .fxActivitySummaryTable td:first-child{white-space:nowrap}@media(max-width:600px){#fxDailyTotals .fxActivitySummaryTable th,#fxDailyTotals .fxActivitySummaryTable td{font-size:18px!important;padding:9px 7px!important}#fxDailyTotals .fxActivitySummaryTable td:first-child{white-space:normal}}



/* Consistent internal ledger table typography. */

#forex{--fx-table-size:20px}#forex table th,#forex table td,#forex table label,#forex table input,#forex table select,#forex table button,#forex table .button,#forex table strong,#forex table small,#forex .fxPastDetails>summary,#forex .fxEntrySummary h3,#forex .fxIncomeRecords h3,#forex .fxExpenseRecords h3{font-size:var(--fx-table-size)!important;line-height:1.45!important;font-weight:700}#forex .fxDayGroup{--fx-report-font:var(--fx-table-size)}#forex .fxDaySummary .fxDateRow td:nth-child(2){white-space:nowrap}#forex table .num{white-space:nowrap}#forex table input,#forex table select{min-height:42px}#forex .fxInputTable label{min-width:0}#forex .fxInputTable input,#forex .fxInputTable select{width:100%;min-width:0}@media(max-width:600px){#forex{--fx-table-size:18px}#forex .fxDayGroup{--fx-report-font:var(--fx-table-size)}}



/* Reduce the internal ledger table typography by two steps. */

#forex{--fx-table-size:16px}#forex #fxDailyTotals .fxActivitySummaryTable th,#forex #fxDailyTotals .fxActivitySummaryTable td{font-size:var(--fx-table-size)!important}@media(max-width:600px){#forex{--fx-table-size:14px}}



#forex .fxWalletCards .stat:nth-child(2) small{white-space:nowrap}#forex .fxWalletCards .stat:nth-child(2) strong{display:block;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}#forex .fxWalletCards .stat:nth-child(2){overflow-x:auto}@media(max-width:600px){#forex .fxWalletCards .stat:nth-child(2) strong{font-size:clamp(14px,4.3vw,18px)!important}#forex .fxWalletCards .stat:nth-child(2) small{font-size:clamp(12px,3.5vw,14px)!important}}



#forex .fxWalletCards .stat.usLongBalance{grid-column:1/-1;overflow:visible}#forex .fxWalletCards .stat.usLongBalance strong{font-size:24px!important}@media(max-width:600px){#forex .fxWalletCards .stat.usLongBalance strong{font-size:21px!important}}



.fxProminentDate{padding:12px 14px;margin:14px 0;border:2px solid #6d9e8f;border-radius:8px;background:#edf6f1}.fxProminentDate label{display:grid;grid-template-columns:auto minmax(180px,320px);align-items:center;justify-content:start;gap:16px;font-size:18px;font-weight:750}.fxProminentDate input{min-width:0;width:100%;font-size:18px;font-weight:700}.fxProminentDate .dateDisplay{white-space:nowrap}@media(max-width:600px){.fxProminentDate label{grid-template-columns:auto minmax(0,1fr);font-size:16px}.fxProminentDate input{font-size:16px}}



#wireRecordsPanel{font-size:16px;font-weight:650}#wireRecordsPanel label,#wireRecordsPanel input,#wireRecordsPanel select,#wireRecordsPanel textarea,#wireRecordsPanel button,#wireRecordsPanel th,#wireRecordsPanel td,#wireRecordsPanel small,#wireRecordsPanel p,#wireRecordsPanel .wireAnnualInline,#wireRecordsPanel .wireAnnualInline strong{font-size:16px!important;font-weight:700!important;line-height:1.45!important}#wireRecordsPanel summary{font-size:18px!important;font-weight:750!important;line-height:1.45!important}#wireRecordsPanel>.sectionhead,#wireRecordsPanel>summary{font-size:20px!important}#wireRecordsPanel input,#wireRecordsPanel select{min-height:42px}#wireRecordsPanel .toolbar{gap:10px;flex-wrap:wrap}@media(max-width:600px){#wireRecordsPanel label,#wireRecordsPanel input,#wireRecordsPanel select,#wireRecordsPanel textarea,#wireRecordsPanel button,#wireRecordsPanel th,#wireRecordsPanel td,#wireRecordsPanel small,#wireRecordsPanel p{font-size:15px!important}}



.dailyVisiblePrint{position:absolute;left:-20000px;top:0;visibility:hidden;width:277mm;padding:0;background:white;color:#153e37;font-family:Arial,sans-serif;font-size:10px;line-height:1.2}.dailyVisiblePrint .autoReportGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dailyVisiblePrint h2{text-align:center;font-size:17px;margin:0 0 8px}.dailyVisiblePrint h3{font-size:11px;margin:4px 0}.dailyVisiblePrint table{width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:collapse}.dailyVisiblePrint th,.dailyVisiblePrint td{font-size:9px!important;line-height:1.2!important;padding:4px!important;border:1px solid #9fb7ac;overflow-wrap:anywhere}.dailyVisiblePrint details{padding:6px;margin:5px 0;border:1px solid #aec8bd;border-radius:4px;break-inside:avoid}.dailyVisiblePrint summary{display:block!important;font-size:11px!important;font-weight:700;line-height:1.25}.dailyVisiblePrint .autoReportBlock{margin-bottom:7px}.dailyVisiblePrint form{display:none!important}

@page dailyVisiblePage{size:A4 landscape;margin:8mm}

@media print{body.printDailyVisible{display:block!important;margin:0!important;padding:0!important}body.printDailyVisible>:not(#dailyVisiblePrint){display:none!important}body.printDailyVisible #dailyVisiblePrint{page:dailyVisiblePage;position:static!important;left:auto;top:auto;visibility:visible!important;display:block!important;zoom:var(--daily-print-scale,1);break-inside:avoid}body.printDailyVisible #dailyVisiblePrint summary{display:block!important}body.printDailyVisible #dailyVisiblePrint .autoReportGrid{display:grid!important;grid-template-columns:1fr 1fr!important}body.printDailyVisible #dailyVisiblePrint .monthlyPaymentPanels{display:grid!important;gap:4px}}



#wireRecordsForm{display:block}.wireEntryScroll{width:100%;max-width:100%;overflow:auto;margin-bottom:12px}.wireEntryTable{width:100%;min-width:1100px!important;max-width:none!important;table-layout:fixed;border-collapse:collapse}.wireEntryTable th,.wireEntryTable td{border:1px solid #bed1d6;vertical-align:top;padding:7px!important}.wireEntryTable th{background:#dfede7}.wireEntryTable label{display:block!important;font-size:0!important;line-height:0!important;margin:0;min-width:0}.wireEntryTable label[hidden]{display:none!important}.wireEntryTable input,.wireEntryTable select,.wireEntryTable textarea{width:100%;min-width:0;font-size:16px!important;padding:8px 6px!important}.wireEntryTable .wirePersonSearch{min-width:0}.wireEntryTable .dateDisplay,.wireEntryTable .wirePersonOptions{font-size:16px;line-height:1.4}.wireEntryTable textarea{height:45px}.wireEntryTable th:nth-child(1){width:14%}.wireEntryTable th:nth-child(2){width:19%}.wireEntryTable th:nth-child(3){width:14%}.wireEntryTable th:nth-child(4){width:11%}.wireEntryTable th:nth-child(5){width:9%}.wireEntryTable th:nth-child(6){width:12%}.wireEntryTable th:nth-child(7){width:14%}.wireEntryTable th:nth-child(8){width:7%}#wireRecordsForm[hidden]{display:none}



#wireRecordsPanel .wireEntryTable label{font-size:0!important;line-height:0!important}#wireRecordsPanel .wireEntryTable label[hidden]{display:none!important}



#wireRecordsPanel .wireEntryTable{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed}#wireRecordsPanel .wireEntryTable th,#wireRecordsPanel .wireEntryTable td{padding:4px!important;font-size:13px!important;line-height:1.3!important}#wireRecordsPanel .wireEntryTable input,#wireRecordsPanel .wireEntryTable select,#wireRecordsPanel .wireEntryTable textarea,#wireRecordsPanel .wireEntryTable button{font-size:13px!important;line-height:1.3!important;min-height:34px!important;padding:5px 4px!important}#wireRecordsPanel .wireEntryTable th:nth-child(1){width:15%}#wireRecordsPanel .wireEntryTable th:nth-child(2){width:21%}#wireRecordsPanel .wireEntryTable th:nth-child(3){width:12%}#wireRecordsPanel .wireEntryTable th:nth-child(4){width:11%}#wireRecordsPanel .wireEntryTable th:nth-child(5){width:9%}#wireRecordsPanel .wireEntryTable th:nth-child(6){width:13%}#wireRecordsPanel .wireEntryTable th:nth-child(7){width:13%}#wireRecordsPanel .wireEntryTable th:nth-child(8){width:6%}#wireRecordsPanel .wireEntryTable .dateDisplay{font-size:13px!important;white-space:nowrap}#wireRecordsPanel .wireEntryTable textarea{height:34px}#wireRecordsPanel .wireEntryScroll{overflow-x:visible}

@media(max-width:650px){#wireRecordsPanel .wireEntryTable thead{display:none}#wireRecordsPanel .wireEntryTable tbody{display:grid;gap:10px}#wireRecordsPanel .wireEntryTable tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #b9d0c6;padding:7px;border-radius:6px}#wireRecordsPanel .wireEntryTable td{display:block;border:0;min-width:0}#wireRecordsPanel .wireEntryTable td::before{display:block;font-size:12px;font-weight:700;margin-bottom:4px;content:attr(data-label)}#wireRecordsPanel .wireEntryTable td:nth-child(2){grid-column:1/-1}#wireRecordsPanel .wireEntryTable td:nth-child(7){grid-column:1/-1}#wireRecordsPanel .wireEntryTable .dateDisplay{font-size:13px!important}}



#wireRecordsPanel .wireEntryTable input,#wireRecordsPanel .wireEntryTable select,#wireRecordsPanel .wireEntryTable textarea{height:36px!important;min-height:36px!important;box-sizing:border-box}#wireRecordsPanel .wireEntryTable textarea{resize:none;overflow:auto}#wireRecordsPanel .wireEntryTable td{vertical-align:middle}#wireRecordsPanel .wireEntryTable tr[hidden]{display:none!important}



.reportChoiceLinks .reportChoiceItem{display:block;padding:0;align-self:flex-start;overflow:hidden}.reportChoiceItem>summary{cursor:pointer;padding:13px 12px;font-size:14px;font-weight:700;color:#163f34;background:#d7e8dd;line-height:1.4}.reportChoiceItem>.reportChoiceActions{display:grid;gap:8px;padding:10px}.reportChoiceItem:not([open])>.reportChoiceActions{display:none!important}.reportChoiceActions>a{display:block;text-align:center;font-size:13px;font-weight:700;padding:8px 6px;min-height:0;white-space:normal}.reportChoiceActions>.reportViewLink{background:#edf5ef}.reportChoiceItem[open]>summary{border-bottom:1px solid #b9cfc0}



#inventoryMovementEditor .inventoryEntryWrap{grid-column:1/-1;width:100%;min-width:0}#inventoryMovementEditor .inventoryEntryTable{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;border-collapse:collapse}#inventoryMovementEditor .inventoryMoveLines{display:table-row-group}#inventoryMovementEditor .inventoryMoveLine{display:table-row;border:0;padding:0}#inventoryMovementEditor .inventoryEntryTable th,#inventoryMovementEditor .inventoryEntryTable td{padding:7px!important;border:1px solid #bdd1c8;font-size:14px!important;vertical-align:middle}#inventoryMovementEditor .inventoryEntryTable th{background:#dcece3}#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:50%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:18%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(3){width:22%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(4){width:10%}#inventoryMovementEditor .inventoryEntryTable input,#inventoryMovementEditor .inventoryEntryTable select{width:100%;min-width:0;font-size:14px!important;min-height:36px;padding:6px!important}#inventoryMovementEditor .inventoryEntryTable small{font-size:13px;white-space:normal}#inventoryMovementEditor .inventoryEntryTable button{font-size:13px!important;white-space:normal;padding:5px!important}@media(max-width:600px){#inventoryMovementEditor .inventoryEntryTable th,#inventoryMovementEditor .inventoryEntryTable td{padding:4px!important;font-size:12px!important}#inventoryMovementEditor .inventoryEntryTable input,#inventoryMovementEditor .inventoryEntryTable select{font-size:12px!important}#inventoryMovementEditor .inventoryEntryTable small{font-size:11px}}



#bankIncomeForm .bankInvoiceSelectionRow td{vertical-align:top}#bankIncomeForm .bankInlineInvoices{margin:0;padding:8px;border:0;background:#f5faf7;min-width:0}#bankIncomeForm .bankInlineInvoices.bankInlineActive>summary{display:none!important}#bankIncomeForm .bankInlineInvoices .wholesaleReceiptActions{display:none!important}#bankIncomeForm .bankReferenceLabel[hidden]{display:none!important}#bankIncomeForm .bankInlineInvoices .wholesaleAllocationRow{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(85px,120px);align-items:center;gap:8px;margin:5px 0;padding:8px;border:1px solid #c1d7ca;border-radius:4px;font-size:14px!important;line-height:1.4!important;color:#173f33}#bankIncomeForm .bankInlineInvoices .wholesaleAllocationRow input[type=checkbox]{width:18px;height:18px}#bankIncomeForm .bankInlineInvoices .wholesaleAllocationRow input[type=number]{width:100%;min-width:0}#bankIncomeForm .bankInvoiceSelectionRow .workbenchTableInput[hidden]{display:none!important}@media(max-width:600px){#bankIncomeForm .bankInlineInvoices .wholesaleAllocationRow{grid-template-columns:20px minmax(0,1fr);font-size:13px!important}#bankIncomeForm .bankInlineInvoices .wholesaleAllocationRow input[type=number]{grid-column:2}}



#inventoryPanel{padding:20px!important}#inventoryPanel>h3{margin:0 0 12px!important}#inventoryPanel .inventoryCompactControls{display:flex;align-items:end;gap:10px;margin:0 0 10px!important;flex-wrap:wrap}#inventoryPanel .inventoryCompactControls>label{min-width:0!important;width:215px;margin:0!important}#inventoryPanel .inventoryCompactControls input,#inventoryPanel .inventoryCompactControls select{margin-top:4px;min-height:38px;padding:7px 10px}#inventoryPanel .inventoryAllLogsPanel{margin:0 0 10px!important;padding:7px 10px!important;max-width:none!important}#inventoryMovementEditor{display:block!important;margin:0!important}#inventoryMovementEditor[hidden]{display:none!important}#inventoryMovementEditor .inventoryEntryTable th,#inventoryMovementEditor .inventoryEntryTable td{padding:5px!important}#inventoryMovementEditor>.toolbar{margin:10px 0 12px!important;gap:8px}#inventoryPanel .inventorySearchTools{margin-top:8px!important;gap:8px}#inventoryPanel .inventoryCompactControls button{margin:0;min-height:38px}#inventoryPanel .inventoryCompactControls label{font-size:14px}@media(max-width:600px){#inventoryPanel{padding:12px!important}#inventoryPanel .inventoryCompactControls>label{width:calc(50% - 5px)}#inventoryPanel .inventoryCompactControls input{font-size:12px;min-width:0;width:100%}}



#inventoryPanel .inventoryCatalog{margin:10px 0 0;padding:0;border:1px solid #bed3c8;border-radius:6px}#inventoryPanel .inventoryCatalog>summary{padding:10px 12px;background:#e5f0e9;font-weight:700;color:#134d3e;cursor:pointer}#inventoryPanel .inventoryCatalog>.inventorySearchTools{padding:10px 12px;margin:0!important}#inventoryPanel .inventoryCatalog>#inventoryRecordEditor{margin:0 12px 12px;padding:12px;border:1px solid #9bbfaf;border-radius:5px;background:#f3f8f5}#inventoryRecordEditor>h4{grid-column:1/-1;margin:0;font-size:17px;color:#155c48}#inventoryPanel .inventoryCatalog>#coldStockLists{padding:0 12px 12px}#inventoryPanel .inventoryCatalog .inventoryStockGroup{margin:6px 0}#inventoryPanel .inventoryCatalog .inventoryTable{min-width:0!important;width:100%;table-layout:fixed}#inventoryPanel .inventoryCatalog .inventoryTable th,#inventoryPanel .inventoryCatalog .inventoryTable td{overflow-wrap:anywhere;padding:7px;font-size:14px}#inventoryPanel .inventoryCatalog .inventoryTable button{font-size:13px;padding:6px;white-space:normal}@media(max-width:600px){#inventoryPanel .inventoryCatalog>.inventorySearchTools{flex-wrap:wrap}#inventoryPanel .inventoryCatalog .inventoryTable th,#inventoryPanel .inventoryCatalog .inventoryTable td{padding:4px;font-size:12px}#inventoryPanel .inventoryCatalog .inventoryTable button{font-size:12px}}



#inventoryPanel .inventoryAllLogsPanel{margin:10px 0 0!important;padding:0!important;border:1px solid #bed3c8;border-radius:6px}#inventoryPanel .inventoryAllLogsPanel>summary{padding:10px 12px;background:#e5f0e9;font-size:14px;font-weight:700;color:#134d3e}#inventoryPanel .inventoryAllLogsPanel>div{padding:10px 12px}#inventoryPanel .inventoryAllLogsPanel>button{margin:0 12px 10px}#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:40%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:18%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(3){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(4){width:18%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(5){width:8%}.inventoryLineSpec{display:block;overflow-wrap:anywhere;font-size:13px;color:#214d3d}.inventorySpecMissing{font-weight:700;color:#9c4c08;background:#fff2df;border-radius:4px;padding:4px}@media(max-width:600px){#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:34%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:19%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(3){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(4){width:19%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(5){width:12%}.inventoryLineSpec{font-size:12px}}



#inventoryMovementEditor .inventoryRightActions{display:flex;justify-content:flex-end;width:100%;margin:8px 0 12px!important;flex-wrap:wrap}#inventoryMovementEditor .inventoryProofArea{margin:8px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inventoryProofUpload{position:relative;overflow:hidden;cursor:pointer}.inventoryProofUpload input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.inventoryProofArea .receiptgallery:empty{display:none}



#wholesaleTrackingPanel .wholesaleHistoryTools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(230px,1fr) auto;align-items:end;gap:10px;max-width:none;width:100%;margin:12px 0}#wholesaleTrackingPanel .wholesaleHistoryTools>details{min-width:0;margin:0}#wholesaleTrackingPanel .wholesaleHistoryTools>details>summary{display:list-item;padding:10px 12px;min-height:40px;box-sizing:border-box;background:#e6f0e9;border:1px solid #bfd4c8;border-radius:5px;cursor:pointer;font-size:14px;line-height:20px}#wholesaleTrackingPanel .wholesaleHistoryTools>label{display:flex;align-items:center;gap:8px;margin:0;min-width:0;white-space:nowrap;font-size:14px;font-weight:700}#wholesaleTrackingPanel .wholesaleHistoryTools>label input{flex:1;min-width:0;width:100%;height:40px;margin:0;padding:8px 10px;box-sizing:border-box;font-size:14px}#wholesaleTrackingPanel .wholesaleHistoryTools>button{align-self:end;min-height:40px;margin:0;padding:8px 14px;font-size:14px}#wholesaleTrackingPanel .wholesaleHistoryTools>details[open]{grid-column:1/-1}#wholesaleTrackingPanel .wholesaleMonthDisclosure{border:1px solid #bfd4c8;border-radius:5px;margin:10px 0}#wholesaleTrackingPanel .wholesaleMonthDisclosure>summary{padding:10px 12px;background:#e6f0e9;cursor:pointer;font-weight:700;color:#164d3e;font-size:14px}#wholesaleTrackingPanel .wholesaleMonthDisclosure>div{padding:10px 12px}@media(max-width:600px){#wholesaleTrackingPanel .wholesaleHistoryTools{grid-template-columns:minmax(0,1fr) auto;gap:8px}#wholesaleTrackingPanel .wholesaleHistoryTools>details{grid-column:1/-1}#wholesaleTrackingPanel .wholesaleHistoryTools>label{font-size:12px;gap:6px}#wholesaleTrackingPanel .wholesaleHistoryTools>label input{font-size:12px}}



#wholesaleTrackingPanel .wholesaleHistoryTools>label{flex-direction:row!important;align-items:center!important;height:40px}



#wholesaleTrackingPanel .wholesaleHistoryTools{max-width:680px;grid-template-columns:minmax(205px,1fr) minmax(220px,1fr) auto;gap:8px;margin:10px 0}#wholesaleTrackingPanel .wholesaleHistoryTools>details>summary{padding:7px 9px;min-height:32px;font-size:12px;line-height:18px}#wholesaleTrackingPanel .wholesaleHistoryTools>label{font-size:12px;height:32px;gap:6px}#wholesaleTrackingPanel .wholesaleHistoryTools>label input{height:32px;font-size:12px;padding:6px 8px}#wholesaleTrackingPanel .wholesaleHistoryTools>button{min-height:32px;height:32px;font-size:12px;padding:6px 10px}#wholesaleTrackingPanel .wholesaleMonthDisclosure{width:100%;max-width:680px;box-sizing:border-box}#wholesaleTrackingPanel .wholesaleMonthDisclosure>summary{padding:7px 9px;font-size:12px;line-height:18px}@media(max-width:600px){#wholesaleTrackingPanel .wholesaleHistoryTools{grid-template-columns:minmax(0,1fr) auto}}



#wholesaleNumberManagement{width:100%;max-width:680px;box-sizing:border-box;padding:10px 0;border:0}#wholesaleNumberManagement>.wholesaleTrackingForm{margin:8px 0;width:100%;box-sizing:border-box}#wholesaleNumberManagement>.wholesaleTrackingForm>summary{font-size:12px;padding:8px 9px}#wholesaleNumberManagement .wholesaleBookLine{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(100px,150px);align-items:center;gap:10px;padding:9px!important;margin:6px 0!important;border:1px solid #c3d8cb;border-radius:5px;background:#eef6f0;font-size:12px}#wholesaleNumberManagement .wholesaleBookInfo{display:grid;gap:4px;min-width:0}#wholesaleNumberManagement .wholesaleBookInfo strong{font-size:13px}#wholesaleNumberManagement .wholesaleBookInfo span,#wholesaleNumberManagement .wholesaleBookInfo small{font-size:12px;line-height:1.4}#wholesaleNumberManagement .wholesaleBookLine>button{padding:6px 8px;margin:0;font-size:12px;min-height:30px}#wholesaleNumberManagement .wholesaleBookGaps{align-self:center;font-size:12px;color:#285a43}#wholesaleNumberManagement .wholesaleBookGaps summary{font-size:12px;color:#9c4c08;cursor:pointer}#wholesaleNumberManagement .wholesaleBookGaps p{margin:4px 0;font-size:12px}@media(max-width:600px){#wholesaleNumberManagement .wholesaleBookLine{grid-template-columns:minmax(0,1fr) auto}#wholesaleNumberManagement .wholesaleBookGaps{grid-column:1/-1}}



#wholesaleNumberManagement>.wholesaleTrackingForm{padding:0!important}#wholesaleNumberManagement>.wholesaleTrackingForm>form{padding:10px}



#wholesaleNumberManagement{border:1px solid #bfd4c8;padding:0;margin:10px 0;border-radius:5px}#wholesaleNumberManagement>summary{display:list-item;padding:8px 10px;background:#e6f0e9;color:#164d3e;font-weight:700;font-size:13px;line-height:20px;cursor:pointer}#wholesaleNumberManagement>.wholesaleTrackingForm,#wholesaleNumberManagement>.wholesaleBookNotice{margin:8px!important}#wholesaleNumberManagement .wholesaleBookLine{margin:6px 8px!important}#wholesaleNumberManagement>.wholesaleTrackingForm{width:calc(100% - 16px)}



#wholesaleTrackingPanel .wholesaleDebtSearchCompact{display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;width:100%;max-width:680px;box-sizing:border-box;gap:7px;margin:8px 0 7px}#wholesaleTrackingPanel .wholesaleDebtSearchCompact>label{display:flex;flex-direction:row!important;align-items:center;gap:6px;font-size:12px;white-space:nowrap;margin:0;min-width:0;flex:0 1 auto}#wholesaleTrackingPanel .wholesaleDebtSearchCompact input{width:180px;min-width:0;max-width:100%;height:30px;min-height:30px;padding:5px 8px;font-size:12px;margin:0}#wholesaleTrackingPanel .wholesaleDebtSearchCompact>button{height:30px;min-height:30px;padding:5px 8px;font-size:12px;white-space:nowrap;margin:0}@media(max-width:600px){#wholesaleTrackingPanel .wholesaleDebtSearchCompact>label{flex:1}#wholesaleTrackingPanel .wholesaleDebtSearchCompact input{width:100%;flex:1}}



#wireRecordsPanel>summary,#wireRecordsPanel>div{width:100%;max-width:980px;box-sizing:border-box}#wireRecordsPanel #wireRecordsForm{width:100%!important;max-width:none!important}#wireRecordsPanel .wireAnnualDisclosure{margin:0 0 12px;border:1px solid #c1d5c9;border-radius:5px;max-width:480px}#wireRecordsPanel .wireAnnualDisclosure>summary{padding:7px 10px;background:#eef5f0;font-size:12px!important;line-height:18px!important;cursor:pointer}#wireRecordsPanel .wireAnnualDisclosure strong{font-size:12px!important;line-height:18px!important}#wireRecordsPanel .wireAnnualDisclosure>span{display:block;padding:6px}#wireRecordsPanel .wireAnnualDisclosure table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse}#wireRecordsPanel .wireAnnualDisclosure th,#wireRecordsPanel .wireAnnualDisclosure td{padding:5px 8px!important;font-size:11px!important;line-height:1.35!important}#wireRecordsPanel .wireAnnualDisclosure td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}#wireRecordsPanel .wireAnnualDisclosure tbody tr:last-child{font-weight:700;background:#e6f0e9}



#wireRecordsPanel .wireUnifiedActions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:520px;max-width:100%;gap:6px;margin:12px 0}#wireRecordsPanel .wireUnifiedActions>button{width:100%;height:34px;min-height:34px;padding:5px 6px!important;margin:0;font-size:12px!important;line-height:20px!important;white-space:nowrap;text-align:center}#wireMonthBrowse>summary[hidden]{display:none!important}@media(max-width:600px){#wireRecordsPanel .wireUnifiedActions>button{font-size:11px!important;padding:5px 3px!important}}



#wireRecordsPanel .wireUnifiedActions{margin-left:auto!important;margin-right:0!important}



#wireRecordsPanel .wireSummaryPair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-bottom:12px}#wireRecordsPanel .wireSummaryPair>.wireAnnualDisclosure{width:100%;max-width:none;margin:0;min-width:0}@media(max-width:600px){#wireRecordsPanel .wireSummaryPair{grid-template-columns:minmax(0,1fr);gap:8px}}



#wireRecordsPanel .wireMonthSummary>summary{position:relative;padding-right:175px;min-height:32px}#wireRecordsPanel .wireMonthUnpaid{position:absolute;right:8px;top:7px;max-width:170px;text-align:right;color:#93450d;font-size:10px!important;line-height:16px!important;font-weight:700;overflow-wrap:anywhere}@media(max-width:600px){#wireRecordsPanel .wireMonthSummary>summary{padding-right:150px}#wireRecordsPanel .wireMonthUnpaid{max-width:145px;font-size:9px!important}}



#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure th,#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure td{color:#103f35!important;font-weight:800!important}#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure th:first-child,#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure td:first-child{font-size:12px!important}#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure>summary,#wireRecordsPanel .wireSummaryPair .wireAnnualDisclosure strong{color:#103f35!important;font-weight:800!important}#wireRecordsPanel .wireSummaryPair .wireMonthUnpaid{color:#853800!important;font-weight:800!important}



#inventoryPanel{max-width:800px;padding:14px!important}#inventoryPanel>h3,#inventoryPanel>div{width:100%;max-width:none;box-sizing:border-box}#inventoryPanel>h3{font-size:15px!important;padding:9px 11px!important;margin-bottom:10px!important}#inventoryPanel .inventoryCompactControls{gap:8px;margin-bottom:8px!important}#inventoryPanel .inventoryCompactControls>label{width:200px;font-size:12px}#inventoryPanel .inventoryCompactControls input,#inventoryPanel .inventoryCompactControls select{min-height:32px;height:32px;padding:5px 8px;font-size:12px}#inventoryMovementEditor .inventoryTopActions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:6px;margin:6px 0 8px;width:100%}#inventoryMovementEditor .inventoryTopActions>button,#inventoryMovementEditor .inventoryTopActions>.button{font-size:12px!important;line-height:18px;min-height:30px;height:30px;padding:5px 8px!important;white-space:nowrap;margin:0;display:inline-flex;align-items:center;justify-content:center}#inventoryMovementEditor .inventoryEntryTable th,#inventoryMovementEditor .inventoryEntryTable td{padding:4px!important;font-size:12px!important}#inventoryMovementEditor .inventoryEntryTable input,#inventoryMovementEditor .inventoryEntryTable select{min-height:30px;height:30px;font-size:12px!important;padding:4px!important}#inventoryMovementEditor .receiptgallery:empty{display:none}#inventoryMovementEditor .receiptgallery{margin:5px 0 8px}#inventoryPanel .inventoryCatalog,#inventoryPanel .inventoryAllLogsPanel{margin-top:8px!important}@media(max-width:600px){#inventoryPanel{padding:10px!important}#inventoryPanel .inventoryCompactControls>label{width:calc(50% - 4px)}#inventoryMovementEditor .inventoryTopActions{gap:4px}#inventoryMovementEditor .inventoryTopActions>button,#inventoryMovementEditor .inventoryTopActions>.button{font-size:10px!important;padding:4px 5px!important;height:29px;min-height:29px}}



#inventoryPanel{width:800px!important;max-width:100%!important}



#monthlyLedger #inventoryPanel{width:800px!important;max-width:100%!important}#monthlyLedger #inventoryPanel .inventoryTopActions{margin:8px 0!important;justify-content:flex-end!important}



#monthlyLedger #inventoryPanel{width:100%!important;max-width:none!important}



#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:32%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(3){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(4){width:14%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(5){width:15%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(6){width:7%}.inventoryLineBarcode{display:block;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#214d3d}@media(max-width:600px){#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:27%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(3){width:15%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(4){width:14%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(5){width:16%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(6){width:12%}.inventoryLineBarcode{font-size:11px}}



#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:32%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:16%}@media(max-width:600px){#inventoryMovementEditor .inventoryEntryTable th:nth-child(1){width:27%}#inventoryMovementEditor .inventoryEntryTable th:nth-child(2){width:16%}}



#monthlyLedger #inventoryPanel{padding:26px!important}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;margin-top:12px}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures>details{width:100%;min-width:0;margin:0!important;box-sizing:border-box}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures>details>summary{padding:9px 10px;min-height:38px;box-sizing:border-box;font-size:13px;line-height:20px}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures>details[open]{grid-column:1/-1}@media(max-width:600px){#monthlyLedger #inventoryPanel{padding:16px!important}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures{gap:7px}#monthlyLedger #inventoryPanel .inventoryBottomDisclosures>details>summary{padding:8px 6px;font-size:11px;white-space:nowrap}}



#wholesaleNumberManagement .wholesalePastBooks{margin:8px;border:1px solid #c4d5ca;border-radius:5px;background:#fafcfb}#wholesaleNumberManagement .wholesalePastBooks>summary{padding:8px 10px;color:#365c4b;font-size:12px;font-weight:700;cursor:pointer;background:#e7efe9}#wholesaleNumberManagement .wholesalePastBooks .wholesaleBookLine{background:#f2f6f3}



.bankIncomePanel .bankIncomeBottomActions{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:12px 0 0;width:100%;flex-wrap:nowrap}.bankIncomePanel .bankIncomeBottomActions>button{flex:0 1 112px;width:112px;min-width:0;height:30px;min-height:30px;padding:5px 7px!important;margin:0!important;font-size:12px!important;line-height:18px;white-space:nowrap;text-align:center}.bankIncomePanel .bankIncomeBottomActions>button[hidden]{display:none!important}



@media(max-width:600px){.bankIncomePanel .bankIncomeBottomActions>button{font-size:10px!important;padding:5px 3px!important}}



.transferExpenseCompact>.grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start}.transferExpenseCompact>.grid>label[data-transfer-field]{grid-column:auto!important;min-width:0;margin:0}.transferExpenseCompact>.grid>label[data-transfer-field=person],.transferExpenseCompact>.grid>label[data-transfer-field=note]{grid-column:1/-1!important}.transferExpenseCompact>.grid>label[hidden]{display:none!important}.transferExpenseCompact input,.transferExpenseCompact select{min-width:0;width:100%;font-size:13px;padding:8px 9px;min-height:36px}.transferExpenseCompact label{font-size:12px}.transferExpenseCompact textarea{min-height:56px} @media(max-width:500px){.transferExpenseCompact>.grid{gap:8px!important}.transferExpenseCompact input,.transferExpenseCompact select{font-size:12px;padding:7px 5px}}



.transferExpenseCompact>.grid>label[data-transfer-field=misc_subitem]{grid-column:1/-1!important}



.fixedExpensePanel{border:1px solid #bfd5c8;border-radius:6px;padding:10px;margin:0 0 12px;background:#f7faf8;min-width:0}.fixedExpensePanel>p{font-size:12px;line-height:1.4;margin:0 0 8px}.fixedExpensePanel table{min-width:0!important;width:100%!important;table-layout:fixed}.fixedExpensePanel th,.fixedExpensePanel td{font-size:12px!important;padding:6px!important;overflow-wrap:anywhere}.fixedExpensePanel td button{padding:4px 6px;font-size:11px;margin:2px;white-space:normal}.fixedExpensePanel>details{margin-top:8px}.fixedExpensePanel summary{font-size:12px;font-weight:700;cursor:pointer}.fixedExpensePanel form{grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.fixedExpensePanel input,.fixedExpensePanel select{font-size:12px;padding:7px}.fixedExpensePanel form>.toolbar{grid-column:1/-1}.fixedExpensePanel .toolbar button{font-size:12px;padding:7px}



@media print{.fixedExpensePanel,.fixedExpenseTitle{display:none!important}}



.fixedExpenseDisclosure>.fixedExpensePanel{margin:10px 0 0;border:0;border-radius:0;background:transparent;padding:0}.fixedExpenseDisclosure>summary{font-size:inherit}.fixedExpensePanel>details>summary{font-size:12px}@media print{.fixedExpenseDisclosure{display:none!important}}



.fixedExpenseMonth{font-size:12px;font-weight:700;margin:6px 0}.fixedExpensePanel h4{font-size:13px;margin:10px 0 5px}.fixedExpenseCheckTable th:nth-child(1){width:13%}.fixedExpenseCheckTable th:nth-child(2){width:43%}.fixedExpenseCheckTable th:nth-child(3){width:22%}.fixedExpenseCheckTable th:nth-child(4){width:22%}.fixedExpenseCheckTable input[type=checkbox]{width:18px;height:18px;min-height:0;margin:3px;accent-color:#19664f}.fixedExpenseCheckTable td:last-child{text-align:center}.fixedExpenseCheckTable small{display:block;font-size:10px}.fixedExpensePanel .fixedExpenseNameEdit{border:0;background:transparent;color:inherit;padding:0;font:inherit;text-align:left;text-decoration:underline}.fixedExpenseCheckTable td:nth-child(3){white-space:nowrap;text-align:right}



.fixedExpenseCheckTable td:nth-child(1),.fixedExpenseCheckTable td:nth-child(2),.fixedExpenseCheckTable td:last-child,.fixedExpenseCheckTable td:last-child small{white-space:normal!important;overflow-wrap:anywhere}.fixedExpenseCheckTable td:nth-child(3){font-size:11px!important}



.fixedExpenseCheckTable input[type=number]{width:100%;min-width:0;box-sizing:border-box;padding:6px 3px;font-size:11px;min-height:30px}.fixedExpenseCheckTable .fixedExpenseAccount{display:block;font-size:10px;color:#36564b;white-space:normal;overflow-wrap:anywhere;margin-top:4px}



.fixedExpenseCheckTable td:last-child button{font-size:10px;padding:3px 4px;margin:2px}.fixedExpensePanel form>label[hidden]{display:none!important}



#monthlyAutoReport>.autoDailyTitleRow{display:flex;align-items:center;gap:9px;list-style:none;min-width:0;box-sizing:border-box;padding:9px 12px}#monthlyAutoReport>.autoDailyTitleRow::-webkit-details-marker{display:none}#monthlyAutoReport>.autoDailyTitleRow::before{content:'▶';font-size:11px;flex:none}#monthlyAutoReport[open]>.autoDailyTitleRow::before{content:'▼'}.autoDailyTitleText{flex:0 1 auto;white-space:nowrap}#monthlyAutoReport .autoDailyTitleRow>.autoDailyControls{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0 0 0 auto;padding:0;min-width:0}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;white-space:nowrap}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls input{width:136px;min-width:0;height:31px;min-height:31px;padding:5px 6px;font-size:12px;box-sizing:border-box}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls button,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls a{height:31px;min-height:31px;box-sizing:border-box;padding:5px 9px;margin:0;font-size:12px;line-height:19px;white-space:nowrap} @media(max-width:700px){#monthlyAutoReport>.autoDailyTitleRow{flex-wrap:wrap;gap:7px}#monthlyAutoReport .autoDailyTitleRow>.autoDailyControls{width:100%;margin-left:0;display:grid;grid-template-columns:minmax(0,1fr) repeat(3,auto);gap:4px}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls label{font-size:0;gap:0;min-width:0}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls input{width:100%;font-size:10px;padding:4px 2px}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls button,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls a{font-size:10px;padding:5px 4px}}



#monthlyAutoReport .autoDailyTitleRow .autoDailyControls label{flex-direction:row!important}



@media screen{#autoDailySheet>h2{display:none!important}#monthlyAutoReport>.autoDailyTitleRow{margin-bottom:12px}}



@media screen{#monthlyLedger>#monthlyAutoReport{width:96%!important;max-width:1120px!important;padding:18px!important;box-sizing:border-box}#monthlyAutoReport>.autoDailyTitleRow{padding:7px 10px;font-size:14px!important;margin-bottom:9px}#autoDailySheet>.autoReportGrid{gap:9px}#autoDailySheet .autoReportColumn,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels,#autoDailySheet .autoReportColumn>.autoReportGrid{gap:8px}#autoDailySheet .autoReportBlock h3{font-size:11px;padding:5px 6px;line-height:1.35}#autoDailySheet .autoReportBlock th,#autoDailySheet .autoReportBlock td{font-size:10.5px;padding:4px 4px;line-height:1.35}#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{min-height:46px;padding:9px 11px;font-size:14px!important;line-height:1.4}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls input,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls button,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls a{height:28px;min-height:28px;font-size:11px;padding-top:4px;padding-bottom:4px}}

@media screen and (max-width:700px){#monthlyLedger>#monthlyAutoReport{width:100%!important;padding:12px!important}#autoDailySheet .autoReportBlock th,#autoDailySheet .autoReportBlock td{font-size:10px;padding:4px 3px}#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{font-size:13px!important;min-height:44px;padding:9px 10px}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls input,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls button,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls a{font-size:10px}}



@media screen and (max-width:700px){#monthlyAutoReport #autoDailySheet .autoReportColumn .autoReportBlock th,#monthlyAutoReport #autoDailySheet .autoReportColumn .autoReportBlock td{font-size:10px!important;padding:4px 3px!important;letter-spacing:0!important}}



@media screen and (min-width:701px){#monthlyLedger>#monthlyAutoReport{width:92%!important;max-width:1040px!important;padding:14px!important}#monthlyAutoReport>.autoDailyTitleRow{padding:5px 8px;font-size:13px!important;margin-bottom:7px}#autoDailySheet>.autoReportGrid{gap:7px}#autoDailySheet .autoReportColumn,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels,#autoDailySheet .autoReportColumn>.autoReportGrid{gap:6px}#monthlyAutoReport #autoDailySheet .autoReportColumn .autoReportBlock h3{font-size:10px;padding:4px 5px;line-height:1.25}#monthlyAutoReport #autoDailySheet .autoReportColumn .autoReportBlock th,#monthlyAutoReport #autoDailySheet .autoReportColumn .autoReportBlock td{font-size:10px!important;padding:3px!important;line-height:1.25}#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{min-height:38px;padding:7px 9px;font-size:12px!important;line-height:1.3}#monthlyAutoReport .autoDailyTitleRow .autoDailyControls input,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls button,#monthlyAutoReport .autoDailyTitleRow .autoDailyControls a{height:26px;min-height:26px;font-size:10px;padding-top:3px;padding-bottom:3px}}

@media screen and (max-width:700px){#monthlyLedger>#monthlyAutoReport{padding:10px!important}#autoDailySheet .autoReportColumn,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels{gap:6px}#autoDailySheet .autoReportColumn>details>summary,#autoDailySheet .autoReportColumn>.monthlyPaymentPanels>details>summary,#autoDailySheet .autoReportColumn>.autoReportGrid>details>summary{min-height:40px;padding:7px 9px;font-size:12px!important}}



@media screen{#monthlyAutoReport>.autoDailyBelowTitleControls{display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap!important;gap:6px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:0;margin:0 0 8px}#monthlyAutoReport>.autoDailyBelowTitleControls>label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:100%;margin:0;font-size:11px;white-space:nowrap}#monthlyAutoReport>.autoDailyBelowTitleControls input{width:138px;max-width:100%;min-width:0;height:28px;min-height:28px;padding:4px 6px;box-sizing:border-box;font-size:11px}#monthlyAutoReport>.autoDailyBelowTitleControls>button,#monthlyAutoReport>.autoDailyBelowTitleControls>a{flex:0 0 auto;max-width:100%;height:28px;min-height:28px;box-sizing:border-box;padding:4px 8px;margin:0;font-size:11px;line-height:18px;white-space:nowrap}#monthlyAutoReport>.autoDailyTitleRow{flex-wrap:wrap;max-width:100%}.autoDailyTitleText{white-space:normal}}

@media screen and (max-width:400px){#monthlyAutoReport>.autoDailyBelowTitleControls{gap:5px}#monthlyAutoReport>.autoDailyBelowTitleControls>label{flex-basis:100%}}



@media screen{#monthlyLedger{--closing-panel-width:92%;--closing-panel-max:1040px;--closing-panel-pad:14px}#monthlyLedger>.card,#monthlyLedger>#monthlyAutoReport,#monthlyLedger>#wholesaleTrackingPanel,#monthlyLedger>#wireRecordsPanel,#monthlyLedger>#inventoryPanel{width:var(--closing-panel-width)!important;max-width:var(--closing-panel-max)!important;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding-left:var(--closing-panel-pad)!important;padding-right:var(--closing-panel-pad)!important}}

@media screen and (max-width:700px){#monthlyLedger{--closing-panel-width:100%;--closing-panel-max:100%;--closing-panel-pad:10px}}



#wireRecordsPanel .wireMonthUnpaid{display:none!important}#wireRecordsPanel .wireMonthSummary>summary{padding-right:8px!important}



@media screen{#forex{--fx-table-size:14px;font-size:14px}#forex label,#forex input,#forex select,#forex textarea,#forex button,#forex .button,#forex summary,#forex .fxEntrySummary h3{font-size:var(--fx-table-size)!important}#forex small,#forex .muted,#forex .fxWalletCaption{font-size:12px!important}#forex .fxWalletCards .stat small{font-size:14px!important}#forex .fxWalletCards .stat strong,#forex .fxWalletCards .stat.usLongBalance strong{font-size:22px!important;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}#forex .fxWalletCards .stat{overflow-x:auto}#forex .fxProminentDate label,#forex .fxProminentDate input{font-size:16px!important}}

@media screen and (max-width:600px){#forex{--fx-table-size:12px;font-size:12px}#forex small,#forex .muted,#forex .fxWalletCaption{font-size:11px!important}#forex .fxWalletCards .stat small{font-size:12px!important}#forex .fxWalletCards .stat strong,#forex .fxWalletCards .stat.usLongBalance strong{font-size:18px!important}#forex .fxProminentDate label,#forex .fxProminentDate input{font-size:14px!important}}



@media screen{#forex{--fx-table-size:12px;font-size:12px}#forex small,#forex .muted,#forex .fxWalletCaption{font-size:10px!important}#forex .fxWalletCards .stat small{font-size:12px!important}#forex .fxWalletCards .stat strong,#forex .fxWalletCards .stat.usLongBalance strong,#forex .fxWalletCards .stat:nth-child(2) strong{font-size:20px!important}#forex .fxProminentDate label,#forex .fxProminentDate input{font-size:14px!important}}

@media screen and (max-width:600px){#forex{--fx-table-size:10px;font-size:10px}#forex small,#forex .muted,#forex .fxWalletCaption{font-size:9px!important}#forex .fxWalletCards .stat small,#forex .fxWalletCards .stat:nth-child(2) small{font-size:10px!important}#forex .fxWalletCards .stat strong,#forex .fxWalletCards .stat.usLongBalance strong,#forex .fxWalletCards .stat:nth-child(2) strong{font-size:16px!important}#forex .fxProminentDate label,#forex .fxProminentDate input{font-size:12px!important}}



/* Match settlement/deposit typography to the internal ledger, screen only. */

@media screen{

:is(#bankSummary,#batchManagement){--deposit-font-size:12px;font-size:var(--deposit-font-size)}

:is(#bankSummary,#batchManagement) :is(p,label,input,select,textarea,button,.button,summary,table,th,td,strong,span,dt,dd,h2,h3){font-size:var(--deposit-font-size)!important;line-height:1.5}

:is(#bankSummary,#batchManagement) :is(small,.muted){font-size:10px!important}

#bankSummary #pendingBatchDates .pendingDayHeader>button,#bankSummary :is(#bankRows,#bankOlderRows) td.bankDayHeader button{white-space:normal!important;overflow-wrap:normal!important;overflow-x:visible}

}

@media screen and (max-width:600px){

:is(#bankSummary,#batchManagement){--deposit-font-size:10px}

:is(#bankSummary,#batchManagement) :is(small,.muted){font-size:9px!important}

}



@media screen{

#bankSummary #pendingBatchDates .pendingDayHeader>button,#bankSummary :is(#bankRows,#bankOlderRows) tr.bankDayRow>td.bankDayHeader button,

#batchManagement #batchBackDaily,#batchManagement #batchBackList,#batchManagement .batchHistoryItem>summary>strong,#batchManagement .batchHistoryAmounts span>span,#batchManagement .dayDepositUpload{font-size:var(--deposit-font-size)!important}

#batchManagement .batchHistoryAmounts small{font-size:10px!important}

}

@media screen and (max-width:600px){#batchManagement .batchHistoryAmounts small{font-size:9px!important}}



/* Shared screen typography. The layer takes precedence over legacy per-page

   !important font rules while leaving every print layout untouched. */

@layer ledger-typography {

 @media screen {

  main {--ledger-text-size:12px;--ledger-title-size:14px;--ledger-balance-size:20px}

  main,main * {font-size:var(--ledger-text-size)!important}

  main :is(h2,h3,h4) {font-size:var(--ledger-title-size)!important}

  main header h1 {font-size:28px!important}

  main header>div>small {font-size:10px!important}

  main :is(h1,h2,h3,h4) :is(span,strong,small) {font-size:inherit!important}

  main :is(input,select,textarea,button,.button,summary,th,td,label) {line-height:1.5}

  main :is(th,td,label,summary) {font-weight:700}

  main .stat strong {font-size:var(--ledger-balance-size)!important;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal}

  main .stat small {font-size:var(--ledger-text-size)!important;line-height:1.5}

  main .stat {min-width:0;overflow-x:auto}

  main :is(#bankSummary,#batchManagement) :is(td,th,.pendingDayHeader>button,.bankDayHeader button) {overflow-wrap:normal;word-break:normal}

 }

 @media screen and (max-width:600px) {

  main {--ledger-balance-size:16px}

  main header h1 {font-size:24px!important}

 }

}



/* Hidden phone-card forms must not bypass their open/reset lifecycle. */

.phoneCardForm[hidden]{display:none!important}



@layer ledger-typography {

 @media screen {

  main :is(.workbenchTableInput,.cardTableInput,.phoneCardTableInput),main #cashExpenses .drawerLedgerRow>td>label,main .wireEntryTable label {font-size:0!important;line-height:0!important}

  main #cashExpenses .drawerLedgerTable th:nth-child(4){width:32%!important}

  main #cashExpenses .drawerLedgerTable th:nth-child(6){width:8%!important}

  main #cashExpenses .drawerLedgerRow>td:last-child button{white-space:nowrap!important;padding:4px 5px!important;min-width:34px}

 }

}



/* Internal ledger: clear section hierarchy, aligned with cashier cards. */

#ledger>#forex,#ledger>#forex>.card,#ledger>#forex>#fxRows,#ledger>#forex #fxRows>.card{width:100%;max-width:none;min-width:0;box-sizing:border-box}

@layer ledger-typography {

 @media screen {

  #ledger>#forex>h2{font-size:18px!important;font-weight:800;color:#103f33;line-height:1.5}

  #ledger>#forex table,#ledger>#forex table :is(th,td,input,select,textarea,button,.button,strong,small,span,a,label){font-size:11px!important;line-height:1.5}

  #ledger>#forex table :is(input,select,textarea){min-width:0;max-width:100%}

 }

}



/* Compact only the entry controls; retain the section/card widths. */

@media screen {

 #ledger #fxForm .fxInputTable label{grid-template-columns:170px minmax(0,1fr);gap:10px;padding:4px 8px;background:linear-gradient(to right,#edf4f2 178px,#fff 178px)}

 #ledger #fxForm .fxInputTable :is(input,select){min-height:30px;padding:5px 8px}

 #ledger #fxForm .fxInputTable textarea{min-height:50px;padding:5px 8px}

 #ledger #fxForm .fxInputTable #fxPhotoDisclosure{padding:6px 8px}

 #ledger #forex .fxProminentDate{padding:8px 12px;margin:10px 0}

 #ledger #forex .fxProminentDate input{padding:6px 9px;min-height:32px}

}

@media screen and (max-width:600px){

 #ledger #fxForm .fxInputTable label{grid-template-columns:100px minmax(0,1fr);gap:8px;padding:4px 6px;background:linear-gradient(to right,#edf4f2 106px,#fff 106px)}

}



@media screen {

 #ledger #fxForm{width:100%;max-width:520px}

 #ledger #fxForm .fxInputTable{width:100%;min-width:0;max-width:520px}

}



/* Keep full-size cards, with compact readable internal ledger tables. */

@media screen {

 #ledger #forex :is(#fxDailyTotals,#fxEntrySummary,#fxRows) table{width:100%;max-width:520px;min-width:0!important}

 #ledger #forex :is(#fxDailyTotals,#fxEntrySummary,#fxRows) :is(th,td){padding:5px 8px}

 #ledger #forex .fxPastDetails>summary{width:100%;max-width:520px;box-sizing:border-box}

}



@media screen and (max-width:600px){

 #ledger #forex :is(.fxIncomeRecords,.fxExpenseRecords) table{table-layout:fixed}

 #ledger #forex :is(.fxIncomeRecords,.fxExpenseRecords) :is(th,td){padding:5px 4px}

 #ledger #forex :is(.fxIncomeRecords,.fxExpenseRecords) :is(th,td):first-child{width:50%!important}

 #ledger #forex :is(.fxIncomeRecords,.fxExpenseRecords) :is(th,td):nth-child(2){width:32%!important;white-space:nowrap}

 #ledger #forex :is(.fxIncomeRecords,.fxExpenseRecords) :is(th,td):nth-child(3){width:18%!important}

 #ledger #forex .fxCompactActions button{padding:4px 5px}

}



@media screen {

 #ledger #forex :is(#fxDailyTotals,#fxEntrySummary){display:none!important}

 #ledger #fxDayDisclosure{margin-top:14px;width:100%;max-width:520px;border:1px solid #b7cdd4;border-radius:6px;background:#fff;overflow:hidden}

 #ledger #fxDayDisclosure>summary{padding:9px 10px;background:#e8f1ed;color:#123e32;font-weight:750;cursor:pointer}

 #ledger #fxDayDisclosure table{width:100%;min-width:0;table-layout:fixed;margin:0}

 #ledger #fxDayDisclosure :is(th,td){padding:7px 6px;vertical-align:middle}

 #ledger #fxDayDisclosure :is(th,td):first-child{width:50%;overflow-wrap:anywhere}

 #ledger #fxDayDisclosure :is(th,td):nth-child(2){width:32%;white-space:nowrap}

 #ledger #fxDayDisclosure :is(th,td):last-child{width:18%}

 #ledger #fxDayDisclosure button{padding:4px 6px;white-space:nowrap}

 #ledger #fxDayDisclosure p{padding:0 10px}

}



/* Replaced on screen by the selected-day disclosure inside the entry card. */

@media screen{#ledger #forex #fxRows{display:none!important}}



#ledger .cashierDatePreview .fxDaySummary{width:100%;max-width:520px;margin:8px 0 12px}

#ledger .cashierDatePreview table{display:table!important;width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}

#ledger .cashierDatePreview tbody{display:table-row-group!important}

#ledger .cashierDatePreview tr{display:table-row!important}

#ledger .cashierDatePreview :is(th,td){display:table-cell!important;width:25%!important;padding:6px;border:1px solid #b7cdd4;overflow-wrap:normal;white-space:normal}

#ledger .cashierDatePreview th{background:#e4f0ee;text-align:left}

#ledger .cashierDatePreview td{text-align:center}

#ledger .cashierDatePreview>small{display:block;margin-top:6px}



#sharedDayWallet{width:100%;box-sizing:border-box}

#sharedDayWallet[hidden],#ledger .stationQuickPanel>label[hidden]{display:none!important}

#sharedDayWallet .fxProminentDate{margin-bottom:0}

#sharedDayWallet .fxWalletCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

#sharedDayWallet .fxWalletCards .stat{min-width:0}

#sharedDayWallet .fxWalletCaption{display:block;margin-top:8px}

#ledger.sharedDayActive #cashierRegisterContent .ledgerDayGroup>summary{display:none}



.payrollPreviewPayDate{margin:10px 0}.payrollPreviewPayDateLine{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid #c7d9cf;border-radius:6px}.payrollPreviewPayDateLine[hidden]{display:none}.payrollPreviewPayDateLine label{width:200px}.payrollPreviewPayDateLine small{flex-basis:100%}@media print{.payrollPreviewPayDate{display:none!important}}



.payrollSavedIndex section{margin-top:14px}.payrollSavedIndex details{border:1px solid #c7d9cf;border-radius:6px;margin:8px 0}.payrollSavedIndex summary{padding:10px;background:#e8f1ed;cursor:pointer;white-space:normal}.payrollSavedIndex details>div{padding:10px}.payrollSavedIndex h3{margin:12px 0 6px}.payrollSavedIndex[hidden]{display:none!important}



/* The saved payroll preview is the entry point for confirming weekly payment dates. */

#payrollForm>.payrollPayDatePanel{display:none!important}



#payrollForm>#payrollWeekPreviewButton.payrollSavedPreviewWide{display:block;width:100%;max-width:none;box-sizing:border-box;text-align:left;white-space:normal;padding:14px 12px;margin:12px 0;background:#e5f0eb;border:1px solid #b7cdd4;border-left:4px solid #19624e;font-weight:750;line-height:1.5}



.payrollNameActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.payrollNameActions button{padding:6px 9px}.payrollSavedReadOnly :is(input,select):disabled{background:#f1f5f2;color:#163d31;opacity:1}.payrollSavedReadOnly #payrollState{font-weight:700;color:#164b3c}



.payrollNameHeader{display:flex;align-items:center;justify-content:space-between;gap:6px}.payrollNameHeader .payrollNameActions{margin-top:0}.payrollTop{align-items:end}



/* Payment dates and status are consolidated in the saved payroll list. */

#payroll .payrollPayDateHistory{display:none!important}



#bankSummary .settlementDateCard{width:100%;box-sizing:border-box}#bankSummary .settlementDateCard label{display:flex;flex-direction:column;gap:8px;width:100%}#bankSummary .settlementDateCard input{width:100%;min-width:0;box-sizing:border-box}



/* Settled dates, grouped by month without changing settlement calculations. */

#bankOlderArchive{background:#fff;border:1px solid #dfe7e1;border-radius:10px;padding:12px 16px}

#bankOlderArchive>summary,#bankOlderRows>.settledMonth>summary{cursor:pointer;font-weight:700;line-height:1.6}

#bankOlderRows>.settledMonth{margin-top:10px;border:1px solid #dfe7e1;border-radius:7px;padding:10px 12px;background:#f5f9f6}

#bankOlderRows>.settledMonth>table{margin-top:8px}

#bankOlderRows .bankDayHeader button{white-space:normal!important;overflow-wrap:anywhere!important}



#monthlyArchiveCard>details{width:100%;box-sizing:border-box;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}

#monthlyArchiveCard>details>summary{padding:10px 0;cursor:pointer;line-height:1.6}

#monthlyArchiveCard>#bankOlderArchive{border-top:1px solid #dfe7e1!important;margin-top:8px!important;padding-top:8px!important}

#bankSummary>.tablewrap:has(#bankRows:empty),#bankSummary>.toolbar:has(#bankCoverage){display:none}



/* Direct date selection and deposit-only amounts. */

#bankSummary #pendingDateRange{display:none!important}

#bankSummary #pendingBatchDates{max-height:none;overflow:visible;margin:0}

#bankSummary #pendingBatchPicker{border:0;padding:0}

#bankSummary .pendingDepositTable{display:table;width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}

#bankSummary .pendingDepositTable :is(th,td){padding:8px 5px;border:1px solid #bed0d5;font-size:12px;line-height:1.5;vertical-align:middle;overflow-wrap:anywhere}

#bankSummary .pendingDepositTable th{background:#dfedef;font-weight:700}

#bankSummary .pendingDepositTable td.num{text-align:right;font-variant-numeric:tabular-nums}

#bankSummary #pendingBatchDates .pendingDepositTable label{display:flex;align-items:center;gap:6px;border:0;padding:0;margin:0;font-size:inherit}

#bankSummary .pendingDepositTable tfoot{font-weight:700;background:#e8f1eb}

#bankSummary #pendingBatchDates>button{margin-top:10px}

@media(max-width:600px){#bankSummary .pendingDepositTable :is(th,td){font-size:11px!important;padding:6px 3px}#bankSummary .pendingDepositTable th:first-child{width:70px}#bankSummary #pendingBatchDates .pendingDepositTable label{flex-direction:column;align-items:flex-start;gap:3px}}



/* Keep the date checkbox out of the generic full-width input sizing. */

@layer ledger-typography {

#bankSummary #pendingBatchDates .pendingDepositTable input[type=checkbox]{width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;flex:0 0 14px!important;margin:0!important;padding:0!important}

#bankSummary #pendingBatchDates .pendingDepositTable label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;width:auto!important;min-width:0!important}

#bankSummary #pendingBatchDates .pendingDepositTable label span{white-space:nowrap!important;flex:none!important;width:auto!important;min-width:0!important}

#bankSummary #pendingBatchDates .pendingDepositTable :is(th,td){font-size:11px!important;padding:5px 4px!important;line-height:1.35!important}

#bankSummary #pendingBatchDates .pendingDepositTable th:first-child{width:118px!important}

#bankSummary #pendingBatchDates .pendingDepositTable td.num{white-space:nowrap!important;overflow-wrap:normal!important}

@media(max-width:600px){

#bankSummary #pendingBatchDates .pendingDepositTable :is(th,td){font-size:9px!important;padding:5px 2px!important}

#bankSummary #pendingBatchDates .pendingDepositTable th:first-child{width:88px!important}

#bankSummary #pendingBatchDates .pendingDepositTable label{gap:3px!important}

}

}

#bankSummary .pendingDepositTable{max-width:760px;table-layout:auto}



@layer ledger-typography {#bankSummary #pendingBatchDates .pendingDepositTable label,#bankSummary #pendingBatchDates .pendingDepositTable label span{font-size:inherit!important;line-height:inherit!important}}



#bankSummary .batchTools>#batchPreviewPanel{width:100%;box-sizing:border-box;margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid #dce6df;background:transparent;border-radius:0;box-shadow:none}

#batchPreviewPanel .batchPreviewActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

#batchPreviewPanel .batchPreviewActions>button{flex:1;min-width:90px;margin:0}



#bankSummary .depositMethodTable{display:table;width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}

@layer ledger-typography {

#bankSummary .depositMethodTable :is(th,td){font-size:12px!important;padding:6px 4px!important;border:1px solid #bed0d5;vertical-align:middle;line-height:1.4!important}

#bankSummary .depositMethodTable th{background:#dfedef}#bankSummary .depositMethodTable th:first-child{width:32%}

#bankSummary .depositMethodTable label{display:flex!important;flex-direction:row!important;align-items:center;gap:5px;min-width:0;width:auto!important;font-size:inherit!important;margin:0!important}

#bankSummary .depositMethodTable label span{font-size:inherit!important}

#bankSummary .depositMethodTable input[type=radio]{width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;flex:0 0 14px;padding:0!important;margin:0!important}

#bankSummary .depositMethodTable input[type=number]{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;font-size:12px!important;padding:5px 3px!important;text-align:right}

@media(max-width:600px){#bankSummary .depositMethodTable :is(th,td),#bankSummary .depositMethodTable input[type=number]{font-size:12px!important}}

}



/* Hide the controls requested in the deposit preview, retaining their handlers. */

#bankSummary #settlementDateCard,#bankSummary #pendingBatchDates>button,#bankSummary #batchSelectionText,#bankSummary #batchClear,#bankSummary #batchPreviewPanel .cancelPreviewEntry{display:none!important}



#bankSummary #batchPreviewPanel>h2{display:none!important}



/* Compact deposit entry and live carry-forward preview. */

#bankSummary .batchTools>#batchPreviewPanel{margin-top:10px;padding-top:10px}

#batchPreviewPanel .pendingAmountCards{gap:6px;margin:6px 0}

#batchPreviewPanel .pendingAmountCards>.stat{padding:8px 10px;min-height:0}

#batchPreviewPanel .depositCarryPreview{border-top:1px solid #dce6df;margin-top:8px;padding-top:6px}

#batchPreviewPanel .depositCarryPreview>.pendingAmountCards{grid-template-columns:repeat(4,minmax(0,1fr))}

@layer ledger-typography {

#batchPreviewPanel .pendingAmountCards strong{font-size:12px!important;line-height:1.3!important}

#batchPreviewPanel .previewDepositEditor h3{font-size:12px!important;margin:8px 0!important}

#bankSummary .depositMethodTable td:first-child{position:relative;padding-right:40px!important}

#bankSummary .depositMethodTable .cancelDepositMethod{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:34px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:3px 1px!important;font-size:12px!important}

#bankSummary .depositMethodTable input[type=number]{min-height:28px!important;padding:4px!important}

#batchPreviewPanel .previewDepositFields{margin-top:8px}

@media(max-width:600px){#batchPreviewPanel .depositCarryPreview>.pendingAmountCards{grid-template-columns:repeat(2,minmax(0,1fr))}#bankSummary .depositMethodTable td:first-child{padding-right:3px!important;padding-bottom:23px!important}#bankSummary .depositMethodTable .cancelDepositMethod{top:auto;bottom:2px;right:3px;transform:none;padding:1px!important}}

}



@layer ledger-typography {

#bankSummary .depositMethodTable label,#bankSummary .depositMethodTable label span{font-size:12px!important;font-weight:750!important;color:#123f46!important;line-height:1.4!important}

#bankSummary .depositMethodTable .cancelDepositMethod{width:30px!important;font-size:12px!important;font-weight:400!important;padding:2px 0!important;line-height:1.3!important}

#bankSummary .depositMethodTable td:first-child{padding-right:35px!important}

@media(max-width:600px){#bankSummary .depositMethodTable label,#bankSummary .depositMethodTable label span{font-size:12px!important}#bankSummary .depositMethodTable td:first-child{padding-right:3px!important}}

}



/* Reduce only the deposit preview's internal spacing. */

#bankSummary .batchTools>#batchPreviewPanel{margin-top:6px;padding-top:6px}

#batchPreviewPanel .pendingAmountCards{gap:5px;margin:4px 0}

#batchPreviewPanel .pendingAmountCards>.stat{padding:6px 8px!important;border-radius:7px;min-height:0!important}

#batchPreviewPanel .depositCarryPreview{margin-top:6px;padding-top:4px}

@layer ledger-typography {

#batchPreviewPanel>.pendingAmountCards strong,#batchPreviewPanel .previewDepositEditor .pendingAmountCards strong{font-size:12px!important;line-height:1.2!important;margin-top:3px!important}

#batchPreviewPanel .pendingAmountCards small{font-size:12px!important;line-height:1.3!important;margin:0!important}

#batchPreviewPanel>p{margin:4px 0!important;font-size:11px!important;line-height:1.3!important}

#batchPreviewPanel .previewDepositEditor h3{font-size:12px!important;margin:6px 0!important;line-height:1.3!important}

#bankSummary .depositMethodTable :is(th,td){padding:4px 3px!important;line-height:1.3!important}

#bankSummary .depositMethodTable td:first-child{padding-right:35px!important}

#bankSummary .depositMethodTable input[type=number]{min-height:25px!important;height:25px!important;padding:3px!important}

@media(max-width:600px){#bankSummary .depositMethodTable td:first-child{padding-right:3px!important;padding-bottom:20px!important}}

}



#bankSummary #batchPreviewPanel>p:not(.error),#bankSummary #batchPreviewPanel>.pendingAmountCards{display:none!important}



@layer ledger-typography {

#fxDayDisclosure .fxSalaryExpenseGroup td:last-child button{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box;padding:5px 3px!important;font-size:11px!important;line-height:1.4!important}

}



.payrollEntryTitleActions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}

.payrollEntryTitleActions h2{margin:0}

.payrollEntryTitleActions #payrollNew{margin:0;flex:none}



#bankSummary .historyCarryPanel{display:none!important}

#bankSummary .pendingDepositTable .historyCarryTableRow :is(th,td){background:#edf4ef;font-weight:700}



#bankSummary .depositMethodTable input[type=checkbox]{width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;flex:0 0 14px;padding:0!important;margin:0!important}



#wholesaleNumberManagement .wholesaleBookTableScroll{max-width:100%;overflow-x:auto;margin:8px 0;border:1px solid #bfd4c8;border-radius:5px;background:#fff}

#wholesaleNumberManagement .wholesaleBookTable{width:100%;min-width:620px;table-layout:auto;border-collapse:collapse;margin:0}

#wholesaleNumberManagement .wholesaleBookTable :is(th,td){padding:8px 6px;border:1px solid #d1dfd8;font-size:12px;line-height:1.4;vertical-align:middle;text-align:left;white-space:nowrap;overflow-wrap:normal}

#wholesaleNumberManagement .wholesaleBookTable th{background:#e6f0e9;font-weight:700}

#wholesaleNumberManagement .wholesaleBookTable tbody tr:nth-child(even){background:#f5f9f6}

#wholesaleNumberManagement .wholesaleBookTable button{margin:0;padding:4px 7px;min-height:28px;font-size:11px;white-space:nowrap}

#wholesaleNumberManagement .wholesaleBookStatus{display:block;margin-top:3px;color:#507366;font-size:10px}

#wholesaleNumberManagement .wholesaleBookTable summary{color:#9c4c08;cursor:pointer}

#wholesaleNumberManagement .wholesaleBookTable p{margin:3px 0}

@media(max-width:600px){#wholesaleNumberManagement .wholesaleBookTable :is(th,td){font-size:11px;padding:6px 5px}}



#wholesaleNumberManagement>summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px;list-style:none}

#wholesaleNumberManagement>summary::before{content:'▸';font-size:11px}

#wholesaleNumberManagement[open]>summary::before{content:'▾'}

#wholesaleNumberManagement>summary::-webkit-details-marker{display:none}

#wholesaleNumberManagement .wholesaleNumberActions{display:inline-flex;gap:5px;flex-wrap:wrap;margin-left:auto}

#wholesaleNumberManagement .wholesaleNumberActions button{width:auto;min-height:25px;line-height:1.2;padding:4px 7px;margin:0;font-size:11px;font-weight:600;white-space:nowrap}

#wholesaleNumberManagement .wholesaleCompactControl:not([open]){display:none!important}

#wholesaleNumberManagement .wholesaleCompactControl>summary{display:none!important}

@media(max-width:600px){#wholesaleNumberManagement .wholesaleNumberActions{margin-left:0}#wholesaleNumberManagement .wholesaleNumberActions button{font-size:10px}}



.wholesaleBookDetailDialog{width:min(1050px,94vw);max-height:88vh;border:1px solid #bed4c9;border-radius:8px;padding:16px;color:#153e35;overflow:auto}

.wholesaleBookDetailContent table{width:100%;min-width:760px;border-collapse:collapse;font-size:12px}

.wholesaleBookDetailContent :is(th,td){border:1px solid #c8d9d0;padding:6px;text-align:left;vertical-align:top}

.wholesaleBookDetailContent th{background:#e6f0e9}.wholesaleBookDetailContent td:nth-child(-n+2){white-space:nowrap}

.wholesaleBookPrint{display:block;background:#fff;margin:15px;color:#000}.wholesaleBookPrint .wholesaleBookDetailContent{width:100%}

@media print{body.wholesaleBookPrint{display:block!important;margin:0!important;padding:0!important}body.wholesaleBookPrint .wholesaleBookDetailContent{display:block!important;visibility:visible!important}body.wholesaleBookPrint table{width:100%!important;min-width:0!important;table-layout:auto!important;font-size:10px!important}body.wholesaleBookPrint :is(th,td){padding:4px!important;white-space:normal!important}body.wholesaleBookPrint thead{display:table-header-group!important}body.wholesaleBookPrint tr{break-inside:avoid}}



.wholesaleDebtSection>summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#e6f1eb;border:1px solid #b9d3c7;border-radius:3px;padding:9px 10px;color:#004653;font-weight:700;list-style:none}

.wholesaleDebtSection>summary::before{content:'▸';font-size:11px}

.wholesaleDebtSection[open]>summary::before{content:'▾'}

.wholesaleDebtSection>summary::-webkit-details-marker{display:none}

.wholesaleDebtSection>summary .toolbar{margin:0 0 0 auto;padding:0}

.wholesaleDebtSection>summary label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px}

.wholesaleDebtSection>summary input{width:230px;min-height:28px;margin:0;padding:4px 7px;font-size:11px;background:white}

@media(max-width:600px){.wholesaleDebtSection>summary .toolbar{margin-left:0;width:100%}.wholesaleDebtSection>summary label{width:100%;flex-wrap:wrap}.wholesaleDebtSection>summary input{flex:1;min-width:160px}}



#wholesaleTrackingPanel details.wholesaleDebtSection{width:100%;max-width:680px;box-sizing:border-box}

#wholesaleTrackingPanel details.wholesaleDebtSection>summary{width:100%;box-sizing:border-box;min-height:36px}

#wholesaleTrackingPanel details.wholesaleDebtSection>.toolbar{margin:8px 0;padding:0;justify-content:flex-start}

#wholesaleTrackingPanel details.wholesaleDebtSection>.toolbar label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;flex-wrap:wrap}

#wholesaleTrackingPanel details.wholesaleDebtSection>.toolbar input{width:280px;max-width:100%;box-sizing:border-box;min-height:30px;padding:5px 8px;margin:0;font-size:12px;background:#fff}

@media(max-width:600px){#wholesaleTrackingPanel details.wholesaleDebtSection>.toolbar label{width:100%}#wholesaleTrackingPanel details.wholesaleDebtSection>.toolbar input{flex:1;min-width:150px}}



#wholesaleTrackingPanel .wholesaleReportActions{display:flex;gap:8px;width:100%;max-width:680px;margin:10px 0;align-items:stretch}

#wholesaleTrackingPanel .wholesaleReportActions button{flex:1;min-width:0;margin:0;padding:8px 10px;text-align:left;background:#e6f1eb;border:1px solid #b9d3c7;border-radius:4px;color:#004653;font-size:12px;font-weight:700;line-height:1.4}

#wholesaleTrackingPanel .wholesaleReportPanel>summary{display:none!important}

#wholesaleTrackingPanel .wholesaleReportPanel:not([open]){display:none!important}

#wholesaleTrackingPanel .wholesaleHistoryTools{display:block;margin:0;max-width:680px}

#wholesaleTrackingPanel .wholesaleReportPanel{width:100%;box-sizing:border-box}



#wholesaleTrackingPanel .wholesaleCompactHeader{width:100%;max-width:680px;box-sizing:border-box}

#wholesaleTrackingPanel .wholesaleCompactHeader>.wholesaleContentToggle{display:block;flex:1 1 100%;width:100%;max-width:100%;margin:0;text-align:left;white-space:normal;box-sizing:border-box}



/* Report previews fit the viewport; print all columns on A4 landscape. */

@media screen{body.reportPreviewPage{box-sizing:border-box;max-width:100vw}body.reportPreviewPage .reportPreviewScroll{box-sizing:border-box;max-width:100%;max-height:none}body.reportPreviewPage .reportPreviewScroll table{font-size:11px}body.reportPreviewPage .reportPreviewScroll td,body.reportPreviewPage .reportPreviewScroll th{font-size:11px!important;padding:3px 4px!important}}

@media print{

 @page{size:A4 landscape;margin:6mm}

 body.reportPreviewPage{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}

 body.reportPreviewPage .reportPreviewHeading h1{font-size:12pt!important;margin:0 0 4mm}

 body.reportPreviewPage .button,body.reportPreviewPage .reportSizeControls{display:none!important}

 body.reportPreviewPage .reportPreviewScroll{overflow:visible!important;max-height:none!important;border:0!important;width:100%!important}

 body.reportPreviewPage .reportPreviewScroll table{min-width:0!important;max-width:none!important;width:max-content!important;table-layout:auto!important;zoom:var(--report-print-scale,1)!important;border-collapse:collapse}

 body.reportPreviewPage .reportPreviewScroll td,body.reportPreviewPage .reportPreviewScroll th{min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;font-size:8px!important;line-height:1.15!important;padding:2px!important}

 body.reportPreviewPage thead{display:table-header-group}body.reportPreviewPage tr{break-inside:avoid}

}



.cashierDaySummaryTable{width:100%;max-width:560px;min-width:0;overflow-x:auto;box-sizing:border-box}

.cashierDaySummaryTable h3{font-size:14px;margin:8px 0 5px}

.cashierDaySummaryTable table{table-layout:auto!important;margin:5px 0 9px!important}

.cashierDaySummaryTable table th,.cashierDaySummaryTable table td{padding:3px 5px!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:normal!important}

.cashierDaySummaryTable table td:not(:first-child){white-space:nowrap!important}

.cashierIncomeHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:5px 0}

.cashierIncomeHeading h3{margin:0}

.cashierIncomeHeading button{width:auto!important;min-height:26px;padding:3px 8px;font-size:12px;margin:0!important}

.cashierSeparateIncome{max-width:560px}

@media(max-width:600px){.cashierDaySummaryTable table th,.cashierDaySummaryTable table td{font-size:11px!important;padding:3px 4px!important}.cashierIncomeHeading button{font-size:11px}}



#sharedDayWallet .fxProminentDate.phoneDateAligned{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;max-width:100%;box-sizing:border-box}

#sharedDayWallet .phoneDateAligned>label{display:block!important;min-width:0;width:100%;font-size:0!important;margin:0!important;gap:0}

#sharedDayWallet .phoneDateAligned input[type=date],#sharedDayWallet .phoneDateAligned>#phoneCardToggle{display:block;width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;box-sizing:border-box!important;padding:7px 10px!important;margin:0!important;font-size:13px!important;line-height:24px!important;border-radius:6px;white-space:nowrap}

#sharedDayWallet .phoneDateAligned>#phoneCardToggle{align-self:end}

@media(max-width:600px){#sharedDayWallet .fxProminentDate.phoneDateAligned{gap:8px;padding:8px!important}#sharedDayWallet .phoneDateAligned input[type=date],#sharedDayWallet .phoneDateAligned>#phoneCardToggle{font-size:12px!important;padding:7px!important}}



/* One compact width for the active cashier day, including internal entry. */

@media screen{

 #ledger.sharedDayActive{width:100%;max-width:546px;min-width:0;box-sizing:border-box}

 #ledger.sharedDayActive :is(#sharedDayWallet,#cashierRegisterContent,#forex,.stationQuickPanel){width:100%;max-width:100%;min-width:0;box-sizing:border-box}

 #ledger.sharedDayActive .card{width:100%;max-width:100%;min-width:0;padding:12px;box-sizing:border-box}

 #ledger.sharedDayActive #cashierRegisterContent>.card.tablewrap{padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}

 #ledger.sharedDayActive .ledgerDayBody{padding:10px}

 #ledger.sharedDayActive .cashierDaySummaryTable{max-width:100%;width:100%}

 #ledger.sharedDayActive #forex>h2{width:100%;max-width:100%;box-sizing:border-box;font-size:16px;margin:16px 0 10px!important;padding:9px 10px!important}

 #ledger.sharedDayActive #forex{--fx-table-size:12px;font-size:12px}

 #ledger.sharedDayActive #fxForm,#ledger.sharedDayActive #fxForm .fxInputTable{width:100%;max-width:none;min-width:0;box-sizing:border-box}

 #ledger.sharedDayActive #fxDayDisclosure{width:100%;max-width:100%;box-sizing:border-box}

 #ledger.sharedDayActive #forex .fxInputTable :is(input,select){min-height:30px!important;padding:4px 7px!important;font-size:12px!important}

 #ledger.sharedDayActive #forex table :is(th,td){padding:4px!important;line-height:1.3!important;font-size:12px!important}

 #ledger.sharedDayActive .stationQuickButtons{gap:6px}

 #ledger.sharedDayActive .stationQuickButtons button{padding:6px 8px;font-size:12px}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards{gap:6px}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards .stat{padding:8px;min-width:0}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards .stat strong{font-size:18px!important}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards .stat small{font-size:11px!important}

}

@media screen and (max-width:600px){

 #ledger.sharedDayActive .card{padding:10px}

 #ledger.sharedDayActive .ledgerDayBody{padding:8px}

 #ledger.sharedDayActive #forex .fxInputTable label{grid-template-columns:100px minmax(0,1fr);gap:6px;padding:3px 5px}

 #ledger.sharedDayActive #forex table :is(th,td){font-size:11px!important}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards .stat{padding:6px}

 #ledger.sharedDayActive #sharedDayWallet .fxWalletCards .stat strong{font-size:16px!important}

}



@media screen{

 #ledger:not(.sharedDayActive){width:100%;max-width:546px;min-width:0;box-sizing:border-box}

 #ledger:not(.sharedDayActive)> .card{max-width:100%;width:100%;box-sizing:border-box;padding:14px}

 #ledger:not(.sharedDayActive) #cashierRegisterContent{width:100%;max-width:100%;min-width:0}

 #ledger:not(.sharedDayActive) #cashierRegisterContent>.card.tablewrap{width:100%;max-width:100%;min-width:0;padding:0;border:0;box-shadow:none;background:transparent}

 #ledger:not(.sharedDayActive) #cashierRegisterContent>.card.tablewrap>table{width:100%;min-width:0;table-layout:fixed}

 #ledger:not(.sharedDayActive) .ledgerDayGroup>summary{padding:10px 12px;line-height:1.45;white-space:normal}

 #ledger:not(.sharedDayActive) .ledgerDayBody{padding:0 10px 10px}

 #ledger:not(.sharedDayActive) .cashierDatePreview table{width:100%;min-width:0}

}



#wireRecordsPanel.wireCompactSummaryLayout{padding:14px;max-width:1008px;box-sizing:border-box}

#wireRecordsPanel.wireCompactSummaryLayout .wireSummaryPair{display:flex;flex-direction:column;gap:6px;margin:0 0 8px;width:100%;max-width:none;grid-column:1/-1}

#wireRecordsPanel.wireCompactSummaryLayout .wireSummaryPair>.wireAnnualDisclosure{width:100%;max-width:none;margin:0;min-width:0;box-sizing:border-box}

#wireRecordsPanel.wireCompactSummaryLayout .wireSummaryPair>.wireAnnualDisclosure>summary{min-height:30px;box-sizing:border-box;padding:5px 9px!important;font-size:12px!important;line-height:18px!important}

#wireRecordsPanel.wireCompactSummaryLayout .wireEntryScroll{margin-top:0}

#wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td){padding:3px 4px!important;font-size:12px!important}

#wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(input,select){min-height:30px!important;height:30px!important;padding:4px 6px!important;font-size:12px!important;box-sizing:border-box}

@media(max-width:600px){#wireRecordsPanel.wireCompactSummaryLayout{padding:10px}#wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td,input,select){font-size:11px!important}}



.inlineDayExpenses{margin-top:8px;padding:8px;border:1px solid #bfd0c5;border-radius:5px;background:#fff;max-width:100%;box-sizing:border-box;overflow-x:auto}

.inlineDayExpenses[hidden]{display:none!important}

.inlineDayExpenses h4{margin:0 0 6px;font-size:13px}

.inlineDayExpenses table{width:100%;min-width:420px;border-collapse:collapse;font-size:12px;table-layout:auto}

.inlineDayExpenses th,.inlineDayExpenses td{padding:4px 5px!important;white-space:normal;overflow-wrap:anywhere;vertical-align:top}

.inlineDayExpenses td:last-child{min-width:90px;overflow-wrap:normal;font-variant-numeric:tabular-nums}

.inlineDayExpenses p{margin:6px 0;font-size:12px}

.inlineDayExpenses small{font-size:11px}



.wireUnifiedActions{display:flex;flex-wrap:wrap;width:auto;max-width:100%;gap:6px}.wireUnifiedActions>button{flex:0 1 auto;min-height:34px}.wireSummaryPair[hidden]{display:none!important}



/* Compact employee workspace; print documents keep their existing page layout. */

@media screen{

 main #employees{width:100%;max-width:640px;min-width:0;box-sizing:border-box}

 main #employees>.card{width:100%;max-width:100%;box-sizing:border-box;padding:14px;margin:0 0 10px;min-height:0}

 main #employees .employeeControls h2{font-size:15px;margin:0 0 10px}

 main #employees .employeeControls>label{display:block;margin:0 0 7px}

 main #employees .employeeControls select{width:100%;max-width:100%;min-height:34px;height:34px;padding:6px 9px;box-sizing:border-box}

 main #employees .employeeControls>button{min-height:32px;padding:6px 10px;margin:0 5px 0 0}

 main #employees #employeeCount{margin:9px 0 0;font-size:12px;line-height:1.5}

 main #employees>.companyContracts,main #employees>.employeeHelp{padding:10px 14px}

 main #employees>.companyContracts>summary,main #employees>.employeeHelp>summary{margin:0;min-height:0;padding:7px 9px;font-size:13px;line-height:1.5;box-sizing:border-box}

 main #employees #employeeForm .employeeFields,main #employees #employeeLetterSettings .employeeFields{gap:8px;margin:10px 0}

}

@media screen and (max-width:600px){

 main #employees>.card{padding:12px}

 main #employees>.companyContracts,main #employees>.employeeHelp{padding:8px 12px}

 main #employees #employeeForm .employeeFields,main #employees #employeeLetterSettings .employeeFields{grid-template-columns:minmax(0,1fr)}

}



/* Keep the actual cards compact even when the page shell stretches its section. */

@media screen{

 main #employees{max-width:540px!important;width:100%!important}

 main #employees>.card{max-width:540px!important;width:100%!important;padding:10px 12px;margin-bottom:7px;border-radius:10px}

 main #employees .employeeControls h2{margin-bottom:7px;font-size:14px}

 main #employees .employeeControls>label{margin-bottom:5px}

 main #employees .employeeControls select{height:32px;min-height:32px;padding:5px 8px}

 main #employees .employeeControls>button{min-height:29px;padding:5px 8px}

 main #employees #employeeCount{margin-top:7px}

 main #employees>.companyContracts,main #employees>.employeeHelp{padding:6px 10px}

 main #employees>.companyContracts>summary,main #employees>.employeeHelp>summary{padding:5px 7px;font-size:12px}

}



@media screen{

 main #employees #companyContracts .contractControls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}

 main #employees #companyContracts[open]>summary{margin-bottom:8px}

 main #employees #companyContracts :is(input,select){width:100%;min-width:0;min-height:32px;padding:5px 7px;font-size:12px}

 main #employees #companyContracts textarea{font-size:13px;line-height:1.5;margin:5px 0;resize:vertical}

 main #employees #contractForm textarea[name=body]{height:190px;min-height:120px}

 main #employees #contractTemplateBody{height:160px;min-height:100px}

 main #employees #companyContracts button{font-size:12px;padding:5px 8px;min-height:29px}

 main #employees #companyContracts .toolbar{gap:6px;flex-wrap:wrap}

 main #employees #companyContracts h3{font-size:14px;margin:10px 0 6px}

}

@media screen and (max-width:480px){main #employees #companyContracts .contractControls{grid-template-columns:minmax(0,1fr)}}



/* Comfortable mobile login targets, independent of the compact accounting tables. */

@media screen and (max-width:600px){

 body.signed-out #loginForm input{font-size:16px!important;min-height:44px;line-height:1.4}

 body.signed-out #loginSubmit{font-size:16px;min-height:44px}

}



.dayReconciliation{margin-top:10px;border:1px solid #bfd7cd;border-radius:6px;padding:8px;max-width:100%;box-sizing:border-box}.dayReconciliation>summary{cursor:pointer;font-weight:700;color:#145b48;padding:5px}.dayReconciliation table{width:100%;max-width:100%;min-width:0;table-layout:fixed;font-size:12px}.dayReconciliation th,.dayReconciliation td{padding:5px;white-space:normal;overflow-wrap:anywhere}.dayReconciliation th:nth-child(1){width:24%}.dayReconciliation th:nth-child(2){width:43%}.dayReconciliation th:nth-child(3){width:10%}.dayReconciliation td:last-child{text-align:right;font-variant-numeric:tabular-nums;word-break:normal}.dayReconciliation h4{margin:14px 0 7px}.dayReconciliationSubtotal{margin:5px 0;text-align:right;font-weight:700}.dayReconciliationNote{display:block;margin:5px 0}



.dayReconciliation table.dayReconciliationBalances{table-layout:auto}.dayReconciliation table.dayReconciliationBalances th{width:auto}



.cashierExpenseSummary>table th:first-child{width:43%}.cashierExpenseSummary>table th:nth-child(2){width:23%}.cashierExpenseSummary>table th:nth-child(3){width:12%}.cashierExpenseSummary>table th:nth-child(4){width:22%}.cashierExpenseSummary .smallbtn{padding:4px 6px;font-size:12px;min-width:0;white-space:normal}.cashierExpenseList{border-top:1px solid #c8dad0;margin-top:6px}.cashierExpenseList td{word-break:normal}



/* Income and expenses retain their labels and use distinct, quiet colour cues. */

.cashierDaySummaryTable.cashierIncomeTone>h3{color:#185941;border-left:4px solid #37835f;padding-left:7px}

.cashierDaySummaryTable.cashierIncomeTone>table>thead th{background:#dceee1;color:#174d38}

.cashierDaySummaryTable.cashierIncomeTone>table>tbody>tr:last-child td{background:#edf6ef}

.cashierDaySummaryTable.cashierExpenseSummary>h3{color:#87401e;border-left:4px solid #bc7244;padding-left:7px}

.cashierDaySummaryTable.cashierExpenseSummary>table>thead th{background:#f4e1d1;color:#783b20}

.cashierDaySummaryTable.cashierExpenseSummary>table>tbody>tr:last-child td{background:#fcf0e5;color:#783b20;font-weight:700}



.dayReconciliation .reconciliationGroup{margin:12px 0;padding:8px;border-radius:5px;border:1px solid #c9dcd0;min-width:0}

.dayReconciliation .reconciliationIncome{background:#f5faf6;border-color:#bcd7c5}

.dayReconciliation .reconciliationExpense{background:#fff8f2;border-color:#e7ccb5}

.dayReconciliation .reconciliationIncome>h4{color:#185941;border-left:4px solid #37835f;padding-left:7px}

.dayReconciliation .reconciliationExpense>h4{color:#87401e;border-left:4px solid #bc7244;padding-left:7px}

.dayReconciliation .reconciliationIncome th{background:#dceee1;color:#174d38}

.dayReconciliation .reconciliationExpense th{background:#f4e1d1;color:#783b20}

.dayReconciliation .reconciliationIncome .dayReconciliationSubtotal{color:#185941}

.dayReconciliation .reconciliationExpense .dayReconciliationSubtotal{color:#87401e}



.fxDaySummary .dailyExpenseCountShortcut{white-space:normal;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box;line-height:1.35}





.cashierDatePreview .cashierDayActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:10px 0}

.cashierDatePreview .cashierDayActions>button{width:100%;min-width:0;min-height:38px;margin:0;padding:7px 6px;box-sizing:border-box;background:#e2f0e7;color:#185941;border:1px solid #b8d3c3;border-radius:5px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}

.cashierDatePreview .pairedDayReconciliation>summary{display:none}

.cashierDatePreview .pairedDayReconciliation:not([open]){display:none}

/* Keep the three editable totals and the three carry amounts aligned. */

#batchPreviewPanel .previewDepositEditor .manualDepositTotals,

#batchPreviewPanel .previewDepositEditor .depositCarryPreview>.pendingAmountCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0;width:100%;box-sizing:border-box}

#batchPreviewPanel .previewDepositEditor .manualDepositTotals>label,

#batchPreviewPanel .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat{display:flex;flex-direction:column;justify-content:space-between;gap:3px;width:100%;height:66px!important;min-height:66px!important;margin:0;padding:7px 8px!important;box-sizing:border-box;border:1px solid #d5e1da;border-radius:7px;background:#fff;font-size:12px;line-height:1.3;min-width:0}

#batchPreviewPanel .previewDepositEditor .manualDepositTotals input{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0;width:100%;height:24px;min-height:24px;font-size:12px;font-weight:700;line-height:1.2;color:inherit;box-sizing:border-box}

#batchPreviewPanel .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat strong{font-size:12px!important;line-height:24px!important;margin:0!important}

#batchPreviewPanel .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat small{font-size:12px!important;line-height:1.3!important}

@media(max-width:450px){#batchPreviewPanel .previewDepositEditor .manualDepositTotals>label,#batchPreviewPanel .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat{height:76px!important;min-height:76px!important;padding:6px!important}}



/* Five equal actions, one compact row on phone and desktop. */

#wireRecordsPanel .wireUnifiedActions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:4px}

#wireRecordsPanel .wireUnifiedActions>button{height:34px;min-width:0;white-space:normal;line-height:14px!important;font-size:12px!important;padding:2px!important}

.wireProofDisclosure{margin-top:6px}.wireProofDisclosure>div{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}.wireProofDisclosure input[type=file]{max-width:100%;font-size:11px}

@media(max-width:600px){#wireRecordsPanel .wireUnifiedActions>button{font-size:10px!important}}



.ledgerDayGroup>summary .cashierDayGross{display:block;margin-top:5px;padding-left:14px;font-weight:600;white-space:nowrap}



/* Hide entry notes without clearing stored values. */

#wireRecordsPanel .wireEntryTable :is(th,td):nth-child(7){display:none!important}

#wireRecordsPanel .wireEntryTable th:nth-child(1){width:16%}

#wireRecordsPanel .wireEntryTable th:nth-child(2){width:24%}

#wireRecordsPanel .wireEntryTable th:nth-child(3){width:15%}

#wireRecordsPanel .wireEntryTable th:nth-child(4){width:14%}

#wireRecordsPanel .wireEntryTable th:nth-child(5){width:10%}

#wireRecordsPanel .wireEntryTable th:nth-child(6){width:15%}

#wireRecordsPanel .wireEntryTable th:nth-child(8){width:6%}



@media screen{

 #monthlyAutoReport>.autoDailyTitleRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:16px!important;font-weight:700!important}

 #monthlyAutoReport .autoDailyTitleText{font-size:16px!important;font-weight:700!important}

 #monthlyAutoReport .autoDailyHeaderDate{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;margin:0;min-width:0;font-size:14px!important;font-weight:700!important}

 #monthlyAutoReport .autoDailyHeaderDate input{width:145px;min-width:0;height:32px;padding:4px 6px;font-size:14px!important;font-weight:700!important;box-sizing:border-box}

 #monthlyAutoReport>.autoDailyFooterActions{display:flex!important;justify-content:flex-end;gap:6px;width:100%;margin:10px 0 0!important;padding:0;box-sizing:border-box}

 #monthlyAutoReport>.autoDailyFooterActions :is(button,a){font-size:12px!important;white-space:nowrap}

}

@media screen and (max-width:600px){#monthlyAutoReport .autoDailyHeaderDate{font-size:0!important;gap:0}#monthlyAutoReport .autoDailyHeaderDate input{width:135px;font-size:14px!important}#monthlyAutoReport>.autoDailyTitleRow{gap:5px;padding:8px!important}}



/* Give the title date room instead of wrapping its label. */

@media screen{

 #monthlyAutoReport>.autoDailyTitleRow{gap:12px!important;font-size:18px!important}

 #monthlyAutoReport .autoDailyTitleText{flex:0 0 auto;font-size:18px!important;white-space:nowrap}

 #monthlyAutoReport .autoDailyHeaderDate{flex:1 0 auto!important;width:auto!important;max-width:100%;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:16px!important;gap:10px!important}

 #monthlyAutoReport .autoDailyHeaderDate input{flex:0 0 190px;width:190px!important;height:36px;min-height:36px;font-size:16px!important;font-weight:700!important}

}

@media screen and (max-width:600px){

 #monthlyAutoReport>.autoDailyTitleRow{gap:6px!important}

 #monthlyAutoReport .autoDailyHeaderDate{flex:0 1 auto!important;font-size:0!important;gap:0!important}

 #monthlyAutoReport .autoDailyHeaderDate input{flex:0 1 155px;width:155px!important;font-size:16px!important}

}



@media screen{

 #monthlyAutoReport .autoDailyHeaderDate{margin-left:auto!important;flex:0 0 auto!important}

}

@media screen and (max-width:600px){

 #monthlyAutoReport .autoDailyHeaderDate{margin-left:auto!important;flex:0 1 auto!important}

}



/* Title typography must win over the shared compact-text layer. */

@layer ledger-typography{

 @media screen{

  main #monthlyAutoReport>.autoDailyTitleRow,

  main #monthlyAutoReport>.autoDailyTitleRow>.autoDailyTitleText{font-size:20px!important;font-weight:700!important;line-height:1.4!important}

 }

}



/* Keep the mobile report title and date in one row. */

@media screen and (max-width:600px){

 #monthlyAutoReport>.autoDailyTitleRow{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:8px 6px!important;align-items:center}

 #monthlyAutoReport>.autoDailyTitleRow::before{flex:0 0 9px;font-size:9px}

 #monthlyAutoReport .autoDailyTitleText{flex:0 1 auto!important;min-width:0;white-space:nowrap!important}

 #monthlyAutoReport .autoDailyHeaderDate{flex:0 0 110px!important;width:110px!important;margin-left:auto!important;min-width:0!important;gap:0!important}

 #monthlyAutoReport .autoDailyHeaderDate .dateDisplayControl{display:block;width:110px!important;min-width:0;max-width:110px!important}

 #monthlyAutoReport .autoDailyHeaderDate input{width:110px!important;min-width:0!important;max-width:110px!important;padding:4px!important}

}

@layer ledger-typography{

 @media screen and (max-width:600px){main #monthlyAutoReport>.autoDailyTitleRow>.autoDailyTitleText{font-size:18px!important}}

 @media screen and (max-width:380px){main #monthlyAutoReport>.autoDailyTitleRow>.autoDailyTitleText{font-size:16px!important}}

 @media screen and (max-width:350px){main #monthlyAutoReport>.autoDailyTitleRow>.autoDailyTitleText{font-size:14px!important}}

}



.depositDayReconciliationDialog{width:min(860px,94vw);max-width:94vw;max-height:88vh;overflow:auto;box-sizing:border-box;border:1px solid #bed1c6;border-radius:10px;padding:12px}

.depositDayReconciliationDialog>.dayReconciliation{margin-top:8px;min-width:0}

@media screen and (max-width:600px){

 #monthlyAutoReport .autoDailyHeaderDate .dateDisplayControl{flex:0 0 110px!important;width:110px!important}

 #monthlyAutoReport .autoDailyHeaderDate .dateDisplayValue{left:4px;right:22px}

}

@layer ledger-typography{

 @media screen and (max-width:600px){main #monthlyAutoReport>.autoDailyTitleRow>.autoDailyHeaderDate{font-size:0!important}}

}



.depositReconciliationTools{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}

@page depositReconciliationA4{size:A4 portrait;margin:10mm}

@media print{

 body.printDepositReconciliation{display:block!important;background:white!important;margin:0!important;padding:0!important}

 body.printDepositReconciliation>:not(.depositDayReconciliationDialog){display:none!important}

 body.printDepositReconciliation>.depositDayReconciliationDialog{page:depositReconciliationA4;display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;color:#000;background:#fff}

 body.printDepositReconciliation .depositDayReconciliationDialog::backdrop{display:none!important}

 body.printDepositReconciliation .depositReconciliationTools,

 body.printDepositReconciliation .dayReconciliation>summary{display:none!important}

 body.printDepositReconciliation .dayReconciliation{border:0!important;padding:0!important;margin:0!important;max-width:none!important;overflow:visible!important}

 body.printDepositReconciliation .dayReconciliation table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:10px!important;border-collapse:collapse}

 body.printDepositReconciliation .dayReconciliation :is(th,td){font-size:10px!important;padding:3px!important;white-space:normal!important;overflow-wrap:anywhere!important}

 body.printDepositReconciliation .dayReconciliation thead{display:table-header-group}

 body.printDepositReconciliation .dayReconciliation tfoot{display:table-row-group}

 body.printDepositReconciliation .dayReconciliation tr{break-inside:avoid}

 body.printDepositReconciliation .dayReconciliation h4{font-size:12px!important;break-after:avoid;margin:8px 0 4px}

 body.printDepositReconciliation .reconciliationGroup{break-inside:auto!important;background:#fff!important}

}



#wireRecordsPanel .wireProofDisclosure{margin:7px 0 0;text-align:left}

#wireRecordsPanel .wireProofDisclosure>summary{display:inline-block;cursor:pointer;list-style:none;border:1px solid #9dc4b1;border-radius:5px;background:#e8f3ec;color:#145b48;padding:5px 7px;font-size:12px!important;font-weight:700;line-height:1.35;white-space:normal}

#wireRecordsPanel .wireProofDisclosure>summary::-webkit-details-marker{display:none}

#wireRecordsPanel .wireProofDisclosure>div{overflow-wrap:anywhere}

#wireRecordsPanel .wireProofDisclosure .button{max-width:100%;box-sizing:border-box;white-space:normal}

#wireRecordsPanel .wireProofDisclosure input[type=file]{display:block;width:100%;min-width:0}



#wireRecordsPanel .wireSingleProofButton{display:inline-block;position:relative;margin:0;padding:5px 7px;border:1px solid #9dc4b1;border-radius:5px;background:#e8f3ec;color:#145b48;font-size:12px!important;font-weight:700;line-height:1.4;white-space:normal;cursor:pointer}

#wireRecordsPanel .wireSingleProofButton input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

#wireRecordsPanel .wireProofGallery{display:flex;flex-direction:column;gap:5px;padding:4px 0 0}

#wireRecordsPanel .wireProofLink{overflow-wrap:anywhere;font-size:12px;text-decoration:underline}



#wireRecordsPanel .wireProofTools{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}

#wireRecordsPanel .wireCompactProofControls .wireProofTools :is(.wireSingleProofButton,.wireProofViewButton){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:34px;min-height:24px;height:24px;width:auto;margin:0;padding:2px 5px!important;line-height:18px!important;font-size:11px!important;font-weight:600;border:1px solid #9dc4b1;border-radius:4px;background:#e8f3ec;color:#145b48;white-space:nowrap;cursor:pointer}

#wireRecordsPanel .wireProofGallery[hidden]{display:none!important}



.dailyCashExpenseSummary>div>.reconciliationExpense{margin-top:8px;padding:8px;border:1px solid #e7ccb5;border-radius:5px;background:#fff8f2;min-width:0}

.dailyCashExpenseSummary h4{color:#87401e;border-left:4px solid #bc7244;padding-left:7px;margin:6px 0}

.dailyCashExpenseSummary table{width:100%;max-width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}

.dailyCashExpenseSummary table :is(th,td){padding:5px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}

.dailyCashExpenseSummary th:nth-child(1){width:24%}.dailyCashExpenseSummary th:nth-child(2){width:40%}.dailyCashExpenseSummary th:nth-child(3){width:12%}.dailyCashExpenseSummary th:nth-child(4){width:24%}

.dailyCashExpenseSummary table td:last-child{text-align:right;font-variant-numeric:tabular-nums}

.dailyCashExpenseSummary tfoot th{background:#f4e1d1;color:#783b20;width:auto!important}

.dailyCashExpenseSummary tfoot th:last-child{text-align:right}



.dailyBankActivity>div{margin-top:8px;min-width:0}

.dailyBankActivity table{width:100%;max-width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}

.dailyBankActivity table :is(th,td){padding:4px;white-space:normal;overflow-wrap:anywhere}

.dailyBankActivity table :is(th,td):nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}

.dailyBankActivity th:nth-child(1){width:18%}.dailyBankActivity th:nth-child(2){width:10%}

.dailyBankActivity tfoot th{background:#e3f0e8;font-weight:700}

.dailyBankActivity small{display:block;margin-top:6px;line-height:1.4}



/* The book photo column may use the unused space to the right. */

#wholesaleTrackingPanel #wholesaleNumberManagement{width:100%;max-width:960px!important;box-sizing:border-box}

#wholesaleTrackingPanel .wholesaleCompactHeader{max-width:960px!important}

#wholesaleNumberManagement .wholesaleBookTable{min-width:760px}

#wholesaleNumberManagement .wholesaleBookProofCell{min-width:90px;max-width:180px;white-space:normal!important}

#wholesaleNumberManagement .wireProofTools{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}

#wholesaleNumberManagement .wireSingleProofButton{position:relative}

#wholesaleNumberManagement .wireProofTools :is(.wireSingleProofButton,.wireProofViewButton){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:34px;min-height:24px;height:24px;margin:0;padding:2px 5px!important;font-size:11px!important;line-height:18px!important;font-weight:600;border:1px solid #9dc4b1;border-radius:4px;background:#e8f3ec;color:#145b48;white-space:nowrap;cursor:pointer}

#wholesaleNumberManagement .wireSingleProofButton input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

#wholesaleNumberManagement .wireProofGallery{display:flex;flex-direction:column;gap:5px;padding-top:4px;max-width:170px;white-space:normal}

#wholesaleNumberManagement .wireProofGallery[hidden]{display:none!important}

#wholesaleNumberManagement .wireProofLink{font-size:12px;overflow-wrap:anywhere;white-space:normal;text-decoration:underline}



/* Align the wholesale heading, book table and lower disclosures to one width. */

@media screen{

 #monthlyLedger>#wholesaleTrackingPanel{width:100%!important;max-width:800px!important;min-width:0;box-sizing:border-box;padding:14px!important}

 #wholesaleTrackingPanel :is(.wholesaleCompactHeader,#wholesaleNumberManagement,.wholesaleDebtSection,.wholesaleReportActions,.wholesaleHistoryTools,.wholesaleReportPanel){width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}

 #wholesaleTrackingPanel #wholesaleNumberManagement{margin-left:0;margin-right:0}

 #wholesaleNumberManagement .wholesaleBookTableScroll{width:100%;max-width:100%;box-sizing:border-box}

 #wholesaleNumberManagement .wholesaleBookTable{width:100%!important;max-width:none!important;min-width:760px}

}



/* Match the two following cards to the wholesale management card. */

@media screen{

 #monthlyLedger>#wireRecordsPanel,

 #monthlyLedger>#inventoryPanel{width:100%!important;max-width:800px!important;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding:14px!important}

 #monthlyLedger>#wireRecordsPanel>summary,

 #monthlyLedger>#inventoryPanel>h3{width:100%;max-width:100%;box-sizing:border-box}

}



/* Daily report shares the same outer width and inset as the following cards. */

@media screen{

 #monthlyLedger>#monthlyAutoReport{width:100%!important;max-width:800px!important;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding:14px!important}

 #monthlyLedger>#monthlyAutoReport>.autoDailyTitleRow{width:100%;max-width:100%;box-sizing:border-box}

 #monthlyAutoReport>.autoDailySheet,#monthlyAutoReport>#autoDailySheet{width:100%;max-width:100%;min-width:0;box-sizing:border-box}

}



/* Give the income column more room while retaining the same report width. */

@media screen and (min-width:701px){

 #monthlyAutoReport #autoDailySheet>.autoReportGrid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}

 #monthlyAutoReport #autoDailySheet>.autoReportGrid>.autoReportColumn{min-width:0}

}



/* Shared day toolbar and compact recent phone-card checks. */

@media screen{

.cashierDayToolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.cashierDayToolbar>.cashierToolbarDate{flex:1;min-width:150px;max-width:260px}

.cashierToolbarDate>label{margin:0;display:block;font-size:0}

.cashierToolbarDate input{width:100%;min-width:0;box-sizing:border-box;height:40px}

#ledger.sharedDayActive .stationQuickButtons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:6px}

#ledger.sharedDayActive .stationQuickButtons button{width:100%;min-height:40px;padding:8px 4px;white-space:normal}

.phoneCardRecentRow td{background:#f3f7f5}

.phoneCardPanel .phoneCardHeading{margin-bottom:6px}

.phoneCardPanel .phoneCardHeading #phoneCardToggle{font-weight:700;background:#e5f0e9}

.phoneCardPanel .phoneCardForm{margin-top:0}

}

@media screen and (max-width:450px){.cashierDayToolbar{gap:6px}.cashierDayToolbar>#cashierDayBack{padding:7px}.cashierDayToolbar>.cashierToolbarDate{min-width:130px;flex:1}.phoneCardPanel{padding:10px}}



/* One date-and-balance card, retaining the original date input and wallet values. */

@media screen{

.cashierDayToolbar.cashierDayCombined{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}

.cashierDayCombined>.cashierToolbarDate{width:100%;max-width:320px;min-width:0;justify-self:end}

.cashierDayCombined>.cashierToolbarDate>label{color:#155d49;font-weight:700}

.cashierDayCombined .cashierToolbarDate input{height:44px;background:#edf6f0;border:2px solid #78a28e;font-weight:800}

.cashierDayCombined>#fxWalletHeader{grid-column:1/-1;width:100%;min-width:0;border-top:1px solid #d5e4dc;padding-top:12px}

.cashierDayCombined .fxWalletCards{gap:6px}

.cashierDayCombined .fxWalletCards .stat{min-width:0;padding:8px}

}

@layer ledger-typography{@media screen{

main .cashierDayCombined .cashierToolbarDate :is(input,.dateDisplayValue){font-size:18px!important;font-weight:800!important}

}}

@media screen and (max-width:450px){

.cashierDayToolbar.cashierDayCombined{gap:8px;grid-template-columns:auto minmax(0,1fr)}

.cashierDayCombined .cashierToolbarDate input{padding:6px;height:42px}

.cashierDayCombined .fxWalletCards .stat{padding:6px}

}



@media screen{.cashierHomeNav{gap:8px;flex-wrap:wrap}.cashierHomeNav #cashierDayReturn{background:#e7f2eb}}



@media screen{

.cashierDayChecks{margin:6px 0 10px;padding:12px;min-width:0}

.cashierDayChecks h3{margin:0 0 8px;color:#155d49}

.cashierDayChecksScroll{max-width:100%;overflow-x:auto}

.cashierDayChecks table{width:100%;min-width:520px;table-layout:fixed}

.cashierDayChecks th,.cashierDayChecks td{padding:7px 4px;border:1px solid #bdd0c5;text-align:center;overflow-wrap:anywhere}

.cashierDayChecks thead th{background:#dfedf0}

.cashierDayChecks .cashierCheckWarning{background:#fff0eb;color:#b03420;font-weight:700}

.cashierDayChecks small{display:block;margin-top:8px}

}



.counterIncomeMoved{display:none!important}

@media screen{.dailyIncomePanel{padding:12px;margin:6px 0 10px}.dailyIncomePanel table{width:100%;min-width:0;table-layout:fixed}.dailyIncomePanel th,.dailyIncomePanel td{padding:7px;border:1px solid #bdd0c5}.dailyIncomePanel th{width:48%;background:#edf4f1;text-align:left}.dailyIncomePanel input,.dailyIncomePanel textarea{width:100%;min-width:0;box-sizing:border-box}.dailyIncomePanel h3{margin:0 0 10px;color:#155d49}.dailyIncomePanel .toolbar{margin-top:10px}}



/* Transfer entry stays in closing summary; preserve existing counter payload fields. */

#editor .cashierOnlineIncome{display:none!important}



/* Match the compact internal-entry table throughout daily accounting screens. */

@layer ledger-typography{

 @media screen{

  main :is(#ledger,#editor,#monthlyAutoReport) :is(table,th,td,input,select,textarea,button,summary,label,small,p,output),

  main :is(#ledger,#editor,#monthlyAutoReport) table :is(strong,span,div,a){font-size:12px!important;line-height:1.35!important}

  main :is(#ledger,#editor,#monthlyAutoReport) :is(h3,.sectionhead h2){font-size:14px!important;font-weight:750!important;line-height:1.4!important}

  main :is(#ledger,#editor,#monthlyAutoReport) :is(.workbenchTableInput,.cardTableInput,.phoneCardTableInput),

  main #editor #cashExpenses .drawerLedgerRow>td>label{font-size:0!important;line-height:0!important}

 }

}

@media screen{

 :is(#ledger,#editor,#monthlyAutoReport) table{border-collapse:collapse;margin-top:6px;margin-bottom:8px;box-sizing:border-box}

 :is(#ledger,#editor,#monthlyAutoReport) table :is(th,td){padding:5px 6px!important;vertical-align:middle}

 :is(#ledger,#editor,#monthlyAutoReport) table :is(input,select){height:30px!important;min-height:30px!important;padding:4px 7px!important;margin:0!important;box-sizing:border-box;max-width:100%}

 :is(#ledger,#editor,#monthlyAutoReport) table textarea{min-height:54px;padding:5px 7px!important;margin:0!important;box-sizing:border-box;max-width:100%}

 :is(#ledger,#editor,#monthlyAutoReport) table button{min-height:28px;padding:4px 7px!important;box-sizing:border-box}

 :is(#ledger,#editor,#monthlyAutoReport) .toolbar{gap:6px;margin-top:8px;margin-bottom:8px}

 :is(#ledger,#editor,#monthlyAutoReport) :is(h3,p){margin-top:8px;margin-bottom:6px}

 #editor>.card,#editor #entryForm>.card{padding:12px;margin-bottom:10px}

 #monthlyAutoReport .autoReportGrid{gap:8px}

 #monthlyAutoReport .autoReportColumn{gap:8px}

 #monthlyAutoReport .autoReportColumn>table{margin-top:0;margin-bottom:6px}

 #ledger.sharedDayActive :is(.phoneCardPanel,.dailyIncomePanel,.cashierDayChecks){width:100%;max-width:100%;box-sizing:border-box;padding:10px;margin:6px 0 10px}

 #ledger.sharedDayActive .stationQuickPanel{gap:8px}

 :is(#ledger,#editor,#monthlyAutoReport) table input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important}

}

@media screen and (max-width:600px){

 :is(#ledger,#editor,#monthlyAutoReport) table :is(th,td){padding:4px!important}

 #monthlyAutoReport .autoReportGrid{gap:6px}

}



.unifiedPaymentOldTable{display:none!important}

.unifiedPaymentComparison :is(#cashNetSummary,#cashReconciliationResult){margin:0;padding:0}

.unifiedPaymentComparison :is(#cashNetSummary,#cashReconciliationResult) :is(h3,small){display:none!important}

.unifiedPaymentComparison :is(#cashNetSummary,#cashReconciliationResult) .stat{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none}

.unifiedPaymentComparison :is(#cashNetSummary,#cashReconciliationResult) strong{display:block;text-align:center}

.unifiedPaymentComparison tfoot th{background:#e8f1ed;text-align:left}

.unifiedPaymentComparison tfoot td{font-weight:750;text-align:center}



/* Hide counter fee disclosure while retaining its calculations and report data. */

#editor #cardFeesDisclosure{display:none!important}



#editor .redundantCounterOverview{display:none!important}



/* Compact counter entry: consistent readable type and less empty space. */

@layer ledger-typography{

 @media screen{

  main #editor :is(p,small,label,summary,button,output,table,th,td,input,select,textarea),

  main #editor table :is(strong,span,div,a){font-size:13px!important;line-height:1.25!important}

  main #editor :is(.stationHeadingLabel,.sectionhead h2,.finalCheckDisclosure>summary){font-size:15px!important;line-height:1.3!important;font-weight:750!important}

  main #editor :is(.workbenchTableInput,.cardTableInput,.phoneCardTableInput),

  main #editor #cashExpenses .drawerLedgerRow>td>label{font-size:0!important;line-height:0!important}

 }

}

@media screen{

 #editor{min-width:0}

 #editor #entryForm>.card{padding:9px!important;margin-top:0;margin-bottom:8px!important}

 #editor :is(.sectionhead,.cashierHomeNav){margin-bottom:7px;gap:6px}

 #editor .sectionhead :is(h2,h3){margin:0;padding:6px 8px!important}

 #editor :is(.grid,.twocol){gap:7px}

 #editor table{margin-top:4px!important;margin-bottom:5px!important}

 #editor table :is(th,td){padding:4px 5px!important}

 #editor table :is(input,select){height:28px!important;min-height:28px!important;padding:3px 5px!important;border-radius:5px;box-sizing:border-box}

 #editor table textarea{min-height:44px!important;padding:4px 5px!important}

 #editor button{min-height:28px;padding:5px 8px!important;border-radius:5px}

 #editor :is(.cashierHomeNav,.editorStationSwitcher){gap:5px}

 #editor :is(p,.muted){margin-top:5px;margin-bottom:5px}

 #editor :is(.cashTotals,.stats){gap:5px}

 #editor .stat{padding:6px!important}

 #editor .toolbar{gap:6px;margin-top:7px;margin-bottom:7px}

 #editor .receiptUpload{min-height:28px!important;padding:4px 6px!important}

 #editor table input[type=checkbox],#editor table input[type=radio]{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important}

}



@layer ledger-typography{@media screen and (max-width:600px){

 main #editor :is(p,small,label,summary,button,output,table,th,td,input,select,textarea),main #editor table :is(strong,span,div,a){font-size:14px!important}

 main #editor :is(.workbenchTableInput,.cardTableInput,.phoneCardTableInput),main #editor #cashExpenses .drawerLedgerRow>td>label{font-size:0!important}

}}



/* Remove inherited label padding and oversized controls inside counter tables. */

@media screen{

 #editor #entryForm>.card{padding:8px!important;margin-bottom:6px!important}

 #editor table :is(th,td){padding:2px 4px!important}

 #editor table :is(label.workbenchTableInput,label.cardTableInput),

 #editor .cashCountEntryTable .denom,

 #editor #cashExpenses .drawerLedgerRow>td>label{padding:0!important;margin:0!important;gap:0!important;min-height:0!important}

 #editor table input:not([type=file]):not([type=checkbox]):not([type=radio]),

 #editor table select,

 #editor #cashExpenses .drawerLedgerRow input:not([type=file]),

 #editor #cashExpenses .drawerLedgerRow select{height:24px!important;min-height:24px!important;padding:2px 5px!important;box-sizing:border-box}

 #editor #cashExpenses .drawerPurposeDetails{margin:0!important;padding:0!important}

 #editor #cashExpenses .drawerPurposeDetails>summary{height:auto!important;min-height:24px!important;padding:3px 5px!important;box-sizing:border-box;margin:0!important}

 #editor #cashExpenses .drawerLedgerRow .receiptUpload,

 #editor #cashExpenses .drawerLedgerRow button.smallbtn{height:24px!important;min-height:24px!important;padding:2px 4px!important;box-sizing:border-box}

 #editor #denoms{margin-bottom:6px!important}

 #editor :is(.workbenchBasicTableHost,.workbenchComparisonHost){margin-top:4px!important;margin-bottom:4px!important}

 #editor .drawerLedgerScroll{margin:0!important;padding:0!important}

 #editor .drawerLedgerActions{margin:6px 0!important;padding:0!important}

 #editor #cashExpenses .cashCompareRow{margin-top:6px!important;padding-top:6px!important}

}



#editor .unifiedPaymentComparison .unifiedCashSource{display:none!important}

#editor .unifiedPaymentComparison{width:100%!important;max-width:100%!important;table-layout:fixed}

#editor .unifiedPaymentComparison thead th:first-child{width:30%}

#editor .unifiedPaymentComparison thead th:not(:first-child){width:23.333%}

#editor .unifiedPaymentComparison td{min-width:0;overflow-wrap:anywhere}

#editor .unifiedPaymentComparison .unifiedCashValue{display:block!important;width:100%;text-align:center!important;white-space:normal;font-variant-numeric:tabular-nums}

#editor .unifiedPaymentComparison input{width:100%!important;min-width:0!important;max-width:100%!important}



@media screen{.depositScopeTools{max-width:100%;padding:10px;border:1px solid #adc9b8;border-radius:7px;background:#edf5ef;margin:6px 0 10px}.depositScopeTools label{max-width:250px}.depositScopeTools small{display:block;margin-top:6px}.depositAssignedPanel{margin-top:10px}.assignedDepositBatch{padding:10px;border:1px solid #c3d8cc;border-radius:7px;margin:7px 0}.assignedDepositBatch small{display:block;margin:6px 0}.assignedDepositBatch table{width:100%;min-width:0;table-layout:fixed}.assignedDepositBatch th,.assignedDepositBatch td{padding:5px;border:1px solid #bfd1c7;text-align:center}}



@media screen{.depositScopeTools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:end}.depositScopeTools>label{width:100%;max-width:none;min-width:0;margin:0}.depositScopeTools>small{grid-column:1/-1;margin-top:0}.depositScopeTools input:not([type=hidden]){width:100%;min-width:0;box-sizing:border-box;height:34px;font-weight:700}}



@media screen{.sharedRecordNotice{padding:8px 10px;margin:8px 0;border:1px solid #b6d1c3;border-radius:6px;background:#edf5ef;color:#195340;font-size:12px;line-height:1.5;max-width:100%;box-sizing:border-box}.sharedRecordNotice summary{cursor:pointer;font-weight:700;white-space:normal}.sharedRecordNotice p{margin:6px 0}.sharedRecordNotice button{padding:5px 8px}}



.loanHistoryTable{min-width:620px}.loanHistoryTable th:first-child{width:20%}.loanScheduleTable{min-width:700px}.loanScheduleTable th:nth-child(2){width:20%}.loanScheduleTable th:last-child{width:20%}



#autoDailySheet>.autoReportGrid>.autoReportFullWidth{grid-column:1 / -1;width:100%;max-width:100%;min-width:0;box-sizing:border-box}#autoDailySheet .autoReportFullWidth>.monthlyPaymentPanels{width:100%;max-width:none}#autoDailySheet .autoReportFullWidth>details{width:100%;box-sizing:border-box}



@media screen{

 #monthlyAutoReport #autoDailySheet .autoReportRightColumn .autoReportBlock table{margin-top:2px;margin-bottom:2px}

 #monthlyAutoReport #autoDailySheet .autoReportRightColumn .autoReportBlock th,

 #monthlyAutoReport #autoDailySheet .autoReportRightColumn .autoReportBlock td{padding:3px 4px!important}

}

@media screen and (min-width:701px){

 #monthlyAutoReport #autoDailySheet>.autoReportGrid>.autoReportRightColumn{contain:size;align-self:stretch;justify-content:space-between;gap:4px}

}



.wholesaleReviewCheck{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;cursor:pointer;flex-wrap:wrap}.wholesaleReviewCheck input{flex:0 0 auto}.wholesaleReviewActions{justify-content:flex-end}.wholesaleCombinedTable tfoot th{background:#e5f0e9}.wholesaleCombinedTable th:last-child{width:23%}.wholesaleCombinedTable td{overflow-wrap:anywhere}



#autoDailySheet .wholesaleCombinedTable table{min-width:680px;table-layout:fixed}

#autoDailySheet .wholesaleCombinedTable col:nth-child(1){width:42%}

#autoDailySheet .wholesaleCombinedTable col:nth-child(2){width:12%}

#autoDailySheet .wholesaleCombinedTable col:nth-child(3),#autoDailySheet .wholesaleCombinedTable col:nth-child(4){width:14%}

#autoDailySheet .wholesaleCombinedTable col:nth-child(5){width:18%}

#autoDailySheet .wholesaleCombinedTable th:last-child{width:auto}

#autoDailySheet .wholesaleCombinedTable .wholesaleCustomerCell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#autoDailySheet .wholesaleCombinedTable .wholesaleReviewCheck{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;gap:5px;width:auto!important;white-space:nowrap}

#autoDailySheet .wholesaleCombinedTable .wholesaleReviewCheck input[type=checkbox]{width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px;margin:0!important}

#autoDailySheet .wholesaleCombinedTable .wholesaleReviewCheck span{white-space:nowrap}

#autoDailySheet .wholesaleCombinedTable .wholesaleUnpaid{color:#b42318!important;font-weight:750}



#autoDailySheet .wholesaleCombinedTable th:first-child,#autoDailySheet .wholesaleCombinedTable .wholesaleCustomerCell{text-align:left;padding-left:8px!important}



#autoDailySheet .wholesaleDayTotals table{min-width:0;width:100%;table-layout:fixed}#autoDailySheet .wholesaleDayTotals .wholesaleDayTotalUnpaid{color:#b42318!important;font-weight:750}



#editor #counterIncomeCheck{width:100%;box-sizing:border-box}#editor .counterIncomeTable{width:100%;min-width:0;table-layout:fixed}#editor .counterIncomeTable th{width:48%;text-align:left}#editor .counterIncomeTable input,#editor .counterIncomeTable textarea{width:100%;min-width:0;box-sizing:border-box}#editor .counterIncomeTable strong{font-variant-numeric:tabular-nums}.dailyIncomeHistory>summary{cursor:pointer;font-weight:700}.dailyIncomeHistory>div{padding-top:8px}



@media screen{

 #editor .cashBankCompactGrid{grid-template-columns:minmax(0,1fr);grid-template-areas:"cash" "bank" "cheque" "expense";align-items:start}

 #editor .cashBankCompactGrid>.cashCountColumn{grid-area:cash;min-width:0}

 #editor .cashBankCompactGrid>.bankCheckColumn{grid-area:bank;min-width:0}

 #editor .cashBankCompactGrid>.drawerExpenseSection{grid-area:expense;min-width:0}

}

@media screen and (min-width:1200px){

 #editor{width:100%;max-width:1120px}

 #editor #entryForm>:not(.cashBankCompactGrid){max-width:680px}

 #editor #entryForm>.cashBankCompactGrid{width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"cash bank" "cash cheque" "expense expense";gap:10px 12px}

 #editor .cashBankCompactGrid>.card{margin-bottom:0;padding:10px;box-sizing:border-box}

 #editor .cashBankCompactGrid>.drawerExpenseSection{width:100%;max-width:680px}

 #editor .cashBankCompactGrid :is(.workbenchEntryTable,.unifiedPaymentComparison){min-width:0;width:100%;table-layout:fixed}

}



@media screen and (min-width:1200px){

 main>#editor{--ledger-panel-width:1080px!important;max-width:1080px!important;width:100%}

 #editor #entryForm>:not(.cashBankCompactGrid){max-width:100%}

 #editor #entryForm>.cashBankCompactGrid{grid-template-columns:minmax(0,9fr) minmax(0,11fr)}

 #editor .cashBankCompactGrid>.drawerExpenseSection{max-width:100%}

 #editor .cashCountColumn table input:not([type=checkbox]){height:26px!important;min-height:26px!important;padding:3px 5px!important}

 #editor .cashCountColumn .cashCountEntryTable th:first-child{width:40%}

 #editor .cashCountColumn .cashCountEntryTable th:nth-child(2){width:20%}

 #editor .cashCountColumn .cashCountEntryTable th:nth-child(3){width:40%}

 #editor .cashCountColumn .cashCountEntryTable input[type=number]{width:100%!important;max-width:80px!important;display:block;margin-left:auto!important;margin-right:auto!important}

}

@layer ledger-typography{

 @media screen and (min-width:1200px){

  main #editor .cashCountColumn :is(th,td,input,output,strong,span){font-size:14px!important;line-height:1.4!important}

 }

}



@media screen{#editor .cashBankCompactGrid>.chequeIncomeColumn{grid-area:cheque;min-width:0}#editor .chequeIncomeColumn table{width:100%;min-width:0;table-layout:fixed}}



/* One frame for cash, bank comparison and cheque entry. */

@media screen{

 #editor #entryForm>.cashBankCompactGrid{display:block}

 #editor .cashBankChequePanel{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px!important;grid-template-areas:"cash" "bank" "cheque"}

 #editor .cashBankChequePanel>.cashCountColumn{grid-area:cash}

 #editor .cashBankChequePanel>.bankCheckColumn{grid-area:bank}

 #editor .cashBankChequePanel>.chequeIncomeColumn{grid-area:cheque}

 #editor .cashBankChequePanel>.card{min-width:0;margin:0!important;padding:0!important;border:0;border-radius:0;box-shadow:none;background:transparent}

 #editor .cashBankChequePanel .sectionhead{margin-top:0}

 #editor .cashBankCompactGrid>.drawerExpenseSection{margin-top:8px}

 #editor .chequePhotoViewer{margin:3px 0 0;max-width:100%}

 #editor .chequePhotoViewer>summary{cursor:pointer;color:#17614d;font-weight:700;white-space:nowrap}

 #editor .chequePhotoViewer .receiptgallery{display:flex;flex-wrap:wrap;max-width:100%}

}

@media screen and (min-width:1200px){

 #editor .cashBankChequePanel{grid-template-columns:minmax(0,9fr) minmax(0,11fr);grid-template-areas:"cash bank" "cash cheque";gap:6px 12px;align-items:stretch}

 #editor .cashBankChequePanel>.cashCountColumn{border-right:1px solid #dce7df;padding-right:12px!important}

}



/* Counter expense and report check share one desktop row. */

@media screen{

 #editor #entryForm>.counterExpenseCheckPair{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:100%;align-items:start}

 #editor .counterExpenseCheckPair>.card{width:100%;min-width:0;max-width:100%;margin:0!important;box-sizing:border-box}

 #editor .counterExpenseCheckPair .counterIncomeTable{min-width:0;width:100%;table-layout:fixed}

 #editor .counterExpenseCheckPair #cashExpenses .drawerLedgerScroll{overflow-x:auto;max-width:100%}

}

@media screen and (min-width:1200px){

 #editor #entryForm>.counterExpenseCheckPair{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px}

 #editor .counterExpenseCheckPair #cashExpenses .drawerLedgerTable{width:100%;min-width:0;table-layout:fixed}

 #editor .counterExpenseCheckPair #cashExpenses .drawerLedgerTable :is(input,select){min-width:0;width:100%}

 #editor .counterExpenseCheckPair #cashExpenses .drawerLedgerTable button{max-width:100%;white-space:normal}

}



/* The active cash comparison is in section 03; hide its empty legacy frame. */

#editor #cashExpenses #cashReconciliation{display:none!important}



/* Compact drawer actions and align the final entry controls to the right. */

@media screen{

 #editor #cashExpenses #drawerLedgerAdd{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;max-width:100%;height:24px;min-height:24px;padding:2px 3px!important;white-space:nowrap!important;letter-spacing:-.3px}

 #editor #cashExpenses .drawerLedgerActions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}

 #editor #cashExpenses .drawerLedgerActions>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 112px;width:112px;max-width:100%;height:28px;min-height:28px;padding:3px 5px!important;white-space:nowrap}

 #editor #entryForm>.sticky{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px}

 #editor #entryForm>.sticky>button{width:auto;flex:0 0 auto;margin:0!important}

}

@layer ledger-typography{@media screen{

 main #editor #cashExpenses #drawerLedgerAdd{font-size:11px!important;line-height:1.2!important}

 main #editor #cashExpenses .drawerLedgerActions>button{font-size:12px!important;line-height:1.2!important}

}}

@media screen and (min-width:1200px){#editor #entryForm>.counterExpenseCheckPair{align-items:stretch}}



@media screen{

 #editor #cashExpenses #drawerCancelEntry,#editor #cashExpenses #drawerSaveAndExit{width:112px!important;min-width:0!important;height:28px!important;min-height:28px!important;white-space:nowrap!important;padding:3px 5px!important;flex:0 0 112px;box-sizing:border-box}

}



@media screen{

 .receiptViewActions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}

 .receiptViewActions :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 7px!important;white-space:nowrap}

 .receiptviewer>.receiptDownload{margin-left:8px}

 #editor .stationDocumentDetails>summary{cursor:pointer;font-weight:700;color:#17614d}

}



@media screen{

 #editor #entryForm>.stationDocumentDetails{width:100%;max-width:100%;margin:8px 0 0!important;padding:10px!important}

 #editor .stationDocumentDetails>.receiptgallery{padding-top:8px}

 #editor .stationDocumentDetails .receiptViewActions{display:flex!important;gap:6px}

 #editor .stationDocumentDetails .receiptDownload{display:inline-flex!important}

}



/* Compact the shared-day date and three balances without changing values. */

@media screen{

 #ledger .cashierDayToolbar.cashierDayCombined{padding:10px!important;gap:6px 10px;margin-bottom:10px}

 #ledger .cashierDayCombined>#cashierDayBack{min-height:32px;padding:6px 9px!important;margin:0}

 #ledger .cashierDayCombined .cashierToolbarDate input{height:36px;min-height:36px;padding:5px 8px}

 #ledger .cashierDayCombined>#fxWalletHeader{padding-top:7px;margin:0}

 #ledger .cashierDayCombined .fxWalletCards{gap:5px;margin:0}

 #ledger .cashierDayCombined .fxWalletCards .stat{padding:6px 8px!important;min-height:0;margin:0}

 #ledger .cashierDayCombined .fxWalletCards .stat small{margin:0 0 3px!important;line-height:1.3}

 #ledger .cashierDayCombined .fxWalletCards .stat strong{line-height:1.25}

 #ledger .cashierDayCombined .fxWalletCaption{display:block;margin:5px 0 0;line-height:1.35}

}



@media screen{

 .cashierDayChecks>summary,.cashierDayIncomeExpenseFold>summary{cursor:pointer;font-weight:700;color:#145b48;line-height:1.5}

 .cashierDayChecks>summary{margin:0}

 .cashierDayChecks[open]>summary,.cashierDayIncomeExpenseFold[open]>summary{margin-bottom:9px}

 .cashierDayIncomeExpenseFold{width:100%;min-width:0}

}



@media screen{

 #ledger>.cashierDayBottomSummaries{display:flex;flex-direction:column;gap:6px;width:100%;max-width:100%;margin-top:10px}

 #ledger>.cashierDayBottomSummaries[hidden]{display:none!important}

 #ledger .cashierDayBottomSummaries>details{width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0!important;padding:0!important;background:#fff;border:1px solid #dfe7e1;border-radius:10px;box-shadow:none}

 #ledger .cashierDayBottomSummaries>details>summary{display:list-item;box-sizing:border-box;min-height:36px;line-height:20px;padding:8px 10px!important;cursor:pointer;font-size:13px!important;font-weight:700;color:#145b48;margin:0!important}

 #ledger .cashierDayBottomSummaries>details[open]>:not(summary){margin-left:10px;margin-right:10px;max-width:calc(100% - 20px)}

 #ledger .cashierDayBottomSummaries>details[open]{padding-bottom:8px!important}

}



@media screen{

 #ledger #phoneCardPanel{padding:9px!important;max-width:650px;width:100%}

 #ledger #phoneCardPanel .phoneCardHeading{margin:0 0 5px;gap:5px}

 #ledger #phoneCardPanel #phoneCardToggle{min-height:28px;height:28px;padding:4px 8px!important;line-height:18px;font-size:12px!important}

 #ledger #phoneCardPanel #phoneCardForm{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0;padding:0!important;margin:0!important}

 #ledger #phoneCardPanel .phoneCardTable{margin:0!important;width:100%;min-width:0;table-layout:fixed}

 #ledger #phoneCardPanel .phoneCardTable :is(th,td){padding:3px 4px!important;line-height:1.3}

 #ledger #phoneCardPanel .phoneCardTable input{min-width:0;width:100%;height:27px;min-height:27px;padding:3px 5px!important}

 #ledger #phoneCardPanel .phoneCardCompactActions{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:6px 0 0!important;flex-wrap:wrap}

 #ledger #phoneCardPanel .phoneCardCompactActions>button,#ledger #phoneCardPanel .phoneCardHistory>summary{min-height:28px;box-sizing:border-box;padding:4px 7px!important;font-size:12px!important;line-height:18px;white-space:nowrap}

 #ledger #phoneCardPanel .phoneCardHistory{margin:0!important;padding:0!important;min-width:0}

 #ledger #phoneCardPanel .phoneCardHistory[open]{flex-basis:100%;width:100%}

 #ledger #phoneCardPanel .phoneCardHistory>summary{text-align:right;cursor:pointer}

}



@media screen{#phoneCardPanel:has(#phoneCardForm[hidden]) .phoneCardCompactActions>button{display:none!important}}



/* Reduce the gap after phone-card reconciliation on the selected-day page. */

@media screen{

 #ledger.sharedDayActive #phoneCardPanel{margin-top:4px!important;margin-bottom:4px!important}

 #ledger.sharedDayActive .stationQuickPanel{row-gap:4px}

 #ledger.sharedDayActive #forex{margin-top:0!important;padding-top:0!important}

 #ledger.sharedDayActive #forex>h2{margin-top:4px!important;margin-bottom:6px!important}

}



/* Day summaries now live at the bottom; suppress the empty former list frame. */

@media screen{

 #ledger.sharedDayActive:has(#cashierDayBottomSummaries>.cashierDayIncomeExpenseFold) #cashierRegisterContent>.card.tablewrap{display:none!important;margin:0!important;padding:0!important}

}



@media screen{

 #dailyIncomeHistory{display:none!important}

 .cashierStationIncomeMatrix{overflow-x:auto;max-width:100%}

 .cashierStationIncomeMatrix>table{min-width:680px!important;table-layout:fixed}

 .cashierStationIncomeMatrix th:first-child{width:140px!important}

 .cashierStationIncomeMatrix th:last-child,.cashierStationIncomeMatrix td:last-child{background:#e5f1e9;font-weight:700}

}



@media screen{.cashierStationIncomeMatrix tbody tr:nth-last-child(-n+2){background:#e5f1e9;font-weight:700}.cashierStationExpenseMatrix>table{min-width:820px!important}.cashierStationExpenseMatrix td:last-child{color:#9a3e12}}



@media screen{.cashierExpenseGrandTotal{margin-top:10px}.cashierExpenseGrandTotal td:last-child{font-weight:800;color:#9a3e12;background:#fff1e6}}



@media screen{.cashierIncomeWithoutSideTotal td:last-child,.cashierIncomeWithoutSideTotal th:last-child{background:inherit;font-weight:inherit}.cashierIncomeBottomTotals{margin-top:10px}.cashierIncomeBottomTotals td:last-child{font-weight:700;background:#e5f1e9}}



/* Internal entry uses the same readable 12px text as phone-card reconciliation. */

@layer ledger-typography{@media screen{

 main #ledger #forex :is(th,td,input,select,textarea,button,summary,small,p,output),

 main #ledger #forex table :is(strong,span,a){font-size:12px!important;line-height:1.35!important}

 main #ledger #forex .fxInputTable :is(th,input,select,textarea){font-weight:650!important}

}}

@media screen{

 #ledger #forex .fxInputTable :is(input,select){min-height:30px!important;box-sizing:border-box}

 #ledger #forex .fxInputTable th{overflow-wrap:break-word}

}



/* Increase internal-entry table text one step, including its field labels. */

@layer ledger-typography{@media screen{

 main #ledger #forex #fxForm .fxInputTable :is(th,td,label,input,select,textarea,summary,strong,span){font-size:13px!important;line-height:1.4!important;font-weight:700!important}

}}



@media screen{

 main #ledger>.cashierDayBottomSummaries{background:#fff;border:1px solid #dfe7e1;border-radius:12px;padding:12px;box-sizing:border-box;width:100%;max-width:100%;gap:5px}

 #ledger .cashierDayBottomSummaries>details{border-radius:6px}

 .cashierWholesaleSummaryTable{overflow-x:auto;max-width:100%}

 .cashierWholesaleSummaryTable table{min-width:580px!important}

 .cashierWholesaleSummaryTable td:last-child{color:#b42318;font-weight:700}

 #ledger .cashierDayBottomSummaries>details[open]::details-content{padding-bottom:6px}

}



/* Enlarge internal-entry text; preserve dark action-button typography. */

@layer ledger-typography{@media screen{

 main #ledger #forex #fxForm .fxInputTable :is(th,td,label,input,select,textarea,summary,strong,span){font-size:15px!important;line-height:1.4!important;font-weight:700!important}

 main #ledger #forex #fxForm button:not(.primary):not([aria-pressed=true]),

 main #ledger #forex .fxEntryModes button:not([aria-pressed=true]){font-size:14px!important;line-height:1.4!important;font-weight:700!important}

}}

@media screen{

 #ledger #forex #fxForm .fxInputTable :is(input,select){height:auto!important;min-height:34px!important;padding:5px 7px!important}

}



/* Fit daily wholesale summary tables to the available panel width. */

@media screen{

 #ledger .cashierWholesaleSummaryTable{width:100%;min-width:0;max-width:100%;overflow-x:visible}

 #ledger .cashierWholesaleSummaryTable>table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed!important}

 #ledger .cashierWholesaleSummaryTable :is(th,td){padding:3px 4px!important;letter-spacing:0;white-space:normal!important;overflow-wrap:anywhere!important;min-width:0}

 #ledger .cashierWholesaleSummaryTable :is(th,td):first-child{width:34%!important;text-align:left}

 #ledger .cashierWholesaleSummaryTable :is(th,td):nth-child(2){width:16%!important}

 #ledger .cashierWholesaleSummaryTable :is(th,td):nth-child(n+3){width:16.666%!important}

}

@layer ledger-typography{@media screen and (max-width:600px){

 main #ledger .cashierWholesaleSummaryTable :is(th,td){font-size:11px!important;line-height:1.35!important}

}}



/* Distinguish the two bank-balance totals from the bank detail rows. */

@media screen{

 .bankBalanceSection .autoReportBlock tbody>tr:last-child>td{background:#e0f0e5!important;border-top:2px solid #4d8d70!important;color:#104d39!important;padding-top:7px!important;padding-bottom:7px!important}

}

@layer ledger-typography{@media screen{

 main #monthlyAutoReport .bankBalanceSection .autoReportBlock tbody>tr:last-child>td{font-weight:800!important}

 main #monthlyAutoReport .bankBalanceSection .autoReportBlock tbody>tr:last-child>td.num{font-size:16px!important;line-height:1.35!important;font-weight:800!important}

}}



/* Let right-hand daily tables use their natural height instead of nested scrolling. */

@media screen{

 #monthlyLedger>#monthlyAutoReport{max-width:920px!important;padding:12px!important}

 #monthlyAutoReport #autoDailySheet>.autoReportGrid>.autoReportRightColumn{contain:none!important;align-self:start!important;justify-content:flex-start!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:5px}

 #monthlyAutoReport #autoDailySheet .autoReportRightColumn .autoReportBlock{flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}

 #monthlyAutoReport #autoDailySheet .autoReportRightColumn .autoReportBlock :is(table,tbody){height:auto!important;max-height:none!important;overflow:visible!important}

 #monthlyAutoReport .autoReportFullWidth{gap:5px}

 #monthlyAutoReport .autoReportFullWidth>details{margin-top:0!important;margin-bottom:0!important}

 #monthlyAutoReport .autoReportFullWidth>details>summary{white-space:normal;line-height:1.4}

}



@media screen{

 #monthlyAutoReport .unifiedDayAuditButton{display:block;width:100%;margin:0;padding:9px 12px!important;background:#e0f0e5;border:1px solid #9fbeac;font-weight:750;color:#14543f;min-height:36px}

 .unifiedDayAuditDialog{width:min(1120px,96vw);max-width:96vw;max-height:90vh;padding:12px;border:1px solid #abc8b6;border-radius:10px;overflow:auto;color:#173e35}

 .unifiedDayAuditTools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}

 .unifiedDayAuditTools h2{margin:0;font-size:18px}

 .unifiedDayAuditBody{max-width:100%;overflow-x:auto}

 .unifiedDayAuditTable{width:100%;min-width:660px;table-layout:fixed;border-collapse:collapse}

 .unifiedDayAuditTable :is(th,td){border:1px solid #bdd0c5;padding:5px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}

 .unifiedDayAuditTable th:nth-child(2){width:26%}

 .unifiedDayAuditSection th{background:#cce2d4;text-align:left;font-weight:800}

 .unifiedDayAuditTotal td{background:#edf5ef;font-weight:750}

 .unifiedDayAuditTable td:nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums}

}



@media screen{

 .unifiedDayAuditTable{min-width:780px}

 .unifiedDayAuditTable th:last-child{width:90px}

 .unifiedAuditCheckLabel{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font-size:12px;font-weight:700}

 .unifiedAuditCheckLabel input{width:16px;height:16px;min-width:16px;margin:0;padding:0}

 .unifiedDayAuditFooter{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:12px}

 .unifiedDayAuditStatus{flex-basis:100%;margin:0;text-align:right}

}



@media screen{

 .unifiedDayAuditDialog{width:min(1000px,96vw)}

 .unifiedDayAuditTable{table-layout:fixed;min-width:720px}

 .unifiedDayAuditTable th:nth-child(1){width:14%}

 .unifiedDayAuditTable th:nth-child(2){width:28%}

 .unifiedDayAuditTable th:nth-child(3){width:5%;white-space:nowrap}

 .unifiedDayAuditTable th:nth-child(n+4):nth-child(-n+7){width:11%}

 .unifiedDayAuditTable th:last-child{width:9%}

 .unifiedDayAuditTable :is(th,td){padding:4px;line-height:1.35}

 .unifiedDayAuditTools{flex-wrap:wrap}

 .unifiedDayAuditTools h2{margin-right:auto}

 .unifiedDayAuditDownload{white-space:nowrap}

}



/* Align all four closing-summary work areas to the same responsive width. */

@media screen{

 #monthlyLedger>:is(#monthlyAutoReport,#wholesaleTrackingPanel,#wireRecordsPanel,#inventoryPanel){width:100%!important;max-width:920px!important;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding:12px!important}

 #monthlyLedger>:is(#wholesaleTrackingPanel,#wireRecordsPanel,#inventoryPanel)>:is(summary,h2,h3,.sectionhead){width:100%;max-width:100%;box-sizing:border-box}

}



/* Let the saved wire list fill its enclosing card, matching the action row. */

@media screen{

 #wireRecordsPanel>div{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}

 #wireRecordsPanel .compactBankExpenseTable{width:100%!important;max-width:none!important;min-width:0!important;table-layout:fixed!important}

 #wireRecordsPanel .compactBankExpenseTable th:first-child{width:26%!important}

 #wireRecordsPanel .compactBankExpenseTable th:nth-child(2){width:18%!important}

 #wireRecordsPanel .compactBankExpenseTable th:nth-child(n+3){width:14%!important}

 #wireRecordsPanel .compactBankExpenseTable :is(th,td){min-width:0;overflow-wrap:anywhere;box-sizing:border-box}

}



/* Phone wire records keep the card width while giving values their own lines. */

@media screen and (max-width:600px){

 #wireRecordsPanel .compactBankExpenseTable{display:block!important;width:100%!important;min-width:0!important}

 #wireRecordsPanel .compactBankExpenseTable>tr,#wireRecordsPanel .compactBankExpenseTable>thead{display:none!important}

 #wireRecordsPanel .compactBankExpenseTable>tbody{display:flex!important;flex-direction:column;gap:7px;width:100%}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;border:1px solid #bdd2c5;border-radius:6px;overflow:hidden}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td{display:block!important;width:auto!important;min-width:0;max-width:100%;padding:6px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(-n+2){grid-column:1/-1;text-align:left}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td::before{display:block;color:#526f61;font-weight:700;margin-bottom:3px}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(1)::before{content:'日期／对象'}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(2)::before{content:'网汇单号／凭证'}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(3)::before{content:'待还 US$'}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(4)::before{content:'已还 US$'}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(5)::before{content:'未还 US$'}

 #wireRecordsPanel .compactBankExpenseTable>tbody>tr>td:nth-child(6)::before{content:'还款日期'}

 #wireRecordsPanel .compactBankExpenseTable .wireProofTools{display:flex;flex-wrap:wrap;gap:5px;max-width:100%;margin-top:4px}

}



body.warehouseCardReportPage{display:block;background:#f2f5f2}

body.warehouseCardReportPage>main{width:100%;max-width:1100px;margin:0 auto;padding:20px;background:white}

.warehouseCardReportPage table{width:100%;min-width:0;table-layout:fixed}

.warehouseCardReportPage :is(th,td){padding:8px 6px;border:1px solid #bfd0c5;overflow-wrap:anywhere;font-size:13px}

.warehouseCardReportPage th:first-child{width:29%}.warehouseCardReportPage th:nth-child(2){width:10%}

.warehouseCardReportPage .warehouseCardTotal{background:#dfefe4;font-weight:800}

.warehouseCardReportPage p{font-size:12px;margin:7px 0;line-height:1.5}

@media print{body.warehouseCardReportPage{background:white}body.warehouseCardReportPage>main{width:100%;max-width:none;margin:0;padding:0}body.warehouseCardReportPage .toolbar{display:none}body.warehouseCardReportPage{page:warehouseCardSheet}.warehouseCardReportPage tr{break-inside:avoid}.warehouseCardReportPage h1{font-size:18px}}

@page warehouseCardSheet{size:A4 landscape;margin:10mm}



/* Return from standalone report previews, including mobile full-screen mode. */

.reportReturnBar{position:sticky;top:0;z-index:50;display:flex;align-items:center;padding:8px 0;margin:0 0 10px;background:var(--bg,#f1f6f3);}

.reportReturnBar .button{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;white-space:nowrap;}

@media print{.reportReturnBar{display:none!important;}}



.reportPreviewOnly>.reportChoiceActions{padding:7px 9px;gap:0}.reportPreviewOnly .reportViewLink{padding:6px 8px;font-size:12px;}



body.wholesaleMonthlyPreview{max-width:1100px;margin:0 auto;padding:12px;}

.wholesaleMonthlyPreview h1{font-size:22px;line-height:1.3;margin:8px 0 12px}.wholesaleMonthlyPreview h2{font-size:16px;margin:16px 0 6px;}

.wholesaleMonthlyPreview .wholesaleSummaryTable td:first-child{width:30%;background:#edf5ef;}.wholesaleMonthlyPreview .wholesaleSummaryTable{width:100%;table-layout:fixed;}

.wholesaleMonthlyPreview .wholesalePrintTable th,.wholesaleMonthlyPreview .wholesalePrintTable td{overflow-wrap:anywhere;white-space:normal;}

@media print{body.wholesaleMonthlyPreview{max-width:none!important;padding:0!important}.wholesaleMonthlyPreview h1{font-size:16pt!important}.wholesaleMonthlyPreview h2{font-size:11pt!important}.wholesaleMonthlyPreview .wholesalePrintTable,.wholesaleMonthlyPreview .wholesaleSummaryTable{width:100%!important;table-layout:fixed!important;zoom:1!important}.wholesaleMonthlyPreview .reportPreviewScroll td,.wholesaleMonthlyPreview .reportPreviewScroll th{font-size:8.5pt!important;line-height:1.25!important;padding:3pt!important;overflow-wrap:anywhere!important}.wholesaleMonthlyPreview thead{display:table-header-group;}.wholesaleMonthlyPreview tr{break-inside:avoid;}}



.reportPdfActions{display:inline-flex;gap:8px;margin:0 0 8px;}@media print{.reportPdfActions{display:none!important;}}



/* Daily review: keep negative cash positions visible without changing balances. */

.wholesaleMonthGapsPanel{margin:8px 0;padding:10px;border:1px solid #bdd0c5;border-radius:5px;background:#fff}

.wholesaleMonthGapsPanel h3{margin:0;font-size:14px}

.wholesaleMonthGapsPanel .toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}

.wholesaleMonthGapsPanel input[type=month]{width:155px;min-width:0}

.wholesaleMonthGapsPanel p{font-size:12px;margin:6px 0}

.wholesaleMonthGapsTable{width:100%;table-layout:fixed;min-width:650px}

.wholesaleMonthGapsTable :is(th,td){padding:5px;font-size:12px;overflow-wrap:anywhere}

.wholesaleMonthGapsTable th:nth-child(3){width:24%}

.wholesaleMonthGapsTable th:last-child{width:22%}

.wholesaleMonthGapsPanel{padding:0!important;width:100%;box-sizing:border-box}

.wholesaleMonthGapsPanel>summary{padding:9px 12px;background:#e2efe7;border-bottom:1px solid #bdd0c5;font-weight:700;font-size:12px}

.wholesaleMonthGapsPanel>.toolbar{justify-content:flex-end;padding:7px 10px;margin:0}

.wholesaleMonthGapsPanel>p{padding:0 10px}

.wholesaleMonthGapsPanel .wholesaleBookTableScroll{width:100%;max-width:none}

.wholesaleMonthGapsTable{width:100%!important;max-width:none!important;min-width:780px;table-layout:fixed}

.wholesaleMonthGapsTable th:nth-child(1){width:12%}

.wholesaleMonthGapsTable th:nth-child(2){width:12%}

.wholesaleMonthGapsTable th:nth-child(3){width:20%}

.wholesaleMonthGapsTable th:nth-child(4){width:12%}

.wholesaleMonthGapsTable th:nth-child(5){width:10%}

.wholesaleMonthGapsTable th:nth-child(6){width:16%}

.wholesaleMonthGapsTable th:nth-child(7){width:18%}

.wholesaleGapNoteCell textarea{width:100%;min-width:0;box-sizing:border-box;font-size:12px;resize:vertical}

.wholesaleGapNoteCell button{font-size:11px;padding:3px 6px;margin-top:3px}

.wholesaleOldEntriesHidden{display:none!important}

#wholesaleMonthGapsPanel .wholesaleMonthGapsTable{border-collapse:collapse}

#wholesaleMonthGapsPanel .wholesaleMonthGapsTable :is(th,td){border:1px solid #c5d7cb;padding:5px;font-size:12px;vertical-align:middle}

#wholesaleMonthGapsPanel .wireProofTools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}

#wholesaleMonthGapsPanel .wireSingleProofButton{position:relative;overflow:hidden}

#wholesaleMonthGapsPanel .wireProofTools :is(.wireSingleProofButton,.wireProofViewButton){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:34px;min-height:24px;height:24px;margin:0;padding:2px 5px!important;font-size:11px!important;line-height:18px!important;font-weight:600;border:1px solid #9dc4b1;border-radius:4px;background:#e8f3ec;color:#145b48;white-space:nowrap;cursor:pointer}

#wholesaleMonthGapsPanel .wireSingleProofButton input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

#wholesaleMonthGapsPanel .wireProofGallery{display:flex;flex-direction:column;gap:5px;padding-top:4px;max-width:100%;white-space:normal}

#wholesaleMonthGapsPanel .wireProofGallery[hidden]{display:none!important}

#wholesaleMonthGapsPanel .wireProofLink{font-size:12px;overflow-wrap:anywhere;white-space:normal;text-decoration:underline}

#wholesaleMonthGapsPanel .wholesaleGapNoteCell textarea{display:block;width:100%;height:42px;min-height:42px;margin:0;padding:3px;box-sizing:border-box}

#wholesaleMonthGapsPanel .wholesaleGapNoteCell button{min-height:24px;height:24px;padding:2px 5px!important;font-size:11px!important;line-height:18px}



/* Clear Chinese type across wholesale management, including native controls. */

#wholesaleTrackingPanel,#wholesaleTrackingPanel :is(table,th,td,summary,label,input,select,textarea,button,a,p,small,strong){font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif!important;text-rendering:optimizeLegibility}

#wholesaleTrackingPanel{color:#142e25;font-size:14px;line-height:1.5}

#wholesaleTrackingPanel :is(th,td){font-size:13.5px!important;line-height:1.5!important;font-weight:500;font-variant-numeric:tabular-nums}

#wholesaleTrackingPanel :is(th,summary,strong){font-weight:700}

#wholesaleTrackingPanel :is(summary,label,p,small){font-size:13px!important;line-height:1.5!important}

#wholesaleTrackingPanel :is(input,select,textarea){font-size:14px!important;font-weight:500;line-height:1.5;color:#142e25}

#wholesaleTrackingPanel :is(button,a.button,.wireSingleProofButton){font-size:12px!important;font-weight:600;line-height:1.4!important}

#wholesaleTrackingPanel .wholesaleGapNoteCell textarea{min-height:46px;height:46px}

#wholesaleTrackingPanel :is(#wholesaleNumberManagement,#wholesaleMonthGapsPanel) .wireProofTools :is(.wireSingleProofButton,.wireProofViewButton),#wholesaleTrackingPanel #wholesaleMonthGapsPanel .wholesaleGapNoteCell button{font-size:12px!important;font-weight:600;line-height:1.4!important}

.unifiedDayAuditTable td.unifiedAuditNegative{color:#b42318!important;background:#fff0ed!important;font-weight:800}

.unifiedDayAuditTable td:nth-child(n+4):nth-child(-n+7){white-space:nowrap;overflow-wrap:normal}



/* Fit the full review table inside its dialog, including the final check label. */

@media screen{

 .unifiedDayAuditDialog{box-sizing:border-box}

 .unifiedDayAuditTable{min-width:0;max-width:100%;box-sizing:border-box}

 .unifiedDayAuditTable :is(th,td){box-sizing:border-box;padding:4px 3px}

 .unifiedDayAuditTable th:nth-child(1){width:14%}

 .unifiedDayAuditTable th:nth-child(2){width:24%}

 .unifiedDayAuditTable th:nth-child(3){width:5%}

 .unifiedDayAuditTable th:nth-child(n+4):nth-child(-n+7){width:11%}

 .unifiedDayAuditTable th:last-child{width:13%}

 .unifiedDayAuditTable td:last-child{text-align:center;white-space:nowrap}

 .unifiedDayAuditTable .unifiedAuditCheckLabel{gap:3px;max-width:100%;font-size:11px}

 .unifiedDayAuditTable .unifiedAuditCheckLabel input{width:14px;height:14px;min-width:14px;flex-shrink:0}

}

@media screen and (max-width:639px){

 .unifiedDayAuditTable{min-width:620px}

 .unifiedDayAuditTable td:nth-child(n+4):nth-child(-n+7){font-size:11px}

 .unifiedDayAuditBody>p:first-child::after{content:'手机可左右滑动表格，查看全部金额和核对框。';display:block;margin-top:5px;font-weight:700}

}



/* Keep the missing-number controls and explanation within its disclosure header. */

#wholesaleMonthGapsPanel>summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;cursor:pointer}

#wholesaleMonthGapsPanel>summary::before{content:"▸"}

#wholesaleMonthGapsPanel[open]>summary::before{content:"▾"}

#wholesaleMonthGapsPanel>summary .toolbar{padding:0;margin:0;display:inline-flex}

#wholesaleMonthGapsPanel>summary p{margin:0;flex:1 1 280px;font-size:12px!important;line-height:1.45!important}

#wholesaleMonthGapsPanel>summary input[type=month]{width:145px;min-height:30px;margin:0;padding:3px 6px}



/* Clear type for wire records and non-financial cold-store records. */

:is(#wireRecordsPanel,#inventoryPanel),:is(#wireRecordsPanel,#inventoryPanel) :is(table,th,td,summary,label,input,select,textarea,button,a,p,small,strong,h3){font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif!important;text-rendering:optimizeLegibility}

:is(#wireRecordsPanel,#inventoryPanel){font-size:14px;line-height:1.5;color:#142e25}

:is(#wireRecordsPanel,#inventoryPanel) :is(th,td){font-size:13px!important;line-height:1.5!important;font-weight:500;font-variant-numeric:tabular-nums}

:is(#wireRecordsPanel,#inventoryPanel) :is(th,summary,strong,h3){font-weight:700}

:is(#wireRecordsPanel,#inventoryPanel) :is(summary,label,p,small){font-size:13px!important;line-height:1.5!important}

:is(#wireRecordsPanel,#inventoryPanel) :is(input,select,textarea){font-size:14px!important;font-weight:500;line-height:1.5;color:#142e25}

:is(#wireRecordsPanel,#inventoryPanel) :is(button,a.button,.wireSingleProofButton){font-size:12px!important;font-weight:600;line-height:1.4!important}



/* Slightly larger bold type without enlarging the existing controls or panels. */

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(th,td,label,p,small,summary,h3){font-size:14px!important;font-weight:700!important;line-height:1.3!important}

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(input,select,textarea){font-size:14px!important;font-weight:700!important;line-height:1.25!important}

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(button,a.button,.wireSingleProofButton){font-size:13px!important;font-weight:700!important;line-height:1.2!important}

#monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td,input,select){font-size:14px!important;font-weight:700!important}

#monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(input,select){padding-top:2px!important;padding-bottom:2px!important}

#monthlyLedger #inventoryPanel #inventoryMovementEditor :is(th,td,input,select){font-size:14px!important;font-weight:700!important}

@media(max-width:600px){

 #monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(th,td,label,p,small,summary,h3,input,select,textarea){font-size:13px!important}

 #monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td,input,select),#monthlyLedger #inventoryPanel #inventoryMovementEditor :is(th,td,input,select){font-size:13px!important}

 #monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(button,a.button,.wireSingleProofButton){font-size:12px!important}

}



@layer ledger-typography {

@media screen {

/* Slightly larger bold type without enlarging the existing controls or panels. */

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(th,td,label,p,small,summary,h3){font-size:14px!important;font-weight:700!important;line-height:1.3!important}

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(input,select,textarea){font-size:14px!important;font-weight:700!important;line-height:1.25!important}

#monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(button,a.button,.wireSingleProofButton){font-size:13px!important;font-weight:700!important;line-height:1.2!important}

#monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td,input,select){font-size:14px!important;font-weight:700!important}

#monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(input,select){padding-top:2px!important;padding-bottom:2px!important}

#monthlyLedger #inventoryPanel #inventoryMovementEditor :is(th,td,input,select){font-size:14px!important;font-weight:700!important}

@media(max-width:600px){

 #monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(th,td,label,p,small,summary,h3,input,select,textarea){font-size:13px!important}

 #monthlyLedger #wireRecordsPanel.wireCompactSummaryLayout .wireEntryTable :is(th,td,input,select),#monthlyLedger #inventoryPanel #inventoryMovementEditor :is(th,td,input,select){font-size:13px!important}

 #monthlyLedger :is(#wireRecordsPanel,#inventoryPanel) :is(button,a.button,.wireSingleProofButton){font-size:12px!important}

}



}

}



@layer ledger-typography{@media screen{

#monthlyLedger #wireRecordsPanel .wireEntryTable label{font-size:0!important;line-height:0!important}

}@media screen and (max-width:600px){

#monthlyLedger #inventoryPanel .inventoryCompactControls>label:first-child{width:100%!important;flex:0 0 100%}

}}



.unifiedDayAuditTable .unifiedAuditTone-income>:is(th,td){background:#e5f2fa!important}

.unifiedDayAuditTable .unifiedAuditTone-expense>:is(th,td){background:#fff4cf!important}

.unifiedDayAuditTable .unifiedAuditNegative{color:#b42318!important;font-weight:700}



@layer ledger-typography{@media screen{main .unifiedDayAuditTable .unifiedAuditTotalAmount{font-size:13px!important;font-weight:800!important}}}



/* Match the PDF's compact income/expense columns, with a separate bank area. */

.unifiedDayAuditDialog{width:min(1280px,98vw)!important;max-width:98vw!important}

.auditColumnLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}

.auditColumnLayout>section{min-width:0;overflow-x:auto}.auditColumnLayout h3{margin:4px 0 6px}

.auditColumnLayout>.auditBankSection{grid-column:1/-1;margin-top:6px}

.auditColumnLayout .auditCompactTable{width:100%;min-width:0!important;table-layout:fixed;margin:0 0 8px}

.auditColumnLayout .auditCompactTable :is(th,td){width:auto!important;padding:3px!important;line-height:1.2;overflow-wrap:anywhere}

.auditColumnLayout .auditCompactTable td:last-child{white-space:normal!important}

.auditColumnLayout .auditCompactTable th:nth-child(2){width:32%!important}

.auditColumnLayout .auditTable-wholesale th:nth-child(2){width:30%!important}

.auditColumnLayout .auditCompactTable .unifiedAuditCheckLabel{display:inline-flex;gap:2px;white-space:normal}

@media(max-width:850px){.auditColumnLayout{grid-template-columns:minmax(0,1fr)}.auditColumnLayout>.auditBankSection{grid-column:1}.auditColumnLayout .auditCompactTable{min-width:490px!important}}



.auditExpenseColumn>.auditBankSection{margin-top:8px;min-width:0;overflow-x:auto}.auditExpenseColumn>.auditBankSection h3{margin:3px 0 5px}



.auditCashExpenseHeading{padding:5px 7px;background:#fff0ba;border-left:4px solid #b57c00;border-radius:3px;color:#533c08}.auditCashExpenseEmpty{margin:3px 0 6px}.auditTable-income tr>td[colspan="4"]{padding:2px 4px!important}



/* Reduce only the vertical whitespace of cash expense and wallet tables. */

.auditColumnLayout :is(.auditTable-expense,.auditTable-cashBalance){margin-bottom:4px}

.auditColumnLayout :is(.auditTable-expense,.auditTable-cashBalance) :is(th,td){padding:1px 3px!important;line-height:1.1!important}

.auditColumnLayout :is(.auditTable-expense,.auditTable-cashBalance) .unifiedAuditCheckLabel{line-height:1.1!important;margin:0}



@layer ledger-typography{@media screen{

main .auditColumnLayout .auditCompactTable :is(th,td,label,span){font-size:11px!important}

main .auditColumnLayout .auditCompactTable .unifiedAuditTotalAmount{font-size:12px!important;font-weight:800!important}

}}

.auditIncomeColumn>.auditCashExpenseHeading{margin-top:7px}



.auditWholesaleReserved{box-sizing:border-box}.auditBankChequeHeading{margin:6px 0!important;padding:4px 6px;background:#fff4cf}.auditTable-bankCheque :is(th,td){padding:1px 3px!important;line-height:1.1!important}



.auditIncomeColumn>.auditBankSection{margin-top:8px;min-width:0;overflow-x:auto}.auditChequeReserved{box-sizing:border-box}

.autoReportBankDisclosure.dailyCashExpenseSummary,

.autoReportBankDisclosure.dailyBankActivity,

.autoReportBankDisclosure.wholesaleDayPanel { display: none !important; }

.autoDailyFooterActions > button,

.autoDailyFooterActions > a { display: none !important; }


/* One compact disclosure per photo area; existing upload/view/download controls stay inside. */
.unifiedPhotoDisclosure{position:relative;min-width:0;margin:3px 0;border:1px solid #c4d8ce;border-radius:5px;padding:0;background:#fff}
.unifiedPhotoDisclosure>summary{cursor:pointer;padding:5px 7px;font-size:12px;font-weight:700;color:#153c35}
.unifiedPhotoDisclosure[open]>:not(summary){margin:5px 7px}
.unifiedPhotoDisclosure .receiptgallery{display:flex;flex-direction:column;gap:5px}
.unifiedPhotoDisclosure .receiptcard{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;padding:3px}
.unifiedPhotoDisclosure .receiptthumb,.unifiedPhotoDisclosure .receiptcard>small{display:none}
.unifiedPhotoDisclosure .receiptViewActions{display:flex;align-items:center;gap:7px}
.unifiedPhotoDisclosure input[type=file]{max-width:100%;min-width:0;font-size:12px}
.unifiedPhotoDisclosure .wireProofGallery{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
/* Compact invoice inputs, with one dedicated photo action per invoice. */
@media screen {
 #wholesalePanel .wholesaleSimpleScroll{overflow-x:auto}
 #wholesalePanel .wholesaleSimpleScroll>table{min-width:900px;table-layout:fixed}
 #wholesalePanel .wholesaleSimpleScroll :is(th,td){padding:2px!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:12%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:22%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(3){width:9%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(4),#wholesalePanel .wholesaleSimpleScroll th:nth-child(5),#wholesalePanel .wholesaleSimpleScroll th:nth-child(6){width:10%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(7){width:17%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(8){width:10%!important}
 #wholesalePanel .wholesaleSimpleScroll td>input,#wholesalePanel .simpleCardControl{height:24px!important;min-height:24px!important}
 #wholesalePanel .simpleWholesalePhotoCell{vertical-align:middle}
 #wholesalePanel .simpleWholesalePhotoUpload{display:inline-flex;position:relative;align-items:center;justify-content:center;margin:0;padding:3px 4px;border:1px solid #abc7d8;border-radius:4px;background:#eaf3f8;color:#174a68;font-size:11px;line-height:18px;white-space:nowrap;cursor:pointer}
 #wholesalePanel .simpleWholesalePhotoUpload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 #wholesalePanel .simpleWholesalePhotoCell details{margin-top:2px;font-size:11px}
 #wholesalePanel .simpleWholesalePhotoCell :is(button,a){padding:2px 4px;font-size:11px}
}
/* Keep compact money columns and separate card inputs beside each invoice. */
@media screen {
 #wholesalePanel .wholesaleSimpleScroll>table{min-width:930px}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:10%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:12%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(3){width:24%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(4){width:7%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(5),#wholesalePanel .wholesaleSimpleScroll th:nth-child(6),#wholesalePanel .wholesaleSimpleScroll th:nth-child(7){width:8%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(8){width:11%!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(9){width:12%!important}
 #wholesalePanel .wholesaleSimpleScroll :is(td:nth-child(4),td:nth-child(5),td:nth-child(6),td:nth-child(7))>input{padding:2px!important;font-size:11px!important}
}
/* Empty handwritten evidence must retain a visible upload entrance. */
#editor #stationDocumentUpload .stationDocumentDetails{display:block!important}
#editor #stationDocumentUpload .stationDocumentDetails>summary{display:block;padding:6px 8px;border:1px solid #bfd3c7;border-radius:4px;background:#f5faf7;white-space:nowrap;cursor:pointer}

/* Display-only terminal and telephone reconciliation below audit bank balances. */
.unifiedDayAuditDialog .auditMachineReference{margin-top:10px;min-width:0}
.unifiedDayAuditDialog .auditMachineReference h3{background:#fff3cd;padding:5px;font-size:12px}
.unifiedDayAuditDialog .auditReferenceTable{width:100%;table-layout:fixed;background:#fff8df;font-size:11px}
.unifiedDayAuditDialog .auditReferenceTable :is(th,td){background:#fff8df;padding:4px;overflow-wrap:anywhere}
.unifiedDayAuditDialog .auditReferenceTable td{text-align:right;color:#000}
.unifiedDayAuditDialog .auditReferenceTable td.unifiedAuditNegative{color:#c00}

.unifiedDayAuditDialog .auditReferenceTable th:first-child{width:24%}
.unifiedDayAuditDialog .auditReferenceTable td{white-space:nowrap;font-size:10px}
.unifiedDayAuditDialog .auditReferenceTable th{font-size:10px}

/* Fixed, balanced widths for the gross/net card comparison. */
.unifiedDayAuditDialog .auditColumnLayout .auditCombinedCardTable th{width:13%!important}
.unifiedDayAuditDialog .auditColumnLayout .auditCombinedCardTable th:first-child{width:22%!important}
.unifiedDayAuditDialog .auditCombinedCardTable :is(th,td){padding:3px!important;font-size:10px!important}
.unifiedDayAuditDialog .auditCardNetDetails{white-space:normal;font-size:10px;text-align:left}
.unifiedDayAuditDialog .auditCardNetDetails summary{cursor:pointer;font-size:9px}
.unifiedDayAuditDialog .auditCardNetDetails .unifiedAuditCheckLabel{display:inline-flex;white-space:normal}

/* Compact, readable wage slips and a print action beside preview close. */
#payroll .payrollSlipPreviewShell{padding-top:12px!important}
#payroll .payrollSlipPreviewToolbar{display:flex;justify-content:flex-end;gap:8px;margin-bottom:8px}
#payroll .payrollSlipPreviewToolbar .payrollPreviewClose{position:static}
#payroll .payrollSlipPrintButton{font-size:13px;font-weight:700;padding:7px 13px;background:#176451;color:white}
#payroll .payrollSlip{height:auto;min-height:0;padding:12px;font-family:Arial,"Microsoft YaHei",sans-serif;color:#111}
#payroll .payrollSlip h2,#payroll .payrollSlip h3{margin:4px 0}
#payroll .payrollSlip h4{margin:8px 0}
#payroll .payrollSlip .payrollCompany{margin:3px 0}
#payroll .payrollSlipGrid{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px}
#payroll .payrollSlipGrid table{width:100%;min-width:0;table-layout:fixed}
#payroll .payrollSlipGrid th,#payroll .payrollSlipGrid td{font-size:14px;line-height:1.2;padding:4px 6px}
#payroll .payrollSlipGrid table:first-child :is(th,td):first-child{width:72%}
#payroll .payrollSlipGrid table:last-child :is(th,td):first-child{width:70%}
#payroll .payrollSlipGrid :is(th,td):last-child{text-align:right;white-space:nowrap}
#payroll .payrollSignature{margin-top:8px}
@media print{
 body.printPayroll .payrollSlipPreviewToolbar{display:none!important}
 body.printPayroll #payrollPrintArea{padding:7mm!important}
 body.printPayroll #payroll .payrollSlip{width:196mm;max-width:196mm;height:auto!important;min-height:0!important;padding:3mm!important;margin:0!important;line-height:1.15;font-size:11pt;color:#000}
 body.printPayroll #payroll .payrollSlip+.payrollSlip{margin-top:4mm!important;padding-top:4mm!important}
 body.printPayroll #payroll .payrollSlip h2{font-size:13pt;margin:1mm 0}
 body.printPayroll #payroll .payrollSlip h3{font-size:11pt;margin:1mm 0}
 body.printPayroll #payroll .payrollSlip h4{font-size:10.5pt;margin:2mm 0}
 body.printPayroll #payroll .payrollSlip p{font-size:9pt;line-height:1.2;margin:1mm 0}
 body.printPayroll #payroll .payrollSlipGrid{gap:2mm;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
 body.printPayroll #payroll .payrollSlipGrid :is(th,td){font-size:10.5pt!important;line-height:1.15;padding:.8mm 1.2mm!important;color:#000}
 body.printPayroll #payroll .payrollSignature{margin-top:2mm!important}
}

/* Put the employer contribution below the amount table, above a clear signing area. */
#payroll .payrollSlip .payrollEmployerNis{margin:5px 0 0 auto;width:60%;text-align:right;font-size:12px;line-height:1.3}
#payroll .payrollSlip .payrollSignature{margin-top:24px;min-height:24px;text-align:left}
@media print{
 body.printPayroll #payroll .payrollSlip .payrollEmployerNis{width:60%;margin:1.5mm 0 0 auto;font-size:8.5pt;line-height:1.2;text-align:right}
 body.printPayroll #payroll .payrollSlip .payrollSignature{margin-top:6mm!important;min-height:6mm;line-height:1.4;text-align:left}
}

/* Consistent tabular presentation for monthly and register income. */
#monthlyIncomePanel .monthlyIncomeTable{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;margin:10px 0;font-size:13px}
#monthlyIncomePanel .monthlyIncomeTable th,#monthlyIncomePanel .monthlyIncomeTable td{border:1px solid #bfd2c8;padding:8px 9px;line-height:1.4}
#monthlyIncomePanel .monthlyIncomeTable thead th{background:#d6e8df;text-align:left}
#monthlyIncomePanel .monthlyIncomeTable th:first-child{width:60%;text-align:left;font-weight:500;overflow-wrap:anywhere}
#monthlyIncomePanel .monthlyIncomeTable td,#monthlyIncomePanel .monthlyIncomeTable thead th:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#monthlyIncomePanel .monthlyIncomeTable .monthlyGroupIncomeTotal{font-weight:700;background:#e4f2f8}
#monthlyIncomePanel .monthlyIncomeTable .monthlyGroupIncomeTotal th{font-weight:700}
@media(max-width:500px){#monthlyIncomePanel .monthlyIncomeTable :is(th,td){padding:6px 5px;font-size:12px}#monthlyIncomePanel .monthlyIncomeTable th:first-child{width:55%}}

.dayDepositProofSlots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px}
.dayDepositProofSlot{display:flex;flex-direction:column;gap:5px;min-width:0}
.dayDepositProofSlot button{padding:6px 3px;font-size:12px;white-space:nowrap}
.dayDepositProofSlot small{font-size:11px}
@media(max-width:450px){.dayDepositProofSlots{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Deposit proofs use the same green folding entrance as handwritten slips. */
.dayDepositProofSlot{display:block;position:relative;background:#d0e5dc;border-radius:3px}
.dayDepositProofSlot>summary{padding:7px 5px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.dayDepositProofContent{display:flex;flex-direction:column;gap:6px;padding:8px;background:#fff;border:1px solid #c7d9d0;border-radius:3px}
.dayDepositProofSlot:not([open])>.dayDepositProofContent{display:none}

/* Three independent folding bars without a shared white card. */
#monthlyArchiveCard{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;display:flex;flex-direction:column;gap:10px}
#depositHistoryRecords,
#monthlyArchiveCard>#bankOlderArchive,
#monthlyArchiveCard>#monthlyIncomePanel{box-sizing:border-box;width:100%;background:#e5f0ea!important;border:1px solid #c6d9cf!important;border-radius:6px!important;padding:0 12px!important;box-shadow:none!important;margin:0!important}
#depositHistoryRecords{margin:10px 0!important}
#depositHistoryRecords>summary,
#monthlyArchiveCard>#bankOlderArchive>summary,
#monthlyArchiveCard>#monthlyIncomePanel>summary{padding:10px 0!important;cursor:pointer;font-weight:600;line-height:1.5}
#depositHistoryRecords[open],#monthlyArchiveCard>#bankOlderArchive[open],#monthlyArchiveCard>#monthlyIncomePanel[open]{padding-bottom:10px!important}

/* Widen the cashier home toward the right while retaining responsive sizing. */
@media screen{
 #ledger:not(.sharedDayActive){width:100%;max-width:720px;box-sizing:border-box}
 #ledger:not(.sharedDayActive) #cashierDepositHome,
 #ledger:not(.sharedDayActive) #cashierDepositHome>section,
 #ledger:not(.sharedDayActive) #cashierDepositHome .monthlyArchiveCard{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}

/* Align the merged deposit controls, cards and archive bars to the home width. */
@media screen{
 #ledger:not(.sharedDayActive) #cashierDepositHome :is(#bankSummary,#batchManagement,#batchHistory,#batchDetail,#batchPreviewPanel,.batchHistoryItem,.batchTools),
 #ledger:not(.sharedDayActive) #cashierDepositHome :is(#bankSummary,#batchManagement,#batchDetail)>.toolbar,
 #ledger:not(.sharedDayActive) #cashierDepositHome #batchDetail>.card{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}
 #ledger:not(.sharedDayActive) #cashierDepositHome #batchManagement>.toolbar{margin-left:0;margin-right:0}
}

.depositHistoryTables{margin:10px 0}
.depositHistoryTables table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;margin:8px 0}
.depositHistoryTables :is(th,td){border:1px solid #bfd2c8;padding:7px 6px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
.depositHistoryTables th{background:#e4efe9;font-weight:700}
.depositBatchInfoTable th{width:20%}
.depositRunTableScroll{overflow-x:auto}
.depositHistoryTables .depositRunTable{min-width:520px}
.depositRunTable :is(th,td):nth-child(n+4){text-align:right;white-space:nowrap}
.depositRunTable :is(th,td):nth-child(2){width:19%}
.depositRunTable :is(th,td):nth-child(3){width:18%}

/* Keep new deposit tables outside the old mobile card-cell presentation. */
#batchHistory .depositHistoryTables table{display:table!important;table-layout:fixed;width:100%;border-collapse:collapse}
#batchHistory .depositHistoryTables table.depositRunTable{min-width:520px}
#batchHistory .depositHistoryTables thead{display:table-header-group!important}
#batchHistory .depositHistoryTables tbody{display:table-row-group!important}
#batchHistory .depositHistoryTables tr{display:table-row!important;background:transparent;border:0;border-radius:0;margin:0;padding:0}
#batchHistory .depositHistoryTables :is(th,td){display:table-cell!important;border:1px solid #bfd2c8!important;padding:7px 6px!important;vertical-align:middle;line-height:1.4;font-size:12px;word-break:normal;overflow-wrap:normal}
#batchHistory .depositHistoryTables td::before{display:none!important;content:none!important}
#batchHistory .depositBatchInfoTable th{width:20%}
#batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(1){width:18%;white-space:nowrap}
#batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(2){width:20%;white-space:normal}
#batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(3){width:18%;white-space:normal}
#batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(n+4){text-align:right;white-space:nowrap}

/* Fill the deposit card and use the same 12px type as the deposit detail table. */
@media screen{
 #cashierDepositHome #batchPreviewPanel .previewDepositEditor,
 #cashierDepositHome #batchPreviewPanel .previewDepositFields,
 #cashierDepositHome #batchPreviewPanel .depositMethodTable,
 #cashierDepositHome #batchPreviewPanel .manualDepositTotals,
 #cashierDepositHome #batchPreviewPanel .depositCarryPreview{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}
 #cashierDepositHome :is(#bankSummary,#batchManagement) table,
 #cashierDepositHome :is(#bankSummary,#batchManagement) table :is(th,td,label,input,select,button,strong,small,span),
 #cashierDepositHome #batchPreviewPanel .previewDepositEditor :is(h3,label,input,select,button,strong,small,span){font-size:12px!important;line-height:1.4!important}
 #cashierDepositHome #batchPreviewPanel .depositMethodTable th:first-child{width:30%!important}
 #cashierDepositHome #batchPreviewPanel .depositMethodTable th:not(:first-child){width:23.333%!important}
}

@media screen{
 #ledger #cashierDepositHome #bankSummary #batchPreviewPanel .previewDepositEditor :is(table,th,td,label,input,select,button,strong,small,span,h3),
 #ledger #cashierDepositHome #bankSummary table :is(th,td,label,input,select,button,strong,small,span),
 #ledger #cashierDepositHome #batchManagement table :is(th,td,label,input,select,button,strong,small,span){font-size:12px!important;line-height:1.4!important}
}

/* Match employee management to the cashier home content width. */
@media screen{
 main #employees{width:100%!important;max-width:720px!important;min-width:0;box-sizing:border-box}
 main #employees>.card{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}
 main #employees :is(.employeeControls,#employeeForm,#employeeLetterSettings,#companyContracts,.employeeHelp){width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}
/* Employee wage settings share the employee page width and spacing. */
#employees .employeeWagePanel>summary{cursor:pointer;background:#dcece3;padding:8px;font-weight:700;border-radius:4px}
#employees .employeeWagePanel .employeeFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#employees .employeeWagePanel input,#employees .employeeWagePanel select{width:100%;min-width:0;font-size:13px}
#employees .employeeWagePanel>div>label{margin-bottom:7px}
#employees .employeeWagePanel small{display:block;line-height:1.5}
@media(max-width:500px){#employees .employeeWagePanel .employeeFields{grid-template-columns:1fr}}

/* Four aligned weekly-pay groups; compact screens wrap in the same order. */
#payroll .payrollQuick .payrollRateCell,#payroll .payrollQuick .payrollMealCell{display:grid;gap:6px}
#payroll .payrollQuick .payrollMealCancelLabel{display:flex;align-items:center;gap:6px;min-height:32px;font-size:13px}
#payroll .payrollQuick .payrollMealCancelLabel input{width:16px;height:16px;min-width:16px;padding:0;margin:0}
#payroll .payrollQuick .payrollRateCell label{display:grid;gap:5px}

/* Compact meal, Sunday and holiday amounts with their adjacent controls. */
#payroll .payrollQuick{grid-template-columns:minmax(76px,.8fr) repeat(3,minmax(0,1.65fr));gap:8px;align-items:start}
#payroll .payrollQuick>.payrollPresetCell:not(.payrollRateCell){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:5px}
#payroll .payrollQuick label{font-size:12px;margin:0;min-width:0}
#payroll .payrollQuick input:not([type=checkbox]){height:29px;padding:4px 5px;font-size:13px;width:100%;min-width:0}
#payroll .payrollQuick .payrollPresetCell .payrollPresetCount{display:grid;grid-template-columns:1fr;gap:5px;margin:0;width:43px;font-size:12px}
#payroll .payrollQuick .payrollMealCancelLabel{display:flex;flex-direction:row;align-items:center;gap:3px;min-height:29px;white-space:nowrap;font-size:11px}
#payroll .payrollQuick .payrollMealCancelLabel input{width:14px;height:14px;min-width:14px;margin:0;flex:none}
@media(max-width:600px){#payroll .payrollQuick{grid-template-columns:minmax(76px,.8fr) repeat(3,minmax(145px,1.65fr));overflow-x:auto;padding-bottom:5px}}

/* Five compact groups on one desktop row. */
#payroll .payrollQuick{grid-template-columns:minmax(60px,.7fr) minmax(84px,.9fr) minmax(155px,1.6fr) repeat(2,minmax(110px,1.3fr));gap:7px}
#payroll .payrollQuick>label{display:grid;gap:5px}
#payroll .payrollQuick .payrollPresetCell .payrollPresetCount{width:34px}
#payroll .payrollQuick .payrollMealLabel{min-width:0}
@media(max-width:650px){#payroll .payrollQuick{grid-template-columns:65px 88px 155px 115px 115px;overflow-x:auto;padding-bottom:5px}}

/* Distinct, quiet backgrounds identify each weekly-pay input group. */
#payroll .payrollQuick>div,#payroll .payrollQuick>label{padding:5px;border-radius:5px;border:1px solid #cddde5}
#payroll .payrollQuick{grid-template-columns:minmax(60px,.7fr) minmax(84px,.9fr) minmax(155px,1.6fr) repeat(2,minmax(110px,1.3fr));gap:5px}
#payroll .payrollQuick>.payrollRateCell{background:#eaf3fb;border-color:#c9ddec}
#payroll .payrollQuick>label{background:#eaf5ee;border-color:#cde2d4}
#payroll .payrollQuick>.payrollMealCell{background:#fff6d9;border-color:#eadcad}
#payroll .payrollQuick>.payrollPresetCell:nth-child(4){background:#f1edfa;border-color:#ddd3ed}
#payroll .payrollQuick>.payrollPresetCell:nth-child(5){background:#fff0e6;border-color:#ecd6c7}
#payroll .payrollSettings{border:1px solid #d5e2da;border-radius:6px;padding:8px 10px;background:#f7faf8}
#payroll .payrollSettings>summary{font-weight:700;color:#245c49;margin:0}
#payroll .payrollSettings[open]>summary{margin-bottom:8px}
#payroll .payrollOtherHelp{font-size:12px;color:#52685e;line-height:1.6;margin:5px 0 10px}
@media(max-width:650px){#payroll .payrollQuick{grid-template-columns:65px 88px 155px 115px 115px}}

/* Default wage rules are maintained in employee management. Keep submitted values intact. */
#payroll .payrollSettings{display:none!important}

#payroll .payrollToolsGroup>summary{cursor:pointer;font-weight:700;background:#dfede7;padding:10px;border-radius:5px}
#payroll .payrollToolsGroup>details{margin:10px 0 0;padding:8px;border:1px solid #dbe6df;border-radius:5px;box-shadow:none;max-width:none;background:transparent}
#payroll .payrollToolsGroup>details>summary{font-size:12px;font-weight:700;cursor:pointer;padding:6px}

/* Keep day/date labels together, separate attendance from pay amounts. */
#payroll .payrollHours label{justify-content:flex-start;gap:5px}
#payroll .payrollHours .payrollDayName{min-height:0;line-height:17px;white-space:nowrap}
#payroll .payrollHours .payrollDayDate{margin:0;line-height:17px;min-height:0}
#payroll .payrollHours{margin-bottom:22px}

/* Two saved employees share one A4 portrait sheet, with a signature area each. */
@media print{
 body.printPayroll #payroll #payrollPrintArea.payrollPairSheet{width:210mm!important;height:auto!important;padding:7mm!important;display:block!important;break-inside:avoid!important;page-break-inside:avoid!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip{width:196mm!important;max-width:196mm!important;height:136mm!important;min-height:136mm!important;padding:2.5mm!important;margin:0!important;break-before:auto!important;break-after:auto!important;break-inside:avoid!important;page-break-before:auto!important;page-break-after:auto!important;box-sizing:border-box!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip+.payrollSlip{margin:3mm 0 0!important;padding-top:2.5mm!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h2{font-size:12pt!important;margin:.5mm 0!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h3{font-size:10pt!important;margin:.5mm 0!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h4{font-size:10pt!important;margin:1mm 0!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip p{font-size:8pt!important;line-height:1.1!important;margin:.5mm 0!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlipGrid :is(th,td){font-size:9.5pt!important;line-height:1.08!important;padding:.45mm 1mm!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollEmployerNis{font-size:7.5pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollSignature{margin-top:5mm!important;min-height:6mm!important}
}

/* Employer NIS and rounding details stay below the amount table, above signing. */
#payroll .payrollSlip .payrollEmployerNis{width:60%;max-width:60%;margin:5px 0 0 auto!important;text-align:right!important;box-sizing:border-box}
@media print{
 body.printPayroll #payroll .payrollSlip .payrollEmployerNis,
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollEmployerNis{width:60%!important;max-width:60%!important;margin:1mm 0 0 auto!important;text-align:right!important;line-height:1.2!important}
}

/* Increase the right-hand printed note by two points in each print layout. */
@media print{
 body.printPayroll #payroll .payrollSlip .payrollEmployerNis{font-size:10.5pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollEmployerNis{font-size:9.5pt!important}
}

/* Larger printed body; retain the small right-hand supporting note. */
@media print{
 body.printPayroll #payroll .payrollSlipGrid :is(th,td){font-size:12.5pt!important}
 body.printPayroll #payroll .payrollSlip h2{font-size:15pt!important}
 body.printPayroll #payroll .payrollSlip h3{font-size:13pt!important}
 body.printPayroll #payroll .payrollSlip h4{font-size:12.5pt!important}
 body.printPayroll #payroll .payrollSlip p{font-size:11pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlipGrid :is(th,td){font-size:11.5pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h2{font-size:14pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h3{font-size:12pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h4{font-size:12pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip p{font-size:10pt!important}
 body.printPayroll #payroll .payrollSlip .payrollEmployerNis{font-size:8.5pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollEmployerNis{font-size:7.5pt!important}
}

#employees .employeeFileFold>summary,#employees .employeePayslips>summary{cursor:pointer;background:#e0eee7;border-radius:5px;padding:8px;font-weight:700}
#employees .employeeFileFold>summary h2{display:inline;font-size:14px;margin:0}
#employees .employeeFileFold[open]>summary{margin-bottom:14px}
#employees .employeePayslips table{width:100%;table-layout:fixed;font-size:12px;border-collapse:collapse}
#employees .employeePayslips th,#employees .employeePayslips td{padding:6px;border:1px solid #cdded4;overflow-wrap:anywhere}
#employees .employeePayslips th{background:#eaf3ed}
#employees .employeePayslips td:not(:first-child){font-variant-numeric:tabular-nums}
#employees .employeePayslips button{padding:5px;font-size:12px}

/* One visual language across employee-management sections. */
#employees>.card{width:100%;box-sizing:border-box;border:1px solid #d6e3dc;border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fff;box-shadow:none}
#employees>.employeeControls{padding:14px}
#employees>.employeeControls h2{font-size:15px;margin-bottom:10px}
#employees>.employeeControls #employeeCount{margin:8px 0 0;font-size:12px}
#employees>.card>summary,#employees #companyContracts>summary,#employees .employeeWagePanel>summary{background:#e0eee7!important;color:#174b3c!important;padding:9px 10px!important;border-radius:5px!important;font-size:13px!important;font-weight:700!important;cursor:pointer;line-height:1.5}
#employees>.card>summary h2{color:inherit;font-size:inherit;font-weight:inherit;margin:0;display:inline}
#employees>.card[open]>summary{margin-bottom:12px}
#employees .employeeContractTemplateEntry{margin:2px 0 12px;font-size:12px;padding:6px 9px}

#containerManagement{max-width:960px;width:100%}
#containerManagement .card{padding:16px;border:1px solid #d6e3dc;border-radius:10px;margin-bottom:10px}
#containerManagement h2{font-size:16px;margin-bottom:10px}
#containerManagement summary{font-weight:700;color:#174b3c;cursor:pointer}
#containerManagement p{font-size:13px}
.containerArchiveTable{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.containerArchiveTable th,.containerArchiveTable td{padding:9px;border:1px solid #cadcd2;overflow-wrap:anywhere}
.containerArchiveTable th{background:#e0eee7}

/* Saved inventory logs use the full disclosure body, including proof controls. */
#monthlyLedger #inventoryPanel .inventoryBottomDisclosures,
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel,
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel>div,
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel .autoReportBlock{
 width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box;
}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel table{
 display:table!important;width:100%!important;max-width:none!important;min-width:650px!important;table-layout:fixed!important;box-sizing:border-box;
}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel :is(th,td){overflow-wrap:anywhere;white-space:normal}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(1){width:16%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(2){width:8%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(3){width:10%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(4){width:16%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(5){width:10%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(6){width:12%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(7){width:14%}
#monthlyLedger #inventoryPanel .inventoryAllLogsPanel th:nth-child(8){width:14%}

#inventoryPanel .inventoryAllLogsPanel .wireProofDisclosure{min-width:0!important;max-width:100%!important;box-sizing:border-box}
#inventoryPanel .inventoryAllLogsPanel .wireProofTools{display:flex!important;flex-wrap:wrap;min-width:0;max-width:100%}
#inventoryPanel .inventoryAllLogsPanel .wireSingleProofButton{position:relative;display:inline-flex!important;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;max-width:100%;min-width:0;white-space:normal!important;cursor:pointer;padding:5px 8px!important}
#inventoryPanel .inventoryAllLogsPanel .wireSingleProofButton input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;opacity:0!important;cursor:pointer;margin:0!important;padding:0!important}
#inventoryPanel .inventoryAllLogsPanel .wireProofGallery{min-width:0;max-width:100%;overflow-wrap:anywhere}

#containerManagement .containerArchiveParent>summary,#containerManagement .containerArchiveGroup>summary{background:#deeee6;padding:10px;cursor:pointer;font-weight:700}
#containerManagement .containerArchiveGroup{margin:10px 0;border:1px solid #c6d8cb;border-radius:6px;padding:8px}
#containerManagement .containerSourceScroll{width:100%;overflow:auto;max-height:70vh;margin-top:10px}
#containerManagement .containerSourceTable{width:100%;min-width:1150px;table-layout:auto;border-collapse:collapse;font-size:13px}
#containerManagement .containerSourceTable :is(td,th){border:1px solid #c6d8cb;padding:6px;white-space:pre-wrap;min-width:65px;max-width:340px;overflow-wrap:anywhere;text-align:left}
#containerManagement .containerSourceTable tr:first-child{position:sticky;top:0;background:#deeee6}

/* Compact source rows while preserving legible product names and whole numbers. */
#containerManagement .containerSourceScroll{max-height:clamp(300px,62vh,760px);margin-top:8px}
#containerManagement .containerSourceTable{min-width:100%;width:100%;font-size:12px;line-height:1.3;table-layout:auto}
#containerManagement .containerSourceTable :is(td,th){padding:4px 5px;min-width:42px;max-width:230px;height:auto;line-height:1.3;vertical-align:middle;white-space:normal;word-break:normal;overflow-wrap:break-word;font-size:12px}
#containerManagement .containerSourceTable tr>:first-child{min-width:34px;width:34px;white-space:nowrap}
#containerManagement .containerSourceTable .containerProductCell{min-width:180px;width:230px;max-width:280px;white-space:normal;text-align:left}
#containerManagement .containerSourceTable .containerNumericCell{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:normal}
#containerManagement .containerSourceTable tr:first-child{z-index:1}
@media(max-width:600px){#containerManagement .containerSourceTable .containerProductCell{min-width:160px;width:190px}#containerManagement .containerSourceScroll{max-height:62vh}}

#containerManagement .containerSourceTable td.containerMergedHeading{max-width:none;min-width:0;width:auto;text-align:left;white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.4;padding:5px 8px;font-size:13px}

#containerManagement .containerSourceScroll{max-height:70vh;min-height:200px;overflow:auto;background:#fff}
#containerManagement .containerSourceHeading{padding:10px 12px;border:1px solid #c6d8cb;background:#f4f8f6;font-size:14px;line-height:1.55;margin-bottom:8px}
#containerManagement .containerSourceHeading>div:first-child{font-size:16px;font-weight:700}
#containerManagement .containerSourceTable{font-size:14px;line-height:1.35;min-width:100%;width:max-content;max-width:none;table-layout:auto}
#containerManagement .containerSourceTable :is(th,td){font-size:14px;line-height:1.35;padding:6px 8px;min-width:48px;max-width:250px;height:auto;vertical-align:middle}
#containerManagement .containerSourceTable .containerProductCell{min-width:210px;width:260px;max-width:300px}
#containerManagement .containerSourceTable thead{position:sticky;top:0;z-index:2;background:#deeee6}
#containerManagement .containerSourceTable thead th{background:#deeee6;white-space:normal;text-align:center}
#containerManagement .containerSourceTable tr:first-child{position:static}
#containerManagement .containerSourceTable tbody tr:nth-child(even){background:#f7faf8}
#containerManagement .containerSourceTable .containerRepeatedHeader{background:#deeee6;font-weight:700}
#containerManagement .containerSourceTable tbody th{color:#527063;font-weight:500}
#containerManagement .containerSourceTable .containerNumericCell{white-space:nowrap}
#containerManagement .containerExpenseCompact .containerSourceTable{width:100%;min-width:640px;font-size:13px;line-height:1.15}
#containerManagement .containerExpenseCompact .containerSourceTable :is(td,th){font-size:13px;line-height:1.15;padding:3px 5px;min-width:55px;max-width:240px;height:auto}
#containerManagement .containerExpenseCompact .containerSourceTable .containerProductCell{min-width:160px;width:190px;max-width:210px}
#containerManagement .containerExpenseCompact .containerSourceTable tr>:first-child{min-width:28px;width:28px}
#containerManagement .containerExpenseCompact .containerSourceHeading{padding:5px 7px;font-size:13px;line-height:1.25;margin-bottom:4px}
#containerManagement .containerExpenseEditor{border:1px solid #9cbfaf;background:#f4f8f6;padding:8px;margin:8px 0}
#containerManagement .containerExpenseMeta{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px}
#containerManagement .containerExpenseEditor input{box-sizing:border-box;width:100%;min-width:0;padding:3px 5px;height:29px;font-size:13px}
@media(max-width:600px){#containerManagement .containerSourceTable :is(th,td){font-size:13px;padding:5px 7px}#containerManagement .containerSourceTable .containerProductCell{min-width:180px;width:210px}#containerManagement .containerSourceHeading{font-size:13px}#containerManagement .containerSourceScroll{max-height:65vh}}

#containerManagement .containerExpenseCompact .containerSourceTable :is(td,th){min-width:0;max-width:none;overflow-wrap:break-word}
#containerManagement .containerExpenseCompact .containerSourceTable .containerProductCell{min-width:0;width:auto;max-width:none}

/* Align date preview heading, amounts and action row on the same edges. */
#ledger .ledgerDayGroup,#ledger .ledgerDayGroup>summary,#ledger .cashierDatePreview{width:100%;max-width:none;box-sizing:border-box}
#ledger .cashierDatePreview .fxDaySummary{width:100%;max-width:none;margin:8px 0 12px;box-sizing:border-box}
#ledger .cashierDatePreview .fxDaySummary table{width:100%;max-width:none;min-width:0;table-layout:fixed;box-sizing:border-box}
#ledger .cashierDatePreview .fxDaySummary :is(th,td){width:25%;box-sizing:border-box;white-space:normal;overflow-wrap:break-word}
#ledger .cashierDatePreview .cashierDayActions{width:100%;max-width:none;box-sizing:border-box}

/* Keep currency amounts together, with balanced label and value columns. */
#ledger .cashierDatePreview .fxDaySummary th{width:22%}
#ledger .cashierDatePreview .fxDaySummary td{width:28%;white-space:nowrap;overflow-wrap:normal}
#ledger .cashierDatePreview .fxDaySummary td[colspan]{width:auto}
@media(max-width:600px){#ledger .cashierDatePreview .fxDaySummary :is(th,td){padding:6px 3px;font-size:12px}}


#ledger .cashierDatePreview .fxDaySummary table tr>th{width:22%!important}
#ledger .cashierDatePreview .fxDaySummary table tr>td{width:28%!important}
#ledger .cashierDatePreview .fxDaySummary table tr>td[colspan]{width:78%!important}


/* Give internal-entry actions enough room without changing record data. */
@media screen{#ledger.sharedDayActive{max-width:760px} main>#forex{--ledger-panel-width:760px!important;width:100%;max-width:760px!important}}
#forex :is(.fxIncomeRecords,.fxExpenseRecords) th:first-child{width:auto!important}
#forex :is(.fxIncomeRecords,.fxExpenseRecords) th:nth-child(2){width:145px!important}
#forex :is(.fxIncomeRecords,.fxExpenseRecords) th:nth-child(3){width:205px!important}
#forex td.fxCompactActions{white-space:nowrap;vertical-align:top}
#forex td.fxCompactActions>button,#forex td.fxCompactActions>.unifiedPhotoDisclosure{display:inline-block!important;vertical-align:top;margin:0 3px 0 0!important}
#forex td.fxCompactActions>.unifiedPhotoDisclosure{width:auto!important;min-width:0!important;max-width:none!important}
#forex td.fxCompactActions>.unifiedPhotoDisclosure>summary{white-space:nowrap!important;padding:5px!important}
#forex td.fxCompactActions>.unifiedPhotoDisclosure[open]{white-space:normal}


#forex #fxDayDisclosure table{width:100%;table-layout:fixed}
#forex #fxDayDisclosure table th:first-child{width:auto!important}
#forex #fxDayDisclosure table th:nth-child(2){width:130px!important}
#forex #fxDayDisclosure table th:last-child{width:205px!important}
#forex #fxDayDisclosure tbody td:last-child{white-space:nowrap;vertical-align:top}
#forex #fxDayDisclosure tbody td:last-child>button,#forex #fxDayDisclosure tbody td:last-child>details{display:inline-block!important;vertical-align:top;margin:0 3px 0 0!important}
#forex #fxDayDisclosure tbody td:last-child>details{width:auto!important;min-width:0!important;max-width:none!important}
#forex #fxDayDisclosure tbody td:last-child>details>summary{white-space:nowrap!important;padding:5px!important}
#forex #fxDayDisclosure tbody td:last-child>details[open]{white-space:normal}
@media(max-width:600px){#forex #fxDayDisclosure{overflow-x:auto}#forex #fxDayDisclosure table{min-width:590px}}


/* Keep the three container milestones readable without expanding its details. */
#containerManagement .containerExpenseSummary{line-height:1.4;padding:8px 10px}
#containerManagement .containerExpenseTitle{font-weight:700}
#containerManagement .containerExpenseDates{display:block;margin:5px 0 0 15px;font-weight:500}
#containerManagement .containerExpenseDateLine{display:block;margin:2px 0;white-space:normal;overflow-wrap:break-word}
#containerManagement .containerExpenseDateLabel{display:inline-block;min-width:104px;font-weight:650}


/* Show archive edits in the current viewport rather than above a long cost table. */
#containerManagement dialog.containerExpenseEditDialog{width:min(1000px,94vw);max-width:94vw;max-height:88vh;overflow:auto;box-sizing:border-box;margin:auto;padding:16px;color:#123e39}
#containerManagement dialog.containerExpenseEditDialog::backdrop{background:rgba(16,45,38,.35)}
#containerManagement .containerExpenseEditActions{display:flex;gap:8px;margin:8px 0 12px}
#containerManagement .containerExpenseEditDialog h3{margin:0 0 8px}


#containerManagement .containerIntakeTools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#containerManagement .containerIntakeForm .containerExpenseMeta{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#containerManagement .containerIntakeForm :is(input,select){box-sizing:border-box;max-width:100%;width:100%;min-width:0;min-height:34px}
@media(max-width:600px){#containerManagement .containerIntakeForm .containerExpenseMeta{grid-template-columns:1fr}}


#containerManagement .containerExportFees{margin:12px 0;padding:10px;background:#fff9e8;border:1px solid #e4d8aa;border-radius:6px}
#containerManagement .containerExportFees h4{margin:0 0 6px}
#containerManagement .containerExportFeeRow{display:grid;grid-template-columns:minmax(140px,1.3fr) minmax(90px,.8fr) 85px minmax(120px,1.3fr) auto;gap:8px;align-items:end;margin:8px 0}
#containerManagement .containerExportFeeRow label{min-width:0}
#containerManagement .containerCreatePackingUpload{display:inline-flex;align-items:center;cursor:pointer}
#containerManagement .containerCreatePackingStatus{font-size:12px;overflow-wrap:anywhere}
#containerManagement .containerIntakeForm>.containerExpenseEditActions{flex-wrap:wrap;position:sticky;bottom:-16px;background:#f4f8f6;padding:10px 0;margin-bottom:0}
@media(max-width:600px){#containerManagement .containerExportFeeRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#containerManagement .containerExportFeeRow>button{justify-self:start}}


/* Uniform report tiles: reserve the same title and action space at every width. */
@media screen{
 #reportDownloads .reportChoiceLinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;width:100%}
 #reportDownloads .reportChoiceItem{align-self:stretch;min-width:0;margin:0;padding:0;display:flex;flex-direction:column;box-sizing:border-box}
 #reportDownloads .reportChoiceItem>summary{box-sizing:border-box;flex:none;height:5.6em;min-height:5.6em;padding:10px 9px;font-size:clamp(12px,1.05vw,14px);line-height:1.4;overflow-wrap:anywhere;word-break:normal}
 #reportDownloads .reportChoiceActions{margin-top:auto;padding:7px 9px;min-height:44px;box-sizing:border-box}
 #reportDownloads .reportChoiceActions>a{box-sizing:border-box;width:100%;min-height:30px;font-size:clamp(12px,1vw,13px);line-height:1.4;display:flex;align-items:center;justify-content:center;white-space:nowrap}
}
@media screen and (min-width:1000px){#reportDownloads .reportChoiceLinks{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media screen and (max-width:650px){#reportDownloads .reportChoiceLinks{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media screen{.scaleReferenceScroll{width:100%;max-height:72vh;overflow:auto;margin-top:12px}.scaleReferenceTable{width:max-content;min-width:100%;border-collapse:collapse;font-size:13px}.scaleReferenceTable td,.scaleReferenceTable th{border:1px solid #b9cfc0;padding:6px 8px;min-width:64px;max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere}.scaleReferenceTable tr:first-child th{position:sticky;top:0;background:#d7e8dd;z-index:1}.scaleReferenceTable th{background:#e4efe8}.scaleReferenceTable input{min-width:85px;width:100%;box-sizing:border-box}.scaleReferenceTable tr:nth-child(even){background:#f5f9f6}}

@media screen{
 .scaleReferenceTable [data-scale-col="2"]{min-width:95px;white-space:nowrap}
 .scaleReferenceTable [data-scale-col="3"]{min-width:155px;white-space:nowrap;overflow-wrap:normal}
 .scaleReferenceTable [data-scale-col="4"]{min-width:260px;width:300px;max-width:400px;word-break:normal}
 .scaleReferenceTable [data-scale-col="5"]{min-width:80px;white-space:nowrap}
}

@media screen{
 .scaleReferenceTable{min-width:100%;width:max-content}
 .scaleReferenceTable td,.scaleReferenceTable th{padding:5px 6px;min-width:46px;font-size:12px}
 .scaleReferenceTable tr>th:first-child{min-width:34px;width:38px;padding:5px 4px;white-space:nowrap}
 .scaleReferenceTable [data-scale-col="1"]{min-width:40px;width:44px;white-space:nowrap}
 .scaleReferenceTable [data-scale-col="2"]{min-width:75px;width:80px;white-space:nowrap}
 .scaleReferenceTable [data-scale-col="3"]{min-width:130px;width:140px;max-width:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .scaleReferenceTable [data-scale-col="4"]{min-width:260px;width:auto;max-width:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .scaleReferenceTable [data-scale-col="5"]{min-width:62px;width:66px;white-space:nowrap}
 .scaleReferenceTable [data-scale-col="6"]{min-width:52px;width:58px;white-space:nowrap}
}

@media screen{
 .scaleReferenceTable td{white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.4;max-width:none}
 .scaleReferenceTable th{line-height:1.4}
}

@media screen{
 .scaleReferenceScroll{max-height:min(450px,50vh);overflow:auto}
 .scaleReferenceTable{border-collapse:separate;border-spacing:0}
 .scaleReferenceTable thead{position:sticky;top:0;z-index:3;background:#d7e8dd}
 .scaleReferenceTable thead th{position:static!important;background:#d7e8dd;border-bottom:1px solid #a9c5b5;white-space:nowrap}
 .scalePager{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
 .scalePager span{font-size:12px}
}

@media screen{
 .scaleReferenceScroll{max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
 .scaleHorizontalControl{margin-top:12px;padding:7px 10px;background:#e4efe8;border:1px solid #b9cfc0;border-radius:6px}
 .scaleHorizontalControl label{display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap}
 .scaleHorizontalControl input[type=range]{flex:1;min-width:0;width:100%;height:24px;padding:0;margin:0;accent-color:#17614d;cursor:ew-resize;touch-action:pan-x}
}

@media screen{
 main:has(>#scaleReference:not([hidden])){max-width:none}
 main>#scaleReference{--ledger-panel-width:100%;width:100%;max-width:none;min-width:0}
 #scaleReference>.card{width:100%;max-width:none;box-sizing:border-box}
 #scaleReference .scaleReferenceScroll,#scaleReference .scaleHorizontalControl{width:100%;max-width:none;box-sizing:border-box}
}

@media screen{
 body main:has(>#scaleReference:not([hidden])){max-width:none!important}
 body main>#scaleReference{--ledger-panel-width:100%!important;width:100%!important;max-width:none!important}
 body main>#scaleReference>.card{width:100%!important;max-width:none!important}
}

@media print{
 body.printPayroll #payroll #payrollPrintArea.payrollPairSheet{page:payrollSheet;width:210mm!important;padding:6mm 7mm!important;break-inside:avoid!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip{height:136mm!important;min-height:136mm!important;overflow:visible!important;color:#000;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.printPayroll #payroll .payrollPairSheet .payrollSlipGrid :is(th,td){font-size:10.5pt!important;line-height:1.12!important;padding:.45mm 1mm!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h2{font-size:13pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip h3,body.printPayroll #payroll .payrollPairSheet .payrollSlip h4{font-size:11pt!important}
 body.printPayroll #payroll .payrollPairSheet .payrollSlip .payrollEmployerNis{font-size:7.5pt!important}
}

/* English presentation leaves original labels and values intact. */
#ledgerLanguageToggle{position:fixed;top:12px;right:16px;z-index:1000;min-width:76px;background:#fff;color:#155e4b;border:1px solid #b8d2c8;border-radius:6px;padding:8px 12px}
html[data-ui-language=en] [data-ui-english]{font-size:0!important}
html[data-ui-language=en] [data-ui-english]::before{content:attr(data-ui-english);font-size:var(--ui-copy-size,13px);line-height:var(--ui-copy-line,normal);white-space:normal}
html[data-ui-language=en] [data-ui-english]> :not([data-ui-english]){font-size:var(--ui-copy-size,13px)}
html[data-ui-language=en] summary[data-ui-english]::marker{font-size:var(--ui-copy-size,13px)}
@media print{#ledgerLanguageToggle{display:none!important}}
html[data-ui-language=en] .brand>span{display:none!important}
html[data-ui-language=en] .brand small[data-ui-english]::before{font-size:11px!important;line-height:1.45!important;letter-spacing:1px;overflow-wrap:normal}
html[data-ui-language=en] #scaleReference table thead th:first-child{white-space:nowrap!important}
html[data-ui-language=en] #scaleReference table col:first-child{width:42px!important}
/* Original zero-size text remains in the DOM; explicitly place translated grid labels and controls. */
html[data-ui-language=en] #fxForm .fxInputTable label[data-ui-english]{grid-template-columns:minmax(150px,30%) minmax(0,1fr)!important;row-gap:0!important}
html[data-ui-language=en] #fxForm .fxInputTable label[data-ui-english]::before{grid-column:1;grid-row:1}
html[data-ui-language=en] #fxForm .fxInputTable label[data-ui-english]>:is(input,select,textarea){grid-column:2;grid-row:1;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
@media(max-width:600px){html[data-ui-language=en] #fxForm .fxInputTable label[data-ui-english]{grid-template-columns:minmax(0,1fr)!important;gap:5px!important;background:#edf4f2!important}html[data-ui-language=en] #fxForm .fxInputTable label[data-ui-english]>:is(input,select,textarea){grid-column:1;grid-row:2}}
html[data-ui-language=en] .stat strong[data-ui-english="Incomplete"]::before{font-size:14px;overflow-wrap:normal;word-break:normal}
@media(max-width:700px){#ledgerLanguageToggle{top:4px;right:16px;padding:4px 10px;min-height:28px}}

/* Language switch belongs with the ledger identity, not over page controls. */
aside>#ledgerLanguageToggle{position:static;inset:auto;z-index:auto;align-self:flex-start;flex-shrink:0;margin:0 0 22px;padding:7px 12px;min-height:32px}
aside:has(>#ledgerLanguageToggle) .brand small{margin-bottom:12px}
@media(max-width:650px){aside>#ledgerLanguageToggle{margin:0 0 12px}}

/* Compact the scale product-name column while keeping full names readable. */
@media screen{
 #scaleReference .scaleReferenceTable [data-scale-col="4"]{min-width:220px;width:260px;max-width:280px;white-space:normal;overflow-wrap:break-word;word-break:normal}
}

/* Align scale PLU values to the right beside the product names. */
@media screen{#scaleReference .scaleReferenceTable td[data-scale-col="1"]{text-align:right;padding-right:8px}}

/* Compact specification and price columns in the scale reference view. */
@media screen{
 #scaleReference .scaleReferenceTable [data-scale-col="7"]{min-width:72px;width:80px;max-width:90px;white-space:normal;overflow-wrap:break-word}
 #scaleReference .scaleReferenceTable :is([data-scale-col="8"],[data-scale-col="9"]){min-width:64px;width:72px;max-width:85px;white-space:normal;overflow-wrap:break-word}
}

/* Disable browser number steppers throughout every ledger page and dialog. */
html body input[type="number"]{appearance:textfield!important;-moz-appearance:textfield!important}
html body input[type="number"]::-webkit-inner-spin-button,
html body input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;appearance:none!important;margin:0!important;display:none!important}

/* Mobile invoice identification columns need enough space for their controls. */
@media screen and (max-width:650px){
 #wholesalePanel .wholesaleSimpleScroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 #wholesalePanel .wholesaleSimpleScroll>table{width:1100px!important;min-width:1100px!important;max-width:none!important;table-layout:fixed!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(1){width:140px!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(2){width:160px!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(3){width:280px!important}
 #wholesalePanel .wholesaleSimpleScroll th:nth-child(n+4){width:auto!important}
 #wholesalePanel .simpleWholesalePhotoUpload{max-width:100%;white-space:normal;overflow-wrap:break-word}
 #wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>.simpleCustomerOpen{width:64px!important;max-width:64px!important;white-space:nowrap!important}
 #wholesalePanel .wholesaleSimpleScroll .simpleCustomerCell>input{padding-right:72px!important}
}

/* Fit the full date and weekday in the phone cashier date control. */
@layer ledger-typography{
 @media screen and (max-width:650px){
  body main .cashierDayCombined .cashierToolbarDate :is(input,.dateDisplayValue){font-size:12px!important;font-weight:700!important}
 }
}
@media screen and (max-width:650px){
 .cashierDayCombined .cashierToolbarDate .dateDisplayValue{left:5px;right:20px;letter-spacing:0}
 .cashierDayCombined .cashierToolbarDate{min-width:0}
 .cashierDayCombined .cashierToolbarDate .dateDisplayControl{min-width:0;width:100%;max-width:100%}
}

/* Phone deposit dates may wrap after adding weekdays; never paint over the next cell. */
@media screen and (max-width:650px){
 #batchHistory .depositHistoryTables table.depositRunTable{min-width:700px}
 #batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(1){width:155px;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal}
 #batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(2){width:140px;white-space:normal!important;overflow-wrap:break-word!important}
 #batchHistory .depositHistoryTables .depositRunTable :is(th,td):nth-child(3){width:125px;white-space:normal!important;overflow-wrap:break-word!important}
 #batchHistory .depositRunTableScroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Keep deposit summaries concise; details remain available on demand. */
#batchHistory .depositCompactDetails{margin:8px 0 12px;border:1px solid #c5d9cf;border-radius:6px;padding:6px 8px}
#batchHistory .depositCompactDetails>summary{cursor:pointer;color:#24564b;font-weight:700}
#batchHistory .depositCompactSettled{display:block;width:100%;margin-top:8px;color:#17614d}

/* One expanded deposit worksheet; receipt handlers stay attached to their original nodes. */
#batchHistory .unifiedDepositScroll{overflow-x:auto;margin:8px 0 12px;-webkit-overflow-scrolling:touch}
#batchHistory .unifiedDepositTable{display:table!important;width:100%;min-width:700px;table-layout:fixed;border-collapse:collapse}
#batchHistory .unifiedDepositTable tbody{display:table-row-group!important}
#batchHistory .unifiedDepositTable tr{display:table-row!important}
#batchHistory .unifiedDepositTable :is(th,td){display:table-cell!important;border:1px solid #bfd2c8!important;padding:7px 6px!important;vertical-align:middle;white-space:normal!important;overflow-wrap:break-word;line-height:1.4}
#batchHistory .unifiedDepositTable td::before{display:none!important;content:none!important}
#batchHistory .unifiedDepositTable .dayDepositReceipts{margin:0;padding:0;border:0}
#batchHistory .unifiedDepositTable .dayDepositReceipts h3{display:none}
#batchHistory .unifiedDepositTable .dayDepositProofSlots{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:650px){#batchHistory .unifiedDepositTable .dayDepositProofSlots{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One expanded deposit worksheet; receipt handlers stay attached to their original nodes. */
#batchDetail .unifiedDepositScroll{overflow-x:auto;margin:8px 0 12px;-webkit-overflow-scrolling:touch}
#batchDetail .unifiedDepositTable{display:table!important;width:100%;min-width:700px;table-layout:fixed;border-collapse:collapse}
#batchDetail .unifiedDepositTable tbody{display:table-row-group!important}
#batchDetail .unifiedDepositTable tr{display:table-row!important}
#batchDetail .unifiedDepositTable :is(th,td){display:table-cell!important;border:1px solid #bfd2c8!important;padding:7px 6px!important;vertical-align:middle;white-space:normal!important;overflow-wrap:break-word;line-height:1.4}
#batchDetail .unifiedDepositTable td::before{display:none!important;content:none!important}
#batchDetail .unifiedDepositTable .dayDepositReceipts{margin:0;padding:0;border:0}
#batchDetail .unifiedDepositTable .dayDepositReceipts h3{display:none}
#batchDetail .unifiedDepositTable .dayDepositProofSlots{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:650px){#batchDetail .unifiedDepositTable .dayDepositProofSlots{grid-template-columns:repeat(2,minmax(0,1fr))}}

#batchDetail .depositMoreActions>summary{padding:10px;background:#e4efe9;border-radius:6px;cursor:pointer;font-weight:700}

.depositInlineDialog,.depositRegistrationDialog{width:min(760px,94vw);max-width:94vw;max-height:90vh;overflow:auto;border:1px solid #bfd2c8;border-radius:8px;padding:16px;color:#153c35;background:#fff}
.depositInlineDialog::backdrop,.depositRegistrationDialog::backdrop{background:#102f2866}
.depositEditGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.depositEditGrid label{min-width:0}.depositEditGrid input,.depositEditGrid select{width:100%;min-width:0}
.unifiedDepositTable .depositInlineEdit{margin:3px 0 0 6px;padding:4px 8px;min-height:28px;font-size:12px;white-space:nowrap}
@media(max-width:600px){.depositEditGrid{grid-template-columns:1fr}.unifiedDepositTable .depositInlineEdit{display:block;margin-left:0}}

/* A single compact surface for balances, date selection and deposit allocation. */
@media screen{
 #cashierDepositHome #bankSummary.unifiedDepositPlanning{background:#fff;border:1px solid #d5e2dc;border-radius:12px;padding:12px 14px;box-shadow:none}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning>.sectionhead{margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #d5e2dc}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning>.sectionhead h2{font-size:15px;margin:0}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning :is(.historyWalletBox,.batchTools,.settlementDateCard){background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;padding:6px 0!important;margin:0!important}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .pendingWalletBox{border:0;margin:0;padding:0}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .depositScopeTools{background:transparent;border:0;border-bottom:1px solid #d5e2dc;border-radius:0;margin:0;padding:8px 0;gap:5px 10px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .pendingAmountCards{margin:5px 0;gap:6px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .pendingAmountCards>.stat{padding:7px 8px!important}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .pendingWalletBox h3{margin:0 0 5px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .pendingDayDetails{display:none!important}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning #batchPreviewPanel{margin-top:6px;padding-top:6px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .batchPreviewActions{margin:8px 0 0;gap:6px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .previewDepositEditor h3{margin:6px 0;font-size:13px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .previewDepositEditor .manualDepositTotals>label,
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat{height:54px!important;min-height:54px!important;padding:5px 7px!important}
}
@media screen and (max-width:650px){
 #cashierDepositHome #bankSummary.unifiedDepositPlanning{padding:10px 8px}
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .previewDepositEditor .manualDepositTotals>label,
 #cashierDepositHome #bankSummary.unifiedDepositPlanning .previewDepositEditor .depositCarryPreview>.pendingAmountCards>.stat{height:62px!important;min-height:62px!important}
}

@media screen{
 #cashierDepositHome #bankSummary.unifiedDepositPlanning{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
 #cashierDepositHome #depositPlanningArea{background:#fff;border:1px solid #d5e2dc;border-radius:12px;padding:12px 14px;margin-bottom:16px;color:#174b3c;font-family:var(--deposit-font-family,inherit)}
 #cashierDepositHome #depositPlanningArea>.sectionhead{margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #d5e2dc}
 #cashierDepositHome #depositPlanningArea>.sectionhead h2{margin:0}
 #cashierDepositHome #depositPlanningArea .batchPreviewActions{margin-bottom:0}
}
@layer ledger-typography{
 @media screen{
  #cashierDepositHome #depositPlanningArea :is(table,th,td,label,input,select,textarea,button,strong,small,span,summary,p){font-family:var(--deposit-font-family,inherit)!important;font-size:var(--ledger-text-size,12px)!important;line-height:1.4!important}
  #cashierDepositHome #depositPlanningArea :is(h2,h3,h4){font-family:var(--deposit-font-family,inherit)!important;font-size:var(--ledger-title-size,14px)!important;font-weight:700!important;line-height:1.4!important}
  #cashierDepositHome #depositPlanningArea .pendingWalletBox .stat strong{font-size:var(--ledger-balance-size,20px)!important}
 }
}
@media screen and (max-width:650px){#cashierDepositHome #depositPlanningArea{padding:10px 8px}}

/* Remove redundant navigation above deposit records. */
#batchBackDaily,#batchBackList{display:none!important}
#batchManagement>.toolbar:has(>#batchBackDaily){display:none!important}

/* Fit the deposit worksheet to the available page width without a horizontal rail. */
@media screen{
 body main:has(#cashierDepositHome:not([hidden])){max-width:none!important}
 main #ledger:not(.sharedDayActive):has(#cashierDepositHome:not([hidden])){max-width:none!important;width:100%!important;--ledger-panel-width:100%!important}
 #ledger #batchManagement :is(#batchDetail,#batchHistory) .unifiedDepositScroll{width:100%;min-width:0;max-width:100%;overflow:visible!important}
 #ledger #batchManagement :is(#batchDetail,#batchHistory) .unifiedDepositTable{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
 #ledger #batchManagement .unifiedDepositTable :is(th,td){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal;min-width:0}
 #ledger #batchManagement .unifiedDepositTable .depositInlineEdit{display:block!important;width:max-content;max-width:100%;margin:4px 0 0!important}
 .depositTwoLineDate,.depositTwoLineDate>span{display:block;white-space:normal;line-height:1.4}
 .depositDateLine::before{content:attr(data-deposit-date)}
}
@media screen and (max-width:650px){
 #ledger #batchManagement .unifiedDepositTable :is(th,td){padding:5px 3px!important}
 #ledger #batchManagement #batchDetail>.card{padding:10px 8px}
}

/* Keep the deposit page at the reference worksheet width rather than full screen. */
@media screen{
 body main:has(#cashierDepositHome:not([hidden])){max-width:1700px!important}
 body main #ledger:not(.sharedDayActive):has(#cashierDepositHome:not([hidden])){max-width:760px!important;width:100%!important;--ledger-panel-width:760px!important}
 #ledger #cashierDepositHome{width:100%;max-width:760px!important;min-width:0}
}

@media screen{
 body main:has(#cashierDepositHome:not([hidden])){max-width:1840px!important}
 body main #ledger:not(.sharedDayActive):has(#cashierDepositHome:not([hidden])){max-width:1560px!important;--ledger-panel-width:1560px!important}
 #ledger #cashierDepositHome{max-width:1560px!important}
 #cashierDepositHome #bankSummary.depositTwoColumns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
 #cashierDepositHome #bankSummary.depositTwoColumns[hidden]{display:none!important}
 #cashierDepositHome #depositPlanningArea{width:100%;min-width:0;margin:0}
 #cashierDepositHome #depositRightColumn{width:100%;min-width:0}
 #cashierDepositHome #depositRightColumn>section{margin-top:0}
 #cashierDepositHome #depositRightColumn .batchHistoryItem:first-child{margin-top:0}
}
@media screen and (max-width:1100px){#cashierDepositHome #bankSummary.depositTwoColumns{grid-template-columns:minmax(0,1fr)}#ledger #cashierDepositHome{max-width:760px!important}}

/* Keep two normal-width panels side by side, with a cap on the combined width. */
@media screen{
 body main:has(#cashierDepositHome:not([hidden])){max-width:1700px!important}
 body main #ledger:not(.sharedDayActive):has(#cashierDepositHome:not([hidden])){max-width:1260px!important;--ledger-panel-width:1260px!important}
 #ledger #cashierDepositHome{width:100%;max-width:1260px!important}
 #cashierDepositHome #bankSummary.depositTwoColumns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositPlanningArea{grid-column:1;min-width:0;max-width:622px}
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositRightColumn{grid-column:2;min-width:0;max-width:622px}
}
@media screen and (max-width:899px){
 #cashierDepositHome #bankSummary.depositTwoColumns{grid-template-columns:minmax(0,1fr)}
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositRightColumn{grid-column:1}
 #ledger #cashierDepositHome{max-width:760px!important}
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositPlanningArea,#cashierDepositHome #bankSummary.depositTwoColumns>#depositRightColumn{max-width:none}
}

/* The pending-date picker replaces the old empty date-list footer. */
@media screen{
 #depositRightColumn>.tablewrap:has(#bankRows),
 #depositRightColumn>.toolbar:has(#bankCoverage){display:none!important}
}

@media screen{
 #ledger:not(.sharedDayActive)>.cashierCenteredStart{width:100%!important;max-width:640px!important;margin:0 auto 16px!important;box-sizing:border-box}
 #ledger:not(.sharedDayActive)>.tablewrap:has(#rows){width:100%!important;max-width:640px!important;margin-left:auto!important;margin-right:auto!important;min-width:0}
 #ledger:not(.sharedDayActive)>.tablewrap:has(#rows)>table{width:100%!important;min-width:0!important;max-width:100%}
 #ledger:not(.sharedDayActive) #rows>.ledgerDayRow{max-width:100%}
 #ledger:not(.sharedDayActive) #rows .ledgerDayGroup{width:100%;max-width:640px;margin-left:auto;margin-right:auto}
 #ledger:not(.sharedDayActive) #rows .ledgerDayGroup>summary{text-align:center}
 #ledger:not(.sharedDayActive) #rows .ledgerDayGroup>summary .cashierDayGross{padding-left:0;text-align:center}
}

/* The date cards live inside cashierRegisterContent; center that actual parent. */
@media screen{
 #ledger:not(.sharedDayActive)>#cashierRegisterContent{width:100%!important;max-width:640px!important;min-width:0;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
 #ledger:not(.sharedDayActive)>#cashierRegisterContent>.ledgerCompactList{width:100%!important;max-width:640px!important;padding:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
 #ledger:not(.sharedDayActive)>#cashierRegisterContent>.ledgerCompactList>table{width:100%!important;min-width:0!important;max-width:100%!important}
}

/* Align recent closing cards with the planning column below. */
@media screen{
 #ledger:not(.sharedDayActive)>.cashierCenteredStart,
 #ledger:not(.sharedDayActive)>#cashierRegisterContent{width:calc((100% - 16px)/2)!important;max-width:622px!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
 #ledger:not(.sharedDayActive)>#cashierRegisterContent>.ledgerCompactList{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 #ledger:not(.sharedDayActive) #rows .ledgerDayGroup{width:100%;max-width:100%;margin-left:0;margin-right:0}
}
@media screen and (max-width:899px){
 #ledger:not(.sharedDayActive)>.cashierCenteredStart,
 #ledger:not(.sharedDayActive)>#cashierRegisterContent{width:100%!important;max-width:760px!important}
}

@media screen{
 #depositRightColumn>#depositRightTop{width:100%;min-width:0;margin:0 0 12px}
 #depositRightTop>#depositHistoryRecords{box-sizing:border-box;width:100%;margin:0 0 8px}
 #depositRightTop>#monthlyArchiveCard{width:100%;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 #depositRightTop>#monthlyArchiveCard>.card{margin:0}
}

/* Stretch the desktop deposit columns to the same top and bottom edges. */
@media screen and (min-width:900px){
 #cashierDepositHome #bankSummary.depositTwoColumns{align-items:stretch!important}
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositPlanningArea,
 #cashierDepositHome #bankSummary.depositTwoColumns>#depositRightColumn{align-self:stretch;height:auto;margin-top:0!important;margin-bottom:0!important}
 #cashierDepositHome #depositRightColumn>#depositRightTop{margin-top:0!important;padding-top:0}
 #cashierDepositHome #depositRightTop>:first-child{margin-top:0!important}
 #cashierDepositHome #depositRightColumn #batchHistory>.batchHistoryItem:last-child{margin-bottom:0!important}
}

@media screen{#cashierDepositHome #depositRightColumn>#depositRightTop{margin:12px 0 0!important}}

/* Four recent closings: newest two left, following two right, expanded by default. */
@media screen{
 #ledger:not(.sharedDayActive)>#cashierRegisterContent{width:100%!important;max-width:1260px!important;margin-left:0!important;margin-right:0!important}
 #ledger:not(.sharedDayActive)>#cashierRegisterContent>.ledgerCompactList{width:100%!important;max-width:100%!important}
 #ledger:not(.sharedDayActive)>#cashierRegisterContent>.ledgerCompactList>table{width:100%!important;min-width:0!important}
 #ledger:not(.sharedDayActive) #rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,auto);grid-auto-flow:column;gap:16px;align-items:start}
 #ledger:not(.sharedDayActive) #rows>tr,#ledger:not(.sharedDayActive) #rows>tr>td{width:100%;min-width:0;margin:0;padding:0}
 #ledger:not(.sharedDayActive) #rows .ledgerDayGroup{width:100%;max-width:100%;margin:0}
}
@media screen and (max-width:899px){
 #ledger:not(.sharedDayActive) #rows{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-flow:row;gap:12px}
}

/* The closing toolbar spans both columns of recent daily cards. */
@media screen{#ledger:not(.sharedDayActive)>.cashierCenteredStart{width:100%!important;max-width:1260px!important;margin-left:0!important;margin-right:0!important}}

/* Compact phone settlement fields in one row, with more room for the date. */
@media screen and (max-width:650px){
 #cashierDepositHome #depositPlanningArea .depositScopeTools{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;align-items:end;gap:5px 8px!important}
 #cashierDepositHome #depositPlanningArea .depositScopeTools>label{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;max-width:100%;gap:4px;margin:0}
 #cashierDepositHome #depositPlanningArea .depositScopeTools .dateDisplayControl{display:block;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
 #cashierDepositHome #depositPlanningArea .depositScopeTools input:not([type=hidden]){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;height:32px;margin:0;padding:4px 6px}
 #cashierDepositHome #depositPlanningArea .depositScopeTools .dateDisplayValue{left:6px;right:22px;max-width:calc(100% - 28px);letter-spacing:0}
 #cashierDepositHome #depositPlanningArea .depositScopeTools>small{grid-column:1/-1;margin:0;white-space:normal;overflow-wrap:break-word}
}
@layer ledger-typography{
 @media screen and (max-width:650px){
  #cashierDepositHome #depositPlanningArea .depositScopeTools :is(label,input,span){font-size:11px!important;line-height:1.3!important}
 }
}

/* A smaller phone date box, with Safari intrinsic date sizing constrained. */
@media screen and (max-width:650px){
 #cashierDepositHome #depositPlanningArea .depositScopeTools{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;gap:4px 7px!important}
 #cashierDepositHome #depositPlanningArea .depositScopeTools .dateDisplayControl{width:100%!important;max-width:185px!important;height:28px!important;min-height:28px!important;overflow:hidden;border-radius:6px}
 #cashierDepositHome #depositPlanningArea .depositScopeTools input:not([type=hidden]){display:block;height:28px!important;min-height:28px!important;max-height:28px!important;padding:3px 5px!important;min-inline-size:0!important;-webkit-min-logical-width:0;box-sizing:border-box;border-radius:6px}
 #cashierDepositHome #depositPlanningArea .depositScopeTools input[type=date]{appearance:none;-webkit-appearance:none}
 #cashierDepositHome #depositPlanningArea .depositScopeTools .dateDisplayValue{left:5px;right:5px;max-width:calc(100% - 10px)}
}
@layer ledger-typography{@media screen and (max-width:650px){
 #cashierDepositHome #depositPlanningArea .depositScopeTools .dateDisplayValue{font-size:10.5px!important;line-height:1.2!important}
}}

.wholesaleChequeEditor{width:min(680px,94vw);max-width:94vw;max-height:90vh;overflow:auto;padding:16px;border:1px solid #bfd2c8;border-radius:8px;background:#fff;color:#153c35}.wholesaleChequeEditor form{display:grid;gap:10px}.wholesaleChequeEditor form>div{display:grid;gap:8px}.wholesaleChequeEditor::backdrop{background:#102f2866}

.wholesaleSimpleActions .wholesaleChequeHint{flex-basis:100%;white-space:normal}.wholesaleChequeHint{display:block;line-height:1.4}

#wholesalePanel .wholesaleSimpleScroll .wholesaleDeleteHead{width:86px!important}#wholesalePanel .wholesaleDeleteCell button{white-space:nowrap!important;color:#a12c24;font-size:11px;padding:4px 6px}#wholesalePanel .wholesaleDeleteCell{vertical-align:middle}

@media screen and (min-width:651px){
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(1){width:8%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(2){width:12%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(3){width:23%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(4){width:6%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(5){width:8%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(6){width:9%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(7){width:10%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(8),#wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(9){width:7%!important}
 #wholesalePanel .wholesaleSimpleScroll>table:has(.wholesaleDeleteHead) th:nth-child(10){width:10%!important}
}

.annualReportSection{border-top:1px solid #c9ddd3;margin-top:20px;padding-top:16px}.annualReportSection h3{margin:0 0 12px}.annualReportSection>label{display:block;max-width:220px;margin-bottom:14px}.annualReportSection select{width:100%}

/* Department annual report: external stylesheet required by site security policy. */
body.departmentIncomeCompact{box-sizing:border-box;width:680px!important;max-width:100%!important;padding:12px!important;margin:0!important}.departmentIncomeCompact .reportPreviewHeading{gap:6px;margin-bottom:6px}.departmentIncomeCompact .reportPreviewHeading h1{font-size:16px;margin:0}.departmentIncomeCompact .button{font-size:11px;padding:5px 8px}.departmentIncomeCompact>p{font-size:10px;line-height:1.4;margin:5px 0 8px}.departmentIncomeCompact table{width:100%!important;min-width:0!important;max-width:650px!important;table-layout:fixed!important;border-collapse:collapse!important;border:1px solid #a9bdb0;margin:0!important}.departmentIncomeCompact :is(th,td){border:1px solid #b8ccbf!important;padding:4px 6px!important;font-size:11px!important;line-height:1.2!important;height:auto!important;min-width:0!important;text-align:right;white-space:nowrap}.departmentIncomeCompact th{background:#e3eee7}.departmentIncomeCompact :is(th,td):first-child{text-align:left;width:12%}.departmentIncomeCompact :is(td,th):last-child{background:#deeee3;font-weight:bold}.departmentIncomeCompact tfoot th{font-weight:bold}@media(max-width:450px){.departmentIncomeCompact :is(th,td){font-size:9px!important;padding:4px 2px!important;white-space:normal}}@media print{body.departmentIncomeCompact{width:100%!important}.departmentIncomeCompact table{max-width:650px!important}}

body.annualExpenseCompact{box-sizing:border-box;width:1040px!important;max-width:100%!important;padding:12px!important;margin:0!important}.annualExpenseCompact .reportPreviewHeading{gap:6px;margin-bottom:6px}.annualExpenseCompact h1{font-size:17px}.annualExpenseCompact>p{font-size:10px;line-height:1.4;max-width:990px}.annualExpenseTableScroll{max-width:100%;overflow:auto}.annualExpenseCompact table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:780px}.annualExpenseCompact :is(th,td){border:1px solid #b7cbbd;padding:4px 5px!important;font-size:10px!important;line-height:1.25;text-align:right}.annualExpenseCompact th{background:#e1eee5;white-space:normal}.annualExpenseCompact td{white-space:nowrap}.annualExpenseCompact :is(th,td):first-child{width:7%;text-align:left}.annualExpenseCompact :is(th,td):last-child{background:#deeee3;font-weight:bold}.annualExpenseCompact details{margin-top:12px}.annualExpenseCompact .annualExpenseBreakdown{min-width:0;max-width:620px}.annualExpenseCompact .annualExpenseBreakdown th:first-child{width:28%}.annualExpenseCompact .annualExpenseBreakdown td:nth-child(2){text-align:left}@media print{body.annualExpenseCompact{width:100%!important}.annualExpenseCompact table{min-width:0!important}.annualExpenseCompact details{display:none}}

.businessDayMoveDialog{width:min(560px,94vw);max-height:90vh;overflow:auto}.businessDayMoveDialog label{display:block;margin:10px 0}.businessDayMoveDialog input{display:block;width:100%;box-sizing:border-box}.businessDayMoveDialog button{margin:4px}.cashierDayActions .businessDayMoveButton{grid-column:1/-1;font-size:11px;padding:4px 8px}

#ledger .cashierDayCombined>.cashierToolbarDate{display:flex;align-items:flex-end;gap:5px;max-width:360px}#ledger .cashierDayCombined>.cashierToolbarDate>label{flex:1 1 auto;min-width:0;margin:0}#ledger .cashierToolbarDate>.businessDayMoveSmall{flex:0 0 auto;width:auto!important;min-width:0!important;max-width:none!important;height:26px!important;min-height:26px!important;padding:3px 6px!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap;margin:0 0 3px!important}#ledger .cashierToolbarDate>.businessDayMoveSmall[hidden]{display:none!important}

#shenzhenStatements{max-width:1080px}.shenzhenUploadForm{display:grid;grid-template-columns:140px 140px minmax(180px,1fr);gap:12px;margin:14px 0}.shenzhenUploadForm label{min-width:0}.shenzhenUploadForm :is(input,select){width:100%;box-sizing:border-box}.shenzhenUploadForm label:nth-child(4){grid-column:1/-1}.shenzhenUploadForm small{grid-column:1/-1}.shenzhenYearFolder{margin-top:14px;border:1px solid #c3d8ca;border-radius:7px;padding:8px}.shenzhenYearFolder>summary{padding:8px;background:#e0eee5;font-weight:bold}.shenzhenStatementScroll{overflow-x:auto}.shenzhenStatementScroll table{width:100%;border-collapse:collapse;margin-top:8px}.shenzhenStatementScroll :is(th,td){border:1px solid #c3d8ca;padding:6px 8px;font-size:12px;overflow-wrap:anywhere}.shenzhenFileActions{display:flex;gap:5px;white-space:nowrap}.shenzhenFileActions a{padding:4px 7px;font-size:11px}@media(max-width:650px){.shenzhenUploadForm{grid-template-columns:1fr 1fr}.shenzhenUploadForm label:nth-child(3){grid-column:1/-1}.shenzhenStatementScroll table{min-width:550px}}

#phoneCardInvoicePanel{margin-top:18px}.phoneInvoicePanel>h3{background:#c8dfd1;padding:12px;border-left:4px solid #17664f}.phoneInvoicePanel>.toolbar{margin:14px 0;align-items:end}.phoneInvoiceForm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.phoneInvoiceForm input{width:100%;box-sizing:border-box;min-width:0}.phoneInvoiceForm output{display:block;min-height:34px;padding:8px;background:#eef6f1;font-weight:bold}.phoneInvoiceForm>.toolbar{grid-column:1/-1}.phoneInvoiceScroll{overflow:auto}.phoneInvoiceScroll table{width:100%;border-collapse:collapse}.phoneInvoiceScroll :is(th,td){border:1px solid #bad0c1;padding:6px 8px;font-size:12px}.phoneInvoiceScroll th{background:#deece3}.phoneInvoiceScroll td:nth-child(n+4):nth-child(-n+6){text-align:right;white-space:nowrap}.phoneInvoiceScroll tfoot th{font-weight:bold}@media(max-width:650px){.phoneInvoiceForm{grid-template-columns:repeat(2,minmax(0,1fr))}.phoneInvoiceScroll table{min-width:680px}}

#phoneCardInvoicePanel[hidden],.phoneInvoiceForm[hidden]{display:none!important}

#monthlyLedger>#phoneCardInvoicePanel{width:100%!important;max-width:920px!important;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding:12px!important}

#phoneCardInvoicePanel .phoneInvoiceForm{grid-template-columns:minmax(145px,1.35fr) minmax(105px,1fr) minmax(150px,1.5fr) repeat(3,minmax(95px,.9fr));align-items:end;overflow-x:auto;padding-bottom:4px}#phoneCardInvoicePanel .phoneInvoiceForm>label{min-width:0;margin:0}#phoneCardInvoicePanel .phoneInvoiceForm :is(input,output){height:34px;min-height:34px;box-sizing:border-box;margin-top:5px}#phoneCardInvoicePanel .phoneInvoiceForm output{padding:8px}#phoneCardInvoicePanel .phoneInvoiceForm>.toolbar{grid-column:1/-1}

#loginForm .loginPasswordControl{display:flex;align-items:center;position:relative;width:100%;min-width:0}#loginForm .loginPasswordControl>input{width:100%;box-sizing:border-box;padding-right:48px}#loginForm .loginPasswordToggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:36px;min-width:38px;min-height:36px;padding:7px;margin:0;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#175c49;cursor:pointer}#loginForm .loginPasswordToggle:focus-visible{outline:2px solid #175c49;outline-offset:1px}#loginPasswordToggle .passwordEyeSlash{display:none}#loginPasswordToggle[aria-pressed="true"] .passwordEyeSlash{display:block}

#phoneCardInvoicePanel .phoneInvoiceHistory{margin-top:12px;border:1px solid #bed3c8;border-radius:6px;overflow:hidden}#phoneCardInvoicePanel .phoneInvoiceHistory>summary{cursor:pointer;background:#e2efe8;padding:10px 12px;font-size:13px;font-weight:700}#phoneCardInvoicePanel .phoneInvoiceHistory>.phoneInvoiceScroll{padding:8px}

.cashierPlaceTotal :is(th,td){font-weight:700;background:#deece3;border-top:2px solid #86ac98}


/* VAT Invoice compact table v1 */
#phoneCardInvoicePanel .vatInvoiceForm{display:block!important}#phoneCardInvoicePanel .vatInvoiceEntryScroll{width:100%;overflow:auto;margin:12px 0}#phoneCardInvoicePanel .vatInvoiceForm table,#phoneCardInvoicePanel .phoneInvoiceScroll table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}#phoneCardInvoicePanel :is(td,th){border:1px solid #b5ccc0;padding:5px;overflow-wrap:anywhere}#phoneCardInvoicePanel .vatInvoiceForm :is(input,output){width:100%;min-width:0;box-sizing:border-box;font-size:11px;padding:5px}#phoneCardInvoicePanel .vatInvoiceForm th:nth-child(1){width:14%}#phoneCardInvoicePanel .vatInvoiceForm th:nth-child(3){width:18%}#phoneCardInvoicePanel .vatInvoiceForm th:nth-child(7){width:15%}#phoneCardInvoicePanel .vatInvoiceForm th{background:#dcebe3}#phoneCardInvoicePanel .vatInvoiceForm output{display:block;background:#edf5f0}#phoneCardInvoicePanel .phoneInvoiceScroll td:nth-child(n+4):nth-child(-n+7){text-align:right;font-variant-numeric:tabular-nums}@media(max-width:700px){#phoneCardInvoicePanel .vatInvoiceForm table,#phoneCardInvoicePanel .phoneInvoiceScroll table{min-width:780px}}


/* VAT full card width v2 */
#monthlyLedger #phoneCardInvoicePanel :is(.vatInvoiceForm,.vatInvoiceEntryScroll,.phoneInvoiceHistory,.phoneInvoiceScroll){display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}#monthlyLedger #phoneCardInvoicePanel :is(.vatInvoiceEntryScroll,.phoneInvoiceScroll)>table{display:table!important;width:100%!important;max-width:none!important;min-width:0!important;table-layout:fixed!important;margin-left:0!important;margin-right:0!important}#monthlyLedger #phoneCardInvoicePanel :is(th,td){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}#monthlyLedger #phoneCardInvoicePanel .vatInvoiceForm :is(input,output){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}#monthlyLedger #phoneCardInvoicePanel .vatInvoiceForm th:first-child{width:16%!important}#monthlyLedger #phoneCardInvoicePanel .phoneInvoiceScroll th:first-child{width:16%!important}


/* VAT month actions v1 */
#phoneCardInvoicePanel .phoneInvoiceHistory>summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#phoneCardInvoicePanel .phoneInvoiceHistory>summary>span{margin-right:auto}#phoneCardInvoicePanel .phoneInvoiceHistory>summary>a{font-size:12px;padding:5px 10px;margin:0;text-decoration:none;border:1px solid #a9c6b7;border-radius:5px;background:white;color:#175c49}
