* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin:0; padding:0; height:100%; min-height:100vh; min-height:100dvh; }
body {
  font-family: -apple-system, "PingFang SC", "Songti SC", "Microsoft YaHei", sans-serif;
  background:#f2f4f7; color:#1f2329; font-size:15px; line-height:1.5;
  overscroll-behavior-y: auto;
}
.hidden { display:none !important; }
button, 
/* 手机日期：页面显示固定 YYYY-MM-DD，点击由透明原生控件唤起系统选择器 */
.date-wrap { position: relative; display: block; min-width: 0; }
.date-wrap .date-display { background: #fff !important; cursor: pointer; }
.date-wrap .date-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  border: 0; padding: 0; cursor: pointer; z-index: 1; -webkit-appearance: auto !important; appearance: auto !important; }
.date-line { display: flex; align-items: center; gap: 8px; }
.date-line .date-wrap { flex: 1; }
.date-line .dp-input { flex: 1; min-width: 0; }
.date-clear { flex: none; border: 1px solid #dcdfe6; background: #fff; color: #646a73; border-radius: 10px;
  padding: 0 12px; height: 44px; font-size: 13px; cursor: pointer; }
.date-clear:active { background: #f2f4f7; }

input, select, textarea { font-family: inherit; font-size:15px; }
input, select, textarea {
  width:100%; padding:10px 12px; border:1px solid #dcdfe6; border-radius:10px;
  background:#fff; color:#1f2329; outline:none; -webkit-appearance:none; appearance:none;
}
textarea { min-height:70px; resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:#1e5eff; box-shadow:0 0 0 3px rgba(30,94,255,.12); }

/* 登录 */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
  background:linear-gradient(160deg,#1e5eff,#0b2a6b); }
.login-box { width:100%; max-width:380px; background:#fff; border-radius:18px; padding:28px 22px 22px;
  box-shadow:0 20px 50px rgba(0,0,0,.25); }
.login-logo { width:68px; height:68px; border-radius:16px; background:#fff; object-fit:cover;
  display:block; border:1px solid #eef0f3; box-shadow:0 3px 10px rgba(15,42,107,.10); margin:0 auto 12px; }
.login-box h1 { text-align:center; margin:0 0 22px; font-size:21px; }
.login-sub { text-align:center; color:#8a9099; margin:0 0 20px; font-size:13px; }
.field { margin-bottom:14px; }
.field label { display:block; font-size:13px; color:#646a73; margin-bottom:5px; }
.pwd-wrap { position:relative; }
.pwd-wrap input { width:100%; padding-right:56px; box-sizing:border-box; }
.pwd-wrap-icon input { padding-right:48px; }
.pwd-toggle { position:absolute; right:4px; top:50%; transform:translateY(-50%); border:none; background:transparent;
  color:#1e5eff; font-size:13px; padding:8px 10px; cursor:pointer; font-weight:500; }
.pwd-toggle:active { color:#1648c4; }
.pwd-toggle-icon { right:5px; width:38px; height:38px; padding:0; display:flex; align-items:center; justify-content:center;
  border-radius:8px; color:#8a9099; }
.pwd-toggle-icon svg { width:20px; height:20px; display:block; }
.pwd-toggle-icon.on { color:#1e5eff; }
.login-links { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:2px; margin-top:12px; }
.login-reset, .login-register { border:none; background:transparent; color:#1e5eff; font-size:13.5px; padding:6px 10px; cursor:pointer; }
.login-register { font-weight:500; }
.err { color:#d93026; font-size:13px; text-align:center; margin-top:12px; min-height:18px; }
.login-tip { margin-top:18px; border-top:1px dashed #e5e6eb; padding-top:12px; }
.tip-title { font-size:12px; color:#8a9099; margin-bottom:8px; }
.acct-list { display:flex; flex-wrap:wrap; gap:6px; }
.acct-chip { border:1px solid #dcdfe6; border-radius:14px; padding:4px 10px; font-size:12px; color:#4e5969; background:#f7f8fa; }
.acct-chip:active { background:#e8f0ff; border-color:#1e5eff; color:#1e5eff; }

/* 顶栏 */
.topbar { position:fixed; top:0; left:0; right:0; height:52px; background:#fff; border-bottom:1px solid #e5e6eb;
  display:flex; align-items:center; justify-content:space-between; padding:0 14px; padding-top:env(safe-area-inset-top);
  height:calc(52px + env(safe-area-inset-top)); z-index:50; }
.tb-title { font-size:17px; font-weight:600; }
.tb-right { display:flex; align-items:center; gap:10px; }
.tb-user { font-size:13px; color:#646a73; }
.tb-btn { border:none; background:#f2f4f7; color:#646a73; border-radius:8px; padding:5px 10px; font-size:13px; }

.content { padding:calc(60px + env(safe-area-inset-top)) 12px 76px; }

/* 底部导航 */
.tabbar { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid #e5e6eb;
  display:flex; padding-bottom:env(safe-area-inset-bottom); z-index:50; }
.tab { flex:1; text-align:center; padding:7px 0 6px; color:#8a9099; font-size:11px; transition:color .15s, background .15s; }
.tab .ti { font-size:20px; display:block; line-height:1.2; }
.tab.active { color:#fff; font-weight:600; background:#1e5eff; border-radius:0; }
.tab.active .ti { transform: translateY(-1px); }
.tab.active .badge { background:#fff; color:#1e5eff; }
.tab .badge { position:absolute; transform:translate(14px,-6px); background:#d93026; color:#fff;
  font-size:10px; border-radius:9px; padding:0 5px; min-width:16px; }

/* 卡片 */
.card { background:#fff; border-radius:14px; padding:14px; margin-bottom:12px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.card-h { font-weight:600; font-size:15px; margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; }
.card-h .more { font-size:13px; color:#8a9099; font-weight:400; }
.grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.grid > .btn, .grid3 > .btn { width:100%; }
.stat { background:#fff; border-radius:14px; padding:13px 12px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:background .15s, box-shadow .15s, transform .1s; }
.stat .n { font-size:22px; font-weight:700; color:#1f2329; }
.stat .l { font-size:12px; color:#8a9099; margin-top:2px; }
.stat.warn .n { color:#d93026; }
.stat:active { transform:scale(.97); }

/* 点击选中：整块蓝底白字（工作台卡片、快捷操作按钮、各页单据卡片） */
.sel { background:#1e5eff !important; color:#fff !important; border-radius:8px; }
.sel * { color:#fff !important; }
.stat.sel, .item.sel, .btn.sel {
  background:#1e5eff !important; border-color:#1e5eff !important; color:#fff !important;
  box-shadow:0 0 0 2px #1e5eff, 0 6px 14px rgba(30,94,255,.25);
}
.stat.sel *, .item.sel *, .btn.sel * { color:#fff !important; }
.stat.sel .tag, .item.sel .tag, .item.sel .tag.urgent { background:rgba(255,255,255,.22) !important; border-color:transparent !important; }
.item.sel .item-code, .item.sel .item-title, .item.sel .item-meta { color:#fff !important; }

/* 列表 */
.item { background:#fff; border-radius:12px; padding:12px 13px; margin-bottom:9px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.item:active { background:#fafbfc; }
.item-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.item-code { font-size:12px; color:#8a9099; font-family: ui-monospace,Menlo,monospace; }
.item-title { font-weight:600; font-size:14.5px; margin-bottom:4px; }
.item-meta { font-size:12.5px; color:#646a73; display:flex; flex-wrap:wrap; gap:10px; }
.item-amount { font-weight:700; color:#1f2329; }

.tag { display:inline-block; font-size:11.5px; padding:2px 8px; border-radius:20px; line-height:1.7; white-space:nowrap; }
.tag.draft{background:#f2f4f7;color:#646a73} .tag.pending{background:#fff7e6;color:#d48806} .tag.pending_sup{background:#fff7e6;color:#d48806}
.tag.pending_boss{background:#e8f0ff;color:#1e5eff} .tag.approved{background:#e6f4ea;color:#00875a}
.tag.shipped{background:#e6f4ea;color:#00875a} .tag.rejected{background:#fdecea;color:#d93026}
.tag.canceled{background:#f2f4f7;color:#8a9099}
.tag.urgent{background:#fdecea;color:#d93026;margin-left:6px}
.tag.low{background:#fff7e6;color:#d48806} .tag.ok{background:#e6f4ea;color:#00875a}

/* 按钮 */
.btn { border:none; border-radius:10px; padding:11px 16px; font-size:15px; font-weight:500; }
.btn-primary { background:#1e5eff; color:#fff; }
.btn-primary:active { background:#1648c4; }
.btn-danger { background:#d93026; color:#fff; }
.btn-ghost { background:#f2f4f7; color:#4e5969; }
.btn-outline { background:#fff; border:1px solid #dcdfe6; color:#4e5969; }
.btn-block { width:100%; display:block; }
.btn-sm { padding:7px 12px; font-size:13px; border-radius:8px; }
.btn-row { display:flex; gap:8px; margin-top:10px; }
.btn-row .btn { flex:1; }

/* 表单 */
.form-row { margin-bottom:12px; }
.form-row label { display:block; font-size:13px; color:#646a73; margin-bottom:5px; }
.form-row label .req { color:#d93026; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.check { display:flex; flex-wrap:wrap; gap:8px; }
.check label { display:flex; align-items:center; gap:4px; font-size:14px; color:#1f2329; margin:0; padding:7px 11px;
  border:1px solid #dcdfe6; border-radius:9px; background:#fff; }
.check input { width:auto; }

/* 货物明细行 */
.gline { display:grid; grid-template-columns:56px 56px 30px; gap:6px; margin-bottom:7px; align-items:center; }
.gline input { padding:8px 7px; font-size:14px; }
.gline .del { border:none; background:#fdecea; color:#d93026; border-radius:8px; height:34px; font-size:16px; }
.gsum { text-align:right; font-size:13.5px; color:#646a73; padding:6px 0 2px; }

/* 横向滚动表格（库存明细/在制品）：只保留横向滚动，纵向交给整页滚动；表头由浮动吸顶条负责 */
.tbl-scroll { width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
  margin:0 -2px; padding-bottom:env(safe-area-inset-bottom); overscroll-behavior:auto; }
.tbl-scroll thead th { position:sticky; top:0; z-index:3; background:#f7f8fa; }
.inv-tbl, .wip-tbl { font-size:12px; min-width:560px; }
.inv-tbl th, .inv-tbl td { white-space:nowrap; padding:7px 9px; }

/* 详情 */
.kv { display:flex; padding:7px 0; border-bottom:1px solid #f0f1f3; font-size:14px; }
.kv:last-child { border-bottom:none; }
.kv .k { color:#8a9099; width:96px; flex:none; }
.kv .v { flex:1; word-break:break-all; }

/* 时间线 */
.tl { position:relative; padding-left:20px; }
.tl:before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:#e5e6eb; }
.tl-i { position:relative; padding-bottom:14px; }
.tl-i:last-child { padding-bottom:0; }
.tl-i:before { content:''; position:absolute; left:-18px; top:4px; width:10px; height:10px; border-radius:50%; background:#c9cdd4; border:2px solid #fff; }
.tl-i.done:before { background:#00b578; }
.tl-i.warn:before { background:#d93026; }
.tl-t { font-size:13.5px; font-weight:600; }
.tl-s { font-size:12px; color:#8a9099; }

/* 空态 */
.empty { text-align:center; color:#a6abb3; padding:50px 20px; font-size:14px; }
.wip-search-note { background:#fff7e6; border:1px solid #ffe1a8; color:#8a5a00; border-radius:10px; padding:9px 12px; font-size:13px; margin-bottom:10px; }
.empty .e-ico { font-size:40px; display:block; margin-bottom:10px; opacity:.5; }

/* 弹层 */
.sheet-wrap { position:fixed; inset:0; z-index:100; }
.sheet-mask { position:absolute; inset:0; background:rgba(0,0,0,.45); }
.sheet { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:18px 18px 0 0;
  max-height:94vh; display:flex; flex-direction:column; animation:up .22s ease; }
@keyframes up { from { transform:translateY(100%);} to {transform:translateY(0);} }
.sheet-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid #eee;
  font-weight:600; padding-top:calc(14px + env(safe-area-inset-bottom)); }
.sheet-close { border:none; background:#f2f4f7; border-radius:50%; width:28px; height:28px; color:#646a73; }
.sheet-body { overflow-y:auto; padding:14px 16px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }

.toast { position:fixed; left:50%; top:24%; transform:translateX(-50%); background:rgba(0,0,0,.82); color:#fff;
  padding:10px 18px; border-radius:10px; font-size:14px; z-index:200; max-width:80%; text-align:center; }

.pill-row { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-bottom:10px; }
.pill { flex:none; padding:6px 14px; border-radius:18px; background:#fff; color:#646a73; font-size:13.5px; border:1px solid #e5e6eb; }
.pill.active { background:#1e5eff; color:#fff; border-color:#1e5eff; }

.searchbar { display:flex; gap:8px; margin-bottom:10px; }
.searchbar input { flex:1; }
.list-row { padding:11px 0; border-bottom:1px solid #f0f1f3; }
.list-row:last-child { border:none; }
.lr-top { display:flex; justify-content:space-between; align-items:flex-start; }
.lr-name { font-weight:600; }
.lr-sub { font-size:12px; color:#8a9099; margin-top:3px; }
.lr-qty { font-weight:700; color:#1e5eff; font-size:15px; white-space:nowrap; }

.mini-table { width:100%; border-collapse:collapse; font-size:13px; }
.mini-table th, .mini-table td { border:1px solid #e5e6eb; padding:7px 6px; text-align:left; }
.mini-table th { background:#f7f8fa; font-weight:500; color:#646a73; font-size:12.5px; }
.mini-table td.num { text-align:right; white-space:nowrap; }
.mini-table th.num, .mini-table th.nw, .mini-table td.nw { white-space:nowrap; }
.total-row { display:flex; justify-content:space-between; align-items:center; background:#f7f8fa; border:1px solid #e5e6eb;
  border-top:none; padding:9px 10px; font-weight:600; font-size:14px; }

.pick-row { display:flex; align-items:center; gap:10px; padding:10px 8px; margin:0 -8px; border-bottom:1px solid #f0f1f3; border-radius:8px; cursor:pointer; }
.pick-row.on { background:#eef4ff; }
.pk-check { flex:none; width:20px; height:20px; border:1px solid #d0d3d9; border-radius:50%; display:flex; align-items:center; justify-content:center; color:transparent; font-size:12px; font-weight:700; background:#fff; }
.pk-check.on { background:#1e5eff; border-color:#1e5eff; color:#fff; }
.pk-bar { display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:#8a9099; margin:2px 0 6px; }
.pk-name { min-width:0; }
.pk-qty { flex:none; display:flex; align-items:center; border:1px solid #dfe2e8; border-radius:8px; overflow:hidden; background:#fff; }
.pk-qty button { width:26px; height:30px; border:none; background:#f5f7fa; color:#1e5eff; font-size:16px; line-height:1; padding:0; }
.pk-qty input { width:38px; height:30px; border:none; border-left:1px solid #eef0f3; border-right:1px solid #eef0f3; text-align:center; font-size:13px; padding:0; margin:0; -moz-appearance:textfield; }
.pk-qty input::-webkit-outer-spin-button, .pk-qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.pk-qty button:disabled { opacity:.35; background:#f5f7fa; }
.pk-no { flex:none; font-size:12px; color:#a0a5ad; padding:0 6px; }
.pk-out { opacity:.55; cursor:not-allowed; }
.pk-actions { position:sticky; bottom:0; z-index:2; margin:8px -16px -20px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #eef0f3; }
/* 库存批量选择：搜索/计数固定，零件列表独立滚动，底部按钮作为独立栏固定在弹窗底部 */
.sheet-wrap.sheet-picker .sheet-body { padding:0; overflow:hidden; display:flex; flex-direction:column; flex:1; min-height:0; }
.pk-top { flex:none; padding:14px 16px 0; }
.pk-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:0 16px 12px; }
.pk-scroll::-webkit-scrollbar { width:6px; }
.pk-scroll::-webkit-scrollbar-thumb { background:#d5d9e0; border-radius:3px; }
.sheet-wrap.sheet-picker .pk-actions { position:static; flex:none; margin:0; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #eef0f3; z-index:3; }
.pick-row .pk-name { flex:1; }
.pick-row .pk-name b { font-size:14px; }
.pick-row .pk-name span { display:block; font-size:12px; color:#8a9099; margin-top:2px; }
.pick-btn { flex:none; border:1px solid #1e5eff; color:#1e5eff; background:#fff; border-radius:8px; padding:6px 12px; font-size:13px; }
.pick-btn.chosen { background:#1e5eff; color:#fff; }

.photo-preview { max-width:120px; border-radius:8px; margin-top:8px; display:block; }
.warn-box { background:#fff7e6; border:1px solid #ffe1a8; color:#8a5a00; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:12px; }
.stock-ok { background:#e6f4ea; border:1px solid #b7ebc6; color:#00875a; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:12px; }
tr.low-row td { background:#fff4f2 !important; }
.danger-box { background:#fdecea; border:1px solid #f5c2c0; color:#a8071a; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:12px; }
.ok-box { background:#e6f4ea; border:1px solid #b7e1c6; color:#0f7b43; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:12px; }

/* 可勾选选项组（单选 chip / 二选一切换） */
.seg { display:flex; gap:8px; }
.seg .ch { flex:1; text-align:center; padding:11px 6px; border:1px solid #d0d3d9; border-radius:10px; font-size:14px; color:#41464b; background:#fff; }
.seg .ch.on { background:#1e5eff; border-color:#1e5eff; color:#fff; font-weight:600; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips .ch { padding:9px 15px; border:1px solid #d0d3d9; border-radius:20px; font-size:14px; color:#41464b; background:#fff; }
.chips .ch.on { background:#1e5eff; border-color:#1e5eff; color:#fff; font-weight:600; }

/* 底部导航：条目增多时可横向滚动 */
.tabbar { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tabbar::-webkit-scrollbar { display:none; }
.tab { flex:0 0 auto; min-width:56px; padding:7px 8px 6px; }
.tab .ti { font-size:18px; }

/* 在制品横向表 */
.wip-tbl { font-size:13px; border-collapse:collapse; width:max-content; min-width:1500px; }
.wip-tbl th, .wip-tbl td { border:1px solid #e5e6eb; padding:7px 10px; white-space:nowrap; }
.wip-tbl th { background:#f7f8fa; position:sticky; top:0; font-weight:500; color:#646a73; font-size:12.5px; z-index:1; }
.wip-tbl th.num, .wip-tbl td.num { text-align:center; }
.wip-tbl tr[data-wip] { cursor:pointer; }
.wip-tbl tr[data-wip]:active { background:#eef4ff; }
.wip-tbl tr.wip-row-ship td { background:#ffe95c; }
.wip-tbl tr.wip-row-pause td { background:#e9d5ff; }
.wip-tbl tr.wip-row-early td { background:#4ade80; }
.wip-tbl tr.wip-row-late td { background:#ff3b30; color:#fff; }
.wip-tbl tr.wip-row-overdue-open td { background:#ff9f0a; color:#3a2200; font-weight:500; }
.wip-tbl tr.wip-row-exception { color:#8b1111; }
.wip-tbl tr.wip-row-exception td { background:#fff5f5; color:#8b1111 !important; font-weight:500; }
.wip-tbl tr.wip-row-exception td .wip-num-cell,
.wip-tbl tr.wip-row-exception td .wip-date-cell { color:#8b1111; }
.wip-tags-td { min-width:126px; white-space:normal !important; vertical-align:middle; }
.wip-tag { display:inline-block; margin:1px 2px 1px 0; padding:1px 6px; border-radius:999px;
  font-size:11px; line-height:18px; font-weight:500; white-space:nowrap; vertical-align:middle; }
.wip-tag-ship { background:#ffe95c; color:#5c4700; }
.wip-tag-pending { background:#ff9f0a; color:#3a2200; }
.wip-tag-pause { background:#e9d5ff; color:#5b2b8a; }
.wip-tag-noplan { background:#e5e6eb; color:#4e5969; }
.wip-tag-exception { background:#8b1111; color:#fff; }
.wip-tag-empty { color:#b0b5bd; font-size:11px; }

/* 用户角色下拉（经理后台） */
.role-sel { padding:6px 8px; border:1px solid #dcdfe6; border-radius:8px; font-size:13px; background:#fff; max-width:120px; }

/* 单据列表分页（每页 99 条） */
.list-count { font-size:12.5px; color:#8a9099; margin:-2px 0 8px; }
.list-count b { color:#1e5eff; font-weight:600; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 0 22px; }
.pager-info { font-size:13px; color:#646a73; }
.pager .btn[disabled] { opacity:.45; }
.btn[disabled] { opacity:.45; }

/* 明细表格：99 项也可滚动查看，表头吸顶 */
.table-scroll { max-height:420px; overflow:auto; -webkit-overflow-scrolling:touch; border-radius:6px; }
.table-scroll .mini-table th { position:sticky; top:0; z-index:1; }
.table-scroll .mini-table tr:nth-child(even) td { background:#fcfcfd; }

/* 明细提示文字 */
.tip-body { font-size:12px; color:#8a9099; line-height:1.6; margin-top:6px; }

/* 实时同步指示灯 */
.live-dot { width:8px; height:8px; border-radius:50%; background:#00875a; display:inline-block;
  box-shadow:0 0 0 3px rgba(0,135,90,.16); flex:none; }
.live-dot.off { background:#c9cdd4; box-shadow:none; }

/* 电脑浏览器（网页版）适配：居中宽屏、底部导航收窄、卡片更舒展 */
@media (min-width: 900px) {
  .content { max-width: 1080px; margin: 0 auto; padding: 76px 24px 96px; }
  .topbar { padding-left: max(16px, calc((100vw - 1080px) / 2));
            padding-right: max(16px, calc((100vw - 1080px) / 2)); }
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: min(1080px, 100%);
            border-left: 1px solid #e5e6eb; border-right: 1px solid #e5e6eb;
            border-radius: 14px 14px 0 0; }
  .tab { padding: 9px 0 8px; font-size: 12px; }
  .tab .ti { font-size: 18px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .item { padding: 14px 16px; }
  .item:hover { background: #fafbfc; }
  .login-box { max-width: 420px; }
  .mini-table { font-size: 13.5px; }
  .table-scroll { max-height: 560px; }
}
@media (min-width: 1280px) {
  .content { max-width: 1240px; }
}

/* 货物明细：横向一行一项，+ 号在下方追加 */
.gline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gline-head, .gline {
  display: grid;
  grid-template-columns: minmax(130px, 1.6fr) minmax(100px, 1.2fr) 54px 66px minmax(110px, 1fr) 32px;
  gap: 6px; align-items: center; min-width: 560px;
}
.gline-head { font-size: 11.5px; color: #8a9099; padding: 0 4px 4px; }
.gline { border: 1px solid #eef0f3; border-radius: 10px; padding: 6px; margin-bottom: 6px; background: #fff; }
.gline input { padding: 6px 8px; font-size: 13.5px; border-radius: 8px; }
.gline .plus { border: none; background: #e8f0ff; color: #1e5eff; border-radius: 8px; height: 32px; font-size: 15px; padding: 0; }
.gline .del { border: none; background: #fdecea; color: #d93026; border-radius: 8px; height: 32px; font-size: 13px; padding: 0; }
@media (max-width: 420px) {
  .gline-head, .gline { min-width: 520px; }
}

/* 只读字段（申请人/电话按登录账号自动匹配） */
input.ro { background: #f7f8fa; color: #4e5969; }

/* 勾选“紧急”后整块变红底 */

/* 紧急发货勾选：未选灰圈，选中红圈 + 小白点 */
.form-row .urgent-check { display:flex; align-items:center; gap:8px; cursor:pointer; margin-bottom:0; }
.urgent-check input { position:absolute; width:1px; height:1px; opacity:0; margin:0; padding:0; border:0; }
.urgent-check .urgent-dot { position:relative; flex:none; width:22px; height:22px; border-radius:50%;
  border:2px solid #c9cdd4; background:#fff; transition:background .15s, border-color .15s, box-shadow .15s; }
.urgent-check input:checked + .urgent-dot { background:#d93026; border-color:#d93026; box-shadow:0 0 0 3px rgba(217,48,38,.12); }
.urgent-check input:checked + .urgent-dot::after { content:""; position:absolute; left:50%; top:50%; width:7px; height:7px;
  border-radius:50%; background:#fff; transform:translate(-50%,-50%); }
.urgent-check input:focus-visible + .urgent-dot { box-shadow:0 0 0 3px rgba(30,94,255,.18); }

.card.urgent-on { background: #fdecea; border: 1px solid #f3b6b0; }
.card.urgent-on .card-h { color: #d93026; }
.card.urgent-on .warn-box { background: #fff; }

/* 审批进度：已完成绿色，当前/下一步红色，未到灰色 */
.tl-i.done .tl-t { color: #00875a; }
.tl-i.warn .tl-t { color: #d93026; }
.tl-i.current .tl-t { color: #d93026; font-weight: 700; }
.tl-i.current:before { background: #d93026; box-shadow: 0 0 0 3px rgba(217,48,38,.16); }

/* “在公司 / 出差在外” 选择框缩短（整体半宽，单个为原宽度 1/4） */
.seg.compact { width: 50%; }
.seg.compact .ch { padding: 8px 4px; font-size: 13px; }

/* 导出 / 导入工具条 */
.export-bar { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.export-bar .btn { flex:none; }

/* 搜索联想下拉 */
.searchbar { position: relative; }
.suggest-box { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
  border: 1px solid #e5e6eb; border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.14);
  z-index: 300; overflow: hidden; }
.sg-item { display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #f2f4f7; }
.sg-item:last-child { border-bottom: none; }
.sg-item:active { background: #f2f6ff; }
.sg-main { font-size: 14px; color: #1f2329; }
.sg-sub { font-size: 12px; color: #8a9099; white-space: nowrap; }

/* 货物明细：当前选中的行高亮 */
.gline.active { box-shadow: inset 0 0 0 2px #1e5eff; border-color: #1e5eff; }

/* 安全库存提醒跳转后的高亮 */
.list-row.hl { background: #e8f0ff; border-radius: 10px; box-shadow: inset 0 0 0 2px #1e5eff; }
tr.hl-row td { background: #e8f0ff !important; }

/* 安全库存跳转：鲜亮高亮（黄底 + 橙色边框，脉冲 3 次） */
.list-row.hl { background: #fff3b0 !important; border-radius: 10px;
  box-shadow: inset 0 0 0 3px #ff8a00, 0 0 12px rgba(255,138,0,.55) !important;
  animation: hlPulse 1.1s ease-in-out 3; }
.list-row.hl .lr-name { color: #b35300; font-weight: 700; }
tr.hl-row td { background: #fff3b0 !important; border-top: 2px solid #ff8a00; border-bottom: 2px solid #ff8a00; }
tr.hl-row td:first-child { border-left: 2px solid #ff8a00; }
tr.hl-row td:last-child { border-right: 2px solid #ff8a00; }
tr.hl-row { animation: hlPulse 1.1s ease-in-out 3; }
@keyframes hlPulse {
  0%, 100% { box-shadow: inset 0 0 0 3px #ff8a00, 0 0 4px rgba(255,138,0,.35); }
  50% { box-shadow: inset 0 0 0 3px #ff8a00, 0 0 18px rgba(255,138,0,.9); }
}

/* 可折叠卡片 */
.fold-card .fold-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.fold-card .fold-h .ft { font-weight: 600; font-size: 15px; color: #1f2329; }
.fold-card .fold-h .fchev { color: #8a9099; font-size: 12px; transition: transform .18s; flex: none; }
.fold-card .fold-b { margin-top: 10px; }
.fold-card.collapsed .fold-b { display: none; }
.fold-card.collapsed .fold-h .fchev { transform: rotate(-90deg); }
.fold-card .fold-b > *:first-child { margin-top: 0; }

/* 操作日志 */
.aud-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 10px; margin:8px 0 10px; background:#f7f8fa; border-radius:10px; }
.aud-all { display:flex; align-items:center; gap:6px; font-size:13px; color:#1f2329; }
.aud-line { display:flex; gap:10px; align-items:flex-start; }
.aud-row { padding:10px 2px; }
.aud-cbx { position:relative; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex:none; margin-top:1px; cursor:pointer; }
.aud-cbx input { position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.aud-cbx span { position:relative; display:block; width:20px; height:20px; border-radius:50%; border:2px solid #c9cdd4; background:#fff; transition:background .15s, border-color .15s, box-shadow .15s; }
.aud-cbx input:checked + span { background:#1e5eff; border-color:#1e5eff; box-shadow:0 0 0 3px rgba(30,94,255,.15); }
.aud-cbx input:checked + span::after { content:""; position:absolute; left:50%; top:50%; width:8px; height:8px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); }
.aud-cbx input:indeterminate + span { background:#1e5eff; border-color:#1e5eff; }
.aud-cbx input:indeterminate + span::after { content:""; position:absolute; left:50%; top:50%; width:10px; height:2px; border-radius:2px; background:#fff; transform:translate(-50%,-50%); }
.aud-bar .btn:disabled { opacity:.45; }

/* ============ 左侧竖排菜单（替换底部导航） ============ */
:root { --rail-w: 0px; }
.tb-left { display: flex; align-items: center; }
.topbar { left: 0; right: 0; padding-left: 6px; }
.content { padding: calc(60px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom)) 12px; }

/* 手机：菜单默认收起，从左滑出 */
.tabbar { position: fixed; top: 0; bottom: 0; left: 0; width: min(132px, 34vw); transform: translateX(-100%);
  display: flex; flex-direction: column; align-items: stretch; background: #fff;
  border-right: 1px solid #e5e6eb; border-top: none;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  z-index: 70; transition: transform .22s ease; }
.tabbar.open { transform: translateX(0); box-shadow: 2px 0 16px rgba(0,0,0,.16); }
.tabbar::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; margin: 3px 8px; padding: 10px 6px; border-radius: 10px; text-align: center;
  font-size: 14px; line-height: 1.2; color: #4e5969; transition: background .15s, color .15s; }
.tab .ti { font-size: 24px; line-height: 1.1; width: auto; text-align: center; }
.tab:active { background: #eef4ff; }
.tab.active { color: #fff; font-weight: 600; background: #1e5eff; border-radius: 10px; }
.tab .badge { position: absolute; top: 4px; right: 7px; transform: none; margin: 0; background: #d93026; color: #fff;
  font-size: 11px; line-height: 16px; border-radius: 9px; padding: 0 5px; min-width: 16px; text-align: center; }
.tab.active .badge { background: #fff; color: #1e5eff; }

.rail-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin-right: 4px; border: none; background: transparent; font-size: 19px; color: #1f2329; border-radius: 8px; }
.rail-btn:active { background: #eef4ff; }
.rail-mask { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.rail-mask.show { opacity: 1; pointer-events: auto; }
.edge-open { position: fixed; left: 0; top: 52px; bottom: 0; width: 14px; z-index: 45; background: transparent; }

/* 电脑：收窄常驻菜单 */
@media (min-width: 900px) {
  :root { --rail-w: 118px; }
  .tabbar { width: 118px; transform: none; padding-top: calc(12px + env(safe-area-inset-top));
    box-shadow: 1px 0 4px rgba(0,0,0,.04); }
  .tab { gap: 3px; margin: 4px 6px; padding: 9px 4px; font-size: 12.5px; }
  .tab .ti { font-size: 22px; width: auto; }
  .rail-btn, .rail-mask, .edge-open { display: none; }
  .topbar { left: var(--rail-w); padding-left: max(14px, calc((100vw - var(--rail-w) - 1080px) / 2)); }
  .content { max-width: 1080px; margin: 0 auto 0 max(var(--rail-w), calc((100vw - 1080px) / 2));
    padding: 76px 24px calc(36px + env(safe-area-inset-bottom)) 24px; }
}

/* 设置项：圆形勾选（蓝底 + 中间白点） */
.sec-row { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; margin-bottom:10px;
  border:1px solid #e5e6eb; border-radius:12px; background:#fff; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.sec-row:active { background:#f7f9ff; }
.sec-row .aud-cbx { margin-top:1px; width:22px; height:22px; }
.sec-txt { font-size:14px; color:#1f2329; line-height:1.5; }
.sec-txt small { display:block; font-size:12px; color:#8a9099; line-height:1.45; margin-top:2px; }

/* 成品/半成品 列表多选批量删除 */
.inv-bulk { display:none; align-items:center; justify-content:space-between; gap:10px;
  background:#fff; border:1px solid #e5e6eb; border-radius:12px; padding:10px 12px; margin-bottom:10px;
  font-size:13px; color:#4e5969; }
.inv-bulk.show { display:flex; }
.inv-bulk b { color:#1e5eff; font-weight:600; }
.inv-bulk .btn { flex:none; }
.inv-tbl .sel-th, .inv-tbl .sel-td { width:34px; text-align:center; padding-left:4px; padding-right:4px; }
.inv-tbl .sel-th .aud-cbx, .inv-tbl .sel-td .aud-cbx { display:flex; width:20px; height:20px; margin:0 auto; }

/* 在制品列表多选批量删除 */
.wip-tbl .sel-th, .wip-tbl .sel-td { width:34px; text-align:center; padding-left:4px; padding-right:4px; }
.wip-date-cell { display:inline-block; width:100%; cursor:pointer; }
.wip-date-cell:active { background:#eef4ff; }
.wip-tbl .sel-th .aud-cbx, .wip-tbl .sel-td .aud-cbx { display:flex; width:20px; height:20px; margin:0 auto; }

/* ===== 日期选择器（统一 YYYY-MM-DD / YYYY-MM-DD HH:MM） ===== */
.dp-input { cursor: pointer; background: #fff !important; }
.dp-input:disabled { cursor: not-allowed; background: #f5f7fa !important; color: #a6abb3; }
body.dp-open { overflow: hidden; }
.dp-mask { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box; background: rgba(0,0,0,.45); overscroll-behavior: contain; }
.dp-mask.show { display: flex; }
.dp-card { width: min(600px, calc(100vw - 28px)); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); touch-action: pan-y; }
.dp-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 10px; }
.dp-nav { flex: none; width: 40px; height: 36px; border: none; border-radius: 9px; background: #f4f5f7;
  color: #1f2329; font-size: 16px; line-height: 1; cursor: pointer; }
.dp-nav:active { background: #e6ebf5; }
.dp-title { flex: 1; text-align: center; font-size: 20px; font-weight: 600; color: #1f2329; }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 20px 6px; text-align: center;
  color: #8a9099; font-size: 12px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px 20px 14px; }
.dp-day { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  font-size: 14px; color: #1f2329; cursor: pointer; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dp-day:active { background: #eef4ff; }
.dp-day.dp-blank { cursor: default; }
.dp-day.dp-disabled { color:#c9cdd4; cursor:not-allowed; opacity:.55; }
.dp-day.dp-disabled:active { background:transparent; }
.dp-day.today { color: #1e5eff; background: #f2f7ff; }
.dp-day.sel { background: #fff !important; color: #1e5eff !important; box-shadow: inset 0 0 0 1.5px #1e5eff; font-weight: 600; }
.dp-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid #f0f1f3; }
.dp-flex { flex: 1; }
.dp-btn { flex: none; border: none; border-radius: 9px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
.dp-ghost { background: #f2f3f5; color: #4e5969; }
.dp-primary { background: #1e5eff; color: #fff; font-weight: 600; }
.dp-time { flex:none; width:128px; min-width:96px; border: 1px solid #dcdfe6; border-radius: 8px; padding: 8px 6px; font-size: 14px; text-align: center; }
.dp-time::-webkit-calendar-picker-indicator { opacity: 0; width: 0; margin: 0; }
@media (max-width: 640px) {
  .dp-card { width: calc(100vw - 24px); border-radius: 16px; }
  .dp-head { padding: 14px 14px 8px; gap: 5px; }
  .dp-nav { width: 34px; height: 34px; }
  .dp-title { font-size: 17px; }
  .dp-week { padding: 6px 12px 4px; }
  .dp-grid { padding: 2px 12px 10px; }
  .dp-day { height: 42px; }
  .dp-foot { padding: 10px 10px 12px; gap: 6px; }
  .dp-btn { padding: 9px 10px; font-size: 13.5px; }
  .dp-time { width: 92px; min-width: 76px; padding: 7px 4px; }
}

/* ===== 工作台：待发货提醒（绿色） ===== */
.ship-alert { background: #f0fbf4 !important; border: 1px solid #b7e1c1; }
.ship-alert .card-h { color: #0f7b3f; }
.ship-alert-intro { font-size: 13px; color: #2f6b47; line-height: 1.6; margin: -2px 0 4px; }
.ship-alert-intro b { color: #0f7b3f; }
.ship-alert-group + .ship-alert-group { border-top: 1px solid #d8eedf; }
.ship-alert-group-h { display: flex; align-items: center; gap: 8px; padding: 10px 0 7px; cursor: pointer; user-select: none; }
.ship-alert-group-name { font-size: 13.5px; font-weight: 700; color: #0f7b3f; line-height: 1.5; }
.ship-alert-group-count { flex: none; padding: 1px 8px; border-radius: 999px; background: #dff3e6; color: #2f6b47; font-size: 11.5px; line-height: 1.6; }
.ship-alert-group-arrow { margin-left: auto; flex: none; color: #0f7b3f; font-size: 13px; line-height: 1; transition: transform .18s ease; }
.ship-alert-group.collapsed .ship-alert-group-arrow { transform: rotate(-90deg); }
.ship-alert-group.collapsed .ship-alert-group-body { display: none; }
.ship-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0;
  border-top: 1px dashed #cfe9d8; cursor: pointer; }
.ship-alert-row:active { background: #e6f7ec; }
.ship-alert-main { min-width: 0; }
.ship-alert-name { font-weight: 600; font-size: 14px; color: #1f2329; }
.ship-alert-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  background: #dff3e6; color: #0f7b3f; font-size: 11.5px; font-weight: 500; vertical-align: 1px; }
.ship-alert-sub { font-size: 12px; color: #5d7b68; margin-top: 3px; }
.ship-alert-state { flex: none; font-size: 12.5px; font-weight: 600; color: #0f7b3f; white-space: nowrap; }
.ship-alert-scroll { max-height: 360px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-right: 2px; }
.ship-alert-scroll::-webkit-scrollbar { width: 6px; }
.ship-alert-scroll::-webkit-scrollbar-thumb { background: #b7e1c1; border-radius: 3px; }
.ship-alert-more { font-size: 12.5px; color: #0f7b3f; font-weight: 600; padding-top: 9px; margin-top: 2px; border-top: 1px dashed #cfe9d8; cursor: pointer; }
.ship-alert-more:active { opacity: .7; }

/* ===== 在制品：待发货定位后鲜绿色呼吸闪两次（1 秒渐亮 / 0.5 秒渐暗）===== */
@keyframes wipFlash {
  0%, 100% { background: #e9fbf0; color: #0f7b3f; }
  33.33%, 83.33% { background: #22c55e; color: #fff; }
  50% { background: #e9fbf0; color: #0f7b3f; }
}
.wip-tbl tr.wip-flash td { animation: wipFlash 3s ease-in-out 1; }
/* 在制品数量列：点击后就地上下调整 */
.wip-num-cell { display:inline-flex; align-items:center; justify-content:center; min-width:38px; min-height:28px; cursor:pointer; border-radius:4px; }
.wip-num-cell:hover { background:#eef4ff; }
.wip-num-edit { display:inline-flex; align-items:center; gap:2px; }
.wip-num-input { width:46px; height:28px; padding:0 2px; text-align:center; border:1px solid #c9d3e0; border-radius:4px; font-size:inherit; background:#fff; }
.wip-num-arrows { display:inline-flex; flex-direction:column; gap:1px; }
.wip-num-arrows button { width:26px; height:15px; padding:0; line-height:13px; font-size:12px; border:1px solid #c9d3e0; border-radius:3px; background:#fff; color:#1e5eff; cursor:pointer; }
.wip-num-arrows button:active { background:#e8f0ff; }
.wip-num-arrows button:disabled { color:#b8bec8; cursor:not-allowed; background:#f5f6f8; }
.wip-num-input::-webkit-outer-spin-button,
.wip-num-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.wip-num-input[type=number] { -moz-appearance:textfield; }

/* 导入后逐条确认入库库位 */
.imp-row-list { max-height:54vh; overflow:auto; margin-top:10px; padding-right:2px; }
.imp-ok-list { max-height:18vh; overflow:auto; margin-top:10px; padding:8px 10px; background:#f7f8fa; border-radius:8px; color:#1f2329; font-size:12px; line-height:1.9; }
.imp-row-card { margin-bottom:10px; padding:10px 12px; border:1px solid #f0caca; border-radius:9px; background:#fffafa; color:#8b1111; }
.imp-row-card.is-bad { color:#8b1111; }
.imp-row-card.is-valid { border-color:#b7d7bc; background:#fbfefb; color:#1f2329; }
.imp-row-head { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; }
.imp-row-state { font-size:12px; font-weight:500; }
.imp-row-card.is-valid .imp-row-state { color:#1d7a34; }
.imp-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px; margin-top:8px; }
.imp-field { display:flex; flex-direction:column; gap:3px; font-size:12px; }
.imp-field > span { font-size:11px; color:inherit; opacity:.9; }
.imp-field input { width:100%; height:32px; padding:0 8px; border:1px solid #d9dee5; border-radius:7px; background:#fff; color:inherit; font-size:12px; box-sizing:border-box; }
.imp-row-card.is-bad .imp-field input { color:#8b1111; border-color:#e4b9b9; }
.imp-row-card.is-valid .imp-field input { color:#1f2329; border-color:#d9dee5; }
.imp-imported-info { margin-top:6px; font-size:12px; line-height:1.5; color:#8b1111; word-break:break-word; }
.imp-row-error { margin-top:8px; font-size:12px; line-height:1.55; color:#8b1111; word-break:break-word; }
.imp-row-card.is-valid .imp-row-error { color:#1d7a34; }
@media (max-width:520px) { .imp-edit-grid { grid-template-columns:1fr; } .imp-row-list { max-height:52vh; } }
.imp-stock-list { max-height:46vh; overflow:auto; border-top:1px solid #eef0f3; }
.imp-stock-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #eef0f3; }
.imp-stock-info { min-width:0; flex:1; }
.imp-stock-name { font-size:13px; color:#1f2329; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.imp-stock-qty { margin-top:2px; font-size:12px; color:#646a73; }
.imp-stock-loc { width:128px; flex:0 0 128px; height:34px; }
@media (max-width:520px) { .imp-stock-loc { width:110px; flex-basis:110px; } }

/* ===== 启动/切页加载态：接口慢时不出现整页空白 ===== */
.loading-box { display:flex; align-items:center; justify-content:center; gap:10px; min-height:160px;
  color:#4e5969; font-size:14px; }
.loading-spin { width:20px; height:20px; border:2px solid #c9d3e0; border-top-color:#1e5eff;
  border-radius:50%; animation: loadSpin .8s linear infinite; }
@keyframes loadSpin { to { transform: rotate(360deg); } }
.load-error { display:flex; flex-direction:column; align-items:center; gap:14px; padding:40px 18px;
  color:#4e5969; font-size:14px; text-align:center; line-height:1.7; }
.load-error .btn { min-width:120px; }

/* 在制品颜色图例（仅保留四种状态说明） */
.wip-legend { display:flex; flex-wrap:wrap; gap:9px 20px; align-items:center; }
.wip-legend .lg { display:flex; align-items:center; gap:7px; font-size:12.5px; color:#4e5969; white-space:nowrap; }
.wip-legend .dot { width:15px; height:15px; border-radius:4px; display:inline-block; border:1px solid rgba(0,0,0,.07); flex:none; }
