/* 2026-11-04 管理端：配货单 / 配送单 / 报价单合并为一张不含金额的报价单 */
.slip-unified{padding-bottom:20px}
.slip-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px;padding:0 0 13px;border-bottom:1px dashed var(--line)}
.slip-meta>span{font-family:var(--font-ui);font-size:10px;color:var(--muted);letter-spacing:.12em}
.slip-meta>strong{font-family:var(--font-ui);font-size:13px;font-weight:500;color:var(--pine);letter-spacing:.04em;text-align:right}
.slip-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 0 7px;border-top:1px dashed var(--line-strong)}
.slip-summary>small{margin:0}
.slip-summary>span{font-family:var(--font-num);font-size:12px;color:var(--muted);letter-spacing:.04em}
.slip-unified .slip-items{border-top:0}
.slip-unified .slip-items>div{padding:10px 0}
.slip-unified .slip-items>div>strong{font-family:var(--font-num);font-size:19px;color:var(--pine);font-weight:500;min-width:52px;text-align:right}
.slip-unified .slip-items>div>span:first-child{min-width:0}
.slip-unified .slip-items small{display:inline;margin:0 0 0 4px;letter-spacing:.06em}
.slip-notes{padding-top:16px;border-top:1px dashed var(--line-strong);margin-top:2px}
.slip-notes>small{margin-bottom:2px}
.slip-note-line{display:grid;gap:3px;padding:8px 0;border-bottom:1px dashed var(--line)}
.slip-note-line:last-child{border-bottom:0;padding-bottom:0}
.slip-note-line>b{font-family:var(--font-ui);font-size:10px;font-weight:500;color:var(--muted);letter-spacing:.12em}
.slip-note-line>p{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.slip-unified footer{margin-top:12px}
@media (max-width:640px){
  .slip-unified{padding:18px}
  .slip-meta>strong{font-size:12px}
  .slip-unified .slip-items>div>strong{font-size:18px;min-width:46px}
}

/* ---------- 订单管理页：减法 ---------- */
/* 统计卡与筛选重复，只保留一行状态筛选 */
.staff-shell:has(.status-filters) .stats{display:none}
/* 顶部静态说明条隐藏；带“重试”按钮的错误提示仍保留 */
.staff-shell:has(.status-filters)> .notice:not(:has(button)){display:none}
/* 状态筛选已足够，隐藏重复的下拉筛选 */
.staff-shell:has(.status-filters) .toolbar select{display:none}
.staff-shell:has(.status-filters) .status-filters{
  margin:8px 0 10px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
  scrollbar-width:none;gap:6px;padding-bottom:2px;
}
.staff-shell:has(.status-filters) .status-filters::-webkit-scrollbar{display:none}
.staff-shell:has(.status-filters) .status-filters button{
  flex:0 0 auto;min-height:32px;padding:5px 11px;font-size:12px;
}
.staff-shell:has(.status-filters) .status-filters b{font-size:11px;margin-left:4px}
.staff-shell:has(.status-filters) .toolbar{gap:8px;margin:0 0 10px}
.staff-shell:has(.status-filters) .toolbar input{min-height:38px;font-size:13px}
.staff-shell:has(.status-filters) .toolbar button{min-height:38px;font-size:12px}
.staff-shell:has(.status-filters)> .top{margin:12px 0 2px}
.staff-shell:has(.status-filters)> .top h1{font-size:26px;margin:0}

/* ---------- 订单卡：五段式网格 ---------- */
.staff-shell .panel.order.admin-order{
  display:grid;
  grid-template-columns:190px minmax(0,1fr) 300px;
  column-gap:20px;row-gap:0;align-items:start;
  padding:14px 16px 13px;
  box-shadow:inset 3px 0 0 var(--line);
}
.admin-order:has(.status-0){box-shadow:inset 3px 0 0 #c9a45b}
.admin-order:has(.status-1){box-shadow:inset 3px 0 0 var(--leaf)}
.admin-order:has(.status-2){box-shadow:inset 3px 0 0 #3d6a66}
.admin-order:has(.status-3){box-shadow:inset 3px 0 0 #4a6136}

/* 头部：订单号 + 状态 + 金额，只保留一行 */
.staff-shell .admin-order> .top{
  grid-column:1/-1;grid-row:1;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0;padding:0 0 8px;border-bottom:1px solid var(--line);
}
.staff-shell .admin-order> .top>div:first-child{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;
}
.staff-shell .admin-order> .top>div:first-child>br{display:none}
.staff-shell .admin-order> .top>div:first-child>strong{
  display:inline;margin:0;font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.06em;
}
.staff-shell .admin-order> .top>div:last-child{display:flex;align-items:baseline;gap:8px;flex:none}
.staff-shell .admin-order> .top>div:last-child>br{display:none}
.staff-shell .admin-order> .top>div:last-child small{display:none}
.staff-shell .admin-order .price{font-size:19px;line-height:1;color:var(--pine)}
.staff-shell .admin-order .price::before{
  content:"合计 ";font-family:var(--font-ui);font-size:10px;font-weight:400;
  color:var(--muted);letter-spacing:.08em;
}
.staff-shell .admin-order .tag,
.staff-shell .admin-order .fulfil-tag{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  height:22px;margin:0;padding:0 8px;border-radius:999px;
  font-family:var(--font-ui);font-size:11px;font-weight:500;line-height:20px;letter-spacing:.06em;
}

/* 第 2 行：时间 / 商品 / 地址，三列严格对齐 */
.staff-shell .admin-order> .order-time{
  grid-column:1;grid-row:2;display:block;margin:0;padding:0;white-space:normal;
}
.staff-shell .admin-order .order-time small{
  display:block;margin:0 0 3px;font-size:10.5px;color:var(--muted);letter-spacing:.1em;
}
.staff-shell .admin-order .order-time strong{
  display:block;font-size:18px;line-height:1.3;font-weight:500;white-space:normal;
}
.staff-shell .admin-order .order-time strong span{
  display:block;margin:2px 0 0;font-size:14px;color:var(--ink-soft);
}
.staff-shell .admin-order> .items{
  grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:0;min-width:0;
  margin:0;padding:0 0 0 16px;border:0;border-left:1px solid var(--line);background:0 0;
}
.staff-shell .admin-order> .items::before{
  content:"商品";margin-bottom:3px;font-family:var(--font-ui);
  font-size:10.5px;color:var(--muted);letter-spacing:.1em;
}
.staff-shell .admin-order .items>div{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:baseline;
  margin:0;padding:3px 0;border:0;border-radius:0;background:0 0;
  font-size:14px;line-height:1.45;
}
.staff-shell .admin-order .items>div+div{border-top:1px dotted var(--line)}
.staff-shell .admin-order .items b{font-size:14px;font-weight:500;line-height:1.45}
.staff-shell .admin-order .items small{display:inline;margin:0 0 0 5px;font-size:11px;color:var(--muted)}
.staff-shell .admin-order .items strong{font-size:16px;color:var(--ink);min-width:auto;text-align:right}
.staff-shell .admin-order .items>div>span.muted{display:none}
.staff-shell .admin-order> .order-address{
  grid-column:3;grid-row:2;min-width:0;margin:0;padding:0 0 0 16px;border-left:1px solid var(--line);
}
.staff-shell .admin-order .order-address>small{
  display:block;margin:0 0 3px;font-size:10.5px;line-height:1.7;color:var(--muted);letter-spacing:.1em;
}
.staff-shell .admin-order .order-address>strong{
  display:block;font-size:16px;line-height:1.45;font-weight:500;color:var(--ink);overflow-wrap:anywhere;
}
.staff-shell .admin-order .order-address p{margin:3px 0 0;font-size:12.5px;color:var(--muted)}
.staff-shell .admin-order .order-address p a{
  display:inline;min-height:0;padding:0;align-items:baseline;color:var(--pine);
}
.staff-shell .admin-order .order-note{
  margin-top:7px;padding:5px 8px;font-size:12.5px;line-height:1.5;
  border-radius:0 2px 2px 0;background:#fbf3e3;border-left:2px solid var(--citrus);color:var(--ink-soft);
}

/* 删除列表里的次要信息：收款说明、配送确认、配送费/优惠、UU 过程状态 */
.staff-shell .admin-order> p.muted,
.staff-shell .admin-order> small.muted{display:none}
.staff-shell .admin-order .actions .tag.booked-reminder{
  height:auto;min-height:30px;padding:4px 11px;border:1px solid #c7d8c2;border-radius:4px;
  background:#eef4e9;color:var(--pine);font-size:12px;letter-spacing:.02em;
}

/* 操作区：下一步操作最突出，其余按钮降级 */
.staff-shell .admin-order> .actions{
  grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin:0;padding:0;border:0;
}
.staff-shell .admin-order> .actions:empty{display:none}
.staff-shell .admin-order> .actions:not(:empty){margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.staff-shell .admin-order> .actions:not(:empty)~ .actions:not(:empty){
  margin-top:4px;padding-top:0;border-top:0;
}
.staff-shell .admin-order> .actions button{
  flex:0 0 auto;width:auto;min-width:88px;min-height:36px;margin:0;padding:6px 14px;
  border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink-soft);
  font-family:var(--font-ui);font-size:13px;line-height:1.2;white-space:nowrap;box-shadow:none;
}
.staff-shell .admin-order> .actions button:hover{border-color:var(--pine);color:var(--pine)}
.staff-shell .admin-order> .actions button.primary{
  flex:1 1 180px;background:var(--pine);border-color:var(--pine);color:var(--cream);font-weight:500;
}
.staff-shell .admin-order> .actions button.primary:hover{
  background:var(--pine-deep);border-color:var(--pine-deep);color:var(--cream);
}
.staff-shell .admin-order> .actions button.danger{
  min-width:0;margin-left:auto;padding:0 2px;border:0;background:none;
  color:var(--muted);text-decoration:underline;font-size:12px;
}
.staff-shell .admin-order> .actions button.danger:hover{color:var(--persimmon-deep)}
.staff-shell .admin-order> .actions:not(:has(button.primary))>button:first-child{
  border-color:var(--pine);color:var(--pine);font-weight:500;
}
.staff-shell .admin-order .more-actions{
  position:relative;flex:0 0 auto;display:inline-block;padding:0;border:0;background:none;
}
.staff-shell .admin-order .more-actions:not([open])> :not(summary){display:none}
.staff-shell .admin-order .more-actions>summary{
  display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:0 14px;
  border:1px solid var(--line);border-radius:4px;background:transparent;
  font-family:var(--font-ui);font-size:13px;color:var(--ink-soft);list-style:none;cursor:pointer;
}
.staff-shell .admin-order .more-actions>summary::-webkit-details-marker{display:none}
.staff-shell .admin-order .more-actions[open]{display:flex;flex-wrap:wrap;gap:6px;width:100%;padding:8px;border:1px solid var(--line);border-radius:4px;background:var(--paper-2)}
.staff-shell .admin-order .more-actions[open]>summary{border-color:var(--pine);color:var(--pine);margin-right:2px}
.staff-shell .admin-order .more-actions>button{
  min-height:34px;margin:0;padding:5px 11px;border:1px solid var(--line);border-radius:4px;
  background:var(--cream);box-shadow:none;font-size:12.5px;color:var(--ink-soft);
}
.staff-shell .admin-order> .notice{grid-column:1/-1;margin:8px 0 0;padding:7px 10px;font-size:12px;line-height:1.5}

@media (max-width:860px){
  .staff-shell .panel.order.admin-order{
    grid-template-columns:1fr;padding:12px 13px 11px;column-gap:0;row-gap:0;
  }
  .staff-shell .admin-order> .top{grid-column:1;grid-row:auto}
  .staff-shell .admin-order> .order-time{grid-column:1;grid-row:auto;padding:8px 0 0}
  .staff-shell .admin-order .order-time strong{font-size:17px}
  .staff-shell .admin-order .order-time strong span{font-size:13px}
  .staff-shell .admin-order> .items{
    grid-column:1;grid-row:auto;margin-top:8px;padding:8px 0 0;border-left:0;border-top:1px solid var(--line);
  }
  .staff-shell .admin-order> .order-address{
    grid-column:1;grid-row:auto;margin-top:8px;padding:8px 0 0;border-left:0;border-top:1px solid var(--line);
  }
  .staff-shell .admin-order> .tag.booked-reminder{grid-column:1;grid-row:auto}
  .staff-shell .admin-order> .actions{grid-column:1;margin-top:8px;padding-top:8px}
  .staff-shell .admin-order> .actions:not(:empty)~ .actions:not(:empty){margin-top:4px;padding-top:0}
  .staff-shell .admin-order> .actions button{flex:1 1 auto;min-width:0}
  .staff-shell .admin-order> .actions button.primary{flex:1 1 100%}
  .staff-shell .admin-order> .actions button.danger{flex:0 0 auto;margin-left:0}
  .staff-shell:has(.status-filters)> .top h1{font-size:24px}
}

/* 订单页不再悬浮“随手记”，避免遮挡订单卡；财务页仍保留 */
.staff-shell:has(.status-filters) .finance-quick-note{display:none}
/* 列表下方的账号/备份工具条收紧，不与订单争夺注意力 */
.staff-shell:has(.status-filters) .toolbar.backup{margin-top:10px;padding-top:10px}
