#orders .order-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#orders .order-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  background: #fff;
  color: #536972;
  border: 1px solid #dce6e8;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
#orders .order-category[aria-pressed="true"] {
  background: #e6f4ef;
  border-color: #83b9a8;
  color: #086d5c;
  font-weight: 600;
}
#orders .order-category:hover { border-color: #83b9a8; }
#orders .order-category:focus-visible { outline: 2px solid #087f70; outline-offset: 3px; }
#orders .order-category-count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f0f4f5;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#orders .order-category[aria-pressed="true"] .order-category-count { background: #cce9df; }
#orders .order-category-hint, #orders .order-filter-summary {
  color: #6a7d86;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 14px;
}
#orders .order-filter-summary { margin: 0 0 8px; }
/* 订单分页控件：每页 8 条，与订单表列宽规则同一轮（2026-10-12）加入 */
#orders .order-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
#orders .order-pager .pager-info {
  color: #6a7d86;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#orders .order-pager button:disabled { opacity: .45; cursor: not-allowed; }
#orders .order-number { display: inline-block; max-width: 190px; overflow-wrap: anywhere; white-space: normal; font-size: 11px; }
#orders .table-wrap table { min-width: 1120px; }
#orders .table-wrap th:first-child, #orders .table-wrap td:first-child { min-width: 175px; }

/* 订单备案表：列宽按内容量固定分配（含"拉卡拉流水号"列）。
   旧版只有表格整体 min-width，其余列由浏览器自动分配，"上课地址/时间"被撑得很宽、
   "资金/扣费""状态"被挤成竖排，所以这里用 colgroup + fixed 布局锁死比例。 */
#orders .table-wrap table.orders-table {
  min-width: 1480px;
  table-layout: fixed;
}
#orders .orders-table col.c-order-no { width: 148px; }
#orders .orders-table col.c-teacher { width: 110px; }
#orders .orders-table col.c-parent { width: 128px; }
#orders .orders-table col.c-created { width: 110px; }
#orders .orders-table col.c-schedule { width: 168px; }
#orders .orders-table col.c-lesson { width: 96px; }
#orders .orders-table col.c-fee { width: 100px; }
#orders .orders-table col.c-lakala { width: 228px; }
#orders .orders-table col.c-funds { width: 248px; }
#orders .orders-table col.c-status { width: 150px; }
#orders .orders-table td { vertical-align: top; }
/* 长编号（订单号 / 拉卡拉流水号）折行显示，不用撑宽整列 */
#orders .orders-table th:first-child, #orders .orders-table td:first-child { min-width: 0; }
#orders .orders-table .order-number { max-width: none; }
#orders .orders-table .channel-no {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #0f766e;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-all;
  cursor: copy;
}
#orders .orders-table .channel-no:hover { text-decoration: underline; }
#orders .orders-table .channel-sub {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-all;
  cursor: copy;
}
/* 资金/扣费：逐行排列 + 固定行距，不再挤成一坨 */
#orders .orders-table .funds-cell { display: flex; flex-direction: column; gap: 4px; }
#orders .orders-table .funds-cell > small, #orders .orders-table .funds-cell > span { line-height: 1.5; }
/* 状态列的按钮与徽标：间距 2px，按钮文字过长时允许换行，不再贴着边缘 */
#orders .orders-table td:last-child .small-btn { margin: 2px 2px 0 0; }
#orders .orders-table td:last-child .badge { display: inline-block; margin-bottom: 2px; }
@media (max-width: 620px) {
  #orders .order-categories { gap: 6px; }
  #orders .order-category { padding: 9px 12px; flex: 1 0 auto; justify-content: center; }
  #orders .toolbar { flex-wrap: wrap; }
  #orders #orderSearch { flex-basis: 100%; }
}

#orders .channel-details { margin-top: 4px; font-size: 12px; color: #64748b; }
#orders .channel-details summary { cursor: pointer; }

#orders .order-insurance-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px; margin:12px 0; border:1px solid #cce5df; border-radius:12px; background:#f1f8f6; }
#orders .order-insurance-bar label { font-size:14px; font-weight:600; color:#14594c; }
#orders .order-insurance-bar input, #orders .order-insurance-bar button { min-height:44px; padding:8px 12px; border:1px solid #cbd5e1; border-radius:8px; background:white; font:inherit; font-size:13px; }
#orders .order-insurance-bar button { cursor:pointer; }
#orders .order-insurance-bar button:disabled { opacity:.5; cursor:not-allowed; }
#orders #exportOrderInsurance { background:#0f766e; color:white; border-color:#0f766e; }
#orders #orderInsuranceSummary { font-size:13px; color:#14594c; }
#orders .insurance-check { display:flex; align-items:center; gap:6px; min-height:44px; font-size:12px; color:#0f766e; cursor:pointer; }
#orders .insurance-check input { width:18px; height:18px; accent-color:#0f766e; }
