
.toast-enter-active[data-v-dcfbe8b4] {
  animation: toastIn-dcfbe8b4 220ms cubic-bezier(0.34,1.56,0.64,1);
}
.toast-leave-active[data-v-dcfbe8b4] {
  animation: toastOut-dcfbe8b4 180ms ease-in forwards;
}
@keyframes toastIn-dcfbe8b4 {
from { transform: translateX(20px); opacity: 0;
}
to   { transform: translateX(0);    opacity: 1;
}
}
@keyframes toastOut-dcfbe8b4 {
from { transform: translateX(0);   opacity: 1;
}
to   { transform: translateX(20px); opacity: 0;
}
}
.toast[data-v-dcfbe8b4] {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  max-width: 400px;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(15,23,42,0.3);
}
.toast.ok[data-v-dcfbe8b4] {
  background: rgba(6,78,59,0.94);
  color: #d1fae5;
  border: 1px solid rgba(16,185,129,0.4);
}
.toast.err[data-v-dcfbe8b4] {
  background: rgba(127,29,29,0.94);
  color: #fee2e2;
  border: 1px solid rgba(239,68,68,0.4);
}
.toast-icon[data-v-dcfbe8b4] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.ok .toast-icon[data-v-dcfbe8b4] {
  background: rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.err .toast-icon[data-v-dcfbe8b4] {
  background: rgba(239,68,68,0.3);
  color: #fca5a5;
}

.login-root[data-v-2de2c503] {
  min-height: 100vh;
}
/* ========================================================
   盘点助手 — 全局样式 v2.0
   设计风格：现代简洁 · 毛玻璃侧边栏 · 柔和阴影 · 流行配色
   ======================================================== */

/* ---------- CSS 变量 / 设计令牌 ---------- */
:root {
  /* 主色调：靛蓝→品蓝渐变 */
  --c-primary:        #3b82f6;
  --c-primary-dark:   #1d4ed8;
  --c-primary-light:  #eff6ff;
  --c-primary-ring:   rgba(59,130,246,0.18);

  /* 侧边栏 */
  --c-sidebar-bg:     #0f172a;
  --c-sidebar-text:   #e2e8f0;
  --c-sidebar-muted:  #64748b;
  --c-sidebar-active: rgba(59,130,246,0.22);
  --c-sidebar-hover:  rgba(255,255,255,0.06);
  --c-sidebar-border: rgba(148,163,184,0.12);
  --c-sidebar-width:  220px;

  /* 页面背景 */
  --c-bg:             #f1f5f9;
  --c-surface:        #ffffff;
  --c-surface-2:      #f8fafc;
  --c-surface-3:      #f1f5f9;

  /* 文字 */
  --c-text:           #0f172a;
  --c-text-2:         #475569;
  --c-text-3:         #94a3b8;

  /* 边框 */
  --c-border:         #e2e8f0;
  --c-border-focus:   #3b82f6;

  /* 状态色 */
  --c-success:        #10b981;
  --c-success-bg:     #ecfdf5;
  --c-success-border: #a7f3d0;
  --c-error:          #ef4444;
  --c-error-bg:       #fef2f2;
  --c-error-border:   #fecaca;
  --c-warn:           #f59e0b;
  --c-warn-bg:        #fffbeb;
  --c-warn-border:    #fde68a;

  /* 圆角 */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* 阴影 */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:  0 1px 6px rgba(15,23,42,0.06);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg:  0 8px 32px rgba(15,23,42,0.12);
  --shadow-xl:  0 20px 50px rgba(15,23,42,0.16);

  /* 字体 */
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 14px;
  line-height: 1.5;
}

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

/* ---------- 整体布局 ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--c-sidebar-width) 1fr;
  min-height: 100vh;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  background: var(--c-sidebar-bg);
  color: var(--c-sidebar-text);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.brand-block {
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--c-sidebar-border);
  margin-bottom: 8px;
}
.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-title::before {
  content: '📦';
  font-size: 18px;
}
.brand-subtitle {
  margin-top: 3px;
  font-size: 11px;
  color: var(--c-sidebar-muted);
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--c-sidebar-text);
  padding: 9px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 130ms ease;
  white-space: nowrap;
  opacity: 0.82;
}
.nav-item:hover {
  background: var(--c-sidebar-hover);
  opacity: 1;
  border-color: var(--c-sidebar-border);
}
.nav-item.active {
  background: var(--c-sidebar-active);
  border-color: rgba(59,130,246,0.35);
  color: #93c5fd;
  font-weight: 600;
  opacity: 1;
}

/* 导航图标（纯 CSS emoji 占位，实际可换 SVG） */
.nav-item[href*="assets"]::before   { content: '🗂'; }
.nav-item[href*="inventory"]::before { content: '📋'; }
.nav-item[href*="stock"]::before    { content: '📦'; }
.nav-item[href*="operations"]::before { content: '📜'; }
.nav-item[href*="accounts"]::before { content: '👥'; }

.sidebar-footer {
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--c-sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-footer-info {
  font-size: 11px;
  color: var(--c-sidebar-muted);
  padding: 0 4px;
}

/* ---------- 主内容区 ---------- */
.main {
  padding: 20px 24px;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- 顶部标题栏 ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.topbar-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.2px;
}
.pill {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
}

/* ---------- 页面容器 ---------- */
.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-2);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- 辅助文字 ---------- */
.muted {
  font-weight: 500;
  color: var(--c-text-3);
  font-size: 12px;
}

/* ---------- 表单行 ---------- */
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

/* ---------- 输入框 ---------- */
.input {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  font-size: 13.5px;
  color: var(--c-text);
  background: var(--c-surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--c-border-focus);
  box-shadow: 0 0 0 3px var(--c-primary-ring);
}
.input::placeholder { color: var(--c-text-3); }
.input:disabled {
  background: var(--c-surface-3);
  color: var(--c-text-3);
  cursor: not-allowed;
}

/* ---------- 按钮系统 ---------- */
/* 重置 button 默认样式 */
button { font-family: inherit; cursor: pointer; }

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-primary);
  background: var(--c-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  box-shadow: 0 4px 12px rgba(59,130,246,0.32);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: var(--c-surface);
  color: var(--c-primary);
  border-color: #93c5fd;
}
.btn-outline:hover:not(:disabled) {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text-2);
  border-color: var(--c-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--c-surface-3);
  border-color: #cbd5e1;
  box-shadow: none;
  transform: none;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-3);
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.12s ease;
}
.mini-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--c-text);
}
.mini-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mini-btn.danger {
  background: var(--c-error-bg);
  border-color: var(--c-error-border);
  color: #b91c1c;
}
.mini-btn.danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #f87171;
}

