﻿/* ============================================================
 * orders.css — 订单管理（胶囊筛选 + 批量栏 + 密集表格）
 * ============================================================ */

/* ---------------- 胶囊筛选 ---------------- */
.chip-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chip-label {
  width: 68px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--txt-3);
}
.chip-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--txt-2);
  font-size: 12px;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--acc); color: var(--txt); }
.chip.active {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(59, 130, 246, .3);
}

/* ---------------- 搜索栏 ---------------- */
.search-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.search-bar input,
.search-bar select {
  padding: 8px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--txt);
  font-size: 12.5px;
  outline: none;
}
.search-bar input[type="search"] { width: 240px; }
.search-bar input[type="number"] { width: 110px; }
.search-bar input[type="date"] { width: 145px; }
.search-bar input:focus,
.search-bar select:focus { border-color: var(--acc); }
.mini-select {
  padding: 7px 11px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--txt);
  font-size: 12px;
  outline: none;
  max-width: 190px;
}

/* ---------------- 批量操作栏 ---------------- */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  margin-bottom: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--txt-2);
}
.bulk-bar b { color: var(--acc); font-size: 13px; }

/* ---------------- 订单表格 ---------------- */
.order-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.order-table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--txt-3);
  padding: 11px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.order-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.order-table tbody tr { transition: background .15s; }
.order-table tbody tr:hover { background: var(--bg-3); }
.order-table tbody tr:last-child td { border-bottom: none; }

.ord-src { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.ord-txn {
  font-size: 10.5px;
  color: var(--txt-3);
  margin-bottom: 5px;
  word-break: break-all;
}
.ord-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.ord-buyer { font-weight: 500; margin-bottom: 2px; }
.ord-acc { font-weight: 500; margin-bottom: 2px; }

.tiny { font-size: 11px; }

/* 分页在底部时留白 */
.pager { padding: 14px 0 4px; }

/* 付款链接地址栏 */
.url-field {
  width: 100%;
  padding: 5px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--txt-2);
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  outline: none;
  box-sizing: border-box;
}
.url-field:focus { border-color: var(--acc); }
.link-url-actions {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.link-url-actions .pill-btn {
  padding: 3px 10px;
  font-size: 10.5px;
  text-decoration: none;
}

/* ============================================================
 * 财务规则卡片
 * ============================================================ */
.fin-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 1100px) {
  .fin-rule-grid { grid-template-columns: 1fr; }
}
.fin-rule-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 18px;
  transition: transform .16s, box-shadow .16s;
}
.fin-rule-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

/* ============================================================
 * 物流看板
 * ============================================================ */
.lb-bucket-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
@media (max-width: 1400px) { .lb-bucket-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 800px) { .lb-bucket-grid { grid-template-columns: repeat(3, 1fr); } }

.lb-bucket {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lb-bucket:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.lb-bucket.active { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(74,158,255,.18); }
.lb-bucket-label { font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.lb-bucket-num { font-size: 21px; font-weight: 700; letter-spacing: -.6px; color: var(--txt); line-height: 1.15; }
.lb-bucket-pct { font-size: 10.5px; color: var(--txt-3); margin-top: 2px; }

/* ============================================================
 * 子站检查报告
 * ============================================================ */
.sh-report {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--txt-2);
}
.sh-report h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  margin: 4px 0 10px;
}
.sh-report h3 {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--txt);
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.sh-report h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--acc);
  margin: 12px 0 6px;
}
.sh-report p { margin: 4px 0; }
.sh-report li {
  list-style: none;
  padding-left: 14px;
  position: relative;
  margin: 3px 0;
}
.sh-report li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--txt-3);
}
.sh-report code {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.sh-md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 11.5px;
}
.sh-md-table th {
  background: var(--bg-3);
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: var(--txt);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.sh-md-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--txt-2);
}

/* ============================================================
 * 订单归属链
 * ============================================================ */
.oa-chain {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.oa-node {
  display: inline-flex;
  flex-direction: column;
  padding: 3px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.3;
}
.oa-node b {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt);
}
.oa-node em {
  font-size: 9.5px;
  font-style: normal;
  color: var(--txt-3);
}
.oa-arrow {
  color: var(--acc);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
 * 子站设置网格
 * ============================================================ */
.wps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}
.wps-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 1200px) { .wps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .wps-grid { grid-template-columns: 1fr; } }

.wps-grid .field label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--txt-2);
  margin-bottom: 6px;
}
.wps-grid .field input {
  width: 100%;
  padding: 8px 11px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--txt);
  font-size: 12.5px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.wps-grid .field input:focus { border-color: var(--acc); }
.wps-grid .field input:disabled { cursor: not-allowed; }

/* ============================================================
 * 通知中心
 * ============================================================ */
.nc-group-head {
  cursor: pointer;
  user-select: none;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.nc-group-head:hover .nc-caret { color: var(--acc); }
.nc-caret {
  color: var(--txt-3);
  font-size: 11px;
  transition: color .15s;
}
.nc-group-body { padding-top: 4px; }

.nc-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: background .13s;
}
.nc-row:last-child { border-bottom: none; }
.nc-row:hover { background: var(--bg-3); }

.nc-icon {
  font-size: 15px;
  line-height: 1.4;
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}
.nc-main { flex: 1; min-width: 0; }
.nc-title {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--txt);
  line-height: 1.5;
  margin-bottom: 2px;
}
.nc-desc {
  font-size: 11px;
  color: var(--txt-3);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nc-time {
  font-size: 10.5px;
  color: var(--txt-3);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}
