/* BAISHUN 收货登记系统 —— 无外部 CDN 依赖（国内网络环境下加载稳定） */
:root {
  --ink: #111827; --ink-2: #4b5563; --muted: #6b7280; --line: #e5e7eb; --bg: #ffffff; --bg-2: #f6f7f9;
  --brand: #0b5cad; --brand-dark: #084a8b; --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.center-line { text-align: center; margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px;
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--bg-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-warn { background: #fff7ed; border-color: #fdba74; color: var(--warn); }
.btn-sm { padding: 5px 12px; font-size: 14px; }
.btn-xl { width: 100%; min-height: 72px; font-size: 26px; font-weight: 700; border-radius: var(--radius); margin-top: 18px; }
.btn-link { background: none; border: 0; color: var(--brand); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

.alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 16px; }
.alert-error { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.alert-info, .alert-message { background: #eff6ff; color: var(--brand); border: 1px solid #bfdbfe; }

.brand-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 26px; letter-spacing: 2px; }
.brand-mark.sm { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; letter-spacing: 0; }

/* ---------------- 登录（同时适配手机与电脑） ---------------- */
.page-login { background: var(--bg-2); }
.login-wrap { max-width: 440px; margin: 0 auto; padding: 40px 20px 60px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 28px; margin: 14px 0 4px; }
.login-brand p { color: var(--muted); margin: 0; font-size: 16px; }
.login-form { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.login-form label { display: block; font-size: 20px; font-weight: 600; margin: 14px 0 6px; }
.input-xl { width: 100%; height: 60px; font-size: 24px; padding: 0 14px; border: 2px solid #94a3b8; border-radius: 12px; }
.input-xl:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,92,173,.18); }
.login-form .check-line { font-size: 17px; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.login-form .check-line input { width: 22px; height: 22px; }

/* ---------------- 收货员端：老人机式 ---------------- */
.page-receiver { background: #fff; }
.r-wrap { max-width: 560px; margin: 0 auto; padding: 18px 18px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 18px;
  border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.r-date { font-size: 24px; font-weight: 700; }
.r-user { font-size: 24px; color: var(--brand); font-weight: 700; }
.r-back { font-size: 22px; text-decoration: none; font-weight: 600; }
.r-actions { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; flex: 1; }
.r-btn { display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 20px;
  text-decoration: none; font-weight: 800; color: #fff; }
.r-btn-main { background: var(--brand); min-height: 180px; font-size: 40px; }
.r-btn-second { background: #fff; color: var(--brand); border: 3px solid var(--brand); min-height: 96px; font-size: 30px; }
.r-btn:active { transform: scale(.985); }
.r-btn[aria-disabled="true"] { opacity: .92; }
.r-foot { text-align: center; padding-top: 30px; font-size: 18px; color: var(--muted); }
.r-title { font-size: 26px; margin: 18px 0 10px; }
.r-empty { font-size: 22px; color: var(--muted); text-align: center; padding: 40px 0; }
.r-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.r-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.r-card-no { font-size: 22px; font-weight: 800; margin-bottom: 6px; font-family: ui-monospace, Menlo, monospace; }
.r-card-row { display: flex; justify-content: space-between; font-size: 22px; padding: 4px 0; }
.r-card-row span { color: var(--ink-2); }

/* ---------------- 管理后台 ---------------- */
.page-admin { background: var(--bg-2); }
.a-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.a-side { background: #0f1b2d; color: #cbd5e1; padding: 16px 0; }
.a-brand { color: #fff; font-weight: 700; padding: 4px 18px 16px; display: flex; gap: 10px; align-items: center; }
.a-menu a, .a-menu span { display: flex; justify-content: space-between; padding: 9px 18px; color: #cbd5e1; text-decoration: none; font-size: 14.5px; }
.a-menu a:hover, .a-menu a.active { background: #1e3150; color: #fff; }
.a-menu span.disabled { color: #64748b; cursor: not-allowed; }
.a-menu em { font-style: normal; font-size: 11px; border: 1px solid #334155; border-radius: 6px; padding: 0 5px; }
.a-main { padding: 0 28px 40px; min-width: 0; }
.a-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.a-top h1 { font-size: 22px; margin: 0; }
.a-top h1 small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.a-user { font-size: 14px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; }
.a-content { padding-top: 18px; }
.a-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi span { display: block; color: var(--muted); font-size: 14px; }
.kpi strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.kpi strong.kpi-text { font-size: 22px; }
.kpi em { font-style: normal; color: var(--muted); margin-left: 4px; }
.kpi-secret { border-color: #fde68a; background: #fffbeb; }
.note { margin-top: 18px; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; }
.table th { background: #f8fafc; color: var(--ink-2); font-weight: 600; }
.table-dense td { font-size: 13px; padding: 7px 10px; }
.table td.json { max-width: 260px; word-break: break-all; font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-2); }
.row-off td { color: #9ca3af; }
.tag { padding: 2px 8px; border-radius: 6px; font-size: 13px; background: #eef2ff; color: #3730a3; }
.tag-super_admin { background: #fef3c7; color: #92400e; }
.tag-receiver { background: #ecfdf5; color: #065f46; }
.chip { display: inline-block; background: #f1f5f9; border-radius: 6px; padding: 1px 7px; margin: 2px 4px 2px 0; font-size: 12.5px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; max-width: 900px; }
.form-card label { display: block; font-size: 14px; color: var(--ink-2); }
.form-card input[type=text], .form-card input:not([type]), .form-card input[type=password], .form-card select {
  display: block; width: 100%; margin-top: 4px; height: 40px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; padding: 12px 16px; }
legend { padding: 0 6px; font-weight: 600; }
.radio, .check { display: inline-flex !important; gap: 6px; align-items: center; margin: 6px 18px 6px 0; color: var(--ink) !important; font-size: 15px !important; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.form-actions { display: flex; gap: 10px; margin-top: 12px; }
.inline-row { display: flex; gap: 10px; max-width: 420px; }
.inline-row input { flex: 1; height: 40px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { padding: 8px 0; }
  .a-menu { display: flex; overflow-x: auto; }
  .a-menu a, .a-menu span { white-space: nowrap; }
  .a-main { padding: 0 14px 30px; }
  .grid2 { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}

/* ================= 第二阶段：登记流程 / 生产点 / 查询账号 ================= */
.r-wrap.wide { max-width: 760px; }
.r-hint { font-size: 20px; color: var(--ink-2); margin: 0 0 16px; }
.r-sum { font-size: 20px; margin: 0 0 12px; }
.center { text-align: center; }
.site-list { display: grid; gap: 16px; }
.site-btn { width: 100%; min-height: 84px; border: 3px solid var(--brand); border-radius: 18px; background: #fff;
  color: var(--brand); font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; }
.site-btn.is-current { background: var(--brand); color: #fff; }
.site-tag { font-size: 16px; border: 2px solid currentColor; border-radius: 8px; padding: 0 8px; font-weight: 600; }
.site-banner { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: #eff6ff; border: 2px solid #bfdbfe; text-decoration: none; color: var(--ink); font-size: 20px; }
.site-banner span { color: var(--ink-2); }
.site-banner strong { font-size: 24px; flex: 1; }
.site-banner em { font-style: normal; color: var(--brand); font-weight: 700; }
.r-btn.short { min-height: 96px; font-size: 30px; }

.step { margin-top: 26px; }
.step h2 { font-size: 24px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; }
.photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-btn { min-height: 90px !important; font-size: 24px !important; cursor: pointer; text-align: center; padding: 0 8px; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone { margin-top: 12px; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); font-size: 16px; }
.drop-zone.over { border-color: var(--brand); background: #eff6ff; }
@media (pointer: coarse) { .drop-zone { display: none; } }
.photo-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 2px solid var(--line); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item.is-error { border-color: var(--err); }
.photo-state { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; text-align: center; padding: 3px 0; }
.photo-item.is-done .photo-state { background: rgba(21,128,61,.85); }
.photo-item.is-error .photo-state { background: var(--err); cursor: pointer; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; cursor: pointer; }
.num-label { display: block; font-size: 22px; font-weight: 700; margin: 14px 0 6px; }
.num-input { width: 100%; height: 72px; font-size: 34px; font-weight: 700; padding: 0 16px; border: 3px solid #94a3b8; border-radius: 14px; font-variant-numeric: tabular-nums; }
.num-input:focus, .opt-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,92,173,.18); }
.chip-btn { margin-top: 10px; border: 2px solid #fdba74; background: #fff7ed; color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 18px; font-weight: 600; cursor: pointer; }
.opt-label { display: block; font-size: 18px; color: var(--ink-2); margin: 14px 0 4px; }
.opt-input { width: 100%; height: 52px; font-size: 20px; padding: 0 12px; border: 2px solid #cbd5e1; border-radius: 12px; }
.opt-input.big { height: 60px; font-size: 22px; border-color: #94a3b8; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-card { border: 3px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-height: 120px; justify-content: center; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.product-card.is-selected { border-color: var(--brand); background: #eff6ff; box-shadow: 0 0 0 2px var(--brand) inset; }
.product-new { font-size: 30px; font-weight: 800; color: var(--brand); }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal-box { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 22px 20px 28px; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-box { border-radius: 22px; } }
.modal-box h2 { font-size: 28px; margin: 0 0 12px; text-align: center; }
.confirm-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 24px; margin: 0; }
.confirm-list dt { color: var(--ink-2); }
.confirm-list dd { margin: 0; text-align: right; }
.confirm-list strong { font-size: 34px; color: var(--brand); }
.done-head { text-align: center; padding: 20px 0 12px; }
.done-check { width: 92px; height: 92px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 56px; display: grid; place-items: center; margin: 0 auto; }
.done-head h1 { font-size: 34px; margin: 12px 0 0; color: var(--ok); }
.card-box { margin-top: 22px; }
.card-box h2 { font-size: 22px; margin: 0 0 10px; }
.card-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.tip { font-size: 18px; margin: 10px 0 0; }
.r-card-top { display: flex; justify-content: space-between; align-items: center; }
.edit-link { font-size: 20px; font-weight: 700; text-decoration: none; border: 2px solid var(--brand); border-radius: 10px; padding: 4px 14px; }
.card-link { display: block; margin-top: 8px; font-size: 18px; text-decoration: none; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.thumb-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.seg { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 0; }
.seg a { white-space: nowrap; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--line); text-decoration: none; font-size: 18px; color: var(--ink); }
.seg a.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.day-arrow { font-size: 18px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.day-input { height: 48px; font-size: 20px; border: 2px solid #94a3b8; border-radius: 10px; padding: 0 10px; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.sum-grid div { background: #eff6ff; border-radius: 14px; padding: 12px; text-align: center; }
.sum-grid span { display: block; font-size: 15px; color: var(--ink-2); }
.sum-grid strong { font-size: 26px; font-variant-numeric: tabular-nums; }

/* ================= 每日确认 ================= */
.confirm-banner { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 12px 16px; background: #fff7ed;
  border-bottom: 3px solid #f97316; font-size: 18px; position: sticky; top: 0; z-index: 40; }
.confirm-banner.is-overdue { background: #fef2f2; border-color: var(--err); color: var(--err); }
.confirm-banner span { background: #fff; border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.confirm-banner em { font-style: normal; font-size: 15px; }
.confirm-banner a { margin-left: auto; background: var(--err); color: #fff; padding: 8px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.confirm-banner:not(.is-overdue) a { background: #ea580c; }
.sum-box { border: 3px solid var(--brand); border-radius: 16px; padding: 14px; margin: 16px 0; }
.sum-box.is-locked { border-color: var(--ok); background: #f0fdf4; }
.sum-box h2 { font-size: 22px; margin: 0 0 10px; }
.sum-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.sum-table th, .sum-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.sum-table th:first-child, .sum-table td:first-child { text-align: left; }
.sum-table th { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.sum-table tfoot td { font-weight: 800; border-bottom: 0; font-size: 20px; }
.party-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.party { font-size: 17px; padding: 6px 12px; border-radius: 10px; background: #fef2f2; color: var(--err); font-weight: 700; }
.party.ok { background: #dcfce7; color: var(--ok); }
.lock-note { font-size: 19px; font-weight: 700; color: var(--ok); margin: 10px 0 0; }
.mod-tag { font-size: 14px; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 6px; font-family: inherit; vertical-align: middle; }
.hist { margin-top: 8px; font-size: 16px; background: #fffbeb; border-left: 4px solid #f59e0b; padding: 6px 10px; border-radius: 6px; }
.seg a.warn { border-color: var(--err); color: var(--err); font-weight: 700; }
.block-box { text-align: center; padding: 22px 0 8px; }
.block-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--err); color: #fff; font-size: 52px; font-weight: 900; display: grid; place-items: center; margin: 0 auto; }
.block-box h1 { font-size: 30px; color: var(--err); margin: 12px 0 6px; }
.block-box p { font-size: 20px; margin: 0; }
strong.ok, span.ok { color: var(--ok); }
strong.bad, span.bad { color: var(--err); }
.small { font-size: 12.5px; }
.row-locked td { background: #f0fdf4; }
.unlock-form { display: flex; gap: 6px; }
.unlock-form input { height: 32px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; width: 150px; }
.edit-link { white-space: nowrap; flex-shrink: 0; }
.mod-tag { white-space: nowrap; }
.r-card-top { gap: 8px; }
.sum-table th { white-space: nowrap; }
.sum-table td:not(:first-child) { white-space: nowrap; }
@media (max-width: 520px) {
  .sum-table { font-size: 16px; }
  .sum-table th, .sum-table td { padding: 7px 3px; }
  .sum-table th { font-size: 13px; }
  .sum-table td:first-child { min-width: 6.5em; }
  .sum-table tfoot td { font-size: 17px; }
}

/* ================= 管理后台：手机端 ================= */
@media (max-width: 820px) {
  .a-shell { display: block; }
  .a-side { position: sticky; top: 0; z-index: 30; padding: 0; min-width: 0; max-width: 100vw; }
  .a-brand { padding: 10px 14px 6px; }
  .a-menu { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 6px 8px; gap: 4px; scrollbar-width: none; }
  .a-menu::-webkit-scrollbar { display: none; }
  .a-menu a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #1e293b; font-size: 15px; }
  .a-menu a.active { background: var(--brand); }
  .a-menu span.disabled { display: none; }            /* 手机上不显示尚未开发的菜单 */
  .a-main { padding: 0 12px 30px; max-width: 100vw; }
  .a-top { padding: 12px 0; }
  .a-top h1 { font-size: 20px; }
  .a-top h1 small { display: block; margin: 2px 0 0; }
  .a-user { font-size: 13px; gap: 10px; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi strong { font-size: 24px; }
  .kpi strong.kpi-text { font-size: 17px; }
  .a-toolbar { gap: 8px; }
  .a-toolbar .btn-primary { width: 100%; justify-content: center; min-height: 48px; font-size: 17px; }
  .form-card { padding: 14px; }

  /* 表格在手机上变成卡片：每行一张卡片，每格带标题 */
  .table.m-cards, .table.m-cards tbody, .table.m-cards tr, .table.m-cards td { display: block; width: 100%; }
  .table.m-cards { border: 0; background: none; overflow: visible; }
  .table.m-cards thead { display: none; }
  .table.m-cards tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 6px 12px; }
  .table.m-cards tr.row-locked { background: #f0fdf4; border-color: #bbf7d0; }
  .table.m-cards tr.row-locked td { background: none; }
  .table.m-cards td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
  .table.m-cards td[data-label]::before { content: attr(data-label); color: var(--muted); flex-shrink: 0; }
  .table.m-cards td.m-title { display: block; font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  .table.m-cards td.m-actions { display: block; padding-top: 8px; }
  .table.m-cards td.m-actions .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 17px; }
  .table.m-cards .unlock-form { flex-wrap: wrap; }
  .table.m-cards .unlock-form input { flex: 1; width: auto; height: 42px; }
  .table.m-cards .unlock-form .btn { width: auto; }
}

/* ================= 设备审批 ================= */
.dev-label { font-size: 20px; margin: 0 0 10px; }
.dev-code { font-size: 46px; font-weight: 900; letter-spacing: 4px; font-family: ui-monospace, Menlo, monospace; color: var(--brand);
  background: #eff6ff; border: 3px dashed #93c5fd; border-radius: 16px; padding: 14px 0; margin: 6px 0 8px; }
.dev-rule { font-size: 17px; color: var(--ink-2); margin: 16px 0 0; }
.dev-badge { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 800; background: #eff6ff; color: var(--brand); border-radius: 6px; padding: 1px 8px; }
.st-pending { color: var(--warn); font-weight: 700; } .st-approved { color: var(--ok); font-weight: 700; }
.st-rejected, .st-revoked { color: var(--muted); }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-actions select, .inline-actions input { height: 34px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; }
@media (max-width: 820px) {
  .inline-actions { width: 100%; }
  .inline-actions select, .inline-actions input { flex: 1; height: 44px; font-size: 16px; }
  .inline-actions .btn { min-height: 44px; flex: 1; justify-content: center; }
}
a.kpi { text-decoration: none; color: inherit; }
.kpi-alert { border-color: #fdba74; background: #fff7ed; }
.kpi-alert strong { color: var(--warn); }
