/* Same V156 panels/control order; compact spacing for 1440x900 monitors. */
@media(min-width:1000px){.workspace:is([data-screen=payroll],[data-screen=audit],[data-screen=credit]) main{display:flex;flex-direction:column;overflow:hidden;padding:12px 16px}.workspace:is([data-screen=payroll],[data-screen=audit],[data-screen=credit]) #screen{flex:1;display:flex;flex-direction:column;width:100%;min-height:0;margin:0}.workspace:is([data-screen=payroll],[data-screen=audit],[data-screen=credit]) .ledger-screen{flex:1;min-height:0;width:100%}}
.business-profile{display:grid;grid-template-columns:3fr 2fr 1fr;gap:6px 10px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:6px;padding:9px}
.business-profile label,.business-panel label,.business-actions label,.credit-filter label{margin:0;font-size:12px}
.business-profile input,.business-profile select,.business-panel select,.business-actions select,.credit-filter select{padding:6px 8px;margin-top:4px;min-height:32px;font-size:12px}
.business-profile p{grid-column:1/-1;margin:0;font-size:11px;min-height:16px;color:#597467}
.business-profile button,.business-actions button,.credit-actions button{font-size:11px;padding:6px 9px;min-height:32px}
.payroll-panes{display:grid;grid-template-columns:56fr 44fr;gap:8px;flex:1;flex-shrink:1;min-height:0}
.business-panel{background:white;border:1px solid var(--line);border-radius:6px;padding:9px;display:flex;flex-direction:column;gap:7px;min-height:0;min-width:0}
.business-panel h2,.credit-screen h2{font-size:12px;margin:0;color:#526d60;line-height:1.5}
.payroll-rules{background:#f5f8f6;padding:6px;margin:0;font-size:11px;line-height:1.45}
.payroll-grid{overflow:auto;min-height:0;flex:1}.payroll-grid table{width:100%;table-layout:fixed}
.payroll-grid th{white-space:normal;font-size:10px;padding:7px 2px;text-align:center}
.payroll-grid th:first-child{width:19%}.payroll-grid th:nth-child(2){width:14%}.payroll-grid th:nth-child(5){width:11%}
.payroll-grid td{padding:2px;text-align:center;font-size:10px;line-height:1.2}.payroll-grid input,.payroll-grid select{width:100%;margin:0;padding:3px 2px;text-align:center;font-size:12px;min-height:25px;height:25px}
.payroll-summary{display:flex;background:#f3f7f5;padding:6px;gap:5px}.payroll-summary>div{flex:1;text-align:center}.payroll-summary span{display:block;font-size:10px;color:#597467}.payroll-summary strong{font-size:17px}
.payroll-amount,.payroll-history-total{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.payroll-amount strong{font-size:24px}.payroll-history-total{background:#f3f7f5;padding:8px}.payroll-history-total strong{font-size:17px;white-space:nowrap}
.business-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.business-actions span{font-size:12px}.payroll-actions button{font-size:10px;padding:6px 7px}.payroll-actions .primary{margin-left:auto}
.payroll-history .ledger-table{flex:1;min-height:0}.payroll-history-footer span{margin-right:auto}.payroll-history-footer button{max-width:76%;white-space:normal}
/* Seven duty rows fit without scrolling at the agreed desktop monitor size. */
@media(min-width:1120px) and (min-height:650px){
  .payroll-entry{padding:7px;gap:5px}
  .payroll-entry h2{font-size:12px;margin:0}
  .payroll-rules{padding:4px 6px;font-size:10px;line-height:1.3}
  .payroll-grid{flex:0 0 auto;overflow:visible}
  .payroll-grid th{padding:4px 2px;font-size:9px;line-height:1.2}
  .payroll-summary{padding:4px}
  .payroll-summary strong{font-size:15px}
  .payroll-amount strong{font-size:22px}
  .payroll-actions button{min-height:28px;padding:4px 6px}
  .payroll-entry>.business-footnote{font-size:10px;line-height:1.3}
}
.business-footnote{font-size:11px;color:#647c70;line-height:1.4;margin:0}.business-status{font-size:12px;margin:0}.business-details{font-size:11px;padding:6px 9px;margin:0;white-space:pre-wrap;background:#edf5f0;max-height:70px;overflow:auto;line-height:1.4}
.audit-screen{max-width:900px;margin:auto}.audit-screen .business-actions select{min-width:200px}.audit-screen .ledger-table th,.audit-screen .ledger-table td{font-size:12px;text-align:center;padding:6px 8px;white-space:normal}.audit-screen th:first-child{width:42%}.audit-screen th:nth-child(2){width:16%}.audit-section{background:#edf4f1;color:#49665d}.audit-total{background:#ddefe8;color:#124c3c;font-weight:700}.audit-screen .negative{color:#ad3434}
.business-dialog{width:min(1240px,96vw);max-width:none;max-height:94vh;padding:16px}.business-dialog .ledger-table{max-height:60vh}.business-dialog h2{font-size:18px}.business-dialog .dialog-actions{margin-top:10px;padding-top:10px}.business-dialog .dialog-actions span{margin-right:auto;font-size:12px}
.business-dialog:has(#audit-editor),.business-dialog:has(#shift-editor),.business-dialog:has(#business-confirm),.business-dialog:has(#shift-confirm-delete){width:min(580px,96vw)}
.business-dialog:has(.credit-print){width:min(900px,96vw)}
.business-dialog:has(.sale-correction){width:min(860px,96vw)}
.sale-correction .ledger-table{max-height:36vh}.sale-correction .ledger-table input{min-width:70px;width:100%;margin:0;padding:4px 6px;min-height:28px}.sale-correction .ledger-table td{padding:4px 6px}.sale-correction .master-two{gap:6px 12px}.sale-correction-footer{display:flex;align-items:end;gap:16px}.sale-correction-footer label{flex:1}.sale-correction-footer p{margin:0 0 5px;white-space:nowrap}.sale-correction-footer strong{font-size:20px}
@media(min-width:1000px){.workspace[data-screen=shift] main{display:flex;flex-direction:column;overflow:hidden;padding:12px 16px}.workspace[data-screen=shift] #screen{flex:1;display:flex;flex-direction:column;min-height:0}.shift-screen{flex:1}.shift-screen>.ledger-table{flex:1;min-height:0}}
.credit-filter{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 12px}.credit-filter label{flex:1}.credit-filter>div,.credit-actions>div:first-child{display:flex;flex-direction:column;align-items:flex-end}.credit-filter span,.credit-actions span{font-size:10px}.credit-filter strong{font-size:23px}.credit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;background:white;border:1px solid var(--line);padding:8px 12px}.credit-actions>div:first-child{align-items:flex-start}.credit-actions strong{font-size:19px}.credit-history-heading h2{margin-right:auto}.credit-screen>.ledger-table{flex:1;min-height:90px}.credit-screen .ledger-table th,.credit-screen .ledger-table td{padding:6px 8px;font-size:11px}
.audit-print,.credit-print{font:13px Arial,sans-serif;color:#172b24;background:white;max-width:760px;margin:auto}.audit-print h1,.audit-print h2,.credit-print h1,.credit-print h2{text-align:center}.audit-print table{width:100%;border-collapse:collapse}.audit-print th,.audit-print td{text-align:center;padding:6px 9px;border-bottom:1px solid #e0e7e2}.audit-print thead{background:#155b46;color:white}.audit-print .section{background:#f0f4f1}.audit-print .total{background:#e0eee7;font-weight:bold}
@media(max-width:1050px){.payroll-panes{grid-template-columns:1fr;overflow:auto}.payroll-entry{min-height:530px}.payroll-history{min-height:400px}.credit-actions{flex-wrap:wrap}}
@page audit-sheet{size:A4 portrait;margin:13mm 12mm}
@page credit-sheet{size:80mm auto;margin:2mm}
@media print{body.business-audit-print #print-area{page:audit-sheet}body.business-credit-print #print-area{page:credit-sheet}.audit-print,.credit-print{max-width:none}.audit-print tr{break-inside:avoid}.audit-print thead{display:table-header-group}.audit-print .section,.audit-print .total,.audit-print thead{print-color-adjust:exact}.credit-print .ledger-table{overflow:visible;max-height:none}.credit-print th,.credit-print td{font-size:8px;white-space:normal;padding:3px}.credit-print .ledger-table table{min-width:0}}
.denomination-dialog{width:540px;max-width:94vw;padding:16px}
.denomination-form h2{margin:0 0 6px;font-size:20px}
.denomination-form .dialog-actions{margin-top:8px}
.denomination-form table{width:100%;border-collapse:collapse;margin:8px 0}
.denomination-form td,.denomination-form th{padding:3px 8px;text-align:center}
.denomination-form input{height:28px;padding:3px 8px;text-align:center;max-width:150px;margin:0}
.denomination-form p{margin:5px 0}
.denomination-total{display:flex;justify-content:space-between;align-items:center;padding:8px;background:#f1f6f3}
.denomination-total strong{font-size:22px}
.receipt-original{white-space:pre;width:42ch;max-width:100%;font:11px/1.35 Consolas,'Courier New',monospace;margin:12px auto;overflow:auto}.warehouse-names-only{white-space:pre-wrap;font:12px/1.5 Consolas,'Courier New',monospace}
.banner-fit-frame{position:relative;background:#edf3ee;border:3px solid #17382a;aspect-ratio:1.25;overflow:hidden;margin-top:8px}.banner-fit-frame #banner-fit-image{position:absolute;cursor:move;border:1px dashed #167958;touch-action:none}.banner-fit-frame img{width:100%;height:100%;object-fit:contain}.banner-fit-frame i{position:absolute;width:12px;height:12px;background:#167958}.banner-fit-frame [data-corner=tl]{left:0;top:0;cursor:nw-resize}.banner-fit-frame [data-corner=tr]{right:0;top:0;cursor:ne-resize}.banner-fit-frame [data-corner=bl]{left:0;bottom:0;cursor:sw-resize}.banner-fit-frame [data-corner=br]{right:0;bottom:0;cursor:se-resize}
.integrity-detail{font-size:11px;white-space:pre-wrap;max-height:170px;overflow:auto;background:#f2f6f3;padding:10px}
