:root {
  --bg: #f3f3f3;
  --panel: #ffffff;
  --line: #d7e0e9;
  --text: #1f2933;
  --muted: #5b6b7a;
  --primary: #2c5e8a;
  --primary-dark: #1f4465;
  --accent: #b46a2b;
  --green: #2f7d5c;
  --red: #a13c3c;
  --amber: #9a6a12;
  --shadow: none;
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px;
  background: #173b57;
  color: #dcebf7;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  transition: transform 0.2s ease;
}
.brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #d9a441;
  color: #173b57;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-title {
  font-size: 11px;
  letter-spacing: 0;
  color: #8fb3d2;
  padding: 8px 10px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 7px;
  color: #dcebf7;
  margin-bottom: 2px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); }
.nav-item.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #bfd7eb;
}

.main { flex: 1; margin-left: 232px; min-width: 0; }
.topbar {
  height: 64px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 { font-size: 19px; margin: 0; }
.topbar-meta { color: var(--muted); font-size: 13px; }
.hamburger { display: none; }

.content { padding: 18px; max-width: none; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h2 { margin: 0 0 4px; font-size: 20px; }
.page-head p { margin: 0; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}
.btn:hover { border-color: #aabccc; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--red); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.todo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi.blue .kpi-value { color: var(--primary); }
.kpi.green .kpi-value { color: var(--green); }
.kpi.amber .kpi-value { color: var(--amber); }
.kpi.red .kpi-value { color: var(--red); }

.panel { background: var(--panel); border: 1px solid #bfc8d2; border-radius: 0; box-shadow: none; }
.panel-head {
  min-height: 42px;
  padding: 8px 12px;
  border-bottom: 1px solid #bfc8d2;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h3 { margin: 0; font-size: 15px; }

.table-wrap { overflow: auto; background: #fff; }
.table-export-bar { display:flex; justify-content:flex-end; padding:8px 10px; border-bottom:1px solid var(--border); background:#fff; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; min-width: 680px; }
th, td {
  text-align: left;
  height: 34px;
  padding: 6px 8px;
  border-right: 1px solid #cbd2d9;
  border-bottom: 1px solid #cbd2d9;
  font-size: 13px;
  vertical-align: middle;
}
th {
  color: #202830;
  font-weight: 600;
  background: #e8edf2;
  white-space: nowrap;
  border-color: #bfc8d2;
}
th:last-child, td:last-child { border-right: 0; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fafafa; }
tr:hover td { background: #fff7d6; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.blue { background: #e3eefb; color: #1f4d78; }
.badge.green { background: #e4f2eb; color: #1f6a49; }
.badge.amber { background: #fbefd8; color: #7a5508; }
.badge.red { background: #f7e4e4; color: #8f2f2f; }
.badge.gray { background: #eef1f4; color: #52606d; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}
.modal {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #7f8b96;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
}
.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 14px 16px; }
.modal-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #cbd2d9;
  border-left: 1px solid #cbd2d9;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #cbd2d9;
  border-bottom: 1px solid #cbd2d9;
  background: #fff;
}
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #303840; font-weight: 600; }
.field input, .field select, .field textarea {
  height: 34px;
  border: 1px solid #aeb8c2;
  border-radius: 0;
  padding: 0 8px;
  background: #fff;
  width: 100%;
}
.field textarea { height: 68px; padding: 7px 8px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--primary); border-color: var(--primary); }

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}
.thumb.small { width: 32px; height: 32px; font-size: 12px; }
.image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-preview img, .image-preview .thumb.large {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.line-editor { border: 1px solid #aeb8c2; border-radius: 0; overflow: hidden; }
.line-editor table { min-width: 560px; }
.line-editor th { background: #f2f6fa; }
.line-editor input, .line-editor select { height: 30px; border: 1px solid #aeb8c2; border-radius: 0; padding: 0 6px; width: 100%; }
.line-filter {
  display: grid;
  grid-template-columns: 180px minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #aeb8c2;
  background: #eef2f6;
}
.line-filter select, .line-filter input {
  height: 32px;
  border: 1px solid #8f9ba6;
  border-radius: 0;
  background: #fff;
  padding: 0 8px;
}
.line-filter span { color: #4e5b66; font-size: 12px; white-space: nowrap; }
.add-line {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f7f9fb;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.add-line select { width: 220px; height: 34px; }
.add-line input { width: 90px; height: 34px; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(1000px 520px at 86% -12%, rgba(217, 164, 65, 0.22), transparent 60%),
    radial-gradient(760px 420px at -6% 112%, rgba(49, 95, 117, 0.55), transparent 60%),
    linear-gradient(135deg, #0f2b44 0%, #173b57 55%, #22485f 100%);
}
.login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.login-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 24px;
  box-shadow: 0 30px 80px rgba(6, 20, 32, 0.45);
}
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.login-logo {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d9a441, #f0c166);
  color: #173b57;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(217, 164, 65, 0.35);
  overflow: hidden;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.login-card .login-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.login-card .field { margin-bottom: 14px; }
.login-btn { width: 100%; height: 44px; margin-top: 8px; font-size: 15px; letter-spacing: 6px; border-radius: 8px; }
.login-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
  font-size: 12px;
  color: var(--muted);
}
.login-tip {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f2f6fa;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.toast {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 200;
  background: #173b57;
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #173b57;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.35s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #d9a441;
  color: #173b57;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  overflow: hidden;
}
.splash-logo img { width: 100%; height: 100%; object-fit: contain; }
.splash h2 { margin: 4px 0 0; font-size: 24px; }
.splash p { margin: 0; color: #b9d2e8; font-size: 14px; }

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .todo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); width: 240px; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.35); }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .line-filter { grid-template-columns: 1fr; }
  .line-filter span { white-space: normal; }
  .page-head { flex-direction: column; }
  .page-head .btn { width: 100%; }
  .grid.cols-4 { grid-template-columns: 1fr; }
  .todo-grid { grid-template-columns: repeat(2, 1fr); }
}

.mobile-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #173b57; box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
.mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px 10px; font-size: 11px; font-weight: 600; color: #cfe0ee; background: none; border: 0; border-top: 2px solid transparent; cursor: pointer; }
.mobile-nav button:active { color: #fff; background: rgba(255,255,255,.06); }
.mobile-nav button svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .content { padding-bottom: 84px; }
  .mobile-nav { display: flex; }
  .mobile-search { width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 16px; border: 1px solid #cfd8e3; border-radius: 8px; margin-bottom: 12px; }
  .mcard { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
  .mcard-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .mcard-row + .mcard-row { margin-top: 6px; }
  .mcard .mprice { font-size: 18px; font-weight: 700; color: #173b57; }
  .mcard .mstock { font-size: 12px; color: #64748b; }
  .stock-low { color: #dc2626; font-weight: 700; }
}

/* 统一登录页（左右分栏） */
.auth { min-height: 100vh; display: flex; background: #f0f3f7; }
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef1f6 100%);
}
.auth-illu { width: min(460px, 82%); }
.auth-illu img { width: 100%; height: auto; }
.auth-left-info { text-align: center; }
.auth-mini { display: flex; justify-content: center; margin-bottom: 8px; }
.auth-mini .brand-mark { width: 34px; height: 34px; font-size: 17px; }
.auth-left-info h2 { margin: 0; font-size: 26px; }
.auth-left-info p { margin: 6px 0 0; color: var(--muted); }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 34px 30px;
  box-shadow: 0 18px 50px rgba(30, 50, 70, 0.12);
}
.auth-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-logo { width: 52px; height: 52px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #173b57; }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-logo:has(img) { background: transparent; }
.auth-logo .brand-mark { width: 46px; height: 46px; font-size: 21px; }
.auth-card-head h1 { margin: 0; font-size: 24px; }
.auth-card-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brand-mark:has(img) { background: transparent; }
.auth-mini:has(img) { background: transparent; }
.splash-logo:has(img) { background: transparent; }
.auth-tabs { display: flex; gap: 26px; margin-bottom: 22px; }
.auth-tab {
  font-size: 17px;
  font-weight: 600;
  color: #8a94a2;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.auth-tab.active { color: #0b0d0e; }
.auth-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: #0b0d0e; border-radius: 2px; }
.ai {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  font-size: 15px;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fff;
  color: #0b0d0e;
}
.ai::placeholder { color: #a7b0bc; }
.ai:focus { outline: none; border-color: #1f6fb3; box-shadow: 0 0 0 3px rgba(31, 111, 179, 0.12); }
.code-row { position: relative; }
.code-row .ai { padding-right: 118px; }
.code-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  border: 0;
  background: #f2f5f8;
  color: #1f6fb3;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0 12px;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #8a94a2;
  line-height: 1.6;
  margin: 2px 0 16px;
}
.agree input { margin-top: 2px; }
.agree a { color: #1f6fb3; text-decoration: none; }
.auth-login {
  width: 100%;
  height: 46px;
  background: #0b0d0e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.auth-login:hover { background: #222; }
.auth-wechat { display: flex; justify-content: center; margin: 20px 0 8px; }
.auth-wechat svg { background: #22b75e; border-radius: 50%; padding: 6px; box-sizing: content-box; box-shadow: 0 4px 10px rgba(34, 183, 94, 0.35); }
.auth-forgot { text-align: center; }
.auth-forgot a { color: #1f6fb3; text-decoration: none; font-size: 14px; }
@media (max-width: 900px) {
  .auth { flex-direction: column; }
  .auth-left { order: 2; padding: 24px 20px; gap: 8px; }
  .auth-illu { max-width: 300px; }
  .auth-left-info h2 { font-size: 20px; }
  .auth-right { order: 1; padding: 28px 18px; }
}

/* 传统ERP主题：密集、直角、表格优先 */
:root {
  --bg: #e9edf2;
  --panel: #fff;
  --line: #b8c2cc;
  --text: #20262d;
  --muted: #59636e;
  --primary: #1f5f93;
  --primary-dark: #174b75;
  --radius: 0;
}
body { font-size: 13px; background: var(--bg); }
.sidebar { width: 206px; background: #f4f5f6; color: #27313a; border-right: 1px solid #9da9b5; }
.brand { height: 48px; padding: 0 12px; gap: 8px; background: #1f5f93; color: #fff; border-bottom: 1px solid #174b75; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 0; background: #fff; color: #1f5f93; font-size: 14px; }
.nav { padding: 4px 0 10px; }
.nav-title { height: 26px; padding: 6px 10px 4px; background: #e1e5e9; border-top: 1px solid #c5ccd3; border-bottom: 1px solid #c5ccd3; color: #4d5965; font-size: 11px; font-weight: 700; }
.nav-item { min-height: 32px; margin: 0; padding: 6px 12px 6px 18px; gap: 8px; border-radius: 0; border: 0; border-bottom: 1px solid #e1e4e7; color: #29343d; font-weight: 400; }
.nav-item:hover { background: #e8f0f7; }
.nav-item.active { background: #d3e4f2; color: #154f7e; border-left: 4px solid #1f5f93; padding-left: 14px; font-weight: 700; }
.nav-item svg { width: 15px; height: 15px; }
.sidebar-user { padding: 9px 10px; border-top: 1px solid #b8c2cc; background: #e7eaed; color: #394651; }
.sidebar-user .btn { color: #30404d !important; }
.main { margin-left: 206px; }
.topbar { height: 48px; padding: 0 14px; background: #2b6d9f; border-bottom: 1px solid #164d78; color: #fff; }
.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar-meta { color: #e8f2f8; font-size: 12px; }
.content { padding: 10px; }
.page-head { min-height: 48px; align-items: center; margin-bottom: 8px; padding: 7px 10px; background: #fff; border: 1px solid #b8c2cc; }
.page-head h2 { margin: 0 0 2px; font-size: 16px; }
.page-head p { font-size: 12px; }
.btn { height: 29px; padding: 0 10px; gap: 5px; border-radius: 0; border-color: #9da9b5; background: linear-gradient(#fff,#edf0f3); font-size: 12px; font-weight: 500; }
.btn:hover { background: #e2ecf4; border-color: #6486a2; }
.btn.primary { background: #1f5f93; border-color: #174b75; }
.btn.primary:hover { background: #174b75; }
.btn.small { height: 25px; padding: 0 7px; font-size: 12px; }
.btn svg { width: 14px; height: 14px; }
.grid { gap: 8px; }
.todo-grid { gap: 6px; margin-bottom: 8px; }
.card { border: 1px solid #b8c2cc; border-radius: 0; padding: 9px 10px; box-shadow: none; }
.kpi { gap: 3px; min-height: 66px; justify-content: center; }
.kpi-label { font-size: 12px; }
.kpi-value { font-size: 20px; font-weight: 700; }
.panel { border: 1px solid #aeb8c2; }
.panel-head { min-height: 32px; padding: 5px 8px; background: linear-gradient(#f6f7f8,#e5e9ed); border-bottom: 1px solid #aeb8c2; }
.panel-head h3 { font-size: 13px; }
.table-export-bar { padding: 4px 6px; background: #f7f8f9; border-bottom: 1px solid #c2cad2; }
table { min-width: 680px; }
th, td { height: 29px; padding: 4px 6px; border-color: #c7ced5; font-size: 12px; }
th { background: #e4e8ec; color: #1f272e; font-weight: 700; }
tbody tr:nth-child(even) td { background: #f7f8f9; }
tbody tr:hover td { background: #fff2c8; }
.empty { padding: 20px 10px; }
.badge { height: 19px; padding: 0 5px; border-radius: 0; font-size: 11px; }
.modal-backdrop { background: rgba(0,0,0,.35); padding: 10px; }
.modal { width: min(820px,100%); border: 1px solid #5d6b76; border-radius: 0; box-shadow: 0 4px 12px #0005; }
.modal-head { min-height: 38px; padding: 6px 10px; background: #2b6d9f; color: #fff; border-bottom: 1px solid #174b75; }
.modal-head h3 { font-size: 14px; }
.modal-head .btn { color: #fff; }
.modal-body { padding: 8px; }
.modal-foot { padding: 7px 10px; background: #edf0f3; border-top: 1px solid #b8c2cc; }
.field { gap: 3px; padding: 6px; }
.field label { font-size: 12px; }
.field input,.field select,.field textarea { height: 29px; border-color: #9da9b5; border-radius: 0; padding: 0 6px; font-size: 12px; }
.field textarea { height: 58px; padding: 5px 6px; }
.thumb,.thumb.small,.image-preview img,.image-preview .thumb.large { border-radius: 0; }
.line-filter { padding: 5px 6px; background: #e8ebee; }
.line-filter select,.line-filter input,.line-editor input,.line-editor select { height: 28px; border-radius: 0; }
.add-line { padding: 6px; background: #f0f2f4; }
.auth { background: #dfe4e9; }
.auth-left { flex: 0 0 38%; background: #245f8d; color: #fff; border-right: 1px solid #174b75; }
.auth-left-info p { color: #d9e6f0; }
.auth-right { background: #eef1f4; }
.auth-card { width: min(390px,100%); border: 1px solid #9ca8b3; border-radius: 0; padding: 26px 28px 22px; box-shadow: none; }
.auth-logo,.auth-logo .brand-mark { border-radius: 0; }
.auth-tabs { margin-bottom: 14px; border-bottom: 1px solid #b8c2cc; }
.auth-tab { font-size: 14px; padding: 5px 8px; }
.auth-tab.active::after { height: 2px; background: #1f5f93; border-radius: 0; }
.ai { height: 34px; padding: 6px 8px; margin-bottom: 10px; border-color: #9da9b5; border-radius: 0; font-size: 13px; }
.ai:focus { border-color: #1f5f93; box-shadow: none; }
.auth-login { height: 36px; border-radius: 0; background: #1f5f93; font-size: 14px; }
.auth-login:hover { background: #174b75; }
.toast { top: 56px; border-radius: 0; background: #2f3e49; box-shadow: 0 2px 6px #0004; }
.splash { background: #1f5f93; }
.splash-logo { border-radius: 0; background: #fff; color: #1f5f93; }

@media (max-width:760px) {
  .sidebar { width: 220px; }
  .main { margin-left: 0; }
  .content { padding: 7px 7px 80px; }
  .topbar { padding: 0 10px; }
  .page-head { align-items: stretch; padding: 7px; }
  .auth-left { display: none; }
  .auth-right { padding: 16px; }
}

/* Traditional ERP / spreadsheet workspace */
:root {
  --primary: #245b88;
  --primary-dark: #17466d;
  --panel: #fff;
  --border: #9ba9b7;
  --muted: #5c6873;
}
body { background: #cfd5da; color: #1d252c; font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif; font-size: 12px; }
.app { background: #d6dbe0; }
.sidebar { width: 196px; background: #e9edf0; color: #1e2b35; border-right: 1px solid #7f8e9b; box-shadow: none; }
.brand { height: 50px; padding: 6px 9px; background: linear-gradient(#f9fafb,#dce3e8); border-bottom: 1px solid #8493a0; color: #173b59; }
.brand-mark { width: 31px; height: 31px; border: 1px solid #5f778b; border-radius: 2px; background: #fff; color: #245b88; box-shadow: none; }
.brand-copy strong { font-size: 14px; color: #173b59; }.brand-copy small { display: none; }
.nav { padding: 3px 0; }
.nav-title { margin: 0; padding: 4px 9px 3px; border-top: 1px solid #c3cbd2; border-bottom: 1px solid #aeb9c2; background: #d7dee4; color: #43525e; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.nav-item { min-height: 29px; margin: 0; padding: 4px 10px 4px 18px; gap: 7px; border: 0; border-bottom: 1px solid #d5dce1; border-radius: 0; color: #26343f; font-size: 12px; }
.nav-item svg { width: 14px; height: 14px; color: #486477; }
.nav-item:hover { background: #dbe8f2; color: #153f61; transform: none; }
.nav-item.active { background: #2d628b; color: #fff; box-shadow: inset 4px 0 #f3bb39; }
.nav-item.active svg { color: #fff; }
.sidebar-user { padding: 7px 9px; border-top: 1px solid #8c9aa5; background: #d8dfe4; color: #293944; }
.main { margin-left: 196px; }
.topbar { height: 42px; padding: 0 9px; border-bottom: 1px solid #758593; background: linear-gradient(#f8fafb,#dce3e8); box-shadow: none; }
.topbar-title span { display: none; }.topbar-title h1 { font-size: 15px; color: #1d3446; }
.topbar-meta { font-size: 11px; }.topbar-meta i { background: #4d9b4d; }.topbar-meta em { padding: 3px 8px; border: 1px solid #a6b0b8; border-radius: 1px; background: #f4f6f7; color: #2b3943; }
.content { padding: 6px; }
.page-head { min-height: 46px; margin: 0 0 5px; padding: 5px 7px; align-items: center; border: 1px solid #8d9ba7; border-top: 1px solid #8d9ba7; border-radius: 0; background: linear-gradient(#fff,#e7ebee); box-shadow: none; }
.page-head h2 { margin: 0 0 1px; color: #172c3c; font-size: 14px; }.page-head p { color: #596773; font-size: 11px; }
.page-head > div:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.btn { min-height: 25px; padding: 3px 9px; border: 1px solid #7e8c97; border-radius: 1px; background: linear-gradient(#fff,#dce2e7); color: #1d2b35; box-shadow: none; font-size: 11px; }
.btn:hover { background: #d7e6f2; border-color: #456c8a; transform: none; }
.btn.primary,.auth-login { border-color: #17466d; background: linear-gradient(#3979aa,#245b88); color: #fff; box-shadow: none; }
.btn.danger { color: #8d1c18; }
.btn svg { width: 13px; height: 13px; }
.panel { border: 1px solid #8f9da9; border-radius: 0; background: #fff; box-shadow: none; }
.panel-head { min-height: 29px; padding: 4px 7px; border-bottom: 1px solid #8f9da9; background: linear-gradient(#f5f7f8,#dce2e7); }
.panel-head h3 { color: #223542; font-size: 12px; }.panel-head span { font-size: 11px; }
.table-export-bar { justify-content: flex-start; min-height: 28px; padding: 2px 4px; background: #eef1f3; border-bottom: 1px solid #9aa7b2; }
.table-wrap { max-height: calc(100vh - 158px); overflow: auto; background: #fff; }
table { min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
thead th { position: sticky; top: 0; z-index: 2; height: 27px; padding: 4px 6px; border-right: 1px solid #8f9da9; border-bottom: 1px solid #7d8c98; background: linear-gradient(#f3f6f8,#cbd4db); color: #1d303e; font-weight: 700; white-space: nowrap; }
tbody td { height: 25px; padding: 3px 6px; border-right: 1px solid #c0c8ce; border-bottom: 1px solid #c4cbd1; background: #fff; color: #202b33; }
tbody tr:nth-child(even) td { background: #f4f7f9; }
tbody tr:hover td { background: #e5f0f8; }
tbody tr.is-selected td { background: #c8def0 !important; outline-color: #5b8bb0; }
.badge { padding: 1px 5px; border-radius: 1px; border: 1px solid currentColor; background: transparent !important; font-size: 10px; line-height: 16px; }
.badge.green { color: #20713b; }.badge.amber { color: #91610b; }.badge.red { color: #a52d28; }.badge.blue { color: #245b88; }.badge.gray { color: #5d6972; }
.empty { min-height: 80px; padding: 25px; border: 1px solid #aab4bd; border-radius: 0; background: #fff; }
.erp-command-bar { display: flex; align-items: center; gap: 2px; margin-bottom: 5px; padding: 3px 5px; border: 1px solid #8796a2; background: #dbe1e6; }
.erp-command-bar span { margin-right: 4px; font-weight: 700; }.erp-command-bar button { min-height: 23px; padding: 2px 8px; border: 1px solid #8e9aa4; background: linear-gradient(#fff,#e0e5e9); color: #20313d; font-size: 11px; }
.erp-command-bar button:hover { background: #d8eaf6; }
.erp-sheet { margin-bottom: 5px; }.erp-sheet .table-wrap { max-height: 130px; }
.erp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 5px; }.erp-two-col .table-wrap { max-height: 270px; }
.grid { gap: 5px; }.card,.kpi { border: 1px solid #8f9da9; border-radius: 0; box-shadow: none; }
input,select,textarea { min-height: 27px; padding: 4px 6px; border: 1px solid #8d9ba7; border-radius: 1px; background: #fff; font-size: 12px; box-shadow: none; }
input:focus,select:focus,textarea:focus { border-color: #245b88; box-shadow: 0 0 0 1px #245b88; }
.modal-card { border: 1px solid #566875; border-radius: 1px; box-shadow: 0 8px 28px rgba(0,0,0,.3); }.modal-head,.modal-foot { background: #e2e7eb; }
.line-choice-preview { border-radius: 0; background: #eef2f5; }.line-choice-preview img,.line-choice-fallback,.mcard-image { border-radius: 1px; }

@media (max-width:760px) {
  .sidebar { width: 225px; }.main { margin-left: 0; }.topbar { height: 43px; }.content { padding: 4px 4px 74px; }
  .erp-two-col { grid-template-columns: 1fr; }.page-head > div:last-child { margin-top: 4px; }.table-wrap { max-height: none; }
}

/* 数智经营驾驶舱：参考头部 ERP 厂商的企业级表达，业务表格继续保持高密度 */
:root {
  --primary: #3157f6;
  --primary-dark: #203ec4;
  --tech-violet: #7657ff;
  --tech-cyan: #13b7e9;
  --tech-navy: #071a3b;
  --bg: #f3f6fc;
  --line: #d7dfec;
}
body { background: #f3f6fc; color: #172033; }
.sidebar {
  width: 224px;
  background:
    radial-gradient(circle at 10% 0%, rgba(75, 111, 255, .35), transparent 30%),
    linear-gradient(180deg, #081a3d 0%, #0b214c 55%, #081936 100%);
  color: #dbe7ff;
  border-right: 1px solid #173a72;
  box-shadow: 8px 0 28px rgba(8, 26, 61, .12);
}
.brand { height: 68px; padding: 0 16px; gap: 11px; background: transparent; border-bottom: 1px solid rgba(134, 166, 255, .2); }
.brand-mark {
  position: relative; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.65); border-radius: 10px;
  background: linear-gradient(135deg, #33c8ff, #5148ff 55%, #a15bff); color: #fff; box-shadow: 0 0 22px rgba(88, 103, 255, .55); overflow: hidden;
}
.brand-mark::before,.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.brand-mark::after { inset: 12px; transform: rotate(0); background: rgba(255,255,255,.2); }
.brand-mark span { position: relative; z-index: 1; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: #7698d3; font: 8px/1.2 Arial,sans-serif; letter-spacing: 1.8px; }
.nav { padding: 9px 8px 14px; }
.nav-title { height: auto; margin: 10px 8px 5px; padding: 0; background: none; border: 0; color: #6583b8; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.nav-item { min-height: 38px; margin: 2px 0; padding: 8px 11px; gap: 10px; border: 1px solid transparent; border-radius: 7px; color: #b9c9e7; font-weight: 500; transition: .16s ease; }
.nav-item:hover { background: rgba(71, 108, 213, .16); color: #fff; border-color: rgba(116, 149, 255, .15); }
.nav-item.active { padding-left: 11px; background: linear-gradient(90deg, rgba(72, 92, 255, .42), rgba(65, 166, 255, .12)); color: #fff; border: 1px solid rgba(114, 150, 255, .3); box-shadow: inset 3px 0 #55c7ff, 0 5px 18px rgba(18, 54, 128, .24); }
.nav-item svg { width: 16px; height: 16px; color: #83a7ee; }
.nav-item.active svg { color: #78ddff; }
.sidebar-user { padding: 11px 14px; border-top: 1px solid rgba(134, 166, 255, .18); background: rgba(0, 10, 33, .2); color: #aebfdd; }
.sidebar-user .btn { color: #9fb4d8 !important; }
.main { margin-left: 224px; }
.topbar { height: 68px; padding: 0 22px; background: rgba(255,255,255,.96); color: #172033; border-bottom: 1px solid #dde5f1; box-shadow: 0 4px 20px rgba(34, 62, 110, .06); backdrop-filter: blur(12px); }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar-title > div { display: flex; flex-direction: column; gap: 2px; }
.topbar-title span { color: #8390a6; font: 9px/1 Arial,sans-serif; letter-spacing: 1.45px; }
.topbar h1 { font-size: 18px; font-weight: 700; color: #182238; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: #718096; font-size: 12px; }
.topbar-meta i { width: 7px; height: 7px; border-radius: 50%; background: #19c68b; box-shadow: 0 0 0 4px rgba(25,198,139,.12); }
.topbar-meta b { margin-left: 9px; padding-left: 16px; border-left: 1px solid #dce3ed; font-weight: 500; }
.topbar-meta em { padding: 5px 9px; border-radius: 15px; background: #edf2ff; color: #3157f6; font-style: normal; font-weight: 700; }
.content { padding: 16px; }
.page-head { min-height: 62px; margin-bottom: 10px; padding: 10px 13px; border: 1px solid #d8e0ec; border-top: 3px solid #3157f6; background: #fff; box-shadow: 0 4px 14px rgba(24, 55, 104, .04); }
.page-head h2 { font-size: 17px; color: #1c2940; }
.btn.primary { background: linear-gradient(135deg, #3157f6, #654cf2); border-color: #3157f6; }
.btn.primary:hover { background: #2749d8; }
.panel { border-color: #cfd8e6; }
.panel-head { background: linear-gradient(#fbfcff,#eef2f8); border-color: #cfd8e6; }

.dash-hero { position: relative; min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px 42px; margin-bottom: 14px; overflow: hidden; border: 1px solid #3866df; border-radius: 14px; color: #fff; background: linear-gradient(117deg, #071b43 0%, #113c91 48%, #5e40d7 100%); box-shadow: 0 16px 36px rgba(24, 63, 150, .2); }
.dash-grid-bg { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px); background-size: 34px 34px; transform: perspective(400px) rotateX(56deg) scale(1.4); transform-origin: center bottom; }
.dash-hero::after { content: ""; position: absolute; width: 410px; height: 410px; right: -120px; top: -170px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035),0 0 0 78px rgba(255,255,255,.025); }
.dash-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.dash-orb.one { width: 170px; height: 170px; right: 260px; bottom: -105px; background: rgba(37, 219, 255, .22); box-shadow: 0 0 70px #31d7ff66; }
.dash-orb.two { width: 90px; height: 90px; left: 50%; top: -55px; background: rgba(173, 95, 255, .35); box-shadow: 0 0 60px #bb70ff88; }
.dash-hero-main,.dash-hero-actions { position: relative; z-index: 2; }
.dash-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #8fe9ff; font: 10px/1 Arial,sans-serif; letter-spacing: 2px; }
.dash-kicker i { width: 27px; height: 2px; background: #55dcff; box-shadow: 0 0 8px #55dcff; }
.dash-hero h2 { margin: 0 0 10px; font-size: clamp(25px,2.3vw,38px); letter-spacing: 2px; text-shadow: 0 4px 16px rgba(0,0,0,.18); }
.dash-hero p { margin: 0; color: #cbdcff; font-size: 14px; }
.dash-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dash-tags span { padding: 5px 12px; border: 1px solid rgba(156, 202, 255, .34); border-radius: 16px; background: rgba(20, 47, 116, .34); color: #d8eaff; font-size: 11px; backdrop-filter: blur(5px); }
.dash-hero-actions { min-width: 228px; display: flex; flex-direction: column; gap: 10px; }
.dash-main-action,.dash-sub-action { min-height: 58px; display: flex; align-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 1px rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.dash-main-action { gap: 12px; padding: 10px 14px; text-align: left; }
.dash-main-action > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg,#2be1ff,#7060ff); font-size: 23px; }
.dash-main-action div { display: flex; flex-direction: column; gap: 3px; }
.dash-main-action b { font-size: 14px; }.dash-main-action small { color: #a9c9ff; font: 8px Arial; letter-spacing: 1.1px; }
.dash-sub-action { min-height: 38px; justify-content: space-between; padding: 0 14px; font-size: 12px; }
.dash-main-action:hover,.dash-sub-action:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }

.dash-flow-wrap,.dash-data-foundation { margin-bottom: 14px; padding: 18px 20px; border: 1px solid #d6e0f1; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(28, 61, 118, .05); }
.dash-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dash-section-title.compact { margin: 5px 2px 10px; }
.dash-section-title span,.dash-data-foundation > div > span,.dash-line-head span { display: block; margin-bottom: 4px; color: #6b7fa5; font: 9px/1 Arial,sans-serif; letter-spacing: 1.6px; }
.dash-section-title h3,.dash-data-foundation h3,.dash-line-head h3 { margin: 0; color: #172641; font-size: 17px; }
.dash-section-title p { margin: 0; color: #7b8798; font-size: 11px; }
.dash-flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.dash-flow-step { position: relative; min-height: 70px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d7e1f2; border-radius: 9px; background: linear-gradient(145deg,#fbfdff,#eef3ff); text-align: left; color: #21304d; }
.dash-flow-step > span { flex: none; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #e1e9ff; color: #3157f6; font: 700 11px Arial; }
.dash-flow-step div { display: flex; flex-direction: column; gap: 4px; }.dash-flow-step b { font-size: 13px; }.dash-flow-step small { color: #7887a1; font-size: 10px; }
.dash-flow-step i { position: absolute; right: -9px; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #c8d6f0; border-radius: 50%; background: #fff; color: #5876b3; font: 16px/1 Arial; }
.dash-flow-step:hover { border-color: #6788ee; box-shadow: 0 7px 16px rgba(50,87,180,.1); transform: translateY(-1px); }

.todo-grid { grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 10px; }
.dash-todo { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #d6dfed; border-radius: 9px; background: #fff; text-align: left; box-shadow: 0 4px 12px rgba(22, 50, 96, .04); }
.dash-todo > span { color: #98a8c0; font: 9px Arial; }.dash-todo div { flex: 1; display: flex; flex-direction: column; gap: 2px; }.dash-todo small { color: #68758a; font-size: 11px; }.dash-todo strong { color: #1d2a43; font-size: 19px; }.dash-todo > b { color: #5e77ac; }
.dash-todo:hover { border-color: #718df0; background: #f8faff; }
.dash-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 10px; }
.dash-metric { position: relative; min-height: 110px; overflow: hidden; padding: 18px; border-radius: 11px; color: #fff; box-shadow: 0 10px 24px rgba(26, 56, 122, .14); }
.dash-metric::after { content: ""; position: absolute; width: 110px; height: 110px; right: -40px; bottom: -55px; border: 16px solid rgba(255,255,255,.1); border-radius: 50%; }
.dash-metric.blue { background: linear-gradient(135deg,#176cdd,#444deb); }.dash-metric.violet { background: linear-gradient(135deg,#6645e7,#9b56ea); }.dash-metric.cyan { background: linear-gradient(135deg,#098cb8,#19c3d2); }.dash-metric.orange { background: linear-gradient(135deg,#da6c28,#ef9d35); }
.dash-metric > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }.dash-metric span { color: rgba(255,255,255,.82); font-size: 12px; }.dash-metric strong { font-size: clamp(19px,1.7vw,27px); letter-spacing: .3px; }.dash-metric small { color: rgba(255,255,255,.55); font: 8px Arial; letter-spacing: 1.5px; }
.dash-metric > i { position: absolute; top: 13px; right: 15px; color: rgba(255,255,255,.35); font: italic 700 16px Arial; }
.dash-dual-line { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 10px; }
.dash-line-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid #d3def0; border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(27, 55, 105, .05); }
.dash-line-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #3157f6; }.dash-line-card.direct::before { background: #7754ee; }
.dash-line-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 17px; }.dash-line-head > b { color: #3157f6; font-size: 28px; line-height: 1; }.dash-line-card.direct .dash-line-head > b { color: #7754ee; }.dash-line-head > b small { display: block; margin-top: 4px; color: #8994a8; font-size: 9px; font-weight: 500; }
.dash-line-data { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.dash-line-data div { padding: 10px; border: 1px solid #e1e7f1; background: #f8faff; }.dash-line-data span { display: block; margin-bottom: 5px; color: #79859a; font-size: 10px; }.dash-line-data strong { color: #263550; font-size: 15px; }
.dash-data-foundation { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(115deg,#081c42,#123b80); color: #fff; border-color: #174992; }
.dash-data-foundation h3 { color: #fff; }.dash-data-foundation p { max-width: 520px; margin: 7px 0 0; color: #a9c0e5; font-size: 11px; line-height: 1.7; }
.dash-data-foundation ul { min-width: 55%; display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.dash-data-foundation li { padding: 11px 8px; border: 1px solid rgba(130,174,255,.23); border-radius: 8px; background: rgba(40,78,148,.45); text-align: center; }.dash-data-foundation li b { display: block; color: #7ee5ff; font-size: 19px; }.dash-data-foundation li span { color: #b8c9e5; font-size: 10px; }
.dash-tables { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.dash-panel { overflow: hidden; border-radius: 10px; box-shadow: 0 5px 16px rgba(25, 54, 103, .05); }.dash-panel .panel-head { min-height: 43px; padding: 9px 12px; background: #fff; }.dash-panel .panel-head h3 { font-size: 14px; color: #22304a; }

.auth-left { background: radial-gradient(circle at 20% 20%,rgba(68,196,255,.35),transparent 30%),linear-gradient(145deg,#071a3c,#1d4191 60%,#7048d8); border: 0; }
.auth-card { border: 1px solid #d6e0ef; border-radius: 14px; box-shadow: 0 18px 45px rgba(25,56,111,.12); }
.auth-logo,.auth-logo .brand-mark { border-radius: 10px; }
.auth-login { border-radius: 7px; background: linear-gradient(135deg,#3157f6,#6b4cec); border: 0; box-shadow: 0 7px 18px rgba(49,87,246,.22); }

.line-choice-preview { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 9px 11px; border-top: 1px solid #d5deea; background: linear-gradient(90deg,#f8fbff,#f1f5ff); }
.line-choice-preview img,.line-choice-fallback { flex: none; width: 76px; height: 62px; border: 1px solid #cad6e8; border-radius: 7px; object-fit: cover; background: #fff; }
.line-choice-preview > div:not(.thumb) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.line-choice-preview b { color: #1e2c47; font-size: 14px; }.line-choice-preview span { color: #4c6184; font-size: 11px; }.line-choice-preview small { color: #75839a; font-size: 10px; }
.line-choice-empty { color: #8793a6; font-size: 12px; }
.mcard.with-image { display: flex; align-items: center; gap: 11px; }.mcard-content { flex: 1; min-width: 0; }.mcard-image { flex: none; width: 64px; height: 54px; object-fit: cover; border: 1px solid #d5deea; border-radius: 7px; background: #f3f6fb; }.mcard-image.fallback { display: grid; place-items: center; color: #3157f6; font-weight: 700; }

@media (max-width:1100px) {
  .dash-flow { grid-template-columns: repeat(3,1fr); }.dash-flow-step i { display: none; }
  .dash-metrics { grid-template-columns: repeat(2,1fr); }.todo-grid { grid-template-columns: repeat(3,1fr); }
  .dash-data-foundation { align-items: stretch; flex-direction: column; }.dash-data-foundation ul { min-width: 0; }
}
@media (max-width:760px) {
  .sidebar { width: 238px; }.main { margin-left: 0; }.topbar { height: 56px; padding: 0 10px; }.topbar-title span,.topbar-meta span,.topbar-meta b { display: none; }.topbar-meta em { max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 8px 8px 78px; }.dash-hero { min-height: 0; padding: 24px 20px; flex-direction: column; align-items: stretch; border-radius: 10px; }.dash-hero-actions { min-width: 0; }.dash-hero h2 { font-size: 25px; }.dash-hero p { line-height: 1.7; }
  .dash-flow-wrap,.dash-data-foundation { padding: 14px; }.dash-section-title { align-items: flex-start; flex-direction: column; gap: 5px; }.dash-section-title p { line-height: 1.5; }
  .dash-flow { grid-template-columns: 1fr 1fr; }.todo-grid { grid-template-columns: 1fr 1fr; }.dash-metrics,.dash-dual-line,.dash-tables { grid-template-columns: 1fr; }.dash-data-foundation ul { grid-template-columns: repeat(2,1fr); }.dash-data-foundation li:last-child { grid-column: 1 / -1; }
  .dash-line-data { gap: 5px; }.dash-line-data div { padding: 8px 5px; }.dash-line-data strong { font-size: 12px; }
}

/* Final classic ERP theme override */
body { background:#cfd5da; color:#1d252c; font-family:"Microsoft YaHei","SimSun",Arial,sans-serif; font-size:12px; }
.app { background:#d6dbe0; }
.sidebar { width:196px; background:#e9edf0; color:#1e2b35; border-right:1px solid #7f8e9b; box-shadow:none; }
.brand { height:50px; padding:6px 9px; background:linear-gradient(#f9fafb,#dce3e8); border-bottom:1px solid #8493a0; }
.brand-mark { width:31px; height:31px; border:1px solid #5f778b; border-radius:2px; background:#fff; color:#245b88; box-shadow:none; }
.brand-mark::before,.brand-mark::after { display:none; }.brand-copy strong { color:#173b59; font-size:14px; }.brand-copy small { display:none; }
.nav { padding:3px 0; }.nav-title { margin:0; padding:4px 9px 3px; border-top:1px solid #c3cbd2; border-bottom:1px solid #aeb9c2; background:#d7dee4; color:#43525e; font-size:11px; letter-spacing:0; }
.nav-item { min-height:29px; margin:0; padding:4px 10px 4px 18px; gap:7px; border:0; border-bottom:1px solid #d5dce1; border-radius:0; color:#26343f; font-size:12px; }
.nav-item svg { width:14px; height:14px; color:#486477; }.nav-item:hover { background:#dbe8f2; color:#153f61; transform:none; }.nav-item.active { padding-left:18px; background:#2d628b; color:#fff; border:0; box-shadow:inset 4px 0 #f3bb39; }.nav-item.active svg { color:#fff; }
.sidebar-user { padding:7px 9px; border-top:1px solid #8c9aa5; background:#d8dfe4; color:#293944; }.sidebar-user .btn { color:#293944 !important; }
.main { margin-left:196px; }.topbar { height:42px; padding:0 9px; border-bottom:1px solid #758593; background:linear-gradient(#f8fafb,#dce3e8); box-shadow:none; }
.topbar-title span { display:none; }.topbar-title h1,.topbar h1 { color:#1d3446; font-size:15px; }.topbar-meta { color:#43515c; font-size:11px; }.topbar-meta em { padding:3px 8px; border:1px solid #a6b0b8; border-radius:1px; background:#f4f6f7; color:#2b3943; }
.content { padding:6px; }.page-head { min-height:46px; margin:0 0 5px; padding:5px 7px; border:1px solid #8d9ba7; border-top:1px solid #8d9ba7; border-radius:0; background:linear-gradient(#fff,#e7ebee); box-shadow:none; }.page-head h2 { color:#172c3c; font-size:14px; }
.btn,.btn.primary { min-height:25px; padding:3px 9px; border-radius:1px; box-shadow:none; font-size:11px; }.btn { border:1px solid #7e8c97; background:linear-gradient(#fff,#dce2e7); color:#1d2b35; }.btn.primary { border-color:#17466d; background:linear-gradient(#3979aa,#245b88); color:#fff; }.btn:hover,.btn.primary:hover { background:#d7e6f2; border-color:#456c8a; color:#1d2b35; transform:none; }
.panel { border:1px solid #8f9da9; border-radius:0; background:#fff; box-shadow:none; }.panel-head { min-height:29px; padding:4px 7px; border-bottom:1px solid #8f9da9; background:linear-gradient(#f5f7f8,#dce2e7); }.panel-head h3 { color:#223542; font-size:12px; }
.table-export-bar { justify-content:flex-start; min-height:28px; padding:2px 4px; background:#eef1f3; border-bottom:1px solid #9aa7b2; }.table-wrap { background:#fff; }.table-wrap table { font-size:11px; }
.table-wrap thead th { background:linear-gradient(#f3f6f8,#cbd4db); color:#1d303e; border-color:#8f9da9; }.table-wrap tbody td { background:#fff; border-color:#c0c8ce; }.table-wrap tbody tr:nth-child(even) td { background:#f4f7f9; }.table-wrap tbody tr:hover td { background:#e5f0f8; }.table-wrap tbody tr.is-selected td { background:#c8def0 !important; }
.badge { border-radius:1px; box-shadow:none; }.erp-command-bar { border-color:#8796a2; background:#dbe1e6; }.erp-two-col { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-bottom:5px; }
@media (max-width:760px) { .sidebar { width:225px; }.main { margin-left:0; }.topbar { height:43px; }.content { padding:4px 4px 74px; }.erp-two-col { grid-template-columns:1fr; } }

/* 销售订单内嵌图册选品 */
.modal.modal-wide { width:min(1180px,calc(100vw - 24px)); }
.catalog-order-picker { border:1px solid #8f9da9; background:#fff; }
.catalog-order-head { min-height:34px; padding:6px 8px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #8f9da9; background:linear-gradient(#f7f8f9,#dce2e7); }
.catalog-order-head b { color:#1e3445; font-size:12px; }
.catalog-order-head span { color:#596671; font-size:11px; }
.catalog-order-filter { display:grid; grid-template-columns:160px minmax(260px,1fr) 150px auto; gap:5px; padding:5px; border-bottom:1px solid #9eabb5; background:#edf1f4; }
.catalog-order-filter input,.catalog-order-filter select { height:28px; padding:0 6px; border:1px solid #8796a2; border-radius:0; background:#fff; }
.catalog-order-table { max-height:330px; }
.catalog-order-table table { min-width:980px; }
.catalog-order-table .thumb.small { width:38px; height:32px; border-radius:1px; }
.catalog-order-qty { width:74px; height:26px; padding:0 5px; border:1px solid #8c99a4; border-radius:0; }
.catalog-order-actions { min-height:38px; padding:5px 7px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #8f9da9; background:#eef1f3; }
.catalog-order-actions span { color:#42515d; font-size:11px; }
@media (max-width:760px) {
  .modal.modal-wide { width:calc(100vw - 8px); }
  .catalog-order-head { align-items:flex-start; flex-direction:column; gap:3px; }
  .catalog-order-filter { grid-template-columns:1fr; }
  .catalog-order-actions { align-items:stretch; flex-direction:column; }
}
