/* 订单数据页：沿用工作台玻璃风格 */
.po-page {
  --po-ink: #263d55;
  --po-blue: #3989ed;
  --po-muted: #7c91a6;
  --po-line: rgba(38, 61, 85, 0.12);
  --po-card: rgba(255, 255, 255, 0.72);
  padding: 8px 24px 40px;
  color: var(--po-ink);
  max-width: 1280px;
}
.po-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; margin-bottom: 16px; }
.po-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.po-rule {
  margin: 0;
  color: var(--po-muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 720px;
}
.po-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--po-card);
  border: 1px solid var(--po-line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.po-field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.po-field label { font-size: 12px; color: var(--po-muted); }
.po-field input, .po-field select {
  height: 34px;
  border: 1px solid var(--po-line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--po-ink);
  background: #fff;
  font-size: 13px;
}
.po-field input:focus, .po-field select:focus {
  outline: none;
  border-color: var(--po-blue);
  box-shadow: 0 0 0 3px rgba(57, 137, 237, 0.15);
}
.po-actions { display: flex; gap: 8px; }
.po-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--po-blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.po-btn.ghost { background: #e8f1fb; color: var(--po-blue); }
.po-btn:disabled { opacity: 0.55; cursor: default; }
.po-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.po-card {
  background: var(--po-card);
  border: 1px solid var(--po-line);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.po-card h3 { margin: 0; font-size: 12px; color: var(--po-muted); font-weight: 500; }
.po-card .po-num { margin: 8px 0 0; font-size: 22px; font-weight: 700; color: var(--po-ink); }
.po-card .po-sub { margin: 4px 0 0; font-size: 12px; color: var(--po-muted); }
.po-card.is-main .po-num { color: var(--po-blue); }
.po-section {
  background: var(--po-card);
  border: 1px solid var(--po-line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}
.po-section h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.po-table-wrap { overflow: auto; }
.po-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.po-table th, .po-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--po-line);
  text-align: left;
  white-space: nowrap;
}
.po-table th { color: var(--po-muted); font-weight: 500; font-size: 12px; }
.po-table td.num, .po-table th.num { text-align: right; }
.po-table tbody tr { cursor: pointer; }
.po-table tbody tr:hover { background: rgba(57, 137, 237, 0.06); }
.po-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e8f1fb;
  color: var(--po-blue);
}
.po-tag.wdt { background: #e8f1fb; color: #2b6bc7; }
.po-tag.yzg { background: #f3e9ff; color: #6b4ca0; }
.po-tag.pj { background: #fff4e5; color: #b7791f; }
.po-tag.ok { background: #e7f6ee; color: #1f8a4c; }
.po-tag.no { background: #f6ecec; color: #a05050; }
.po-pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--po-muted); font-size: 13px; }
.po-empty, .po-error, .po-denied {
  padding: 40px 16px;
  text-align: center;
  color: var(--po-muted);
}
.po-denied { font-size: 15px; color: var(--po-ink); }
.po-drawer-mask {
  position: fixed; inset: 0;
  background: rgba(38, 61, 85, 0.28);
  z-index: 80;
  display: none;
}
.po-drawer-mask.open { display: block; }
.po-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 100%);
  background: #f7fbff;
  z-index: 81;
  transform: translateX(100%);
  transition: transform .2s ease;
  box-shadow: -8px 0 30px rgba(38, 61, 85, 0.16);
  overflow: auto;
  padding: 20px 20px 40px;
}
.po-drawer.open { transform: translateX(0); }
.po-drawer h2 { margin: 0 0 12px; font-size: 16px; }
.po-dl { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; font-size: 13px; }
.po-dl dt { color: var(--po-muted); }
.po-dl dd { margin: 0; word-break: break-all; }
.po-close {
  position: absolute; top: 14px; right: 14px;
  border: 0; background: transparent; color: var(--po-muted); cursor: pointer; font-size: 18px;
}
@media (max-width: 900px) {
  .po-page { padding: 8px 12px 32px; }
  .po-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .po-cards { grid-template-columns: 1fr; }
  .po-field { min-width: calc(50% - 8px); flex: 1; }
}

.po-field.po-goods-id-field { min-width: 180px; }
.po-goods {
  white-space: normal;
  min-width: 160px;
  max-width: 280px;
  line-height: 1.45;
}
.po-goods-name { display: block; color: var(--po-ink); }
.po-goods-id, .po-table td.po-gid {
  display: block;
  font-size: 12px;
  color: var(--po-muted);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  white-space: normal;
}
.po-table td.po-gid { display: table-cell; min-width: 120px; }
