#reportView[hidden]{display:none}body.report-open{overflow:hidden}#reportView{position:fixed;inset:0;z-index:100;background:#e7edf5;overflow:auto;padding:24px;color:#162d49}.report-controls{max-width:830px;margin:0 auto 20px;display:flex;gap:12px;justify-content:flex-end;position:sticky;top:0;z-index:2;background:#e7edf5;padding:10px}.closing-sheet{background:white;max-width:830px;margin:0 auto;padding:32px;border:1px solid #d6e0ef;box-shadow:0 8px 24px #1233}.report-header{align-items:start;gap:20px;border-bottom:2px solid #245992;padding-bottom:16px}.report-header h1{font-size:26px;margin:7px 0}.report-header p{font-size:11px;margin:5px 0;line-height:1.6}.report-brand{font-size:11px;letter-spacing:2px;color:#2474c2;font-weight:700}.report-meta{text-align:right}.report-meta>strong{font-size:11px}.closing-sheet section{margin-top:23px}.closing-sheet h2{font-size:14px;margin:0 0 12px;color:#225083}.closing-sheet h3{font-size:11px;margin:12px 0}.report-table{width:100%;border-collapse:collapse;white-space:normal;table-layout:auto}.report-table th{font-size:9px;background:#e8f1fc;color:#1c426e;letter-spacing:0;padding:7px 6px;border:1px solid #c5d5e8}.report-table td{font-size:9px;padding:6px;border:1px solid #c5d5e8;line-height:1.5;vertical-align:top}.report-table td strong{font-size:10px}.report-table td small{display:block;font-size:8px;line-height:1.5;margin-top:3px;color:#61728b}.report-table tr:nth-child(even){background:#f1f6fd}.report-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.report-total{font-size:11px;line-height:1.7;text-align:right}.worker-ledger{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #bdd0e7;border-left:1px solid #bdd0e7}.worker-column{border-right:1px solid #bdd0e7;border-bottom:1px solid #bdd0e7;padding:9px}.worker-column h3{margin:0 0 8px;background:#e8f1fc;padding:7px;font-size:11px}.worker-column>div{display:flex;justify-content:space-between;gap:5px;font-size:9px;padding:5px 0;border-bottom:1px solid #e3eaf4}.worker-column>div strong{white-space:nowrap}.worker-column>p{font-size:10px}.worker-subtotal{border-top:1px solid #6586af;margin-top:10px}.report-note{font-size:9px;color:#647791;line-height:1.7}.report-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-signatures{display:flex;justify-content:space-between;font-size:10px;gap:20px;margin-top:35px}.closing-sheet footer{font-size:9px;margin:20px 0 0;color:#687b96}.closing-breakdown .split:nth-child(even){background:#eaf3ff}.closing-breakdown .split{padding:12px}.closing-cards{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){#reportView{padding:10px}.report-controls{justify-content:stretch;margin-bottom:10px;padding:5px}.report-controls button{flex:1;font-size:13px}.closing-sheet{padding:18px 12px}.report-header{flex-direction:column;gap:8px}.report-meta{text-align:left}.report-bottom{grid-template-columns:1fr}.worker-ledger{grid-template-columns:repeat(2,minmax(0,1fr))}.report-signatures{flex-direction:column;gap:25px}.report-table{table-layout:fixed}.report-table td,.report-table th{padding:4px 3px;font-size:8px;overflow-wrap:anywhere}.report-table td small{font-size:7px}.report-money{white-space:normal}.closing-cards{grid-template-columns:1fr}}
@page{size:A4 portrait;margin:12mm}@media print{html,body{background:white!important;min-width:0!important;margin:0!important;padding:0!important}body>*{display:none!important}body>#reportView:not([hidden]){display:block!important;position:static!important;overflow:visible!important;padding:0!important;inset:auto!important;background:white!important}.report-controls{display:none!important}.closing-sheet{padding:0;max-width:none;border:0;box-shadow:none;margin:0}.report-header{display:flex;flex-direction:row;break-inside:avoid}.report-meta{text-align:right}.report-table{table-layout:auto}.report-table thead{display:table-header-group}.report-table td,.report-table th{font-size:9px;padding:5px}.report-money{white-space:nowrap}.report-table tr,.worker-column,.report-signatures{break-inside:avoid}.report-bottom{grid-template-columns:1fr 1fr;gap:16px}.worker-ledger{grid-template-columns:repeat(4,minmax(0,1fr))}.report-signatures{flex-direction:row}.closing-sheet section{margin-top:17px}.report-header h1{font-size:24px}.closing-sheet h2{break-after:avoid}.report-table th,.worker-column h3{background:#e8f1fc!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-table tr:nth-child(even){background:#f1f6fd!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.closing-sheet .report-cash .report-table th{font-size:11px;padding:9px 8px}.closing-sheet .report-cash .report-table td{font-size:12px;padding:8px;line-height:1.5}.closing-sheet .report-cash .report-cash-emphasis td{font-weight:700}.closing-sheet .report-cash h2{font-size:17px}@media print{.closing-sheet .report-cash .report-table th{font-size:11px}.closing-sheet .report-cash .report-table td{font-size:12px;padding:7px 8px}.closing-sheet .report-cash .report-cash-emphasis td{font-weight:700}}

.ticket-controls { flex-wrap: wrap; justify-content: center; }
.customer-ticket { width: min(100%, 80mm); padding: 18px; margin-inline: auto; font-size: 13px; }
.customer-ticket header { text-align: center; }
.ticket-brand { color: #142d47; font-size: 29px; font-weight: 900; letter-spacing: -.6px; }
.customer-ticket h2 { margin: 6px 0 10px; }
.ticket-meta { line-height: 1.5; overflow-wrap: anywhere; }
.ticket-group { border-top: 1px dashed #6586af; padding-top: 8px; margin-top: 8px; }
.ticket-group > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.ticket-group strong { white-space: nowrap; }
.customer-ticket footer { text-align: center; color: inherit; }
@media print {
  .customer-ticket { width: 72mm; padding: 0; margin-inline: auto; border: 0; }
}

@page purchase-list { size: letter portrait; margin: 12mm; }
@media print {
  .purchase-order-sheet { page: purchase-list; }
  .purchase-order-sheet tr { break-inside: avoid; }
  .purchase-order-sheet thead { display: table-header-group; }
}

.closing-sheet .company-report-logo {
  display: block;
  width: 106px;
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.customer-ticket .company-report-logo { width: 104px; margin-inline: auto; }
@media print {
  .closing-sheet .company-report-logo { width: 27mm; }
}
