/*
 * View 样式：kuilu order ui 20261118。
 * 源码：frontend/src/views/styles/110-kuilu-order-ui-20261118.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */
/* Preview only: reuse the compact mobile card layout at every viewport width. */
body.signed #app>.panel:has(>.preview-staff-order-grid){container-type:inline-size}
.preview-staff-order-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch;margin:12px 0}
@container (min-width:600px){.preview-staff-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (min-width:900px){.preview-staff-order-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
body.signed #app .preview-staff-order-grid>article.staff-order-card{display:flex!important;flex-direction:column;min-width:0;margin:0!important;padding:12px!important;border:1px solid #cbd8d3!important;border-left:3px solid #518577!important;border-radius:10px;background:#f8fbfa;box-shadow:0 1px 3px #173f3309;gap:0;overflow-wrap:anywhere}
body.signed #app .preview-staff-order-grid>article.staff-order-card>*{min-width:0;max-width:100%;grid-column:auto!important;grid-row:auto!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary{display:block!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3{font-size:14px;line-height:1.5;gap:5px;margin:0 0 7px!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary p{font-size:12px;line-height:1.5;margin:4px 0!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary .workspace-order-dates{display:flex;gap:3px 12px;font-size:11px;margin-top:7px!important}
body.signed #app .preview-staff-order-grid .order-freight{width:100%;margin:10px 0!important;padding:8px 9px;font-size:12px;line-height:1.5}
body.signed #app .preview-staff-order-grid .order-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:5px!important;width:100%;margin:8px 0 6px!important}
body.signed #app .preview-staff-order-grid .order-action-grid>button,body.signed #app .preview-staff-order-grid .order-action-grid>.packed-assignee{min-width:0!important;width:100%!important;min-height:44px!important;margin:0!important;padding:6px 3px!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip!important;align-items:center;justify-content:center}
body.signed #app .preview-staff-order-grid .order-action-grid>.japan-driver-control{flex-direction:column;gap:0}
body.signed #app .preview-staff-order-grid .order-detail-switch{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px!important;margin-top:auto!important;padding-top:5px!important;border-top:1px solid #e3ebe6}
body.signed #app .preview-staff-order-grid .order-detail-switch>button{font-size:11px!important;min-height:30px!important;line-height:1.4;padding:3px 0!important;margin:0!important}
body.signed #app .preview-staff-order-grid [data-detail-panel]{width:100%;margin-top:8px}
body.signed #app .preview-staff-order-grid [hidden]{display:none!important}
body.signed #app .preview-staff-order-grid pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:400px){.preview-staff-order-grid{gap:10px}body.signed #app .preview-staff-order-grid>article.staff-order-card{padding:10px!important}}
/* Compact preview cards, capped at three columns. */
.preview-staff-order-grid{gap:10px;align-items:stretch;margin:8px 0}
body.signed #app .preview-staff-order-grid>article.staff-order-card{padding:8px 9px!important;border-radius:8px}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3{font-size:13px;line-height:1.35;gap:3px 5px;margin:0 0 3px!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary p{font-size:12px;line-height:1.35;margin:2px 0!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary .workspace-order-dates{margin-top:3px!important;gap:2px 10px}
body.signed #app .preview-staff-order-grid .order-freight{margin:5px 0!important;padding:5px 7px;font-size:11px;line-height:1.35}
body.signed #app .preview-staff-order-grid .order-freight small{line-height:1.35;margin:0!important}
body.signed #app .preview-staff-order-grid .order-action-grid{gap:4px!important;margin:4px 0!important}
body.signed #app .preview-staff-order-grid .order-action-grid>button,body.signed #app .preview-staff-order-grid .order-action-grid>.packed-assignee{min-height:30px!important;padding:4px 3px!important;line-height:1.25!important}
body.signed #app .preview-staff-order-grid .order-detail-switch{margin-top:3px!important;padding-top:3px!important;gap:3px 8px!important}
body.signed #app .preview-staff-order-grid .order-detail-switch>button{min-height:24px!important;padding:2px 0!important}
@media(pointer:coarse){body.signed #app .preview-staff-order-grid .order-action-grid>button{min-height:40px!important}body.signed #app .preview-staff-order-grid .order-detail-switch>button{min-height:36px!important}}

/* Keep cards in each row aligned, with one combined action area. */
body.signed #app .preview-staff-order-grid .order-action-grid{margin-top:auto!important;padding-top:5px}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-remove-order]{color:#b94e48!important;border-color:#e2c7c3!important;background:#fff8f7!important}

/* Assignee label and name stay on a single line at all widths. */
body.signed #app .preview-staff-order-grid .order-action-grid>.japan-driver-control,body.signed #app .preview-staff-order-grid .order-action-grid>[data-operation="assign"]{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:0!important;white-space:nowrap!important;overflow:hidden!important}
body.signed #app .preview-staff-order-grid .order-action-grid>.japan-driver-control>span,body.signed #app .preview-staff-order-grid .order-action-grid>[data-operation="assign"]>span{flex-shrink:0;white-space:nowrap!important}
body.signed #app .preview-staff-order-grid .order-action-grid>.japan-driver-control>b,body.signed #app .preview-staff-order-grid .order-action-grid>[data-operation="assign"]>b{min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}

/* Information first, then document/edit actions, dispatch, and deletion. */
body.signed #app .preview-staff-order-grid .order-action-grid>*{order:20}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-detail-toggle="info"]{order:0}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-detail-toggle="history"]{order:1}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-edit-order]{order:5}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-remove-order]{order:99}
body.signed #app .preview-staff-order-grid .order-action-grid>[data-operation],body.signed #app .preview-staff-order-grid .order-action-grid>.packed-assignee{order:40}
#preview-order-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0 18px 18px;border:1px solid #d3dfd8;border-radius:14px;box-sizing:border-box;overflow:auto;background:white;box-shadow:0 20px 80px #123b332b}
#preview-order-dialog::backdrop{background:#142d286b}
#preview-order-dialog .preview-dialog-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:white;padding:12px 0;border-bottom:1px solid #e1e8e3}
#preview-order-dialog .preview-dialog-heading h2{margin:0;font-size:17px}
#preview-order-dialog .preview-dialog-heading button{flex:0 0 36px;width:36px;min-height:36px;margin:0;padding:0;font-size:24px;background:#f1f5f2;color:#234e40;border:0;border-radius:8px}
#preview-order-dialog [data-detail-panel]{margin-top:12px;overflow-wrap:anywhere}
#preview-order-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}
#preview-role-bar .preview-device-switch{display:flex;gap:2px;flex-shrink:0}
#preview-role-bar .preview-device-switch button{width:auto;min-height:30px;margin:0;padding:4px 9px;border:1px solid #648375;border-radius:5px;background:transparent;color:white;font:inherit}
#preview-role-bar .preview-device-switch button[aria-pressed=true]{background:#e4eee6;color:#173f33}
body.preview-phone{background:#dfe7e2!important;overflow:hidden!important}
body.preview-phone>:not(#preview-role-bar):not(#preview-phone-frame){display:none!important}
#preview-phone-frame{position:fixed;top:62px;bottom:12px;left:50%;transform:translateX(-50%);width:min(390px,100vw);border:1px solid #9fb3a7;border-radius:18px;overflow:hidden;background:white;box-shadow:0 12px 40px #143b3326}
#preview-phone-frame iframe{display:block;border:0;width:100%;height:100%}
html.preview-frame body{padding-top:0!important}html.preview-frame .sidebar{top:0!important}
@media(max-width:480px){#preview-role-bar{gap:5px!important;padding:6px!important}#preview-role-bar select{max-width:115px!important;font-size:11px!important}#preview-role-bar a{display:none}#preview-role-bar .preview-device-switch button{padding:4px 6px}#preview-order-dialog{padding:0 12px 12px}}


/* Fixed-width overlay: animate clipping and labels, never the page geometry. */
@media(min-width:851px){
 body.signed:not([data-business-role$="driver"])>.sidebar{position:fixed!important;z-index:80;width:224px!important;padding:22px 6px!important;box-sizing:border-box;align-items:stretch!important;overflow:hidden;clip-path:inset(0 0 0 0);transition:clip-path 220ms cubic-bezier(.2,.7,.2,1);background:#fff;box-shadow:8px 0 24px #163e331a}
 body.signed:not([data-business-role$="driver"])>main,body.signed.preview-sidebar-collapsed:not([data-business-role$="driver"])>main{margin-left:60px!important;width:calc(100% - 60px)!important;min-width:0}
 body.signed.preview-sidebar-collapsed:not([data-business-role$="driver"])>.sidebar{clip-path:inset(0 164px 0 0)}
 body.signed:not([data-business-role$="driver"])>.sidebar>.brand{display:flex!important;width:212px;gap:12px;padding:0 8px!important;margin:0 0 26px!important}
 body.signed:not([data-business-role$="driver"])>.sidebar>.brand>.logo{flex:0 0 32px;width:32px;height:32px}
 body.signed:not([data-business-role$="driver"])>.sidebar>.workspace{display:block!important;width:212px;margin:0 0 14px!important;padding:0 12px!important;font-size:11px;white-space:nowrap}
 body.signed:not([data-business-role$="driver"])>.sidebar nav{width:212px!important;min-width:212px;display:flex!important;flex-direction:column;gap:6px}
 body.signed:not([data-business-role$="driver"])>.sidebar nav>button{display:flex!important;flex-direction:row!important;width:212px!important;min-height:48px!important;margin:0!important;padding:11px 12px!important;gap:8px!important;justify-content:flex-start!important;font-size:22px!important;white-space:nowrap}
 body.signed:not([data-business-role$="driver"])>.sidebar nav>button span{font-size:22px!important;white-space:nowrap;flex-shrink:0}
 body.signed:not([data-business-role$="driver"])>.sidebar .workspace-nav-icon{width:26px;height:26px;flex:0 0 26px}
 body.signed>.sidebar>.brand>div,body.signed>.sidebar>.workspace,body.signed>.sidebar>.side-bottom,body.signed>.sidebar nav>button span{opacity:1;transition:opacity 160ms ease}
 body.signed.preview-sidebar-collapsed>.sidebar>.brand>div,body.signed.preview-sidebar-collapsed>.sidebar>.workspace,body.signed.preview-sidebar-collapsed>.sidebar>.side-bottom,body.signed.preview-sidebar-collapsed>.sidebar nav>button span{opacity:0;pointer-events:none}
 body.signed.preview-sidebar-collapsed>main>header>.cloud-controls{display:none!important}
}
@media(prefers-reduced-motion:reduce){body.signed>.sidebar,body.signed>.sidebar *{transition:none!important}}
body.signed #app .preview-staff-order-grid .order-action-grid>span.packed-assignee{white-space:nowrap!important;flex-wrap:nowrap!important;overflow:hidden!important;flex-direction:row!important}
body.signed #app .preview-staff-order-grid .order-action-grid>span.packed-assignee>b{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.preview-sidebar-account{display:none}
@media(min-width:851px){
 body.signed>.sidebar>.preview-sidebar-account{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;position:absolute;left:11px;right:10px;bottom:18px;min-height:40px;background:#fff}
 .preview-account-avatar{display:flex;align-items:center;justify-content:center;width:38px;min-height:38px;margin:0;padding:6px;border:1px solid #d9e5dd;border-radius:50%;background:#edf4ef;color:#235846}
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls{position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;max-width:100%!important;min-width:0;margin:0!important;padding:0!important;border:0;background:transparent;opacity:1;transition:opacity 160ms ease}
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls small{grid-column:1/-1;max-width:100%;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls button{font-size:11px;min-height:30px;margin:0;padding:4px 5px}
 body.signed.preview-sidebar-collapsed>.sidebar>.preview-sidebar-account>.cloud-controls{opacity:0;pointer-events:none}
 body.signed>.sidebar nav{max-height:calc(100dvh - 265px);overflow-y:auto;overflow-x:hidden}
}

@media(min-width:851px){
 body.signed[data-business-role="customer"]>.sidebar>nav{position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;width:212px!important;min-width:212px!important;gap:6px!important}
 body.signed[data-business-role="customer"]>.sidebar>nav>button{justify-content:flex-start!important;gap:8px!important;padding:11px 12px!important;min-height:48px!important;font-size:22px!important}
 body.signed[data-business-role="customer"]>.sidebar>nav>button span{font-size:22px!important}
 body.signed>.sidebar nav>button i{margin-left:auto;flex-shrink:0}
 body.signed.preview-sidebar-collapsed>.sidebar nav>button i{opacity:0;pointer-events:none}
}

/* Four-column order cards and compact floating actions. */
@container(min-width:1200px){.preview-staff-order-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3{display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:4px!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3>.preview-order-status{order:99;margin-left:auto!important;flex-shrink:0;max-width:100%;border-radius:999px!important;padding:3px 8px!important;font-size:10px!important;line-height:1.3;font-weight:600}
.preview-order-status[data-state=pending]{color:#b03939!important;background:#fbe8e6!important;border:1px solid #efd0cb}
.preview-order-status[data-state=done]{color:#24664a!important;background:#e4f3e9!important;border:1px solid #bedcc8}
.preview-order-status[data-state=cancelled]{color:#727979!important;background:#ecefef!important;border:1px solid #d9dede}
body.signed #app .preview-staff-order-grid .order-freight{box-sizing:border-box;min-height:70px;margin-bottom:5px!important}
body.signed[data-business-role=agency_admin] #app .preview-staff-order-grid .order-freight{min-height:100px}
.preview-set-price{display:block!important;margin:4px 0 0!important;padding:0!important;min-height:24px!important;font-size:11px!important;color:#17634f!important}
.preview-person-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:auto;padding-top:4px}
.preview-person-actions>.preview-person{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0!important;min-width:0;width:100%;padding:5px 3px!important;min-height:42px!important;font-size:11px!important;line-height:1.3;background:#edf4f0;border-color:#d4e1da}
.preview-person span,.preview-person b{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.preview-person b{font-size:10px;color:#61786c}
.preview-person:disabled{opacity:.55;cursor:default}
.preview-card-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;padding-top:5px;border-top:1px solid #e1e9e4}
.preview-card-links{display:flex;gap:10px;margin-left:auto}
body.signed #app .preview-staff-order-grid .preview-card-footer .text-btn{width:auto!important;min-width:0;min-height:28px!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important;white-space:nowrap;color:#386b59}
.preview-card-popover{position:fixed;inset:auto;margin:0;padding:10px;border:1px solid #ccdcd2;border-radius:12px;background:#fff;color:#234639;box-shadow:0 10px 35px #1d42372b;overflow:auto;box-sizing:border-box;font:13px/1.5 system-ui}
.preview-card-popover::backdrop{background:transparent}
.preview-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:6px;border-bottom:1px solid #e3ebe5;margin-bottom:7px}
.preview-popover-heading button{width:28px;min-height:28px;padding:0;margin:0;border:0;border-radius:5px;background:#f0f5f1;color:#426454;font-size:19px}
.preview-menu-note{margin:4px 0 8px;font-size:11px;color:#87958a}
.preview-card-popover .preview-candidate{display:block;width:100%;text-align:left;border:0;border-radius:6px;background:#f5f8f5;min-height:38px;padding:8px 10px;margin:4px 0;color:#235846;font:inherit}
.preview-card-popover .preview-candidate[aria-pressed=true]{background:#e4f0e7;color:#17634f;font-weight:600}
.preview-more-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.preview-more-actions button{min-height:36px;margin:0!important;width:100%;padding:6px!important;font-size:12px!important;white-space:normal!important}
.preview-more-actions [data-remove-order]{color:#b14844!important;border-color:#e6c9c6!important;background:#fff8f7!important}
@media(pointer:coarse){body.signed #app .preview-staff-order-grid .preview-card-footer .text-btn{min-height:40px!important}.preview-person-actions>.preview-person{min-height:46px!important}}

body.signed #app .preview-staff-order-grid .workspace-order-summary,body.signed #app .preview-staff-order-grid .workspace-order-summary h3,body.signed #app .preview-staff-order-grid .preview-person-actions,body.signed #app .preview-staff-order-grid .preview-card-footer{width:100%!important;align-self:stretch!important;box-sizing:border-box}

/* Compact, single-line assignments and restrained status colors. */
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;min-height:30px!important;height:30px;box-sizing:border-box;padding:4px 3px!important;overflow:hidden;white-space:nowrap}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person>span{flex:0 0 auto;max-width:none;font-size:10px}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person>b{flex:0 1 auto;min-width:0;font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-stage-status{font-size:11px;color:#829088;background:#f2f5f2;border:1px solid #e4ebe5;border-radius:6px;text-overflow:ellipsis}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-pack-action{font-size:11px;color:#32694f;background:#edf4ef}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3>.preview-order-status{padding:2px 6px!important;font-weight:400;border:0!important;font-size:10px!important;line-height:1.35}
.preview-order-status[data-state=pending]{color:#9c7069!important;background:#f5efec!important}
.preview-order-status[data-state=done]{color:#5b7b67!important;background:#edf4ee!important}
.preview-order-status[data-state=cancelled]{color:#87908b!important;background:#f0f2f0!important}
@media(pointer:coarse){body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{min-height:38px!important;height:38px}}

body.signed #app .preview-staff-order-grid .preview-set-price{min-height:0!important;line-height:1.35;margin:0!important;padding:0!important}

/* Five cards on wide screens; share content rows so wrapping stays aligned. */
@container(min-width:1600px){.preview-staff-order-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@supports(grid-template-rows:subgrid){
 body.signed #app .preview-staff-order-grid>article.staff-order-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:subgrid;grid-row:span 4!important;row-gap:4px;align-items:stretch}
 body.signed #app .preview-staff-order-grid>article.staff-order-card>.workspace-order-summary{grid-row:1!important;align-self:start!important}
 body.signed #app .preview-staff-order-grid>article.staff-order-card>.order-freight{grid-row:2!important;align-self:stretch!important}
 body.signed #app .preview-staff-order-grid>article.staff-order-card>.preview-person-actions{grid-row:3!important;margin-top:0!important}
 body.signed #app .preview-staff-order-grid>article.staff-order-card>.preview-card-footer{grid-row:4!important;align-self:end!important}
}

/* Vertical sender / cargo and weight / recipient, with fees condensed to one line. */
.preview-order-route{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:5px 0}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-company{margin:2px 0!important;font-size:12px;line-height:1.4;color:#405d50}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0!important;font-size:11px;line-height:1.4;color:#829086}
.preview-route-cargo>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-route-cargo>span:last-child{flex-shrink:0;white-space:nowrap}
.preview-route-arrow{flex-shrink:0;font-size:17px;line-height:1;color:#779588}
body.signed[data-business-role] #app .preview-staff-order-grid .preview-fee-summary{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:30px!important;padding:5px 7px!important;margin:3px 0 5px!important;font-size:11px;line-height:1.4}
.preview-fee-line{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.signed #app .preview-staff-order-grid .preview-fee-summary>.preview-fee-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px!important;min-width:18px;min-height:18px!important;height:18px;margin:0!important;padding:0!important;border:1px solid #91a79b!important;border-radius:50%!important;background:transparent;color:#638271;font-size:12px;line-height:1;font-weight:600}
body.signed #app .preview-fee-summary .preview-inline-price{margin:0!important;padding:0!important;min-height:18px!important;width:auto;font-size:11px;border:0;background:transparent;color:#286c52}
.preview-full-fee .order-freight{margin:0;padding:8px;background:#f2f6f2;border-radius:7px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.preview-full-fee .order-freight small{display:block;margin-top:5px;font-size:11px;line-height:1.6}

/* Quiet route hierarchy and separate agency receivables. */
body.signed #app .preview-staff-order-grid>article.staff-order-card{background:#fff!important;border:1px solid #e3e7e5!important;border-radius:12px!important;box-shadow:0 2px 8px #24372e05}
.preview-order-route{padding:12px 0 10px;text-align:left;gap:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.preview-route-stop{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:9px;min-width:0}
.preview-route-dot{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:7px;background:#f1f3f4;color:#8a9197;font-size:10px;line-height:1;box-sizing:border-box}
.preview-route-destination{background:#edf3f0;color:#638171}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-company{margin:2px 0 0!important;font-size:12px;line-height:1.55;font-weight:500;letter-spacing:-.15px;color:#303b36;overflow-wrap:anywhere}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{display:grid;grid-template-columns:22px minmax(0,1fr) auto;justify-content:initial;gap:9px;min-height:32px;margin:3px 0!important;font-size:10px;color:#919991}
.preview-route-cargo>.preview-route-arrow{display:flex;justify-content:center;align-items:center;width:22px;align-self:stretch;font-size:15px;color:#b9c1bc;overflow:visible}
.preview-route-cargo>.preview-cargo-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-route-cargo>.preview-cargo-weight{padding:2px 6px;border-radius:5px;background:#f5f6f6;color:#6d7871;font-variant-numeric:tabular-nums;font-size:10px}
body.signed #app .preview-staff-order-grid .preview-fee-summary{background:#f7f8f8!important;border:0!important;border-radius:7px!important;color:#707a74}
body.signed #app .preview-staff-order-grid .preview-agency-fees{min-height:53px!important;padding:7px 8px!important}
.preview-agency-fees>.preview-fee-line{flex:1;display:grid;gap:5px}
.preview-fee-row{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;line-height:1.4}
.preview-fee-row>span{flex-shrink:0;font-size:10px;color:#87908a}
.preview-fee-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:500;font-size:11px;color:#364c40;font-variant-numeric:tabular-nums}
body.signed #app .preview-agency-fees .preview-inline-price{font-size:10px!important;white-space:nowrap}

/* Three compact route rows; long names never change card height. */
.preview-order-route{padding:9px 0 8px;gap:0}
.preview-route-stop{grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:center;height:24px;overflow:hidden}
.preview-route-dot{width:18px;height:18px;border-radius:5px;font-size:9px}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-company{display:block;min-width:0;max-width:100%;margin:0!important;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{grid-template-columns:18px minmax(0,1fr) auto;gap:7px;min-height:26px;height:26px;margin:0!important}
.preview-route-cargo>.preview-route-arrow{width:18px;font-size:13px}
.preview-route-cargo>.preview-cargo-weight{max-width:85px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-measures{margin:0 0 3px!important;color:#7d8881;font-size:10px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{grid-template-columns:18px minmax(0,1fr)}
.preview-card-popover{overflow:visible!important;max-height:none!important;margin:0!important;box-sizing:border-box;border:1px solid #dce5df;border-radius:12px;background:#fff;box-shadow:0 8px 28px #233c3026;padding:10px!important;isolation:isolate}
.preview-card-popover::before{content:"";position:absolute;left:var(--tip-left,50%);width:10px;height:10px;background:#fff;border:1px solid #dce5df;transform:translateX(-50%) rotate(45deg);z-index:-1}
.preview-card-popover[data-side=below]::before{top:-6px;border-right:0;border-bottom:0}
.preview-card-popover[data-side=above]::before{bottom:-6px;border-left:0;border-top:0}
.preview-popover-body{min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.preview-popover-trigger-active{outline:1px solid #87b49e!important;outline-offset:2px;border-radius:5px}
.preview-detail-popover .preview-popover-body{font:12px/1.6 system-ui;color:#42574b;overflow-wrap:anywhere}
.preview-detail-popover [data-detail-panel]{display:block!important;margin:0!important;padding:3px!important;min-width:0;max-width:100%}
.preview-detail-popover img{max-width:100%;height:auto;border-radius:7px}
.preview-detail-popover .preview-popover-body button{max-width:100%;white-space:normal}
.preview-detail-popover .preview-popover-body p{margin:5px 0}

/* A single metadata line and subtle card sections. */
body.signed #app .preview-staff-order-grid>article.staff-order-card{padding:0!important;row-gap:0!important;overflow:hidden;background:#f8faf9!important;border-color:#dfe8e3!important;box-shadow:0 2px 6px #25453408}
body.signed #app .preview-staff-order-grid .workspace-order-summary{padding:8px 9px 7px;box-sizing:border-box;background:linear-gradient(180deg,#f1f6f3 0,#f7faf8 29px,#fff 29px)}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3{margin-bottom:6px!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:5px;margin:2px 0 0!important;padding-top:5px;border-top:1px solid #edf1ee;font-size:9px!important;line-height:1.6;white-space:nowrap;color:#7c8981;overflow:hidden;font-variant-numeric:tabular-nums}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta>span{display:block;flex:0 0 auto;margin:0!important;line-height:1.6;font-size:inherit;white-space:nowrap}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta>.preview-order-measures{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:#66776c}
body.signed #app .preview-staff-order-grid .preview-fee-summary{margin:0!important;padding:6px 9px!important;border-radius:0!important;background:#edf4f0!important;border-top:1px solid #e4ece7!important;border-bottom:1px solid #e4ece7!important}
body.signed #app .preview-staff-order-grid .preview-person-actions{margin:0!important;padding:7px 9px!important;background:#f8faf9;box-sizing:border-box}
body.signed #app .preview-staff-order-grid .preview-card-footer{margin:0!important;padding:4px 9px!important;background:#fff;border-top:1px solid #e8eeea;box-sizing:border-box}

/* Recessed inner panels sit inside a softly tinted card shell. */
body.signed #app .preview-staff-order-grid>article.staff-order-card{padding:8px!important;background:#edf2ef!important;border:1px solid #dce5df!important;border-radius:13px!important;box-shadow:inset 0 1px 0 #ffffffcc,0 2px 7px #28473509;row-gap:5px!important}
body.signed #app .preview-staff-order-grid .workspace-order-summary{padding:0;background:transparent}
body.signed #app .preview-staff-order-grid .workspace-order-summary h3{margin:0 1px 7px!important}
.preview-order-inset{min-width:0;box-sizing:border-box;padding:2px 8px 6px;background:#fff;border:1px solid #e1e9e4;border-radius:9px;box-shadow:0 1px 2px #27463406,inset 0 1px 2px #27463404}
.preview-order-inset .preview-order-route{padding:5px 0}
body.signed #app .preview-staff-order-grid .preview-fee-summary{margin:0!important;padding:5px 7px!important;background:#f9fcfa!important;border:1px solid #dce8e1!important;border-radius:8px!important;box-shadow:inset 0 1px 2px #33594305}
body.signed #app .preview-staff-order-grid .preview-person-actions{margin:0!important;padding:1px 0!important;background:transparent}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{background:#f8fbf9;border-color:#d7e3dc;border-radius:7px;box-shadow:0 1px 1px #25473504}
body.signed #app .preview-staff-order-grid .preview-card-footer{margin:0!important;padding:1px 1px 0!important;background:transparent;border-top:0}
/* Reference palette; retain nested layout and proportions. */
body.signed #app .preview-staff-order-grid>article.staff-order-card{background:#f7faf8!important;border-color:#c8d8d2!important;border-left:3px solid #54877b!important}
.preview-order-inset{background:#fbfdfc;border-color:#e2eae6}
body.signed #app .preview-staff-order-grid .preview-fee-summary{background:#eaf2ef!important;border-color:#eaf2ef!important;color:#657f77}
body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{background:#fff;border-color:#dfe6e1;color:#173e40}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta{display:grid!important;grid-template-columns:19fr 39fr 21fr 21fr!important;gap:3px!important;justify-content:normal}
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-route-cargo>.preview-cargo-name{white-space:nowrap}
body.signed #app .preview-customer-order-grid>.customer-compact-order{display:flex!important;grid-row:auto!important;gap:6px!important}
body.signed #app .preview-customer-order-grid .customer-order-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body.signed #app .preview-customer-order-grid .customer-order-actions button{min-width:0!important;width:100%!important;margin:0!important}
body.signed #app .preview-customer-order-grid .order-detail-switch{margin-top:auto!important}
body.signed[data-business-role=customer] #app:has(#orderForm) .layout{display:grid!important;grid-template-columns:minmax(0,1fr) 290px!important;align-items:start;gap:18px}
body.signed[data-business-role=customer] #orderForm{width:100%!important;min-width:0;box-sizing:border-box;margin:0!important}
body.signed[data-business-role=customer] #orderForm .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.signed[data-business-role=customer] #orderForm .fields>label{min-width:0}
body.signed[data-business-role=customer] #orderForm input,body.signed[data-business-role=customer] #orderForm select{max-width:100%;box-sizing:border-box}
body.signed[data-business-role=customer] #app .steps{display:flex;gap:6px;overflow-x:auto;max-width:100%;margin-bottom:16px}
body.signed[data-business-role=customer] #app .step{flex:1 0 auto;min-width:0}
@media(max-width:1000px){body.signed[data-business-role=customer] #app:has(#orderForm) .layout{grid-template-columns:minmax(0,1fr)!important}body.signed[data-business-role=customer] #app:has(#orderForm) .right-column{position:static!important;width:100%!important}}
@media(max-width:500px){body.signed[data-business-role=customer] #orderForm .fields{grid-template-columns:minmax(0,1fr)}body.signed[data-business-role=customer] #orderForm .form-bottom{flex-wrap:wrap;gap:10px}body.signed[data-business-role=customer] #orderForm .buttons{display:flex;flex-wrap:wrap}}
/* Desktop order workspace: exactly two rows of five, within the viewport. */
@media(min-width:1100px) and (min-height:650px){
 html:has(.preview-staff-order-grid),body.signed:has(.preview-staff-order-grid){height:100dvh;overflow:hidden!important;box-sizing:border-box}
 body.signed:has(.preview-staff-order-grid)>main{padding:10px 12px!important;height:calc(100dvh)!important;box-sizing:border-box;overflow:hidden}
 body.signed:has(.preview-staff-order-grid)>main>header,body.signed:has(.preview-staff-order-grid)>main>footer{display:none!important}
 body.signed:has(.preview-staff-order-grid) #app{height:100%;min-height:0}
 body.signed #app>.panel:has(>.preview-staff-order-grid){display:flex;flex-direction:column;height:100%;max-height:100%;box-sizing:border-box;margin:0!important;padding:10px 12px!important;overflow:hidden;gap:5px}
 body.signed #app>.panel:has(>.preview-staff-order-grid)>*{flex-shrink:0}
 body.signed #app>.panel:has(>.preview-staff-order-grid)>h2,body.signed #app>.panel:has(>.preview-staff-order-grid) .order-workspace-heading{margin:0!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;flex:1 1 0!important;min-height:0!important;margin:0!important;gap:8px;align-items:stretch}
 body.signed #app .preview-staff-order-grid>article.staff-order-card{display:flex!important;flex-direction:column!important;grid-row:auto!important;min-height:0!important;padding:6px!important;gap:4px!important;justify-content:space-between}
 body.signed #app .preview-staff-order-grid .workspace-order-summary{flex:0 1 auto;min-height:0}
 body.signed #app .preview-staff-order-grid .workspace-order-summary h3{font-size:11px!important;margin-bottom:4px!important;white-space:nowrap;overflow:hidden}
 body.signed #app .preview-staff-order-grid .preview-route-stop{height:20px}
 body.signed #app .preview-staff-order-grid .preview-route-company{font-size:11px!important;line-height:20px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{height:20px;min-height:20px}
 body.signed #app .preview-staff-order-grid .preview-order-route{padding:3px 0}
 body.signed #app .preview-staff-order-grid .preview-order-inset{padding:1px 6px 4px}
 body.signed #app .preview-staff-order-grid .preview-fee-summary{min-height:25px!important;padding:3px 5px!important}
 body.signed #app .preview-staff-order-grid .preview-agency-fees{min-height:43px!important}
 body.signed #app .preview-staff-order-grid .preview-person-actions{padding:0!important}
 body.signed #app .preview-staff-order-grid .preview-card-footer{padding:0!important}
 body.signed #app .preview-customer-order-grid .customer-order-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.signed #app .preview-customer-order-grid .customer-order-actions button{font-size:10px!important;min-height:30px!important;padding:3px!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid)>#startNew{margin:0!important;min-height:28px!important;padding:3px 10px!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid) nav{margin:0!important;padding:2px 0!important}
}
@media(min-width:851px) and (max-width:1099px){.preview-staff-order-grid{grid-template-columns:minmax(0,1fr)!important;max-width:600px;margin-inline:auto}body.signed #app .preview-staff-order-grid>article.staff-order-card{display:flex!important;grid-row:auto!important}}
@media(min-width:1100px) and (min-height:650px){body.signed #app>.panel:has(>.preview-staff-order-grid){height:calc(100dvh - 36px)!important;max-height:calc(100dvh - 36px)!important}}
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel:has(>.preview-staff-order-grid)>nav:first-of-type{display:none!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid)>form,body.signed #app>.panel:has(>.preview-staff-order-grid)>[role=group]{margin:0!important;padding:4px!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid)>*{margin-top:0!important;margin-bottom:0!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary{flex:0 0 auto!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary h3{display:flex!important;flex-wrap:nowrap!important;align-items:center}
 body.signed #app .preview-staff-order-grid .workspace-order-summary h3 .tag{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(min-width:1100px) and (min-height:650px){
 body.signed #app .preview-staff-order-grid>article.staff-order-card{gap:3px!important}
 body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{height:24px!important;min-height:24px!important;padding:2px!important}
 body.signed #app .preview-staff-order-grid .preview-card-footer .text-btn{min-height:20px!important;height:20px;padding:0!important;line-height:20px!important}
 body.signed[data-business-role] #app .preview-staff-order-grid .preview-fee-summary{min-height:24px!important;padding:2px 5px!important}
 body.signed #app .preview-staff-order-grid .preview-route-stop{height:18px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-company{line-height:18px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{height:18px!important;min-height:18px!important}
}
/* Desktop uses available width, while two compact rows remain at the top. */
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid:not(.preview-customer-order-grid){grid-template-columns:repeat(var(--desktop-order-columns,4),minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(205px,235px))!important;align-content:start!important}
 body.signed #app .preview-staff-order-grid:not(.preview-customer-order-grid)>article.staff-order-card{height:100%!important;box-sizing:border-box}
}
@media(min-width:1100px) and (min-height:650px){body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid:not(.preview-customer-order-grid){grid-template-rows:repeat(2,minmax(0,1fr))!important;max-height:478px!important;flex-grow:1!important}}
/* Local review: restore both pagers and expand freight information. */
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel:has(>.preview-staff-order-grid)>nav:first-of-type{display:flex!important}
 body.signed[data-business-role] #app .preview-staff-order-grid .preview-fee-summary{min-height:41px!important;padding:5px 7px!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid:not(.preview-customer-order-grid){max-height:530px!important}
}
.preview-fee-copy{display:block;flex:1;min-width:0}
.preview-fee-calculation{display:block!important;margin-top:3px!important;color:#81938a;font:10px/1.4 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-fee-copy .preview-fee-line{white-space:normal}
.preview-fee-copy .preview-fee-row strong{white-space:nowrap}
.preview-more-popover>.preview-popover-heading{display:none}
.preview-popover-number{font-size:11px;font-weight:600;color:#779184;margin-bottom:7px;letter-spacing:.3px}
@media(min-width:851px){
 .preview-card-popover::before{display:none!important}
 .preview-connected-tab{position:absolute!important;margin:0!important;padding:0 4px!important;background:#fff!important;border:1px solid #dce5df!important;color:#386b59!important;min-height:0!important;font:11px/1.2 system-ui!important;box-sizing:border-box;box-shadow:none!important;white-space:nowrap;z-index:2}
 .preview-card-popover[data-side=below]>.preview-connected-tab{bottom:calc(100% - 1px);border-bottom:0!important;border-radius:7px 7px 0 0!important}
 .preview-card-popover[data-side=above]>.preview-connected-tab{top:calc(100% - 1px);border-top:0!important;border-radius:0 0 7px 7px!important}
 .preview-detail-popover .preview-popover-body [data-detail-toggle]{display:none!important}
 .preview-detail-popover .order-contact-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:850px){
 .preview-fee-calculation{display:none!important}
 body.signed #app .preview-staff-order-grid>article.staff-order-card:has([data-detail-panel]:not([hidden])){display:flex!important;grid-row:auto!important;height:auto!important;max-height:none!important;overflow:visible}
 body.signed #app .preview-staff-order-grid [data-detail-panel]:not([hidden]){display:block!important;flex:0 0 auto;padding:8px;box-sizing:border-box;background:#fff;border:1px solid #e2eae6;border-radius:8px;max-width:100%;overflow-wrap:anywhere}
}
@media(min-width:1100px) and (min-height:650px) and (max-height:780px){
 body.signed #app .preview-staff-order-grid>article.staff-order-card{gap:2px!important;padding:5px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary h3{margin-bottom:2px!important;line-height:14px!important}
 body.signed #app .preview-staff-order-grid .preview-order-inset{padding:0 5px 2px!important}
 body.signed #app .preview-staff-order-grid .preview-order-route{padding:0!important}
 body.signed #app .preview-staff-order-grid .preview-route-stop{height:16px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-company{line-height:16px!important;font-size:10px!important}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{height:15px!important;min-height:15px!important}
 body.signed #app .preview-staff-order-grid .preview-route-dot{width:14px;height:14px;font-size:8px}
 body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-order-meta{padding-top:2px!important;line-height:13px!important;font-size:8px!important}
 body.signed #app .preview-staff-order-grid .preview-fee-summary{min-height:36px!important;padding:3px 5px!important}
}
@media(min-width:1100px) and (min-height:650px) and (max-height:780px){body.signed[data-business-role] #app .preview-staff-order-grid .preview-fee-summary{min-height:34px!important;padding:2px 5px!important}body.signed #app .preview-staff-order-grid .preview-person-actions>.preview-person{height:22px!important;min-height:22px!important}}
/* Local workspace refinements, November 17. */
.preview-order-search{display:none}
@media(min-width:851px){
 .preview-sidebar-account .cloud-controls{display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center}
 .preview-sidebar-account .cloud-controls .preview-account-email{flex:0 0 100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-bottom:4px}
 .preview-sidebar-account .cloud-controls button{display:inline-flex!important;align-items:center;justify-content:center;width:30px!important;height:30px!important;min-height:30px!important;padding:5px!important;margin:0!important;flex:0 0 30px;border-radius:8px}
 .preview-order-search{display:flex;align-items:center;width:228px;max-width:30vw;margin:0;border:1px solid #dce5df;border-radius:8px;background:#fff;overflow:hidden}
 .preview-order-search:focus-within{border-color:#54877b;box-shadow:0 0 0 2px #54877b1a}
 .preview-order-search input{width:100%!important;min-width:0;margin:0!important;padding:6px 10px!important;border:0!important;background:transparent;outline:0;font-size:12px!important;min-height:30px!important}
 .preview-order-search button{display:flex;align-items:center;justify-content:center;border:0!important;background:transparent!important;color:#54877b;padding:5px!important;margin:0!important;width:32px;min-height:30px!important}
 .order-heading-actions>[data-order-number-query]{display:none!important}
 body.signed #orderDateFilterForm .date-filter-fields{display:flex!important;gap:6px!important;align-items:center}
 body.signed #orderDateFilterForm .order-date-selectors.has-date-type{display:grid!important;grid-template-columns:120px minmax(160px,210px)!important;flex:0 1 336px!important;width:336px!important;gap:6px!important}
 body.signed #orderDateFilterForm .date-shortcuts,body.signed #orderDateFilterForm .date-batch-actions{display:flex!important;flex:1 1 auto!important;gap:6px!important;width:auto!important}
 body.signed #orderDateFilterForm .date-shortcuts button,body.signed #orderDateFilterForm .date-batch-actions button{flex:1 1 auto!important;width:auto!important;padding-inline:8px!important;white-space:nowrap}
}
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel:has(>.preview-staff-order-grid){height:auto!important;max-height:calc(100dvh - 36px)!important}
 body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid:not(.preview-customer-order-grid){flex:0 1 auto!important;height:clamp(360px,calc(100dvh - 230px),530px)!important;max-height:530px!important}
}
/* Sidebar account: email on its own line, then the three icon buttons in one row (beats the older 2-column grid). */
body.signed>.sidebar>.preview-sidebar-account>.cloud-controls{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px!important}
body.signed>.sidebar>.preview-sidebar-account>.cloud-controls .preview-account-email{flex:0 0 100%;max-width:100%;margin:0 0 2px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.signed>.sidebar>.preview-sidebar-account>.cloud-controls button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 32px!important;width:32px!important;height:32px!important;min-height:32px!important;padding:6px!important;margin:0!important;border-radius:8px!important}
body.signed>.sidebar>.preview-sidebar-account>.cloud-controls button svg{width:18px;height:18px}
body.signed>.sidebar>.preview-sidebar-account>.cloud-controls #passkey-manage{flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;box-sizing:border-box!important}
/* Expanded mobile detail keeps contact data and removes repeated card metadata. */
@media(max-width:850px){
 body.signed #app .staff-order-card>[data-detail-panel=info]:not([hidden]){padding:7px!important;margin-top:4px!important;font-size:11px;line-height:1.35}
 .staff-order-card [data-detail-panel=info] .order-detail-layout{gap:5px!important}
 .staff-order-card [data-detail-panel=info] .order-detail-section{padding:6px!important;margin:0!important;border-radius:6px}
 .staff-order-card [data-detail-panel=info] .order-detail-section h4{font-size:11px!important;margin:0 0 4px!important}
 .staff-order-card [data-detail-panel=info] .order-detail-reference{display:none!important}
 .staff-order-card [data-detail-panel=info] .order-detail-address dl{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px 8px!important}
 .staff-order-card [data-detail-panel=info] .order-detail-address .order-detail-field:first-child,.staff-order-card [data-detail-panel=info] .order-detail-address .order-detail-field:last-child{grid-column:1/-1}
 .staff-order-card [data-detail-panel=info] .order-detail-field{display:block!important;margin:0!important}
 .staff-order-card [data-detail-panel=info] dt{font-size:10px!important;color:#8b9c94;margin:0!important;line-height:1.25!important}
 .staff-order-card [data-detail-panel=info] dd{font-size:11px!important;line-height:1.35!important;margin:1px 0 0!important}
 .staff-order-card [data-detail-panel=info] .order-detail-note{display:none!important}
 .staff-order-card [data-detail-panel=info] .order-detail-cargo-item{padding:4px 5px!important;gap:1px!important;font-size:10px!important;line-height:1.35!important}
 .staff-order-card [data-detail-panel=info] .order-detail-wide dl{gap:4px!important}
 .staff-order-card [data-detail-panel=info]>strong{font-size:11px!important}
}
/* 更多: narrow upward menu attached to its button like a folder tab (desktop and phone). */
@media all{
 .preview-more-popover{padding:0!important;border-radius:10px 10px 10px 0!important;overflow:visible!important}
 .preview-more-popover::before{display:none!important}
 .preview-more-popover .preview-popover-body{padding:0!important;overflow:hidden;border-radius:inherit}
 .preview-more-popover>.preview-connected-tab{position:absolute!important;margin:0!important;padding:0 4px!important;background:#fff!important;border:1px solid #dce5df!important;color:#386b59!important;min-height:0!important;font:11px/1.2 system-ui!important;box-sizing:border-box;box-shadow:none!important;white-space:nowrap;z-index:2}
 .preview-more-popover[data-side=below]>.preview-connected-tab{bottom:calc(100% - 1px);border-bottom:0!important;border-radius:7px 7px 0 0!important}
 .preview-more-popover[data-side=above]>.preview-connected-tab{top:calc(100% - 1px);border-top:0!important;border-radius:0 0 7px 7px!important}
 .preview-more-popover .preview-more-actions{display:flex!important;flex-direction:column;gap:6px!important;padding:8px!important}
 .preview-more-popover .preview-more-actions button{width:100%!important;text-align:center!important;justify-content:center!important;min-height:32px!important;padding:6px 10px!important;margin:0!important;border:1px solid #dce5df!important;border-radius:8px!important;background:#fff!important;font-size:12px!important;color:#235846!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important}
 .preview-more-popover .preview-more-actions button:hover{background:#f2f7f4!important;border-color:#b9d0c3!important}
 .preview-more-popover .preview-more-actions [data-remove-order]{color:#b14844!important;border-color:#e6c9c6!important;background:#fff8f7!important}
 .preview-more-popover[data-side=above]{border-radius:10px 10px 10px 0!important}
 .preview-more-popover[data-side=below]{border-radius:0 10px 10px 10px!important}
}
@media(pointer:coarse){.preview-more-popover .preview-more-actions button{min-height:40px!important;font-size:13px!important}}
/* Phone: 更多 expands inside the card, one full-width button per row. */
.preview-more-inline[hidden]{display:none!important}
@media(max-width:850px){
 body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-more-inline:not([hidden])){display:flex!important;grid-row:auto!important;height:auto!important;max-height:none!important;overflow:visible}
 .preview-more-inline:not([hidden]){display:flex!important;flex-direction:column;gap:6px;flex:0 0 auto;margin-top:4px;padding:8px;box-sizing:border-box;background:#fff;border:1px solid #e2eae6;border-radius:8px}
 .preview-more-inline button{width:100%!important;min-height:40px!important;padding:8px 12px!important;margin:0!important;border:1px solid #dce5df!important;border-radius:8px!important;background:#fff!important;color:#235846!important;font-size:13px!important;text-align:center!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important}
 .preview-more-inline [data-remove-order]{color:#b14844!important;border-color:#e6c9c6!important;background:#fff8f7!important}
}
/* Fee box: full amounts in three columns, no weight line or ? popover. */
.preview-fee-copy .preview-fee-line.preview-fee-grid{display:flex!important;flex-wrap:nowrap!important;overflow:hidden;align-items:baseline;gap:2px 8px;white-space:nowrap!important;font-size:12px;line-height:1.4}
.preview-fee-part{display:inline-flex;align-items:baseline;gap:3px;flex:0 0 auto}
.preview-fee-part+.preview-fee-part::before{content:"·";color:#a9b8b0;margin-right:5px}
.preview-fee-part>span{font-size:11px;color:#7f948a}
.preview-fee-part>b{font-weight:600;color:#2f4f43;font-variant-numeric:tabular-nums}
.preview-fee-part.preview-fee-total{margin-left:auto}
.preview-fee-part.preview-fee-total::before{display:none}
.preview-fee-part.preview-fee-total>b{color:#17634f;font-weight:700;font-size:13px}
/* Customer order list: the panel sizes to its content, so the grid must too (flex:1 1 0 collapsed it to 0px). */
body.signed #app>.panel>.preview-staff-order-grid.preview-customer-order-grid{flex:0 0 auto!important;height:auto!important;max-height:none!important;grid-template-rows:none!important;grid-auto-rows:auto!important;overflow:visible!important}
body.signed #app>.panel:has(>.preview-customer-order-grid){height:auto!important;max-height:none!important;overflow:visible!important}
/* No bottom "创建新订单" on the order list; the nav already has 创建订单. */
body.signed #app>.panel:has(>.preview-customer-order-grid)>#startNew{display:none!important}
/* 货物信息: template chips, parcel type, then one card per item (name / qty·price·currency / notes). */
#orderForm .preview-cargo-templates{margin:10px 0 12px;padding:10px 12px;border:1px dashed #cfdcd5;border-radius:10px;background:#f7faf8}
#orderForm .preview-cargo-templates-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
#orderForm .preview-cargo-templates-head b{font-size:13px;color:#1f3d33}
#orderForm .preview-cargo-templates-head span{font-size:11px;color:#7f948a}
#orderForm .preview-cargo-template-list{display:flex;flex-wrap:wrap;gap:6px}
#orderForm .cargo-template-empty{margin:0;font-size:12px;color:#7f948a}
#orderForm .cargo-template-chip{display:inline-flex;align-items:stretch;border:1px solid #cfdcd5;border-radius:999px;background:#fff;overflow:hidden}
#orderForm .cargo-template-chip button{margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:32px!important;font-size:12px!important;color:#235846!important;cursor:pointer}
#orderForm .cargo-template-use{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 12px!important}
#orderForm .cargo-template-use small{color:#7f948a;font-size:10px}
#orderForm .cargo-template-use:hover{background:#eef5f1!important}
#orderForm .cargo-template-remove{width:30px;padding:0!important;color:#9aaba2!important;border-left:1px solid #e5ece8!important;font-size:15px!important}
#orderForm .cargo-template-remove:hover{color:#b14844!important;background:#fff6f5!important}
#orderForm .preview-cargo-parcel{max-width:260px;margin-bottom:4px}
#orderForm .preview-cargo-parcel label{display:block}
#orderForm .preview-cargo-card{padding:12px 14px!important;margin:10px 0!important;border-radius:10px}
#orderForm .preview-cargo-card .cargo-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
#orderForm .preview-cargo-card .cargo-top h3{margin:0;font-size:14px}
#orderForm .preview-cargo-total{margin-left:auto;font-size:12px;color:#7f948a;white-space:nowrap}
#orderForm .preview-cargo-total output{display:inline!important;padding:0!important;margin-left:4px;font-weight:700;color:#17634f;font-variant-numeric:tabular-nums}
#orderForm .preview-cargo-card .cargo-top .remove{margin:0;flex:0 0 auto}
#orderForm .preview-cargo-grid{display:grid;gap:10px}
#orderForm .preview-cargo-grid label{display:block;min-width:0;margin:0}
#orderForm .preview-cargo-numbers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:10px}
#orderForm .preview-cargo-grid textarea{width:100%;box-sizing:border-box}
#orderForm .preview-cargo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
#orderForm .preview-cargo-actions>button{flex:1 1 160px;margin:0!important}
#orderForm .preview-cargo-template-save:not([hidden]){display:flex;gap:6px;margin-top:8px}
#orderForm .preview-cargo-template-save input{flex:1 1 auto;min-width:0;margin:0!important}
#orderForm .preview-cargo-template-save button{flex:0 0 auto;margin:0!important}
@media(max-width:500px){
 #orderForm .preview-cargo-card{padding:10px!important}
 #orderForm .preview-cargo-numbers{gap:6px}
 #orderForm .preview-cargo-numbers label{font-size:11px}
 #orderForm .preview-cargo-parcel{max-width:none}
}
/* Phone top bar: three equal icon buttons; the brand/account row folds away while scrolling down. */
@media(max-width:850px){
 body.signed .compact-workspace-top .compact-icon,body.signed .compact-workspace-top #passkey-manage{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
 body.signed .compact-workspace-top .compact-icon svg{width:18px!important;height:18px!important}
 /* Shift the sticky bar up instead of collapsing it, so page layout (and scroll position) never jumps. */
 body.signed>aside.sidebar{transition:top .2s ease}
 body.signed .compact-workspace-top{transition:opacity .2s ease}
 body.signed.preview-compact-top-hidden>aside.sidebar{top:calc(-1 * var(--compact-top-shift,48px))!important}
 body.signed.preview-compact-top-hidden .compact-workspace-top{opacity:0;pointer-events:none}
}
@media(max-width:850px) and (prefers-reduced-motion:reduce){body.signed .compact-workspace-top{transition:none}}
/* Phone: 收起 gets its own full-width row in both detail and history panels. */
@media(max-width:850px){
 body.signed #app .staff-order-card [data-detail-panel] .order-detail-collapse-bottom{display:flex!important;align-items:center;justify-content:center;flex:0 0 100%!important;width:100%!important;min-height:36px!important;margin:8px 0 0!important;padding:6px 12px!important;font-size:12px!important;border-radius:8px!important;box-sizing:border-box}
}
/* 查看物流: no "状态流" heading; the timeline speaks for itself. */
[data-detail-panel=history]>.order-detail-panel-heading{display:none!important}
.preview-detail-popover [data-detail-panel=history] pre{margin:0!important;white-space:pre-wrap!important}
/* Photo buttons now sit at the bottom of 查看物流. */
.staff-order-card [data-detail-panel=history] .order-photo-actions,.preview-detail-popover [data-detail-panel=history] .order-photo-actions{display:flex!important;flex-wrap:wrap;gap:8px;margin:10px 0 0!important;padding-top:10px;border-top:1px solid #e3ebe6}
.staff-order-card [data-detail-panel=history] .order-photo-actions button,.preview-detail-popover [data-detail-panel=history] .order-photo-actions button{flex:0 0 auto;width:auto!important;min-height:32px!important;padding:5px 14px!important;margin:0!important;font-size:12px!important;border-radius:8px!important}
/* 订单详情: floating popover on desktop, same compact content as the phone layout. */
.preview-info-number{margin-left:10px;padding:2px 8px;border-radius:999px;background:#edf3f0;color:#2f6352;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
@media(min-width:851px){
 .preview-info-popover .preview-popover-heading strong{display:flex;align-items:center;font-size:14px;color:#1f3d33}
 .preview-info-popover [data-detail-panel]{padding:0!important}
 .preview-info-popover .preview-mobile-details{font-size:12px}
 .preview-info-popover .preview-mobile-details p{font-size:12px!important}
 .preview-info-popover .preview-contact-address,.preview-info-popover .preview-detail-goods span{font-size:11px!important}
}
@media(min-width:1001px){
 body.signed[data-business-role=customer] .content:has(#orderForm){padding:20px 24px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm){max-width:1480px!important;margin-inline:auto!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .layout{grid-template-columns:minmax(0,1fr) minmax(340px,390px)!important;gap:24px!important;align-items:stretch!important}
 body.signed[data-business-role=customer] #orderForm{padding:28px!important;min-height:0!important;display:flex;flex-direction:column}
 body.signed[data-business-role=customer] #orderForm .form-bottom{margin-top:24px!important;padding-top:18px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .right-column{position:static!important;width:100%!important;min-width:0;display:flex;flex-direction:column}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary{flex:1;margin:0!important;display:flex;flex-direction:column;min-height:0!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary-top{padding:26px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary h3{font-size:17px!important;margin-bottom:26px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary .route{font-size:15px;gap:18px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary small{font-size:12px!important;line-height:1.5!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary-data{font-size:12px!important;margin-top:26px!important;padding-top:20px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary-data>div{gap:12px;margin-bottom:12px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary-note{margin-top:auto!important;padding:20px 26px!important;font-size:12px!important;line-height:1.6}
 body.signed[data-business-role=customer]:has(#orderForm)>main>footer{display:none!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .trust{margin:10px 0 0!important}
}
@media all{
 .preview-mobile-details{display:grid;gap:6px;font-size:11px;line-height:1.4;color:#29483f}
 .preview-mobile-details p{margin:0!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important}
 .preview-detail-package{font-size:10px;color:#84958c;padding-bottom:3px;border-bottom:1px solid #e7eeea}
 .preview-contact-compact{padding:6px 7px;border-radius:7px;background:#f5f8f6}
 .preview-contact-compact h4{margin:0 0 3px!important;font-size:10px!important;color:#54877b}
 .preview-contact-company{font-weight:600}
 .preview-contact-person{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:3px 0}
 .preview-contact-address{color:#7d9086;font-size:10px!important}
 .preview-detail-goods{padding:5px 7px;background:#f5f8f6;border-radius:7px}
 .preview-detail-goods>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 6px}
 .preview-detail-goods span{font-size:10px;color:#7d9086}
 .preview-detail-goods p{flex-basis:100%;color:#7d9086}
 .preview-detail-remarks{padding:3px 6px}
 .preview-detail-remarks p{display:flex;gap:8px}
 .preview-detail-remarks b{color:#54877b;white-space:nowrap;font-weight:500}
}
@media all{.preview-compact-photo-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.preview-compact-photo-actions button{min-height:27px!important;padding:4px 6px!important;font-size:10px!important;margin:0!important;width:auto!important}.preview-compact-photo-actions .cloud-photos:empty{display:none}.preview-compact-photo-actions .cloud-photos{flex-basis:100%}}
/* The wizard fills the usable desktop canvas, with actions anchored at its foot. */
@media(min-width:1001px){
 body.signed[data-business-role=customer] #app:has(#orderForm) .layout{min-height:calc(100dvh - 135px)!important}
 body.signed[data-business-role=customer] #orderForm .form-bottom{margin-top:auto!important;margin-bottom:0!important}
 body.signed[data-business-role=customer] #orderForm>.info{margin-bottom:24px!important}
 body.signed[data-business-role=customer] #app:has(#orderForm) .summary{width:100%!important;max-width:none!important;box-sizing:border-box}
 body.signed[data-business-role=customer] #app:has(#orderForm) .trust{padding:0!important;min-height:0!important;line-height:16px!important;flex:0 0 auto}
}
@media(min-width:851px){
 body.signed #orderDateFilterForm .order-date-selectors.has-date-type{grid-template-columns:132px minmax(190px,260px)!important;flex:0 1 398px!important;width:398px!important}
 body.signed #orderDateFilterForm .date-shortcuts,body.signed #orderDateFilterForm .date-batch-actions{flex:0 1 auto!important}
 body.signed #orderDateFilterForm .date-shortcuts button{flex:0 1 auto!important;min-width:62px;padding-inline:12px!important}
 body.signed #orderDateFilterForm .date-batch-actions button{flex:0 1 auto!important;min-width:80px;padding-inline:12px!important}
}
@media(min-width:1100px) and (min-height:650px){body.signed #app>.panel:has(>.preview-staff-order-grid) .preview-staff-order-grid:not(.preview-customer-order-grid){height:clamp(360px,calc(100dvh - 230px),480px)!important;max-height:480px!important}}
.cargo-preset-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.cargo-preset-foot button{margin:0!important}.cargo-preset-foot small{font-size:11px;color:#83978b}
/* Footer actions shown directly (two or fewer): text buttons on the left, like 查看详情 / 查看物流 on the right. */
.preview-card-footer .preview-direct-actions{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.preview-card-footer .preview-direct-action{margin:0!important;padding:2px 0!important;min-height:0;font-size:inherit;white-space:nowrap}
.preview-card-footer .preview-direct-action[data-remove-order]{color:#b14844!important}
/* Phone: one layout whether panels are open or closed, so the footer row never jumps when a panel opens. */
@media(max-width:850px){
 body.signed #app .preview-staff-order-grid>article.staff-order-card{display:flex!important;flex-direction:column!important;grid-row:auto!important;height:auto!important;max-height:none!important}
}
/* Cargo row: arrow · packaging chip (袋子 / 纸箱) · contents. */
body.signed #app .preview-staff-order-grid .workspace-order-summary .preview-route-cargo{grid-template-columns:18px auto minmax(0,1fr)!important}
.preview-route-cargo>.preview-cargo-pack{flex-shrink:0;padding:1px 6px;border-radius:5px;background:#eef3f0;color:#4f6e62;font-size:10px;line-height:1.4;white-space:nowrap}
/* Fee line fitting steps (see preview-card-menus.js): smaller text → no labels → no kg×rate basis. */
.preview-fee-calc{font-style:normal;font-weight:500;color:#5f766c}
.preview-fee-grid.preview-fee-fit1{gap:2px 5px;font-size:11px}
.preview-fee-grid.preview-fee-fit1 .preview-fee-part+.preview-fee-part::before{margin-right:3px}
.preview-fee-grid.preview-fee-fit1 .preview-fee-part.preview-fee-total>b{font-size:12px}
.preview-fee-grid.preview-fee-fit2 .preview-fee-part:not(.preview-fee-total)>span{display:none}
.preview-fee-grid.preview-fee-fit3 .preview-fee-calc{display:none}
/* 合包 list on desktop: one row per order — checkbox, number + tags, route, packaging + contents, dates, weight. */
.bundle-order .preview-bundle-pack{background:#eef3f0!important;color:#3f6457!important;font-weight:600!important;white-space:nowrap}
.bundle-order .preview-bundle-weight{display:none!important}
.preview-bundle-cargo .preview-cargo-pack{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:5px;background:#eef3f0;color:#4f6e62;font-size:11px;line-height:1.4;vertical-align:1px}
@media(min-width:851px){
 .bundle-ready-list>.bundle-order.preview-bundle-row{align-items:center;padding:8px 12px}
 .bundle-ready-list>.bundle-order.preview-bundle-row>div{display:flex;align-items:center;gap:16px;flex:1 1 auto;min-width:0}
 .bundle-ready-list>.bundle-order.preview-bundle-row .workspace-order-summary{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;flex:1 1 auto;min-width:0}
 .bundle-ready-list>.bundle-order.preview-bundle-row .workspace-order-summary>*{margin:0!important;white-space:nowrap}
 .bundle-ready-list>.bundle-order.preview-bundle-row h3{flex:0 0 auto!important;width:auto!important;max-width:none!important;display:flex;align-items:center;gap:6px}
 .bundle-ready-list>.bundle-order.preview-bundle-row .preview-bundle-route{flex:1 1 auto;min-width:80px;overflow:hidden;text-overflow:ellipsis}
 .bundle-ready-list>.bundle-order.preview-bundle-row .preview-bundle-cargo{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
 .bundle-ready-list>.bundle-order.preview-bundle-row .workspace-order-dates{flex:0 0 auto;display:flex;gap:12px}
 .bundle-ready-list>.bundle-order.preview-bundle-row>div>small{flex:0 0 auto;white-space:nowrap;min-width:48px;text-align:right}
}
/* 合包 list: rows are rounded cards inset from the list border; a checked row is tinted as a whole. */
.bundle-ready-list{padding:8px!important;box-sizing:border-box}
.bundle-ready-list>.bundle-order{margin:0 0 6px!important;border:1px solid #e3e8e3!important;border-radius:10px!important;background:#fff;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.bundle-ready-list>.bundle-order:last-child{margin-bottom:0!important}
.bundle-ready-list>.bundle-order:hover{background:#f6faf7;border-color:#cfdfd6!important}
.bundle-ready-list>.bundle-order:has(input:checked){background:#e5f1ea;border-color:#7fb197!important;box-shadow:inset 3px 0 0 #2f7d62}
.bundle-ready-list>.bundle-order:has(input:checked) h3{color:#174f3e}
/* 首页: trend chart (left) and jump-to-orders tiles (right). */
.home-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:14px;margin:0 0 14px}
.home-dashboard>.panel{margin:0!important}
.home-loading{grid-column:1/-1;color:#6f857b}
.home-trend{padding:16px 18px!important;min-width:0}
.home-trend-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.home-trend-head h2{margin:0;font-size:18px}
.home-trend-head p{margin:2px 0 0;font-size:12px;color:#7f948a}
.home-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:#5f766c}
.home-legend>span{display:inline-flex;align-items:center;gap:6px}
.home-legend b{font-size:16px;color:#1f3d33;font-variant-numeric:tabular-nums}
.home-legend .is-current::before,.home-legend .is-previous::before{content:"";width:16px;height:0;border-top:3px solid #17634f;border-radius:2px}
.home-legend .is-previous::before{border-top:2px dashed #9bb3a8}
.home-change{padding:2px 8px;border-radius:999px;background:#eef3f0;font-weight:600}
.home-change.up{color:#17634f}.home-change.down{color:#b14844;background:#fbf0ef}
.home-chart{display:block;width:100%;height:auto;overflow:visible}
.home-grid{stroke:#edf2ef;stroke-width:1}
.home-axis{font:10px system-ui;fill:#94a59c}
.home-line-current{fill:none;stroke:#17634f;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.home-line-previous{fill:none;stroke:#9bb3a8;stroke-width:2;stroke-dasharray:5 4;stroke-linejoin:round}
.home-dot-current{fill:#fff;stroke:#17634f;stroke-width:2}
.home-hit{fill:transparent}
.home-tiles{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px}
.home-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;margin:0!important;padding:14px 40px 14px 18px!important;border:1px solid #dce5df!important;border-radius:14px!important;background:#fff!important;text-align:left;cursor:pointer;color:#1f3d33!important;box-shadow:none!important;transition:border-color .15s,background-color .15s,transform .15s}
.home-tile:hover{border-color:#7fb197!important;background:#f6faf7!important;transform:translateY(-1px)}
.home-tile-label{font-size:13px;color:#5f766c}
.home-tile b{font-size:30px;line-height:1.1;font-weight:700;color:#17634f;font-variant-numeric:tabular-nums}
.home-tile small{font-size:11px;color:#94a59c}
.home-tile-go{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:18px;color:#9bb3a8}
@media(max-width:850px){
 .home-dashboard{grid-template-columns:minmax(0,1fr)}
 .home-tiles{grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .home-tile{padding:10px!important;border-radius:12px!important}
 .home-tile b{font-size:24px}
 .home-tile small,.home-tile-go{display:none}
 .home-trend{padding:12px!important}
 .home-axis{font-size:18px}
 .home-line-current{stroke-width:4}
 .home-line-previous{stroke-width:3}
 .home-dot-current{stroke-width:3}
}
/* 仪表盘: compact 订单数据概览 filter card — title, quick ranges and actions on one row, filters on the next. */
.analytics>.panel:first-child{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 16px;padding:12px 16px!important}
.analytics>.panel:first-child .analytics-eyebrow,.analytics>.panel:first-child .analytics-subtitle,.analytics>.panel:first-child .analytics-demo{display:none!important}
.analytics>.panel:first-child .analytics-topline{margin:0!important;grid-column:1;grid-row:1}
.analytics>.panel:first-child .analytics-topline h2{margin:0!important;font-size:16px!important;white-space:nowrap}
.analytics>.panel:first-child #analyticsFilterForm{display:contents}
.analytics>.panel:first-child .analytics-filter-footer{grid-column:2;grid-row:1;display:flex!important;justify-content:space-between;align-items:center;gap:8px;margin:0!important;padding:0!important;border:0!important}
.analytics>.panel:first-child .analytics-filter-grid{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:1.4fr 1fr 1fr .8fr 1fr 1fr 1fr;gap:8px!important;margin:0!important}
.analytics>.panel:first-child .analytics-filter-grid label{font-size:11px!important;color:#7f948a;margin:0!important;min-width:0}
.analytics>.panel:first-child .analytics-filter-grid :is(select,input){margin-top:2px!important;min-height:32px!important;height:32px;padding:4px 8px!important;font-size:12px!important}
.analytics>.panel:first-child .analytics-filter-footer button{min-height:30px!important;padding:4px 12px!important;font-size:12px!important;margin:0!important}
.analytics>.panel:first-child .analytics-filter-error{grid-column:1/-1;margin:0!important}
.analytics>.panel:first-child .analytics-filter-error:empty{display:none}
/* Wrap filters according to available content width, including the sidebar rail. */
.analytics{container:analytics / inline-size;min-width:0}
.analytics>.panel:first-child .analytics-filter-footer{min-width:0;flex-wrap:wrap}
.analytics>.panel:first-child :is(.analytics-quick,.analytics-filter-actions){min-width:0;flex-wrap:wrap}
.analytics>.panel:first-child .analytics-filter-grid :is(input,select){width:100%;min-width:0;box-sizing:border-box}
@container analytics (max-width:1100px){
 .analytics>.panel:first-child .analytics-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container analytics (max-width:760px){
 .analytics>.panel:first-child{grid-template-columns:minmax(0,1fr)}
 .analytics>.panel:first-child .analytics-filter-footer{grid-column:1;grid-row:3}
 .analytics>.panel:first-child .analytics-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container analytics (max-width:540px){
 .analytics>.panel:first-child .analytics-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Order cards: finished (已签收) turn a deeper green, cancelled turn grey. */
body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-order-status[data-state=done]){background:#dfece5!important;border-color:#a9c7b8!important;border-left-color:#1d5a48!important}
body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-order-status[data-state=done]) .preview-order-inset{background:#f1f7f3;border-color:#c6dacf}
body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-order-status[data-state=done]) .preview-fee-summary{background:#cfe2d8!important;border-color:#cfe2d8!important}
body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-order-status[data-state=cancelled]){background:#eceeed!important;border-color:#d5d9d7!important;border-left-color:#a3aba7!important;color:#7d8682}
body.signed #app .preview-staff-order-grid>article.staff-order-card:has(.preview-order-status[data-state=cancelled]) :is(.preview-order-inset,.preview-fee-summary){background:#f4f5f5!important;border-color:#e0e3e1!important;filter:grayscale(1);opacity:.8}
/* 筛选结果 panel: stat strip, status stack bar + legend, company ranking. Replaced blocks are hidden. */
.analytics>.analytics-replaced{display:none!important}
.home-empty{margin:40px 0;text-align:center;color:#94a59c}
.home-range{margin:4px 0 0;font-size:11px;color:#94a59c;text-align:right}
.analytics-results{padding:16px 18px!important}
.analytics-results .results-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.analytics-results .results-head h3{margin:0;font-size:16px}
.analytics-results .results-head span{font-size:12px;color:#7f948a;font-variant-numeric:tabular-nums}
.analytics-results .results-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e3ebe6;border-radius:12px;overflow:hidden;margin-bottom:14px}
.analytics-results .results-stat{display:flex;flex-direction:column;gap:2px;padding:12px 16px;min-width:0}
.analytics-results .results-stat+.results-stat{border-left:1px solid #e3ebe6}
.analytics-results .results-stat.is-main{background:#f3f8f5}
.analytics-results .results-stat span{font-size:12px;color:#5f766c}
.analytics-results .results-stat b{font-size:24px;line-height:1.15;color:#1f3d33;font-variant-numeric:tabular-nums}
.analytics-results .results-stat b small{margin-left:3px;font-size:12px;font-weight:400;color:#7f948a}
.analytics-results .results-stat em{font-style:normal;font-size:11px;color:#94a59c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analytics-results .results-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
.analytics-results .results-block{min-width:0;padding:12px 14px;border:1px solid #e3ebe6;border-radius:12px}
.analytics-results .results-block h4{margin:0 0 10px;font-size:13px;color:#2f4f43}
.analytics-results .results-stack{display:flex;height:12px;border-radius:999px;overflow:hidden;background:#eef3f0;margin-bottom:10px}
.analytics-results .results-stack i{display:block;height:100%}
.analytics-results .results-stack i+i{border-left:2px solid #fff}
.analytics-results .results-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:0;padding:0;list-style:none}
.analytics-results .results-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 48px;align-items:center;gap:8px;font-size:12px;color:#2f4f43}
.analytics-results .results-legend li.is-zero{color:#a3b2aa}
.analytics-results .results-legend li i{width:10px;height:10px;border-radius:3px}
.analytics-results .results-legend li b{font-variant-numeric:tabular-nums}
.analytics-results .results-legend li em{font-style:normal;color:#94a59c;text-align:right;font-variant-numeric:tabular-nums}
.analytics-results .results-rank{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.analytics-results .results-rank li{display:grid;grid-template-columns:20px minmax(80px,1fr) minmax(60px,1.2fr) auto 48px;align-items:center;gap:8px;font-size:12px;color:#2f4f43}
.analytics-results .results-rank-no{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#eef3f0;color:#4f6e62;font-size:11px;font-weight:600}
.analytics-results .results-rank-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analytics-results .results-rank-bar{height:8px;border-radius:999px;background:#eef3f0;overflow:hidden}
.analytics-results .results-rank-bar i{display:block;height:100%;border-radius:inherit;background:#54877b}
.analytics-results .results-rank li b{font-variant-numeric:tabular-nums}
.analytics-results .results-rank li em{font-style:normal;color:#94a59c;text-align:right;font-variant-numeric:tabular-nums}
.analytics-results .results-none{margin:0;color:#94a59c;font-size:12px}
.analytics-results .results-foot{margin:10px 0 0;font-size:11px;color:#94a59c}
@media(max-width:850px){
 .analytics-results{padding:12px!important}
 .analytics-results .results-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .analytics-results .results-stat:nth-child(3){border-left:0}
 .analytics-results .results-stat:nth-child(n+3){border-top:1px solid #e3ebe6}
 .analytics-results .results-body{grid-template-columns:minmax(0,1fr)}
 .analytics-results .results-legend{grid-template-columns:minmax(0,1fr)}
 .analytics-results .results-rank li{grid-template-columns:20px minmax(0,1fr) 60px auto 44px}
}
.analytics-results .results-rank-no.is-top{background:#17634f;color:#fff}
.analytics-results .results-rank li{grid-template-columns:20px minmax(80px,1fr) minmax(60px,1.1fr) auto 64px!important}
.analytics-results .results-more{margin:8px 0 0;font-size:11px;color:#94a59c}
@media(max-width:850px){.analytics-results .results-rank li{grid-template-columns:20px minmax(0,1fr) 50px auto 60px!important}}
/* Ranking rows share one grid so every bar starts and ends at the same place. */
.analytics-results .results-rank{display:grid!important;grid-template-columns:20px minmax(80px,1fr) minmax(80px,1.4fr) max-content max-content!important;column-gap:10px;row-gap:8px}
.analytics-results .results-rank li{display:contents!important}
.analytics-results .results-rank li>b{text-align:right}
@media(max-width:850px){.analytics-results .results-rank{grid-template-columns:20px minmax(0,1fr) minmax(40px,.8fr) max-content max-content!important;column-gap:8px}}
/* Package cards share the order-card look. */
.bundle-list>article.bundle-card.preview-package-card{display:flex!important;flex-direction:column;gap:8px;padding:8px!important;border:1px solid #c8d8d2!important;border-left:3px solid #54877b!important;border-radius:13px!important;background:#f7faf8!important;box-shadow:none!important}
.preview-package-card .preview-package-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 0}
.preview-package-card .preview-package-top h3{margin:0;font-size:14px;font-weight:700;color:#1f3d33;font-variant-numeric:tabular-nums}
.preview-package-card .preview-order-status{flex:0 0 auto;margin:0!important;padding:2px 8px!important;border-radius:999px!important;font-size:11px!important;background:#fbeee8!important;color:#b0634a!important}
.preview-package-card .preview-order-status[data-state=active]{background:#e8f0f7!important;color:#3d6a93!important}
.preview-package-card .preview-order-status[data-state=done]{background:#e4efe8!important;color:#1d5a48!important}
.preview-package-card .preview-package-inset{display:flex;flex-direction:column;gap:3px;margin:0;padding:8px 10px;border:1px solid #e2eae6;border-radius:9px;background:#fbfdfc}
.preview-package-card .preview-package-inset p{margin:0!important;font-size:12px;line-height:1.5;color:#2f4f43;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-package-card .preview-package-flight{font-weight:600}
.preview-package-card .preview-package-note{color:#7f948a!important}
.preview-package-card .preview-package-meta{display:flex;gap:14px;margin-top:3px!important;padding-top:5px;border-top:1px solid #edf2ef;font-size:11px!important;color:#5f766c!important;font-variant-numeric:tabular-nums}
.preview-package-card .preview-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0!important;padding:0 2px!important;border:0!important;background:transparent!important}
.preview-package-card .preview-card-footer .text-btn{margin:0!important;padding:2px 0!important;min-height:0!important;border:0!important;background:transparent!important;color:#2f6352!important;font-size:12px!important;box-shadow:none!important}
.preview-package-card .preview-card-links{display:flex;gap:12px}
.preview-package-card .bundle-member-area:empty{display:none}
.preview-package-card .preview-package-history:not([open]){display:none}
.preview-package-card .preview-package-history>summary{display:none}
.preview-package-card .preview-package-history[open]{margin:0!important;padding:8px 10px!important;border:1px solid #e2eae6;border-radius:9px;background:#fff;font-size:12px}
.bundle-list>article.bundle-card.preview-package-card:has(.preview-order-status[data-state=done]){background:#dfece5!important;border-color:#a9c7b8!important;border-left-color:#1d5a48!important}
.bundle-list>article.bundle-card.preview-package-card:has(.preview-order-status[data-state=done]) .preview-package-inset{background:#f1f7f3;border-color:#c6dacf}
.preview-package-card .preview-package-progress{display:flex;gap:6px}
.preview-package-card .preview-package-progress button{flex:1 1 0;margin:0!important;min-height:34px!important;padding:6px 10px!important;border-radius:9px!important;font-size:13px!important}
/* Package actions shown directly; 包内订单 as a popover on desktop, inline on phones. */
.preview-package-card .preview-package-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.preview-package-card .preview-package-actions button{margin:0!important;min-height:30px!important;padding:4px 8px!important;border-radius:8px!important;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-package-card .bundle-member-area[hidden]{display:none!important}
.preview-members-popover .bundle-member-area{display:grid!important;gap:8px;margin:0!important;padding:0!important}
.preview-members-popover .bundle-member{margin:0!important;padding:8px 10px!important;border:1px solid #e2eae6!important;border-left:3px solid #54877b!important;border-radius:9px!important;background:#fbfdfc!important;font-size:12px}
.preview-members-popover .bundle-member h3{font-size:13px!important;margin:0 0 2px!important}
.preview-members-popover .bundle-member p{margin:1px 0!important;font-size:12px!important}
@media(max-width:850px){.preview-package-card .bundle-member-area:not([hidden]){display:grid!important;gap:8px}}
/* Package list grid and two-column actions (same 2×2 layout as on phones). */
.bundle-list:has(>.preview-package-card){display:grid!important;grid-template-columns:repeat(var(--pkg-cols,3),minmax(0,1fr));gap:12px;align-items:stretch}
.preview-package-card>.preview-card-footer{margin-top:auto!important}
.bundle-list>article.bundle-card.preview-package-card{margin:0!important;min-width:0;width:auto!important}
.preview-package-card .preview-package-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* Account actions remain icons after language changes and asynchronous renders. */
@media(min-width:851px){
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls{min-width:0;overflow:hidden}
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls button{font-size:0!important;line-height:0;overflow:hidden;white-space:nowrap}
 body.signed>.sidebar>.preview-sidebar-account>.cloud-controls .preview-account-email{min-width:0;width:100%}
 body.signed.preview-sidebar-collapsed>.sidebar>.preview-sidebar-account>.cloud-controls{visibility:hidden}
}
