.st-sheet{max-width:100%;max-height:560px;overflow:auto;border:1px solid #cbd5e1;border-radius:5px;margin:12px 0;scrollbar-gutter:stable}
.st-sheet table{width:100%;font-size:13px;white-space:nowrap;border-collapse:separate;border-spacing:0}
.st-sheet th,.st-sheet td{padding:10px 12px;border-right:1px solid #e0e6ef;border-bottom:1px solid #e0e6ef;vertical-align:middle}
.st-sheet th{position:sticky;top:0;z-index:2;background:#edf3fa;color:#243e60;font-weight:650}
.st-sheet th:last-child,.st-sheet td:last-child{border-right:0}
.st-sheet tbody tr:nth-child(even){background:#f7f9fc}
.st-sheet tbody tr:hover{background:#edf4ff}
.st-sheet tbody tr:last-child td{border-bottom:1px solid #e0e6ef}
.st-sheet .st-number{text-align:right;font-variant-numeric:tabular-nums}
.st-sheet .st-wrap{white-space:normal;min-width:140px;max-width:240px;overflow-wrap:anywhere}
.st-sheet tfoot td{position:sticky;bottom:0;background:#edf3fa;color:#183b65;font-weight:650;border-top:1px solid #cbd5e1;border-bottom:0}
.st-sheet button{padding:7px 10px;min-height:32px;font-size:12px;white-space:nowrap}
.st-sheet .st-row-actions{display:flex;gap:6px}
.st-sheet-caption{font-size:13px;color:#40536c;line-height:1.7;margin:12px 0}
.st-sheet-hint{font-size:12px;color:#65768d;margin:0 0 10px;line-height:1.6}
#form-dialog.st-sheet-dialog{width:min(1180px,96vw);max-width:96vw;max-height:92dvh}
.st-sheet-dialog .dialog-title{position:sticky;top:-28px;background:white;padding:12px 0;z-index:3;border-bottom:1px solid #e0e6ef;margin-bottom:16px;gap:12px}
.st-sheet-dialog h3{margin:22px 0 10px;font-size:15px}
.st-field-sheet{width:100%;table-layout:fixed;white-space:normal;font-size:13px}
.st-field-sheet th,.st-field-sheet td{border:1px solid #dce4ed;padding:11px 13px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.st-field-sheet th{width:17%;background:#edf3fa;color:#40536c;font-weight:600}
.st-field-sheet td{width:33%;background:white}
.st-field-sheet tr:last-child td{border-bottom:1px solid #dce4ed}
.st-sheet-dialog .st-sheet{max-height:55dvh}
@media(max-width:700px){.st-sheet{max-height:65dvh}.st-sheet th,.st-sheet td{padding:10px}.st-field-sheet th,.st-field-sheet td{padding:8px;font-size:12px}.st-sheet-dialog .dialog-title{top:-18px}.st-sheet-dialog .dialog-title h2{font-size:18px}}

.st-check{display:flex;align-items:center;gap:9px;margin:14px 0;font-weight:600}.st-check input,.st-reconcile-choice{width:19px;height:19px;flex:none;accent-color:#06366e}.st-confirm-total{padding:16px;background:#edf4ff;border:1px solid #b5cce8;border-radius:8px;color:#06366e;font-size:18px;font-weight:700}.st-done{color:#126b4f;font-weight:650;padding:8px}.st-status{display:inline-block;padding:4px 9px;border-radius:5px;background:#e8f0fb;color:#154577;font-weight:600}

/* Compact ledger: all core columns fit the desktop; long codes and dates wrap. */
.st-tabs{display:flex;gap:0;margin:12px 0;border-bottom:2px solid #163e6f}
.st-tabs button{border-radius:0;background:#edf3fa;color:#183b65;border:1px solid #cad7e6;padding:10px 20px}
.st-tabs button[aria-selected=true]{background:#06346d;color:white}
.st-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px;align-items:end}
.st-filter-grid label{min-width:0;margin:4px 0;font-size:12px}.st-filter-grid input,.st-filter-grid select{width:100%;min-width:0;padding:7px 9px;min-height:34px;font-size:13px}
.st-filter-grid .toolbar{margin:0}.st-filter-grid>button{justify-self:start}
.st-compact{scrollbar-gutter:auto}.st-compact table{table-layout:fixed;white-space:normal;font-size:12px;min-width:0}
.st-compact th,.st-compact td{padding:8px 7px;white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.5}
.st-compact small{display:block;color:#64748b;font-size:11px;line-height:1.55;margin-top:3px}
.st-compact .st-number{white-space:normal}.st-compact button{font-size:12px;padding:5px 7px;min-height:29px;margin:2px 0;white-space:normal}
.st-compact .st-status{padding:3px 5px}.st-compact .st-row-actions{flex-wrap:wrap}
.st-compact table[aria-label="对账单列表"] th:first-child{width:22%}
.st-compact table[aria-label="对账单列表"] th:nth-child(2){width:15%}
.st-compact table[aria-label="对账单列表"] th:nth-child(6){width:13%}
.st-compact table[aria-label="对账单列表"] th:last-child{width:12%}
.st-compact table[aria-label="对账单费用明细"] th:first-child{width:5%}
.st-compact table[aria-label="对账单费用明细"] th:nth-child(2){width:13%}
.st-compact table[aria-label="对账单费用明细"]:has(.st-reconcile-choice) th:nth-child(2){width:5%}
.st-compact table[aria-label="对账单费用明细"]:has(.st-reconcile-choice) th:nth-child(3){width:18%}
.st-compact table[aria-label="待生成对账单的费用"] th:first-child{width:5%}
.st-compact table[aria-label="待生成对账单的费用"] th:nth-child(2){width:22%}
#st-invoice-panel{scroll-margin-top:12px}
@media(min-width:701px){#content:has(.st-tabs),#content:has(#st-invoice-panel){min-width:0}#content:has(.st-tabs) .panel,#content:has(#st-invoice-panel) .panel{padding:18px}#content:has(.st-tabs) .panel-head h2{font-size:18px}}
@media(max-width:950px){.st-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-compact table{min-width:720px}}
@media(max-width:600px){.st-filter-grid{grid-template-columns:1fr}.st-tabs button{padding:8px 10px;font-size:13px}}

#content:has(table[aria-label="对账单费用明细"]) .expense-actionbar:empty{display:none}
.business-progress{border-bottom:1px solid #ccd8e8;padding:0 0 14px;margin:0 0 18px;color:#243b59}.business-stamp{display:inline-block;font-size:23px!important;font-weight:750;line-height:1.35;border:2px solid #174e85;color:#174e85;padding:7px 14px;margin:6px 0;background:#f0f6ff}.business-progress>p{font-size:14px;line-height:1.65;margin:8px 0}.business-progress details{margin-top:10px}.business-progress small{display:block}.field-required{color:#b42318;font-size:11px;margin:0 6px}.field-error{display:block;color:#b42318;font-size:12px;line-height:1.6;margin:4px 0}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:#c43e30!important}.st-warning{color:#b42318!important}.business-progress .toolbar button{font-size:12px}#st-receipt-summary{display:block;margin:10px 0}.st-compact input[type=number]{min-width:0;width:100%;padding:6px;font-size:13px}

.st-adjusted{display:inline-block;color:#8a4100;background:#fff1db;border:1px solid #bd691d;border-radius:4px;padding:2px 6px;font-size:12px;white-space:nowrap}.st-adjustment-notice{padding:10px 12px;border-left:4px solid #b66a1b;background:#fff7e9;color:#713b07;line-height:1.7}
