/* One consistent spreadsheet-like presentation throughout the contract platform. */
.business-table-scroll{width:100%;max-width:100%;overflow:auto;margin:14px 0;border:1px solid #cbd5e1;background:#fff}
.business-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:auto}
.business-table th,.business-table td{padding:11px 13px;border-right:1px solid #dae3ee;border-bottom:1px solid #dae3ee;text-align:left;vertical-align:middle;line-height:1.6}
.business-table th{background:#edf3fa;color:#294460;white-space:nowrap;font-weight:650}
.business-table tr:nth-child(even){background:#f7f9fc}.business-table tr:hover{background:#edf4ff}
.business-table td{min-width:95px}.business-table td p{margin:3px 0}.business-table h3,.business-table strong.expense-amount{font-size:14px;margin:0}
.business-table button,.business-table a{display:inline-block;margin:3px;white-space:nowrap}.business-table button{padding:7px 11px;min-height:32px;font-size:13px}
.business-table .business-row-details{min-width:210px;max-width:650px}.business-table small{font-size:12px}.business-table .business-table-scroll{margin:5px 0}
#content .panel{border-radius:0;box-shadow:none;border-color:#dae3ee}
#content .expense-line,#form-fields .expense-line,#content .history-item{border-radius:0;box-shadow:none;margin:0;border:1px solid #dce4ed;border-bottom:0;padding:12px}
#content .expense-line:last-child,#content .history-item:last-child{border-bottom:1px solid #dce4ed}
#content .pilot-detail-grid{display:block}#content .pilot-detail-grid>section{border-radius:0;border-bottom:1px solid #dce4ed}
#content .expense-flow-summary,#content .expense-person-options{border-radius:0;box-shadow:none}
.business-table-scroll input[type=checkbox]{width:18px;height:18px;accent-color:#003873}
@media(max-width:700px){.business-table{min-width:560px}.business-table th,.business-table td{padding:9px}.business-table-scroll{overflow-x:auto}#content .panel{padding:15px}}

#content .db-section,#content .db-block,#content .expense-flow-policy{border-radius:0;box-shadow:none}
.business-table td:nth-child(2){font-variant-numeric:tabular-nums}
table[aria-label="审批流程"]{table-layout:fixed}
table[aria-label="审批流程"]>thead th:nth-child(1){width:18%}
table[aria-label="审批流程"]>thead th:nth-child(2){width:38%}
table[aria-label="审批流程"]>thead th:nth-child(3){width:29%}
table[aria-label="审批流程"]>thead th:nth-child(4){width:15%}
table[aria-label="审批流程"] td{min-width:0;overflow-wrap:anywhere}
table[aria-label="审批流程"] button{white-space:normal;max-width:100%;margin:0}
.expense-flow-steps p{padding:5px 0;border-bottom:1px solid #e4eaf1}
.expense-flow-steps p>span:not(:first-child){display:block}
.expense-flow-steps small{display:block;color:#657892}

/* The payable desk uses the page scroll, and reflows instead of clipping columns. */
.st-sheet.fw-payable-ledger{container:payable-ledger / inline-size;max-height:none;overflow:visible;scrollbar-gutter:auto}
.fw-payable-ledger table{width:100%;min-width:0;table-layout:fixed}
.fw-payable-ledger th,.fw-payable-ledger td{padding:8px 6px;min-width:0;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.fw-payable-ledger th:nth-child(1){width:15%}.fw-payable-ledger th:nth-child(2){width:13%}
.fw-payable-ledger th:nth-child(3),.fw-payable-ledger th:nth-child(4),.fw-payable-ledger th:nth-child(5){width:10%}
.fw-payable-ledger th:nth-child(6){width:13%}.fw-payable-ledger th:nth-child(7){width:15%}.fw-payable-ledger th:nth-child(8){width:14%}
.fw-payable-ledger .fw-actions,.fw-payable-ledger .fw-payment-progress{min-width:0;max-width:100%;gap:7px}
.fw-payable-ledger .fw-actions>button{max-width:100%;white-space:normal;font-size:12px!important;overflow-wrap:anywhere}
.fw-due-basis{margin-top:5px;color:#526b88}.fw-due-basis summary{cursor:pointer;font-size:11px}
@container payable-ledger (max-width:850px){
 .fw-payable-ledger table,.fw-payable-ledger tbody{display:block;width:100%}
 .fw-payable-ledger thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .fw-payable-ledger tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:2px solid #ced9e7}
 .fw-payable-ledger tbody td{display:block;text-align:left;border:0;padding:9px 12px}
 .fw-payable-ledger tbody td:before{content:attr(data-column-label);display:block;color:#61748b;font-size:11px;margin-bottom:4px}
 .fw-payable-ledger tbody td:last-child{grid-column:1/-1;border-top:1px solid #e0e6ef}
 .fw-payable-ledger .fw-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}
}
.expense-approval-progress .st-sheet{max-height:none}
.expense-approval-progress .business-table{table-layout:fixed}
.expense-approval-progress .business-table th,.expense-approval-progress .business-table td{min-width:0;white-space:normal;overflow-wrap:anywhere}
.expense-approval-progress .business-table th:first-child{width:7%}

.identifier-link{cursor:pointer;color:#064b92}.identifier-link:hover,.identifier-link:focus-visible{background:#eaf2fc;text-decoration:underline;outline:2px solid #87add8;outline-offset:-2px}.st-cell-link{display:block!important;width:100%;text-align:left;background:transparent!important;color:#064b92!important;padding:4px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere}.st-cell-link:hover{text-decoration:underline}.st-warning{display:block;color:#934100}.st-tabs{flex-wrap:wrap;gap:6px}.st-tabs button{padding:8px 12px;font-size:13px}.st-bill-summary{font-size:14px} .st-sheet small{display:block}

/* Finance desk: compact tables with one clear primary action. */
.fw-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}.fw-filter label{flex:1 1 150px;min-width:130px}.fw-filter input,.fw-filter select{min-width:0;width:100%}.fw-filter button{width:auto;min-width:70px}.st-code-link{background:transparent!important;color:#07529c!important;border:0!important;padding:3px 0!important;text-align:left;white-space:normal;font-weight:600;cursor:pointer}.st-code-link:hover{text-decoration:underline}.st-tabs button.active{background:#002d69;color:white}.business-stamp{font-size:20px;font-weight:750;border-left:4px solid #ff6c16;padding:8px 12px}.error{color:#bb2b21}button[data-action="cash-pay"]{background:#002d69!important;color:white!important;font-weight:700;padding:12px 24px!important}#fw-match-hint,#fw-existing-total{padding:10px;background:#f0f5fb;font-weight:600}
.fw-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:170px;padding:5px 0}.fw-actions>button{margin:0!important;white-space:nowrap}.fw-actions>.st-code-link{font-size:13px!important;line-height:1.5;padding:0!important}.fw-payment-progress{display:flex;flex-direction:column;gap:5px;min-width:150px}.fw-payment-progress strong{color:#003c7b}.fw-payment-progress>span:nth-child(3){color:#8b5a14}.fw-payment-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:14px 0 18px}.fw-payment-summary>div{border:1px solid #d8e3ef;border-radius:7px;background:#f5f8fc;padding:13px 15px}.fw-payment-summary span{display:block;font-size:13px;color:#566b85;margin-bottom:7px}.fw-payment-summary strong{font-size:21px;color:#06396f;font-variant-numeric:tabular-nums;white-space:nowrap}.fw-account-summary>div:first-child{background:#eaf2fb;border-color:#9db9d9}.fw-account-summary>div:first-child strong{font-size:25px}.fw-details{margin:18px 0;border-top:1px solid #dce5ef;padding-top:14px}.fw-details>summary{cursor:pointer;color:#174a7f;font-weight:600;padding:5px 0}.fw-details[open]>summary{margin-bottom:12px}.fw-bill-name{font-weight:600}.cash-request-summary{border-left:4px solid #f47721;padding:12px 16px;background:#f2f6fb;margin:14px 0}.cash-request-summary p{margin:6px 0}.cash-request-summary strong{font-size:18px}.cash-context{margin-bottom:18px;padding:12px;border:1px solid #dbe5f1;border-radius:6px}.cash-context p{margin:5px 0}.cash-context small{color:#5f728a}
.fw-account-panel .panel-head{margin-bottom:12px}
.fw-account-filter{display:flex;align-items:center;gap:10px 16px;margin:12px 0;padding:10px 0;border-top:1px solid #dce5ef;border-bottom:1px solid #dce5ef}
.fw-account-filter .st-tabs{flex:0 0 auto;margin:0;border:0;gap:5px}
.fw-account-filter .st-tabs button{border-radius:4px;min-width:0;min-height:36px}
.fw-account-filter label{display:flex;align-items:center;gap:8px;flex:0 1 240px;min-width:200px;margin:0;white-space:nowrap}
.fw-account-filter label input{width:160px;flex:1;min-width:125px;margin:0;padding:8px 10px;min-height:36px}
.fw-account-filter label .field-required{display:none}
.fw-account-filter>button{min-height:36px;padding:8px 18px}
.fw-account-panel .fw-account-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.fw-account-panel .fw-account-summary>div{padding:10px 14px}
.fw-account-panel .fw-account-summary span{margin-bottom:4px}
.fw-account-panel .fw-account-summary strong,.fw-account-panel .fw-account-summary>div:first-child strong{font-size:22px;line-height:1.3}
.fw-account-notes{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;font-size:12px;line-height:1.6}
.fw-period-notice{padding:3px 8px;background:#fff8e9;border-left:3px solid #cf962c;color:#795a20}
.fw-account-calculation{font-size:12px;margin-top:6px;color:#566b85}
.fw-account-calculation>summary{cursor:pointer;width:fit-content}
.fw-account-calculation p{margin:6px 0 0}
.fw-account-ledger .st-sheet{max-height:none;margin:10px 0 0;scrollbar-gutter:auto}
.fw-account-ledger table{width:100%;min-width:0!important;table-layout:fixed}
.fw-account-ledger th,.fw-account-ledger td{white-space:normal;overflow-wrap:anywhere;padding:8px 10px;line-height:1.5}
.fw-account-ledger th:first-child{width:23%}.fw-account-ledger th:nth-child(2){width:20%}.fw-account-ledger th:last-child{width:19%}
.fw-account-ledger .fw-actions{flex-direction:row;align-items:center;flex-wrap:wrap;min-width:0;gap:6px 12px;padding:0}
.fw-account-ledger .fw-actions>button{white-space:normal;min-height:30px}
.fw-account-ledger td:first-child>.st-code-link{min-height:20px;margin:0;padding:0!important}
.fw-account-ledger small{white-space:normal;line-height:1.4;margin-top:2px}
.fw-account-ledger .fw-opening-record{color:#405b7c;font-variant-numeric:tabular-nums}
.fw-account-ledger td:nth-child(2)>.muted{line-height:1.5}
@media(max-width:1100px){.fw-account-filter .st-tabs{flex-basis:100%}.fw-account-panel .fw-account-summary strong{font-size:19px}.fw-account-ledger th:first-child{width:22%}.fw-account-ledger th:last-child{width:19%}}
@media(max-width:700px){.fw-account-panel .fw-account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fw-account-filter label{flex:1 1 200px}.fw-account-ledger th,.fw-account-ledger td{padding:6px 4px;font-size:12px}.fw-account-ledger .fw-actions{gap:4px}}
