/* ============================================================
   运力协同工作台 · 设计系统
   白底 / 青绿辅色 / 高信息密度 / 极简
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --surface-2: #FBFDFC;
  --ink: #0F1D1A;
  --ink-2: #3C4B48;
  --muted: #7A8C88;
  --line: #E5ECEA;
  --line-2: #EFF4F3;

  --teal: #0E9C8A;
  --teal-d: #0A7A6B;
  --teal-l: #E8F7F3;

  --amber: #A2660B;
  --amber-l: #FBF2E1;
  --amber-b: #F0DFC0;

  --red: #B8412C;
  --red-l: #FBEDEA;
  --red-b: #F2D6D0;

  --violet: #6152C4;
  --violet-l: #EFEDFB;

  --blue: #2A66C4;
  --blue-l: #EAF1FC;

  --green: #1C8360;
  --green-l: #E6F4EE;

  --slate: #5B6B68;
  --slate-l: #EFF3F2;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(16, 50, 44, .05);
  --shadow-2: 0 6px 20px -8px rgba(16, 50, 44, .16);
  --shadow-3: 0 24px 60px -18px rgba(12, 55, 48, .28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-d); }

/* ---------------- 顶栏 ---------------- */

.topbar {
  height: 60px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(160deg, #12AD97, #0A7A6B);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(10, 122, 107, .28);
}
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand-line {
  font-size: 12px; color: var(--muted); padding-left: 10px;
  border-left: 1px solid var(--line); margin-left: 2px;
}

.role-switch {
  display: flex; gap: 2px; padding: 3px;
  background: #EEF3F2; border-radius: 10px; margin: 0 auto;
}
.role-switch button {
  border: 0; background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 8px;
  transition: background .16s, color .16s, box-shadow .16s;
  white-space: nowrap;
}
.role-switch button:hover { color: var(--ink); }
.role-switch .short { display: none; }
.role-switch button.on {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 50, 44, .12);
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.identity {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px;
}
.identity .who { color: var(--muted); }
.identity .who b { color: var(--ink); font-weight: 600; }
.identity select {
  border: 0; background: var(--slate-l); border-radius: 999px;
  padding: 4px 8px; font-size: 12.5px; outline: none; max-width: 150px;
}

.conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.conn .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 156, 138, .14);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, transform .06s;
}
.btn:hover { background: #F7FAF9; border-color: #D9E3E0; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 1px 2px rgba(10, 122, 107, .24);
}
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #EDF3F1; border-color: transparent; }

