/**
 * View：桌面工作区的订单、包裹、用户、财务表格和详情抽屉。
 * 与原订单卡片样式使用相同的层叠顺序。在桌面启用表格并保留窄屏卡片。
 */
/* Desktop order table (卡片 / 表格 switch). Cards stay in the page, hidden, so their popovers keep working. */
.preview-view-switch{display:inline-flex;border:1px solid #dce5df;border-radius:8px;overflow:hidden;background:#fff;margin-right:4px}
.preview-view-switch button{margin:0!important;border:0!important;border-radius:0!important;min-height:30px!important;padding:4px 12px!important;background:#fff!important;color:#4f6e62!important;font-size:12px!important;box-shadow:none!important}
.preview-view-switch button+button{border-left:1px solid #dce5df!important}
.preview-view-switch button.is-active{background:#17634f!important;color:#fff!important;font-weight:600}
@media(max-width:1099px){.preview-view-switch{display:none!important}}
@media(min-width:1100px){
 body.signed #app>.panel.preview-table-mode{height:auto!important;max-height:none!important;overflow:visible!important}
 body.signed #app>.panel.preview-table-mode>.preview-staff-order-grid{display:none!important}
 .preview-order-table-wrap{margin:6px 0 4px;border:1px solid #dfe7e2;border-radius:12px;overflow:auto;background:#fff}
 .preview-order-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;color:#2f4f43;table-layout:fixed}
 .preview-order-table col{width:auto}
 .preview-order-table thead th{position:sticky;top:0;z-index:1;padding:9px 10px;background:#f3f7f5;border-bottom:1px solid #dfe7e2;color:#5f766c;font-size:11px;font-weight:600;text-align:left;white-space:nowrap}
 .preview-order-table th:nth-child(1){width:128px}.preview-order-table th:nth-child(2){width:13%}.preview-order-table th:nth-child(3){width:21%}.preview-order-table th:nth-child(4){width:16%}.preview-order-table th:nth-child(5){width:12%}.preview-order-table th:nth-child(6){width:78px}.preview-order-table th:nth-child(7){width:104px}.preview-order-table th:nth-child(8){width:172px}.preview-order-table th:nth-child(9){width:104px}
 .preview-order-table td{padding:8px 10px;border-bottom:1px solid #edf2ef;vertical-align:middle;min-width:0}
 .preview-order-table tbody tr:last-child td{border-bottom:0}
 .preview-order-table tbody tr:hover td{background:#f7faf8}
 .preview-order-table td>span,.preview-order-table td>small,.preview-order-table td>b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .preview-order-table td small{margin-top:2px;font-size:11px;color:#7f948a}
 .preview-order-table .ot-no b{font-size:13px;color:#1f3d33;font-variant-numeric:tabular-nums}
 .preview-order-table .ot-no .preview-order-status{display:inline-block!important;margin-top:4px!important;padding:1px 7px!important;border-radius:999px;font-size:10px!important}
 .preview-order-table .ot-cargo{white-space:nowrap}
 .preview-order-table .ot-cargo .preview-cargo-pack{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:5px;background:#eef3f0;color:#4f6e62;font-size:10px}
 .preview-order-table .ot-cargo>span:last-child{display:inline;white-space:nowrap}
 .preview-order-table .ot-money b{font-size:13px;color:#17634f;font-variant-numeric:tabular-nums}
 .preview-order-table .ot-people .preview-person-actions{display:flex;flex-direction:column;gap:3px}
 .preview-order-table .ot-people .preview-person{display:flex!important;align-items:center;gap:4px;width:100%;min-height:22px!important;height:22px;margin:0!important;padding:0 6px!important;border:1px solid #e3ebe6!important;border-radius:6px!important;background:#fff!important;font-size:11px!important;color:#2f4f43!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important}
 .preview-order-table .ot-people .preview-person span{color:#94a59c}
 .preview-order-table .ot-ops .text-btn,.preview-order-table .ot-ops .preview-direct-action{margin:0!important;padding:1px 0!important;min-height:0!important;border:0!important;background:transparent!important;color:#2f6352!important;font-size:12px!important;box-shadow:none!important;white-space:nowrap}
 .preview-order-table .ot-ops-row{display:flex;flex-wrap:wrap;gap:2px 10px}
 .preview-order-table .ot-links{display:flex;gap:10px;margin-top:3px}
 .preview-order-table tr[data-state=done] td{background:#f1f7f3}
 .preview-order-table tr[data-state=cancelled] td{color:#9aa39f;background:#f6f7f6}
 .preview-order-table .ot-empty{padding:30px;text-align:center;color:#94a59c}
}
@media(min-width:1100px){
 .preview-order-table .ot-people .preview-person{flex-direction:row!important;justify-content:flex-start!important;text-align:left!important}
 .preview-order-table .ot-people .preview-person>*{display:inline!important;font-size:11px!important;line-height:20px!important;white-space:nowrap}
 .preview-order-table .ot-people .preview-person>b{font-weight:500;overflow:hidden;text-overflow:ellipsis}
 .preview-order-table td.ot-cargo{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .preview-order-table td.ot-cargo>span:last-child{display:inline!important}
}
/* Order table v2: one line per order, toolbar for ticked orders, details drawer on the right. */
@media(min-width:1100px){
 .preview-order-table-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:44px;margin:6px 0 0;padding:7px 12px;border:1px solid #dfe7e2;border-bottom:0;border-radius:12px 12px 0 0;background:#f7faf8;font-size:12px;color:#5f766c}
 .preview-order-table-bar+.preview-order-table-wrap{margin-top:0!important;border-radius:0 0 12px 12px!important}
 .preview-order-table-bar .ot-count{color:#17634f;font-size:13px}
 .preview-order-table-bar .ot-sep{width:1px;height:18px;background:#dce5df}
 .preview-order-table-bar .ot-target{font-weight:600;color:#1f3d33;font-variant-numeric:tabular-nums}
 .preview-order-table-bar .ot-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
 .preview-order-table-bar .ot-actions button{margin:0!important;min-height:28px!important;height:28px;padding:3px 10px!important;border-radius:7px!important;font-size:12px!important;white-space:nowrap;box-shadow:none!important}
 .preview-order-table-bar .ot-actions [data-remove-order]{color:#b14844!important;border-color:#e6c9c6!important;background:#fff8f7!important}
 .preview-order-table-bar .ot-person-btn{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:4px;width:auto!important;border:1px solid #cfdcd5!important;background:#fff!important;color:#2f4f43!important}
 .preview-order-table-bar .ot-person-btn>*{display:inline!important;font-size:12px!important}
 .preview-order-table-bar .ot-person-btn span{color:#94a59c}
 .preview-order-table-bar .ot-clear{margin-left:auto!important;padding:0!important;border:0!important;background:transparent!important;color:#5f766c!important;font-size:12px!important;min-height:0!important}
 .preview-order-table-bar .ot-hint{color:#94a59c}
 .preview-order-table th:nth-child(n),.preview-order-table td{width:auto}
 .preview-order-table th:nth-child(1){width:34px!important}.preview-order-table th:nth-child(2){width:112px!important}.preview-order-table th:nth-child(3){width:88px!important}.preview-order-table th:nth-child(4){width:9%!important}.preview-order-table th:nth-child(5){width:9%!important}.preview-order-table th:nth-child(6){width:auto!important}.preview-order-table th:nth-child(7){width:15%!important}.preview-order-table th:nth-child(8){width:60px!important}.preview-order-table th:nth-child(9){width:52px!important}.preview-order-table th:nth-child(10){width:52px!important}.preview-order-table th:nth-child(11){width:86px!important}.preview-order-table th:nth-child(12){width:9%!important}.preview-order-table th:nth-child(13){width:9%!important}
 .preview-order-table td{height:36px;padding:6px 8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
 .preview-order-table th{padding:8px!important}
 .preview-order-table th.ot-check,.preview-order-table td.ot-check{padding:6px 0 6px 10px!important;text-align:left}
 .preview-order-table input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:#17634f;cursor:pointer}
 .preview-order-table td.ot-status .preview-order-status{display:inline-block!important;margin:0!important;padding:1px 7px!important;border-radius:999px;font-size:10px!important}
 .preview-order-table td.ot-route i{font-style:normal;color:#9bb3a8;margin:0 2px}
 .preview-order-table td.ot-cargo .preview-cargo-pack{display:inline-block;margin-right:5px;padding:0 5px;border-radius:5px;background:#eef3f0;color:#4f6e62;font-size:10px;vertical-align:1px}
 .preview-order-table th.ot-money,.preview-order-table td.ot-money{text-align:left}
 .preview-order-table td.ot-money b{color:#17634f;font-variant-numeric:tabular-nums}
 .preview-order-table td.ot-date,.preview-order-table td.ot-weight{font-variant-numeric:tabular-nums;color:#5f766c}
 .preview-order-table td.ot-person{color:#5f766c}
 .preview-order-table .ot-muted{color:#a3b2aa}
 .preview-order-table tbody tr{cursor:pointer}
 .preview-order-table tbody tr.is-selected td{background:#eef6f1!important}
 .preview-order-table tbody tr.is-active td{background:#e2efe8!important}
 .preview-order-table tbody tr.is-active td:first-child{box-shadow:inset 3px 0 0 #17634f}
 .preview-order-drawer{position:fixed;top:50px;right:0;bottom:0;z-index:60;width:min(420px,92vw);display:flex;flex-direction:column;background:#fff;border-left:1px solid #dce5df;box-shadow:-12px 0 30px #1d42371f;animation:otDrawerIn .18s ease-out}
 @keyframes otDrawerIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
 .preview-order-drawer .drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #e3ebe6}
 .preview-order-drawer .drawer-head b{font-size:16px;color:#1f3d33;font-variant-numeric:tabular-nums;margin-right:8px}
 .preview-order-drawer .drawer-head .preview-order-status{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px}
 .preview-order-drawer .drawer-head button{width:30px;min-height:30px!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:#f0f5f1!important;color:#426454!important;font-size:18px!important}
 .preview-order-drawer .drawer-body{flex:1;overflow:auto;padding:12px 16px 20px;font-size:13px;color:#2f4f43}
 .preview-order-drawer .drawer-meta{margin:0 0 10px;font-size:12px;color:#7f948a;line-height:1.6}
 .preview-order-drawer .drawer-fee{margin:0 0 12px;padding:8px 10px;border-radius:9px;background:#eaf2ef;font-size:12px}
 .preview-order-drawer .drawer-section{margin:0 0 14px}
 .preview-order-drawer .drawer-section h4{margin:0 0 8px;font-size:12px;color:#5f766c;font-weight:600}
 .preview-order-drawer .preview-mobile-details{font-size:12px}
 .preview-order-drawer .drawer-history pre{margin:0;white-space:pre-wrap;font:12px/1.7 system-ui;color:#2f4f43}
 .preview-order-drawer .drawer-history .order-photo-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
 .preview-order-drawer .drawer-history .order-photo-actions button{margin:0!important;min-height:30px!important;padding:4px 12px!important;font-size:12px!important;border-radius:8px!important;width:auto!important}
}
@media(min-width:1100px){
 .preview-order-drawer .drawer-history .order-detail-panel-heading{display:none!important}
}
/* Order table v3: page scrolls in table mode, floating details card, assignment buttons in the table. */
@media(min-width:1100px){
 body.signed.ot-table-mode>main{overflow-y:auto!important;overscroll-behavior:contain}
 .preview-order-table th:nth-child(4),.preview-order-table th:nth-child(5){width:8%!important}
 .preview-order-table th:nth-child(7){width:13%!important}
 .preview-order-table th:nth-child(12),.preview-order-table th:nth-child(13),.preview-order-table th:nth-child(14){width:8.5%!important}
 .preview-order-table td.ot-person{padding:4px 6px!important}
 .preview-order-table .ot-person-cell{display:flex!important;flex-direction:row!important;align-items:center;gap:3px;width:100%!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0 7px!important;border:1px solid #dfe7e2!important;border-radius:7px!important;background:#fff!important;color:#2f4f43!important;font-size:12px!important;box-shadow:none!important;overflow:hidden;white-space:nowrap;text-align:left!important;justify-content:flex-start!important}
 .preview-order-table .ot-person-cell>*{display:inline!important;font-size:12px!important;line-height:24px!important;white-space:nowrap}
 .preview-order-table .ot-person-cell>span{color:#94a59c}
 .preview-order-table .ot-person-cell>b{font-weight:500;overflow:hidden;text-overflow:ellipsis}
 .preview-order-table button.ot-person-cell:not(:disabled):hover{border-color:#7fb197!important;background:#f3f8f5!important}
 .preview-order-table span.ot-person-cell{border-style:dashed!important;color:#7f948a!important}
 .preview-order-drawer{top:62px!important;right:16px!important;bottom:16px!important;width:min(420px,calc(100vw - 32px))!important;border:1px solid #dce5df!important;border-radius:16px!important;box-shadow:0 18px 48px #163e3333,0 2px 8px #163e331a!important;overflow:hidden}
}
/* Order table v4: the toolbar is always shown; the date-batch map / label / invoice buttons stay next to the date filter. */
@media(min-width:1100px){
 .preview-order-table-bar{flex-wrap:nowrap;justify-content:space-between}
 .preview-order-table-bar .ot-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1;flex-wrap:wrap}
 .preview-order-table-bar .ot-count.is-empty{color:#94a59c;font-weight:500}
 .preview-order-table-bar .ot-batch{flex-wrap:nowrap;flex-shrink:0;margin-left:auto}
 .preview-order-table-bar .ot-batch button:disabled{opacity:.45;cursor:not-allowed}
 .preview-order-table-bar .ot-batch button small{margin-left:3px;padding:0 5px;border-radius:999px;background:#e2efe8;color:#17634f;font-size:11px}
 .preview-order-table-bar .ot-batch .ot-clear{margin-left:4px!important}
 #bundleCreateDialog .ot-pack-note{margin:-4px 0 8px;color:#a06a1c;font-size:12px}
}
/* Order table v5: every action on the right; batch assignment menu; cancel instead of delete. */
@media(min-width:1100px){
 .preview-order-table-bar .ot-left{flex:0 1 auto;flex-wrap:nowrap;white-space:nowrap}
 .preview-order-table-bar .ot-left .ot-clear{margin-left:2px!important}
 .preview-order-table-bar{justify-content:flex-start!important}
 .preview-order-table-bar .ot-right{flex:1;justify-content:flex-start;flex-wrap:wrap;row-gap:6px;margin-left:0!important}
 .preview-order-table-bar .ot-right>button:disabled{opacity:.45;cursor:not-allowed}
 .preview-order-table-bar .ot-right button small{margin-left:3px;padding:0 5px;border-radius:999px;background:#e2efe8;color:#17634f;font-size:11px}
 .preview-order-table-bar .ot-right .ot-sep{margin:0 2px}
 .preview-order-table-bar .ot-danger:not(:disabled){color:#b14844!important;border-color:#e6c9c6!important;background:#fff8f7!important}
 .ot-assign-menu{position:fixed;z-index:80;min-width:180px;max-height:320px;overflow:auto;padding:8px;border:1px solid #dce5df;border-radius:12px;background:#fff;box-shadow:0 14px 36px #163e3329}
 .ot-assign-menu p{margin:2px 4px 8px;font-size:12px;color:#5f766c}
 .ot-assign-menu p small{display:block;color:#a06a1c}
 .ot-assign-menu button{display:block;width:100%;margin:0 0 4px!important;padding:7px 10px!important;border:0!important;border-radius:8px!important;background:#f5f8f6!important;color:#1f3d33!important;text-align:left;font-size:13px!important;min-height:0!important}
 .ot-assign-menu button:hover{background:#e2efe8!important}
}
#removeOrderDialog .cancel-order-list{font-weight:600;color:#1f3d33;overflow-wrap:anywhere}
#removeOrderDialog .cancel-order-skip{color:#a06a1c;font-size:12px}
/* Order table v6: 13 columns (no 金额), wider route; finance list and its details card. */
@media(min-width:1100px){
 .preview-order-table:not(.fin-table) th:nth-child(4),.preview-order-table:not(.fin-table) th:nth-child(5){width:7.5%!important}
 .preview-order-table:not(.fin-table) th:nth-child(6){width:auto!important}
 .preview-order-table:not(.fin-table) th:nth-child(7){width:9%!important}
 .preview-order-table:not(.fin-table) th:nth-child(11),.preview-order-table:not(.fin-table) th:nth-child(12),.preview-order-table:not(.fin-table) th:nth-child(13){width:8%!important}
 .accounting-panel .accounting-order-list.fin-replaced{display:none!important}
 .preview-order-table.fin-table th:nth-child(1){width:124px!important}
 .preview-order-table.fin-table th:nth-child(2){width:84px!important}
 .preview-order-table.fin-table th:nth-child(3),.preview-order-table.fin-table th:nth-child(4){width:8%!important}
 .preview-order-table.fin-table th:nth-child(5){width:auto!important}
 .preview-order-table.fin-table th:nth-child(6){width:9%!important}
 .preview-order-table.fin-table th:nth-child(7),.preview-order-table.fin-table th:nth-child(8){width:52px!important}
 .preview-order-table.fin-table th:nth-child(9){width:72px!important}
 .preview-order-table.fin-table th:nth-child(n+10){width:88px!important}
 .preview-order-table.fin-table td:first-child{padding-left:14px!important}
 .preview-order-table.fin-table th:first-child{padding-left:14px!important;text-align:left}
 .preview-order-table.fin-table :is(th,td).ot-money{text-align:left}
 .preview-order-table.fin-table td.ot-money b{color:#17634f}
 .fin-bar .fin-sums{display:flex;gap:14px;align-items:center;color:#5f766c;font-size:12px}
 .fin-bar .fin-sums b{color:#1f3d33;font-variant-numeric:tabular-nums;margin-left:3px}
 .fin-drawer .acc-calc{display:flex!important;flex-direction:column;gap:8px;grid-template-columns:none!important}
 .fin-drawer .acc-step{margin:0!important}
 .fin-drawer .acc-step::before{display:none!important}
 .fin-drawer .acc-goods{margin-top:10px}
}
/* Order table v8: packages page tables (ready orders and packages) and their details card. */
.pkg-view-switch{display:none}
@media(min-width:1100px){
 .bundle-workspace{position:relative}
 .pkg-view-switch{display:inline-flex;position:absolute;top:16px;right:18px;z-index:2}
 .bundle-workspace.pk-table-mode>form>.bundle-ready-list,.bundle-workspace.pk-table-mode .bundle-ready-list,.bundle-workspace.pk-table-mode .bundle-list{display:none!important}
 .bundle-workspace .pk-table-wrap{margin:8px 0 10px!important}
 .preview-order-table.pk-ready-table th:nth-child(1){width:34px!important}
 .preview-order-table.pk-ready-table th:nth-child(2){width:120px!important}
 .preview-order-table.pk-ready-table th:nth-child(3){width:110px!important}
 .preview-order-table.pk-ready-table th:nth-child(4),.preview-order-table.pk-ready-table th:nth-child(5){width:10%!important}
 .preview-order-table.pk-ready-table th:nth-child(6){width:auto!important}
 .preview-order-table.pk-ready-table th:nth-child(7){width:14%!important}
 .preview-order-table.pk-ready-table th:nth-child(8),.preview-order-table.pk-ready-table th:nth-child(9){width:56px!important}
 .preview-order-table.pk-table th:nth-child(1){width:150px!important}
 .preview-order-table.pk-table th:nth-child(2){width:84px!important}
 .preview-order-table.pk-table th:nth-child(3){width:15%!important}
 .preview-order-table.pk-table th:nth-child(4){width:9%!important}
 .preview-order-table.pk-table th:nth-child(5){width:auto!important}
 .preview-order-table.pk-table th:nth-child(6),.preview-order-table.pk-table th:nth-child(7){width:58px!important}
 .preview-order-table.pk-table th:nth-child(8){width:96px!important}
 .bundle-workspace .pk-bar{margin-top:8px}
 .bundle-workspace .pk-bar+.pk-list-wrap{margin-top:0!important}
 .pk-bar .pk-proxy{display:contents}
 .bundle-workspace .pk-bar .ot-right>button:disabled{opacity:.45;cursor:not-allowed}
 .pkg-drawer .pkg-info{font-size:12px;line-height:1.7}
 .pkg-drawer .pkg-info p{margin:0 0 4px}
 .pkg-drawer .pkg-info .preview-package-meta{display:flex;gap:12px;color:#5f766c}
 .pkg-drawer .pkg-history{font-size:12px;line-height:1.7;color:#2f4f43}
}
/* Order table v9: with few orders the list still fills the screen (top-aligned, table area stretches) instead of floating mid-page. */
@media(min-width:1100px){
 body.signed.ot-table-mode>main>.content{display:flex;flex-direction:column;flex:1 0 auto;width:100%;margin:0 auto!important}
 body.signed.ot-table-mode>main>.content>#app{display:flex;flex-direction:column;flex:1 0 auto}
 body.signed.ot-table-mode #app>.panel.preview-table-mode{display:flex;flex-direction:column;flex:1 0 auto;min-height:calc(100dvh - 140px)}
 body.signed.ot-table-mode #app>.panel.preview-table-mode>.preview-order-table-wrap{flex:1 0 auto;min-height:220px;background:#fff}
}
/* Order table v11: the ready-orders table on the packages page keeps a fixed height and scrolls inside, header pinned. */
@media(min-width:1100px){
 .bundle-workspace .pk-ready-wrap{height:auto;min-height:0;max-height:min(380px,45vh);overflow-y:auto!important;overscroll-behavior:contain}
 .bundle-workspace .pk-ready-wrap thead th{position:sticky;top:0;z-index:1;background:#f7faf8}
}
/* Order table v12: users page table. */
.user-view-switch{display:none}
@media(min-width:1100px){
 .user-view-switch{display:inline-flex;margin:0 10px 0 auto}
 .managed-users-heading{display:flex;align-items:center;gap:10px}
 .panel.users-table-mode>article.cloud-order{display:none!important}
 .panel.users-table-mode>.user-bar{margin-top:10px}
 .preview-order-table.user-table th:nth-child(1){width:auto!important}
 .preview-order-table.user-table th:nth-child(2){width:120px!important}
 .preview-order-table.user-table th:nth-child(3){width:16%!important}
 .preview-order-table.user-table th:nth-child(4),.preview-order-table.user-table th:nth-child(5){width:170px!important}
 .preview-order-table.user-table th:nth-child(6){width:14%!important}
 .preview-order-table.user-table th:nth-child(7){width:22%!important}
 .preview-order-table.user-table td.ot-extra{color:#5f766c;font-size:12px}
 .preview-order-table.user-table td.ot-date{font-variant-numeric:tabular-nums}
 .preview-order-table.user-table td.ot-id{font-size:11px;font-variant-numeric:tabular-nums}
}
/* Order table v13: users table settlement-price column; sort sits on the search line. */
@media(min-width:1100px){
 body.signed #userSearchForm.with-sort{grid-template-columns:auto minmax(0,1fr) auto auto!important}
 body.signed #userSearchForm.with-sort>.staff-order-sort{flex-direction:column;align-items:stretch;gap:5px;margin:0!important;font-size:inherit}
 body.signed #userSearchForm.with-sort>.staff-order-sort select{height:42px;min-height:42px;min-width:130px;margin:0}
 .preview-order-table.user-table th:nth-child(1){width:auto!important}
 .preview-order-table.user-table th:nth-child(2){width:116px!important}
 .preview-order-table.user-table th:nth-child(3){width:13%!important}
 .preview-order-table.user-table th:nth-child(4){width:104px!important}
 .preview-order-table.user-table th:nth-child(5),.preview-order-table.user-table th:nth-child(6){width:160px!important}
 .preview-order-table.user-table th:nth-child(7){width:13%!important}
 .preview-order-table.user-table th:nth-child(8){width:20%!important}
 .preview-order-table.user-table :is(th,td).ot-money{text-align:left;font-variant-numeric:tabular-nums}
}

/* Shared list headers and account/company badges, consistent with cards. */
.preview-order-table thead th{ text-align:left!important }
.preview-order-table td :is(.list-company-tag,.list-customer-tag){display:inline-block!important;width:auto;max-width:100%;margin:0!important;padding:2px 7px;border-radius:5px;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.preview-order-table td .list-company-tag{background:#e8eef9!important;color:#345c8a!important}
.preview-order-table td .list-customer-tag{background:#eef2ef!important;color:#52665c!important}

/* Compact list controls and consistent left-aligned values across all tables. */
.preview-order-table tbody td:not(.ot-check):not(.ot-empty){text-align:left!important}
@media(min-width:1100px){
 .preview-order-table-bar .ot-actions>button{width:auto!important;min-width:0!important;flex:0 0 auto!important;padding-inline:8px!important}
 .preview-order-table-bar{flex-wrap:wrap;gap:6px 12px}
 .preview-order-table-bar .ot-right{flex:0 1 auto}
 body.signed .workspace-page-controls{display:flex;align-items:center;width:auto!important;flex:0 0 auto;gap:6px}
 body.signed .workspace-page-controls>button{width:auto!important;min-width:0!important;flex:0 0 auto!important;padding-inline:10px!important}
}

/* Package orders: distinct identity, route/goods and dates; no full-card minimum sizes. */
.bundle-member-area .bundle-member{display:block!important;min-height:0!important;height:auto!important;width:auto!important;margin:0!important;padding:10px 12px!important;border:1px solid #e2eae6!important;border-radius:9px!important;background:#fff!important}
.package-member-summary{display:grid;gap:6px;min-width:0;text-align:left}
.package-member-head,.package-member-accounts,.package-member-dates{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.package-member-head{justify-content:space-between}
.package-member-head>b{font-size:13px;overflow-wrap:anywhere}
.package-member-accounts .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0!important}
.package-member-summary p{margin:0!important;overflow-wrap:anywhere;font-size:12px!important}
.package-member-route{color:#2f4f43}.package-member-route>span{color:#94a59c}
.package-member-cargo,.package-member-dates{color:#75877e;font-size:11px}
.bundle-member-area .bundle-member>details{margin-top:8px;padding-top:7px;border-top:1px solid #edf2ef}
.bundle-member-area .bundle-member>details button{width:auto!important;min-height:32px!important;padding:5px 10px!important;margin:6px 6px 0 0!important;font-size:12px!important}
.preview-members-popover .bundle-member-area{grid-template-columns:minmax(0,1fr)!important}
@media(min-width:1100px){
 .preview-order-table.pk-ready-table{min-width:1000px}
 .preview-order-table.pk-ready-table th:nth-child(3){width:100px!important}
 .preview-order-table.pk-ready-table th:nth-child(4),.preview-order-table.pk-ready-table th:nth-child(5){width:120px!important}
 .preview-order-table.pk-ready-table th:nth-child(6){width:auto!important}
 .preview-order-table.pk-ready-table th:nth-child(7){width:160px!important}
 .preview-order-table.pk-ready-table th:nth-child(8),.preview-order-table.pk-ready-table th:nth-child(9){width:68px!important}
 .preview-order-table.pk-ready-table td:is(.ot-route,.ot-cargo){white-space:normal!important;overflow-wrap:anywhere;line-height:1.5}
 .preview-order-table.pk-ready-table td .list-company-tag,.preview-order-table.pk-ready-table td .list-customer-tag{white-space:normal!important}
}

/* Each settlement summary is one aligned row; narrow screens scroll the whole summary. */
.accounting-panel .accounting-groups{overflow-x:auto;overscroll-behavior-x:contain}
.accounting-panel .accounting-groups>summary{position:sticky;left:0}
.accounting-panel .accounting-group{display:grid!important;grid-template-columns:minmax(180px,1fr) 60px 86px 140px 140px 210px;grid-auto-flow:column;grid-auto-columns:230px;align-items:center!important;gap:12px!important;width:100%!important;min-width:900px;box-sizing:border-box;padding:10px 12px!important;min-height:42px!important;text-align:left!important;font-size:12px;line-height:1.4}
.accounting-panel .accounting-group>*{display:block;flex:none!important;min-width:0;width:auto!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important;text-align:left!important;font-size:12px!important}
.accounting-panel .accounting-group-name{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.accounting-panel .accounting-group-pending{color:#74817b}
.accounting-panel .accounting-group>strong{font-variant-numeric:tabular-nums;font-weight:600}
.accounting-panel .accounting-group:has(>:nth-child(7)){min-width:1150px}

/* Amounts double as scoped price-setting controls, with the original amount retained. */
body.signed button.settlement-price-button{display:inline-flex!important;align-items:center;justify-content:flex-start;gap:3px;width:auto!important;max-width:100%;min-height:26px!important;margin:0!important;padding:2px 6px!important;border:1px solid #c8ded2!important;border-radius:6px!important;background:#eff7f2!important;color:#17634f!important;font:inherit!important;line-height:1.4!important;text-align:left!important;vertical-align:baseline;box-shadow:none!important;cursor:pointer}
body.signed button.settlement-price-button:hover{background:#e1f0e7!important;border-color:#86b59d!important}
body.signed button.settlement-price-button:focus-visible{outline:2px solid #17634f;outline-offset:2px}
body.signed .settlement-price-button>*{font:inherit;pointer-events:none}
.accounting-panel .accounting-group-filter{min-height:26px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:#17634f;text-align:left!important;box-shadow:none!important;overflow:hidden;text-overflow:ellipsis;font:inherit;font-weight:600;cursor:pointer}
