.cash-ledger{min-width:0;margin:0 0 24px}.cash-ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.cash-ledger-heading h2{margin:0}.cash-ledger-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:22px 0}.cash-ledger-tabs [aria-selected=true]{background:#0a466a;color:white;border-color:#0a466a}.cash-ledger-tabs button{flex:1;white-space:nowrap}.cash-ledger-table-wrap{width:100%;overflow:auto;margin:16px 0}.cash-ledger-table{margin:0;min-width:620px}.cash-ledger-table td,.cash-ledger-table th{vertical-align:middle}.cash-ledger-table input[type=number]{width:128px;min-width:100px}.cash-ledger-table input[type=checkbox]{width:20px;height:20px}.cash-ledger-table td:not(:first-child){font-variant-numeric:tabular-nums}.cash-ledger-fields{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin:16px 0}.cash-ledger-fields>label{flex:1;min-width:180px;margin:0}.cash-ledger-fields>button{align-self:end}.cash-ledger-body>p{max-width:900px}.cash-ledger-transfer,.cash-ledger-explanation{margin:14px 0;border:1px solid var(--line,#dce5ed);border-radius:10px;padding:14px}.cash-ledger-transfer summary,.cash-ledger-explanation summary{cursor:pointer;font-weight:600}.cash-ledger-form{margin:18px 0}.cash-ledger-form>.primary{margin:14px 10px 14px 0}.cash-ledger-form>.secondary{margin:14px 0}.cash-ledger-confirmation{padding:20px;border:1px solid #b6cdda;border-radius:12px;background:#f3f8fb;margin:20px 0}.cash-ledger-confirmation h3{margin-top:0}.cash-ledger-confirmation li{overflow-wrap:anywhere;margin:8px 0}.cash-ledger-confirmation .header-actions{flex-wrap:wrap}.cash-ledger-opening-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.cash-ledger-opening-grid label{margin:0}.cash-ledger-custom{border-top:1px solid var(--line,#dce5ed);padding-top:20px}.cash-ledger .check-label{display:flex;align-items:center;gap:10px;margin:14px 0}.cash-ledger .check-label input{order:-1;flex:none;width:20px;height:20px}.cash-ledger-success{color:#196d45}.cash-ledger-body input,.cash-ledger-body textarea,.cash-ledger-body select,.cash-ledger-custom input,.cash-ledger-custom textarea,.cash-ledger-custom select{max-width:100%}.cash-ledger-custom>label{margin:14px 0}.cash-ledger .error{overflow-wrap:anywhere}.cash-ledger button:disabled{cursor:default;opacity:.55}@media(max-width:700px){.cash-ledger{padding:16px;max-width:100%}.cash-ledger-heading{align-items:flex-start}.cash-ledger-heading h2{font-size:21px}.cash-ledger-tabs{gap:4px}.cash-ledger-tabs button{flex-basis:44%;padding:10px 8px}.cash-ledger-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.cash-ledger-fields>label{min-width:0}.cash-ledger-opening-grid{grid-template-columns:minmax(0,1fr)}.cash-ledger-confirmation{padding:14px}.cash-ledger-confirmation ul{padding-left:20px}.cash-ledger-confirmation .header-actions{display:grid}.cash-ledger-table{min-width:660px}.cash-ledger-transfer{padding:10px}.cash-ledger-custom>label{min-width:0}}

.finance-overview{display:grid;gap:18px;margin:20px 0}.finance-overview>.receipt-row{margin:0}.finance-cash-now{border-left:5px solid #287453;background:#f3faf6}.finance-cash-now h2{margin:0 0 12px}.finance-cash-amount{display:block;font-size:clamp(32px,4vw,50px);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-1px}.finance-owner{display:inline-block;margin:6px 24px 8px 0;font-weight:600;font-variant-numeric:tabular-nums}.finance-daily .cash-ledger-heading>label{display:flex;align-items:center;gap:12px;margin:0}.finance-daily .cash-ledger-heading input{width:180px}.finance-daily tbody tr:last-child{font-weight:700;background:#f2f6f9}.finance-daily td:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}.finance-daily details>summary,.finance-operations>summary,.finance-reconciliation>summary{cursor:pointer;font-weight:650;padding:4px 0}.finance-operations[open]>summary,.finance-reconciliation[open]>summary{margin-bottom:20px}.finance-operations>.cash-ledger{margin-bottom:0;padding:0;border:0;box-shadow:none}.finance-discrepancy{border-left:4px solid #bd7e17}.finance-last-count p,.finance-discrepancy p{overflow-wrap:anywhere}.finance-last-count table td{font-variant-numeric:tabular-nums}.finance-last-count .order-table{min-width:480px}@media(min-width:1100px){.finance-cash-now{padding:28px 32px}.finance-daily{padding:24px 32px}}@media(max-width:700px){.finance-daily .cash-ledger-heading{align-items:flex-start;gap:12px}.finance-daily .cash-ledger-heading>label{width:100%;justify-content:space-between}.finance-cash-amount{font-size:34px}.finance-cash-now{padding:20px}.finance-owner{display:block}.finance-overview{gap:14px}.finance-operations>summary,.finance-reconciliation>summary{line-height:1.5}.finance-last-count .price-table-wrap{max-width:100%;overflow:auto}}
.finance-overview>*{min-width:0}.finance-overview .price-table-wrap{max-width:100%}.finance-daily .order-table{min-width:0;table-layout:fixed}.finance-daily .order-table th:first-child,.finance-daily .order-table td:first-child{width:65%}.finance-daily .order-table th:nth-child(2),.finance-daily .order-table td:nth-child(2){min-width:0;position:static}.finance-daily .order-table th,.finance-daily .order-table td{padding:12px 14px}.finance-cash-now .small{line-height:1.6}@media(min-width:1100px){.finance-overview{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.finance-cash-now,.finance-daily{padding:22px 24px}.finance-daily .cash-ledger-heading{align-items:flex-start;gap:6px}.finance-daily .cash-ledger-heading h2{font-size:22px;margin:0 0 12px}.finance-daily .cash-ledger-heading>label{font-size:12px;gap:8px;flex-wrap:wrap}.finance-daily .cash-ledger-heading input{width:160px}.finance-cash-amount{font-size:42px}.finance-last-count,.finance-discrepancy{align-self:stretch}}@media(max-width:700px){.finance-daily .order-table th:first-child,.finance-daily .order-table td:first-child{width:58%}.finance-daily .order-table th,.finance-daily .order-table td{padding:10px 8px}.finance-daily .order-table td:last-child{font-size:12px}}

/* Compact desktop cash overview: cards keep their own height. */
.finance-overview{align-items:start!important}.finance-cash-now{padding:18px 22px!important}.finance-cash-now h2{margin:0 0 8px}.finance-cash-amount{font-size:34px!important;margin:6px 0}.finance-cash-now p{margin:8px 0}.finance-shift-status{font-weight:650}.finance-last-count{grid-column:1/-1}.finance-receipts>summary{cursor:pointer;font-weight:650}.finance-receipts[open]>summary{margin-bottom:18px}.finance-quick-chooser{max-width:520px;width:calc(100% - 36px);border:1px solid #c9d5df;border-radius:16px;padding:24px;box-shadow:0 20px 70px #17334840}.finance-quick-chooser::backdrop{background:#12283877}.finance-quick-chooser .actions{display:flex;flex-wrap:wrap;gap:10px}

.quick-cash-dialog{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}.quick-cash-dialog::backdrop{background:#12283888}.quick-cash-dialog>label{display:grid;gap:6px}.quick-cash-dialog .cash-ledger{border:0;padding:0;box-shadow:none;margin:12px 0 0}.quick-cash-dialog .cash-ledger-form{margin:0}.quick-cash-dialog .cash-ledger-confirmation{padding:14px}.quick-cash-dialog .cash-ledger-confirmation .header-actions{position:sticky;bottom:0;background:var(--surface,#fff);padding:12px 0}

.quick-cash-dialog:has([data-payment-correction]){width:min(900px,calc(100vw - 28px))}.quick-cash-dialog [data-payment-correction] .cash-ledger-table{min-width:0;width:100%}.quick-cash-dialog [data-payment-correction] .cash-ledger-table td,.quick-cash-dialog [data-payment-correction] .cash-ledger-table th{position:static}.quick-cash-dialog [data-payment-correction] .header-actions{position:static}

.finance-receipts .order-table th:nth-child(3),.finance-receipts .order-table td:nth-child(3){min-width:220px;width:240px}.finance-receipt-actions{flex-direction:column;align-items:stretch;gap:6px;margin-top:0}.finance-receipt-actions>button{width:100%;text-align:left}.finance-receipt-actions>p{margin:2px 0}.finance-receipt-actions>details{font-size:12px}
.quick-cash-dialog:has([data-payment-correction]){width:min(1000px,calc(100vw - 28px))}.quick-cash-dialog:has([data-payment-correction])>.dialog-top{padding:6px 0;margin-bottom:8px}.quick-cash-dialog:has([data-payment-correction])>label{margin:6px 0;gap:4px}.quick-cash-dialog:has([data-payment-correction])>label select{padding:8px 10px}.quick-cash-dialog:has([data-payment-correction])>p{margin:6px 0}.quick-cash-dialog [data-payment-correction]{margin:8px 0;padding:12px}.quick-cash-dialog [data-payment-correction] h3{font-size:18px;margin:0 0 8px}.payment-correction-summary p{font-weight:400;line-height:1.35;margin:4px 0}.quick-cash-dialog [data-payment-correction] .cash-ledger-table-wrap{margin:8px 0}.quick-cash-dialog [data-payment-correction] .cash-ledger-table th,.quick-cash-dialog [data-payment-correction] .cash-ledger-table td{padding:6px 10px;font-size:12px}.quick-cash-dialog [data-payment-correction] .check-label{margin:8px 0;font-size:12px}.quick-cash-dialog [data-payment-correction] .header-actions{padding:4px 0;gap:8px}.quick-cash-dialog [data-payment-correction] .header-actions button{padding:9px 12px}
.cash-office-summaries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:14px;margin:14px 0 20px}.cash-office-summary{min-width:0;padding:16px;border:1px solid var(--line,#d9e4ed);border-radius:12px;background:var(--surface,#fff)}.cash-office-summary.is-current{border-color:#83b7ce;box-shadow:inset 3px 0 #105577}.cash-office-summary h3{margin:0 0 10px;font-size:17px}.cash-office-summary .cash-ledger-table{min-width:0;width:100%;table-layout:fixed}.cash-office-summary .cash-ledger-table th,.cash-office-summary .cash-ledger-table td{position:static!important;min-width:0!important;width:auto;padding:9px 10px;white-space:normal}.cash-office-summary .cash-ledger-table td:not(:first-child){font-variant-numeric:tabular-nums;white-space:nowrap}.cash-office-summary .cash-ledger-table th:last-child,.cash-office-summary .cash-ledger-table td:last-child{font-weight:700}.cash-office-summary .cash-ledger-table-wrap{margin:8px 0}.cash-office-movements>summary{cursor:pointer;padding:8px 0;font-weight:600}
.cash-transfer-selection-summary{display:block;padding:12px 16px;border:1px solid #b8d5e3;border-radius:10px;background:#edf6fa;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}.cash-transfer-selection-summary.error{background:#fff1ef;border-color:#dfafa4}
.cash-transfer-selection-summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px}.cash-transfer-selection-summary>p{grid-column:1/-1;margin:0;font-weight:400}.cash-transfer-selection-summary>strong{white-space:nowrap}
.financial-field-error{display:block;color:var(--danger,#a52b25);font-size:12px;line-height:1.45;margin:5px 0 0;font-weight:500;overflow-wrap:anywhere}[aria-invalid=true]{border-color:var(--danger,#a52b25)!important;outline-color:var(--danger,#a52b25)}.check-label:has(.financial-field-error){flex-wrap:wrap}.check-label>.financial-field-error{flex-basis:100%}