.btn-danger { background: #fff; border-color: var(--red-b); color: var(--red); }
.btn-danger:hover { background: var(--red-l); border-color: #E7C4BC; }

.btn-warn { background: #fff; border-color: var(--amber-b); color: var(--amber); }
.btn-warn:hover { background: var(--amber-l); }

.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 11px; font-weight: 600; }
.btn-block { width: 100%; }

/* ---------------- 状态胶囊 ---------------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: var(--slate-l); color: var(--slate);
}
.chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.chip.reported { background: var(--slate-l); color: var(--slate); }
.chip.approved { background: var(--teal-l); color: var(--teal-d); }
.chip.dispatched { background: var(--blue-l); color: var(--blue); }
.chip.loaded { background: #EFEDFB; color: var(--violet); }
.chip.received { background: var(--green-l); color: var(--green); }
.chip.settled { background: #0F1D1A; color: #fff; }
.chip.failed { background: var(--red-l); color: var(--red); }
.chip.needfix { background: var(--amber-l); color: var(--amber); }
.chip.conflict { background: var(--violet-l); color: var(--violet); }
.chip.superseded { background: #F2F4F4; color: #9AA8A5; }
.chip.plain { background: #F4F7F6; color: var(--ink-2); }

.tag {
  display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 5px;
  background: #F1F5F4; color: var(--ink-2); margin-right: 4px;
}
.tag.teal { background: var(--teal-l); color: var(--teal-d); }
.tag.amber { background: var(--amber-l); color: var(--amber); }
.tag.sim { background: var(--blue-l); color: var(--blue); }

/* ---------------- 通用 ---------------- */

.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.plate {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink);
}
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1);
}
.card-pad { padding: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.empty {
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.empty b { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; font-size: 14px; }

.bar { height: 5px; border-radius: 999px; background: #EDF2F1; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--teal); }

/* ============================================================
   手机端（信息部）
   ============================================================ */

.phone-wrap {
  min-height: calc(100vh - 60px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 26px 16px 40px;
  min-width: 0;
}

.phone {
  width: 390px;
  min-width: 0;
  max-width: 100%;
  height: min(812px, calc(100vh - 112px));
  background: #fff;
  border: 1px solid #DCE5E3;
  border-radius: 40px;
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-status {
  height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; font-size: 12px; font-weight: 600; color: var(--ink);
  padding-top: 6px;
}
.phone-status .sig { display: flex; align-items: center; gap: 5px; }

.phone-head { padding: 4px 18px 12px; flex-shrink: 0; border-bottom: 1px solid var(--line-2); }
.phone-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 2px; }
.phone-head .sub { font-size: 12.5px; color: var(--muted); }

.phone-body {
  flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px 24px;
}
.phone-body::-webkit-scrollbar { width: 0; }

.phone-tabs {
  height: 62px; flex-shrink: 0; display: flex;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  padding-bottom: 4px;
}
.ptab {
  flex: 1; border: 0; background: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 500;
  transition: color .14s;
}
.ptab.on { color: var(--teal-d); }
.ptab .ico { display: block; }

/* 任务卡 */
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-1);
}
.task-card.off { opacity: .62; }
.tc-route {
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
}
.tc-route .arrow { color: var(--teal); font-size: 13px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tc-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tc-stat b { color: var(--ink); font-size: 13px; font-weight: 600; }

/* 粘贴区 */
.paste-box {
  width: 100%; min-height: 148px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; font-size: 14px; line-height: 1.65; background: #FBFDFC;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.paste-box:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 156, 138, .1); background: #fff; }

.parse-sum {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
  padding: 9px 12px; background: var(--teal-l); border-radius: 10px; margin: 12px 0;
}
.parse-sum .ok { color: var(--teal-d); font-weight: 600; }
.parse-sum .warn { color: var(--amber); font-weight: 600; }

/* 识别结果卡 */
.pv {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; margin-bottom: 10px; background: #fff;
}
.pv.err { border-color: var(--amber-b); background: #FFFDF7; }
.pv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pv-plate {
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .05em;
}
.pv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pv-field { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; min-width: 0; }
.pv-field .lb { flex: 0 0 26px; white-space: nowrap; }
.pv-field input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed #CBD8D5; background: transparent;
  font-size: 13px; padding: 2px 0; outline: none; color: var(--ink);
}
.pv-field input:focus { border-bottom-color: var(--teal); }
.flag {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; padding: 7px 9px; border-radius: 8px; margin-top: 8px;
}
.flag.error { background: var(--red-l); color: var(--red); }
.flag.warn { background: var(--amber-l); color: var(--amber); }

/* 进度条（手机） */
.steps { display: flex; gap: 3px; margin: 7px 0 5px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: #E9EFEE; display: block; }
.steps i.on { background: var(--teal); }
.steps i.warn { background: var(--amber); }
.steps i.bad { background: var(--red); }

.my-item {
  border-bottom: 1px solid var(--line-2); padding: 12px 2px;
}
.my-item:last-child { border-bottom: 0; }

/* ============================================================
   桌面端
   ============================================================ */

.desk {
  max-width: 1480px; margin: 0 auto;
  padding: 18px 22px 48px;
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px;
  align-items: start;
}
.desk.single { grid-template-columns: minmax(0, 1fr); }

.rail { position: sticky; top: 78px; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 10px;
}
.rail-title { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.task-item {
  border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  padding: 11px 12px; margin-bottom: 8px; cursor: pointer;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.task-item:hover { border-color: #CFDCD9; }
.task-item.on {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 156, 138, .09);
  background: #FCFEFD;
}
.task-item .ti-code { font-size: 11.5px; font-family: var(--mono); color: var(--muted); }
.task-item .ti-route { font-size: 13.5px; font-weight: 600; margin: 2px 0 6px; }
.task-item .ti-bar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

.main { min-width: 0; }

.main-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.main-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 3px; }
.main-head .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px;
}
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px; box-shadow: var(--shadow-1);
  /* grid 项默认 min-width:auto，内容一长就把列撑破、整页出现横向滚动条 */
  min-width: 0;
}
.kpi .k {
  font-size: 11.5px; color: var(--muted); margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.kpi .v { font-size: 21px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi.alert .v { color: var(--amber); }
.kpi.good .v { color: var(--teal-d); }

/* Tabs */
.tabs {
  display: flex; gap: 2px; align-items: center;
  border-bottom: 1px solid var(--line); margin-bottom: 0; padding: 0 4px;
}
.tab {
  border: 0; background: none; padding: 10px 12px 11px; font-size: 13px;
  color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent;
  margin-bottom: -1px; display: flex; align-items: center; gap: 6px;
  transition: color .14s, border-color .14s;
}
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--teal-d); border-bottom-color: var(--teal); font-weight: 600; }
.tab .n {
  background: #EEF3F2; color: var(--ink-2); border-radius: 999px;
  font-size: 11px; padding: 1px 6px; font-weight: 600; min-width: 18px; text-align: center;
}
.tab.on .n { background: var(--teal-l); color: var(--teal-d); }
.tab.alert .n { background: var(--amber-l); color: var(--amber); }

/* 表格 */
.table-wrap { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
.table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFDFC; }
.table td.actions { text-align: right; white-space: nowrap; }
.rowact { display: inline-flex; gap: 5px; justify-content: flex-end; }
.t-sub { font-size: 11.5px; color: var(--muted); }
.tip-cell { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 区块 */
.section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; box-shadow: var(--shadow-1); overflow: hidden; }
.section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
}
.section-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.section-body { padding: 14px 16px; }

/* 冲突卡 */
.conflict-card {
  border: 1px solid var(--violet); border-radius: var(--r); padding: 13px;
  background: #FBFAFF; margin-bottom: 10px;
}
.cc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-opt {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px;
}
.cc-opt.win { border-color: var(--teal); background: #F7FDFB; }

/* 抽屉 / 弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(12, 35, 31, .3);
  backdrop-filter: blur(2px); z-index: 90;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 96vw;
  background: #fff; z-index: 91; box-shadow: -12px 0 40px rgba(12, 40, 35, .16);
  display: flex; flex-direction: column;
  animation: slidein .22s cubic-bezier(.22, .8, .3, 1);
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6 } to { transform: none; opacity: 1 } }
.drawer.wide { width: 700px; }
.drawer-head {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.drawer-head h3 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; }

.modal {
  position: fixed; z-index: 92; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  width: 520px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.05);
}
@keyframes pop { from { transform: translate(-50%, -48%) scale(.97); opacity: 0 } to { transform: translate(-50%, -50%) scale(1); opacity: 1 } }
.modal-head { padding: 18px 20px 12px; }
.modal-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.modal-body { padding: 0 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; font-size: 13.5px; outline: none; background: #fff;
  transition: border-color .14s, box-shadow .14s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 156, 138, .1);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 只读值（调度员看得到名称但改不了） */
.ro-val {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #f6f8f8; color: var(--muted); font-size: 13.5px;
}
/* 弹窗内的小字提示（如"上次更新：马宁 · 2026-11-28 16:02"） */
.hint-sm { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ---- 档案里的「运力情况」 ---- */
.truck-box {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 12px 10px; background: var(--surface-2);
}
.truck-box > label { margin-bottom: 8px; }
.tax-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.t-label { font-size: 12px; color: var(--muted); }
.tax-group { display: flex; gap: 6px; }
.tax-opt {
  font-family: inherit; font-size: 12.5px; padding: 4px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: .14s;
}
.tax-opt:hover { border-color: var(--teal); color: var(--teal-d); }
.tax-opt.on {
  background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600;
}
.t-truck-head, .truck-row {
  display: grid; grid-template-columns: 1fr 1fr 84px 26px; gap: 6px; align-items: center;
}
.t-truck-head { font-size: 11px; color: var(--muted); padding: 0 0 4px 2px; }
.truck-row { margin-bottom: 6px; }
.truck-row select, .truck-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font-size: 13px; background: #fff; outline: none; font-family: inherit;
}
.truck-row select:focus, .truck-row input:focus { border-color: var(--teal); }
.tr-del {
  border: 0; background: none; color: #b9c4c1; font-size: 17px; line-height: 1;
  cursor: pointer; padding: 0; border-radius: 6px;
}
.tr-del:hover { color: var(--red); background: var(--red-l); }
.truck-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.truck-sum { font-size: 12px; color: var(--teal-d); font-weight: 600; }

/* 档案列表里的运力摘要 */
.truck-brief { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.truck-brief b { color: var(--ink-2); font-weight: 600; }

/* 时间线 */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -17px; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--teal);
}
.tl-item .t { font-size: 11.5px; color: var(--muted); }
.tl-item .d { font-size: 13px; }
.tl-item .a { font-weight: 600; }

/* Toast */
.toast-root {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #101F1C; color: #fff; font-size: 13px; padding: 9px 16px;
  border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
  animation: toastin .2s ease; display: flex; align-items: center; gap: 8px; max-width: 80vw;
}
.toast.err { background: #8C2F1D; }
.toast.ok { background: #0A5F52; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* 刷新提示 */
.refresh-pill {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 70; background: var(--ink); color: #fff; border: 0;
  font-size: 12.5px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
  animation: toastin .2s ease;
}

/* 小屏适配 */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .desk { grid-template-columns: 1fr; }
  .rail { position: static; }
}
/* 1100 以下顶栏开始挤：角色全称 + 账号下拉 + 三个按钮 + 连接状态加起来会超宽 */
@media (max-width: 1100px) {
  /*
   * 表格不再折行、首列与操作列固定、侧栏改横条 —— 这三条原来只写在 ≤720，
   * 结果 721~1100（iPad 竖屏、小笔电开半屏）回落成可折行：
   * 任务号被压成「FX-/2611-/05」三行，一屏只看得到三行数据。
   */
  .table th, .table td { white-space: nowrap; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th:first-child, .table td:first-child {
    position: sticky; left: 0; z-index: 2; background: #fff;
  }
  .table thead th:first-child { background: var(--surface-2); z-index: 3; }
  /* 操作列也固定住：手机上横滑到「认可」时，左边还看得见是谁报的 */
  .table th:last-child, .table td.actions {
    position: sticky; right: 0; z-index: 2; background: #fff;
    box-shadow: -8px 0 10px -10px rgba(0, 0, 0, .35);
  }
  .table thead th:last-child { background: var(--surface-2); z-index: 3; }
  .table tbody tr.row-bad td.actions { background: #FDF3F2; }
  .table tbody tr.row-warn td.actions { background: #FEFBF2; }
  .app-rail { max-height: none; overflow: visible; display: flex; gap: 4px; overflow-x: auto; padding: 0 0 8px; }
  .app-rail .nav-group { display: contents; }
  .app-rail .nav-glabel { display: none; }
  .app-rail .nav-item {
    flex: 0 0 auto; width: auto; margin-bottom: 0; white-space: nowrap;
    border-color: var(--line); background: #fff; padding: 6px 11px; font-size: 12.5px;
  }
  .app-rail .nav-item.on { background: var(--teal); color: #fff; border-color: var(--teal); }
  .app-rail .nav-item.on .n { background: rgba(255, 255, 255, .25); color: #fff; }
  .app-rail::-webkit-scrollbar { height: 0; }
  .topbar { gap: 8px; }
  /* 原来 flex-shrink:0，宁可溢出也不收缩——这就是 820px 下整页 995px 的原因 */
  .topbar-right { flex-shrink: 1; min-width: 0; gap: 5px; }
  .conn { display: none; }
  [data-act='resetDemo'] { display: none; }
  .identity { min-width: 0; padding-left: 6px; }
  .identity select { max-width: 118px; }
  .brand-text { font-size: 13.5px; }
  /* 三个角色按钮写全称要 300 多像素，是顶栏挤爆的主因：先换成短标签 */
  .role-switch .long { display: none; }
  .role-switch .short { display: inline; }
  .role-switch button { padding: 6px 9px; font-size: 12px; }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 12px; height: 56px; }
  .brand-line { display: none; }
  .brand-text { font-size: 14px; }
  .role-switch { padding: 2px; }
  .role-switch button { padding: 6px 9px; font-size: 12px; }
  .conn, .identity .who { display: none; }
  .phone-wrap { min-height: calc(100dvh - 56px); padding: 0; }
  .phone {
    width: 100%; height: calc(100dvh - 56px); border-radius: 0; border: 0;
    box-shadow: none;
  }
  .phone-status { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk { padding: 12px; min-width: 0; }
  /*
   * 手机上左侧栏会堆在正文上方。不限高的话，四五个任务就把首屏占满，
   * 车辆列表要滚两屏才看得到。限高 + 内部滚动，任务多也不会挤走正文。
   */
  .rail { position: static; max-height: 30vh; overflow-y: auto; padding-right: 2px; }
  .rail::-webkit-scrollbar { width: 0; }
  /* 标签多了会顶出屏幕：让它自己横滑，别拖累整页 */
  .tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; }
  /*
   * 手机上别让表格挤成竖排字（"信 息 部"竖着排根本没法读）。
   * 给表格一个最小可读宽度，让它在自己的容器里横滑；
   * 首列吸左，滑到右边时还知道这行是谁。
   */
  /*
   * 关键是把 white-space 关掉换行权限：原来每格都能折行，
   * 浏览器就把"角色""班组"压到十几像素，"信息部"被折成竖排的三个字。
   * 不许折行之后，表格按内容自然展开，超出的部分交给容器横滑。
   */
  .table th, .table td { white-space: nowrap; }
  .table td.wrap-cell, .table th.wrap-cell { white-space: normal; min-width: 120px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th:first-child, .table td:first-child {
    position: sticky; left: 0; z-index: 2; background: #fff;
  }
  .table thead th:first-child { background: var(--surface-2); z-index: 3; }
  .table tbody tr:hover td:first-child { background: var(--surface-2); }
  .cc-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .table { font-size: 12.5px; }
}

/* 报号确认页：提交区吸附底部，避免长列表要滚到底 */
/* 侧栏入口上的小计数（如「全部待审 3」） */
.ti-n {
  display: inline-block; min-width: 18px; text-align: center;
  background: var(--amber-l); color: var(--amber); border-radius: 999px;
  font-size: 10.5px; padding: 0 6px; font-weight: 700; vertical-align: 1px;
}
.task-item.on .ti-n { background: #fff; }

/* 横屏手机（844×390 这种）：固定高度 278px 的手机壳会把结果表压到 0 可见，
   只剩一个「提交」按钮——那等于逼人盲提交。矮视口下让壳和内容自然撑高。 */
@media (max-height: 520px) {
  .phone-wrap { min-height: auto; padding: 0; }
  .phone { height: auto; min-height: calc(100dvh - 56px); border-radius: 0; border: 0; box-shadow: none; }
  .pv-submit { position: static; background: none; }
  /* 横屏高度本来就紧，把标题、当前条、统计条压扁，多留两行给结果表 */
  .phone-head { padding: 8px 12px 6px; }
  .phone-title { font-size: 15px; }
  .phone-sub { display: none; }
  .rb-cur { padding: 5px 9px; margin-bottom: 6px; font-size: 11.5px; }
  .pstats { margin-bottom: 6px; gap: 4px; }
  .pchip { font-size: 10.5px; padding: 2px 7px; }
  .parse-table th { padding: 5px 7px; }
  .parse-table td { padding: 2px 3px; }
  .cell-in { padding: 5px 6px; }
}

/* 表格单元格里的副行（如车牌下面的阶段） */
.cell-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; line-height: 1.3; }

/* ---- 侧边栏菜单（管理端）---- */
.app-rail { padding-top: 2px; }
.nav-group { margin-bottom: 12px; }
.nav-glabel {
  font-size: 10.5px; font-weight: 700; color: #A9B6B1; letter-spacing: .08em;
  padding: 0 2px 5px;
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 8px 11px; margin-bottom: 3px;
  border: 1px solid transparent; border-radius: 9px; background: none;
  font-family: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .13s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.on {
  background: var(--teal-l); color: var(--teal-d); font-weight: 600;
  border-color: var(--teal-line, #C9E2D7);
}
.nav-item .n {
  background: var(--amber-l); color: var(--amber); border-radius: 999px;
  font-size: 11px; padding: 1px 7px; font-weight: 700;
}
.nav-item.on .n { background: #fff; }

/* 「我的报号」异常卡片：与表格行用同一套语义色 */
.my-item.my-bad { background: #FDF3F2; box-shadow: inset 3px 0 0 #D9534F; border-radius: 8px; }
.my-item.my-warn { background: #FEFBF2; box-shadow: inset 3px 0 0 #D9A21B; border-radius: 8px; }

/* 有段落没认出车牌时的警示块：这是最容易造成漏报的地方，得显眼 */
.drop-warn {
  font-size: 12px; line-height: 1.55; color: #B8433A;
  background: #FBEDEB; border: 1px solid #F0CFCB; border-radius: var(--r);
  padding: 9px 11px; margin-bottom: 10px;
}
.drop-warn b { font-weight: 650; }
.drop-warn ul { margin: 5px 0 0; padding-left: 16px; }
.drop-warn li { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; opacity: .85; }

/* ---- 异常行统一高亮（全系统共用） ----
   只靠一个彩色小标签根本扫不出来：调度员一天几百行，
   要的是"这行不对劲"从整行底色上直接跳出来。左侧 3px 竖条是关键，
   手机上表格横向滚动时它也一直贴着左边。 */
.table tr.row-bad,
.parse-table tr.row-bad { background: #FDF3F2; }
.table tr.row-bad td:first-child,
.parse-table tr.row-bad td:first-child { box-shadow: inset 3px 0 0 #D9534F; }
.table tr.row-warn,
.parse-table tr.row-warn { background: #FEFBF2; }
.table tr.row-warn td:first-child,
.parse-table tr.row-warn td:first-child { box-shadow: inset 3px 0 0 #D9A21B; }
/* 顶部的计数条也用同一套色，让人知道"红色=有几行" */
.table tr.row-bad:hover { background: #FBE9E7; }
.table tr.row-warn:hover { background: #FDF6E6; }

/* ---- 报号结果表（一行一车） ---- */
.pstats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pchip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3, var(--muted));
  white-space: nowrap;
}
.pchip.ok { color: var(--teal-d); border-color: #C9E2D7; background: var(--teal-l); }
.pchip.bad { color: #B8433A; border-color: #F0CFCB; background: #FBEDEB; }
.pchip.on { color: var(--ink); font-weight: 600; }

.parse-table-wrap {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  /* 不加这两条，表格内容一宽就把外层容器和整页一起撑破（桌面上会横向滚动） */
  max-width: 100%; min-width: 0;
}
.parse-table { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.parse-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 7px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.parse-table td { padding: 3px 4px; border-bottom: 1px solid #F2F6F4; vertical-align: middle; }
.parse-table tr:last-child td { border-bottom: 0; }
.parse-table .pt-n { width: 34px; text-align: center; color: var(--muted); font-size: 11.5px; padding: 0 0 0 5px; }
.parse-table td.pt-plate { min-width: 132px; }
/* 车号下面那行小字：识别提示。放这里是为了手机上第一屏就能看见问题，
   不用左右滑到最后一列才发现"这行有毛病" */
.row-tip { font-size: 10.5px; line-height: 1.35; padding: 0 7px 4px; }
.row-tip.bad { color: #B8433A; }
.row-tip.warn { color: var(--amber); }
/* 到矿/吨位是次要列，手机上藏掉（宽屏仍显示） */
@media (max-width: 560px) {
  .parse-table .pt-opt { display: none; }
}
.parse-table .pt-del { width: 28px; text-align: center; padding: 0; }
/* 可编辑格子：平时无边框，聚焦才出现，避免表格看起来像一堆输入框 */
.cell-in {
  width: 100%; border: 1px solid transparent; border-radius: 6px;
  padding: 6px 7px; font-size: 13px; font-family: inherit;
  background: transparent; outline: none; color: var(--ink);
  min-width: 76px;
}
.cell-in:hover { background: #F7FAF9; }
.cell-in:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 2px rgba(14,156,138,.1); }
.cell-in::placeholder { color: #C2CDCA; font-size: 12px; }

.tip { font-size: 11.5px; line-height: 1.4; }
.tip.bad { color: #B8433A; }
.tip.warn { color: var(--amber); }
.tip.ok { color: var(--teal-d); }
.tr-x {
  border: 0; background: none; color: #C2CDCA; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 2px 4px; border-radius: 5px;
}
.tr-x:hover { color: var(--red); background: var(--red-l); }

/* ---- 报号页两级菜单（线路 → 煤种） ---- */
.rb { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.rb-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rb-n {
  width: 17px; height: 17px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.rb-n.off { background: #C8D5CF; }
.rb-l { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.rb-pills {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px;
  scrollbar-width: none;
}
.rb-pills::-webkit-scrollbar { display: none; }
.rp {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); cursor: pointer; font-family: inherit;
  transition: .14s;
}
.rp:hover { border-color: var(--teal); color: var(--teal-d); }
.rp.on {
  background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 2px 8px -3px rgba(14, 156, 138, .6);
}
.rp-t { font-size: 13px; font-weight: 550; white-space: nowrap; }
.rp-n { font-size: 10.5px; opacity: .72; white-space: nowrap; }
.rb-cur {
  display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center;
  padding: 8px 11px; margin-bottom: 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px;
}
.rb-cur b { font-weight: 650; }
.rb-cur .ok { color: var(--teal-d); font-weight: 600; }
.rb-cur .warn { color: var(--amber); font-weight: 600; }
/* 身份证这一格占满整行，避免只显示一半就看不见 */
.pv-wide { grid-column: 1 / -1; }

.pv-submit {
  position: sticky; bottom: -14px; margin: 12px -2px 0; padding: 12px 2px 8px;
  background: linear-gradient(to top, #fff 62%, rgba(255, 255, 255, 0));
  display: flex; gap: 8px; z-index: 3;
}

/* 抽屉内明细表：不换行、可横向滚动 */
.table.tight td, .table.tight th { white-space: nowrap; }
.table.tight td { font-size: 12.5px; }

/* 窄屏（真机手机）：顶栏收成一行，避免挤压 */
@media (max-width: 560px) {
  /* iOS Safari 在输入框字号 <16px 时会自动缩放整页，报号人一点输入框画面就跳 */
  .field input, .field select, .field textarea,
  input, select, textarea { font-size: 16px !important; }
  .topbar { gap: 8px; padding: 0 10px; }
  .brand-text, .brand-line { display: none; }
  .role-switch { margin: 0; gap: 1px; }
  .role-switch .long { display: none; }
  .role-switch .short { display: inline; }
  .role-switch button { padding: 6px 10px; font-size: 12px; }
  [data-act='resetDemo'] { display: none; }
  /* 窄屏：身份下拉已包含全部演示账号，隐藏三端切换按钮，避免顶栏溢出 */
  .role-switch { display: none !important; }
  .identity { padding: 2px 2px 2px 4px; gap: 2px; }
  .identity select { max-width: 148px; font-size: 12px; padding: 4px 6px; }
  .identity .btn { padding: 4px 6px; }
  .phone-wrap { padding: 0; }
  /*
   * 手机上 6 个 KPI 按 2 列要排 3 行、占 218px——首屏还没看到数据就先看完一堆数字。
   * 改 3 列 2 行，每格压到 56px，总共 118px，省出 100px 给车辆列表。
   */
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 7px 8px; }
  .kpi .k { font-size: 10.5px; margin-bottom: 1px; }
  .kpi .v { font-size: 16px; }
  .kpi .v small { font-size: 10.5px; margin-left: 1px; }

  /* 三个跨任务入口（全部待审/全部车辆/运力档案）压成一行 chip：
     竖排三块要 216px，横排一条只要 34px。 */
  .rail-entries { display: flex; gap: 5px; margin-bottom: 6px; }
  .rail-entries .task-item {
    flex: 1 1 0; min-width: 0; margin-bottom: 0; padding: 6px 6px;
    text-align: center; border-radius: 8px;
  }
  .rail-entries .ti-code {
    font-size: 11.5px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-entries .ti-n { font-size: 10px; padding: 0 4px; }

  /* 表格行：手机上 54px 一行太松，压到 40 出头，一屏多两行 */
  .table th { padding: 6px 9px; }
  .table td { padding: 6px 9px; }

  /*
   * 「全部车辆」是查询页不是操作页：手机上把「信息部」「派车单号」两列藏掉，
   * 车牌+线路+司机+阶段+详情刚好一屏，不用左右滑也知道这台车到哪一步了。
   * （宽屏仍显示全部列，查单号去桌面）
   */
  .table-wide th:nth-child(3), .table-wide td:nth-child(3),
  .table-wide th:nth-child(5), .table-wide td:nth-child(5) { display: none; }
  /* 电话在详情里能看，列表上只留司机名——把最后 68px 让出来，整表正好一屏 */
  .table-wide td:nth-child(4) .t-sub { display: none; }
  /* 还差最后 7px：把单元格左右内边距从 9 收到 7，四列正好省出 16 */
  .table-wide th, .table-wide td { padding-left: 7px; padding-right: 7px; }
  /* 只有「详情」一个按钮的表格不需要右侧吸附，省下的宽度留给内容 */
  .table-wide th:last-child, .table-wide td.actions {
    position: static; box-shadow: none; background: transparent;
  }

  /* 任务卡：206px 一张太松，一屏看不下 4 条线路。
     内边距、行距、按钮高度一起收，压到 150 左右，标题和数字都还清楚。 */
  .task-card { padding: 11px 12px; margin-bottom: 8px; }
  .tc-route { font-size: 15.5px; margin-bottom: 4px; }
  .tc-meta { margin-bottom: 7px; gap: 5px; }
  .tc-stat { margin-bottom: 7px; gap: 3px 12px; font-size: 11.5px; }
  .task-card .btn-lg { height: 38px; font-size: 13.5px; }
  .task-card .row.between { margin: 4px 0 7px !important; }

  /* 侧栏再收一档：30vh(253px) 时首屏只剩一行数据，收到 20vh 让任务列表本身可滚 */
  .rail { max-height: 20vh; }
  /* 任务头里的元信息只留前三项（任务号/货种/吨位），
     单价、到货日、负责人手机上不是决策依据，折两行白占 40px */
  .main-head .meta span:nth-child(n + 5) { display: none; }
  .main-head h2 { font-size: 16px; }
  .main-head { padding-bottom: 8px; }
  .section, .card, .desk { min-width: 0; }
  .head-actions { justify-content: flex-start; }
  .section-head { flex-wrap: wrap; }
  /* 任务头：标题和「结束任务/同步数据」并排时，标题被挤成 83px 折两行，
     "昌吉 → 宁夏·银川" 断在中间。手机上改成上下排，标题独占一行。 */
  .main-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .main-head .head-actions { justify-content: flex-end; }
  /* 报号结果表的电话列给足宽度，11 位手机号不能被截成 6 位 */
  .parse-table td:nth-child(4) .cell-in { min-width: 108px; }
  .parse-table th:nth-child(4) { min-width: 108px; }
  /* 点按目标：26px 的按钮在工地上单手点，认可旁边 5px 就是退回 */
  .btn-xs { min-height: 34px; padding-left: 10px; padding-right: 10px; }
  .rowact { gap: 8px; }
}

/* ============================================================
   登录 / 会话
   ============================================================ */

.hidden { display: none !important; }

body.logged-out .topbar { display: none; }
body.logged-out #app { display: none; }

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #E9F6F2 0%, rgba(233, 246, 242, 0) 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 26px 26px 20px;
}

.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.login-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, #12B39C, #0A7A6B);
  display: grid; place-items: center; flex: 0 0 auto;
}
.login-title { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.login-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.login-form { display: flex; flex-direction: column; }
.lf-label { font-size: 12px; color: var(--muted); margin: 10px 0 5px; }
.login-form input {
  height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); background: #fff; }
.login-submit { height: 44px; border-radius: 10px; margin-top: 18px; font-weight: 600; }
.login-submit:disabled { opacity: .7; cursor: default; }

.login-msg {
  margin-top: 12px; padding: 9px 11px; border-radius: 9px;
  background: var(--red-l); border: 1px solid var(--red-b); color: var(--red);
  font-size: 12.5px; line-height: 1.5;
}

.login-demo { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.login-demo-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.login-demo-head b { font-size: 12.5px; color: var(--ink-2); }
.login-demo-head span { font-size: 11.5px; color: var(--muted); }
.login-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.login-acct {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); text-align: left; transition: .14s;
}
.login-acct:hover { border-color: var(--teal); background: var(--teal-l); }
.login-acct-wide { margin-top: 7px; width: 100%; }
.la-name { font-size: 12.5px; font-weight: 550; color: var(--ink); }
.la-role { font-size: 11px; color: var(--muted); }
.login-hint { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.login-foot { margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted); }

.who-role { font-size: 11.5px; color: var(--muted); padding-right: 6px; }

@media (max-width: 560px) {
  .login-card { padding: 22px 18px 16px; }
  .login-demo-grid { grid-template-columns: 1fr; }
}

/* 分页条 */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 0 4px;
}
.pager .btn[disabled] { opacity: .4; cursor: default; }

/* 任务归属筛选（调度员端） */
.task-filter {
  display: flex; gap: 2px; padding: 2px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; margin: 0 0 8px;
}
.task-filter button {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-size: 11.5px; color: var(--muted); padding: 5px 4px;
  border-radius: 7px; font-family: inherit; white-space: nowrap;
}
.task-filter button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 36, .08); }
.task-owner { font-size: 11px; color: var(--muted); }
.task-owner.mine { color: var(--teal-d); }
.rail-item.readonly { opacity: .62; }

/* 只读提示条 */
.readonly-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 12px;
  background: var(--amber-l); border: 1px solid var(--amber-b);
  border-radius: 9px; font-size: 12.5px; color: var(--amber);
}
