/* ==========================================================================
   云仓进销存 · UI
   ========================================================================== */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5eaf2;
  --line-strong: #d5dde9;
  --primary: #0f766e;
  --primary-2: #0d9488;
  --primary-dark: #115e59;
  --primary-soft: #e6fffa;
  --primary-soft-2: #ccfbf1;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --green: #059669;
  --green-soft: #ecfdf5;
  --sidebar: #0b1220;
  --sidebar-2: #101d33;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .03);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "PingFang SC", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
.icon { width: 16px; height: 16px; }
[hidden], .hidden { display: none !important; }
body.modal-open { overflow: hidden; }
::selection { background: #99f6e4; color: #042f2e; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   登录
   -------------------------------------------------------------------------- */
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr);
  background: #fff;
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px 54px 30px;
  color: #e2e8f0;
  background:
    radial-gradient(900px 700px at 75% 20%, rgba(13, 148, 136, .22), transparent 62%),
    radial-gradient(700px 500px at 10% 90%, rgba(245, 158, 11, .12), transparent 60%),
    linear-gradient(145deg, #07111f 0%, #0b1729 48%, #0b1b2d 100%);
  isolation: isolate;
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
              linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 75% at 50% 45%, #000 20%, transparent 88%);
  z-index: -1;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -260px; top: -300px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, .16);
  box-shadow: 0 0 0 90px rgba(45, 212, 191, .03), 0 0 0 180px rgba(45, 212, 191, .02);
  z-index: -1;
}
.visual-grid {
  position: absolute;
  inset: auto -10% 2% -10%;
  height: 34%;
  background: repeating-linear-gradient(115deg, rgba(148, 163, 184, .08) 0 1px, transparent 1px 42px);
  transform: perspective(500px) rotateX(55deg);
  transform-origin: bottom;
  opacity: .7;
  z-index: -1;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 7px;
  border-radius: 11px;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -8px rgba(20,184,166,.8);
}
.brand-mark span { border-radius: 2px; background: #fff; opacity: .95; }
.brand-mark span:nth-child(1) { height: 62%; align-self: end; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 78%; align-self: end; }
.brand-mark.small { width: 34px; height: 34px; padding: 6px; border-radius: 10px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; color: #f8fafc; }
.brand-name span { color: #5eead4; font-weight: 600; margin-left: 2px; }
.visual-copy { margin-top: auto; padding-top: 8vh; max-width: 660px; position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #5eead4;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.dark { color: var(--primary); }
.visual-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.18;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: #f8fafc;
}
.visual-copy p { margin: 0; font-size: 15px; line-height: 1.9; color: #94a3b8; }
.visual-features { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; }
.visual-features span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cbd5e1; }
.visual-features .dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45,212,191,.12); }
.visual-cards {
  position: absolute;
  right: 46px;
  top: 21%;
  width: 252px;
  height: 380px;
  z-index: 1;
}
.float-card {
  position: absolute;
  background: rgba(17, 30, 50, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.float-card-a { width: 246px; right: 0; top: 30px; animation: floaty 7s ease-in-out infinite; }
.float-card-b { width: 214px; left: -38px; top: 196px; animation: floaty 8s ease-in-out infinite 1s; }
.float-card-c { width: 182px; right: -4px; top: 300px; animation: floaty 7.5s ease-in-out infinite .4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #94a3b8; margin-bottom: 12px; }
.float-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(45,212,191,.14); color: #2dd4bf; display: grid; place-items: center; }
.float-icon.amber { background: rgba(251,191,36,.14); color: #fbbf24; }
.float-icon.blue { background: rgba(96,165,250,.14); color: #60a5fa; }
.float-icon svg { width: 14px; height: 14px; }
.float-card strong { display: block; font-size: 24px; letter-spacing: -.6px; color: #f8fafc; }
.float-card strong small { font-size: 11px; color: #94a3b8; font-weight: 500; margin-left: 3px; }
.float-trend { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: #34d399; margin-top: 5px; }
.float-trend em { font-style: normal; color: #64748b; }
.float-trend.good { color: #34d399; }
.float-note { display: block; color: #94a3b8; font-size: 11px; margin-top: 6px; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 12px; }
.mini-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #2dd4bf, rgba(45,212,191,.2)); height: 40%; }
.mini-bars i:nth-child(2) { height: 55%; } .mini-bars i:nth-child(3) { height: 42%; }
.mini-bars i:nth-child(4) { height: 72%; } .mini-bars i:nth-child(5) { height: 58%; }
.mini-bars i:nth-child(6) { height: 86%; } .mini-bars i:nth-child(7) { height: 100%; }
.mini-progress { height: 4px; border-radius: 4px; background: rgba(148,163,184,.18); margin-top: 14px; overflow: hidden; }
.mini-progress span { display: block; width: 68%; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.visual-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: #64748b; padding-top: 28px; position: relative; z-index: 2;
}
.visual-foot i { width: 3px; height: 3px; border-radius: 50%; background: #475569; }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-box { width: min(410px, 100%); }
.login-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 34px; }
.login-mobile-brand .brand-name { color: var(--ink); }
.login-box h2 { margin: 12px 0 8px; font-size: 30px; letter-spacing: -.8px; font-weight: 700; color: var(--ink); }
.login-sub { margin: 0 0 30px; color: var(--muted); font-size: 13.5px; }
.login-box .field { margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: #475569; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon { position: absolute; left: 13px; color: #94a3b8; pointer-events: none; display: flex; }
.input-wrap .input-icon svg { width: 17px; height: 17px; }
.input-wrap input { width: 100%; padding-left: 40px; }
.input-action {
  position: absolute; right: 6px; width: 32px; height: 32px; border: 0; background: transparent;
  color: #94a3b8; border-radius: 8px; display: grid; place-items: center;
}
.input-action:hover { background: #f1f5f9; color: #475569; }
.input-action svg { width: 17px; height: 17px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { height: auto; min-height: 86px; padding: 11px 12px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
input::placeholder, textarea::placeholder { color: #a8b3c3; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 11px center; padding-right: 34px; }
.login-error { min-height: 22px; color: var(--rose); font-size: 12.5px; padding: 2px 0 6px; line-height: 1.5; }
.login-error.shake { animation: shake .32s linear; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.login-hint {
  margin-top: 22px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  color: var(--muted); font-size: 12px; text-align: center; line-height: 1.7;
}
.login-hint code { font-family: var(--mono); color: var(--primary-dark); background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }
.login-hint span { margin: 0 5px; color: #cbd5e1; }
.public-access { margin-top: 13px; padding: 11px 13px; border-radius: 10px; background: var(--primary-soft); border: 1px solid #99f6e4; }
.public-access-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.public-access-head span { font-size: 11px; font-weight: 600; color: var(--primary-dark); }
.public-access-head em { font-style: normal; font-size: 9.5px; color: #0f766e; }
.public-access code { display: block; font-family: var(--mono); font-size: 10.5px; color: #115e59; word-break: break-all; line-height: 1.55; }
.public-access-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.public-access-foot span { font-size: 9.5px; color: #b45309; }
.login-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 38px; color: #a3aebd; font-size: 11px; }
.login-secure { display: inline-flex; align-items: center; gap: 5px; }
.login-secure svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   基础按钮 / 表单
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid transparent; background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all .18s ease; user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; box-shadow: 0 8px 18px -10px rgba(13,148,136,.8); }
.btn-primary:hover { background: linear-gradient(135deg, #115e59, #0f766e); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: #475569; }
.btn-ghost:hover { border-color: #b8c4d4; background: #f8fafc; color: var(--ink); }
.btn-soft { background: var(--surface-3); color: #475569; border-color: transparent; }
.btn-soft:hover { background: #e2e8f0; }
.btn-danger { background: var(--rose); color: #fff; box-shadow: 0 8px 18px -10px rgba(225,29,72,.7); }
.btn-danger:hover { background: #be123c; }
.btn-danger-soft { background: var(--rose-soft); color: var(--rose); border-color: #fecdd3; }
.btn-danger-soft:hover { background: #ffe4e6; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 48px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-arrow { display: inline-flex; width: 18px; height: 18px; transition: transform .2s; }
.btn-arrow svg { width: 18px; height: 18px; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: #64748b;
  border-radius: 10px; transition: all .18s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: #f8fafc; color: var(--ink); border-color: var(--line-strong); }
.icon-btn.small { width: 30px; height: 30px; border: 0; background: transparent; }
.icon-btn.subtle { width: 30px; height: 30px; border: 0; background: rgba(255,255,255,.06); color: #94a3b8; }
.icon-btn.subtle:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn.danger:hover { color: var(--rose); background: var(--rose-soft); border-color: #fecdd3; }
.btn-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid .span-1 { grid-column: span 1; }
.product-attrs-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 12px; }
.field-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.field-error { font-size: 11.5px; color: var(--rose); }
.required::after { content: " *"; color: var(--rose); }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 12px; }
.input-prefix input { padding-left: 28px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #475569; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--primary-2); }

/* --------------------------------------------------------------------------
   应用骨架
   -------------------------------------------------------------------------- */
.app-view { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 50;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  color: #cbd5e1;
  background:
    radial-gradient(400px 300px at 0% 0%, rgba(13,148,136,.16), transparent 70%),
    linear-gradient(180deg, #0b1220 0%, #0d1729 55%, #0a1424 100%);
  border-right: 1px solid rgba(148,163,184,.09);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 24px; }
.sidebar-brand > div { display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-brand strong { color: #f8fafc; font-size: 16px; letter-spacing: .5px; }
.sidebar-brand span { color: #64748b; font-size: 8.5px; letter-spacing: 1.35px; margin-top: 4px; }
.nav { flex: 1; overflow: auto; padding: 0 2px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav-label { padding: 17px 12px 7px; font-size: 10px; letter-spacing: 1.4px; color: #526174; font-weight: 600; }
.nav-label:first-child { padding-top: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 40px; padding: 0 12px; margin: 2px 0;
  color: #94a3b8; font-size: 13px; border-radius: 9px;
  transition: color .16s, background .16s;
}
.nav-item svg { width: 18px; height: 18px; opacity: .78; }
.nav-item:hover { color: #e2e8f0; background: rgba(148,163,184,.08); }
.nav-item.active { color: #f0fdfa; background: linear-gradient(90deg, rgba(13,148,136,.22), rgba(13,148,136,.04)); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: #2dd4bf;
  box-shadow: 0 0 12px rgba(45,212,191,.7);
}
.nav-item.active svg { opacity: 1; color: #2dd4bf; }
.nav-count {
  margin-left: auto; font-style: normal; min-width: 19px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: rgba(251,191,36,.14); color: #fbbf24;
  font-size: 10px; font-weight: 700; display: inline-grid; place-items: center;
}
.sidebar-footer { padding-top: 10px; }
.user-card {
  display: flex; align-items: center; gap: 9px; padding: 10px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(148,163,184,.1);
  border-radius: 11px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.avatar.tiny { width: 30px; height: 30px; border-radius: 8px; font-size: 11.5px; }
.avatar.large { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }
.user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-meta strong { color: #e2e8f0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { color: #64748b; font-size: 10.5px; margin-top: 3px; }
.sidebar-status { display: flex; align-items: center; gap: 6px; padding: 12px 10px 0; color: #526174; font-size: 10.5px; }
.sidebar-status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.1); }
.sidebar-status.warn i { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.1); }

.main { width: calc(100% - 248px); margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 35;
  height: 76px; display: flex; align-items: center; gap: 20px;
  padding: 0 30px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.page-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.page-heading > span { font-size: 9.5px; letter-spacing: 1.7px; font-weight: 700; color: var(--primary); }
.page-heading h1 { margin: 0; font-size: 21px; letter-spacing: -.4px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.date-chip { color: var(--muted); font-size: 12px; padding: 0 12px; height: 34px; display: flex; align-items: center; border-right: 1px solid var(--line); margin-right: 2px; }
.sync-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 7px; background: var(--green-soft); color: #047857; font-size: 10px; white-space: nowrap; }
.sync-chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.sync-chip.warn { background: var(--amber-soft); color: #b45309; }
.bell-btn { position: relative; }
.badge-dot {
  position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px; background: var(--rose);
  color: #fff; font-size: 9px; font-style: normal; font-weight: 700; border: 2px solid #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
  padding: 4px 5px 4px 6px; border-radius: 10px; color: var(--muted);
}
.user-chip:hover { background: var(--surface-2); }
.user-chip-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip svg { width: 14px; height: 14px; color: var(--muted-2); }
.mobile-menu { display: none; }
.sidebar-backdrop { display: none; }
.page { width: 100%; max-width: 1580px; margin: 0 auto; padding: 26px 30px 54px; }
.global-alert {
  margin: 18px 30px -8px; padding: 11px 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  background: var(--amber-soft); color: #92400e; border: 1px solid #fde68a;
}
.global-alert svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   通用卡片 / 结构
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; gap: 12px; padding: 19px 20px 0; }
.card-head > div:first-child { min-width: 0; flex: 1; }
.card-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.card-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--muted); }
.card-body { padding: 18px 20px 20px; }
.card-head + .card-body { padding-top: 14px; }
.card-head .btn-group { margin-left: auto; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head > div { flex: 1; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -.2px; }
.num { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: #94a3b8; }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state strong { display: block; color: #475569; font-size: 13.5px; margin-bottom: 5px; }
.empty-state p { margin: 0; font-size: 12px; }
.empty-state .btn { margin-top: 16px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.65; border: 1px solid; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-danger { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }

/* --------------------------------------------------------------------------
   工作台
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 30px; padding: 28px 32px;
  border-radius: 20px; color: #e2e8f0;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(45,212,191,.2), transparent 60%),
    radial-gradient(500px 300px at 10% 120%, rgba(245,158,11,.12), transparent 65%),
    linear-gradient(130deg, #0b1729, #0c1f2f 55%, #0b2a2e);
  box-shadow: 0 24px 50px -30px rgba(2,6,23,.65);
}
.hero::after {
  content: ""; position: absolute; right: -110px; top: -180px; width: 460px; height: 460px;
  border-radius: 50%; border: 1px solid rgba(94,234,212,.15);
  box-shadow: 0 0 0 70px rgba(94,234,212,.03), 0 0 0 140px rgba(94,234,212,.02);
}
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { color: #5eead4; }
.hero h2 { margin: 14px 0 9px; font-size: 28px; line-height: 1.35; letter-spacing: -.7px; color: #f8fafc; }
.hero h2 span { color: #5eead4; }
.hero p { margin: 0; color: #94a3b8; font-size: 13px; line-height: 1.8; max-width: 550px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(148,163,184,.22); color: #e2e8f0; }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(148,163,184,.35); }
.hero-actions .btn-primary { box-shadow: 0 10px 24px -12px rgba(45,212,191,.75); }
.hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(148,163,184,.14); border: 1px solid rgba(148,163,184,.14); border-radius: 14px; overflow: hidden; align-self: center; }
.hero-metric { background: rgba(11,23,41,.62); padding: 17px 16px; backdrop-filter: blur(8px); }
.hero-metric span { display: block; font-size: 10.5px; color: #94a3b8; margin-bottom: 7px; }
.hero-metric strong { font-size: 20px; letter-spacing: -.6px; color: #f8fafc; font-variant-numeric: tabular-nums; }
.hero-metric em { font-style: normal; font-size: 10px; color: #5eead4; margin-left: 4px; }
.hero-metric.warn em { color: #fbbf24; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.kpi-card { position: relative; overflow: hidden; padding: 18px 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kpi-card::after { content: ""; position: absolute; right: -24px; bottom: -38px; width: 108px; height: 108px; border-radius: 50%; background: var(--tint, #f0fdfa); opacity: .7; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; position: relative; z-index: 1; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint, #f0fdfa); color: var(--tone, #0f766e); }
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -1.1px; color: var(--ink); line-height: 1.15; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi-foot { margin-top: 8px; font-size: 11px; color: var(--muted-2); position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; }
.kpi-foot strong { color: var(--green); font-weight: 600; }
.kpi-foot.warn strong { color: var(--amber); }
.kpi-foot svg { width: 12px; height: 12px; }
.kpi-card.teal { --tint: #f0fdfa; --tone: #0f766e; }
.kpi-card.amber { --tint: #fffbeb; --tone: #d97706; }
.kpi-card.blue { --tint: #eff6ff; --tone: #2563eb; }
.kpi-card.rose { --tint: #fff1f2; --tone: #e11d48; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; margin-top: 18px; }
.chart-legend { display: flex; gap: 16px; margin-left: auto; font-size: 11px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 3px; background: #0d9488; }
.legend-dot.amber { background: #f59e0b; }
.chart-wrap { position: relative; padding-top: 6px; }
.chart-svg { width: 100%; height: 228px; overflow: visible; }
.chart-svg .grid-line { stroke: #eef2f7; stroke-width: 1; }
.chart-svg .axis-text { fill: #94a3b8; font-size: 9px; font-family: var(--font); }
.chart-svg .bar-in { fill: url(#barIn); }
.chart-svg .bar-out { fill: url(#barOut); }
.chart-svg .bar-bg { fill: #f6f8fb; }
.chart-summary { display: flex; gap: 22px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.chart-summary div { display: flex; flex-direction: column; gap: 4px; }
.chart-summary span { font-size: 10.5px; color: var(--muted); }
.chart-summary strong { font-size: 16px; letter-spacing: -.4px; }
.low-list { display: flex; flex-direction: column; }
.low-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.low-item:last-child { border-bottom: 0; padding-bottom: 0; }
.low-item:first-child { padding-top: 2px; }
.low-thumb { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); color: #64748b; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.low-main { min-width: 0; flex: 1; }
.low-main strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.low-main span { color: var(--muted); font-size: 10.5px; }
.low-stock { text-align: right; }
.low-stock strong { display: block; font-size: 13px; color: var(--rose); font-variant-numeric: tabular-nums; }
.low-stock span { font-size: 10px; color: var(--muted-2); }
.cat-bars { display: flex; flex-direction: column; gap: 14px; }
.cat-row { display: flex; flex-direction: column; gap: 6px; }
.cat-top { display: flex; justify-content: space-between; font-size: 11.5px; }
.cat-top span { color: var(--muted); }
.cat-top strong { font-size: 11.5px; font-weight: 600; }
.cat-track { height: 7px; border-radius: 5px; background: #f1f5f9; overflow: hidden; }
.cat-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.cat-row:nth-child(2) .cat-track i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.cat-row:nth-child(3) .cat-track i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.cat-row:nth-child(4) .cat-track i { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.recent-item:last-child { border-bottom: 0; }
.op-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: #64748b; }
.op-dot svg { width: 14px; height: 14px; }
.op-dot.in { background: var(--green-soft); color: var(--green); }
.op-dot.out { background: var(--blue-soft); color: var(--blue); }
.op-dot.adjust { background: var(--amber-soft); color: var(--amber); }
.op-dot.delete { background: var(--rose-soft); color: var(--rose); }
.op-dot.auth { background: var(--violet-soft); color: var(--violet); }
.op-main { flex: 1; min-width: 0; }
.op-main strong { display: block; font-size: 12px; font-weight: 500; color: #334155; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-main span { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; display: block; }
.todo-mini { display: flex; flex-direction: column; }
.todo-mini-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.todo-mini-item:last-child { border-bottom: 0; }
.todo-mini-main { flex: 1; min-width: 0; }
.todo-mini-main strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-mini-main span { font-size: 10.5px; color: var(--muted-2); }
.check-circle { width: 19px; height: 19px; border: 1.5px solid #cbd5e1; border-radius: 50%; background: #fff; flex: none; display: grid; place-items: center; color: transparent; transition: all .15s; }
.check-circle:hover { border-color: var(--primary-2); }
.check-circle svg { width: 12px; height: 12px; }
.check-circle.done { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.check-circle.done + .todo-mini-main strong { text-decoration: line-through; color: var(--muted-2); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-btn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #475569; font-size: 11.5px; transition: all .16s; }
.quick-btn:hover { border-color: #99f6e4; background: #f0fdfa; color: var(--primary-dark); transform: translateY(-1px); }
.quick-btn svg { width: 18px; height: 18px; color: var(--primary); }

/* --------------------------------------------------------------------------
   工具栏 / 表格 / 分页
   -------------------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.search-box { position: relative; min-width: 210px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search-box input { padding-left: 36px; height: 40px; }
.toolbar select { width: auto; min-width: 120px; height: 40px; }
.toolbar input[type="date"] { width: 142px; height: 40px; }
.toolbar .btn { height: 40px; }
.filter-label { font-size: 11.5px; color: var(--muted); }
.summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-stat { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.mini-stat-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.mini-stat-icon svg { width: 16px; height: 16px; }
.mini-stat > div { min-width: 0; }
.mini-stat span { display: block; font-size: 10.5px; color: var(--muted); }
.mini-stat strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.4px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mini-stat.teal .mini-stat-icon { background: var(--primary-soft); color: var(--primary); }
.mini-stat.amber .mini-stat-icon { background: var(--amber-soft); color: var(--amber); }
.mini-stat.blue .mini-stat-icon { background: var(--blue-soft); color: var(--blue); }
.mini-stat.rose .mini-stat-icon { background: var(--rose-soft); color: var(--rose); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th {
  text-align: left; padding: 11px 14px; background: #f8fafc;
  border-bottom: 1px solid var(--line); color: #64748b;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid #f0f3f8; font-size: 12.5px; vertical-align: middle; color: #334155; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #fbfcfe; }
table.data tbody tr.inactive { opacity: .6; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .center { text-align: center; }
.cell-product { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.cell-thumb { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #f0fdfa, #e2e8f0); color: #0f766e; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.cell-product > div { min-width: 0; }
.cell-product strong { display: block; font-weight: 600; color: var(--ink); font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-product span { color: var(--muted-2); font-size: 10.5px; font-family: var(--mono); }
.cell-sub { display: block; color: var(--muted-2); font-size: 10.5px; margin-top: 3px; }
.cell-strong { font-weight: 600; color: var(--ink); }
.table-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.table-actions .icon-btn { width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted-2); }
.table-actions .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.table-actions .icon-btn.danger:hover { background: var(--rose-soft); color: var(--rose); }
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-info { flex: 1; color: var(--muted); font-size: 11px; }
.pager-btn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: #64748b; border-radius: 8px; font-size: 11.5px; display: grid; place-items: center; }
.pager-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn svg { width: 14px; height: 14px; }

/* 状态标签 */
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; 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(--green-soft); color: #047857; }
.badge-amber { background: var(--amber-soft); color: #b45309; }
.badge-rose { background: var(--rose-soft); color: #be123c; }
.badge-blue { background: var(--blue-soft); color: #1d4ed8; }
.badge-violet { background: var(--violet-soft); color: #6d28d9; }
.badge-slate { background: var(--surface-3); color: #475569; }
.badge-teal { background: var(--primary-soft); color: #0f766e; }
.stock-pill { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 700; }
.stock-pill small { font-weight: 500; color: var(--muted-2); font-size: 9.5px; }
.stock-pill.low { color: var(--amber); }
.stock-pill.out { color: var(--rose); }
.role-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: var(--surface-3); color: #475569; }
.role-pill.admin { background: #fef3c7; color: #92400e; }
.role-pill.operator { background: var(--primary-soft); color: var(--primary-dark); }
.role-pill.viewer { background: var(--blue-soft); color: var(--blue); }
.role-pill svg { width: 12px; height: 12px; }
.priority { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.priority::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority.high { background: var(--rose-soft); color: #be123c; }
.priority.medium { background: var(--amber-soft); color: #b45309; }
.priority.low { background: var(--blue-soft); color: #1d4ed8; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.due svg { width: 12px; height: 12px; }
.due.overdue { color: var(--rose); font-weight: 600; }
.due.today { color: var(--amber); font-weight: 600; }

/* 标签页 */
.tabbar { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-3); width: fit-content; }
.tab { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.segmented button { height: 34px; padding: 0 13px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11.5px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   待办事项
   -------------------------------------------------------------------------- */
.todo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-card { display: flex; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: all .16s; }
.todo-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.todo-card.completed { background: #fbfcfd; }
.todo-card.completed .todo-title { text-decoration: line-through; color: var(--muted-2); }
.todo-check { width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid #cbd5e1; background: #fff; color: transparent; display: grid; place-items: center; flex: none; transition: all .16s; }
.todo-check svg { width: 14px; height: 14px; }
.todo-check:hover { border-color: var(--primary-2); }
.todo-check.done { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.todo-body { flex: 1; min-width: 0; }
.todo-title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.todo-desc { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 9px; }
.todo-actions { display: flex; gap: 2px; align-items: flex-start; }
.todo-side { display: flex; flex-direction: column; gap: 14px; }
.side-stat { padding: 16px 17px; border-radius: 13px; border: 1px solid var(--line); background: #fff; }
.side-stat .num-big { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.side-stat p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.side-stat.highlight { background: linear-gradient(140deg, #0b1729, #0d2b31); color: #fff; border: 0; }
.side-stat.highlight p { color: #94a3b8; }
.side-stat.highlight .num-big { color: #5eead4; }
.progress-ring { width: 100%; height: 7px; background: var(--surface-3); border-radius: 5px; overflow: hidden; margin-top: 13px; }
.progress-ring i { display: block; height: 100%; background: linear-gradient(90deg, #0d9488, #2dd4bf); border-radius: 5px; }

/* --------------------------------------------------------------------------
   报表 / 设置
   -------------------------------------------------------------------------- */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.report-card { position: relative; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.report-card::after { content: ""; position: absolute; right: -20px; bottom: -28px; width: 100px; height: 100px; border-radius: 50%; background: var(--tint, #f0fdfa); opacity: .8; }
.report-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--tint, #f0fdfa); color: var(--tone, #0f766e); display: grid; place-items: center; margin-bottom: 14px; position: relative; z-index: 1; }
.report-icon svg { width: 19px; height: 19px; }
.report-card h3 { margin: 0 0 5px; font-size: 14px; }
.report-card p { margin: 0 0 15px; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.report-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.report-card.inventory { --tint: #f0fdfa; --tone: #0f766e; }
.report-card.transactions { --tint: #eff6ff; --tone: #2563eb; }
.report-card.summary { --tint: #fffbeb; --tone: #d97706; }
.report-card.operations { --tint: #f5f3ff; --tone: #7c3aed; }
.range-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 17px; }
.range-bar label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.range-bar input[type="date"] { width: 142px; height: 36px; }
.range-bar .spacer { flex: 1; }
.range-presets { display: flex; gap: 4px; }
.range-presets button { height: 28px; padding: 0 9px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 10.5px; color: var(--muted); }
.range-presets button:hover, .range-presets button.active { background: var(--primary-soft); border-color: #99f6e4; color: var(--primary-dark); }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.report-kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.report-kpi span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 7px; }
.report-kpi strong { font-size: 22px; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.report-kpi em { display: block; font-size: 10.5px; color: var(--muted-2); font-style: normal; margin-top: 5px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; align-items: start; }
.settings-section { padding: 22px; }
.settings-section h3 { margin: 0 0 4px; font-size: 15px; }
.settings-section .section-desc { margin: 0 0 18px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); flex: none; }
.info-row strong { font-weight: 500; text-align: right; word-break: break-all; color: #334155; }
.db-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 11px; background: linear-gradient(135deg, #f0fdfa, #f8fafc); border: 1px solid #ccfbf1; margin-bottom: 18px; }
.db-banner.warn { background: #fffbeb; border-color: #fde68a; }
.db-banner-icon { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--primary); display: grid; place-items: center; flex: none; }
.db-banner-icon svg { width: 18px; height: 18px; }
.db-banner strong { display: block; font-size: 12.5px; margin-bottom: 3px; }
.db-banner span { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; }
.danger-zone { border: 1px solid #fecdd3; background: #fffafa; border-radius: 13px; padding: 18px; }
.danger-zone h4 { margin: 0 0 6px; font-size: 13px; color: #9f1239; }
.danger-zone p { margin: 0 0 14px; font-size: 11.5px; color: #9f6271; line-height: 1.6; }
.account-grid { display: flex; align-items: center; gap: 14px; }
.account-grid .avatar { width: 54px; height: 54px; font-size: 18px; }
.account-grid strong { display: block; font-size: 14px; }
.account-grid span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.account-grid .btn { margin-left: auto; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.role-card { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #fff; }
.role-card strong { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 5px; }
.role-card strong .icon { width: 15px; height: 15px; color: var(--primary); }
.role-card span { font-size: 10.5px; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   操作记录
   -------------------------------------------------------------------------- */
.op-detail { max-width: 460px; font-size: 12px; line-height: 1.55; color: #334155; }
.op-detail small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 2px; }
.category-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.category-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.category-chip strong { color: var(--ink); font-size: 10.5px; }
.category-chip.active { background: var(--primary-soft); border-color: #99f6e4; color: var(--primary-dark); }

/* --------------------------------------------------------------------------
   弹窗 / 通知 / 菜单
   -------------------------------------------------------------------------- */
.modal-layer {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15,23,42,.5);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: fadeIn .16s ease;
}
.modal {
  width: min(640px, 100%); max-height: min(90vh, 880px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: modalIn .2s cubic-bezier(.2,.8,.2,1);
}
.modal.sm { width: min(430px, 100%); }
.modal.lg { width: min(840px, 100%); }
.modal.xl { width: min(1020px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-head > div { flex: 1; min-width: 0; }
.modal-head h3 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.modal-head p { margin: 5px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-close:hover { background: #e2e8f0; color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fbfcfe; flex-wrap: wrap; }
.modal-note { padding: 11px 13px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.modal-section-title { margin: 18px 0 10px; font-size: 12px; font-weight: 700; color: #475569; display: flex; align-items: center; gap: 7px; }
.modal-section-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.confirm-body { text-align: center; padding: 8px 8px 4px; }
.confirm-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.confirm-icon.danger { background: var(--rose-soft); color: var(--rose); }
.confirm-icon svg { width: 25px; height: 25px; }
.confirm-body h4 { margin: 0 0 7px; font-size: 16px; }
.confirm-body p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; white-space: pre-line; }
.popover {
  position: fixed; z-index: 70; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; box-shadow: 0 24px 55px -20px rgba(15,23,42,.28), 0 4px 12px rgba(15,23,42,.05);
  animation: popIn .14s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.notification-panel { top: 66px; right: 28px; width: min(380px, calc(100vw - 24px)); overflow: hidden; }
.popover-head { display: flex; align-items: flex-start; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.popover-head > div { flex: 1; }
.popover-head strong { display: block; font-size: 13px; }
.popover-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.notif-body { max-height: 440px; overflow: auto; padding: 8px 10px 12px; }
.notif-group-title { padding: 10px 6px 7px; font-size: 10px; letter-spacing: .8px; color: var(--muted-2); font-weight: 700; }
.notif-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 9px; }
.notif-item:hover { background: var(--surface-2); }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; flex: none; }
.notif-icon.warn { background: var(--amber-soft); color: var(--amber); }
.notif-icon.rose { background: var(--rose-soft); color: var(--rose); }
.notif-icon svg { width: 15px; height: 15px; }
.notif-item > div { flex: 1; min-width: 0; }
.notif-item strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 34px 16px; text-align: center; color: var(--muted-2); font-size: 12px; }
.user-menu { top: 64px; right: 28px; width: 232px; padding: 8px; }
.user-menu-head { display: flex; align-items: center; gap: 10px; padding: 9px 9px 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-head strong { display: block; font-size: 12.5px; }
.user-menu-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.menu-item { width: 100%; height: 36px; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 0 10px; font-size: 12px; color: #475569; text-align: left; }
.menu-item svg { width: 15px; height: 15px; color: var(--muted); }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item.danger { color: var(--rose); }
.menu-item.danger svg { color: var(--rose); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-version { padding: 10px 10px 4px; font-size: 9.5px; color: var(--muted-2); text-align: center; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  min-width: 260px; max-width: 390px; display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.3); font-size: 12.5px; color: #334155;
  animation: toastIn .22s cubic-bezier(.2,.8,.2,1); pointer-events: auto;
}
.toast.out { animation: toastOut .2s ease forwards; }
.toast-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--rose); }
.toast.info .toast-icon { color: var(--blue); }
.toast.warn .toast-icon { color: var(--amber); }
.toast div { flex: 1; line-height: 1.55; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(12px); } }
.loading-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(248,250,252,.55); backdrop-filter: blur(2px); }
.loading-card { display: flex; align-items: center; gap: 11px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--muted); font-size: 12.5px; }
.spinner { width: 18px; height: 18px; border: 2px solid #ccfbf1; border-top-color: var(--primary-2); border-radius: 50%; animation: spin .75s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e8eef6 37%, #f1f5f9 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.page-loading { display: flex; flex-direction: column; gap: 16px; }
.page-loading .sk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.page-loading .sk-kpi { height: 112px; } .page-loading .sk-block { height: 300px; } .page-loading .sk-line { height: 16px; width: 30%; }

/* 明细/单据 */
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.doc-head h4 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.3px; }
.doc-head .mono { color: var(--muted); }
.doc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.doc-meta > div { padding: 10px 12px; background: var(--surface-2); border-radius: 9px; }
.doc-meta span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.doc-meta strong { display: block; font-size: 12px; font-weight: 600; }
.doc-total { display: flex; justify-content: flex-end; gap: 28px; padding: 14px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
.doc-total div { text-align: right; }
.doc-total span { display: block; font-size: 10.5px; color: var(--muted); }
.doc-total strong { display: block; font-size: 17px; letter-spacing: -.4px; margin-top: 3px; }

/* 物流跟踪 */
.shipment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.shipment-head h4 { margin: 8px 0 5px; font-size: 18px; letter-spacing: -.4px; }
.shipment-head h4 .mono { font-size: 13px; color: var(--muted); margin-left: 7px; letter-spacing: 0; }
.shipment-head p { margin: 0; color: var(--muted); font-size: 11.5px; }
.shipment-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.shipment-meta > div { padding: 10px 12px; background: var(--surface-2); border-radius: 9px; }
.shipment-meta span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.shipment-meta strong { display: block; font-size: 12.5px; }
.shipment-timeline { position: relative; padding-left: 8px; }
.shipment-timeline::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
.shipment-event { position: relative; display: flex; gap: 12px; padding: 0 0 18px; }
.shipment-event:last-child { padding-bottom: 0; }
.shipment-dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); flex: none; position: relative; z-index: 1; }
.shipment-dot svg { width: 14px; height: 14px; }
.shipment-event.latest .shipment-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.shipment-event.signed .shipment-dot { background: var(--green); border-color: var(--green); color: #fff; }
.shipment-event.out_for_delivery .shipment-dot { background: var(--amber-soft); border-color: #fcd34d; color: var(--amber); }
.shipment-event-body { flex: 1; padding-top: 2px; }
.shipment-event-body p { margin: 0; font-size: 12.5px; color: #334155; line-height: 1.55; }
.shipment-event.latest .shipment-event-body p { color: var(--ink); font-weight: 600; }
.shipment-event-body span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }
.signed-popup { text-align: center; padding: 8px 4px 2px; }
.signed-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(5,150,105,.06); }
.signed-icon svg { width: 30px; height: 30px; }
.signed-popup h3 { margin: 10px 0 8px; font-size: 20px; }
.signed-popup > p { margin: 0 auto 18px; max-width: 330px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.signed-meta { text-align: left; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 9px; }
.signed-meta > div { display: flex; justify-content: space-between; gap: 14px; font-size: 11.5px; }
.signed-meta span { color: var(--muted); }
.signed-meta strong { text-align: right; font-weight: 600; }
.line-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.line-table th { text-align: left; padding: 8px 7px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; }
.line-table td { padding: 7px; border-bottom: 1px dashed var(--line); font-size: 12px; vertical-align: middle; }
.line-table .num { text-align: right; }
.line-table input, .line-table select { height: 34px; border-radius: 7px; font-size: 12px; }
.line-table select { min-width: 170px; }
.qty-input { width: 72px; text-align: right; }
.price-input { width: 92px; text-align: right; }
.line-amount { min-width: 78px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.line-stock { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.line-stock.short { color: var(--rose); }
.line-remove { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted-2); display: grid; place-items: center; }
.line-remove:hover { background: var(--rose-soft); color: var(--rose); }
.line-remove svg { width: 14px; height: 14px; }
.add-line { margin-top: 10px; }
.order-total-bar { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 14px 16px; margin-top: 14px; border-radius: 11px; background: var(--surface-2); }
.order-total-bar span { font-size: 11px; color: var(--muted); }
.order-total-bar strong { font-size: 20px; letter-spacing: -.5px; color: var(--primary-dark); }
.form-section { padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { margin: 0 0 13px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.form-section-title span { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 10px; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .visual-cards { right: 24px; top: 16%; transform: scale(.92); transform-origin: right top; }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
}
@media (max-width: 1180px) {
  .login-view { grid-template-columns: 1fr 440px; }
  .login-visual { padding: 34px 40px 26px; }
  .visual-cards { display: none; }
  .visual-copy h1 { font-size: 46px; }
  .kpi-grid, .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .grid-main, .settings-grid { grid-template-columns: 1fr; }
  .todo-layout { grid-template-columns: 1fr; }
  .todo-side { display: grid; grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-metrics { max-width: 470px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(2,6,23,.35); }
  .sidebar.open { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .main { width: 100%; margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 18px; gap: 12px; }
  .page { padding: 20px 18px 44px; }
  .global-alert { margin: 14px 18px -4px; }
  .notification-panel, .user-menu { right: 14px; }
}
@media (max-width: 720px) {
  .topbar { height: 66px; }
  .date-chip { display: none; }
  .sync-chip { display: none; }
  .user-chip-name { display: none; }
  .page-heading h1 { font-size: 18px; }
  .page { padding: 16px 13px 40px; }
  .hero { padding: 22px 20px; border-radius: 16px; }
  .hero h2 { font-size: 22px; }
  .kpi-grid, .report-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-icon { width: 30px; height: 30px; }
  .grid-2, .grid-3, .report-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-1, .form-grid .span-2 { grid-column: 1 / -1; }
  .product-attrs-grid { grid-template-columns: 1fr; gap: 12px; }
  .toolbar { gap: 8px; }
  .toolbar .search-box { flex: 1; min-width: 100%; }
  .toolbar select { flex: 1 1 calc(50% - 5px); min-width: 118px; }
  .toolbar input[type="date"] { flex: 1 1 calc(50% - 5px); min-width: 125px; }
  .summary-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-stat { padding: 11px; }
  .mini-stat strong { font-size: 16px; }
  .modal-layer { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 18px 18px 0 0; width: 100%; }
  .modal-foot { padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .shipment-meta { grid-template-columns: 1fr 1fr; }
  .login-panel { padding: 30px 22px; }
  .login-view { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-mobile-brand { display: flex; }
  .login-foot { margin-top: 26px; }
  .toast-root { right: 12px; left: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .role-cards { grid-template-columns: 1fr; }
  .todo-side { grid-template-columns: 1fr; }
  .range-presets { width: 100%; }
  .range-presets button { flex: 1; }
}
@media (max-width: 460px) {
  .kpi-grid, .report-kpis { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .doc-total { gap: 16px; }
  .login-box h2 { font-size: 26px; }
  .topbar-actions { gap: 4px; }
  .bell-btn { width: 34px; height: 34px; }
}

@media print {
  .sidebar, .topbar, .toolbar, .table-actions, .pager, .btn { display: none !important; }
  .main { margin: 0; width: 100%; }
  .page { padding: 0; }
  body { background: #fff; }
  .table-card, .card { box-shadow: none; border-color: #ddd; }
}
