/* Signed-in workspaces follow the compact sidebar, tab strip and table layout. */
body:has(.cc-sidebar) > header { position: sticky; top: 0; z-index: 4; }
.cc-head-links { display: flex; align-items: center; gap: 4px; }
.cc-head-links button, body:has(.cc-sidebar) #logout {
  color: var(--ink); font-size: 14px; background: transparent; border: 0; border-radius: 0;
  font-weight: 400; padding: 7px 10px;
}
.cc-head-links button:hover,body:has(.cc-sidebar) #logout:hover { color: var(--accent); background: #f2f7f6; }
main.workarea:has(.cc-sidebar) {
  margin: 0; padding: 0; width: 100%; max-width: none; display: grid;
  grid-template-columns: var(--rail-width) minmax(0,1fr); gap: 0; align-items: stretch;
  min-height: calc(100vh - var(--mast-height));
}
body:has(.cc-seller) { --rail-width: 184px; }
.cc-seller .cc-menu-head { padding-left: 13px; }
.cc-seller .cc-seller-nav button { gap: 8px; padding: 8px 11px; font-size: 14px; }
.cc-warehouse .cc-group nav button { padding-left: 35px; }
.cc-sidebar {
  color: var(--ink); background: white; border-right: 1px solid var(--line); align-self: stretch;
  min-width: 0; font-size: 14px;
}
.cc-menu-list {
  position: sticky; top: var(--mast-height); max-height: calc(100dvh - var(--mast-height)); overflow: auto; padding: 9px 10px 18px;
  scrollbar-width: thin; scrollbar-color: #626c7c var(--rail);
}
.cc-menu-head {
  padding: 13px 12px 10px; font-weight: 600; color: var(--muted);
}
.cc-sidebar button,.cc-sidebar summary {
  min-height: 39px; padding: 8px 12px; border-radius: 8px; border: 0; color: #46564d;
  line-height: 1.45; display: flex; align-items: center; gap: 11px; background: transparent;
  width: 100%; font-size: 14px; text-align: left; position: relative; cursor: pointer; font-weight: 400;
}
.cc-sidebar button[aria-current=page] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 650; }
.cc-sidebar button:hover,.cc-sidebar summary:hover { color: var(--ink); background: #f1f5ef; }
.cc-sidebar button[aria-current=page]:hover { background: #def1d3; }
.cc-sidebar summary { list-style: none; }
.cc-sidebar summary::-webkit-details-marker { display: none; }
.cc-sidebar summary i {
  height: 7px; width: 7px; margin-left: auto; border: solid #b8c0ca; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.cc-group[open] > summary i { transform: translateY(2px) rotate(225deg); }
.cc-group[open] > summary { background-color: #f4f7f2; }
.cc-group nav { background: white; }
.cc-group nav button { padding-left: 44px; min-height: 35px; }
.cc-icon {
  width: 16px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  font: 17px/1 "Segoe UI Symbol","Microsoft YaHei",sans-serif; color: currentColor;
}
.cc-menu-label,.cc-menu-toggle { display: none; }
.cc-sidebar :focus-visible { outline-color: var(--accent); outline-offset: -3px; }
main.workarea:has(.cc-sidebar) #desk {
  min-width: 0; padding: 22px clamp(16px,2.4vw,38px) 40px; overflow-wrap: anywhere;
}
.cc-location {
  margin: 0 0 12px; padding: 3px 0; color: var(--muted); font-size: 14px;
  display: flex; align-items: center; gap: 9px;
}
.cc-location strong { font-weight: 500; color: var(--ink); }
.cc-home { display: grid; gap: 14px; }
.cc-account-balance { margin: 0; padding: 13px 15px; font-size: 27px; font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.cc-shipping-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 15px; }
.cc-shipping-row > div { min-width: 0; max-width: 100%; }
.cc-shipping-row [role=status] { color: var(--muted); font-size: 14px; }
.cc-home-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.cc-panel {
  min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.cc-panel-title {
  display: flex; align-items: center; justify-content: space-between; min-height: 42px;
  padding: 8px 15px; border-bottom: 1px solid var(--line); gap: 8px;
}
.cc-panel-title h2 {
  margin: 0; border-left: 3px solid var(--accent); padding-left: 9px;
  font-size: 16px; font-weight: 600; line-height: 1.15;
}
.cc-panel-title button,.cc-notices button {
  background: transparent; border: 0; color: var(--accent); font-size: 14px; padding: 3px 0; font-weight: 400;
}
.cc-panel-title button:hover,.cc-notices button:hover { text-decoration: underline; }
.cc-metrics {
  padding: 13px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px;
}
body:has(.cc-warehouse) .cc-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cc-metric {
  padding: 12px 14px 10px; display: grid; gap: 8px; text-align: left; border: 1px solid #e8edef;
  border-radius: 10px; color: var(--ink); background: #f7f9f7; font-weight: 400;
}
button.cc-metric:hover { background: #edf6f5; border-color: #aacfc9; }
.cc-metric span { font-size: 14px; color: #495964; }
.cc-metric strong { font-size: 27px; color: var(--accent-ink); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cc-panel .cc-tablewrap { padding: 10px 13px 13px; overflow-x: auto; }
.cc-tablewrap th,.cc-tablewrap td { border: 1px solid var(--line); }
.cc-tablewrap th { font-weight: 500; color: #53616a; background: #f5f6f7; }
.cc-tablewrap th,.cc-tablewrap td { padding: 8px 10px; font-size: 14px; }
.cc-tablewrap td { max-width: 34rem; word-break: break-word; white-space: normal; }
.cc-tablewrap .cc-no-rows,.cc-no-news { color: var(--muted); text-align: center; padding: 23px 12px; font-size: 14px; }
.cc-notices { list-style: none; margin: 0; padding: 6px 14px; }
.cc-notices li { padding: 6px 0; border-bottom: 1px solid #edf0f1; }
.cc-notices li:last-child { border: 0; }
.cc-notices button { text-align: left; color: #374b5a; }
.cc-notice-content { white-space: pre-wrap; line-height: 1.8; margin: 0; }
.cc-loading { margin: 16px; color: var(--muted); }
.cc-admin-search { margin: 12px 0; }
.cc-admin-search select { width: auto; min-width: 112px; padding-top: 6px; padding-bottom: 6px; }
.order-query { min-width: 0; padding: 12px 0 6px; }
.order-query .order-query-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(168px,100%),1fr)); gap: 9px 13px; }
.order-query-fields .field { gap: 4px; font-size: 14px; font-weight: 500; }
.order-query-fields input:not([type=checkbox]),.order-query-fields select { padding: 5px 10px; font-size: 14px; }
.order-query-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.order-queues { display: flex; align-items: stretch; overflow-x: auto; }
.order-queues button { white-space: nowrap; flex-shrink: 0; }
/* Shared operation pages use the same scale as the dashboards. */
body:has(.cc-sidebar) #desk h1 { font-size: clamp(26px,2.65vw,39px); letter-spacing: -.05em; }
body:has(.cc-sidebar) #desk .sub { font-size: 14px; margin-top: 4px; color: var(--muted); }
body:has(.cc-sidebar) #desk .panel {
  border-radius: 14px; border: 1px solid var(--line); margin-top: 14px; padding: clamp(12px,1.4vw,20px);
}
body:has(.cc-sidebar) #desk .panel h2 { font-size: 16px; }
body:has(.cc-sidebar) #desk .page-head { padding: 3px 0 8px; }
body:has(.cc-sidebar) #desk .page-head .actions { margin: 0; }
body:has(.cc-sidebar) #desk .opbar { margin: 10px 0; gap: 6px; }
body:has(.cc-sidebar) #desk :where(.opbar,.actions,.search,.tablewrap,.pager) button,
body:has(.cc-sidebar) #desk .page-head button { border-radius: var(--control-radius); padding: 5px 10px; font-weight: 500; }
body:has(.cc-sidebar) #desk .filters { margin: 12px 0; }
body:has(.cc-sidebar) #desk .filters button { padding: 8px 11px; font-weight: 400; }
body:has(.cc-sidebar) #desk .filters .count { font-size: 13px; }
body:has(.cc-sidebar) #desk th { background: #f3f5f5; }
body:has(.cc-sidebar) #desk .tablewrap td,body:has(.cc-sidebar) #desk .tablewrap th { font-size: 14px; padding: 8px 10px; }
body:has(.cc-sidebar) #desk .pager { padding-top: 8px; }
body:has(.cc-sidebar) #desk .scan { background: var(--accent-soft); color: #294b47; border: 1px solid #ccdeda; border-radius: 0; padding: 12px 14px; margin: 12px 0; }
body:has(.cc-sidebar) #desk .scan label { font-size: 16px; }
body:has(.cc-sidebar) dialog .dialog-head { padding: 10px 15px; background-color: #f4f6f6; }
body:has(.cc-sidebar) dialog h2 { font-size: 18px; }
dialog.manual-dialog { width: min(1100px,calc(100% - 32px)); }
.manual-sheet { display: grid; gap: 15px; min-width: 0; }
.manual-section { min-width: 0; }
.manual-section h3 { border-left: 3px solid var(--accent); padding-left: 9px; margin: 3px 0 12px; }
.manual-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 10px 16px; }
.manual-table { max-width: 100%; }
table.manual-table { display: block; overflow-x: auto; }
.manual-table:not(table) { overflow-x: auto; }
.manual-table td,.manual-table th { white-space: normal; }
.manual-table input:not([type=checkbox]):not([type=radio]),.manual-table select { min-width: 100px; }
.manual-table input[type=number] { min-width: 65px; }
@media(max-width:1100px) {
  .cc-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  main.workarea:has(.cc-sidebar) { display: block; min-height: calc(100vh - 45px); }
  body:has(.cc-sidebar) .mast { flex-wrap: wrap; }
  body:has(.cc-sidebar) #utilities { width: 100%; order: 2; min-width: 0; }
  .cc-head-links { overflow: auto; white-space: nowrap; border-top: 1px solid var(--line); }
  .cc-head-links button { flex: 0 0 auto; padding: 5px 7px; }
  .cc-sidebar { position: relative; }
  .cc-menu-label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink); font-weight: 550; }
  .cc-menu-label span { font-size: 14px; font-weight: 400; color: var(--muted); }
  .cc-menu-toggle {
    display: block; appearance: none; opacity: 0; margin: 0; position: absolute; inset: 0 0 auto;
    height: 42px; width: 100%; cursor: pointer;
  }
  .cc-menu-label:after { content: '⌄'; margin-left: auto; }
  .cc-sidebar:has(.cc-menu-toggle:focus-visible) .cc-menu-label { outline: 2px solid white; outline-offset: -3px; }
  .cc-sidebar .cc-menu-list { position: static; display: none; max-height: 60vh; }
  .cc-menu-toggle:checked + .cc-menu-list { display: block; }
  .cc-menu-list .cc-menu-head { display: none; }
  main.workarea:has(.cc-sidebar) #desk { padding: 10px 9px 25px; }
  .cc-location { margin: -10px -9px 10px; padding: 10px; }
  .cc-home,.cc-home-split { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .cc-metrics,body:has(.cc-warehouse) .cc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 9px; }
  .cc-metric { padding: 9px 10px; }
  body:has(.cc-sidebar) #desk .panel { padding: 10px; }
  body:has(.cc-sidebar) #desk .tablewrap { max-width: 100%; }
  body:has(.cc-sidebar) #desk .page-head { padding: 10px; }
}
@media print {
  body:has(.cc-sidebar) > header,.cc-sidebar,.cc-head-links,.cc-location { display: none; }
  main.workarea:has(.cc-sidebar) { display: block; }
}

.cc-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.cc-icon svg { display: block; width: 100%; height: 100%; }
.cc-warehouse .cc-group nav button { padding-left: 27px; gap: 8px; }
.badge { border-radius: 6px; font-variant-numeric: tabular-nums; }
.badge.pending { background: #edf1ff; color: #344c89; }
.badge.shelved,.badge.cancelled,.badge.platform_archived { background: #f2f2f2; color: #535c64; }
.balance-amount,.ledger-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-amount.credit { color: #116449; }
.ledger-amount.debit { color: #8c4422; }

.order-lookup { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.order-lookup .field { flex: 1 1 260px; max-width: 510px; }
.order-lookup .actions { margin: 0; }
.order-lookup input { min-height: 39px; }
.order-filter-extra,.scan-options { font-size: 14px; }
.order-filter-extra summary,.scan-options summary { color: var(--accent-ink); cursor: pointer; width: fit-content; padding: 7px 0; }
.order-filter-extra .fields { padding: 7px 0; }
.seller-orders .order-query .error:empty { display: none; }
.seller-orders [data-tools] .opbar { align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.order-selection-tools { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 2px; }
@media (max-width: 600px) {
  .seller-orders [data-tools] .opbar,.order-selection-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  .order-selection-tools { grid-column: 1 / -1; }
}
.mobile-check-label,.card-more { display: none; }

.receiving-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(230px,.8fr); gap: clamp(14px,3vw,40px); max-width: 1020px; padding: 8px 0; }
.receiving-station,.scan-history { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: clamp(14px,2vw,24px); align-self: start; }
.receiving-station { border-top: 3px solid var(--accent); display: grid; gap: 14px; }
.receiving-station .primary { justify-self: start; }
.station-head,.handover-summary,.scan-history li,.packing-check li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.station-head span,.scan-history li span,.handover-summary span,.packing-check small { color: var(--muted); font-size: 14px; }
.receiving-station [name=code] { font-size: 19px; padding: 11px 12px; }
.receiving-station [data-scan-feedback]:empty { display: none; }
.receiving-station [data-scan-feedback] { border-radius: 5px; padding: 10px 12px; background: #edf2f4; overflow-wrap: anywhere; }
.receiving-station [data-kind=ok] { background: #e2f4ec; color: #165f40; }
.receiving-station [data-kind=duplicate] { background: #fff2d8; color: #734600; }
.receiving-station [data-kind=error] { background: #fbe9e8; color: #842d28; }
.scan-options { border-top: 1px solid var(--line); padding-top: 4px; }
.scan-options .field { margin: 8px 0; }
.scan-history ul,.packing-check ul { list-style: none; padding: 0; margin: 7px 0 0; }
.scan-history li,.packing-check li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.scan-history li:last-child,.packing-check li:last-child { border: 0; }
.scan-history strong,.packing-check strong { overflow-wrap: anywhere; }
.scan-history li span { text-align: right; }
.packing-check { margin: 17px 0 0; border: 1px solid var(--line); border-radius: 7px; padding: 14px; }
.packing-check small { display: block; }
.packing-goods { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.packing-goods ul { flex: 1 1 170px; min-width: 0; }
.packing-product-image { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.packing-product-image img { width: 86px; height: 86px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.packing-check b { flex: none; }
.handover-summary { background: var(--accent-soft); padding: 12px 15px; margin-top: 14px; border-radius: 6px; }

@media (max-width: 760px) {
  .receiving-layout { grid-template-columns: minmax(0,1fr); }
  .receiving-station .primary { width: 100%; }
  .seller-orders > .block { margin-top: 8px; padding-top: 6px; font-size: 14px; }
  .seller-orders .order-lookup { gap: 6px; }
  .seller-orders .order-lookup .field { max-width: none; }
  .seller-orders .order-query { padding: 0; }
  .seller-orders #results .tablewrap { overflow: visible; }
  .seller-orders #results table,.seller-orders #results tbody { display: block; }
  .seller-orders #results thead th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .seller-orders #results thead:has(#check-all),.seller-orders #results thead:has(#check-all) tr { display: block; }
  .seller-orders #results thead th:has(#check-all) { position: static; display: flex; width: auto; height: auto; clip-path: none; align-items: center; gap: 6px; padding: 5px; background: transparent; }
  .mobile-check-label { display: inline; font-size: 14px; }
  .seller-orders #results tbody tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 5px 8px; border: 1px solid var(--line); border-radius: 7px; padding: 12px; margin-top: 8px; }
  body .seller-orders#desk #results tbody td { display: none; grid-column: 1/-1; white-space: normal; border: 0; padding: 0; max-width: none; overflow: visible; }
  body .seller-orders#desk #results .card-expanded td { display: block; }
  body .seller-orders#desk #results [data-column="平台订单号 / 商品"] { display: block; grid-area: 1/1; }
  body .seller-orders#desk #results tr:has(.pick) [data-column="平台订单号 / 商品"] { padding-left: 25px; }
  body .seller-orders#desk #results [data-column="状态"] { display: block; grid-area: 1/2; text-align: right; }
  body .seller-orders#desk #results [data-column=""] { display: none; }
  body .seller-orders#desk #results td:has(.pick) { display: block; position: absolute; top: 13px; left: 10px; }
  body .seller-orders#desk #results td:is([data-column="采购快递 / 国际条码"],[data-column="操作"],.cc-no-rows) { display: block; }
  .seller-orders #results td[data-column="采购快递 / 国际条码"] { grid-row: 2; }
  .seller-orders #results td[data-column="采购快递 / 国际条码"]::before { content: "国内来件 / 国际条码"; display: block; color: var(--muted); font-size: 12px; }
  .seller-orders #results .card-expanded td[data-column]:not([data-column=""]):not([data-column="状态"]):not([data-column="平台订单号 / 商品"]):not([data-column="操作"])::before { content: attr(data-column); display: block; color: var(--muted); font-size: 12px; }
  .seller-orders #results [data-column="操作"] { border-top: 1px solid var(--line); }
  .seller-orders #results [data-column="操作"] .card-more { display: inline-block; margin-left: 8px; }
  body .seller-orders#desk #results .link { padding: 3px 0; }
  .seller-orders #results td[data-column="平台订单号 / 商品"] .link { font-weight: 650; white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .seller-orders .pager { flex-wrap: wrap; }
}

.seller-orders .order-query { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; column-gap: 16px; }
.seller-orders .order-query:has(.order-filter-extra[open]) { grid-template-columns: 1fr; }
.seller-orders .order-query .error { grid-column: 1/-1; }
@media (max-width: 760px) {
  .seller-orders .order-query { display: grid; gap: 6px; }
  .seller-orders .order-lookup { display: contents; }
  .seller-orders .order-lookup .field { grid-column: 1/-1; }
  .seller-orders .order-lookup .actions { grid-column: 1; }
  .seller-orders .order-filter-extra:not([open]) { grid-column: 2; }
  .seller-orders .order-filter-extra[open] { grid-column: 1/-1; }
  body .seller-orders#desk #results [data-column="平台 / 店铺"] { display: block; color: var(--muted); font-size: 13px; }
  .seller-orders #results [data-column="平台 / 店铺"] small { display: inline; }
  .seller-orders #results [data-column="平台 / 店铺"] small::before { content: " / "; }
  .seller-orders #results [data-column="平台订单号 / 商品"] .link { font-size: 16px; }
}

/* Shared order and receiving workspaces. */
.work-context{display:block;margin-bottom:5px;font-size:12px;color:var(--muted)}
.badge{font-size:12px}.badge:before{content:"";display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%;vertical-align:middle;margin-right:5px}
.badge.pending{background:#e9effc;color:#34538c}.badge.received{background:#fff1ce;color:#795212}.badge.packed{background:#f0eafb;color:#65409a}.badge.shipped{background:#e5f4e7;color:#226138}
#account>span{max-width:13em;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.seller-orders .order-queues{display:block;overflow:visible;margin:12px 0 0}
.order-stage-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:white;overflow:hidden}
.order-stage-cards button{min-width:0;display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:0;padding:13px clamp(10px,1.6vw,24px);color:var(--muted)}
.order-stage-cards button+button{border-left:1px solid var(--line)}
.order-stage-cards button[aria-pressed=true],.order-stage-cards button:hover{background:var(--accent-soft);color:var(--accent-ink)}
.order-stage-cards .cc-icon{background:#f1f5ef;color:var(--ink);border-radius:10px;flex:0 0 38px;width:38px;height:38px;padding:9px}
.order-stage-cards .count{display:block;margin:3px 0 0;font:650 27px/1.1 Consolas,monospace;color:var(--ink)}
.order-other-queues{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:9px 0 2px}
.order-other-queues button{border:1px solid transparent;color:var(--muted);background:transparent}
.order-other-queues button.active{border-color:var(--line);background:white;color:var(--ink);font-weight:650}
.order-queues button:focus-visible{outline-offset:-3px}
.order-layout{min-width:0}
body:has(.cc-sidebar) #desk .order-layout>.panel{margin-top:9px;min-width:0}
.seller-orders .quick-market{width:auto;min-width:94px;max-width:150px;padding:8px 30px 8px 10px}
.order-lookup .field{max-width:none;flex-basis:215px}
.trace-panel,.track-action{display:none}
.parcel-facts{border-top:1px solid var(--line);margin:14px 0 0;padding-top:12px}.parcel-facts dt{font-size:12px;color:var(--muted)}.parcel-facts dd{margin:2px 0 9px;font:500 14px/1.5 Consolas,"Microsoft YaHei UI",sans-serif;overflow-wrap:anywhere}
.order-timeline{list-style:none;padding:0;margin:12px 0 0}
.order-timeline li{position:relative;padding:0 0 12px 17px}.order-timeline li:last-child{padding-bottom:0}
.order-timeline li:before{position:absolute;content:"";width:8px;height:8px;border-radius:50%;left:0;top:6px;background:#bad0ad}
.order-timeline li:first-child:before{background:var(--brand);box-shadow:0 0 0 2px #e1f4d6}
.order-timeline li:not(:last-child):after{position:absolute;content:"";border-left:1px solid var(--line);left:3px;top:16px;bottom:0}
.order-timeline strong{font-size:13px}.order-timeline small{display:block;font-size:12px}
.receiving-layout{max-width:1250px;grid-template-columns:minmax(0,1.25fr) minmax(260px,.85fr);gap:18px}
body:has(.cc-sidebar) #desk .panel:has(.receiving-layout){background:transparent;border:0;padding:0}
.receiving-station,.scan-history{background:white;border-radius:14px}
.receiving-station{border-top:1px solid var(--line)}
.receiving-station [name=code]{background:#fbfff8;border:2px solid #77ac55;padding:12px;font-size:20px}
@media(min-width:1150px){
 .order-layout.with-trace{display:grid;grid-template-columns:minmax(0,1fr) minmax(248px,.36fr);gap:16px;align-items:start}
 .with-trace .trace-panel{display:block;min-width:0;background:white;border:1px solid var(--line);border-radius:14px;margin-top:9px;padding:17px}
 .trace-panel h2{font-size:17px;margin-bottom:13px}.trace-panel h3{font-size:14px;margin-top:16px}
 .with-trace tr.is-tracked{background:#f2faed;box-shadow:inset 3px 0 var(--brand)}
 .with-trace .track-action{display:inline-block}
 .with-trace #results :is(th,td):is([data-column="服务 / 仓库"],[data-column="录单时间"]){display:none}
 .with-trace #results table{table-layout:fixed;white-space:normal}
 .with-trace #results :is(td,th):first-child{width:28%}
 .with-trace #results :is(td,th):last-child{width:84px}
 body:has(.cc-sidebar) #desk .with-trace #results td:last-child .link{white-space:nowrap;padding:3px 1px}
 .with-trace #results tr.is-tracked td:first-child>.link{font-weight:650}
 .with-trace #results td{overflow-wrap:anywhere}.with-trace #results .badge{white-space:normal}
}
@media(max-width:760px){
 .order-stage-cards button{display:block;text-align:center;font-size:12px;padding:8px 2px}.order-stage-cards .cc-icon{display:none}
 .order-stage-cards .count{font-size:22px}.order-other-queues{padding-block:4px 0}
 .order-other-queues button{padding:6px 8px}
 .seller-orders .quick-market{grid-column:2;grid-row:1;min-width:92px;width:98px;max-width:100%;padding-right:23px;font-size:13px}
 .seller-orders .order-query .order-lookup .field{grid-column:1;grid-row:1}.seller-orders .order-lookup .actions{grid-row:2}
 .receiving-layout{grid-template-columns:minmax(0,1fr)}
 .cc-sidebar:has(.cc-menu-toggle:focus-visible) .cc-menu-label{outline-color:var(--accent)}
}

.packing-picker {display:grid;gap:12px}
.packing-picker fieldset {margin:0;padding:8px 12px 12px;border:1px solid var(--line,#d9e2dd);border-radius:8px;min-width:0}
.packing-picker legend {padding:0 5px;font-weight:600}
.packing-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:6px}
.packing-options label {display:flex;align-items:center;gap:7px;padding:7px;border:1px solid transparent;border-radius:6px;cursor:pointer}
.packing-options label:has(input:checked) {background:#eef7e9;border-color:#96b485}
.packing-options input {width:1rem;height:1rem;min-height:0;flex:none;margin:0;accent-color:#447638}
.packing-options small {margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.packing-picker [data-service-total] {text-align:right}

.work-media > details { margin: .6rem 0; }
.work-media > details > summary { cursor: pointer; }
.media-options, .media-grid { display: flex; flex-wrap: wrap; gap: .8rem; margin: .75rem 0; }
.media-options { align-items: center; }
.media-options label, .work-media input[type=file] { max-width: 100%; }
.media-options input[type=checkbox] { width: auto; }
.media-grid figure { margin: 0; width: min(100%, 15rem); }
.media-grid img, .media-grid video { width: 100%; height: 9rem; object-fit: contain; border-radius: .5rem; background: var(--line, #eff2f1); }
.media-grid figcaption { font-size: .875rem; overflow-wrap: anywhere; }
.work-media [data-media-jobs]:empty, .media-camera { display: none; }
@media (pointer: coarse) {
  .media-camera { display: flex; flex-wrap: wrap; gap: .5rem; }
  .media-camera label { min-width: 0; max-width: 100%; }
}

body[data-customer-view] #account {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body[data-customer-view] #account strong {color:#385f1b}
.link.catalog-delete-link,.link.catalog-delete-link:hover {color:#ac3131}
dialog:has(.catalog-delete-form) {width:min(440px,calc(100% - 28px));border-radius:16px}
.catalog-delete-form p {margin:0 0 12px}
.catalog-delete-item {padding:13px 15px;background:#f4f6f4;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.catalog-delete-item dl {display:grid;grid-template-columns:auto 1fr;gap:4px 16px;margin:8px 0 0}
.catalog-delete-item dt,.catalog-delete-form .hint {color:var(--muted)}
.catalog-delete-item dd {margin:0}
.catalog-delete-form .hint {margin-top:12px}
.catalog-delete-form .actions {justify-content:flex-end}
.catalog-delete-form .catalog-danger {background:#ad3232;color:white;border-color:#ad3232;font-weight:600}
.catalog-delete-form .catalog-danger:hover {background:#922929}
body[data-customer-view] [data-tools],body[data-customer-view] [data-complete],body[data-customer-view] #manual,body[data-customer-view] #shop-order {display:none}
