:root {
  --navy: #0F2740;
  --navy-2: #16324F;
  --primary: #2D7FF9;
  --primary-d: #1A63D8;
  --green: #1E8E5A;
  --green-l: #E9F7F0;
  --orange: #E08B00;
  --orange-l: #FFF6E5;
  --red: #D94A4A;
  --red-l: #FDEFEF;
  --purple: #7C5CE0;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --text: #16202E;
  --text-2: #5A6879;
  --text-3: #93A0B0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,32,52,.04), 0 4px 16px rgba(16,32,52,.06);
  --shadow-h: 0 4px 24px rgba(16,32,52,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #C8D2DF; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #A9B6C7; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 10%, #1B3E63 0%, #0F2740 55%, #08182A 100%);
  position: relative; overflow: hidden;
}
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
}
.login-wrap::before { width: 460px; height: 460px; background: #2D7FF9; left: -120px; top: -100px; }
.login-wrap::after { width: 380px; height: 380px; background: #1E8E5A; right: -80px; bottom: -120px; }
.login-card {
  position: relative; width: 400px; background: #fff; border-radius: 18px;
  padding: 40px 38px 34px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, #2D7FF9, #0F2740);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.5px;
  box-shadow: 0 8px 20px rgba(45,127,249,.35);
}
.login-card h1 { font-size: 21px; font-weight: 650; letter-spacing: -.3px; }
.login-card .sub { color: var(--text-3); font-size: 12.5px; margin: 6px 0 26px; }
.login-field { margin-bottom: 15px; }
.login-field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.login-field input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 13px; background: #FAFBFD; transition: .16s;
}
.login-field input:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(45,127,249,.12);
}
.login-btn {
  width: 100%; height: 44px; margin-top: 10px; border: 0; border-radius: 9px;
  background: linear-gradient(135deg, #2D7FF9, #1A63D8); color: #fff;
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .18s;
  box-shadow: 0 6px 18px rgba(45,127,249,.3);
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45,127,249,.4); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.login-hint { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-hint p { font-size: 11.5px; color: var(--text-3); line-height: 1.9; }
.login-hint b { color: var(--text-2); font-weight: 600; font-family: ui-monospace, Consolas, monospace; }
.login-err {
  background: var(--red-l); color: var(--red); border-radius: 8px;
  padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px;
}

/* ---------------- 主框架 ---------------- */
.app { display: none; min-height: 100vh; }
.app.on { display: flex; }
.sidebar {
  width: 218px; flex-shrink: 0; background: var(--navy);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand {
  padding: 20px 20px 18px; display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #3D8BFF, #1560C4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.brand-txt strong { display: block; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.brand-txt span { display: block; color: #7E93AC; font-size: 10.5px; margin-top: 1px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { margin-bottom: 14px; }
.nav-group > h4 {
  font-size: 10px; color: #5E7590; font-weight: 600; letter-spacing: .8px;
  padding: 6px 10px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: 8px; color: #B7C6D8; cursor: pointer; font-size: 13px;
  transition: .14s; margin-bottom: 2px; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, rgba(45,127,249,.9), rgba(45,127,249,.55)); color: #fff; font-weight: 500; box-shadow: 0 2px 10px rgba(45,127,249,.35); }
.nav-item .ic { width: 16px; height: 16px; flex-shrink: 0; opacity: .9; }
.nav-item .tag-m {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 9px; font-weight: 600;
}
.side-foot { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.user-line { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2D7FF9, #7C5CE0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600;
}
.user-info strong { display: block; color: #E4EBF3; font-size: 12.5px; font-weight: 500; }
.user-info span { display: block; color: #7E93AC; font-size: 10.5px; }
.logout-btn {
  margin-left: auto; background: none; border: 0; color: #7E93AC;
  cursor: pointer; padding: 4px; border-radius: 6px; display: flex;
}
.logout-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 22px; gap: 14px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.topbar .crumb { color: var(--text-3); font-size: 12.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.content { padding: 20px 22px 40px; flex: 1; }

/* ---------------- 通用组件 ---------------- */
.btn {
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: .14s; white-space: nowrap;
}
.btn:hover { border-color: #C3CFDE; background: #FAFBFD; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: #EEF2F8; }
.btn.danger { color: var(--red); border-color: #F3C9C9; }
.btn.danger:hover { background: var(--red-l); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(227,232,240,.7);
}
.card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .desc { color: var(--text-3); font-size: 11.5px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 1fr 2fr; }
.mb14 { margin-bottom: 14px; }
.mb20 { margin-bottom: 20px; }

/* KPI */
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 26px; font-weight: 650; letter-spacing: -.8px; margin-top: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi .foot { font-size: 11.5px; color: var(--text-3); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.kpi .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.kpi.k-blue .bar { background: var(--primary); }
.kpi.k-green .bar { background: var(--green); }
.kpi.k-orange .bar { background: var(--orange); }
.kpi.k-red .bar { background: var(--red); }
.kpi.k-purple .bar { background: var(--purple); }
.up { color: var(--green); }
.down { color: var(--red); }

/* 表格 */
.tbl-wrap { overflow: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.tbl th {
  background: #F8FAFC; color: var(--text-2); font-weight: 600; font-size: 12px;
  padding: 10px 11px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2;
}
table.tbl th.num, table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl th.ctr, table.tbl td.ctr { text-align: center; }
table.tbl td { padding: 9px 11px; border-bottom: 1px solid #F0F3F8; }
table.tbl tbody tr:hover td { background: #F7FAFE; }
table.tbl tbody tr.total td { background: #F2F6FB; font-weight: 600; border-top: 1px solid var(--line); }
table.tbl tbody tr.off td { color: var(--text-3); background: #FBFCFE; }
table.tbl.compact td, table.tbl.compact th { padding: 6px 8px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; }
.neg { color: var(--red); }
.pos { color: var(--green); }

/* 徽章 */
.bdg {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 20px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.bdg.ok { background: var(--green-l); color: var(--green); }
.bdg.warn { background: var(--orange-l); color: var(--orange); }
.bdg.bad { background: var(--red-l); color: var(--red); }
.bdg.info { background: #EAF2FE; color: var(--primary); }
.bdg.gray { background: #F1F4F8; color: var(--text-2); }
.bdg.purple { background: #F1EDFD; color: var(--purple); }

/* 表单 */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.field .hint { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.inp, select.inp {
  width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 10px; background: #fff; transition: .14s;
}
.inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,127,249,.1); }
select.inp { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393A0B0' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* 录入表格 */
.entry-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.entry-tbl th {
  background: #F8FAFC; padding: 8px; font-size: 11.5px; color: var(--text-2);
  border: 1px solid #E8EDF5; font-weight: 600; position: sticky; top: 0; z-index: 3;
}
.entry-tbl th.corner { position: sticky; left: 0; z-index: 4; }
.entry-tbl td { border: 1px solid #EDF1F7; padding: 0; }
.entry-tbl td.rowh {
  background: #FBFCFE; padding: 6px 10px; font-weight: 500; white-space: nowrap;
  position: sticky; left: 0; z-index: 2; min-width: 128px;
}
.entry-tbl td.rowh small { display: block; color: var(--text-3); font-size: 10.5px; font-weight: 400; }
.entry-tbl td.rowh.weekend { background: #FFF9F0; }
.entry-tbl input.cell {
  width: 100%; height: 34px; border: 0; background: transparent; text-align: right;
  padding: 0 9px; font-variant-numeric: tabular-nums; outline: none;
}
.entry-tbl input.cell:focus { background: #EAF2FE; box-shadow: inset 0 0 0 2px var(--primary); }
.entry-tbl input.cell.filled { background: #FFFDF6; }
.entry-tbl input.cell::placeholder { color: #C9D3E0; }
.entry-tbl td.tot { background: #F8FAFC; text-align: right; padding: 6px 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-tbl tr.sumrow td { background: #EDF3FB; font-weight: 650; }

.scroll-box { max-height: calc(100vh - 300px); overflow: auto; border-radius: 8px; border: 1px solid var(--line); }

/* 分段控制 */
.seg { display: inline-flex; background: #EEF2F8; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 7px;
  cursor: pointer; font-size: 12.5px; color: var(--text-2); font-weight: 500;
}
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,32,52,.12); }

/* 图表 */
.chart-box { padding: 6px 4px 0; }
svg .axis-t { font-size: 10px; fill: #93A0B0; }
svg .bar { transition: opacity .15s; cursor: pointer; }
svg .bar:hover { opacity: .78; }

/* 进度条 */
.prog { height: 6px; background: #EEF2F8; border-radius: 4px; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 4px; }

/* 列表 */
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  border-bottom: 1px solid #F0F3F8;
}
.list-row:last-child { border-bottom: 0; }
.list-row .idx {
  width: 22px; height: 22px; border-radius: 6px; background: #F1F4F8;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-2); font-weight: 600; flex-shrink: 0;
}
.list-row .idx.r1 { background: var(--red-l); color: var(--red); }
.list-row .idx.r2 { background: var(--orange-l); color: var(--orange); }
.list-row .main-t { flex: 1; min-width: 0; }
.list-row .main-t strong { display: block; font-size: 13px; font-weight: 500; }
.list-row .main-t span { display: block; font-size: 11.5px; color: var(--text-3); }
.list-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }

/* 空状态 */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty svg { opacity: .35; margin-bottom: 10px; }
.empty p { font-size: 13px; }

/* 模态 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12,24,40,.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 560px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.modal.wide { width: 860px; }
.modal-head { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { font-size: 15px; font-weight: 600; }
.modal-head .x {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--text-3); padding: 3px; border-radius: 5px; display: flex;
}
.modal-head .x:hover { background: #F1F4F8; color: var(--text); }
.modal-body { padding: 20px; overflow: auto; flex: 1; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; }

/* Toast */
.toast-box { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 9px;
  font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: tin .22s ease; display: flex; align-items: center; gap: 8px; max-width: 360px;
}
.toast.ok { background: #146B45; }
.toast.err { background: #A83232; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* 提示条 */
.notice {
  display: flex; gap: 10px; padding: 12px 15px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.65; align-items: flex-start;
}
.notice.info { background: #EDF4FF; color: #1A4F94; border: 1px solid #D6E6FF; }
.notice.warn { background: var(--orange-l); color: #8A5A00; border: 1px solid #FFE7BC; }
.notice.danger { background: var(--red-l); color: #962929; border: 1px solid #F8D6D6; }
.notice.ok { background: var(--green-l); color: #146B45; border: 1px solid #CBEBDC; }
.notice b { font-weight: 650; }

/* 加载 */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--text-3); gap: 10px; }
.spin {
  width: 18px; height: 18px; border: 2px solid #DCE3EC; border-top-color: var(--primary);
  border-radius: 50%; animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* 详情面板 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.detail-row { display: flex; padding: 7px 0; border-bottom: 1px dashed #EDF1F7; font-size: 13px; }
.detail-row span:first-child { color: var(--text-2); }
.detail-row span:last-child { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.hint-txt { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.sec-title { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin: 22px 0 10px; }
.sec-title:first-child { margin-top: 0; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g23, .g32 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -218px; z-index: 90; transition: left .22s; height: 100vh; }
  .sidebar.open { left: 0; box-shadow: 10px 0 40px rgba(0,0,0,.3); }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; }

/* ============================================================
   基础数据页（views0.js）
   ============================================================ */
.bl-hero { display: flex; align-items: center; gap: 20px; padding: 18px 20px;
  background: linear-gradient(100deg, #F7FAFF 0%, #FFFFFF 55%, #F6FBF8 100%);
  border: 1px solid #E1EAF6; }
.bl-hero-l { flex: 1; min-width: 0; }
.bl-hero-l h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -.2px; color: var(--navy); }
.bl-hero-l p { margin-top: 7px; font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.bl-hero-l p b { color: var(--green); }
.bl-hero-r { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.bl-status { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.bl-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #C8D2DF; }
.bl-status .dot.dirty { background: var(--orange); }
.bl-status .dot.busy { background: var(--primary); animation: blp 1s infinite; }
.bl-status .dot.err { background: var(--red); }
.bl-status .dot:not(.dirty):not(.busy):not(.err) { background: var(--green); }
@keyframes blp { 50% { opacity: .3; } }

.bl-dot { width: 6px; height: 14px; border-radius: 3px; display: inline-block; margin-right: 2px; }

.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px 18px; }
.bl-field label { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.bl-pct { position: relative; display: flex; align-items: center; }
.bl-pct .inp { padding-right: 46px; }
.bl-pct > span { position: absolute; right: 10px; font-size: 11.5px; color: var(--text-3); pointer-events: none; }
.bl-hint { margin-top: 5px; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.bl-in { width: 100%; height: 34px; }

.bl-tbl th.r, .bl-tbl td.r { text-align: right; }
.bl-tbl th { white-space: nowrap; font-size: 11.5px; }
.bl-tbl td { padding: 4px 5px; }
.bl-tbl .idx { color: var(--text-3); font-size: 11px; text-align: center; }
.bl-tbl input.cell-num, .bl-tbl input.cell-txt, .bl-tbl select.cell-sel {
  width: 100%; height: 28px; border: 1px solid transparent; border-radius: 5px;
  background: #FBFCFE; font-size: 12.5px; padding: 0 6px; font-family: inherit; color: var(--text);
}
.bl-tbl input.cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.bl-tbl input.cell-num:hover, .bl-tbl input.cell-txt:hover, .bl-tbl select.cell-sel:hover { border-color: #D6DEEA; background: #fff; }
.bl-tbl input.cell-num:focus, .bl-tbl input.cell-txt:focus, .bl-tbl select.cell-sel:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 2px rgba(45,127,249,.12); }
.bl-tbl td.calc { background: #F6F8FB; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bl-tbl td.calc.neg { color: var(--red); font-weight: 600; background: #FDF3F3; }
.bl-tbl td.calc.warn { color: var(--orange); }
.bl-tbl td.calc.ok { color: var(--green); font-weight: 600; }
.bl-tbl tfoot td { background: #F1F5FA; font-weight: 600; font-size: 12.5px; }

.bl-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; }
.bl-link { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #FCFDFF; text-decoration: none; position: relative;
  transition: .16s; }
.bl-link:hover { border-color: #BBD3F5; background: #F7FAFF; transform: translateY(-1px); box-shadow: var(--shadow); }
.bl-link b { font-size: 12.8px; color: var(--navy); font-weight: 600; }
.bl-link span { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.bl-link i { position: absolute; right: 12px; top: 12px; font-style: normal; color: #B6C4D6; font-size: 13px; }

@media (max-width: 720px) {
  .bl-hero { flex-direction: column; align-items: stretch; }
  .bl-hero-r { align-items: stretch; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 合同与回本速览条 ---- */
.contract-bar { display: flex; align-items: center; gap: 26px; padding: 14px 18px; flex-wrap: wrap; }
.contract-bar.cb-bad { border-left: 4px solid #D94A4A; background: linear-gradient(90deg, rgba(217,74,74,.05), transparent 60%); }
.contract-bar.cb-ok { border-left: 4px solid #1E8E5A; background: linear-gradient(90deg, rgba(30,142,90,.05), transparent 60%); }
.contract-bar .cb-item { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.contract-bar .cb-item .lbl { font-size: 12px; color: var(--muted, #8a94a6); }
.contract-bar .cb-item b { font-size: 17px; }
.contract-bar .cb-item .sm { font-size: 11.5px; }
.contract-bar .cb-verdict { min-width: 220px; flex: 1; }
.contract-bar .cb-verdict b { font-size: 13.5px; }
.contract-bar .cb-verdict.ok b { color: #1E8E5A; }
.contract-bar .cb-verdict.bad b { color: #D94A4A; }
.contract-bar .cb-verdict span { font-size: 12px; color: var(--muted, #8a94a6); }
.contract-bar .cb-more { margin-left: auto; white-space: nowrap; }
@media (max-width: 900px) {
  .contract-bar { gap: 14px; }
  .contract-bar .cb-more { margin-left: 0; }
}

/* ---- 建议值 vs 当前实际 ---- */
.cmp-ok { color: #1E8E5A; }
.cmp-ok .cmp-tick { font-style: normal; font-size: 11px; }
.cmp-bad { color: #B42318; font-weight: 600; }

/* ============================================================
   views3：投资回报 / 风险策略
   ============================================================ */
.muted { color: var(--text-3); }
.sm { font-size: 12px; }
td.c, th.c { text-align: center; }

.bdg.green { background: var(--green-l); color: var(--green); }
.bdg.red { background: var(--red-l); color: var(--red); }
.bdg.orange { background: var(--orange-l); color: var(--orange); }
.bdg.blue { background: #EAF2FE; color: var(--primary); }

table.tbl tbody tr:hover > td { background: #F8FAFD; }
table.tbl tr.hl > td { background: #FFFCF0; }
table.tbl tr.hl > td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
table.tbl.compact th, table.tbl.compact td { font-size: 12.2px; }
table.tbl td b { font-weight: 600; }

.rbar { height: 7px; background: #EEF2F8; border-radius: 5px; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 5px; transition: width .35s ease; }

/* 风险总览 */
.risk-hero { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 20px 24px; align-items: center; }
.risk-gauge { text-align: center; border-right: 1px dashed var(--line); padding-right: 22px; }
.rg-score { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -2.5px; }
.rg-label { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.risk-hero-r h3 { font-size: 14px; margin-bottom: 10px; color: var(--navy); }
.risk-top { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed #EDF1F7; }
.risk-top:last-of-type { border-bottom: 0; }
.rt-no { width: 22px; height: 22px; border-radius: 50%; background: #F1F4F8; color: var(--text-2);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }

/* 全周期六阶段 */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.stage-card { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; background: #FCFDFF; transition: .16s; }
.stage-card:hover { border-color: #BBD3F5; box-shadow: var(--shadow); }
.stage-no { width: 30px; height: 30px; border-radius: 9px; background: #EAF2FE; color: var(--primary);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.stage-body { min-width: 0; }
.stage-body h4 { font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stage-body h4 span { font-size: 11px; color: var(--text-3); font-weight: 400; }
.stage-goal { font-size: 12px; color: var(--primary-d); margin: 5px 0 7px; font-weight: 500; }
.stage-list { margin: 0 0 8px 15px; }
.stage-list li { font-size: 12px; color: var(--text-2); line-height: 1.75; }
.stage-risk { font-size: 11.5px; color: #962929; background: var(--red-l); border-radius: 6px;
  padding: 6px 9px; line-height: 1.6; }
.stage-kpi { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* 决策建议 */
.advice-list { margin: 0 0 0 18px; }
.advice-list li { font-size: 13px; line-height: 1.95; margin-bottom: 9px; padding-left: 3px; color: var(--text); }
.advice-list li::marker { color: var(--primary); font-weight: 700; }

.card-body.bt { border-top: 1px solid #F0F3F8; }

@media (max-width: 860px) {
  .risk-hero { grid-template-columns: 1fr; }
  .risk-gauge { border-right: 0; border-bottom: 1px dashed var(--line); padding: 0 0 14px; }
}

/* ---------- 经营位置 / 智能取数 ---------- */
.loc-card { border: 1px solid #D6E6FF; background: linear-gradient(180deg, #F9FBFF, #FFFFFF 52%); }
.loc-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.loc-chip { background: #F1F4F8; color: var(--text-2); border-radius: 20px; padding: 4px 13px;

  font-size: 12.5px; font-weight: 500; }
.loc-chip.on { background: #EAF2FE; color: var(--primary-d); font-weight: 650; }
.loc-line i { color: #C8D2DF; font-style: normal; font-size: 13px; }
.loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.loc-actions .chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.pull-res { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 15px; }
.pull-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; font-size: 13px; }
.pull-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pull-grid h5 { font-size: 12px; color: var(--text-3); font-weight: 650; margin-bottom: 6px; letter-spacing: .3px; }
.pull-notes { margin-top: 13px; font-size: 12px; color: var(--text-2); line-height: 1.95;
  background: #F8FAFD; border-radius: 8px; padding: 10px 13px; }
.src-line { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.9; }
.src-line a { color: var(--primary); }

@media (max-width: 1180px) {
  .pull-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   精细化管理平台
   ============================================================ */
.grid.g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.grid.g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mt14 { margin-top: 14px; }
.lnk { font-size: 12.5px; color: var(--primary); }

/* 驾驶舱头图 */
.op-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0F2740 0%, #17395C 52%, #1E4E7A 100%);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; color: #fff;
  box-shadow: 0 8px 26px rgba(15,39,64,.18);
}
.op-hero-t { font-size: 18px; font-weight: 650; letter-spacing: .2px; }
.op-hero-s { font-size: 12px; color: #A9C2DB; margin-top: 5px; }
.op-hero-r { display: flex; gap: 26px; }
.op-hero-r div { text-align: right; }
.op-hero-r b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.op-hero-r b.red { color: #FF8A8A; }
.op-hero-r span { font-size: 11.5px; color: #A9C2DB; }

/* 预警 */
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 3px solid #C8D2DF;
  border-radius: 9px; padding: 10px 12px; background: #fff;
}
.alert-item.lv-red { border-left-color: var(--red); background: #FFFBFB; }
.alert-item.lv-amber { border-left-color: var(--orange); background: #FFFDF8; }
.alert-item.lv-blue { border-left-color: var(--primary); }
.ai-lv {
  flex: 0 0 auto; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 5px;
  background: #EEF2F7; color: var(--text-2); margin-top: 1px;
}
.lv-red .ai-lv { background: var(--red-l); color: var(--red); }
.lv-amber .ai-lv { background: var(--orange-l); color: var(--orange); }
.lv-blue .ai-lv { background: #EAF2FE; color: var(--primary-d); }
.ai-main { flex: 1 1 auto; min-width: 0; }
.ai-t { font-size: 13px; font-weight: 620; }
.ai-d { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ai-a { font-size: 11.5px; color: var(--primary-d); margin-top: 3px; }

/* 待办 */
.todo-list { display: flex; flex-direction: column; gap: 6px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.todo-item:last-child { border-bottom: 0; }
.todo-item.od .ti-t { color: var(--red); }
.chk-btn {
  width: 17px; height: 17px; border-radius: 5px; border: 1.6px solid #C8D2DF; background: #fff;
  cursor: pointer; flex: 0 0 auto; transition: .15s;
}
.chk-btn:hover { border-color: var(--green); background: var(--green-l); }
.ti-main { flex: 1 1 auto; min-width: 0; }
.ti-t { font-size: 12.8px; font-weight: 560; }
.ti-m { font-size: 11.5px; color: var(--text-3); }

/* 健康矩阵 */
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 9px; }
.mx-cell { border-radius: 9px; padding: 10px 11px; border: 1px solid var(--line); background: #FAFCFE; }
.mx-cell.green { border-color: #CBEBD9; background: #F4FBF7; }
.mx-cell.amber { border-color: #F6E0B8; background: #FFFBF2; }
.mx-cell.red { border-color: #F3C9C9; background: #FEF7F7; }
.mx-n { font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-v { font-size: 16px; font-weight: 700; margin: 2px 0; }
.mx-s { font-size: 11px; color: var(--text-3); }
.mx-legend { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 11.5px; color: var(--text-3); }
.mx-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.mx-legend i.g { background: #7FD3A6; } .mx-legend i.y { background: #F0C173; } .mx-legend i.r { background: #E88E8E; }
.quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick-row a {
  font-size: 12.5px; padding: 7px 13px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); color: var(--text-2);
}
.quick-row a:hover { border-color: var(--primary); color: var(--primary-d); }

/* 小按钮 */
.mini {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 11.5px; padding: 4px 9px; border-radius: 6px; cursor: pointer; margin-left: 4px;
  transition: .15s; white-space: nowrap;
}
.mini:hover { border-color: var(--primary); color: var(--primary-d); }
.mini.primary { background: #EAF2FE; border-color: #C9DEFE; color: var(--primary-d); font-weight: 600; }
.mini.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-l); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; padding: 9px 15px; font-size: 13px; color: var(--text-2);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 520;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--primary-d); border-bottom-color: var(--primary); font-weight: 650; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff > span { font-size: 11.8px; color: var(--text-2); font-weight: 560; }
.ff.span2 { grid-column: span 2; }
.ff em { font-size: 11px; color: var(--text-3); font-style: normal; line-height: 1.5; }
.ff .inp, .ff textarea { width: 100%; }
.ff textarea { resize: vertical; padding: 7px 10px; }

/* 策略建议 */
.sug-list { display: flex; flex-direction: column; gap: 10px; }
.sug-item { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; background: #FAFCFE; }
.si-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.si-t { font-size: 12.3px; color: var(--text-2); margin: 5px 0 8px; }

/* SOP / 规则 */
.sop { margin: 0; padding-left: 20px; font-size: 12.6px; color: var(--text-2); line-height: 2; }
.sop b { color: var(--text); }
.rule { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; background: #FAFCFE; }
.rule b { font-size: 12.8px; display: block; margin-bottom: 4px; }
.rule p { font-size: 12px; color: var(--text-2); line-height: 1.65; }
.rule.ok { border-color: #CBEBD9; background: #F5FBF8; }
.rule.warn { border-color: #F6E0B8; background: #FFFBF2; }
.rule.bad { border-color: #F3C9C9; background: #FEF7F7; }

/* 五维条 */
.dim-row { display: flex; gap: 6px; align-items: center; }
.dim { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3); }
.dim em { font-style: normal; font-size: 10px; color: var(--text-2); width: 16px; text-align: right; }
.mini-bar { width: 46px; height: 5px; border-radius: 3px; background: #EDF1F7; overflow: hidden; margin-top: 3px; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; }
.dim .mini-bar { width: 26px; margin-top: 0; }

.score-big { font-size: 15px; }
.score-big.ok { color: var(--green); } .score-big.blue { color: var(--primary-d); }
.score-big.warn { color: var(--orange); } .score-big.bad { color: var(--red); }
.warn-t { color: var(--orange) !important; }

/* 情报中心 */
.intel-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #12263A, #1D3E5C 60%, #24506F);
  color: #fff; border-radius: 14px; padding: 20px 24px; margin-bottom: 14px;
  box-shadow: 0 8px 26px rgba(15,39,64,.16);
}
.ih-t { font-size: 17px; font-weight: 650; }
.ih-s { font-size: 11.8px; color: #A9C2DB; margin-top: 5px; }
.ih-r { display: flex; gap: 24px; }
.ih-r div { text-align: right; }
.ih-r b { display: block; font-size: 19px; font-weight: 700; }
.ih-r span { font-size: 11px; color: #A9C2DB; }
.log-list { display: flex; flex-direction: column; gap: 6px; }
.log-item { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-2); }
.log-item b { font-weight: 600; color: var(--text); }
.log-item em { font-style: normal; color: var(--text-3); font-size: 11.5px; margin-left: auto; }

@media (max-width: 1280px) {
  .grid.g5, .grid.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid.g5, .grid.g6, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-hero-r { gap: 16px; }
  .dim-row { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .grid.g5, .grid.g6, .form-grid { grid-template-columns: 1fr; }
  .ff.span2 { grid-column: span 1; }
}

/* ============================================================
   每日流水填报 · 学校核对
   ============================================================ */
table.tbl th.r, table.tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- 填报页顶部 ---- */
.dr-hero {
  display: flex; gap: 24px; justify-content: space-between; align-items: flex-start;
  background: radial-gradient(900px 320px at 10% -10%, #1E4468 0%, #12304E 46%, #0E2540 100%);
  color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 14px;
  position: relative; overflow: hidden; box-shadow: 0 12px 32px rgba(15, 39, 64, .18);
}
.dr-hero::after {
  content: ''; position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 127, 249, .45), transparent 65%);
}
.dr-hero-l { position: relative; z-index: 1; min-width: 0; }
.dr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.dr-sub { font-size: 12.5px; color: #A9C2DB; margin-top: 8px; display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
.dr-sub b { font-size: 15px; color: #fff; font-weight: 600; }
.dr-amt { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.dr-amt small { font-size: 11.5px; color: #9FB8D2; }
.dr-amt b {
  font-size: 34px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #C9E0FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dr-foot { font-size: 11.5px; color: #93AECB; margin-top: 9px; }
.dr-hero-r { display: flex; flex-direction: column; gap: 10px; align-items: stretch; position: relative; z-index: 1; min-width: 240px; }
.dr-sel { display: flex; flex-direction: column; gap: 4px; }
.dr-sel > span { font-size: 11px; color: #9FB8D2; }
.dr-sel .inp { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.dr-sel .inp::placeholder { color: rgba(255, 255, 255, .45); }
.dr-sel select.inp option { color: #16202E; }
.dr-nav { display: flex; gap: 6px; }
.dr-hero .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #DCE9F7; }
.dr-hero .btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---- 渠道输入 ---- */
.ch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ch-card {
  display: flex; flex-direction: column; gap: 4px; background: #F8FAFD;
  border: 1px solid #E9EEF6; border-radius: 11px; padding: 9px 11px; transition: .15s;
}
.ch-card:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(45, 127, 249, .1); }
.ch-name { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.ch-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.ch-inp {
  border: none; background: transparent; font-size: 17px; font-weight: 600;
  padding: 2px 0; width: 100%; font-variant-numeric: tabular-nums; border-radius: 0;
}
.ch-inp:focus { outline: none; box-shadow: none; }
.ch-inp:disabled { color: var(--text-3); }
.ch-card { cursor: text; }
.ch-card:hover { border-color: #B9CCE9; background: #F3F7FD; }
.ch-row { display: flex; align-items: baseline; gap: 3px; min-height: 26px; border-bottom: 1px dashed #DCE4EF; }
.ch-card:focus-within .ch-row { border-bottom-color: var(--primary); border-bottom-style: solid; }
.ch-yen { font-size: 13px; font-weight: 600; color: var(--text-3); }
.ch-inp::placeholder { color: #A9B6C9; font-size: 12.5px; font-weight: 400; }
.ch-card.off { opacity: .6; cursor: not-allowed; }
.ch-card.off:hover { border-color: #E9EEF6; background: #F8FAFD; }

.dr-line { display: grid; grid-template-columns: 110px 120px minmax(0, 1fr); gap: 12px; margin-top: 15px; align-items: end; }
.dr-line .ff.span2 { grid-column: auto; }

.dr-dev-box { margin-top: 15px; border-top: 1px dashed #E7EDF5; padding-top: 12px; }
.dr-dev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--text-2); }
.dr-dev-list { display: flex; flex-direction: column; gap: 7px; }
.dr-dev { display: grid; grid-template-columns: minmax(0, 1fr) 150px 52px; gap: 7px; }
.dr-dev .mini { height: 32px; }

/* 收款渠道管理弹窗 */
.cm-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.cm-row .inp { flex: 1; min-width: 0; }
.cm-row .mini { flex: none; height: 32px; min-width: 88px; }
.cm-row .ch-dot { width: 9px; height: 9px; }
.cm-row select.inp { flex: none; width: 110px; }
.cm-sec { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 9px; }
.cm-sec h4 { margin: 0; font-size: 13.5px; font-weight: 600; }

.dr-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0F3F8; flex-wrap: wrap; }
.dr-actions .btn.primary { padding: 9px 22px; }
.dr-tip { font-size: 11.5px; color: var(--text-3); }

/* ---- 填报日历 ---- */
.dcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.dcal-cell {
  position: relative; border-radius: 8px; background: #F7F9FC; border: 1px solid transparent;
  min-height: 44px; padding: 4px 5px; cursor: pointer; transition: .12s; overflow: hidden;
}
.dcal-cell i { font-style: normal; font-size: 10.5px; color: #8A97A8; }
.dcal-cell em {
  display: block; font-style: normal; font-size: 9.5px; font-weight: 600; color: #22303F;
  margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dcal-cell.ok { background: var(--green-l); border-color: #C9EBD9; }
.dcal-cell.ok i { color: var(--green); }
.dcal-cell.warn { background: var(--orange-l); border-color: #FFE3B3; }
.dcal-cell.warn i { color: #9A6600; }
.dcal-cell.bad { background: var(--red-l); border-color: #F8D6D6; }
.dcal-cell.bad i { color: var(--red); }
.dcal-cell.missing { background: #FAFBFD; border-color: #EDF1F7; }
.dcal-cell.future { opacity: .4; cursor: default; }
.dcal-cell.on { box-shadow: inset 0 0 0 2px var(--primary); border-color: var(--primary); }
.dcal-cell:hover { transform: translateY(-1px); }

.dr-mstat {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 13px; padding-top: 12px; border-top: 1px dashed #EDF1F7;
}
.dr-mstat div { text-align: center; }
.dr-mstat b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dr-mstat span { font-size: 10.5px; color: var(--text-3); }

/* ---- 核对台 ---- */
.ck-tbl td { vertical-align: middle; }
.ck-s b { font-size: 13px; }
.ck-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.ck-ch { font-size: 11px; color: var(--text-2); line-height: 1.9; }
.ck-ch i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.ck-amount {
  width: 100%; text-align: right; font-variant-numeric: tabular-nums;
  padding: 6px 9px; font-weight: 600; border-radius: 8px;
}
.ck-amount:disabled { background: #F7F9FC; color: var(--text-2); }
.ck-op { white-space: nowrap; }
.ck-op .mini { margin-right: 4px; }
.ck-by { font-size: 10.5px; color: var(--text-3); display: inline-block; margin-right: 6px; line-height: 1.35; }
.ck-by em { font-style: normal; color: #B6C0CD; }
table.tbl tr.row-diff > td { background: #FFF9F9; }
table.tbl tr.row-diff:hover > td { background: #FFF4F4; }

/* ---- 热力图 ---- */
.heat-wrap { overflow: auto; padding: 12px 14px; }
.heat-tbl { border-collapse: separate; border-spacing: 2px; }
.heat-tbl th.hd { width: 16px; height: 16px; color: #A6B2C1; font-weight: 500; text-align: center; font-size: 9px; }
.heat-tbl th.hk { text-align: left; padding-right: 10px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }
.heat-tbl td.hk { font-size: 11.5px; white-space: nowrap; padding-right: 10px; position: sticky; left: 0; background: #fff; z-index: 1; }
.heat-tbl td.hk .muted { font-size: 10px; margin-left: 5px; }
.hc { width: 16px; height: 16px; border-radius: 3px; background: #EDF1F7; cursor: pointer; transition: .1s; }
.hc:hover { transform: scale(1.25); }
.hc.ok { background: var(--green); }
.hc.warn { background: #F5B942; }
.hc.bad { background: var(--red); }
.hc.missing { background: #E3E9F2; }
.hc.future { background: #FAFBFD; cursor: default; }

.miss-tag { display: inline-block; background: var(--red-l); color: #C0392B; border-radius: 5px; padding: 1px 5px; font-size: 10.5px; margin: 1px; }
.copy-box {
  background: #F7FAFE; border: 1px dashed #C9DEFE; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #1A4F94; line-height: 1.75;
}

@media (max-width: 900px) {
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dr-line { grid-template-columns: 1fr 1fr; }
  .dr-line .ff.span2 { grid-column: span 2; }
}
@media (max-width: 760px) {
  .dr-hero { flex-direction: column; padding: 18px; gap: 16px; }
  .dr-hero-r { min-width: 0; width: 100%; }
  .dr-amt b { font-size: 28px; }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-mstat { grid-template-columns: repeat(3, 1fr); }
  .dr-dev { grid-template-columns: minmax(0, 1fr) 110px 46px; }
}

/* ============================================================
   打卡与在岗轨迹
   ============================================================ */
.grid.g2b { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid.g2c { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

.mini-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini-kpi span { display: block; font-size: 11.5px; color: var(--text-3); }
.mini-kpi b { display: block; font-size: 23px; font-weight: 650; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mini-kpi b em { font-size: 12px; font-style: normal; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.mini-kpi i { display: block; font-size: 11px; font-style: normal; color: var(--text-3); margin-top: 4px; }

/* ---- 打卡 hero ---- */
.cl-hero {
  display: flex; gap: 26px; justify-content: space-between; align-items: stretch;
  background: radial-gradient(900px 320px at 8% -20%, #1E4468 0%, #12304E 46%, #0E2540 100%);
  color: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 14px;
  position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 39, 64, .2);
}
.cl-hero.live { background: radial-gradient(900px 320px at 8% -20%, #175844 0%, #10413A 46%, #0D3129 100%); }
.cl-hero::after {
  content: ''; position: absolute; right: -80px; top: -100px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 208, 127, .28), transparent 66%); pointer-events: none;
}
.cl-hero-l { position: relative; z-index: 1; min-width: 0; flex: 1; }
.cl-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: #6B7C90; flex: 0 0 auto; }
.cl-dot.on { background: #35D07F; animation: clPulse 1.9s infinite; }
@keyframes clPulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, .55); }
  70% { box-shadow: 0 0 0 13px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}
.cl-state { font-size: 12.5px; color: #B9D3EC; font-weight: 500; }
.cl-hero.live .cl-state { color: #A8E8C6; }
.cl-name { font-size: 15px; font-weight: 600; padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .2); }
.cl-rule { font-size: 11.5px; color: #90AAC6; margin-left: auto; }
.cl-big { margin-top: 15px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cl-big b {
  font-size: 34px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #C9E0FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cl-hero.live .cl-big b { background: linear-gradient(180deg, #fff, #B7EFD2); -webkit-background-clip: text; background-clip: text; }
.cl-big small { font-size: 11.5px; color: #93AECB; }
.cl-meta { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #A9C2DB; }
.cl-meta b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-gps { margin-top: 10px; font-size: 11.5px; color: #9FB8D2; display: flex; align-items: center; gap: 6px; }
.cl-gps.ok { color: #7FE0AD; }
.cl-gps.bad { color: #FFB4B0; }
.cl-dist { margin-top: 5px; font-size: 11.5px; color: #93AECB; }

.cl-hero-r { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; min-width: 236px; justify-content: center; }
.cl-btn {
  width: 100%; height: 56px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 16px; font-weight: 650; letter-spacing: .5px; transition: .15s;
}
.cl-btn.primary { background: #fff; color: #12304E; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.cl-btn.primary:hover { background: #EAF2FE; transform: translateY(-1px); }
.cl-btn.danger { background: #E24B4A; color: #fff; box-shadow: 0 6px 18px rgba(226, 75, 74, .32); }
.cl-btn.danger:hover { background: #D0392F; transform: translateY(-1px); }
.cl-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.cl-sub { display: flex; gap: 7px; }
.cl-sub .btn { flex: 1; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #DCE9F7; }
.cl-sub .btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.cl-done {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 56px;
  border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .22);
  font-size: 14px; color: #A8E8C6; font-weight: 500;
}
.cl-dev { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.cl-dev .inp { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; height: 30px; }
.cl-dev span { font-size: 10.5px; color: #8FA9C4; }

/* ---- 轨迹图 ---- */
.tk-wrap { padding: 8px 10px 0; }
.tk-svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.tk-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 260px; color: var(--text-3); font-size: 12.5px; background: #FBFCFE; border-radius: 10px;
}
.tk-empty b { font-size: 13.5px; color: var(--text-2); font-weight: 550; }
.tk-none { padding: 26px 4px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.tk-legend { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.tk-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 7px; }
.tk-stat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 12px !important; padding-bottom: 14px !important; }
.tk-stat div { text-align: center; }
.tk-stat b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tk-stat span { font-size: 10.5px; color: var(--text-3); }

.tk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.tk-bar-l { display: flex; align-items: center; gap: 10px; }
.tk-bar-t { font-size: 14px; font-weight: 600; }
.tk-bar-l .inp { height: 30px; width: 148px; }
.tk-bar-r { display: flex; gap: 6px; flex-wrap: wrap; }
.live-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--green-l); color: #0F6E46;
  border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 500;
}
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: #12A66A; animation: clPulse 1.9s infinite; }

.tk-play { display: flex; align-items: center; gap: 12px; padding: 12px 14px !important; flex-wrap: wrap; }
.tk-range { flex: 1; min-width: 120px; -webkit-appearance: none; height: 4px; border-radius: 3px; background: #E3E9F2; outline: none; }
.tk-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(45, 127, 249, .5); cursor: pointer;
}

/* ---- 时间轴 ---- */
.tl { position: relative; padding-left: 2px; }
.tl-row { display: grid; grid-template-columns: 52px 12px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; position: relative; }
.tl-row:not(:last-child)::before {
  content: ''; position: absolute; left: 57px; top: 24px; bottom: -7px; width: 1px; background: #E7EDF5;
}
.tl-time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: #C8D2DF; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #DCE3EC; }
.tl-dot.in { background: #12A66A; box-shadow: 0 0 0 1.5px #BDE8D2; }
.tl-dot.out { background: #E24B4A; box-shadow: 0 0 0 1.5px #F6C9C9; }
.tl-dot.stop { background: #F5A623; box-shadow: 0 0 0 1.5px #FBE0B4; }
.tl-dot.live { background: #12A66A; animation: clPulse 1.9s infinite; }
.tl-body b { font-size: 12.5px; font-weight: 550; display: block; }
.tl-body i { font-size: 11px; font-style: normal; color: var(--text-3); }

/* ---- 停留点 ---- */
.stop-list { display: flex; flex-direction: column; gap: 1px; }
.stop-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #F0F3F8; }
.stop-row:last-child { border-bottom: none; }
.stop-time { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 44px; }
.stop-time i { display: block; font-style: normal; color: var(--text-3); font-size: 10.5px; }
.stop-main b { font-size: 12.5px; font-weight: 550; display: block; }
.stop-main i { font-size: 11px; font-style: normal; color: var(--text-3); }

/* ---- 异常 ---- */
.anom-row {
  display: flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 12px; color: var(--text-2);
  border-bottom: 1px dashed #F2F5F9;
}
.anom-row:last-child { border-bottom: none; }
.anom-row.bad { color: #A32D2D; }
.anom-d { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 34px; }
.anom-t { color: var(--text-2); font-size: 11.5px; }

/* ---- 考勤矩阵 ---- */
.at-wrap { overflow: auto; }
.at-matrix { border-collapse: separate; border-spacing: 2px; font-size: 11px; padding: 10px; }
.at-matrix th { font-size: 10.5px; color: var(--text-3); font-weight: 500; text-align: center; padding: 2px 0; min-width: 22px; }
.at-matrix th.future { opacity: .35; }
.at-matrix th.at-name { text-align: left; min-width: 88px; position: sticky; left: 0; background: #fff; z-index: 1; }
.at-matrix th.at-sum { min-width: 42px; color: var(--text-2); }
.at-matrix td.at-name {
  font-size: 12px; text-align: left; position: sticky; left: 0; background: #fff; z-index: 1;
  padding-right: 10px; white-space: nowrap;
}
.at-matrix td.at-name b { font-weight: 550; }
.at-matrix td.at-name i { display: block; font-style: normal; font-size: 10px; color: var(--text-3); }
.at-cell {
  width: 22px; height: 24px; border-radius: 4px; text-align: center; vertical-align: middle;
  background: #F3F6FA; color: #fff; font-size: 9px; cursor: default;
}
.at-cell span { display: block; transform: scale(.86); font-variant-numeric: tabular-nums; }
.at-cell.ok { background: #12A66A; }
.at-cell.warn { background: #F5A623; }
.at-cell.bad { background: #E24B4A; }
.at-cell.miss { background: #E3E9F2; }
.at-cell.future { background: #FAFBFD; }
.at-matrix td.at-sum { text-align: right; padding-right: 8px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.at-matrix td.at-sum b { color: var(--text); font-weight: 600; }

@media (max-width: 1100px) {
  .grid.g2b, .grid.g2c { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cl-hero { flex-direction: column; padding: 18px; gap: 16px; }
  .cl-hero-r { min-width: 0; width: 100%; }
  .cl-big b { font-size: 28px; }
  .cl-rule { margin-left: 0; }
  .tk-stat { grid-template-columns: repeat(3, 1fr); }
  .tk-bar { flex-direction: column; align-items: flex-start; }
  .cl-btn { height: 52px; }
}

/* ============ v1.3.1 钉钉式打卡确认弹窗 ============ */
.pk-locating { display: flex; align-items: center; gap: 10px; padding: 26px 8px;
  font-size: 14px; color: #5A6B80; justify-content: center; }
.pk-spin { width: 20px; height: 20px; border: 2.5px solid #D8E2EE; border-top-color: #2D7FF9;
  border-radius: 50%; animation: pkSpin .8s linear infinite; flex: none; }
@keyframes pkSpin { to { transform: rotate(360deg); } }
.pk-verdict { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 12px 14px; text-align: center; border-radius: 10px; }
.pk-verdict.ok   { background: #F0FAF5; color: #0B7A4D; }
.pk-verdict.warn { background: #FFF7EC; color: #B26B00; }
.pk-verdict b { font-size: 15px; }
.pk-verdict span { font-size: 12px; color: #7A8A9D; }

/* ============ v1.3.2 侧边栏统一分类 + 终端自动适配 ============ */
.nav-group { margin-bottom: 6px; position: relative; }
.nav-group > h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: #63798F; font-weight: 700; letter-spacing: 1.5px;
  padding: 9px 12px 5px;
}
.nav-group > h4::before {
  content: ''; width: 3px; height: 10px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #3D8BFF, #1560C4); opacity: .75;
}
.nav-gb {
  font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0;
  color: #7FB0F5; background: rgba(45,127,249,.16); border: 1px solid rgba(45,127,249,.28);
  padding: 0 5px; border-radius: 7px; line-height: 15px;
}
.nav-item { padding: 8px 11px; border-radius: 9px; }
.nav-group:last-of-type { padding-bottom: 6px; }

/* 登录页：终端识别提示 */
.login-device {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: #2E7D5B; background: #EEF9F3; border: 1px solid #CBE9DB;
  border-radius: 8px; padding: 7px 10px; font-weight: 500;
}

/* ============ 移动 / 平板环境自动适配（登录即识别） ============ */
body.m-env .topbar h2 { font-size: 16px; }
body.m-env .crumb { display: none; }
body.m-env .content { padding: 12px 12px 90px; }
body.m-env .nav-item { padding: 12px 12px; font-size: 14.5px; border-radius: 11px; }
body.m-env .nav-item .ic { width: 19px; height: 19px; }
body.m-env .nav-group > h4 { font-size: 11px; padding: 10px 12px 6px; }
body.m-env .side-foot { padding-bottom: 22px; }
body.m-env .sidebar { width: 262px; }
body[data-env="phone"] .brand-txt span { display: none; }
body.m-env .btn { min-height: 40px; }
body.m-env input.inp, body.m-env select.inp { min-height: 40px; font-size: 15px; }
body.m-env .topbar { padding: 10px 12px; }
/* 手机：登录卡片撑满、提示精简 */
body[data-env="phone"] .login-card { padding: 26px 22px; margin: 0 16px; width: auto; }
body[data-env="phone"] .login-hint { display: none; }

/* ============ v1.3.3 手机端深度适配（纯媒体查询兜底，不依赖 JS 识别） ============ */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  /* 顶栏：压缩成单行，面包屑收进次行 */
  .topbar { height: auto; min-height: 50px; flex-wrap: wrap; padding: 8px 12px; gap: 8px 10px; }
  .topbar h2 { font-size: 15px; }
  .topbar .crumb { display: none; }
  .topbar-right { margin-left: auto; gap: 6px; }
  .topbar-right .btn { padding: 0 10px; font-size: 12px; height: 32px; }
  .content { padding: 12px 12px 88px; }
  /* 打卡 hero：窄屏纵向排布 */
  .cl-hero { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 14px; }
  .cl-hero-l { min-width: 0; }
  .cl-top { flex-wrap: wrap; gap: 6px 10px; }
  .cl-name, .cl-rule { white-space: normal; }
  .cl-big b { font-size: 40px; }
  .cl-meta { flex-wrap: wrap; gap: 6px 12px; }
  .cl-hero-r { display: flex; flex-direction: column; gap: 10px; }
  .cl-btn { min-height: 52px; font-size: 16px; border-radius: 14px; }
  .cl-sub { display: flex; gap: 8px; }
  .cl-sub .btn { flex: 1; min-height: 40px; justify-content: center; }
  .cl-dev { width: 100%; }
  .cl-dev .inp { min-height: 40px; }
  /* 轨迹图与统计 */
  .tk-wrap, .tk-svg { width: 100%; max-width: 100%; }
  .tk-svg svg { width: 100%; height: auto; display: block; }
  .tk-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tk-stat > div { min-width: 0; }
  .tk-stat b { font-size: 15px; word-break: break-all; }
  /* 回放条纵向 */
  .tk-play { flex-wrap: wrap; gap: 8px; }
  .tk-range { flex: 1 1 100%; }
  /* 时间轴/明细行 */
  .tl-row { padding: 9px 4px; }
  .stop-row, .anom-row { padding: 9px 6px; }
  /* 通用表格横向滚动防撑破 */
  .tbl-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl { min-width: 520px; }
  .at-matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 网格全部单列 */
  .grid.g2, .grid.g2b, .grid.g2c, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .mini-kpi { grid-template-columns: repeat(2, 1fr); }
  /* 弹窗全宽 */
  .modal-box { width: calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important; max-height: 82vh; overflow-y: auto; }
  .pk-verdict { padding: 16px 10px 10px; }
}
/* 超窄屏（<380px）进一步收缩 */
@media (max-width: 379px) {
  .cl-big b { font-size: 34px; }
  .tk-stat { grid-template-columns: repeat(2, 1fr); }
  .topbar-right .btn { padding: 0 8px; }
}

/* 抽屉遮罩 + 关闭位移修正（v1.3.3） */
.nav-mask { position: fixed; inset: 0; background: rgba(9, 24, 44, .5); opacity: 0;
  pointer-events: none; transition: opacity .22s; z-index: 89; }
.nav-mask.on { opacity: 1; pointer-events: auto; }
body.m-env .sidebar { width: 262px; left: -262px; }
body.m-env .sidebar.open { left: 0; }

/* ============ v1.3.4 自定义类别 + 导入导出 ============ */
.cb-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #FCFDFF; }
.cb-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.cb-head .cb-title { max-width: 320px; font-weight: 600; }
.cb-head .btn { margin-left: auto; }
.cb-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cb-row .inp:first-child { max-width: 260px; }
.cb-row .inp[data-cbf="value"] { flex: 1; min-width: 160px; }
.imp-tip { font-size: 12.5px; color: #5A6B80; background: #F0F6FF; border: 1px solid #D5E5FA;
  border-radius: 8px; padding: 10px 12px; line-height: 1.7; margin-bottom: 10px; }

/* ============ v1.3.5 数据导入导出中心 ============ */
.dio-hero { display: flex; gap: 18px; padding: 18px 20px; align-items: stretch;
  background: linear-gradient(135deg, #F5FAFF 0%, #EEF5FF 60%, #F7FBFF 100%);
  border: 1px solid #D8E7FA; }
.dio-hero-l { flex: 1; min-width: 0; }
.dio-hero-l h3 { font-size: 16.5px; margin-bottom: 6px; color: #10314F; }
.dio-hero-l p { font-size: 12.8px; color: #52657A; line-height: 1.75; max-width: 720px; }
.dio-hero-btns { display: flex; gap: 9px; flex-wrap: wrap; margin: 12px 0 8px; }
.dio-hero-tip { font-size: 11.8px; color: #7A8A9D !important; }
.dio-hero-r { display: flex; gap: 10px; align-items: center; flex: none; }
.dio-hero-r > div { min-width: 92px; text-align: center; background: #fff; border: 1px solid #DCE9F8;
  border-radius: 10px; padding: 12px 10px; }
.dio-hero-r b { display: block; font-size: 19px; color: #1560C4; font-weight: 700; line-height: 1.2; }
.dio-hero-r span { font-size: 11px; color: #7A8A9D; }

.dio-list { padding: 4px 0 6px; }
.dio-row { display: flex; gap: 12px; align-items: center; padding: 10px 4px;
  border-bottom: 1px dashed var(--line); }
.dio-row:last-child { border-bottom: 0; }
.dio-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dio-info b { font-size: 13.5px; color: #1B2C3F; font-weight: 600; min-width: 74px; }
.dio-info i { font-style: normal; font-size: 11.8px; color: #7A8A9D; flex: 1; min-width: 160px; }
.dio-cnt { font-size: 11.5px; font-weight: 600; color: #1560C4; background: #EAF3FF;
  border: 1px solid #D3E5FA; border-radius: 7px; padding: 0 7px; line-height: 18px; }
.dio-cnt.zero { color: #8496A8; background: #F3F6F9; border-color: #E4EBF2; }
.dio-btns { display: flex; gap: 7px; align-items: center; flex: none; }
.dio-ro { font-size: 11px; color: #93A0B0; background: #F4F7FA; border: 1px dashed #DCE4EC;
  border-radius: 7px; padding: 3px 9px; }

.dio-imp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 9px; }
.dio-ta { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12.3px;
  line-height: 1.65; resize: vertical; }
.dio-ok { color: #0B7A4D; font-weight: 600; }
.dio-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.dio-view > div { display: flex; justify-content: space-between; gap: 10px;
  background: #F7FAFD; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; }
.dio-view span { color: #7A8A9D; }
.dio-view b { color: #1B2C3F; }
.dio-errs { margin: 8px 0 0 18px; font-size: 12.5px; color: #B23B3B; line-height: 1.8; }
.dio-safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dio-safe > div { background: #FAFCFE; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.dio-safe b { display: block; font-size: 12.8px; color: #1B2C3F; margin-bottom: 4px; }
.dio-safe span { font-size: 12px; color: #6B7C8F; line-height: 1.7; }

@media (max-width: 760px) {
  .dio-hero { flex-direction: column; padding: 14px; }
  .dio-hero-r { justify-content: space-between; }
  .dio-hero-r > div { flex: 1; min-width: 0; }
  .dio-hero-btns .btn { flex: 1 1 100%; justify-content: center; min-height: 42px; }
  .dio-row { flex-wrap: wrap; gap: 8px; }
  .dio-info { flex: 1 1 100%; }
  .dio-info i { flex: 1 1 100%; }
  .dio-btns { width: 100%; }
  .dio-btns .btn { flex: 1; justify-content: center; min-height: 38px; }
  .dio-view, .dio-safe { grid-template-columns: 1fr; }
  .dio-hero-tip { display: none; }
}

/* ============================================================
   v1.4.0  档口订货 · 订货汇总 · 库存与盘点
   ============================================================ */
.od-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.od-hero-t { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.od-hero-s { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.od-hero-r { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.od-hero-r .ff { min-width: 140px; }
.od-hero-r .ff span { font-size: 11.5px; color: var(--text-3); }
.od-stall-fix { height: 34px; line-height: 34px; padding: 0 12px; background: #F2F6FD; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }

.od-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.od-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.od-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 20px; padding: 4px 11px; font-size: 12px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: #B9CCE9; color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.od-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.od-good { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; transition: .15s; background: #FBFCFE; }
.od-good:hover { border-color: var(--primary); background: #F4F8FF; transform: translateY(-1px); }
.od-good:active { transform: scale(.98); }
.od-good-n { font-weight: 650; font-size: 13px; }
.od-good-m { font-size: 11.5px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.od-good-s { font-size: 11px; color: var(--text-3); }

.od-lines { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.od-line { display: grid; grid-template-columns: minmax(0, 1fr) 108px 78px 74px; grid-template-areas: "n step amt del" "note note note note"; gap: 6px 8px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE; }
.od-ln-name { grid-area: n; }
.od-ln-name b { font-size: 13px; }
.od-ln-name span { display: block; }
.od-step { grid-area: step; display: flex; align-items: center; gap: 4px; }
.od-step .mini { width: 24px; padding: 2px 0; text-align: center; }
.od-qty { width: 46px; text-align: center; padding: 3px 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.od-amt { grid-area: amt; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.od-note { grid-area: note; font-size: 12px; padding: 4px 8px; }
.od-line [data-step="del"] { grid-area: del; }
.od-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.od-sum { font-size: 13px; color: var(--text-2); }
.od-sum b { font-size: 21px; color: var(--text); font-variant-numeric: tabular-nums; margin-left: 4px; }
.od-chip { display: inline-block; background: #F2F6FD; border: 1px solid #E1EAF7; color: var(--text-2); border-radius: 20px; padding: 1px 8px; font-size: 11.5px; margin: 1px 2px 1px 0; }
.od-chip b { color: var(--text); }

/* 汇总 */
.os-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 13px 16px; }
.os-filter .ff { min-width: 126px; }
.os-filter .ff span { font-size: 11.5px; color: var(--text-3); }
.os-quick { display: flex; gap: 6px; padding-bottom: 3px; }
.os-exp { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.os-stalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.os-stall .card-head h3 { font-size: 14px; }
.os-items { display: flex; flex-direction: column; gap: 6px; }
.os-item { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; background: #FAFBFE; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.os-item span { flex: 0 0 auto; }
.os-item b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.os-note { font-style: normal; font-size: 11px; color: var(--orange); width: 100%; }
.os-item { flex-wrap: wrap; }

/* 库存 */
.stk-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.stk-form .ff span { font-size: 11.5px; color: var(--text-3); }
.stk-form .ff.span2 { grid-column: span 2; }
.stk-count-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.stk-count-foot > div { display: flex; gap: 8px; }
.stk-real { width: 84px; text-align: right; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.tbl td .stk-real { display: inline-block; }

@media (max-width: 1100px) {
  .od-grid { grid-template-columns: minmax(0, 1fr); }
  .stk-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .od-line { grid-template-columns: minmax(0, 1fr) 100px 70px; grid-template-areas: "n step amt" "note note note" "del del del"; }
  .od-line [data-step="del"] { justify-self: end; }
  .od-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .od-lines { max-height: none; }
  .stk-form { grid-template-columns: minmax(0, 1fr); }
  .stk-form .ff.span2 { grid-column: auto; }
  .os-filter .ff, .od-hero-r .ff { min-width: 0; width: 100%; }
  .os-exp { margin-left: 0; width: 100%; }
  .os-stalls { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   v1.4.1  六、合同与投资：字段删减 + 自定义投入字段
   ============================================================ */
.bl-field label { position: relative; padding-right: 20px; }
.fld-x {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; line-height: 14px; text-align: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--text-3); font-size: 10px; cursor: pointer; opacity: 0; transition: .15s;
}
.bl-field:hover .fld-x { opacity: 1; }
.fld-x:hover { background: #FDECEC; border-color: #E8A0A0; color: #C23B3B; }
.cx-field { border: 1px dashed #C9B6EE; border-radius: 10px; padding: 8px 10px 9px; background: #FBF9FE; }
.cx-field .bl-pct .ci-unit { width: 44px; padding: 3px 6px; font-size: 12px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ci-ops { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ci-ops .chk { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.ci-del { border: none; background: none; color: #C23B3B; font-size: 11.5px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ci-del:hover { background: #FDECEC; }
.cx-add-row { display: flex; align-items: center; gap: 12px; padding: 6px 2px; }
.ci-restore { border: none; background: none; color: var(--primary); cursor: pointer; font-size: 12px; padding: 0 2px; text-decoration: underline; }
.ci-restore:hover { color: #1E4FA3; }

/* ============================================================
   v1.4.4  登录欢迎弹窗 · 版本更新提示条 · 通知公告页
   ============================================================ */
/* 版本更新提示条 */
.upd-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 999;
  background: var(--navy); color: #fff; border-radius: 30px;
  padding: 9px 12px 9px 16px; box-shadow: 0 8px 28px rgba(15,39,64,.32);
  font-size: 13px; animation: updIn .32s ease;
}
@keyframes updIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.upd-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); }
.upd-bar b { font-weight: 650; }
.upd-txt { color: rgba(255,255,255,.72); font-size: 12.5px; }
.upd-bar .btn { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
.upd-bar .btn:hover { background: rgba(255,255,255,.24); }

/* 欢迎弹窗 */
.wl { display: flex; flex-direction: column; gap: 14px; }
.wl-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 4px 2px 12px; border-bottom: 1px dashed var(--line);
}
.wl-hi { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.wl-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.wl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wl-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 20px; background: #F1F4F8; color: var(--text-2); }
.wl-tag.g { background: var(--green-l); color: var(--green); }
.wl-tag.b { background: #EAF2FE; color: var(--primary); }
.wl-tag.p { background: #F1EDFD; color: var(--purple); }

.wl-sec { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #FCFDFF; }
.wl-sec.wl-empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 20px; }
.wl-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 11px; flex-wrap: wrap; }
.wl-h > b { color: var(--text); font-weight: 650; }
.wl-dot { width: 7px; height: 7px; border-radius: 2px; }
.wl-dot.g { background: var(--green); }
.wl-dot.b { background: var(--primary); }
.wl-dot.p { background: var(--purple); }
.wl-auto { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: #F1F4F8; color: var(--text-3); font-weight: 400; }
.wl-cnt { font-size: 11px; color: var(--red); background: var(--red-l); padding: 1px 7px; border-radius: 20px; font-weight: 500; }
.wl-link { margin-left: auto; font-size: 12px; color: var(--primary); cursor: pointer; }
.wl-link:hover { text-decoration: underline; }

.wl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wl-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.wl-kpi span { font-size: 11.5px; color: var(--text-3); display: block; }
.wl-kpi b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.4px; display: block; margin-top: 2px; }
.wl-kpi b em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 500; }
.wl-kpi i { font-style: normal; font-size: 11px; color: var(--text-3); display: block; margin-top: 3px; }
.wl-kpi i.up { color: var(--green); }
.wl-kpi i.down { color: var(--red); }

.wl-bar { height: 6px; border-radius: 4px; background: #EDF1F7; margin: 11px 0 7px; overflow: hidden; }
.wl-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4B93FB, #1E8E5A); transition: width .5s; }
.wl-mini { font-size: 11.5px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wl-mini b { font-variant-numeric: tabular-nums; }
.wl-mini .ok { color: var(--green); }
.wl-mini .warn { color: var(--orange); }
.wl-mini .bad { color: var(--red); }
.wl-top { margin-left: auto; color: var(--text-3); }

.wl-hints { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.wl-hint { font-size: 12px; padding: 6px 10px; border-radius: 7px; background: #F5F8FC; color: var(--text-2); border-left: 2px solid #C9D6E6; }
.wl-hint.warn { background: var(--orange-l); border-left-color: var(--orange); color: #8A5A00; }
.wl-hint.ok { background: var(--green-l); border-left-color: var(--green); color: #14603C; }
.wl-hint.info { background: #EAF2FE; border-left-color: var(--primary); color: #1A4E9E; }

.wl-nts, .wl-ups { display: flex; flex-direction: column; gap: 9px; }
.wl-nt { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.wl-nt > div { min-width: 0; }
.wl-nt b { font-size: 13px; display: block; }
.wl-nt p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.62; }
.wl-time { font-size: 11px; color: var(--text-3); display: block; margin-top: 5px; }
.wl-up { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.wl-up-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.wl-up-h b { font-size: 13px; color: var(--purple); }
.wl-up-h em { font-style: normal; margin-left: auto; font-size: 11px; color: var(--text-3); }
.wl-up ul { margin: 6px 0 0 16px; }
.wl-up li { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.wl-off { margin-right: auto; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; cursor: pointer; }

/* 通知公告页 */
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #FCFDFF; }
.nt-row.off { opacity: .62; background: #FAFBFC; }
.nt-main { min-width: 0; flex: 1; }
.nt-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nt-h b { font-size: 13.5px; }
.nt-body { font-size: 12.5px; color: var(--text-2); line-height: 1.72; margin-top: 6px; }
.nt-meta { font-size: 11px; color: var(--text-3); margin-top: 7px; }
.nt-ops { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; }
.nt-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 28px 0; }

.nt-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 6px; }
.nt-tl { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.nt-tl:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.nt-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex: 0 0 auto; box-shadow: 0 0 0 3px #EAF2FE; }
.nt-tl-dot.fix { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }
.nt-tl-body { min-width: 0; }
.nt-tl-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.nt-tl-h b { color: var(--text); }
.nt-tl-h em { font-style: normal; font-size: 11px; color: var(--text-3); }
.nt-tl ul { margin: 6px 0 0 16px; }
.nt-tl li { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }

@media (max-width: 760px) {
  .wl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-hero { align-items: flex-start; }
  .wl-top { margin-left: 0; width: 100%; }
  .nt-row { flex-direction: column; }
  .nt-ops { width: 100%; justify-content: flex-end; }
  .upd-bar { left: 12px; right: 12px; bottom: 12px; transform: none; flex-wrap: wrap; border-radius: 14px; }
  .upd-bar .upd-txt { width: 100%; }
  .upd-bar .btn { margin-left: auto; }
  @keyframes updIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

/* ============ 按人员权限设置 ============ */
.pm-list { margin-top: 12px; max-height: 52vh; overflow: auto; border: 1px solid #E4EAF2; border-radius: 10px; }
.pm-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px dashed #EDF1F7; cursor: pointer; margin: 0; }
.pm-row:last-child { border-bottom: none; }
.pm-row:hover { background: #F6F9FD; }
.pm-row.ov { background: #F3F8FF; }
.pm-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2D7FF9; flex: none; }
.pm-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pm-t b { font-size: 13px; color: #2A3648; }
.pm-t i { font-style: normal; font-size: 11.5px; color: #8A97A8; }

/* ============ 在线地图围栏编辑器（腾讯地图） ============ */
.fm-map-wrap { position: relative; margin-top: 12px; }
.fm-map-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #F6F9FD; color: #8A97A8; font-size: 13px; border-radius: 10px; }

/* ============ v1.5.0 专业进销存：业务单据 / 签字 / 打印 ============ */
.dc-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dc-step { font-size: 12.5px; color: #2A3648; font-weight: 600; background: #F2F6FC; border: 1px solid #DDE7F3; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.dc-flow i { font-style: normal; color: #9FB2C8; }
.dc-flow .right { margin-left: auto; }
.dc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dc-form-grid .ff { margin: 0; }
.dc-form-grid .ff.span2 { grid-column: span 2; }
.dc-lines .inp { padding: 6px 8px; font-size: 12.5px; }
.dc-line-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.dc-line-foot .right { margin-left: auto; font-size: 13px; }
.dc-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.dc-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dc-filter .right { margin-left: auto; }
.tabs.sm .tab { font-size: 12px; padding: 5px 11px; }
.row-btns { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .dc-form-grid { grid-template-columns: 1fr; }
  .dc-form-grid .ff.span2 { grid-column: span 1; }
  .dc-flow .right { margin-left: 0; width: 100%; }
  .dc-flow .right .btn { width: 100%; }
  .dc-line-foot { flex-wrap: wrap; }
  .dc-line-foot .right { margin-left: 0; width: 100%; text-align: right; }
}

/* ============================================================
   供应链中枢 v1.6.0（驾驶舱 / 工作台 / 汇总 / 我的）
   ============================================================ */
.sc-dark { background: linear-gradient(135deg,#07131F 0%,#0B1E2E 55%,#0A1826 100%); border:1px solid #163A4A; border-radius:14px; padding:18px 20px; color:#D7F6FF; box-shadow:0 12px 28px rgba(8,24,38,.18); }
.sc-hero-top { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px dashed #1C4759; }
.sc-eyebrow { font-size:10.5px; letter-spacing:1.6px; color:#4BC8C8; margin-bottom:7px; font-weight:700; }
.sc-dark h2 { margin:0; font-size:19px; color:#EAFEFF; font-weight:650; letter-spacing:.4px; }
.sc-tag { display:inline-block; font-size:10px; padding:3px 8px; margin-left:8px; border:1px solid #37C6A6; border-radius:3px; color:#6BE7C6; vertical-align:2px; letter-spacing:.5px; }
.sc-sub { font-size:12px; color:#79A6B7; margin-top:6px; }
.sc-hero-right { display:flex; gap:8px; align-items:center; }
.sc-sel { background:#102C3C; color:#BFE9F2; border-color:#245A6C; width:140px; height:32px; }
.sc-btn { background:#12384A; color:#8EE9E0; border-color:#2A7180; }
.sc-btn:hover { background:#184A60; }
.sc-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding-top:15px; }
.sc-kpi { position:relative; border:1px solid #1E5366; border-radius:8px; padding:13px 14px; background:rgba(11,39,55,.75); min-height:96px; }
.sc-kpi::before,.sc-kpi::after { content:''; position:absolute; width:9px; height:9px; border-color:#38D6D0; border-style:solid; }
.sc-kpi::before { left:-1px; top:-1px; border-width:1px 0 0 1px; }
.sc-kpi::after { right:-1px; bottom:-1px; border-width:0 1px 1px 0; }
.sc-kpi span { display:block; font-size:10px; letter-spacing:1.2px; color:#6AA9BA; margin-bottom:8px; }
.sc-kpi b { display:block; font-size:25px; color:#D6FFFF; font-weight:700; line-height:1.2; }
.sc-kpi.green b { color:#5DF2A5; } .sc-kpi.cyan b { color:#4FE3E0; } .sc-kpi.orange b { color:#FFB15C; }
.sc-kpi i { display:block; font-style:normal; font-size:11px; color:#8BB7C5; margin-top:7px; }
.sc-subhead { font-size:12px; font-weight:700; color:var(--navy); letter-spacing:.3px; margin:2px 0 10px; display:flex; justify-content:space-between; align-items:center; }
.sc-subhead span { font-size:10px; font-weight:600; color:var(--text-3); letter-spacing:.6px; }
.sc-dark .sc-subhead { color:#BFEFF6; }
.sc-bar-row { margin-bottom:11px; }
.sc-bar-top { font-size:12px; color:var(--text); display:flex; align-items:baseline; gap:7px; margin-bottom:5px; }
.sc-bar-top b { color:var(--primary-d); font-size:11px; }
.sc-bar-top em { margin-left:auto; font-style:normal; color:var(--text-2); font-size:11.5px; font-weight:600; }
.sc-bar { height:7px; background:#EAF0F6; border-radius:4px; overflow:hidden; }
.sc-bar i { display:block; height:100%; background:linear-gradient(90deg,#0D9FB5,#45D7D0); border-radius:4px; }
.sc-rank { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:12.5px; }
.sc-rank b { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:3px; background:#FFF1D6; color:#B46B00; font-size:11px; }
.sc-rank.alt b { background:#E3F5F2; color:#0D8C7A; }
.sc-rank em { margin-left:auto; font-style:normal; font-weight:650; color:var(--primary-d); }
.sc-actions { display:flex; gap:9px; flex-wrap:wrap; }
.sc-flow { display:flex; flex-direction:column; }
.sc-flow-row { display:flex; align-items:center; gap:8px; padding:8px 2px; border-bottom:1px dashed var(--line); font-size:12px; }
.sc-flow-row b { min-width:76px; color:var(--text); }
.sc-flow-row span { color:var(--text-2); }
.sc-flow-row em { margin-left:auto; font-style:normal; font-weight:600; color:var(--primary-d); }
.sc-flow-row i { font-style:normal; color:var(--text-3); font-size:11px; min-width:78px; text-align:right; }
.sc-flow-dot { width:7px; height:7px; border-radius:50%; background:#2D7FFF; flex:none; }
.sc-flow-dot.receive { background:#14B8A6; } .sc-flow-dot.move { background:#E08B00; }
.sc-alert { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; margin-bottom:8px; color:var(--text); text-decoration:none; font-size:12.5px; }
.sc-alert:hover { border-color:var(--primary); background:#F6FAFF; }
.sc-alert b { margin-left:auto; color:var(--red); font-size:16px; }
.sc-alert i { font-style:normal; color:var(--text-3); }
.sc-hub-title { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:13px; }
.sc-hub-title h2 { margin:0; font-size:17px; color:var(--navy); }
.sc-hub-title p { margin:4px 0 0; font-size:12px; color:var(--text-2); }
.sc-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.sc-quick-i { display:flex; flex-direction:column; gap:3px; padding:12px 10px; border:1px solid var(--line); border-radius:9px; text-decoration:none; color:var(--text); background:#fff; transition:.14s; }
.sc-quick-i:hover { border-color:var(--primary); background:#F7FBFF; transform:translateY(-1px); }
.sc-quick-i span { font-size:19px; } .sc-quick-i b { font-size:12.5px; } .sc-quick-i i { font-style:normal; font-size:10.5px; color:var(--text-3); line-height:1.4; }
.sc-searchbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-bottom:11px; }
.sc-searchbar .inp { max-width:300px; }
.sc-cats { display:flex; gap:5px; flex-wrap:wrap; }
.sc-filter { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.sc-filter .right { margin-left:auto; display:flex; gap:7px; flex-wrap:wrap; }
.sc-filter .ff.check { flex-direction:row; align-items:center; gap:6px; padding-bottom:7px; }
.sc-dim { display:flex; gap:4px; padding-bottom:2px; }
.sc-mine-head { display:flex; align-items:center; gap:13px; padding:16px 18px; background:linear-gradient(100deg,#fff 0%,#F4F8FC 100%); border:1px solid var(--line); border-radius:12px; }
.sc-avatar { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--primary-d); color:#fff; font-size:20px; font-weight:700; }
.sc-mine-head h2 { margin:0; font-size:18px; color:var(--navy); }
.sc-mine-head p { margin:4px 0 0; font-size:12px; color:var(--text-2); }
.sc-mine-head .right { margin-left:auto; }
.sc-mine-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.sc-mine-card { display:flex; align-items:center; gap:10px; padding:13px 12px; border:1px solid var(--line); border-radius:9px; text-decoration:none; color:var(--text); }
.sc-mine-card:hover { border-color:var(--primary); background:#F7FBFF; }
.sc-mine-card>span { font-size:20px; } .sc-mine-card b { display:block; font-size:12.5px; } .sc-mine-card i { display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-top:3px; line-height:1.4; }
.sc-mine-card em { margin-left:auto; font-style:normal; color:var(--text-3); font-size:18px; }
.mt10 { margin-top:10px; } .mt14 { margin-top:14px; }
@media (max-width: 1100px) {
  .sc-kpis { grid-template-columns:repeat(2,1fr); }
  .sc-quick,.sc-mine-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .sc-dark { padding:14px; }
  .sc-dark h2 { font-size:16px; }
  .sc-kpis { grid-template-columns:repeat(2,1fr); gap:8px; }
  .sc-kpi { min-height:84px; padding:10px; }
  .sc-kpi b { font-size:20px; }
  .sc-hero-right { width:100%; }
  .sc-sel { flex:1; width:auto; }
  .sc-quick,.sc-mine-grid { grid-template-columns:repeat(2,1fr); }
  .sc-filter .right { margin-left:0; }
  .sc-searchbar .inp { max-width:none; flex:1 1 100%; }
}

/* 移动端底部五 Tab（大屏 / 下单 / 订单 / 汇总 / 我的） */
.sc-tabbar { display:none; }
@media (max-width: 1100px) {
  .sc-tabbar { position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex;
    height:58px; background:#fff; border-top:1px solid var(--line); box-shadow:0 -3px 14px rgba(20,35,55,.08); }
  .sc-tabbar .sc-tab { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    color:var(--text-3); text-decoration:none; font-size:10.5px; font-weight:600; }
  .sc-tabbar .sc-tab svg { width:20px; height:20px; }
  .sc-tabbar .sc-tab.on { color:var(--red); }
  .app .content { padding-bottom:74px; }
  .card-head { flex-wrap:wrap; gap:6px 10px; }
  .card-head h3 { white-space:nowrap; flex:none; }
  .card-head .desc { flex:1 1 100%; white-space:normal; line-height:1.45; }
  .card-head .right { width:100%; margin-left:0; flex-wrap:wrap; justify-content:flex-start; }
}

/* 订货页：常用星标 + 行内特殊需求备注（v1.6.0） */
.od-good-wrap { position:relative; border:1px solid #E5ECF4; border-radius:9px; padding:9px 10px; background:#fff; }
.od-good-wrap:hover { border-color:#2D7FFF; }
.od-good-wrap .od-good { border:0; padding:0; box-shadow:none; background:transparent; cursor:pointer; padding-right:26px; }
.od-star { position:absolute; right:7px; top:7px; border:0; background:transparent; color:#B7C2D0; font-size:18px; line-height:1; cursor:pointer; padding:2px 4px; }
.od-star.on { color:#F2A900; }
.od-qty-badge { display:inline-block; margin-left:7px; padding:1px 7px; border-radius:10px; background:#E7F4FF; color:#1668C7; font-size:11px; font-weight:700; }
.od-inline-note { width:100%; margin-top:7px; height:30px; border:1px dashed #D7E1EE; border-radius:6px; padding:0 9px; font-size:12px; color:var(--text); background:#FBFDFF; }
.od-inline-note:focus { border-color:#2D7FFF; outline:none; background:#fff; }

/* ===== v1.8.0 拍照找产品 / 下单页搜索为主 ===== */
.od-photo-btn { white-space: nowrap; flex-shrink: 0; }
.od-good-photo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid #DCE5F0; cursor: zoom-in; flex-shrink: 0; }
.od-good { display: flex; gap: 8px; align-items: center; }
.od-good .od-good-wrap-inner, .od-good > div:not(.od-good-n):not(.od-good-m):not(.od-good-s) { min-width: 0; }
.od-good-n, .od-good-m, .od-good-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.od-ln-photo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid #DCE5F0; cursor: zoom-in; flex-shrink: 0; }
.od-ln-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.od-ln-name > div { min-width: 0; display: flex; flex-direction: column; }
.po-list { border: 1px solid #E4EAF2; border-radius: 10px; overflow: hidden; }
.po-item { padding: 9px 12px; border-bottom: 1px solid #EEF2F8; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.po-item:last-child { border-bottom: none; }
.po-item:hover { background: #F2F7FF; }
.po-item b { font-size: 13.5px; color: #1B2733; }
.od-cats { max-height: 66px; overflow-y: auto; }
