/* =========================================================
   澜仓 WMS · Design System
   ========================================================= */
:root {
  --ink: #142b25;
  --ink-2: #355048;
  --muted: #788a83;
  --muted-2: #9aa9a3;
  --line: #e4ebe6;
  --line-strong: #d7e1db;
  --bg: #f4f7f3;
  --bg-soft: #f9fbf8;
  --panel: #ffffff;
  --brand: #16705c;
  --brand-dark: #0d3b30;
  --brand-deep: #0a2c24;
  --brand-light: #2a937a;
  --brand-soft: #e8f4ef;
  --brand-soft-2: #f1f9f5;
  --amber: #dca53f;
  --amber-deep: #a87414;
  --amber-soft: #fbf3e2;
  --red: #cf5b4a;
  --red-soft: #fbeeeb;
  --blue: #4e78c8;
  --blue-soft: #eef3fc;
  --purple: #7465bd;
  --purple-soft: #f1effb;
  --shadow-xs: 0 1px 2px rgba(20, 43, 37, .04);
  --shadow-sm: 0 2px 8px rgba(20, 43, 37, .05);
  --shadow-md: 0 12px 32px -18px rgba(20, 43, 37, .2);
  --shadow-lg: 0 28px 70px -28px rgba(10, 44, 36, .35);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --sidebar: 246px;
  --topbar: 72px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #cde8de; color: #0b3329; }
:focus-visible { outline: 2px solid rgba(22, 112, 92, .45); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd9d3; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #adbfb7; background-clip: content-box; }

/* ---------- Boot ---------- */
#boot-splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--brand-deep); color: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}
#boot-splash.done { opacity: 0; visibility: hidden; }
.boot-logo .brand-glyph { width: 58px; height: 58px; font-size: 26px; border-radius: 18px; }
.boot-name { font-size: 20px; letter-spacing: .14em; font-weight: 500; }
.boot-name b { color: var(--amber); font-weight: 700; }
.boot-line { width: 120px; height: 2px; background: rgba(255,255,255,.14); overflow: hidden; border-radius: 2px; }
.boot-line i { display: block; width: 45%; height: 100%; background: var(--amber); border-radius: 2px; animation: bootSlide 1s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(300%); } }

/* ---------- Brand ---------- */
.brand-glyph {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 21px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #23927a 0%, #0f5d4b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 16px -6px rgba(10,44,36,.5);
  position: relative; overflow: hidden;
}
.brand-glyph::after {
  content: ""; position: absolute; right: -10px; bottom: -12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(244, 184, 96, .35);
}
.brand-word { display: flex; flex-direction: column; line-height: 1.2; }
.brand-word strong { font-size: 18px; letter-spacing: .04em; color: #fff; font-weight: 650; }
.brand-word strong em { font-style: normal; color: var(--amber); font-size: 12px; letter-spacing: .12em; margin-left: 2px; }
.brand-word span { font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: .16em; margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid transparent; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px -10px rgba(22,112,92,.8); }
.btn-primary:hover { background: #11604f; border-color: #11604f; box-shadow: 0 8px 20px -10px rgba(22,112,92,.9); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink-2); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: #b9cac1; background: #fbfdfb; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #edf3ef; color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn-soft:hover { background: #dcefe7; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #bd4a3b; }
.btn-danger-soft { background: var(--red-soft); color: var(--red); }
.btn-danger-soft:hover { background: #f7dfda; }
.btn-lg { height: 46px; border-radius: 12px; font-size: 14.5px; padding: 0 22px; }
.btn-sm { height: 31px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .65s linear infinite;
}
.btn-secondary.loading::before, .btn-ghost.loading::before { border-color: rgba(20,43,37,.2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px;
  display: inline-grid; place-items: center; background: transparent; color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: #eef3ef; color: var(--ink); }
.icon-btn .icon { width: 19px; height: 19px; }
.text-btn { background: none; border: none; color: var(--brand); font-weight: 600; padding: 0; font-size: 13px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { border: none; background: none; color: var(--brand); font-size: 13px; font-weight: 600; padding: 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Common ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .15em; font-weight: 700; color: var(--muted);
  text-transform: uppercase;
}
.eyebrow i { width: 16px; height: 1px; background: var(--amber); display: inline-block; }
.eyebrow.light { color: rgba(255,255,255,.64); }
.eyebrow.light i { background: var(--amber); }
.page { padding: 26px 32px 50px; max-width: 1540px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { font-size: 27px; line-height: 1.22; letter-spacing: -.02em; font-weight: 650; color: var(--ink); margin-top: 7px; }
.page-head h1 .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10% { transform: rotate(14deg) } 20% { transform: rotate(-8deg) } 30% { transform: rotate(14deg) } 40% { transform: rotate(-4deg) } 50% { transform: rotate(10deg) } }
.page-head p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-bottom: 2px; }
.page-fade { animation: pageFade .32s ease both; }
@keyframes pageFade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card-head { padding: 19px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-head.with-border { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.card-title .icon { width: 18px; height: 18px; color: var(--brand); }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-body { padding: 20px 22px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .18s; }
.card-link:hover { color: var(--brand); }
.card-link .icon { width: 14px; height: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-green { background: var(--brand-soft); color: #14735e; }
.badge-amber { background: var(--amber-soft); color: #a37113; }
.badge-red { background: var(--red-soft); color: #bd4a3b; }
.badge-blue { background: var(--blue-soft); color: #456fc0; }
.badge-purple { background: var(--purple-soft); color: #6a5ab5; }
.badge-gray { background: #f1f4f2; color: #7a8a83; }
.badge-dark { background: #e8efec; color: #405c52; }
.priority { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.priority::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-加急 { color: var(--red); }
.priority-高 { color: #c08318; }
.priority-普通 { color: var(--muted); }
.priority-低 { color: var(--muted-2); }

.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.amount { font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- Login ---------- */
.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr); background: #f6f8f4; }
.login-visual {
  position: relative; overflow: hidden; min-height: 100vh; padding: 42px 54px 28px;
  color: #fff; background: #0a2e26; display: flex; flex-direction: column;
}
.login-visual-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 76% 28%, rgba(34, 142, 113, .38), transparent 66%),
    radial-gradient(ellipse 40% 35% at 20% 82%, rgba(194, 142, 48, .13), transparent 70%),
    linear-gradient(155deg, #0d342b 0%, #0a2b24 48%, #07231d 100%);
}
.login-visual-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(140,190,170,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(140,190,170,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 62% 48%, #000 0%, transparent 70%);
}
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.login-brand .brand-glyph { width: 44px; height: 44px; border-radius: 13px; }
.login-copy { position: relative; z-index: 2; margin-top: clamp(44px, 9vh, 96px); max-width: 570px; }
.login-copy h1 { margin-top: 17px; font-size: clamp(36px, 3.5vw, 54px); line-height: 1.22; font-weight: 600; letter-spacing: -.035em; color: #f4f8f5; }
.login-copy h1 span { color: #e8bd70; position: relative; }
.login-copy h1 span::after {
  content: ""; position: absolute; left: 2px; right: -3px; bottom: 3px; height: 9px;
  background: rgba(220,165,63,.18); border-radius: 4px; z-index: -1;
}
.login-copy p { margin-top: 20px; color: rgba(226, 240, 233, .62); font-size: 14.5px; line-height: 1.9; }
.login-stats { display: flex; gap: 42px; margin-top: 34px; }
.login-stats > div { display: flex; flex-direction: column; gap: 3px; }
.login-stats strong { font-size: 25px; font-weight: 600; letter-spacing: -.03em; color: #f3f7f4; }
.login-stats strong small { font-size: 12px; color: #d9b268; margin-left: 2px; font-weight: 500; }
.login-stats span { font-size: 10.5px; letter-spacing: .08em; color: rgba(226,240,233,.42); }

.login-art { position: absolute; z-index: 1; right: -15px; bottom: 12%; width: 56%; height: 58%; min-height: 360px; pointer-events: none; }
.art-halo { position: absolute; border-radius: 50%; border: 1px solid rgba(137, 200, 177, .16); }
.halo-a { width: 440px; height: 440px; right: -80px; top: 0; }
.halo-b { width: 310px; height: 310px; right: 5px; top: 64px; border-color: rgba(220,165,63,.12); }
.art-grid {
  position: absolute; inset: 12% 0 0 0; opacity: .35;
  background-image: linear-gradient(rgba(110,175,154,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(110,175,154,.16) 1px, transparent 1px);
  background-size: 30px 30px; transform: perspective(600px) rotateX(54deg) rotateZ(-9deg); transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000, transparent 86%);
}
.art-rack {
  position: absolute; right: 6%; top: 15%; width: 250px; padding: 12px;
  border-radius: 16px; border: 1px solid rgba(155, 207, 188, .2);
  background: linear-gradient(160deg, rgba(18, 67, 55, .9), rgba(8, 40, 33, .8));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transform: rotate(-2.5deg);
}
.rack-head { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; letter-spacing: .1em; color: rgba(226,240,233,.52); padding: 2px 4px 10px; }
.rack-head i.live { width: 6px; height: 6px; border-radius: 50%; background: #5fd3a8; box-shadow: 0 0 0 3px rgba(95,211,168,.12); }
.rack-body { display: flex; flex-direction: column; gap: 7px; }
.rack-level { position: relative; display: flex; gap: 7px; align-items: flex-end; min-height: 53px; padding: 8px 8px 7px 33px; border-radius: 8px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05); }
.box-tag { position: absolute; left: 8px; top: 8px; font-size: 7.5px; color: rgba(255,255,255,.32); font-family: var(--mono); }
.cargo { border-radius: 4px; background: linear-gradient(145deg, #c59446, #8b6425); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.16); }
.cargo::after { content: ""; display: block; width: 40%; height: 2px; margin: 7px auto 0; background: rgba(255,255,255,.25); border-radius: 2px; }
.c1 { width: 38px; height: 34px; opacity: .92; }
.c2 { width: 52px; height: 26px; background: linear-gradient(145deg,#2c9177,#145f4c); }
.c3 { width: 34px; height: 38px; opacity: .8; }
.c4 { width: 64px; height: 30px; background: linear-gradient(145deg,#327b69,#174f41); }
.c5 { width: 44px; height: 36px; opacity: .83; }
.c6 { width: 30px; height: 27px; background: linear-gradient(145deg,#2c9177,#145f4c); }
.c7 { width: 58px; height: 36px; opacity: .95; }
.c8 { width: 40px; height: 29px; background: linear-gradient(145deg,#40705f,#1c4a3d); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 12px;
  background: rgba(248, 251, 248, .94); color: var(--ink);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.45);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 10.5px; font-weight: 650; }
.float-card span { display: block; font-size: 8.5px; color: #7f9089; margin-top: 2px; }
.fc-a { left: -10px; top: 6%; animation-delay: -1.8s; }
.fc-b { left: 20px; bottom: 8%; animation-delay: -3.4s; }
.fc-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.fc-icon .icon { width: 15px; height: 15px; }
.fc-b em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--brand); margin-left: 5px; }
.fc-pulse { width: 7px; height: 7px; border-radius: 50%; background: #2ea886; box-shadow: 0 0 0 4px rgba(46,168,134,.14); animation: pulse 2s infinite; flex: 0 0 auto; }
.float-chip {
  position: absolute; right: 6%; bottom: 2%; display: flex; align-items: center; gap: 7px;
  font-size: 9px; color: rgba(226,240,233,.5); letter-spacing: .04em;
}
.float-chip span { width: 6px; height: 6px; border-radius: 50%; background: #5fd3a8; box-shadow: 0 0 0 4px rgba(95,211,168,.1); }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(46,168,134,.14) } 50% { box-shadow: 0 0 0 7px rgba(46,168,134,.03) } }
.login-foot { position: relative; z-index: 2; margin-top: auto; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .05em; color: rgba(226,240,233,.28); }

.login-form-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 54px clamp(42px, 6vw, 94px); overflow: hidden; background: #f6f8f4; }
.login-form-inner { position: relative; z-index: 2; width: 100%; max-width: 382px; margin: 0 auto; }
.login-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 34px; }
.login-mobile-brand strong { color: var(--ink); font-size: 17px; }
.login-form-inner h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 650; margin-top: 9px; color: var(--ink); }
.login-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
#login-form { margin-top: 30px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.input-shell {
  height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 13px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 11px;
  transition: border-color .18s, box-shadow .18s; box-shadow: 0 1px 2px rgba(20,43,37,.02);
}
.input-shell:focus-within { border-color: #6ca998; box-shadow: 0 0 0 3px rgba(22,112,92,.09); }
.input-shell .input-icon { width: 18px; height: 18px; color: #93a49c; }
.input-shell input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; height: 100%; font-size: 13.5px; color: var(--ink); }
.input-shell input::placeholder { color: #a9b6b0; }
.input-action { width: 30px; height: 30px; margin-right: -5px; color: #94a49d; }
.input-action:hover { background: #f2f6f3; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox span { width: 15px; height: 15px; border: 1px solid #cbd7d1; border-radius: 4px; background: #fff; display: inline-grid; place-items: center; transition: .18s; }
.checkbox span::after { content: ""; width: 7px; height: 4px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg) translateY(-1px); opacity: 0; }
.checkbox input:checked + span { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + span::after { opacity: 1; }
.form-error {
  margin: 0 0 14px; padding: 9px 12px; border-radius: 8px;
  background: var(--red-soft); color: #b64c3d; font-size: 12.5px; border: 1px solid #f2d6d0;
}
.login-submit { width: 100%; justify-content: center; gap: 10px; margin-top: 2px; box-shadow: 0 12px 24px -14px rgba(22,112,92,.8); }
.login-submit .icon { transition: transform .2s; }
.login-submit:hover .icon { transform: translateX(3px); }
.login-security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; font-size: 10px; color: var(--muted-2); }
.login-security-note .icon { width: 12px; height: 12px; color: var(--brand); }
.login-agreement { margin-top: 14px; text-align: center; font-size: 10px; color: #a2b0aa; }
.login-agreement a { color: #778a82; border-bottom: 1px solid #d6dfdb; }
.login-form-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.login-form-orbs i { position: absolute; border-radius: 50%; filter: blur(1px); }
.login-form-orbs i:nth-child(1) { width: 300px; height: 300px; right: -160px; top: -100px; background: radial-gradient(circle, rgba(191, 219, 204, .55), transparent 68%); }
.login-form-orbs i:nth-child(2) { width: 230px; height: 230px; left: -140px; bottom: 8%; background: radial-gradient(circle, rgba(232, 204, 147, .25), transparent 68%); }
.login-form-orbs i:nth-child(3) { width: 120px; height: 120px; right: 12%; bottom: -60px; background: radial-gradient(circle, rgba(134, 193, 170, .22), transparent 70%); }

/* ---------- App shell ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 60;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  color: #e8f1ec; background: #0a2c24;
  background-image: radial-gradient(ellipse 90% 35% at 50% 0%, rgba(39, 128, 105, .24), transparent 70%);
  border-right: 1px solid rgba(255,255,255,.04);
  transition: transform .26s ease;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 52%);
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; }
.sidebar-context { display: flex; align-items: center; gap: 9px; margin: 0 2px 20px; padding: 10px 11px; border-radius: 11px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); }
.context-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(220,165,63,.12); color: #deb56c; flex: 0 0 auto; }
.context-icon .icon { width: 16px; height: 16px; }
.sidebar-context > div:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-context span { display: block; font-size: 9px; color: rgba(232,241,236,.4); letter-spacing: .04em; }
.sidebar-context b { display: block; font-size: 11px; color: rgba(245,250,247,.9); font-weight: 550; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #63d0a7; box-shadow: 0 0 0 4px rgba(99,208,167,.1); flex: 0 0 auto; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 2px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
.nav-group { margin-bottom: 17px; }
.nav-label { padding: 0 11px 7px; font-size: 9px; letter-spacing: .14em; color: rgba(232,241,236,.3); font-weight: 600; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 11px; margin-bottom: 2px; border-radius: 9px;
  color: rgba(232,241,236,.62); font-size: 12.5px; font-weight: 500;
  transition: .17s; border: 1px solid transparent;
}
.nav-item .icon { width: 18px; height: 18px; opacity: .8; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #f7fbf8; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.05); }
.nav-item.active::before { content: ""; position: absolute; left: -3px; top: 11px; bottom: 11px; width: 3px; border-radius: 4px; background: var(--amber); }
.nav-item.active .icon { color: #e6bd74; opacity: 1; }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(220,165,63,.16); color: #e5bd72; font-size: 10px; font-style: normal; display: none; align-items: center; justify-content: center; font-weight: 650; }
.nav-badge.show { display: inline-flex; }
.sidebar-foot { padding-top: 10px; }
.sidebar-help { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(220,165,63,.1), rgba(255,255,255,.035)); border: 1px solid rgba(220,165,63,.12); cursor: pointer; transition: .18s; }
.sidebar-help:hover { background: linear-gradient(135deg, rgba(220,165,63,.15), rgba(255,255,255,.06)); }
.help-icon { width: 25px; height: 25px; border-radius: 7px; background: rgba(220,165,63,.13); color: #e2bc78; display: grid; place-items: center; flex: 0 0 auto; }
.help-icon .icon { width: 14px; height: 14px; }
.sidebar-help > div:nth-child(2) { min-width: 0; }
.sidebar-help b { display: block; font-size: 10px; color: rgba(245,250,247,.78); font-weight: 550; }
.sidebar-help span { display: block; font-size: 8.5px; color: rgba(232,241,236,.35); margin-top: 2px; white-space: nowrap; }
.help-arrow { width: 12px !important; height: 12px !important; margin-left: auto; color: rgba(232,241,236,.28); }
.sidebar-version { display: flex; justify-content: space-between; padding: 12px 6px 0; font-size: 8px; color: rgba(232,241,236,.25); letter-spacing: .03em; }
.sidebar-mask { position: fixed; inset: 0; z-index: 55; background: rgba(8,30,24,.45); backdrop-filter: blur(2px); display: none; }
.app-main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 32px; background: rgba(246,249,245,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 229, 223, .8);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted-2); }
.breadcrumb .icon { width: 12px; height: 12px; color: #c4cfc9; }
.breadcrumb b { color: var(--ink-2); font-weight: 600; }
.mobile-menu { display: none; }
.global-search {
  display: flex; align-items: center; gap: 8px; width: 238px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.75); color: var(--muted-2);
  font-size: 11.5px; text-align: left; transition: .18s;
}
.global-search:hover { border-color: #c5d5cd; background: #fff; color: var(--muted); }
.global-search .icon { width: 15px; height: 15px; }
.global-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd, .kbd-btn { font-family: var(--font); font-size: 9px; color: #94a49d; background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; line-height: 1.3; }
.topbar-date { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.topbar-date .icon { width: 14px; height: 14px; color: #9aaba4; }
.topbar-icon { position: relative; color: #71857d; }
.notify-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1.5px solid #f6f9f5; }
.popover-anchor { position: relative; }
.popover {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-lg); animation: popIn .16s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
.user-menu-btn { display: flex; align-items: center; gap: 9px; border: none; background: transparent; padding: 4px 6px 4px 4px; border-radius: 10px; transition: .18s; }
.user-menu-btn:hover { background: #edf3ef; }
.user-menu-btn .icon { width: 14px; height: 14px; color: #9aaba4; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 650; color: #fff;
  background: linear-gradient(145deg, #236f5b, #0f4b3c); box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.avatar.lg { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.user-menu-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.user-menu-meta b { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.user-menu-meta em { font-size: 9px; font-style: normal; color: var(--muted-2); margin-top: 2px; }
.topbar-divider { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.user-popover { width: 225px; padding: 8px; }
.user-popover-head { display: flex; align-items: center; gap: 10px; padding: 9px 9px 12px; }
.user-popover-head b { display: block; font-size: 12.5px; }
.user-popover-head span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.popover-sep { height: 1px; background: var(--line); margin: 4px 5px; }
.user-popover button { width: 100%; display: flex; align-items: center; gap: 9px; border: none; background: transparent; padding: 9px 10px; border-radius: 7px; font-size: 11.5px; color: var(--ink-2); text-align: left; }
.user-popover button .icon { width: 15px; height: 15px; color: var(--muted); }
.user-popover button:hover { background: #f2f6f3; }
.user-popover button.danger { color: var(--red); }
.user-popover button.danger .icon { color: var(--red); }
.notification-popover { width: 320px; padding: 0; overflow: hidden; }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.popover-head b { font-size: 12.5px; }
.popover-head span { font-size: 10px; color: var(--muted-2); }
.notify-list { max-height: 350px; overflow-y: auto; padding: 6px; }
.notify-item { width: 100%; border: none; background: transparent; display: flex; gap: 10px; padding: 9px; border-radius: 8px; text-align: left; }
.notify-item:hover { background: #f5f8f6; }
.notify-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.notify-icon .icon { width: 15px; height: 15px; }
.notify-icon.amber { background: var(--amber-soft); color: var(--amber-deep); }
.notify-icon.red { background: var(--red-soft); color: var(--red); }
.notify-icon.green { background: var(--brand-soft); color: var(--brand); }
.notify-icon.blue { background: var(--blue-soft); color: var(--blue); }
.notify-item b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.notify-item span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.notify-foot { border-top: 1px solid var(--line); padding: 9px; text-align: center; }

/* ---------- Page primitives ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { position: relative; overflow: hidden; padding: 18px 19px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.stat-card::after { content: ""; position: absolute; right: -34px; top: -46px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(22,112,92,.05), transparent 70%); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber-deep); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-value { margin-top: 13px; font-size: 27px; line-height: 1; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }
.stat-meta { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 10.5px; color: var(--muted-2); }
.trend-up { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.trend-down { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.trend-up .icon, .trend-down .icon { width: 11px; height: 11px; }
.stat-spark { position: absolute; right: 13px; bottom: 13px; width: 70px; height: 25px; opacity: .65; }
.stat-spark path { fill: none; stroke: var(--brand-light); stroke-width: 1.5; }
.stat-spark .area { fill: rgba(42,147,122,.08); stroke: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 14px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: #eaf0ec; border: 1px solid #e2eae5; }
.segmented button { border: none; background: transparent; color: var(--muted); height: 30px; padding: 0 12px; border-radius: 7px; font-size: 11.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; transition: .16s; }
.segmented button:hover { color: var(--ink-2); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,43,37,.08); font-weight: 600; }
.segmented .count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 5px; background: #e6ede8; color: var(--muted); font-size: 9px; font-weight: 650; }
.segmented button.active .count { background: var(--brand-soft); color: var(--brand); }
.search-field, .select-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 10px; width: 15px; height: 15px; color: #9daca5; pointer-events: none; }
.input, .select, .textarea {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  padding: 0 10px; font-size: 12px; color: var(--ink); outline: none;
  transition: border-color .16s, box-shadow .16s; width: 100%;
}
.input::placeholder, .textarea::placeholder { color: #a6b4ae; }
.input:focus, .select:focus, .textarea:focus { border-color: #78ad9e; box-shadow: 0 0 0 3px rgba(22,112,92,.07); }
.input[disabled], .select[disabled] { background: #f5f7f5; color: var(--muted); }
.search-field .input { padding-left: 32px; width: 240px; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c9d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.select-sm { width: auto; min-width: 118px; height: 34px; font-size: 11.5px; }
.filter-label { font-size: 10.5px; color: var(--muted-2); margin-right: -3px; }
.toolbar-divider { width: 1px; height: 18px; background: var(--line); }
.page-note { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted-2); margin-top: 12px; }
.page-note .icon { width: 13px; height: 13px; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.data-table thead th {
  text-align: left; padding: 11px 16px; background: #f9fbf9;
  border-bottom: 1px solid var(--line); color: #8a9b94;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.data-table thead th:first-child { padding-left: 20px; }
.data-table thead th:last-child { padding-right: 20px; text-align: right; }
.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid #edf2ee; vertical-align: middle; white-space: nowrap; }
.data-table tbody td:first-child { padding-left: 20px; }
.data-table tbody td:last-child { padding-right: 20px; text-align: right; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .row-title { font-weight: 600; color: var(--ink); font-size: 12.5px; }
.data-table .row-sub { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.data-table .row-link { font-weight: 600; color: var(--ink-2); }
.data-table .row-link:hover { color: var(--brand); }
.table-actions { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }
.table-action { border: none; background: transparent; color: var(--muted); height: 29px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 550; display: inline-flex; align-items: center; gap: 3px; }
.table-action:hover { background: #edf3ef; color: var(--brand); }
.table-action .icon { width: 14px; height: 14px; }
.table-action.danger:hover { background: var(--red-soft); color: var(--red); }
.table-action.primary { color: var(--brand); background: var(--brand-soft); }
.table-action.primary:hover { background: #dcefe7; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; border-top: 1px solid var(--line); background: #fcfdfc; font-size: 10.5px; color: var(--muted-2); }
.table-foot .pagination { display: flex; align-items: center; gap: 4px; }
.table-foot .pagination button { width: 25px; height: 25px; border: 1px solid var(--line); background: #fff; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.table-foot .pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.progress { height: 5px; border-radius: 4px; background: #edf2ee; overflow: hidden; min-width: 60px; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: var(--brand-light); transition: width .4s; }
.progress.amber > i { background: var(--amber); }
.progress.red > i { background: var(--red); }
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-wrap span { font-size: 10px; color: var(--muted-2); min-width: 28px; font-variant-numeric: tabular-nums; }

.product-cell { display: flex; align-items: center; gap: 10px; }
.product-thumb { width: 34px; height: 34px; border-radius: 8px; background: #f1f5f2; color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #e6ede8; }
.product-thumb .icon { width: 17px; height: 17px; }
.product-cell b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.product-cell span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; font-family: var(--mono); }
.user-cell { display: flex; align-items: center; gap: 9px; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.user-cell b { display: block; font-size: 12px; font-weight: 600; }
.user-cell span { display: block; font-size: 9.5px; color: var(--muted-2); }
.qty-strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.qty-muted { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.qty-in { color: var(--brand); font-weight: 600; }
.qty-out { color: var(--red); font-weight: 600; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 54px 20px; }
.empty-icon { width: 52px; height: 52px; border-radius: 15px; background: #f1f6f3; color: #a4b6ae; display: grid; place-items: center; margin-bottom: 12px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.empty p { font-size: 11px; color: var(--muted-2); margin-top: 4px; max-width: 300px; }
.empty .btn { margin-top: 15px; }
.skeleton { background: linear-gradient(90deg, #f0f4f1 25%, #f8faf8 37%, #f0f4f1 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading-block { padding: 24px; }
.skeleton-line { height: 12px; margin-bottom: 12px; width: 100%; }
.skeleton-line.short { width: 40%; }

/* ---------- Dashboard ---------- */
.dash-greeting .eyebrow { margin-bottom: 2px; }
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dash-hero h1 { font-size: 28px; }
.dash-hero p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.dash-hero p b { color: var(--brand); font-weight: 600; }
.quick-actions { display: flex; gap: 8px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 16px; margin-bottom: 16px; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(270px, .8fr); gap: 16px; }
.chart-card .card-head { padding-bottom: 4px; }
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.chart-legend i.amber { background: var(--amber); }
.chart-total { display: flex; gap: 26px; margin-top: 15px; }
.chart-total > div { display: flex; flex-direction: column; gap: 2px; }
.chart-total span { font-size: 9.5px; color: var(--muted-2); }
.chart-total b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart-total b small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 3px; }
.chart-box { position: relative; padding: 8px 16px 14px; }
.chart-svg { width: 100%; height: 218px; overflow: visible; }
.chart-svg text { font-family: var(--font); font-size: 9px; fill: #96a79f; }
.chart-tooltip { position: absolute; pointer-events: none; background: #143c31; color: #fff; border-radius: 8px; padding: 7px 9px; font-size: 10px; line-height: 1.65; box-shadow: var(--shadow-md); transform: translate(-50%, -115%); opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 3; }
.chart-tooltip b { color: #f2cf8d; font-weight: 600; }
.chart-tooltip.show { opacity: 1; }

.todo-card .card-body { padding: 10px 12px 12px; }
.todo-list { display: flex; flex-direction: column; gap: 2px; }
.todo-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: none; background: transparent; text-align: left; transition: background .16s; }
.todo-item:hover { background: #f4f8f5; }
.todo-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.todo-icon .icon { width: 16px; height: 16px; }
.todo-icon.amber { background: var(--amber-soft); color: var(--amber-deep); }
.todo-icon.blue { background: var(--blue-soft); color: var(--blue); }
.todo-icon.green { background: var(--brand-soft); color: var(--brand); }
.todo-icon.red { background: var(--red-soft); color: var(--red); }
.todo-item > div:nth-child(2) { flex: 1; min-width: 0; }
.todo-item b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.todo-item span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.todo-count { font-size: 16px; font-weight: 650; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.todo-count small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.dash-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 1px solid var(--line); background: #fcfdfc; font-size: 10px; color: var(--muted-2); }
.dash-card-foot b { color: var(--ink-2); font-weight: 600; }

.warehouse-list { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 15px; }
.warehouse-row { display: flex; flex-direction: column; gap: 6px; }
.warehouse-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.warehouse-row-top b { font-size: 11.5px; font-weight: 600; }
.warehouse-row-top span { font-size: 10px; color: var(--muted-2); }
.warehouse-bar-meta { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted-2); }
.warehouse-bar-meta b { color: var(--ink-2); font-weight: 600; }

.pipeline { display: flex; align-items: stretch; gap: 0; padding: 16px 20px 20px; }
.pipeline-step { flex: 1; position: relative; }
.pipeline-btn { width: 100%; border: none; background: transparent; text-align: left; padding: 12px 14px; border-radius: 10px; transition: background .16s; }
.pipeline-btn:hover { background: #f5f9f6; }
.pipeline-step + .pipeline-step::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 1px; background: #dce5df; }
.pipeline-btn .pipe-label { font-size: 9.5px; color: var(--muted-2); display: flex; align-items: center; gap: 5px; }
.pipeline-btn .pipe-label i { width: 6px; height: 6px; border-radius: 50%; background: #d5dfda; }
.pipeline-btn .pipe-count { font-size: 22px; font-weight: 650; letter-spacing: -.035em; margin-top: 5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pipeline-btn .pipe-count small { font-size: 9px; color: var(--muted-2); font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.pipeline-step:nth-child(1) .pipe-label i { background: var(--amber); }
.pipeline-step:nth-child(2) .pipe-label i { background: var(--blue); }
.pipeline-step:nth-child(3) .pipe-label i { background: var(--purple); }
.pipeline-step:nth-child(4) .pipe-label i { background: #d48b41; }
.pipeline-step:nth-child(5) .pipe-label i { background: var(--brand-light); }
.pipeline-step.is-done .pipe-count { color: var(--brand); }

.alert-list { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 1px; }
.alert-item { display: flex; align-items: center; gap: 10px; padding: 10px 9px; border-radius: 9px; }
.alert-item:hover { background: #f8faf8; }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.alert-dot.amber { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.alert-dot.red { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.alert-main { flex: 1; min-width: 0; }
.alert-main b { display: block; font-size: 11px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-main span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.alert-num { font-size: 12px; font-weight: 650; color: var(--red); font-variant-numeric: tabular-nums; }
.alert-num.amber { color: var(--amber-deep); }
.alert-num small { font-size: 8px; font-weight: 400; color: var(--muted-2); margin-left: 2px; }

.activity-list { padding: 8px 20px 14px; }
.activity-item { display: flex; gap: 11px; padding: 9px 0; position: relative; }
.activity-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 24px; bottom: -7px; width: 1px; background: var(--line); }
.activity-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; flex: 0 0 auto; margin-top: 4px; box-shadow: 0 0 0 1px var(--line); }
.activity-dot.inbound { background: var(--brand-light); }
.activity-dot.outbound { background: var(--amber); }
.activity-dot.inventory { background: var(--blue); }
.activity-dot.user { background: var(--purple); }
.activity-dot.auth { background: #9bb0a7; }
.activity-item b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.activity-item span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.activity-time { margin-left: auto; font-size: 8.5px; color: #b1beb8; white-space: nowrap; padding-top: 2px; }

/* ---------- Tabs / stats strip ---------- */
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.summary-mini { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.summary-mini .mini-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #f1f6f3; color: var(--brand); }
.summary-mini .mini-icon .icon { width: 16px; height: 16px; }
.summary-mini b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-mini span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.summary-mini .mini-extra { margin-left: auto; font-size: 9px; color: var(--muted-2); text-align: right; }

/* ---------- Modal / Drawer ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(8, 31, 24, .42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: var(--radius-xl); box-shadow: 0 40px 100px -20px rgba(4, 24, 18, .45); display: flex; flex-direction: column; overflow: hidden; animation: modalIn .22s cubic-bezier(.22,.8,.28,1); }
.modal.modal-lg { width: min(780px, 100%); }
.modal.modal-sm { width: min(430px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.modal-head p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.modal-close { width: 30px; height: 30px; border: none; background: #f3f6f4; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { background: #e8eeea; color: var(--ink); }
.modal-close .icon { width: 15px; height: 15px; }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: #fcfdfc; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.modal-foot .btn { min-width: 82px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-field label em { color: var(--red); font-style: normal; margin-left: 2px; }
.form-field .hint { font-size: 9.5px; color: var(--muted-2); margin-top: 5px; }
.form-field .input, .form-field .select { height: 39px; font-size: 12.5px; }
.textarea { height: auto; min-height: 74px; padding: 9px 10px; resize: vertical; line-height: 1.6; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 650; color: var(--ink-2); margin: 22px 0 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-section-title .count { font-size: 9.5px; font-weight: 400; color: var(--muted-2); }

.line-items { display: flex; flex-direction: column; gap: 7px; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 105px 30px; gap: 7px; align-items: start; animation: lineIn .18s ease; }
@keyframes lineIn { from { opacity: 0; transform: translateY(-3px); } }
.line-item .select, .line-item .input { height: 38px; font-size: 12px; }
.line-remove { width: 30px; height: 38px; border: none; background: transparent; color: #b1beb8; border-radius: 7px; display: grid; place-items: center; }
.line-remove:hover { background: var(--red-soft); color: var(--red); }
.line-remove .icon { width: 14px; height: 14px; }
.line-summary { display: flex; justify-content: flex-end; gap: 18px; padding: 10px 2px 0; font-size: 10.5px; color: var(--muted-2); border-top: 1px dashed var(--line); margin-top: 10px; }
.line-summary b { color: var(--ink-2); font-weight: 600; }
.add-line-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed #c8d8d0; background: #fbfdfb; color: var(--brand); height: 31px; padding: 0 10px; border-radius: 7px; font-size: 10.5px; font-weight: 600; }
.add-line-btn:hover { background: var(--brand-soft); border-color: #a9c9bc; }
.add-line-btn .icon { width: 13px; height: 13px; }
.empty-lines { padding: 18px; text-align: center; font-size: 10.5px; color: var(--muted-2); border: 1px dashed var(--line-strong); border-radius: 8px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(8,31,24,.35); backdrop-filter: blur(2px); animation: fadeIn .16s ease; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 195; width: min(600px, 100%); background: #fff; box-shadow: -30px 0 80px -30px rgba(4,24,18,.4); display: flex; flex-direction: column; animation: drawerIn .26s cubic-bezier(.22,.8,.28,1); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.drawer-head h3 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.drawer-head p { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 26px; }
.drawer-foot { padding: 15px 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: #fcfdfc; }
.drawer-section { margin-bottom: 26px; }
.drawer-section-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 650; color: var(--ink-2); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; }
.detail-field span { display: block; font-size: 9.5px; color: var(--muted-2); margin-bottom: 3px; }
.detail-field b { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.detail-field b.mono { font-size: 11px; }
.detail-note { padding: 11px 13px; border-radius: 8px; background: #f7faf8; border: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.detail-amount { font-size: 23px; font-weight: 650; letter-spacing: -.03em; color: var(--brand); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step { display: flex; gap: 12px; position: relative; padding-bottom: 17px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 23px; bottom: 3px; width: 1px; background: var(--line); }
.timeline-dot { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; flex: 0 0 auto; color: #b1beb8; }
.timeline-dot .icon { width: 11px; height: 11px; }
.timeline-step.done .timeline-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline-step.current .timeline-dot { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-deep); box-shadow: 0 0 0 4px var(--amber-soft); }
.timeline-main { padding-top: 1px; }
.timeline-main b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.timeline-main span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------- Status stepper ---------- */
.stepper { display: flex; align-items: flex-start; padding: 18px 8px 8px; }
.stepper-item { flex: 1; text-align: center; position: relative; }
.stepper-item::before { content: ""; position: absolute; left: -50%; top: 13px; width: 100%; height: 2px; background: #e8eeea; }
.stepper-item:first-child::before { display: none; }
.stepper-item.done::before { background: var(--brand-light); }
.stepper-dot { width: 27px; height: 27px; border-radius: 50%; background: #f1f5f2; color: #9aaba4; margin: 0 auto 7px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2eae5; position: relative; z-index: 1; }
.stepper-dot .icon { width: 13px; height: 13px; }
.stepper-item.done .stepper-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px var(--brand); }
.stepper-item.current .stepper-dot { background: var(--amber-soft); color: var(--amber-deep); box-shadow: 0 0 0 1px var(--amber); }
.stepper-item span { font-size: 9px; color: var(--muted-2); }
.stepper-item.done span, .stepper-item.current span { color: var(--ink-2); font-weight: 550; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { background: #eef3ef; border: 1px solid #e4ece7; border-radius: 13px; padding: 10px; min-height: 320px; min-width: 0; }
.kanban-col-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.kanban-col-head b { font-size: 11px; font-weight: 650; color: var(--ink-2); }
.kanban-col-head .col-count { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 5px; background: #fff; color: var(--muted); font-size: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; }
.kanban-dot { width: 6px; height: 6px; border-radius: 50%; }
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow-xs); transition: .16s; cursor: pointer; }
.kanban-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: #cddbd4; }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.kanban-no { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); letter-spacing: -.02em; }
.kanban-customer { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.kanban-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; font-size: 9.5px; color: var(--muted-2); }
.kanban-meta span { display: inline-flex; align-items: center; gap: 4px; }
.kanban-meta .icon { width: 11px; height: 11px; }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.kanban-qty { font-size: 10px; color: var(--ink-2); font-weight: 600; }
.kanban-qty small { font-size: 8.5px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.kanban-action { border: none; background: var(--brand-soft); color: var(--brand); height: 25px; padding: 0 8px; border-radius: 6px; font-size: 9.5px; font-weight: 600; }
.kanban-action:hover { background: #d9ede5; }
.kanban-empty { text-align: center; padding: 30px 12px; font-size: 10px; color: var(--muted-2); border: 1px dashed #d7e2dc; border-radius: 9px; }

/* ---------- Warehouse cards ---------- */
.warehouse-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.warehouse-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: .18s; }
.warehouse-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.warehouse-cover { height: 92px; background: linear-gradient(140deg, #10392f, #1d6f59); position: relative; overflow: hidden; padding: 16px 18px; color: #fff; }
.warehouse-cover::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, #000, transparent); }
.warehouse-cover::after { content: ""; position: absolute; right: -30px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); box-shadow: 0 0 0 24px rgba(255,255,255,.03); }
.warehouse-cover .wh-code { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.55); letter-spacing: .08em; }
.warehouse-cover h3 { font-size: 17px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.warehouse-cover .wh-status { position: absolute; top: 16px; right: 16px; font-size: 9px; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(3px); }
.warehouse-card-body { padding: 16px 18px 17px; }
.wh-address { display: flex; align-items: flex-start; gap: 5px; font-size: 10px; color: var(--muted-2); line-height: 1.5; min-height: 30px; }
.wh-address .icon { width: 12px; height: 12px; margin-top: 1px; color: #a2b2ab; }
.wh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wh-stat b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wh-stat span { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 2px; }
.wh-occupancy { margin-top: 13px; }
.wh-occupancy-head { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted-2); margin-bottom: 5px; }
.wh-occupancy-head b { color: var(--ink-2); font-weight: 600; }
.wh-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.wh-card-foot span { font-size: 9.5px; color: var(--muted-2); }
.wh-card-foot .btn { height: 30px; font-size: 10.5px; padding: 0 10px; }
.wh-pending { display: flex; gap: 5px; }
.wh-pending .badge { height: 19px; font-size: 9px; padding: 0 6px; }

/* ---------- Detail pages ---------- */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.filter-bar .search-field .input { width: 250px; }
.filter-bar .select { width: auto; min-width: 125px; height: 34px; font-size: 11.5px; }
.filter-bar-spacer { flex: 1; }
.filter-result { font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.filter-result b { color: var(--ink-2); }

/* ---------- Toasts ---------- */
.toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 250px; max-width: 380px; padding: 11px 14px; border-radius: 10px; background: #143c31; color: #edf7f2; box-shadow: var(--shadow-lg); font-size: 11.5px; animation: toastIn .22s cubic-bezier(.22,.8,.28,1); }
.toast .icon { width: 17px; height: 17px; color: #7bdcb7; }
.toast.error { background: #4a201a; }
.toast.error .icon { color: #f1a697; }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(8,31,24,.35); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; animation: fadeIn .14s; }
.search-modal { width: min(600px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 40px 100px -20px rgba(4,24,18,.5); overflow: hidden; animation: modalIn .18s; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.search-input-row .icon { width: 19px; height: 19px; color: var(--muted-2); }
.search-input-row input { flex: 1; border: none; outline: none; background: transparent; height: 30px; font-size: 14px; }
.search-input-row input::placeholder { color: #a7b5ae; }
.kbd-btn { border: 1px solid var(--line-strong); background: #f8faf8; border-radius: 5px; padding: 3px 6px; font-family: var(--font); font-size: 9px; color: var(--muted-2); }
.search-hints { display: flex; align-items: center; gap: 7px; padding: 12px 16px 4px; font-size: 9.5px; color: var(--muted-2); flex-wrap: wrap; }
.search-hints button { border: 1px solid var(--line); background: #fbfdfb; height: 23px; padding: 0 8px; border-radius: 5px; font-size: 9.5px; color: var(--muted); }
.search-hints button:hover { background: var(--brand-soft); color: var(--brand); border-color: #c6ded4; }
.search-results { padding: 8px 8px 10px; max-height: 50vh; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; background: transparent; border-radius: 8px; text-align: left; }
.search-result:hover, .search-result.active { background: #f2f7f4; }
.search-type { font-size: 8.5px; height: 19px; padding: 0 6px; border-radius: 4px; background: #edf3ef; color: var(--muted); display: inline-flex; align-items: center; flex: 0 0 auto; }
.search-result-main { flex: 1; min-width: 0; }
.search-result-main b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.search-result-main span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { padding: 26px 14px; text-align: center; font-size: 11px; color: var(--muted-2); }

/* ---------- Misc ---------- */
.mobile-only { display: none; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; }
.hint-box { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 9px; background: var(--amber-soft); border: 1px solid #f2e4c7; color: #8a651f; font-size: 10.5px; line-height: 1.6; }
.hint-box .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--amber-deep); }
.info-box { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 9px; background: var(--brand-soft-2); border: 1px solid #dcece5; color: #557269; font-size: 10.5px; line-height: 1.6; }
.info-box .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--brand); }
.inline-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.status-toggle { position: relative; width: 32px; height: 18px; border-radius: 10px; border: none; background: #dbe4df; transition: .18s; flex: 0 0 auto; }
.status-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: .18s; }
.status-toggle.on { background: var(--brand); }
.status-toggle.on::after { transform: translateX(14px); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .dash-grid-2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .dash-grid-2 > .activity-card { grid-column: 1 / -1; }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .activity-item:nth-last-child(-n+2) { border-bottom: none; }
  .login-art { width: 50%; opacity: .9; }
}
@media (max-width: 1160px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .todo-card .todo-list { display: grid; grid-template-columns: 1fr 1fr; }
  .warehouse-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { overflow-x: auto; }
  .pipeline-step { min-width: 130px; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px -20px rgba(0,0,0,.4); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-mask { display: block; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 20px; }
  .page { padding: 22px 20px 44px; }
  .login-view { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { min-height: 100vh; padding: 42px 30px; }
  .login-mobile-brand { display: flex; }
  .login-form-inner { max-width: 400px; }
  .global-search { width: 200px; }
  .topbar-date { display: none; }
}
@media (max-width: 820px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-grid-2 > .activity-card { grid-column: auto; }
  .activity-list { display: block; }
  .dash-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .warehouse-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .global-search { width: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .global-search span, .global-search kbd { display: none; }
  .user-menu-meta, .user-menu-btn > .icon { display: none; }
  .user-menu-btn { padding: 4px; }
  .topbar-divider { display: none; }
  .page-head h1 { font-size: 24px; }
  .search-field .input { width: 100%; }
  .filter-bar .search-field { flex: 1; min-width: 180px; }
  .filter-bar .search-field .input { width: 100%; }
  .filter-bar { gap: 7px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 24px); border-radius: 18px 18px 14px 14px; }
  .modal-body { padding: 18px; }
  .modal-head { padding: 18px 18px 14px; }
  .modal-foot { padding: 12px 18px; }
  .drawer { width: 100%; }
  .drawer-body { padding: 18px; }
  .drawer-head { padding: 18px; }
  .drawer-foot { padding: 12px 18px; }
  .toast-root { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 640px) {
  .topbar { height: 62px; padding: 0 14px; }
  .page { padding: 18px 14px 36px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .stat-spark { display: none; }
  .summary-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-mini { padding: 10px 11px; }
  .summary-mini b { font-size: 14px; }
  .summary-mini .mini-icon { width: 28px; height: 28px; }
  .dash-grid { gap: 12px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 16px; }
  .chart-total { gap: 16px; }
  .chart-svg { height: 175px; }
  .todo-card .todo-list { grid-template-columns: 1fr; }
  .dash-grid-2 { gap: 12px; }
  .pipeline { padding: 10px 10px 12px; }
  .pipeline-step { min-width: 112px; }
  .pipeline-btn { padding: 9px 10px; }
  .pipeline-btn .pipe-count { font-size: 19px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 12px; }
  .page-actions .btn { flex: 1; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 0 0 auto; }
  .toolbar { align-items: flex-start; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .filter-bar .select { flex: 1 1 44%; min-width: 122px; }
  .filter-bar .search-field { flex: 1 1 100%; }
  .filter-result { display: none; }
  .table-foot { padding: 10px 14px; }
  .data-table thead th, .data-table tbody td { padding-left: 12px; padding-right: 12px; }
  .data-table thead th:first-child, .data-table tbody td:first-child { padding-left: 14px; }
  .data-table thead th:last-child, .data-table tbody td:last-child { padding-right: 14px; }
  .login-form-panel { padding: 30px 22px; }
  .login-form-inner h2 { font-size: 26px; }
  .demo-chips { grid-template-columns: 1fr; }
  .demo-chips button { flex-direction: row; align-items: center; justify-content: space-between; }
  .kanban { grid-template-columns: repeat(5, 240px); }
  .chart-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Extended components ---------- */
.mb-16 { margin-bottom: 16px; }
.stat-mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: 11px; opacity: .55; }
.stat-mini-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(78,120,200,.18), rgba(78,120,200,.55)); min-height: 5px; }
.stat-progress { height: 5px; border-radius: 4px; background: #edf2ee; margin-top: 12px; overflow: hidden; }
.stat-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8d7dd0, #7465bd); }
.profile-block { display: flex; align-items: center; gap: 14px; padding: 4px 0 2px; }
.profile-block h4 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.profile-block p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.confirm-body { text-align: center; padding: 6px 4px 10px; }
.confirm-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; padding: 12px; background: var(--amber-soft); color: var(--amber-deep); }
.confirm-body p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.confirm-body p b { color: var(--ink-2); }
.stock-line { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #f0f4f1; }
.stock-line:last-child { border-bottom: none; }
.stock-line > div:nth-child(2) { flex: 1; min-width: 0; }
.stock-line b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-line span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.stock-line strong { font-size: 11.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.stock-line strong small { font-size: 8.5px; color: var(--muted-2); font-weight: 400; }
.line-item-head { display: grid; grid-template-columns: minmax(0,1fr) 105px 30px; gap: 7px; padding: 0 2px 6px; font-size: 9.5px; color: var(--muted-2); }
.line-item-head span:nth-child(2) { padding-left: 2px; }
.receive-list { display: flex; flex-direction: column; gap: 10px; }
.receive-line { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: #fcfdfc; display: grid; grid-template-columns: minmax(0,1.2fr) auto; gap: 11px 16px; }
.receive-product { display: flex; align-items: center; gap: 9px; min-width: 0; }
.receive-product b { display: block; font-size: 12px; font-weight: 600; }
.receive-product span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.receive-progress { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.receive-progress b { color: var(--ink-2); font-weight: 650; }
.receive-progress .remaining b { color: var(--amber-deep); }
.receive-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 105px minmax(0,1fr) minmax(0,1fr); gap: 10px; padding-top: 11px; border-top: 1px dashed var(--line); }
.receive-fields .input, .receive-fields .select { height: 35px; font-size: 11.5px; }
.receive-fields .form-field label { font-size: 9.5px; margin-bottom: 4px; }
.pick-head { display: grid; grid-template-columns: 92px minmax(0,1fr) 130px 95px; gap: 10px; padding: 10px 12px; background: #f6f9f7; border: 1px solid var(--line); border-radius: 8px; font-size: 9.5px; color: var(--muted-2); }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-line { display: grid; grid-template-columns: 92px minmax(0,1fr) 130px 95px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.pick-location { display: flex; flex-direction: column; gap: 3px; }
.bin-code { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 5px; align-self: flex-start; }
.pick-location span:last-child { font-size: 8.5px; color: var(--muted-2); }
.pick-product { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pick-product b { display: block; font-size: 11.5px; font-weight: 600; }
.pick-product span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.pick-product .product-thumb { width: 30px; height: 30px; }
.pick-qty-meta { display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; color: var(--muted-2); }
.pick-qty-meta b { color: var(--ink-2); font-weight: 650; }
.pick-qty { height: 35px; font-size: 12px; text-align: center; }
.inspect-list { display: flex; flex-direction: column; gap: 9px; }
.inspect-line { display: grid; grid-template-columns: minmax(0,1fr) 100px 230px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.inspect-meta { font-size: 10px; color: var(--muted-2); }
.inspect-meta b { color: var(--ink-2); font-size: 12px; }
.inspect-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inspect-inputs .input { height: 34px; font-size: 11.5px; }
.inspect-inputs .form-field label { font-size: 9px; margin-bottom: 4px; }
.package-summary { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); background: #fbfdfb; border-radius: 11px; }
.package-summary b { display: block; font-size: 15px; font-weight: 650; }
.package-summary span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.ship-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ship-stat { border: 1px solid var(--line); background: #fbfdfb; border-radius: 10px; padding: 12px 14px; }
.ship-stat span { display: block; font-size: 9.5px; color: var(--muted-2); }
.ship-stat b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.03em; margin-top: 3px; }
.ship-stat b small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 3px; }
.drawer-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-topline > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-total { font-size: 22px; font-weight: 650; letter-spacing: -.03em; color: var(--ink); }
.drawer-total small { font-size: 10px; color: var(--muted-2); font-weight: 400; letter-spacing: 0; }
.cancelled-banner { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #f4f6f4; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; }
.cancelled-banner .icon { width: 16px; height: 16px; color: var(--muted-2); }
.package-info { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; font-size: 10.5px; color: var(--muted); }
.package-info span { display: inline-flex; align-items: center; gap: 5px; }
.package-info .icon { width: 14px; height: 14px; color: var(--brand); }
.adjust-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adjust-summary > div { padding: 11px 12px; border-radius: 9px; background: #f7faf8; border: 1px solid var(--line); }
.adjust-summary span { display: block; font-size: 9px; color: var(--muted-2); }
.adjust-summary b { display: block; font-size: 14px; font-weight: 650; margin-top: 3px; }
.transfer-path { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfb; }
.transfer-path > div { display: flex; flex-direction: column; gap: 3px; }
.transfer-path span { font-size: 9px; color: var(--muted-2); }
.transfer-path b { font-size: 12px; font-weight: 650; }
.transfer-path small { font-size: 8.5px; color: var(--muted-2); }
.transfer-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.transfer-arrow .icon { width: 15px; height: 15px; }

@media (max-width: 820px) {
  .receive-line { grid-template-columns: 1fr; }
  .receive-progress { justify-content: flex-start; }
  .receive-fields { grid-template-columns: 1fr 1fr; }
  .receive-fields .form-field:first-child { grid-column: 1 / -1; }
  .pick-head { display: none; }
  .pick-line { grid-template-columns: 78px minmax(0,1fr); }
  .pick-qty-meta { flex-direction: row; gap: 10px; grid-column: 1; }
  .pick-qty { grid-column: 2; }
  .inspect-line { grid-template-columns: 1fr; }
  .inspect-inputs { grid-template-columns: 1fr 1fr; }
  .line-item-head { display: none; }
  .line-item { grid-template-columns: minmax(0,1fr) 82px 28px; }
}
@media (max-width: 560px) {
  .receive-fields { grid-template-columns: 1fr; }
  .receive-fields .form-field:first-child { grid-column: auto; }
  .ship-summary { grid-template-columns: 1fr; }
  .adjust-summary { grid-template-columns: 1fr; }
  .transfer-path { grid-template-columns: 1fr; text-align: left; }
  .transfer-arrow { transform: rotate(90deg); }
}
@media (max-width: 1280px) {
  .kanban { grid-template-columns: repeat(5, 225px); }
}

/* ---------- Container / Putaway workflow ---------- */
.demo-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.container-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: var(--brand); }
.container-chip .icon { width: 11px; height: 11px; }
.progress-line { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.progress-line + .progress-line { margin-top: 5px; }
.progress-line > span { font-size: 8.5px; color: var(--muted-2); }
.progress-line > b { font-size: 9.5px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-line .progress { min-width: 0; height: 4px; }
.progress-stack { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--muted-2); margin-bottom: 5px; }
.progress-meta b { color: var(--ink-2); font-weight: 600; }
.container-receive-head { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfb; }
.receive-fields-2 { grid-template-columns: 1fr 1fr; }
.container-list { display: flex; flex-direction: column; gap: 7px; }
.container-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfb; }
.container-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.container-icon .icon { width: 15px; height: 15px; }
.container-icon.sm { width: 26px; height: 26px; }
.container-icon.sm .icon { width: 13px; height: 13px; }
.container-main { flex: 1; min-width: 0; }
.container-main b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.container-main span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.container-history { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.container-history-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f4f1; }
.container-history-row:last-child { border-bottom: none; }
.container-history-row > div:nth-child(2) { flex: 1; min-width: 0; }
.container-history-row b { display: block; font-size: 10.5px; font-weight: 600; }
.container-history-row span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.container-history-bar { display: flex; align-items: center; gap: 7px; }
.container-history-bar span { font-size: 9px; color: var(--muted-2); }
.putaway-scan-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: center; padding: 27px 30px; margin-bottom: 16px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #0d3c31 0%, #145d4c 62%, #1b6f5c 100%); box-shadow: 0 20px 40px -28px rgba(10,44,36,.65); }
.putaway-scan-card::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(ellipse at 80% 40%, #000, transparent 72%); }
.putaway-scan-card::after { content: ""; position: absolute; right: -80px; top: -130px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 36px rgba(255,255,255,.025); }
.putaway-scan-copy, .putaway-scan-box { position: relative; z-index: 1; }
.putaway-scan-copy h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 9px; }
.putaway-scan-copy p { margin-top: 9px; font-size: 11.5px; line-height: 1.8; color: rgba(235,246,240,.65); max-width: 420px; }
.scan-steps { display: flex; gap: 17px; margin-top: 20px; }
.scan-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(235,246,240,.64); }
.scan-steps i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #f1ca87; font-style: normal; font-size: 9px; display: grid; place-items: center; }
.putaway-scan-box { background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.5); border-radius: 14px; padding: 16px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.4); }
.putaway-scan-box > label { display: block; font-size: 10px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.scan-input-wrap { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.scan-input-wrap:focus-within { border-color: #6ca998; box-shadow: 0 0 0 3px rgba(22,112,92,.09); }
.scan-input-wrap > .icon { width: 19px; height: 19px; color: var(--brand); }
.scan-input-wrap input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; height: 38px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.scan-input-wrap input::placeholder { color: #a9b6b0; font-family: var(--font); font-size: 11px; text-transform: none; letter-spacing: 0; }
.scan-input-wrap .btn { height: 38px; flex: 0 0 auto; }
.scan-hint { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 9.5px; color: var(--muted-2); }
.scan-hint .icon { width: 12px; height: 12px; }
.putaway-result-card { margin-bottom: 16px; padding: 0; overflow: hidden; }
.putaway-container-head { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(to right, #f6fbf8, #fff); }
.container-hero-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.container-hero-icon .icon { width: 24px; height: 24px; }
.container-hero-main { flex: 1; min-width: 0; }
.container-hero-main h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; }
.container-hero-main p { font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.container-hero-stat { text-align: right; padding-right: 8px; }
.container-hero-stat span { display: block; font-size: 9px; color: var(--muted-2); }
.container-hero-stat b { display: block; font-size: 23px; font-weight: 650; letter-spacing: -.03em; color: var(--brand); }
.container-hero-stat b small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.putaway-progress { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fcfdfc; }
.putaway-progress .progress { flex: 1; height: 6px; }
.putaway-progress span { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
.putaway-tools { display: flex; align-items: center; gap: 9px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.putaway-tools-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.putaway-tools-label .icon { width: 14px; height: 14px; color: var(--brand); }
.putaway-head, .putaway-line { display: grid; grid-template-columns: minmax(0,1fr) 125px 100px 210px; gap: 12px; align-items: center; }
.putaway-head { padding: 11px 22px; background: #f9fbf9; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted-2); }
.putaway-lines { display: flex; flex-direction: column; }
.putaway-line { padding: 12px 22px; border-bottom: 1px solid #edf2ee; }
.putaway-line:last-child { border-bottom: none; }
.putaway-product { display: flex; align-items: center; gap: 9px; min-width: 0; }
.putaway-product b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.putaway-product span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.putaway-qty-meta { display: flex; flex-direction: column; gap: 2px; font-size: 9px; color: var(--muted-2); }
.putaway-qty-meta b { color: var(--ink-2); font-weight: 650; }
.putaway-qty-meta .remaining b { color: var(--brand); }
.putaway-qty { height: 36px; font-size: 12px; text-align: center; }
.putaway-location { height: 36px; font-size: 11px; }
.putaway-result-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fcfdfc; }
.putaway-result-foot .info-box { flex: 1; margin: 0; }
.putaway-result-foot .btn { flex: 0 0 auto; }
.pending-container-card { overflow: hidden; }
.activity-dot.putaway { background: var(--brand); }
.activity-dot.inbound { background: var(--brand-light); }
.pending-container-card .table-wrap { border-top: none; }

@media (max-width: 1024px) {
  .putaway-scan-card { grid-template-columns: 1fr; padding: 22px; }
  .putaway-scan-copy h2 { font-size: 23px; }
}
@media (max-width: 820px) {
  .putaway-head { display: none; }
  .putaway-line { grid-template-columns: 1fr 1fr; gap: 9px; padding: 13px 16px; }
  .putaway-product { grid-column: 1 / -1; }
  .putaway-qty-meta { flex-direction: row; gap: 10px; }
  .putaway-qty { grid-column: 1; grid-row: 3; }
  .putaway-location { grid-column: 2; grid-row: 3; }
  .putaway-result-foot { flex-direction: column; align-items: stretch; }
  .putaway-result-foot .btn { width: 100%; }
  .putaway-container-head { flex-wrap: wrap; padding: 16px; }
  .container-hero-stat { margin-left: auto; }
  .putaway-tools { padding: 12px 16px; }
  .putaway-tools .muted { width: 100%; margin-left: 0 !important; }
  .container-receive-head { flex-direction: column; align-items: stretch; }
  .container-receive-head .form-field[style] { width: 100% !important; }
}
@media (max-width: 560px) {
  .putaway-scan-card { padding: 18px; }
  .scan-steps { gap: 9px; flex-wrap: wrap; }
  .putaway-scan-box { padding: 12px; }
  .scan-input-wrap { flex-wrap: wrap; padding: 8px; }
  .scan-input-wrap input { flex: 1 1 100%; }
  .scan-input-wrap .btn { width: 100%; }
  .putaway-container-head { gap: 9px; }
  .container-hero-icon { width: 38px; height: 38px; border-radius: 10px; }
  .container-hero-main h3 { font-size: 16px; }
  .container-hero-stat b { font-size: 19px; }
  .receive-fields-2 { grid-template-columns: 1fr; }
  .container-row { flex-wrap: wrap; }
  .container-history-row { flex-wrap: wrap; }
  .container-history-bar { width: 100%; }
}
@media (max-width: 640px) {
  .demo-chips { grid-template-columns: 1fr; }
}

.table-action[disabled] { opacity: .38; cursor: not-allowed; pointer-events: none; }

/* 扫描输入框在深色卡片内需要显式设置文字颜色，避免继承白色导致输入内容不可见 */
.scan-input-wrap input,
.scan-input-wrap input:focus {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--brand);
}
.scan-input-wrap input::selection {
  background: #cde8de;
  color: var(--ink);
}

/* ---------- Warehouse switcher ---------- */
.sidebar-context {
  width: 100%; text-align: left; cursor: pointer; font-family: var(--font); color: inherit;
  transition: background .18s, border-color .18s;
}
.sidebar-context:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.sidebar-context > div:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-context em {
  display: block; font-style: normal; font-size: 8.5px; color: #e3bd78;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.context-chevron { width: 13px !important; height: 13px !important; margin-left: 2px; color: rgba(232,241,236,.4); }
.warehouse-switch-menu {
  position: absolute; z-index: 95; left: 12px; right: 12px; top: 124px;
  background: #123c31; border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); padding: 7px; color: #edf6f1;
  max-height: 60vh; overflow-y: auto;
}
.warehouse-switch-menu::before {
  content: "切换运营仓"; display: block; padding: 6px 9px 8px;
  font-size: 9px; letter-spacing: .12em; color: rgba(232,241,236,.4);
}
.warehouse-switch-item {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  border: 1px solid transparent; background: transparent; color: #dfece6;
  padding: 9px; border-radius: 8px; cursor: pointer; font-family: var(--font);
}
.warehouse-switch-item:hover { background: rgba(255,255,255,.07); }
.warehouse-switch-item.active { background: rgba(220,165,63,.13); border-color: rgba(220,165,63,.22); }
.warehouse-switch-item:disabled { opacity: .35; cursor: not-allowed; }
.warehouse-switch-item .wh-ico {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; flex: 0 0 auto; color: #e5bd72;
}
.warehouse-switch-item.active .wh-ico { background: rgba(220,165,63,.18); }
.warehouse-switch-item .wh-ico .icon { width: 14px; height: 14px; }
.warehouse-switch-item .wh-main { flex: 1; min-width: 0; }
.warehouse-switch-item b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warehouse-switch-item span { display: block; font-size: 8.5px; color: rgba(232,241,236,.5); margin-top: 2px; }
.warehouse-switch-item .wh-role { font-size: 8.5px; color: #e5bd72; white-space: nowrap; }
.warehouse-switch-item .wh-check { color: #f0cd88; width: 14px; height: 14px; }
.warehouse-switch-foot { padding: 8px 9px 4px; font-size: 8.5px; line-height: 1.6; color: rgba(232,241,236,.32); border-top: 1px solid rgba(255,255,255,.07); margin-top: 5px; }

/* ---------- User multi-warehouse assignments ---------- */
.assignment-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.assignment-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px;
  background: #f3f7f4; border: 1px solid #e6ede8; font-size: 9px; color: var(--muted);
  white-space: nowrap;
}
.assignment-chip b { font-weight: 600; color: var(--ink-2); }
.assignment-chip.muted { color: var(--muted-2); }
.assignment-list { display: flex; flex-direction: column; gap: 7px; }
.assignment-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) 30px; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfb; }
.assignment-row .select { height: 36px; font-size: 11.5px; }
.assignment-row .line-remove { height: 36px; }
