/* Single-line financial ledger. Loaded last to preserve contrast after theme customizations. */
#page-orders .table-wrap{max-height:calc(100vh - 315px);min-height:180px;overflow:auto;border-top:1px solid #cbd2dc}
#page-orders table{width:100%;min-width:1560px;border-collapse:separate;border-spacing:0;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:13px;color:#111}
#page-orders th{position:sticky;top:0;z-index:1;background:#edf0f5;color:#111;font-weight:600;font-size:13px;line-height:1.5;padding:9px 12px;white-space:nowrap;border-top:0;border-bottom:1px solid #b9c3d0;border-right:1px solid #e0e5ec}
#page-orders td{font-size:13px;line-height:1.6;color:#111;padding:8px 12px;white-space:nowrap;vertical-align:middle;border-bottom:1px solid #d3d9e2;border-right:1px solid #e8ecf1;background:#fff}
#page-orders tr:nth-child(even) td{background:#f3f5f8}
#page-orders tr.order-exported td{background:#e5e7eb;color:#222}
#page-orders tr:hover td{background:#eaf1ff}
#page-orders tr.order-selected td{background:#e4edff}
#page-orders th:first-child,#page-orders td:first-child{width:34px;min-width:34px;text-align:center;padding:8px}
#page-orders .order-no,#page-orders .bank-account,#page-orders .order-date{font-variant-numeric:tabular-nums;font-family:Arial,"Microsoft YaHei",sans-serif}
#page-orders .payment-amount{color:#0866ef;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;min-width:105px}
#page-orders .order-remark{color:#b5386c;font-size:12px}
#page-orders .badge{font-size:12px;line-height:1.4;padding:3px 7px;font-weight:500}
#page-orders .badge.ready{background:#e4edff;color:#254fa0}
#page-orders .badge.done{background:#d1d6de;color:#333}
#page-orders .badge.conflict{background:#ffe6df;color:#ad351e}
#page-orders .row-action{font-size:12px;padding:4px 9px;color:#2455c5;border-color:#cbd8f1;background:#f4f7ff;min-height:28px}
#page-orders .table-wrap input[type=checkbox]{width:15px;height:15px}
#page-orders .partner-tag{display:inline-block;margin-left:6px;padding:2px 7px;vertical-align:middle;border:1px solid #ddd0f5;border-radius:4px;background:#f0e9fb;color:#7042a4;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
#page-orders .partner-tag.partner-missing{border-color:#e8d2a8;background:#fff5e5;color:#94611a}
@media(max-width:760px){#page-orders .table-wrap{max-height:65vh}#page-orders table{min-width:1500px}#page-orders td,#page-orders th{padding:8px 10px}}

.order-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
#page-orders .order-actions .import-button{background:#2864da;color:#fff;border:1px solid #2864da;padding:8px 13px;white-space:nowrap}
#page-orders .order-actions #export{background:#c55c0c;color:#fff;border:1px solid #c55c0c;padding:8px 13px;white-space:nowrap;font-size:12px;line-height:1.4}
#page-orders .order-actions #export:hover{background:#ac4c08;border-color:#ac4c08;filter:none}
#page-orders .order-actions #export:disabled{background:#f4e5d8;border-color:#e7cfbb;color:#8f6748;opacity:1;cursor:not-allowed}
body{min-height:100vh;display:flex;flex-direction:column}
#workspace{flex:1}
.site-footer{margin-top:auto;text-align:center;padding:14px 12px 18px;font-size:12px;line-height:1.6;color:#626d7e}
.site-footer a{color:inherit;text-decoration:none}.site-footer a:hover{color:#2455c5;text-decoration:underline}.site-footer a:focus-visible{outline:2px solid #365de8;outline-offset:3px}
.scope-field{grid-column:1/-1}.scope-field textarea{font:inherit;padding:9px 11px;border:1px solid #dce3ee;border-radius:5px;resize:vertical;line-height:1.6;color:#202b40;background:#fff}.scope-field textarea:focus{outline:2px solid #b4c4ff}
@media(max-width:1000px){#page-orders .intro{flex-wrap:wrap}.order-actions{flex-wrap:wrap;gap:8px}}
@media(max-width:420px){.order-actions{width:100%}.order-actions>*{flex:1;justify-content:center}#page-orders .order-actions #export{width:auto}}
#page-orders .partner-tag {
    background: #eaf3ff;
    border-color: #c6ddfa;
    color: #2468b0;
}