/* Compact, high-contrast administrative tables. */
.history-payment-filters{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;margin-top:12px;max-width:780px}.history-payment-summary{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 14px}.history-payment-summary p{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1;min-width:250px;padding:12px 15px;margin:0;background:#fff;border:1px solid #bacbd7;border-left:3px solid #b99a4f;border-radius:6px;font-size:12px}.history-payment-summary strong{white-space:nowrap;color:#15594c}.history-receipts-table{min-width:1450px}.history-receipts-table td{max-width:250px;overflow-wrap:anywhere}@media(max-width:600px){.history-payment-filters{grid-template-columns:1fr}.history-payment-summary p{min-width:0;flex-basis:100%}}
/* The historical archive has no live-order actions. */
.history-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}.history-source{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#8a6a24}.history-intro h2{font-size:23px;margin:5px 0 7px;letter-spacing:-.5px}.history-intro p{font-size:12px;line-height:1.6;margin:0;color:#4a6577}.history-readonly{flex-shrink:0;border:1px solid #cfb775;background:#fff6dd;color:#6b5118;padding:7px 11px;border-radius:30px;font-size:10px;font-weight:750}.history-import{border:1px solid #b9cbd6;border-radius:8px;background:white;margin-bottom:14px;overflow:hidden}.history-import>summary{font-weight:750;font-size:13px;padding:16px 18px;cursor:pointer;background:#edf3f7}.history-import[open]>summary{border-bottom:1px solid #c6d4dd}.history-import>summary:focus-visible{outline:3px solid #087c6a;outline-offset:-3px}.history-import-body{padding:16px 18px}.history-import-body>p{font-size:12px;line-height:1.7;color:#4a6577;margin:0 0 15px}.reports-workspace .history-import input[type=file]{height:auto;padding:12px;max-width:600px;background:#f7fafb}.history-file-review{border-top:1px solid #cedae2;margin-top:17px;padding-top:17px}.history-file-review>strong{display:block;font-size:13px;overflow-wrap:anywhere}.history-file-review>p{font-size:12px;color:#4a6577}.history-file-review .history-summary{margin:12px 0}.history-file-review .history-summary article{padding:12px 15px}.history-file-review .history-summary strong{font-size:21px}.history-import progress{display:block;width:100%;height:16px;accent-color:#087c6a}.history-import-status{font-size:13px;font-weight:700;color:#086b5b;line-height:1.6}.history-start{margin:9px 0 2px}body.staff .history-start{background:#087c6a;color:#fff;border-color:#087c6a;font-size:13px;font-weight:750;padding:12px 18px}.history-coverage{padding:12px 15px;border-left:3px solid #b99a4f;background:#f1f5f7;color:#365469;font-size:12px;line-height:1.7;margin:10px 0 15px}.history-filters .reports-dates{margin-bottom:12px}.history-filters .history-search{flex:1;min-width:220px}.history-filters>.report-filter{max-width:420px}.reports-product-tabs.history-tabs{flex-wrap:wrap;margin-bottom:5px}.history-summary{margin:13px 0}.history-summary strong{font-size:25px;font-variant-numeric:tabular-nums}.history-unknown{font-size:10px;color:#5c6f7d;font-style:italic;display:inline-block;min-width:105px;line-height:1.6}.history-table{min-width:960px}.history-orders-table{min-width:1250px}.history-detail-table{min-width:1280px}.history-daily-table{min-width:480px}.history-table-scroll{max-height:65dvh}.history-table .report-items-cell{min-width:340px;max-width:510px}.history-table .report-order-item b{font-weight:600}.history-import .report-summary-cards article{box-shadow:none}.history-import .report-export-error{line-height:1.6}.history-import .history-start:disabled{opacity:.6}.reports-workspace .reports-tabs{flex-wrap:wrap}
@media(max-width:700px){.history-intro{align-items:start;flex-direction:column;gap:10px}.history-intro h2{font-size:22px}.history-import-body{padding:13px}.history-summary strong,.history-file-review .history-summary strong{font-size:19px}.history-filters .history-search{flex-basis:100%;min-width:0}.history-tabs{gap:4px}.history-tabs button{flex:1;min-width:130px}.history-coverage{font-size:11px}.history-import>summary{padding:13px}.reports-tabs button{white-space:normal}}
.reports-workspace{--report-ink:#183044;--report-border:#bacbd7;--report-soft:#eef4f7;--report-teal:#087c6a;min-width:0;color:var(--report-ink)}
.reports-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}.reports-heading h1{font-size:28px;letter-spacing:-.7px;margin:3px 0 0}.reports-location{font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#4c6474}.reports-admin-label{font-size:11px;border:1px solid #b9cbd7;border-radius:999px;padding:7px 12px;background:#e5eef4;color:#365368}
.reports-tabs{display:flex;gap:5px;border-bottom:2px solid #8da5b7;margin-bottom:16px}body.staff .reports-tabs button{border:0;border-radius:8px 8px 0 0;background:#d4e0e8;color:#355165;font-size:14px;font-weight:750;padding:13px 23px}body.staff .reports-tabs button.active{color:#fff;background:#183044;box-shadow:inset 0 -3px #e0b957}body.staff .reports-tabs button:hover{background:#294b61;color:white}
.reports-controls{border:1px solid var(--report-border);background:white;border-radius:10px;padding:14px 16px;box-shadow:0 2px 7px #152b3b0a}.reports-periods{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}body.staff .reports-periods button{padding:7px 11px;font-size:12px;min-height:33px;border:1px solid #bfced8;background:#f1f5f8;color:#294456;border-radius:5px}body.staff .reports-periods button.active{background:#087c6a;color:white;border-color:#087c6a}.reports-dates{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:12px}.reports-dates .report-filter{width:155px}.reports-actions{display:flex;align-items:center;gap:8px;margin-left:auto}body.staff .reports-actions button{min-height:38px;padding:9px 14px;font-size:12px;font-weight:750;border-radius:5px}.reports-actions .primary{background:#087c6a;border-color:#087c6a}.reports-actions #report-export{border-color:#b18d39;background:#fff5d7;color:#624b15}
.reports-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(136px,1fr));gap:10px}.report-filter{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0!important}.report-filter>span{color:#294556;font-size:11px;font-weight:750}.reports-workspace .report-filter input,.reports-workspace .report-filter select{width:100%;max-width:none;padding:8px 9px;height:37px;min-height:37px;border:1px solid #9fb6c8;border-radius:5px;background:#fff;color:#19354a;font-size:12px;box-shadow:inset 0 1px 2px #162c3a05}.reports-workspace .report-filter input:focus,.reports-workspace .report-filter select:focus{outline:2px solid #0c8c78;outline-offset:1px;border-color:#0c8c78}.report-search{min-width:175px;grid-column:span 2}.reports-product-tabs{display:flex;align-items:center;gap:5px;padding-top:16px}body.staff .reports-product-tabs button{font-size:11px;letter-spacing:.2px;font-weight:750;text-transform:uppercase;padding:10px 14px;border-radius:5px 5px 0 0;border:1px solid #a9bdcc;border-bottom:0;background:#d8e4eb;color:#395369}body.staff .reports-product-tabs button.active{background:#fff;color:#087c6a;box-shadow:inset 0 3px #087c6a}.reports-product-tabs>span{font-size:11px;color:#516878;margin-left:auto}.report-context{font-size:11px;color:#496375;margin:12px 0 8px;min-height:17px}.report-table-scroll{overflow:auto;max-height:calc(100dvh - 400px);min-height:180px;scrollbar-color:#91a9ba #e9f0f4;border:1px solid #aabfcd;border-radius:6px;background:white}.report-table-scroll:focus-visible{outline:3px solid #0c8c78;outline-offset:2px}.reports-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;background:#fff;line-height:1.45;color:#1f394c}.report-orders-table{min-width:1610px}.report-products-table{min-width:1050px}.reports-table th,.reports-table td{padding:11px 12px;vertical-align:top;border-bottom:1px solid #c8d6df;border-right:1px solid #d8e3ea}.reports-table th:last-child,.reports-table td:last-child{border-right:0}.reports-table thead th{position:sticky;top:0;z-index:2;background:#214258;color:white;font-size:10px;letter-spacing:.5px;text-transform:uppercase;text-align:left;font-weight:750;white-space:nowrap;border-bottom:2px solid #ba9e55}.reports-table tbody tr:nth-child(even){background:#f0f5f8}.reports-table tbody tr:hover{background:#e7f4f0}.reports-table .right{text-align:right;white-space:nowrap}.reports-table td>small{display:block;font-size:10px;color:#4f687a;margin-top:5px}.reports-table tfoot th,.reports-table tfoot td{position:sticky;bottom:0;z-index:2;background:#dbeae6;color:#173c34;vertical-align:middle;border-top:2px solid #0c806d;border-bottom:0;font-size:12px;padding:13px 12px;font-weight:700}.reports-table tfoot th{text-align:left}.reports-table tfoot span{font-size:10px;font-weight:500;color:#4a6b61}.report-location{display:block;font-size:10px;color:#526d7d;margin-bottom:4px}.report-order-number{display:block;white-space:nowrap;color:#183f53;font-size:12px;font-weight:750}.report-date-cell{min-width:120px;width:120px;font-variant-numeric:tabular-nums}.report-customer-cell{min-width:200px;max-width:250px;overflow-wrap:anywhere}.report-items-cell{min-width:310px;max-width:400px}.report-order-item{padding:7px 0;border-bottom:1px dashed #becfd9}.report-order-item:first-child{padding-top:0}.report-order-item:last-child{border-bottom:0;padding-bottom:0}.report-order-item>div:first-child{display:flex;justify-content:space-between;gap:15px}.report-order-item strong{white-space:nowrap;font-size:11px}.report-item-options{font-size:10px;color:#4b6577;margin-top:4px;line-height:1.55}.report-item-note{font-style:italic;margin-top:5px}.report-service-note{margin:6px 0 0;border-left:3px solid #b89d52;padding-left:7px;font-weight:650}.report-amount-cell{min-width:110px}.report-amount-cell>strong{font-size:14px}.report-edit{font-size:10px;color:#617581}.report-edit.is-edited{font-weight:750;color:#805711;border:1px solid #d8bb78;background:#fff1cd;padding:3px 7px;border-radius:4px}.report-cancel-reason{max-width:180px;color:#a13737!important;overflow-wrap:anywhere}.report-product-name{min-width:230px}.report-empty{padding:55px 20px!important;text-align:center;color:#536c7f}.report-loading,.report-error{padding:42px 20px;text-align:center;background:white;border:1px solid #aabfcd;border-radius:7px;min-height:200px;color:#385a70}.report-error strong{display:block;color:#963c38;margin-bottom:9px}body.staff .report-error button{margin-top:15px;background:#087c6a;color:white;border-color:#087c6a}.report-pagination{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:13px 2px;font-size:11px;color:#36556b}.report-pagination>div{display:flex;align-items:center;gap:12px}body.staff .report-pagination button{padding:7px 11px;min-height:33px;font-size:11px;border:1px solid #abc0ce;background:white;color:#294b61;border-radius:5px}.reports-workspace button:disabled{opacity:.5;cursor:default}.report-note{font-size:11px;line-height:1.6;color:#4c6577;margin-top:10px}.report-export-error{padding:10px 15px;border:1px solid #dcaaa3;color:#91382b;background:#fff1ed;border-radius:6px;margin-bottom:10px}.report-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.report-summary-cards article{padding:20px;background:#fff;border:1px solid #afc2cf;border-top:3px solid #087c6a;border-radius:7px}.report-summary-cards span{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.6px;color:#4d697b}.report-summary-cards strong{display:block;font-size:27px;color:#173b4c;margin-top:10px;letter-spacing:-.8px}.report-summary-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.report-summary-panel{background:white;padding:16px;border:1px solid #b5c7d4;border-radius:8px}.report-summary-panel h2{font-size:15px;margin:0 0 14px}.report-summary-panel .report-table-scroll{max-height:430px;min-height:120px}.report-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.report-table-scroll{max-height:calc(100dvh - 380px)}.reports-filter-grid{grid-template-columns:repeat(9,minmax(120px,1fr))}.report-search{grid-column:span 2}}
@media(max-width:1000px){body.staff .reports-tabs button{padding:12px 15px}.reports-filter-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}.report-table-scroll{max-height:65dvh}.report-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.report-summary-columns{grid-template-columns:1fr}.reports-product-tabs{flex-wrap:wrap}.reports-product-tabs>span{margin-left:0;flex-basis:100%;padding:5px 0}}
@media(max-width:600px){.reports-heading{align-items:start}.reports-heading h1{font-size:25px}.reports-admin-label{font-size:9px;padding:6px 9px}.reports-location{font-size:9px}.reports-tabs{gap:3px}body.staff .reports-tabs button{flex:1;padding:11px 7px;font-size:11px}.reports-controls{padding:12px}.reports-periods{gap:4px}body.staff .reports-periods button{font-size:10px;padding:6px 8px}.reports-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-search{min-width:0;grid-column:span 2}.reports-dates .report-filter{width:calc(50% - 5px)}.reports-actions{width:100%;margin-left:0}body.staff .reports-actions button{flex:1}.report-summary-cards article{padding:14px}.report-summary-cards strong{font-size:21px}.report-pagination>div{width:100%;justify-content:space-between;gap:5px}body.staff .report-pagination button{font-size:10px}body.staff .reports-product-tabs button{font-size:9px;padding:10px 9px}}
/* Unified reports: archival records keep provenance without a separate navigation tab. */
.report-source-badge{display:inline-block;margin-top:6px;padding:3px 7px;border:1px solid #c8b57c;border-radius:4px;background:#fbf4de;color:#705920;font-size:9px;font-weight:750;white-space:nowrap}
.reports-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
body.staff .report-cancellations-shortcut{font-size:12px;font-weight:750;padding:8px 14px;min-height:35px;border:1px solid #c59692;color:#872f35;background:#fff7f6;border-radius:6px}
.report-order-views{display:flex;gap:5px;margin:0 0 12px}body.staff .report-order-views button{font-size:12px;font-weight:750;padding:8px 18px;border:1px solid #b4c5d1;border-radius:6px;background:#f3f7fa;color:#365368}body.staff .report-order-views button.active{background:#183b50;color:#fff;border-color:#183b50}body.staff .report-order-views button[data-order-view=cancelled].active{background:#983f47;border-color:#983f47}
.report-cancellation-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px 25px;margin:0 0 13px;padding:15px 18px;border:1px solid #d3a7aa;border-left:4px solid #9a414b;border-radius:7px;background:#fff7f6;color:#702e36;font-size:13px}.report-cancellation-summary small{margin-left:auto;color:#81535a;font-size:11px}
.report-archive-tools{margin-top:22px;border:1px solid #b7cad5;border-radius:9px;background:#f7fafb;overflow:hidden}.report-archive-tools>summary{cursor:pointer;padding:16px 18px;background:#e5eef3;color:#29495e;font-size:13px;font-weight:750}.report-archive-tools>summary:focus-visible{outline:3px solid #0c806d;outline-offset:-3px}.report-archive-tools[open]>summary{border-bottom:1px solid #bdcdd7}#history-workspace{padding:0 18px 16px}.report-payment-other{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;padding:12px;border:1px solid #c5d3dd;border-radius:6px;background:white;font-size:12px;color:#3d5b6c}
@media(max-width:600px){.reports-heading-actions{gap:5px;max-width:160px}.reports-heading-actions .reports-admin-label{display:none}body.staff .report-cancellations-shortcut{padding:8px 11px;font-size:11px}.report-cancellation-summary{padding:12px;gap:8px}.report-cancellation-summary small{flex-basis:100%;margin-left:0}#history-workspace{padding:0 11px 12px}.report-archive-tools>summary{padding:14px 12px;font-size:12px}}

/* Imported cancellation details retain source lines without invented item prices. */
.report-source-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.55}.report-items-cell .report-source-text{min-width:310px}.report-cancel-reason{white-space:pre-wrap}.reports-periods #report-cancellations-all{margin-left:auto;border-color:#c59692;color:#872f35;background:#fff7f6}@media(max-width:600px){.reports-periods #report-cancellations-all{margin-left:0}}

.report-date-warning{padding:9px 11px;border:1px solid #d9b96a;border-radius:5px;background:#fff6df;color:#7b5919!important;font-size:11px;line-height:1.55}.report-date-cell .report-date-warning{min-width:160px;white-space:normal}