/* 退出按钮（侧边栏）*/
.sidebar-logout {
  width: 100%;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.sidebar-logout:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.35);
  color: #fecaca;
}

/* ---------- 列表组件 ---------- */
.list {
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  background: var(--c-surface);
}

.list-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-bottom: 1px solid var(--c-surface-3);
}
.list-row:last-child { border-bottom: none; }

.item-btn {
  flex: 1;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  transition: all 0.12s ease;
}
.item-btn:hover { background: var(--c-surface-3); border-color: var(--c-border); }
.item-btn.selected {
  background: var(--c-primary-light);
  border-color: #93c5fd;
  color: var(--c-primary-dark);
}

.item-title {
  font-weight: 600;
  font-size: 13.5px;
}
.item-sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--c-text-3);
}

.list-actions { display: flex; gap: 5px; }

.list-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--c-text-3);
  text-align: center;
}

/* ---------- 摘要框 ---------- */
.summary-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13.5px;
  border: 1px solid #dbeafe;
  color: var(--c-text);
}
.summary-box .hint {
  margin-top: 4px;
  font-size: 12px;
  color: #3b82f6;
  font-weight: 500;
}

/* ---------- 提示文字 ---------- */
.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.6;
}

/* ---------- 表格 ---------- */
.table-wrap {
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  max-height: 420px;
  overflow: auto;
  background: var(--c-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--c-border);
  font-size: 11.5px;
  text-align: left;
  font-weight: 700;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-surface-3);
  font-size: 13px;
  text-align: left;
  color: var(--c-text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ---------- 状态徽章 ---------- */
.status-found {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
  font-size: 12px;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid #a7f3d0;
}
.status-found::before { content: '✓'; }

.status-unfound {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
  background: var(--c-error-bg);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-error-border);
}
.status-unfound::before { content: '○'; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #3730a3;
  font-weight: 700;
  font-size: 11.5px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
  animation: modalFadeIn 150ms ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  width: min(480px, 100%);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-border);
  animation: modalSlideIn 200ms cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideIn {
  from { transform: scale(0.94) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-surface-2);
}
.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
}
.modal-body {
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--c-text);
}
.modal-message {
  margin-bottom: 12px;
  color: var(--c-text-2);
  line-height: 1.6;
}
.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-2);
  margin-bottom: 6px;
}
.modal-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--c-surface);
}

/* ---------- Toast ---------- */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1100;
}
.toast {
  min-width: 240px;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: rgba(15,23,42,0.93);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 13px;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 8px 24px rgba(15,23,42,0.35);
  animation: toastIn 200ms cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes toastIn {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast.ok {
  border-color: rgba(16,185,129,0.5);
  background: rgba(6,78,59,0.92);
}
.toast.err {
  border-color: rgba(239,68,68,0.55);
  background: rgba(127,29,29,0.92);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
  }
  .brand-block {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0 0 auto;
  }
  .sidebar-footer { margin-top: 0; padding-top: 0; border-top: none; flex-direction: row; }
  .grid-two { grid-template-columns: 1fr; }
}
