﻿:root {
  --bg: #eef2f6;
  --panel: #fbfcfe;
  --panel-strong: #ffffff;
  --surface-subtle: #f5f7fa;
  --surface-muted: #e9eef5;
  --line: #cfd8e3;
  --line-soft: #e2e8f0;
  --text: #1f2937;
  --muted: #667085;
  --muted-soft: #98a2b3;
  --primary: #215f8f;
  --primary-hover: #184f7a;
  --primary-soft: #e5f0f8;
  --table-head: #e8edf3;
  --table-head-text: #24364f;
  --orange: #b7791f;
  --orange-soft: #fff7e6;
  --danger: #c0392b;
  --success: #12805c;
  --warning: #b7791f;
  --data-blue: #215f8f;
  --data-teal: #0f766e;
  --data-amber: #b7791f;
  --data-red: #b94a48;
  --data-graphite: #475467;
  --data-blue-soft: #e5f0f8;
  --data-teal-soft: #e5f4f1;
  --data-amber-soft: #fff4d9;
  --data-red-soft: #fff0f0;
  --data-graphite-soft: #edf2f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px rgba(31, 41, 55, .04);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button svg, .search-box svg { width: 15px; height: 15px; flex: 0 0 auto; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px, 61.2fr) minmax(420px, 38.8fr);
  background: #fff;
}
.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: #071b3a; }
.login-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,27,58,.18), rgba(7,27,58,.38)),
    radial-gradient(circle at 38% 44%, rgba(87,155,245,.16), transparent 34%);
}
.visual-copy { position: absolute; z-index: 1; left: 56px; bottom: 288px; color: rgba(255,255,255,.58); }
.visual-copy h1 { margin: 0; font-size: 56px; line-height: 1; letter-spacing: 0; font-weight: 900; }
.visual-copy p { margin: 16px 0 0; color: rgba(255,255,255,.28); font-size: 12px; letter-spacing: 2px; }
.visual-footer {
  position: absolute;
  z-index: 1;
  left: 56px;
  right: 52px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(213,225,245,.36);
  font-size: 12px;
}
.visual-footer strong { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: rgba(213,225,245,.24); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 64px; background: #fff; }
.login-card { width: min(400px, 100%); }
.login-title h2 { margin: 0 0 8px; color: #102a56; font-size: 28px; letter-spacing: 0; }
.login-title p { margin: 0 0 22px; color: #6b778c; font-size: 13px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 6px; background: #f1f2f5; margin-bottom: 22px; }
.segmented button { border: 0; border-radius: 4px; height: 30px; background: transparent; color: #42526e; font-size: 13px; }
.segmented button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(23,43,77,.12); font-weight: 800; }
.login-form { display: grid; gap: 17px; }
label span { display: block; margin-bottom: 8px; color: #344563; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: var(--text); outline: none; }
input, select { height: 38px; padding: 0 12px; }
textarea { min-height: 96px; resize: vertical; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(12,102,228,.12); }
.input-wrap {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(12,102,228,.12); }
.input-wrap svg { width: 16px; height: 16px; color: #6b778c; }
.input-wrap input { height: 34px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.input-icon-btn { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #8993a4; }
.input-icon-btn svg { width: 15px; height: 15px; }
.login-options { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.check-row { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.check-row input { width: 14px; height: 14px; }
.login-error { margin: -4px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.link-btn { border: 0; background: transparent; color: var(--primary); padding: 0; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 28px; }

.primary-btn, .ghost-btn, .icon-btn, .user-btn, .danger-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 11px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}
.primary-btn { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(12,102,228,.20); }
.app-shell .primary-btn { box-shadow: none; }
.primary-btn:hover { background: var(--primary-hover); }
.primary-btn.wide { width: 100%; height: 42px; margin-top: 4px; }
.ghost-btn { background: #fff; border-color: var(--line); color: #344563; }
.ghost-btn:hover { background: #f6f8fb; }
.icon-btn, .user-btn { background: #fff; border-color: var(--line); color: #344563; }
.danger-btn { color: #fff; background: var(--danger); }

.app-shell { min-height: 100vh; display: flex; background: var(--bg); }
.sidebar {
  width: 216px;
  min-width: 216px;
  height: 100vh;
  background: #fbfcfe;
  color: var(--text);
  border-right: 1px solid #e6e9ef;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .18s ease, min-width .18s ease;
}
.side-brand {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 13px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 1px solid #253858;
  border-radius: 7px;
  color: #253858;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0;
  transform: none;
}
.brand-copy { min-width: 0; }
.side-brand strong { display: block; font-size: 18px; line-height: 1; color: #111827; letter-spacing: 0; }
.side-brand span { display: block; margin-top: 4px; color: #8993a4; font-size: 10px; }
.collapse-btn {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd6e1;
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  padding: 0;
}
.module-nav {
  flex: 1;
  min-height: 0;
  padding: 6px 6px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d0dc transparent;
}
.module-nav::-webkit-scrollbar { width: 6px; }
.module-nav::-webkit-scrollbar-thumb { background: #c8d0dc; border-radius: 999px; }
.nav-block { margin-bottom: 1px; }
.nav-row, .child-row {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  text-align: left;
  padding: 5px 8px 5px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  transition: background .12s ease, color .12s ease;
}
.nav-row:hover, .child-row:hover { background: #eef3f8; }
.nav-row.active, .child-row.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-row.expanded { color: #24364f; background: transparent; }
.nav-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #44546f;
  flex: 0 0 auto;
}
.nav-icon svg { width: 14px; height: 14px; }
.nav-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid #c9d8e6;
  background: #eef5fb;
  color: #215f8f;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
}
.nav-badge.alert {
  border-color: #f3a7a0;
  background: #ffe8e6;
  color: var(--danger);
  box-shadow: 0 0 0 0 rgba(180, 35, 24, .28);
  animation: navBadgeAlertPulse 1.05s ease-in-out infinite;
}
@keyframes navBadgeAlertPulse {
  0%, 100% {
    background: #ffe8e6;
    box-shadow: 0 0 0 0 rgba(180, 35, 24, .22);
  }
  50% {
    background: #ffd3cf;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
  }
}
.nav-arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8993a4;
  transition: transform .16s ease;
}
.nav-row.expanded .nav-arrow { transform: rotate(90deg); color: #8993a4; }
.child-list { padding: 2px 0 5px 26px; }
.child-row {
  min-height: 29px;
  padding: 4px 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}
.child-row .nav-badge { margin-left: auto; }
.side-user {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2eadb;
  color: #7a3f14;
  font-weight: 900;
  overflow: hidden;
}
.avatar img,
.user-mini-avatar img,
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-user strong { display: block; font-size: 13px; color: #344563; }
.side-user span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.side-user button { margin-left: auto; border: 0; background: transparent; color: var(--muted); }
.sidebar-collapsed .sidebar { width: 58px; min-width: 58px; }
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-title,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .nav-arrow,
.sidebar-collapsed .child-list,
.sidebar-collapsed .side-user div:not(.avatar),
.sidebar-collapsed .side-user button { display: none; }
.sidebar-collapsed .side-brand { justify-content: center; padding: 0; }
.sidebar-collapsed .collapse-btn { display: none; }
.sidebar-collapsed .module-nav { padding: 8px 7px; }
.sidebar-collapsed .nav-row { justify-content: center; padding: 7px; }
.sidebar-collapsed .side-user { justify-content: center; padding: 10px 0; }

.main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.topbar h1 { margin: 0; font-size: 18px; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.quick-create {
  position: relative;
  display: inline-flex;
  z-index: 12;
}
.quick-create-trigger {
  gap: 7px;
  padding-inline: 12px;
}
.quick-create-trigger svg:last-child {
  width: 14px;
  height: 14px;
}
.quick-create-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 310px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 43, 77, .18);
}
.quick-create-menu button {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 9px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.quick-create-menu button:hover {
  border-color: #9cc2f6;
  background: #f5f9ff;
}
.quick-create-menu svg {
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
  color: var(--primary);
}
.quick-create-menu strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}
.quick-create-menu span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.global-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 2px;
}
.global-history-actions .icon-btn,
.global-history-actions .ghost-btn {
  min-height: 32px;
  padding-inline: 8px;
  box-shadow: none;
}
.global-history-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.search-box {
  height: 32px;
  width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.search-box svg { color: #8993a4; }
.search-box input { height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.content {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.metric-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "value desc";
  align-items: center;
  gap: 3px 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.metric-card > svg {
  grid-area: icon;
  width: 18px;
  height: 18px;
  color: #6b778c;
}
.metric-card span {
  grid-area: label;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-card strong {
  grid-area: value;
  display: block;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  color: #172b4d;
}
.metric-card small {
  grid-area: desc;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 14px;
}
.panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { margin: 0; font-size: 15px; color: #1f2937; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 12px; }
.todo-list { display: grid; gap: 10px; }
.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
}
.todo-item strong { display: block; font-size: 14px; }
.todo-item span { color: var(--muted); font-size: 12px; }
.dashboard-task-list,
.dashboard-summary-list {
  display: grid;
  gap: 10px;
}
.dashboard-task {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--primary);
  border-radius: 7px;
  background: #fff;
  text-align: left;
}
.dashboard-task > div { min-width: 0; }
.dashboard-task:hover { background: #f7fbff; border-color: #b7d4fb; }
.dashboard-task.danger { border-left-color: var(--danger); }
.dashboard-task.warn { border-left-color: var(--orange); }
.dashboard-task.money { border-left-color: var(--success); }
.dashboard-task strong { display: block; color: #172b4d; font-size: 14px; }
.dashboard-task span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.dashboard-task em {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.dashboard-task.danger em { background: #fff0f0; color: var(--danger); }
.dashboard-task.warn em { background: var(--orange-soft); color: #b45309; }
.dashboard-task.money em { background: #e7f6ef; color: var(--success); }
.settings-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.settings-entry {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  text-align: left;
}
.settings-entry:hover {
  border-color: #b7d4fb;
  background: #f7fbff;
}
.settings-entry svg {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.settings-entry strong {
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}
.settings-entry span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.dashboard-summary-item {
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
}
.dashboard-summary-item span { display: block; color: var(--muted); font-size: 12px; }
.dashboard-summary-item strong { display: block; margin-top: 5px; color: #172b4d; font-size: 22px; }
.dashboard-summary-item em { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-style: normal; }
.ops-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 12px;
  align-items: start;
}
.ops-page {
  min-height: calc(100vh - 104px);
  height: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
.ops-metric-grid {
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ops-metric-grid .metric-card {
  min-height: 54px;
  padding: 8px 10px;
  box-shadow: none;
}
.ops-metric-grid .metric-card strong {
  font-size: 21px;
}
.ops-board-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(360px, 1fr) minmax(300px, .82fr);
  gap: 10px;
  align-items: stretch;
}
.ops-page .panel {
  box-shadow: var(--shadow);
}
.ops-page .panel-head {
  min-height: 44px;
  padding: 8px 10px;
}
.ops-page .panel-head h2 {
  font-size: 15px;
}
.ops-todo-panel,
.ops-shortcuts-panel,
.ops-health-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ops-side-stack {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
.ops-center-stack {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(260px, .96fr) minmax(170px, .64fr);
  gap: 10px;
}
.ops-task-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 8px 10px 10px;
}
.ops-action-body { padding: 8px 10px 10px; }
.ops-health-panel .ops-status-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.ops-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
  gap: 12px;
}
.ops-section-title {
  min-height: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ops-section-title strong { color: #172b4d; font-size: 14px; }
.ops-section-title span { color: var(--muted); font-size: 12px; }
.dashboard-task-list.compact { gap: 7px; }
.dashboard-task-list.compact .dashboard-task {
  min-height: 46px;
  padding: 7px 9px;
  border-left-width: 3px;
}
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.quick-action,
.ops-status-item,
.ops-flow-step,
.ops-closure-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.quick-action {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-content: center;
  padding: 7px 8px;
}
.quick-action:hover,
.ops-status-item:hover,
.ops-flow-step:hover,
.ops-closure-card:hover,
.settings-entry:hover {
  border-color: #b7d4fb;
  background: #f7fbff;
}
.quick-action.primary {
  border-color: #9cc2f6;
  background: #f5f9ff;
}
.quick-action svg {
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.quick-action strong,
.ops-flow-step strong {
  min-width: 0;
  color: #172b4d;
  font-size: 13px;
  line-height: 1.2;
}
.quick-action span,
.ops-flow-step span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ops-status-list {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px 10px 10px;
}
.ops-status-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-left: 3px solid #cfd6e1;
}
.ops-status-item.ok { border-left-color: var(--success); }
.ops-status-item.warn { border-left-color: var(--orange); }
.ops-status-item.danger { border-left-color: var(--danger); }
.ops-status-item strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
}
.ops-status-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ops-status-item em {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #44546f;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.ops-status-item.ok em { background: #e7f6ef; color: var(--success); }
.ops-status-item.warn em { background: var(--orange-soft); color: #b45309; }
.ops-status-item.danger em { background: #fff0f0; color: var(--danger); }
.ops-flow-panel { margin-top: 12px; }
.ops-flow-title {
  margin: 12px 0 7px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}
.ops-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.ops-flow-step {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  position: relative;
}
.ops-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #cfd6e1;
}
.ops-flow-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.ops-flow-rail .ops-flow-step {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 6px 7px;
  text-align: center;
}
.ops-flow-rail .ops-flow-step:not(:last-child)::after {
  right: -5px;
  width: 5px;
}
.ops-flow-rail .ops-flow-step strong {
  font-size: 12px;
}
.ops-flow-rail .ops-flow-step span {
  margin: 0;
  font-size: 11px;
}
.ops-closure-panel,
.ops-recent-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ops-closure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.ops-closure-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-left: 4px solid var(--primary);
}
.ops-closure-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
}
.ops-closure-icon svg {
  width: 17px;
  height: 17px;
}
.ops-closure-card strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
  line-height: 1.2;
}
.ops-closure-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ops-closure-card em {
  min-width: 44px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e1edf6;
  color: var(--primary);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.ops-closure-card.ok { border-left-color: var(--success); }
.ops-closure-card.ok .ops-closure-icon,
.ops-closure-card.ok em { background: #dff2ed; color: var(--success); }
.ops-closure-card.warn { border-left-color: var(--orange); }
.ops-closure-card.warn .ops-closure-icon,
.ops-closure-card.warn em { background: #fff3d7; color: #8a570f; }
.ops-closure-card.danger { border-left-color: var(--danger); }
.ops-closure-card.danger .ops-closure-icon,
.ops-closure-card.danger em { background: #fde9e7; color: var(--danger); }
.ops-recent-list {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow: auto;
  padding: 8px 10px 10px;
}
.ops-recent-list .dashboard-task {
  min-height: 42px;
  padding: 7px 9px;
  border-left-width: 3px;
}
.ops-recent-item {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-left: 3px solid #cfd6e1;
  border-radius: 7px;
  background: #fbfdff;
  color: var(--text);
  text-align: left;
}
.ops-recent-item:hover {
  border-color: #b7d4fb;
  border-left-color: var(--primary);
  background: #f4f9fd;
}
.ops-recent-item span {
  min-width: 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e1edf6;
  color: var(--primary);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-recent-item div {
  min-width: 0;
}
.ops-recent-item strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-recent-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-recent-item em {
  color: var(--muted);
  text-align: right;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.ops-recent-item.warn { border-left-color: var(--orange); }
.ops-recent-item.warn span { background: #fff3d7; color: #8a570f; }
.ops-recent-item.danger { border-left-color: var(--danger); }
.ops-recent-item.danger span { background: #fde9e7; color: var(--danger); }
.ops-recent-item.money { border-left-color: var(--success); }
.ops-recent-item.money span { background: #dff2ed; color: var(--success); }
.dashboard-empty.danger {
  border-color: #f0c2be;
  background: #fff7f6;
  color: var(--danger);
}
.settings-entry.primary {
  border-color: #9cc2f6;
  background: #f5f9ff;
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.badge-soft.danger { background: #fff0f0; color: var(--danger); }

.quote-page {
  height: calc(100vh - 122px);
  min-height: 680px;
  display: grid;
  grid-template-columns: clamp(220px, 17vw, 260px) minmax(0, 1fr) clamp(220px, 16vw, 260px);
  grid-template-areas: "parts builder assist";
  gap: 10px;
  align-items: stretch;
}
.quote-panel-left { grid-area: parts; }
.quote-panel-main { grid-area: builder; position: relative; }
.quote-panel-right { grid-area: assist; }
.quote-panel-left,
.quote-panel-main,
.quote-panel-right {
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote-panel-left { display: flex; flex-direction: column; }
.quote-panel-right {
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.quote-right-rail {
  display: none;
}
.quote-panel-right .right-card {
  min-width: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
}
.quote-panel-right .right-card:last-child {
  border-bottom: 0;
}
.quote-final-action-card {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 12px;
  background: #fbfcfe;
}
.quote-final-action-card .quote-confirm-action {
  min-height: 40px;
  font-size: 14px;
  font-weight: 900;
}

.quote-final-action-card .quote-cta-action {
  width: calc(100% - 12px);
  height: 42px;
  min-height: 42px;
  margin: 4px 6px 6px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: #0c66e4;
  color: #ffffff;
  box-shadow: 5px 5px 0 #071b3a;
  cursor: pointer;
  transform: skewX(-12deg);
  transition: box-shadow .45s ease, background .25s ease, transform .25s ease;
  overflow: visible;
}

.quote-final-action-card .quote-cta-action:focus {
  outline: 2px solid rgba(12, 102, 228, .35);
  outline-offset: 4px;
}

.quote-final-action-card .quote-cta-action:hover {
  background: #155fca;
  box-shadow: 8px 8px 0 #f5c542;
  transform: skewX(-12deg) translate(-1px, -1px);
}

.quote-final-action-card .quote-cta-action:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: 4px 4px 0 #94a3b8;
}

.quote-cta-text,
.quote-cta-arrows {
  transform: skewX(12deg);
}

.quote-cta-text {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.quote-cta-arrows {
  width: 34px;
  height: 18px;
  flex: 0 0 auto;
  overflow: visible;
  fill: #ffffff;
}

.quote-cta-arrow {
  transition: transform .45s ease, fill .45s ease;
}

.quote-cta-one {
  transform: translateX(-42%);
}

.quote-cta-two {
  transform: translateX(-22%);
}

.quote-final-action-card .quote-cta-action:hover .quote-cta-arrows {
  margin-left: 4px;
}

.quote-final-action-card .quote-cta-action:hover .quote-cta-one,
.quote-final-action-card .quote-cta-action:hover .quote-cta-two {
  transform: translateX(0);
}

.quote-final-action-card .quote-cta-action:hover .quote-cta-three,
.quote-final-action-card .quote-cta-action:hover .quote-cta-two,
.quote-final-action-card .quote-cta-action:hover .quote-cta-one {
  animation: quoteCtaColorPulse 1s infinite;
}

.quote-final-action-card .quote-cta-action:hover .quote-cta-two {
  animation-delay: .12s;
}

.quote-final-action-card .quote-cta-action:hover .quote-cta-one {
  animation-delay: .24s;
}

@keyframes quoteCtaColorPulse {
  0%,
  100% {
    fill: #ffffff;
  }
  50% {
    fill: #f5c542;
  }
}
.quote-panel-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}
.quote-panel-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.quote-panel-title strong { font-size: 14px; }
.quote-panel-title .panel-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.quote-panel-toggle {
  width: 28px;
  min-width: 28px;
  padding-inline: 0;
  font-size: 14px;
  font-weight: 900;
}
.quote-panel-fold-actions .mini-btn {
  min-width: 64px;
}
.quote-panel-left .mini-btn {
  min-height: 26px;
  padding: 3px 8px;
}
.mini-btn {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344563;
  font-size: 12px;
  font-weight: 700;
}
.mini-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.mini-btn.emphasis {
  min-width: 84px;
  font-size: 13px;
}
.mini-btn.danger { background: #fff0f0; color: var(--danger); border-color: #ffc9c9; }
.mini-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.mini-btn.reserved {
  background: #f8fafc;
  color: var(--muted);
  border-style: dashed;
}
.quote-search {
  padding: 6px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
}
.quote-search input { height: 30px; font-size: 12px; }
.quote-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px;
}
.tree-empty { color: var(--muted); padding: 12px; font-size: 13px; }
.tree-category, .tree-brand, .tree-name { margin-bottom: 4px; }
.tree-category.collapsed > .tree-brand,
.tree-brand.collapsed > .tree-name,
.tree-name.collapsed > .tree-items { display: none; }
.tree-toggle {
  width: 100%;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 5px;
  padding: 3px 7px;
  background: #f4f6f8;
  color: #253858;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}
.tree-caret { width: 14px; flex: 0 0 auto; color: #6b778c; }
.tree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-brand .tree-toggle { margin-left: 6px; background: #fff; border: 1px solid var(--line-soft); }
.tree-name .tree-toggle { margin-left: 12px; background: #fbfcfe; border: 1px solid var(--line-soft); font-weight: 700; }
.tree-items {
  display: grid;
  gap: 0;
  margin: 2px 0 4px 16px;
  padding-left: 8px;
  border-left: 1px solid #e6edf6;
}
.tree-spec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  padding: 5px 6px 5px 8px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.tree-spec-item:first-child { border-top: 1px solid #edf2f7; }
.tree-spec-item:hover { background: #f7fbff; }
.tree-spec-item > div:first-child {
  grid-row: 1 / span 2;
  min-width: 0;
}
.tree-spec-model {
  color: #172b4d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.tree-spec-tech {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-spec-prices { display: flex; flex-direction: column; align-items: flex-end; gap: 0; white-space: nowrap; }
.tree-spec-price { color: var(--success); font-weight: 900; font-size: 12px; line-height: 1.2; }
.tree-spec-cost { color: #b45309; font-size: 10px; line-height: 1.2; opacity: .82; }
.tree-spec-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.tree-spec-btn {
  min-width: 22px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #44546f;
  font-size: 11px;
  opacity: .68;
}
.tree-spec-item:hover .tree-spec-btn,
.tree-spec-btn:focus { opacity: 1; }
.quote-form-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
  transition: max-height .16s ease, border-color .16s ease;
}
.quote-form-head {
  position: relative;
  z-index: 20;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.quote-form-head h2 { margin: 0; font-size: 15px; white-space: nowrap; }
.quote-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}
.quote-action-group {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e6edf6;
  border-radius: 7px;
  background: #fff;
}
.quote-action-group.danger-zone { margin-left: 2px; }
.quote-form-head .quote-action-group {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}
.quote-form-head .mini-btn {
  min-height: 26px;
  padding: 3px 7px;
}
.quote-form-head .mini-btn.emphasis {
  min-height: 28px;
  padding-inline: 11px;
}
.quote-form {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .95fr);
  gap: 8px 10px;
  padding: 8px 12px 10px;
}
.quote-form label { min-width: 0; }
.quote-form .wide-field { grid-column: span 2; }
.quote-form .quote-name { grid-column: span 4; }
.quote-form label span { margin-bottom: 5px; font-size: 12px; }
.quote-form input,
.quote-form select { height: 36px; }
.quote-table-wrap {
  min-height: 82px;
  max-width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
  scrollbar-width: auto;
  scrollbar-color: #8b98aa #eef2f7;
}
.quote-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.quote-table-wrap::-webkit-scrollbar-track {
  background: #eef2f7;
}
.quote-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f7;
  border-radius: 999px;
  background: #8b98aa;
}
.quote-horizontal-scroll {
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f8fafc;
  scrollbar-width: auto;
  scrollbar-color: #8b98aa #eef2f7;
}
.quote-horizontal-scroll > div {
  height: 1px;
}
.quote-horizontal-scroll::-webkit-scrollbar {
  height: 12px;
}
.quote-horizontal-scroll::-webkit-scrollbar-track {
  background: #eef2f7;
}
.quote-horizontal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f7;
  border-radius: 999px;
  background: #8b98aa;
}
.quote-table-shell {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.quote-detail-table-wrap {
  flex: 0 0 auto;
  width: 100%;
  min-height: clamp(300px, 48vh, 620px);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      #fff 0,
      #fff 33px,
      #edf1f6 33px,
      #edf1f6 34px
    );
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1240px;
  background: #fff;
  font-size: 13px;
}
.quote-detail-table-wrap .quote-table {
  width: 100%;
  min-width: 1220px;
  table-layout: fixed;
}
.quote-detail-table-wrap col.quote-col-index { width: 58px; }
.quote-detail-table-wrap col.quote-col-brand { width: 104px; }
.quote-detail-table-wrap col.quote-col-name { width: 118px; }
.quote-detail-table-wrap col.quote-col-model { width: 190px; }
.quote-detail-table-wrap col.quote-col-tech { width: 210px; }
.quote-detail-table-wrap col.quote-col-price { width: 132px; }
.quote-detail-table-wrap col.quote-col-qty { width: 132px; }
.quote-detail-table-wrap col.quote-col-subtotal { width: 122px; }
.quote-detail-table-wrap col.quote-col-profit { width: 92px; }
.quote-detail-table-wrap col.quote-col-actions { width: 62px; }
.quote-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 32px;
  padding: 5px 8px;
  border-bottom: 1px solid #cfd8e3;
  background: var(--table-head);
  color: var(--table-head-text);
  text-align: left;
  white-space: nowrap;
}
.quote-table th.sortable-th {
  padding: 0;
}
.quote-table th.sortable-th button {
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.quote-table th.sortable-th button:hover {
  background: rgba(12, 102, 228, .08);
}
.quote-table th.sortable-th i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #6b788a;
}
.quote-table th.sortable-th.active button {
  color: var(--primary);
}
.quote-table th.sortable-th.active i {
  color: var(--primary);
}
.quote-detail-table-wrap .quote-table th {
  padding: 6px;
  text-align: center;
}
.quote-table td {
  height: 32px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #253858;
  vertical-align: middle;
}
.quote-detail-table-wrap .quote-table td:first-child,
.quote-detail-table-wrap .quote-table td:nth-child(6),
.quote-detail-table-wrap .quote-table td:nth-child(7),
.quote-detail-table-wrap .quote-table td:nth-child(9),
.quote-detail-table-wrap .quote-table td:last-child {
  text-align: center;
}
.quote-detail-table-wrap .quote-table td:nth-child(8) {
  text-align: right;
}
.quote-table tr:hover td { background: #f6f9fc; }
.quote-table tr.selected td { background: var(--primary-soft); }
.quote-table tr.low-profit td { background: #fff7ed; }
.quote-table tr.row-danger td {
  background: #fff5f5;
  border-bottom-color: #ffd7d7;
}
.quote-table tr.row-danger td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.quote-table tr.row-warn td {
  background: #fffaf0;
  border-bottom-color: #ffe2ad;
}
.quote-table tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.quote-table tr.dragging td { opacity: .48; background: #eef3f8; }
.quote-table tr.drag-over td {
  background: #e9f2ff;
  box-shadow: inset 0 2px 0 var(--primary);
}
.quote-table th:first-child,
.quote-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 58px;
  min-width: 58px;
}
.quote-table td:first-child { background: #fff; }
.quote-table th:first-child {
  z-index: 5;
  background: var(--table-head);
}
.quote-table th:nth-child(4),
.quote-table td:nth-child(4) {
  position: sticky;
  left: 58px;
  z-index: 2;
  min-width: 150px;
  box-shadow: 6px 0 10px rgba(16, 24, 40, .06);
}
.quote-table td:nth-child(4) {
  background: #fff;
  color: #0f172a;
}
.quote-table th:nth-child(4) {
  z-index: 5;
  background: var(--table-head);
}
.quote-table th:nth-child(6),
.quote-table td:nth-child(6) {
  min-width: 132px;
}
.quote-table th:nth-child(7),
.quote-table td:nth-child(7) {
  min-width: 132px;
}
.quote-table th:nth-child(8),
.quote-table td:nth-child(8) {
  min-width: 122px;
}
.quote-table th:nth-child(9),
.quote-table td:nth-child(9) {
  min-width: 92px;
}
.quote-table th:last-child,
.quote-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 68px;
  min-width: 68px;
  box-shadow: -6px 0 10px rgba(16, 24, 40, .06);
}
.quote-table td:last-child { background: #fff; }
.quote-table th:last-child {
  z-index: 5;
  background: var(--table-head);
}
.quote-table tr:hover td:first-child,
.quote-table tr:hover td:nth-child(4),
.quote-table tr:hover td:last-child { background: #f7fbff; }
.quote-table tr.selected td:first-child,
.quote-table tr.selected td:nth-child(4),
.quote-table tr.selected td:last-child { background: #e9f2ff; }
.quote-table tr.low-profit td:first-child,
.quote-table tr.low-profit td:nth-child(4),
.quote-table tr.low-profit td:last-child { background: #fff7ed; }
.quote-table tr.row-danger td:first-child,
.quote-table tr.row-danger td:nth-child(4),
.quote-table tr.row-danger td:last-child { background: #fff5f5; }
.quote-table tr.row-warn td:first-child,
.quote-table tr.row-warn td:nth-child(4),
.quote-table tr.row-warn td:last-child { background: #fffaf0; }
.quote-line-profit-cell {
  text-align: center;
  white-space: nowrap;
}
.quote-line-profit-cell .muted {
  color: var(--muted);
  font-size: 12px;
}
.quote-contract-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}
.quote-contract-cell strong {
  color: #172b4d;
  font-weight: 900;
}
.quote-contract-cell span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.quote-contract-cell em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.quote-profit-rate-pill {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #cfe0f6;
  background: #f8fbff;
  color: #0f3f86;
  font-size: 12px;
  font-weight: 900;
}
.quote-profit-rate-pill.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}
.quote-profit-rate-pill.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}
.quote-profit-rate-pill.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318;
}
.quote-note-row td { background: #f8fafc; color: #44546f; }
.quote-empty-row td {
  color: #172b4d;
  opacity: 1;
}
.quote-drag-handle {
  width: 18px;
  height: 22px;
  margin-right: 5px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7a869a;
  cursor: grab;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}
.quote-drag-handle:hover {
  background: #eef3f8;
  color: var(--primary);
}
.quote-drag-handle:active { cursor: grabbing; }
.quote-editable-cell {
  max-width: 240px;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-editable-cell.important,
.quote-model-cell {
  color: #172b4d !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: inherit;
}
.quote-editable-cell:hover {
  outline: 1px dashed #b7c7dc;
  outline-offset: -3px;
  background: #fbfdff;
}
.quote-editable-cell.editing {
  padding: 3px;
  outline: 2px solid rgba(12,102,228,.22);
  background: #fff !important;
}
.quote-cell-input {
  height: 28px;
  min-width: 160px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
}
.quote-empty-search-cell {
  color: #44546f !important;
  cursor: text;
  font-weight: 700;
  padding: 5px 8px !important;
}
.quote-empty-search-cell:hover {
  background: #fbfdff !important;
  color: var(--primary) !important;
}
.quote-empty-search-cell.editing { padding: 3px; background: #fff !important; opacity: 1; }
.quote-empty-search-cell .quote-cell-input { width: min(560px, 100%); }
.quote-empty-entry {
  display: inline;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #44546f;
  font-size: 12px;
  font-weight: 700;
}
.quote-empty-search-cell strong {
  color: #44546f;
  font-size: 12px;
  font-weight: 800;
}
.quote-empty-search-cell em {
  margin-left: 8px;
  color: #6b778c;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.quote-num {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  background: #fff;
}
.quote-num button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: #eef3f8;
  color: #253858;
  font-weight: 900;
}
.quote-num input {
  height: 24px;
  width: 66px;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-size: 12px;
}
.quote-num.qty input { width: 48px; }
.quote-num.qty {
  border-color: #b6c7da;
  background: #fbfdff;
}
.quote-num.qty input {
  width: 68px;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}
.quote-num.qty button {
  background: #e7f0fb;
  color: var(--primary);
}
.quote-subtotal { text-align: right; font-weight: 900; color: var(--primary); white-space: nowrap; }
.danger-text { color: var(--danger) !important; font-weight: 900; }
.profit-rate {
  display: inline-flex;
  justify-content: center;
  min-width: 54px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7f6ef;
  color: var(--success);
  font-weight: 900;
}
.profit-rate.low-profit { background: #fff0f0; color: var(--danger); }
.row-actions {
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.remove-btn,
.quote-row-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.remove-btn,
.quote-row-icon.danger {
  background: #fff0f0;
  color: var(--danger);
  font-size: 18px;
}
.quote-row-icon.add {
  background: #e8f1fb;
  color: #164e77;
}
.quote-row-icon.note {
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
}
.quote-row-icon:not(.danger):not(.add):not(.note) {
  background: #f1f5f9;
  color: #44546f;
  font-size: 12px;
}
.quote-row-icon:hover,
.remove-btn:hover {
  filter: brightness(.96);
}
.quote-empty-actions {
  min-width: 94px;
  background: #fff !important;
}
.quote-footer {
  display: block;
  flex: 0 0 auto;
}
.quote-bottom-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}
.quote-footer-head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.quote-footer-head strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
}
.quote-footer-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.quote-footer.collapsed .quote-bottom-card {
  padding: 6px 10px;
}
.quote-footer.collapsed .quote-bottom-main {
  display: none;
}
.quote-bottom-main {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.quote-bottom-main {
  display: grid;
  gap: 9px;
  width: 100%;
}
.quote-bottom-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf2f7;
}
.quote-bottom-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.quote-bottom-row h3 {
  margin: 7px 0 0;
  color: #172b4d;
  font-size: 13px;
  white-space: nowrap;
}
.quote-fee-grid,
.quote-cost-grid,
.quote-delivery-grid {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.quote-fee-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.quote-cost-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.quote-internal-cost-details {
  padding: 7px 10px;
  border: 1px dashed #d8dee8;
  border-radius: 7px;
  background: #fbfcfe;
}
.quote-internal-cost-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #344563;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}
.quote-internal-cost-details summary::-webkit-details-marker {
  display: none;
}
.quote-internal-cost-details summary::before {
  content: ">";
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #eef3f8;
  color: #44546f;
  font-size: 11px;
}
.quote-internal-cost-details[open] summary::before {
  transform: rotate(90deg);
}
.quote-internal-cost-details summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.quote-internal-cost-details .quote-cost-grid {
  margin-top: 8px;
}
.quote-delivery-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
}
.quote-fee-grid label,
.quote-cost-grid label,
.quote-delivery-grid label,
.quote-remarks-row label {
  min-width: 0;
}
.quote-fee-grid label span,
.quote-cost-grid label span,
.quote-delivery-grid label span,
.quote-remarks-row label span {
  margin-bottom: 4px;
  font-size: 12px;
}
.quote-fee-grid input,
.quote-cost-grid input {
  height: 34px;
}
.quote-remarks-row .quote-combo-field > span {
  display: none;
}
.quote-remarks-row .quote-combo textarea {
  min-height: 228px;
}
.quote-combo-field { display: block; }
.quote-combo {
  position: relative;
  min-width: 0;
}
.quote-combo:focus-within {
  z-index: 130;
}
.quote-combo input,
.quote-combo textarea {
  padding-right: 40px;
}
.quote-combo textarea {
  min-height: 86px;
  line-height: 1.45;
  resize: vertical;
}

.quote-remarks-row #quoteRemarks {
  min-height: 258px;
  overflow-y: hidden;
}
.quote-combo-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-radius: 0 5px 5px 0;
  background: #fbfcfe;
  color: #44546f;
}
.quote-combo-btn:hover { background: #eef3f8; color: var(--primary); }
.quote-combo-btn svg { width: 15px; height: 15px; }
.quote-combo-menu {
  position: absolute;
  z-index: 140;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #b8c4d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 43, 77, .22);
}
.quote-combo-option {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #172b4d;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.quote-combo-option + .quote-combo-option {
  margin-top: 2px;
}
.quote-combo-option:hover,
.quote-combo-option:focus {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}
.quote-combo-empty {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cost-grid label span { font-size: 12px; }
.right-card { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.right-card h3 { margin: 0 0 10px; font-size: 14px; }
.right-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.quote-side-summary {
  display: grid;
  gap: 10px;
}
.quote-side-total {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.quote-side-total span {
  display: block;
  color: #172b4d;
  font-size: 12px;
  font-weight: 900;
}
.quote-side-total strong {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 24px;
}
.quote-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quote-side-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}
.quote-side-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.quote-side-grid strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.quote-side-grid .quote-profit-cell,
.quote-side-grid .quote-profit-rate-cell {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.quote-side-grid .quote-profit-cell strong,
.quote-side-grid .quote-profit-rate-cell strong {
  color: var(--success);
  font-size: 15px;
  font-weight: 900;
}
.quote-side-grid .quote-profit-cell.danger,
.quote-side-grid .quote-profit-rate-cell.danger {
  border-color: #fecaca;
  background: #fff5f5;
}
.quote-side-grid .quote-profit-cell.danger strong,
.quote-side-grid .quote-profit-rate-cell.danger strong {
  color: var(--danger);
}
.quote-side-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.quote-side-actions > .mini-btn,
.quote-side-actions .quote-action-dropdown > summary {
  width: 100%;
  justify-content: center;
  padding-inline: 6px;
}
.quote-action-dropdown {
  position: relative;
  display: inline-flex;
  min-width: 0;
}
.quote-action-dropdown > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.quote-action-dropdown > summary::-webkit-details-marker {
  display: none;
}
.quote-action-dropdown[open] > summary {
  border-color: var(--primary);
  color: var(--primary);
}
.quote-action-menu {
  position: absolute;
  z-index: 180;
  top: calc(100% + 4px);
  left: 0;
  min-width: 116px;
  padding: 4px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 43, 77, .16);
}
.quote-action-menu-right {
  left: auto;
  right: 0;
}
.quote-action-menu button {
  width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #172b4d;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.quote-action-menu button:hover,
.quote-action-menu button:focus {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}
.quote-action-menu button.danger {
  color: var(--danger);
}
.quote-action-menu button.danger:hover,
.quote-action-menu button.danger:focus {
  background: #fff0f0;
  color: var(--danger);
}
.row-action-dropdown {
  position: relative;
  display: inline-flex;
  min-width: 0;
}
.row-action-dropdown > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.row-action-dropdown > summary::-webkit-details-marker {
  display: none;
}
.row-action-dropdown[open] > summary {
  border-color: var(--primary);
  color: var(--primary);
}
.row-action-menu {
  position: absolute;
  z-index: 220;
  top: calc(100% + 4px);
  right: 0;
  min-width: 132px;
  padding: 4px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 43, 77, .16);
}
.row-action-menu button {
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #172b4d;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}
.row-action-menu button:hover,
.row-action-menu button:focus {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}
.row-action-menu button.danger {
  color: var(--danger);
}
.row-action-menu button.danger:hover,
.row-action-menu button.danger:focus {
  background: #fff0f0;
  color: var(--danger);
}
.row-action-menu button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.supplier-import-panel {
  display: grid;
  gap: 12px;
}
.supplier-import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.supplier-import-summary span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
}
.supplier-import-summary strong {
  display: block;
  margin-top: 3px;
  color: #172b4d;
  font-size: 14px;
}
.supplier-sync-row {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}
.supplier-import-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.supplier-price-update-panel {
  min-height: 0;
}

.supplier-price-update-preview {
  max-height: min(52vh, 520px);
  overflow: auto;
}

.supplier-price-update-preview .quote-table th,
.supplier-price-update-preview .quote-table td {
  white-space: normal;
}
.supplier-import-table {
  min-width: 920px;
}
.data-check-panel {
  display: grid;
  gap: 10px;
}
.quote-price-sync-panel {
  display: grid;
  gap: 10px;
}
.quote-price-sync-wrap {
  max-height: calc(100vh - 260px);
}
.quote-price-sync-table {
  min-width: 1180px;
  table-layout: fixed;
}
.quote-price-sync-table th,
.quote-price-sync-table td {
  height: 34px;
  white-space: nowrap;
}
.quote-price-sync-table th:first-child,
.quote-price-sync-table td:first-child,
.quote-price-sync-table th:nth-child(3),
.quote-price-sync-table td:nth-child(3),
.quote-price-sync-table th:last-child,
.quote-price-sync-table td:last-child {
  position: static;
  left: auto;
  right: auto;
  min-width: 0;
  width: auto;
  box-shadow: none;
}
.quote-price-sync-table th:first-child,
.quote-price-sync-table td:first-child { width: 44px; text-align: center; }
.quote-price-sync-table th:nth-child(2),
.quote-price-sync-table td:nth-child(2) { width: 52px; text-align: center; }
.quote-price-sync-table th:nth-child(3),
.quote-price-sync-table td:nth-child(3) { width: 190px; }
.quote-price-sync-table th:nth-child(4),
.quote-price-sync-table td:nth-child(4) { width: 210px; }
.quote-price-sync-table th:nth-child(n+5),
.quote-price-sync-table td:nth-child(n+5) { width: 112px; }
.quote-price-sync-table .price-sync-model,
.quote-price-sync-table .price-sync-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-price-sync-table .price-sync-model {
  color: #172b4d;
  font-weight: 900;
}
.quote-price-sync-table .price-sync-name {
  color: var(--muted);
  font-size: 12px;
}
.quote-price-sync-table .price-sync-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.quote-price-sync-table .price-sync-money.strong {
  color: #172b4d;
  font-weight: 900;
}
.data-check-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: #44546f;
  font-size: 13px;
}
.data-check-line span {
  white-space: nowrap;
}
.data-check-line strong {
  margin-left: 3px;
  color: #172b4d;
  font-size: 13px;
}
.data-check-risk {
  display: grid;
  gap: 8px;
}
.data-check-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #172b4d;
  font-size: 13px;
}
.data-check-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.data-check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quote-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 156px;
  padding: 5px;
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(23, 43, 77, .18);
}
.quote-context-menu button {
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #253858;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.quote-context-menu button:hover { background: #f1f5fb; }
.quote-context-menu button.primary { color: var(--primary); }
.quote-context-menu button.danger { color: var(--danger); }
.quote-fuzzy-menu {
  position: fixed;
  z-index: 1300;
  max-height: 236px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #c7d3e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 43, 77, .20);
}
.quote-fuzzy-head {
  display: grid;
  grid-template-columns: minmax(128px, .9fr) minmax(150px, 1fr) minmax(190px, 1.25fr);
  gap: 6px 10px;
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.quote-fuzzy-menu button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(128px, .9fr) minmax(150px, 1fr) minmax(190px, 1.25fr);
  gap: 4px 10px;
  align-items: center;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #253858;
  text-align: left;
}
.quote-fuzzy-menu button:hover,
.quote-fuzzy-menu button:focus,
.quote-fuzzy-menu button.active {
  background: var(--primary-soft);
  outline: none;
}
.quote-fuzzy-menu strong {
  min-width: 0;
  color: #172b4d;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-fuzzy-menu span {
  min-width: 0;
  color: #44546f;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-fuzzy-menu .quote-fuzzy-tech {
  color: #172b4d;
  font-size: 12px;
}
.quote-fuzzy-menu em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.quote-fuzzy-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.quote-risk-banner {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 7;
  max-width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 9px;
  align-items: start;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #fed7aa;
  border-left: 3px solid var(--orange);
  border-radius: 7px;
  background: #fff7ed;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.quote-risk-banner.danger {
  border-color: #fecaca;
  border-left-color: var(--danger);
  background: #fffafa;
}
.quote-risk-banner-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.quote-risk-banner-head strong {
  color: #172b4d;
  font-size: 12px;
  line-height: 1.25;
}
.quote-risk-banner-head span {
  width: max-content;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 139, 0, .14);
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}
.quote-risk-banner.danger .quote-risk-banner-head span {
  background: #fff0f0;
  color: var(--danger);
}
.quote-risk-banner .quote-risk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.quote-risk-banner .quote-risk-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  max-width: 250px;
  padding: 4px 7px;
  border-left-width: 2px;
  border-radius: 6px;
}
.quote-risk-banner .quote-risk-item strong {
  white-space: nowrap;
}
.quote-risk-banner .quote-risk-item span {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-risk-banner .quote-risk-more {
  padding: 4px 7px;
  border-style: solid;
  background: #fff;
  white-space: nowrap;
  color: #44546f;
  cursor: pointer;
}
.quote-risk-list {
  display: grid;
  gap: 7px;
}
.quote-risk-item {
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  background: #fff;
}
.quote-risk-item.danger { border-left-color: var(--danger); background: #fffafa; }
.quote-risk-item.warn { border-left-color: var(--orange); background: #fffaf3; }
.quote-risk-item strong {
  display: block;
  color: #172b4d;
  font-size: 12px;
}
.quote-risk-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.quote-risk-empty,
.quote-risk-more {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.detail-list { display: grid; gap: 8px; }
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; color: #172b4d; }
.quote-panel-right .detail-list strong {
  max-width: 138px;
  overflow-wrap: anywhere;
}
.template-list { display: grid; gap: 8px; }
.template-item {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fbfcfe;
}
.template-item strong { display: block; font-size: 13px; }
.template-item span { display: block; margin: 3px 0 8px; color: var(--muted); font-size: 12px; }
.template-actions { display: flex; gap: 6px; }
.template-page {
  display: grid;
  gap: 12px;
}
.template-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}
.template-metric-grid .metric-card {
  min-height: 58px;
  box-shadow: none;
}
.template-metric-grid .metric-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}
.template-page-panel .panel-body {
  padding: 12px;
}
.template-page .template-manager-list {
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding-right: 2px;
}
.record-toolbar,
.record-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.compact-toolbar {
  margin: 10px 0 12px;
  align-items: stretch;
}
.compact-toolbar input,
.compact-toolbar select {
  width: auto;
  min-width: 150px;
  height: 34px;
}
.compact-toolbar input[type="search"] {
  min-width: 260px;
  flex: 1 1 260px;
}
.record-table-wrap { min-height: 0; }
.record-table {
  min-width: 1620px;
  table-layout: fixed;
}
.record-table th,
.record-table td {
  height: auto;
  min-height: 42px;
  white-space: nowrap;
}
.record-table th:first-child,
.record-table td:first-child,
.record-table th:nth-child(4),
.record-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}
.record-table th:first-child,
.record-table td:first-child { width: 170px; min-width: 170px; }
.record-table th:nth-child(2),
.record-table td:nth-child(2) { width: 220px; min-width: 220px; }
.record-table th:nth-child(3),
.record-table td:nth-child(3) { width: 280px; min-width: 280px; }
.record-table th:nth-child(4),
.record-table td:nth-child(4) { width: 210px; min-width: 210px; }
.record-table th:nth-child(5),
.record-table td:nth-child(5) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}
.record-table th:nth-child(6),
.record-table td:nth-child(6) {
  width: 130px;
  min-width: 130px;
  text-align: right;
}
.record-table th:nth-child(7),
.record-table td:nth-child(7) { width: 150px; min-width: 150px; }
.record-table th:nth-child(8),
.record-table td:nth-child(8) { width: 170px; min-width: 170px; }
.record-table th:last-child,
.record-table td:last-child {
  width: 330px;
  min-width: 330px;
}
.record-table td:nth-child(2),
.record-table td:nth-child(3) {
  white-space: normal;
  line-height: 1.35;
}
.record-table .record-actions {
  min-width: 314px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.project-package-table {
  min-width: 1500px;
}
.project-package-table th:nth-child(4),
.project-package-table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}
.project-package-table th:nth-child(5),
.project-package-table td:nth-child(5) {
  width: 330px;
  min-width: 330px;
  text-align: left;
}
.project-package-table th:nth-child(6),
.project-package-table td:nth-child(6) {
  width: 260px;
  min-width: 260px;
  text-align: left;
}
.project-package-score {
  display: grid;
  justify-items: center;
  gap: 1px;
}
.project-package-score strong {
  color: var(--primary);
  font-size: 16px;
}
.project-package-score span {
  color: var(--muted);
  font-size: 11px;
}
.project-package-pill-row,
.project-package-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.project-package-issue-list span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff7e6;
  color: #a15c00;
  font-size: 11px;
  font-weight: 800;
}
.project-lifecycle-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.project-lifecycle-step {
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
}
.project-lifecycle-step strong {
  display: block;
  color: #172b4d;
  font-size: 12px;
  margin-bottom: 4px;
}
.project-lifecycle-step span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.project-lifecycle-step.ok { border-color: #bfe7d0; background: #f2fbf6; }
.project-lifecycle-step.info { border-color: #c8ddff; background: #f3f7ff; }
.project-lifecycle-step.warn { border-color: #ffe0a3; background: #fffaf0; }
.project-lifecycle-step.danger { border-color: #ffc9c9; background: #fff5f5; }
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.audit-detail-row .project-lifecycle-strip {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}
.project-package-overview-wrap {
  max-height: 360px;
}
.project-package-overview-table {
  min-width: 860px;
}
.project-package-overview-table th:first-child,
.project-package-overview-table td:first-child {
  width: 130px;
  min-width: 130px;
}
.project-package-overview-table th:nth-child(2),
.project-package-overview-table td:nth-child(2) {
  width: 130px;
  min-width: 130px;
  text-align: center;
}
.project-package-overview-table th:nth-child(3),
.project-package-overview-table td:nth-child(3) {
  width: auto;
  min-width: 360px;
  white-space: normal;
}
.project-package-overview-table th:last-child,
.project-package-overview-table td:last-child {
  width: 120px;
  min-width: 120px;
}
.project-finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.quote-record-detail {
  display: grid;
  gap: 12px;
}
.quote-record-detail .detail-list strong {
  max-width: 520px;
  overflow-wrap: anywhere;
}
.quote-record-fees {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
}
.quote-record-fees strong {
  color: #172b4d;
  font-size: 13px;
}
.quote-record-fees div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.quote-record-fees span {
  padding: 5px 8px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  background: #fff;
  color: #344563;
  font-size: 12px;
  font-weight: 800;
}
.quote-record-fees span.grand {
  border-color: #b6d4ff;
  background: var(--primary-soft);
  color: var(--primary);
}
.record-detail-table-wrap {
  max-height: 360px;
}
.quote-record-detail-table {
  min-width: 980px;
  table-layout: fixed;
}
.quote-record-detail-table th:nth-child(1),
.quote-record-detail-table td:nth-child(1) { width: 58px; text-align: center; }
.quote-record-detail-table th:nth-child(2),
.quote-record-detail-table td:nth-child(2) { width: 110px; }
.quote-record-detail-table th:nth-child(3),
.quote-record-detail-table td:nth-child(3) { width: 140px; }
.quote-record-detail-table th:nth-child(4),
.quote-record-detail-table td:nth-child(4) { width: 190px; }
.quote-record-detail-table th:nth-child(5),
.quote-record-detail-table td:nth-child(5) {
  width: 260px;
  white-space: normal;
  line-height: 1.35;
}
.quote-record-detail-table th:nth-child(6),
.quote-record-detail-table td:nth-child(6),
.quote-record-detail-table th:nth-child(8),
.quote-record-detail-table td:nth-child(8) {
  width: 120px;
  text-align: right;
}
.quote-record-detail-table th:nth-child(7),
.quote-record-detail-table td:nth-child(7) { width: 70px; text-align: center; }
.parts-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.parts-metric-grid .metric-card {
  min-height: 42px;
  gap: 1px 6px;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: none;
}
.parts-metric-grid .metric-card > svg {
  width: 14px;
  height: 14px;
}
.parts-metric-grid .metric-card span {
  font-size: 11px;
}
.parts-metric-grid .metric-card strong {
  font-size: 18px;
}
.parts-metric-grid .metric-card small {
  font-size: 10px;
}
.parts-table {
  width: auto;
  min-width: 1640px;
  table-layout: fixed;
}
.parts-table col.parts-col-index { width: 52px; }
.parts-table col.parts-col-select { width: 42px; }
.parts-table col.parts-col-category { width: 112px; }
.parts-table col.parts-col-brand { width: 122px; }
.parts-table col.parts-col-name { width: 148px; }
.parts-table col.parts-col-model { width: 180px; }
.parts-table col.parts-col-tech { width: 210px; }
.parts-table col.parts-col-price { width: 112px; }
.parts-table col.parts-col-cost { width: 112px; }
.parts-table col.parts-col-profit { width: 88px; }
.parts-table col.parts-col-quality { width: 138px; }
.parts-table col.parts-col-actions { width: 176px; }
.parts-table col.parts-col-updated { width: 186px; }
.parts-table th,
.parts-table td {
  height: 32px;
  padding: 4px 7px;
  border: 1px solid #d8dee8;
}
.parts-table th:nth-child(7),
.parts-table td:nth-child(7) {
  color: #42526e;
}
.part-empty-tech-cell {
  background: #fbfcfe;
}
.parts-manage-panel {
  min-width: 0;
  overflow: hidden;
}
.parts-manage-panel .panel-head {
  min-height: 38px;
  padding: 7px 12px;
}
.parts-manage-panel .panel-head h2 {
  font-size: 14px;
}
.parts-manage-panel .panel-head p {
  display: none;
}
.parts-manage-panel .record-table-wrap {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.parts-manage-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, .7fr)) minmax(128px, .7fr);
  gap: 6px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.parts-manage-toolbar input,
.parts-manage-toolbar select {
  height: 30px;
  font-size: 12px;
}
.parts-edit-toggle {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #172b4d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.parts-edit-toggle input {
  width: auto;
  height: auto;
  margin: 0;
}
.parts-table th:first-child,
.parts-table td:first-child {
  position: static;
  left: auto;
  z-index: auto;
  background: transparent;
}
.parts-table th:first-child {
  background: #344563;
}
.parts-table th:nth-child(4),
.parts-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}
.parts-table td:nth-child(4) {
  background: transparent;
  color: #253858;
}
.parts-table th:nth-child(4) {
  background: #344563;
}
.parts-table th:last-child,
.parts-table td:last-child {
  position: static;
  right: auto;
  z-index: auto;
  width: auto;
  box-shadow: none;
}
.parts-table th:last-child {
  background: #344563;
  color: #fff;
}
.parts-table td:last-child {
  background: transparent;
}
.part-table-input {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #253858;
  font-size: 12px;
  box-shadow: none;
}
.part-table-input:hover,
.part-table-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--primary);
  outline: none;
}
.part-table-input.pending {
  background: #fffaf0;
  color: #172b4d;
  font-weight: 800;
}
.part-table-input.pending:focus {
  background: #fff;
}
.part-edit-cell {
  position: relative;
  padding: 0 !important;
}
.part-text-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-price-cell {
  position: relative;
  padding: 0 !important;
}
.part-price-pending-row td {
  background: #fffdf5;
}
.part-price-view-wrap,
.part-price-edit-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 31px;
}
.part-price-view-wrap {
  padding: 0 5px 0 7px;
}
.part-price-view-wrap span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-price-edit-wrap .part-table-input {
  min-width: 0;
}
.part-price-pending-marker {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #f0b429;
  border-radius: 4px;
  background: #fff7db;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.part-table-input.important {
  color: #172b4d;
  font-weight: 800;
}
.part-text-important {
  color: #172b4d;
  font-weight: 800;
}
.part-table-actions {
  padding-inline: 4px !important;
  overflow: hidden;
}
.part-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  align-items: center;
  justify-content: start;
  gap: 4px;
  width: 100%;
}
.part-action-bar .mini-btn {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.part-action-placeholder {
  color: var(--muted);
  font-size: 12px;
}
.part-select-cell,
.parts-table th:nth-child(2) {
  padding: 0 !important;
  text-align: center;
}
.part-select-check {
  width: 15px;
  height: 15px;
  margin: 0;
  vertical-align: middle;
}
.part-updated-cell {
  color: #44546f;
  white-space: nowrap;
}
.part-profit-cell {
  text-align: center;
}
.profit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.profit-pill.ok {
  background: #e7f6ef;
  color: var(--success);
}
.profit-pill.warn {
  background: #fff7e6;
  color: #b46900;
}
.profit-pill.danger {
  background: #fff0f0;
  color: var(--danger);
}
.parts-profit-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px 7px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.parts-profit-label {
  color: #172b4d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.parts-profit-bar label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.parts-profit-bar label span,
.parts-profit-bar label em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.parts-profit-bar input {
  width: 58px;
  height: 22px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-size: 12px;
  text-align: right;
}
.parts-profit-tip {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.parts-horizontal-scroll {
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f8fafc;
  scrollbar-width: auto;
  scrollbar-color: #8b98aa #eef2f7;
}
.parts-horizontal-scroll > div {
  height: 1px;
}
.parts-horizontal-scroll::-webkit-scrollbar {
  height: 12px;
}
.parts-horizontal-scroll::-webkit-scrollbar-track {
  background: #eef2f7;
}
.parts-horizontal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f7;
  border-radius: 999px;
  background: #8b98aa;
}
.part-review-toolbar {
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(120px, .7fr));
}
.part-review-table {
  width: auto;
  min-width: 1460px;
  table-layout: fixed;
}
.part-review-table col.review-col-index { width: 52px; }
.part-review-table col.review-col-status { width: 86px; }
.part-review-table col.review-col-source { width: 180px; }
.part-review-table col.review-col-category { width: 120px; }
.part-review-table col.review-col-brand { width: 150px; }
.part-review-table col.review-col-model { width: 260px; }
.part-review-table col.review-col-price { width: 112px; }
.part-review-table col.review-col-cost { width: 112px; }
.part-review-table col.review-col-risk { width: 170px; }
.part-review-table col.review-col-actions { width: 220px; }
.part-review-table th,
.part-review-table td {
  height: 32px;
  padding: 4px 7px;
  border: 1px solid #d8dee8;
}
.part-review-table th:first-child,
.part-review-table td:first-child,
.part-review-table th:nth-child(4),
.part-review-table td:nth-child(4),
.part-review-table th:last-child,
.part-review-table td:last-child {
  position: static;
  left: auto;
  right: auto;
  width: auto;
  min-width: 0;
  z-index: auto;
  box-shadow: none;
}
.part-review-table th {
  background: #344563;
  color: #fff;
}
.part-review-table td:first-child,
.part-review-table td:nth-child(4),
.part-review-table td:last-child {
  background: transparent;
}
.part-review-row.rejected td { background: #fffafa; }
.part-review-row.approved td { background: #f7fcf9; }
.part-review-actions-cell {
  padding-inline: 4px !important;
}
.part-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}
.part-review-actions .mini-btn {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 11px;
  white-space: nowrap;
}
.part-review-import-panel {
  display: grid;
  gap: 10px;
}
.part-review-import-text {
  min-height: 260px;
  font-family: Consolas, "Microsoft YaHei", sans-serif;
  resize: vertical;
}
.part-price-change-panel {
  display: grid;
  gap: 10px;
}
.part-price-change-table {
  min-width: 1220px;
  table-layout: fixed;
}
.part-price-change-table col.price-change-col-model { width: 190px; }
.part-price-change-table col.price-change-col-name { width: 210px; }
.part-price-change-table col.price-change-col-field { width: 112px; }
.part-price-change-table col.price-change-col-value { width: 124px; }
.part-price-change-table col.price-change-col-next { width: 132px; }
.part-price-change-table col.price-change-col-delta { width: 112px; }
.part-price-change-table col.price-change-col-time { width: 180px; }
.part-price-change-table col.price-change-col-actions { width: 160px; }
.part-price-change-table th,
.part-price-change-table td {
  height: 36px;
  padding: 5px 8px;
  white-space: nowrap;
}
.part-price-change-model,
.part-price-change-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-price-change-model {
  color: #172b4d;
  font-weight: 900;
}
.part-price-change-name {
  color: var(--muted);
  font-size: 12px;
}
.part-price-change-table .price-change-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.part-price-change-table .price-change-money.strong {
  color: #172b4d;
  font-weight: 900;
}
.part-price-change-table th:nth-child(4),
.part-price-change-table th:nth-child(5),
.part-price-change-table th:nth-child(6) {
  text-align: right;
}
.part-price-change-table th:last-child,
.part-price-change-table td:last-child {
  position: static;
  right: auto;
  width: auto;
  min-width: 0;
  box-shadow: none;
}
.part-price-change-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.part-price-change-actions .mini-btn {
  min-width: 54px;
  padding-inline: 8px;
}
.record-toolbar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.ghost-btn.danger {
  color: var(--danger);
  border-color: #ffc9c9;
  background: #fffafa;
}
.customers-table {
  min-width: 1540px;
  table-layout: fixed;
}
.customers-table th,
.customers-table td {
  white-space: nowrap;
}
.customers-table th:first-child,
.customers-table td:first-child,
.customers-table th:nth-child(4),
.customers-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}
.customers-table th:first-child,
.customers-table td:first-child {
  width: 280px;
  min-width: 280px;
}
.customers-table th:nth-child(2),
.customers-table td:nth-child(2) {
  width: 110px;
  min-width: 110px;
  text-align: center;
}
.customers-table th:nth-child(3),
.customers-table td:nth-child(3) { width: 120px; min-width: 120px; }
.customers-table th:nth-child(4),
.customers-table td:nth-child(4) { width: 140px; min-width: 140px; }
.customers-table th:nth-child(5),
.customers-table td:nth-child(5),
.customers-table th:nth-child(6),
.customers-table td:nth-child(6) {
  width: 86px;
  min-width: 86px;
  text-align: center;
}
.customers-table th:nth-child(7),
.customers-table td:nth-child(7),
.customers-table th:nth-child(8),
.customers-table td:nth-child(8) { width: 108px; min-width: 108px; }
.customers-table th:nth-child(9),
.customers-table td:nth-child(9) { width: 130px; min-width: 130px; }
.customers-table th:nth-child(10),
.customers-table td:nth-child(10),
.customers-table th:nth-child(11),
.customers-table td:nth-child(11),
.customers-table th:nth-child(12),
.customers-table td:nth-child(12) {
  width: 128px;
  min-width: 128px;
  text-align: right;
}
.customers-table th:last-child,
.customers-table td:last-child {
  width: 170px;
  min-width: 170px;
}
.customers-table td:first-child,
.customers-table td:nth-child(8) {
  white-space: nowrap;
  line-height: 1.35;
}
.customers-table td:first-child {
  white-space: normal;
}
.part-trash-drawer {
  display: grid;
  gap: 12px;
}
.part-trash-table {
  min-width: 980px;
}
.part-trash-table th:first-child,
.part-trash-table td:first-child,
.part-trash-table th:nth-child(4),
.part-trash-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}
.part-trash-table th:first-child,
.part-trash-table td:first-child { min-width: 168px; }
.part-trash-table th:nth-child(5),
.part-trash-table td:nth-child(5) { min-width: 180px; }
.part-trash-table th:last-child,
.part-trash-table td:last-child {
  width: 92px;
  min-width: 92px;
}
.projects-table { min-width: 1360px; }
.compact-select {
  height: 28px;
  min-width: 92px;
  padding: 0 8px;
  font-size: 12px;
}
.part-issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.table-note {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 58px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #344563;
  font-size: 12px;
  font-weight: 900;
}
.status-pill.ok { background: #e7f6ef; color: var(--success); }
.status-pill.info { background: var(--primary-soft); color: var(--primary); }
.status-pill.warn { background: #fff7e6; color: #a15c00; }
.status-pill.danger { background: #fff0f0; color: var(--danger); }
.status-pill.draft { background: #f4f6f8; color: #44546f; }
.status-pill.vip {
  border: 1px solid #e5c56b;
  background: #fff7dd;
  color: #8a5a00;
}
.stability-panel { display: grid; gap: 10px; }
.stability-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  font-size: 12px;
}
.stability-stat span { color: var(--muted); }
.stability-stat strong { color: #172b4d; text-align: right; }
.stability-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.check-list { display: grid; gap: 8px; }
.check-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
  font-size: 13px;
}
.check-item strong {
  color: var(--success);
  font-size: 12px;
}
.check-item.warn strong { color: var(--warning); }
.check-item span { font-weight: 800; }
.check-item em { color: var(--muted); font-style: normal; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 30, 66, .34);
  backdrop-filter: blur(2px);
}
.drawer.center-drawer {
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.drawer-card {
  width: min(520px, 100%);
  height: auto;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(223, 230, 238, .9);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(23, 43, 77, .26);
  overflow: hidden;
  transform: translate(var(--drawer-x, 0), var(--drawer-y, 0));
  transition: box-shadow .16s ease, transform .04s linear;
}
.drawer-card.print-drawer { width: min(980px, 100%); }
.drawer-card.template-drawer { width: min(860px, 100%); }
.drawer-card.quality-drawer { width: min(980px, 100%); }
.drawer-card.customer-drawer { width: min(920px, 100%); }
.drawer-card.supplier-inquiry-drawer { width: min(1480px, 100%); }
.drawer-card.log-drawer { width: min(860px, 100%); }
.drawer-card.batch-drawer { width: min(920px, 100%); }
.drawer-card.contract-drawer { width: min(1160px, 100%); }
.drawer-card.trace-drawer { width: min(1180px, 100%); }
.drawer-card.dragging { box-shadow: 0 26px 68px rgba(23, 43, 77, .32); transition: none; }
.drawer-card.part-drawer { width: min(640px, 100%); }
.drawer-head,
.drawer-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.drawer-head { cursor: grab; user-select: none; }
.drawer-card.dragging .drawer-head { cursor: grabbing; }
.drawer-foot { border-top: 1px solid var(--line-soft); border-bottom: 0; justify-content: flex-end; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.drawer-body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.drawer-body .form-grid .wide { grid-column: 1 / -1; }
.trace-detail {
  display: grid;
  gap: 12px;
}
.trace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  background: #f6f9fc;
}
.trace-hero-main {
  min-width: 0;
}
.trace-kicker {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.trace-hero h3 {
  margin: 4px 0 0;
  color: #14233a;
  font-size: 22px;
  line-height: 1.25;
}
.trace-hero p {
  margin: 6px 0 0;
  color: #344563;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.trace-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.trace-hero-tags > span:not(.status-pill) {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: #44546f;
  font-size: 12px;
  font-weight: 800;
}
.trace-hero-action {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.trace-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.trace-metric-grid > div,
.trace-section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.trace-metric-grid > div {
  padding: 10px 12px;
}
.trace-metric-grid span,
.trace-metric-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.trace-metric-grid strong {
  display: block;
  margin-top: 5px;
  color: #172b4d;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.trace-metric-grid strong.trace-latest-metric {
  font-size: 13px;
  line-height: 1.35;
}
.trace-metric-grid em {
  margin-top: 4px;
}
.trace-section {
  padding: 12px;
}
.trace-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.trace-section-head h3 {
  margin: 0;
  color: #172b4d;
  font-size: 14px;
}
.trace-section-head p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
.trace-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 8px;
}
.trace-node {
  min-height: 108px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfcfe;
}
.trace-node.done {
  border-left-color: var(--success);
  background: #f7fcfa;
}
.trace-node.missing {
  border-left-color: #a8b3c2;
  background: #f7f9fb;
}
.trace-node-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}
.trace-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a8b3c2;
}
.trace-node.done .trace-node-dot { background: var(--success); }
.trace-node strong {
  color: #172b4d;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-node em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.trace-node p {
  min-height: 34px;
  margin: 8px 0 6px;
  color: #344563;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.trace-node span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.trace-center-panel {
  gap: 12px;
}
.trace-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}
.trace-center-tabs button {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label count"
    "desc desc";
  gap: 3px 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #f8fafc;
  color: #24364f;
  text-align: left;
  cursor: pointer;
}
.trace-center-tabs button.active {
  border-color: #8fb4c7;
  background: #eef6f9;
  box-shadow: inset 0 3px 0 var(--primary);
}
.trace-center-tabs button.primary-tab {
  min-width: 230px;
  border-color: #9fb6cc;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .07);
}
.trace-center-tabs button.primary-tab.active {
  border-color: #0c66e4;
  color: #fff;
  background: #0c66e4;
  box-shadow: 0 7px 18px rgba(12, 102, 228, .18);
}
.trace-center-tabs button.primary-tab.active span,
.trace-center-tabs button.primary-tab.active em,
.trace-center-tabs button.primary-tab.active strong {
  color: #fff;
}
.trace-center-tabs button.alert-tab strong {
  color: var(--danger);
}
.trace-center-tabs button.alert-tab.active {
  border-color: #f3a7a0;
  background: #fff4f2;
  box-shadow: inset 0 3px 0 var(--danger);
}
.trace-center-tabs button.trash-tab {
  margin-left: auto;
  border-color: #d7dfe8;
  background: #eef2f6;
}
.trace-center-tabs button.trash-tab.active {
  border-color: #aab7c5;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .06);
}
.trace-center-tabs span {
  grid-area: label;
  min-width: 0;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-center-tabs strong {
  grid-area: count;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trace-center-tabs em {
  grid-area: desc;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.trace-center-table {
  min-width: 1320px;
}
.trace-center-table th:first-child,
.trace-center-table td:first-child { width: 150px; min-width: 150px; }
.trace-center-table th:nth-child(2),
.trace-center-table td:nth-child(2) { width: 230px; min-width: 230px; }
.trace-center-table th:nth-child(3),
.trace-center-table td:nth-child(3) { width: 180px; min-width: 180px; }
.trace-center-table th:nth-child(4),
.trace-center-table td:nth-child(4),
.trace-center-table th:nth-child(5),
.trace-center-table td:nth-child(5) { width: 190px; min-width: 190px; }
.trace-center-table th:nth-child(6),
.trace-center-table td:nth-child(6) { width: 76px; min-width: 76px; text-align: center; }
.trace-center-table th:nth-child(7),
.trace-center-table td:nth-child(7) { width: 250px; min-width: 250px; }
.trace-center-table th:nth-child(8),
.trace-center-table td:nth-child(8) { width: 150px; min-width: 150px; }
.trace-center-table th:last-child,
.trace-center-table td:last-child { width: 150px; min-width: 150px; }
.trace-center-table td:nth-child(2),
.trace-center-table td:nth-child(3),
.trace-center-table td:nth-child(7) {
  white-space: normal;
}
.trace-row-exception td {
  background: #fffafa;
}
.trace-row-trash td {
  color: #758195;
  background: #f5f7fa;
}
.trace-category-cell {
  display: grid;
  gap: 4px;
  align-items: start;
}
.trace-category-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.trace-actions {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.trace-issue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.trace-issue {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
}
.trace-issue.danger { border-left-color: var(--danger); background: #fffafa; }
.trace-issue.warn { border-left-color: var(--orange); background: #fffaf3; }
.trace-issue.info { border-left-color: var(--primary); background: #f7fbff; }
.trace-issue.ok { border-left-color: var(--success); background: #f7fcfa; }
.trace-issue strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
}
.trace-issue span {
  display: block;
  margin-top: 4px;
  color: #44546f;
  font-size: 12px;
  line-height: 1.5;
}
.trace-split {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: start;
}
.trace-timeline {
  display: grid;
  gap: 0;
}
.trace-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 12px;
}
.trace-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #d8e1eb;
}
.trace-timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 1px #cfd8e3;
}
.trace-timeline-dot.ok { background: var(--success); }
.trace-timeline-dot.warn { background: var(--orange); }
.trace-timeline-dot.danger { background: var(--danger); }
.trace-timeline-dot.draft { background: #8b98aa; }
.trace-timeline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trace-timeline-title strong {
  min-width: 0;
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.trace-timeline-item p {
  margin: 4px 0 0;
  color: #344563;
  font-size: 12px;
  line-height: 1.4;
}
.trace-timeline-item span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.trace-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.trace-link-table-wrap {
  max-height: 360px;
}
.trace-link-table-wrap .status-pill {
  min-width: 0;
}
.ui-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 30, 66, .38);
  backdrop-filter: blur(2px);
}
.ui-dialog-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(223, 230, 238, .92);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(23, 43, 77, .28);
  overflow: hidden;
  transform: translate(var(--dialog-x, 0), var(--dialog-y, 0));
}
.ui-dialog-card.dragging { transition: none; }
.ui-dialog-head,
.ui-dialog-foot {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.ui-dialog-head {
  cursor: grab;
  user-select: none;
}
.ui-dialog-card.dragging .ui-dialog-head { cursor: grabbing; }
.ui-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.3;
}
.ui-dialog-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ui-dialog-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}
.ui-dialog-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}
.ui-dialog-body label {
  display: grid;
  gap: 6px;
}
.ui-dialog-body label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ui-dialog-body input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}
.ui-dialog-body input[readonly] {
  background: #f7f9fc;
  color: var(--text);
}
.ui-dialog-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}
.ui-dialog-card.danger .ui-dialog-head h2 { color: var(--danger); }
.attachment-preview-card {
  width: min(1040px, 100%);
  height: min(780px, calc(100vh - 48px));
}
.attachment-preview-body {
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f7fb;
}
.attachment-preview-body iframe,
.attachment-preview-body img {
  width: 100%;
  height: 100%;
  border: 0;
}
.attachment-preview-body img {
  object-fit: contain;
  padding: 12px;
}
.operation-log-panel,
.batch-quote-panel {
  display: grid;
  gap: 12px;
}
.operation-log-list,
.batch-match-list {
  display: grid;
  gap: 9px;
}
.operation-log-filter,
.draft-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px;
  gap: 8px;
}
.draft-filter-bar {
  grid-template-columns: minmax(180px, 1fr) 150px;
}
.operation-log-filter input,
.operation-log-filter select,
.draft-filter-bar input,
.draft-filter-bar select {
  height: 34px;
  font-size: 13px;
}
.operation-log-item,
.batch-match-row {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cfd7e3;
  border-radius: 8px;
  background: #fff;
}
.operation-log-item.warn,
.batch-match-row.warn { border-left-color: var(--orange); background: #fffaf3; }
.operation-log-item.info,
.batch-match-row.ok { border-left-color: var(--success); background: #f7fffb; }
.batch-match-row.danger { border-left-color: var(--danger); background: #fffafa; }
.operation-log-head,
.batch-match-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
  align-items: center;
}
.operation-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.operation-log-head strong,
.batch-match-source strong { color: #172b4d; font-size: 13px; }
.operation-log-head span,
.batch-match-source span,
.operation-log-meta,
.operation-log-diff,
.batch-no-match {
  color: var(--muted);
  font-size: 12px;
}
.operation-log-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.operation-log-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3f8;
}
.operation-log-diff {
  display: grid;
  gap: 4px;
  line-height: 1.5;
}
.operation-log-diff p { margin: 0; }
.batch-quote-panel textarea {
  min-height: 150px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
.batch-match-select select { height: 34px; font-size: 12px; }
.batch-no-match-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.template-manager {
  display: grid;
  gap: 12px;
}
.template-save-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.template-save-panel strong { display: block; font-size: 14px; }
.template-save-panel span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.template-save-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto;
  align-items: end;
  gap: 10px;
}
.template-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
}
.template-manager-list {
  display: grid;
  gap: 8px;
}
.template-manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}
.template-manager-item strong { display: block; font-size: 14px; }
.template-manager-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.template-manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.template-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.draft-box {
  display: grid;
  gap: 12px;
}
.draft-box-note {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.7;
}
.draft-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.draft-card strong { display: block; font-size: 15px; }
.draft-card span { color: var(--muted); font-size: 12px; }
.draft-list {
  display: grid;
  gap: 9px;
}
.saved-draft-card {
  border-left: 4px solid var(--primary);
}
.saved-draft-card .draft-actions {
  justify-content: flex-end;
}
.draft-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.draft-stats span {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fbfcfe;
}
.draft-stats strong {
  display: block;
  margin-top: 3px;
  color: #172b4d;
  font-size: 13px;
}
.draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.quality-drawer-body {
  display: grid;
  gap: 12px;
}
.quality-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quality-metric,
.quality-count {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.quality-metric span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.quality-metric strong {
  display: block;
  margin-top: 6px;
  color: #172b4d;
  font-size: 24px;
}
.quality-counts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.quality-count span { color: var(--muted); font-size: 12px; }
.quality-count strong { display: block; margin-top: 4px; font-size: 18px; }
.quality-count.danger strong { color: var(--danger); }
.quality-count.warn strong { color: var(--warning); }
.quality-list {
  display: grid;
  gap: 8px;
}
.quality-issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left-width: 4px;
  border-radius: 7px;
  background: #fff;
}
.quality-issue.danger { border-left-color: var(--danger); }
.quality-issue.warn { border-left-color: var(--warning); }
.quality-issue strong { display: block; font-size: 13px; }
.quality-issue span { display: block; margin-top: 3px; color: #253858; font-size: 12px; }
.quality-issue em { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-style: normal; }
.quality-empty,
.quality-more {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.customer-detail {
  display: grid;
  gap: 12px;
}
.customer-logo-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #eef4f8;
  color: #215f8f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.customer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}
.customer-logo-mark.has-logo {
  background: #fff;
}

.customer-logo-mark.is-empty {
  border-style: dashed;
  border-color: #9eb7cf;
  background: #f8fbff;
  color: #215f8f;
  box-shadow: none;
}

.customer-logo-mark.is-empty::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #215f8f;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.customer-logo-mark.is-empty[role="button"],
#customerLogoPreview.customer-logo-mark.is-empty {
  cursor: pointer;
}

.customer-logo-mark.is-empty[role="button"]:hover,
#customerLogoPreview.customer-logo-mark.is-empty:hover {
  border-color: #215f8f;
  background: #eaf3fb;
}

.customer-logo-table.is-empty::before {
  font-size: 18px;
}

.customer-logo-dialog.is-empty::before {
  font-size: 20px;
}

.customer-logo-large.is-empty::before {
  font-size: 34px;
}

.customer-logo-large {
  width: 74px;
  height: 74px;
  font-size: 20px;
}
.customer-logo-large img {
  padding: 7px;
}
.customer-logo-table {
  width: 32px;
  height: 32px;
}
.customer-logo-dialog {
  width: 42px;
  height: 42px;
}
.customer-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d4dee8;
  border-left: 5px solid #215f8f;
  border-radius: 8px;
  background: #f8fbfd;
}
.customer-brand-card.vip {
  border-color: #dfc36b;
  border-left-color: #b88900;
  background: linear-gradient(135deg, #fffaf0 0%, #f8fbfd 100%);
}
.customer-brand-main,
.customer-brand-title,
.customer-logo-actions,
.customer-table-name,
.customer-portal-dialog-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.customer-brand-main > div,
.customer-table-name > div,
.customer-portal-dialog-title > div {
  min-width: 0;
}
.customer-brand-title strong,
.customer-table-name strong {
  min-width: 0;
  color: #172b4d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-brand-title strong {
  display: block;
  font-size: 18px;
}
.customer-brand-main > div > span:not(.status-pill),
.customer-brand-main > div > em,
.customer-table-name span {
  display: block;
  margin-top: 4px;
  color: #536071;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-logo-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.customer-table-name {
  width: 100%;
}
.customer-table-name strong {
  display: block;
  font-size: 13px;
}
.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.customer-summary-card {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.customer-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.customer-summary-card strong {
  display: block;
  margin-top: 6px;
  color: #172b4d;
  font-size: 18px;
}
.customer-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-action-row-clean {
  justify-content: flex-start;
}
.customer-detail-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #eef4f8;
  gap: 3px;
}
.customer-detail-tabs button {
  min-width: 92px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #44546f;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.customer-detail-tabs button.active {
  background: #fff;
  color: #172b4d;
  box-shadow: 0 1px 3px rgba(23, 43, 77, .12);
}
.customer-detail-tab-panel {
  display: none;
  gap: 12px;
}
.customer-detail-tab-panel.active {
  display: grid;
}
.customer-summary-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.customer-summary-grid-compact .customer-summary-card strong {
  font-size: 15px;
}
.customer-detail-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.customer-detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.customer-detail-section-head strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 950;
}
.customer-detail-section-head span {
  color: var(--muted);
  font-size: 12px;
}
.customer-note-input {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}
.customer-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f1c7c7;
  border-radius: 8px;
  background: #fff8f8;
}
.customer-danger-zone strong {
  display: block;
  color: #7a1f1f;
  font-size: 14px;
  font-weight: 950;
}
.customer-danger-zone span {
  display: block;
  margin-top: 3px;
  color: #7a4b4b;
  font-size: 12px;
}
.customer-workbench-panel,
.customer-workbench {
  display: grid;
  gap: 12px;
}
.customer-workbench {
  padding: 12px;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: #f8fbfd;
}
.customer-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.customer-workbench-head h3 {
  margin: 0;
  color: #172b4d;
  font-size: 15px;
}
.customer-workbench-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.customer-workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.customer-workbench-metrics div {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.customer-workbench-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.customer-workbench-metrics strong {
  display: block;
  margin-top: 5px;
  color: #172b4d;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.customer-workbench-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.customer-workbench-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 12px;
  align-items: start;
}
.customer-workbench-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.customer-workbench-traces {
  display: grid;
  gap: 8px;
}
.customer-workbench-traces button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
  cursor: pointer;
}
.customer-workbench-traces button:hover {
  background: #eef6ff;
}
.customer-workbench-traces strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
}
.customer-workbench-traces span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.customer-records {
  display: grid;
  gap: 8px;
}
.customer-records h3 {
  margin: 0;
  font-size: 14px;
}
.customer-records-fold {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.customer-records-fold summary {
  cursor: pointer;
  color: #172b4d;
  font-size: 14px;
  font-weight: 950;
}
.customer-records-fold summary strong {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}
.customer-records-fold[open] summary {
  margin-bottom: 8px;
}
.customer-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}
.customer-record-item strong { display: block; font-size: 13px; }
.customer-record-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.customer-record-item em { display: block; margin-top: 4px; color: #44546f; font-size: 12px; font-style: normal; }
.customer-record-item.followup-item.due { border-left: 4px solid var(--orange); }
.customer-portal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .9fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: #f8fbfd;
}
.customer-portal-panel.active {
  border-color: #b9d6ee;
  background: linear-gradient(135deg, #f4f9ff 0%, #f7fbf8 100%);
}
.customer-portal-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.customer-portal-title > span {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #0b5cab;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.customer-portal-title strong {
  display: block;
  color: #172b4d;
  font-size: 15px;
}
.customer-portal-title em {
  display: block;
  margin-top: 4px;
  color: #536071;
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.customer-portal-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.customer-portal-facts div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}
.customer-portal-facts span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.customer-portal-facts strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.customer-portal-preview {
  min-height: 220px;
}
.customer-portal-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  color: #536071;
  text-align: center;
}
.customer-portal-empty i {
  width: 34px;
  height: 34px;
  color: #0b5cab;
}
.customer-portal-empty strong {
  color: #172b4d;
  font-size: 15px;
}
.customer-portal-empty span {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.6;
}
.customer-portal-log-mini {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.customer-portal-log-mini span {
  color: #44546f;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.customer-portal-manage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #b9d6ee;
  border-radius: 8px;
  background: #f3f8fd;
}
.customer-portal-manage strong,
.customer-managed-request-head strong {
  display: block;
  color: #172b4d;
  font-size: 14px;
  font-weight: 950;
}
.customer-portal-manage span,
.customer-managed-request-head span,
.customer-managed-request-head em {
  display: block;
  margin-top: 3px;
  color: #536071;
  font-size: 12px;
  font-style: normal;
}
.customer-portal-center {
  display: grid;
  gap: 12px;
}
.customer-portal-center-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.customer-portal-center-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbfd);
}
.customer-portal-center-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.customer-portal-center-summary strong {
  display: block;
  margin-top: 6px;
  color: #164e77;
  font-size: 24px;
  font-weight: 950;
}
.customer-managed-request-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #bfd5e6;
  border-radius: 8px;
  background: #f4f9fd;
}
.customer-managed-request-head b {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}
.customer-managed-request-form textarea {
  min-height: 126px;
}
.supplier-value-list {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}
.supplier-profile-section {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.supplier-profile-section h3 {
  margin: 0;
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
}
.supplier-profile-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.followup-form {
  display: grid;
  gap: 12px;
}
.project-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.project-lane .panel-body {
  min-height: 220px;
}
.project-detail {
  display: grid;
  gap: 12px;
}
.task-progress {
  min-width: 118px;
  display: grid;
  gap: 5px;
}
.task-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.task-progress strong { color: #172b4d; }
.task-progress span { color: var(--muted); }
.task-progress em {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}
.task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.project-task-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.project-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-task-head h3 { margin: 0; font-size: 14px; color: #172b4d; }
.project-task-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.project-task-list {
  display: grid;
  gap: 8px;
}
.project-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #dfe5ee;
  border-radius: 7px;
  background: #fff;
}
.project-task-item.ok { border-left-color: var(--success); }
.project-task-item.info { border-left-color: var(--primary); }
.project-task-item.danger { border-left-color: var(--danger); }
.project-task-main { min-width: 0; }
.project-task-main strong { display: block; color: #172b4d; font-size: 13px; }
.project-task-main span,
.project-task-main em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.project-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.project-customer-progress-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbff;
}
.customer-progress-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.customer-progress-strip span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.customer-progress-strip span.active {
  border-color: rgba(30, 102, 245, .36);
  background: #eef5ff;
  color: var(--primary);
}
.import-preview {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}
.import-preview p { margin: 8px 0 0; color: var(--success); font-size: 13px; }
.import-preview-head {
  display: flex;
  gap: 12px;
  color: #344563;
  font-weight: 800;
  font-size: 13px;
}
.import-preview-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.import-preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff7ed;
  font-size: 12px;
}
.import-preview-list strong { color: var(--warning); }
.import-preview-list span { color: #7c2d12; }
.import-preview-list em { color: var(--muted); font-size: 12px; font-style: normal; }
.security-note {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}
.print-preview-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #eef2f7;
  padding: 18px;
}
.quote-export-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.quote-image-preview-wrap {
  max-height: calc(100vh - 190px);
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.quote-image-preview-wrap img {
  display: block;
  width: min(820px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid #d8dee8;
  background: #fff;
}
.quote-watermark-controls {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) 112px 112px;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.quote-watermark-controls label {
  min-width: 0;
}
.quote-watermark-controls label span {
  margin-bottom: 5px;
  color: #344563;
  font-size: 12px;
  font-weight: 800;
}
.quote-watermark-controls input,
.quote-watermark-controls select {
  height: 34px;
}
.quote-watermark-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quote-watermark-switch input {
  width: 16px;
  height: 16px;
  padding: 0;
}
.quote-watermark-switch span {
  margin: 0 !important;
}
.print-document {
  position: relative;
  overflow: hidden;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 28px 28px 30px;
  background: #fff;
  color: #172b4d;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 30px rgba(23, 43, 77, .10);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.print-watermark-grid {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.print-watermark-grid span {
  position: absolute;
  color: #0c66e4;
  opacity: var(--wm-opacity, .14);
  font-size: var(--wm-font-size, 36px);
  font-weight: 900;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--wm-rotate, -28deg)) scale(var(--wm-scale, 1));
  text-shadow: 0 0 1px rgba(12, 102, 228, .08);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.print-document > *:not(.print-watermark-grid) {
  position: relative;
  z-index: 2;
}
.print-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}
.print-head h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.print-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.print-head strong { color: var(--primary); font-size: 24px; }
.print-quote-title {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid #cfe0f6;
  background: #f8fbff;
}
.print-quote-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.print-quote-title strong {
  color: #102a56;
  font-size: 15px;
  font-weight: 900;
  word-break: break-word;
}
.print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  padding: 14px 0 16px;
  font-size: 13px;
}
.print-meta div { display: flex; gap: 8px; min-width: 0; }
.print-meta span { color: var(--muted); white-space: nowrap; }
.print-meta strong { color: #172b4d; font-weight: 800; word-break: break-word; }
.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid #ccd6e4;
}
.print-table th,
.print-table td {
  padding: 7px 9px;
  border: 1px solid #dde4ee;
  text-align: left;
  vertical-align: top;
}
.print-table th {
  background: #edf5ff;
  color: #102a56;
  font-weight: 900;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.print-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}
.print-note td { background: #fbfcfe; color: #44546f; }
.print-total {
  width: min(360px, 100%);
  margin: 18px 0 0 auto;
  display: grid;
  gap: 0;
  border: 1px solid #d8dee8;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  font-size: 13px;
}
.print-total div {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 10px;
  border-bottom: 1px solid #e8edf5;
}
.print-total div:last-child { border-bottom: 0; }
.print-total span { color: #44546f; }
.print-total strong {
  color: #172b4d;
  font-weight: 800;
  white-space: nowrap;
}
.print-total .grand {
  min-height: 36px;
  border-top: 1px solid #8bbcff;
  background: #e9f2ff;
  font-size: 16px;
  font-weight: 900;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.print-total .grand span,
.print-total .grand strong {
  color: var(--primary);
}
.print-terms { margin-top: 18px; color: #344563; font-size: 13px; line-height: 1.7; }
.print-terms p { margin: 6px 0; }
.print-sign {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  color: #344563;
  font-size: 13px;
}
.contract-settings-panel,
.contract-preview-panel {
  display: grid;
  gap: 12px;
}
.contract-workbench-panel {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(360px, 1.35fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}
.contract-workbench-intro,
.contract-workbench-stats {
  min-width: 0;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
}
.contract-workbench-intro {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
}
.contract-workbench-intro strong {
  color: #101828;
  font-size: 16px;
  font-weight: 900;
}
.contract-workbench-intro span {
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.5;
}
.contract-workbench-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
}
.contract-workbench-flow span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #f3f7fb;
  color: #344563;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.contract-workbench-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}
.contract-workbench-stats div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 8px 10px;
  border-right: 1px solid #e5ebf3;
}
.contract-workbench-stats div:last-child {
  border-right: 0;
}
.contract-workbench-stats span {
  color: #5f6b7a;
  font-size: 12px;
}
.contract-workbench-stats strong {
  color: #0c66e4;
  font-size: 18px;
  font-weight: 900;
}
.order-contract-manager {
  display: grid;
  gap: 14px;
}
.contract-manager-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.contract-manager-summary div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fbfcfe;
}
.contract-manager-summary span {
  display: block;
  margin-bottom: 4px;
  color: #5f6b7a;
  font-size: 12px;
}
.contract-manager-summary strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}
.contract-manager-actions,
.contract-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.contract-manager-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
}
.contract-manager-flow span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #f3f7fb;
  color: #344563;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.contract-manager-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}
.contract-manager-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}
.contract-manager-section-head h3 {
  margin: 0;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}
.contract-manager-section-head p {
  margin: 0;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.contract-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.contract-template-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fbfcfe;
}
.contract-template-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.contract-template-card strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
}
.contract-template-card span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #0c66e4;
  font-size: 11px;
  font-weight: 900;
}
.contract-template-card p {
  min-height: 34px;
  margin: 0;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.45;
}
.contract-template-panel .record-table-wrap {
  min-height: 0;
}
.contract-template-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 9px 11px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
  color: #344563;
  font-size: 12px;
}
.contract-template-note strong {
  flex: 0 0 auto;
  color: #172b4d;
  font-weight: 900;
}
.contract-template-table td:first-child strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
}
.contract-template-table td:first-child span {
  display: block;
  margin-top: 3px;
}
.contract-template-editor {
  display: grid;
  gap: 12px;
}
.contract-template-editor .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344563;
  font-size: 13px;
  font-weight: 800;
}
.contract-template-editor .checkline input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.contract-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}
.contract-section-toolbar strong {
  color: #172b4d;
  font-size: 15px;
  font-weight: 900;
}
.contract-section-list {
  display: grid;
  gap: 10px;
}
.contract-section-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fbfcfe;
}
.contract-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contract-section-head strong {
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}
.contract-section-row label {
  display: grid;
  gap: 5px;
}
.contract-section-row label span {
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 800;
}
.contract-section-row textarea {
  min-height: 128px;
  line-height: 1.55;
}
.contract-preview-actions {
  align-items: center;
}
.contract-preview-scroll {
  max-width: 100%;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #eef3f8;
}
.contract-document {
  width: 820px;
  max-width: none;
  padding: 30px 32px 34px;
}
.contract-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid #172b4d;
}
.contract-head h1 {
  margin: 0;
  color: #101828;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}
.contract-head p {
  margin: 6px 0 0;
  color: #5f6b7a;
  font-size: 12px;
}
.contract-head strong {
  color: #0c66e4;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}
.contract-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 14px 0;
  border-bottom: 1px solid #d8dee8;
}
.contract-meta-grid div {
  display: flex;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}
.contract-meta-grid span,
.contract-party-card span {
  color: #5f6b7a;
  white-space: nowrap;
}
.contract-meta-grid strong,
.contract-party-card em {
  color: #172b4d;
  font-style: normal;
  font-weight: 800;
  word-break: break-word;
}
.contract-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}
.contract-party-card {
  min-height: 156px;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 0;
  background: #fbfcfe;
}
.contract-party-card h2 {
  margin: 0 0 8px;
  color: #0c66e4;
  font-size: 14px;
  font-weight: 900;
}
.contract-party-card strong {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}
.contract-party-card p {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.45;
}
.contract-clause {
  margin-top: 14px;
  color: #344563;
  font-size: 13px;
  line-height: 1.75;
}
.contract-clause h2 {
  margin: 0 0 6px;
  color: #172b4d;
  font-size: 15px;
  font-weight: 900;
}
.contract-clause p {
  margin: 5px 0;
}
.contract-items-table {
  margin-top: 8px;
}
.contract-items-table th:first-child,
.contract-items-table td:first-child {
  width: 46px;
  text-align: center;
}
.contract-items-table th:nth-child(6),
.contract-items-table td:nth-child(6),
.contract-items-table th:last-child,
.contract-items-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.contract-total {
  margin-top: 12px;
}
.contract-upper-money {
  margin-top: 8px !important;
  color: #172b4d;
  font-weight: 900;
}
.contract-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.contract-sign-grid div {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8dee8;
}
.contract-sign-grid strong {
  color: #172b4d;
  font-size: 13px;
}
.contract-sign-grid span {
  color: #344563;
  font-size: 13px;
}
@media (max-width: 1380px) {
  .contract-workbench-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .contract-workbench-flow,
  .contract-manager-flow,
  .contract-workbench-stats,
  .contract-manager-summary,
  .contract-template-grid {
    grid-template-columns: 1fr;
  }
  .contract-manager-section-head {
    display: grid;
  }
  .contract-manager-section-head p {
    text-align: left;
  }
}
#printRoot { display: none; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #172b4d;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1280px) {
  .quote-page {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 8px;
  }
  .quote-panel-main { padding: 8px; }
  .quote-panel-right {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
}
@media (min-width: 1680px) {
  .quote-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .quote-no,
  .quote-customer,
  .quote-contact,
  .quote-phone { grid-column: span 3; }
  .quote-form .quote-name { grid-column: span 8; }
  .quote-date,
  .quote-expire { grid-column: span 2; }
}
@media (min-width: 1600px) {
  .quote-page {
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr) minmax(260px, 276px);
    grid-template-areas: "parts builder assist";
  }
  .quote-panel-right {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .quote-panel-right .right-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}
@media (min-width: 981px) {
  .quote-page.left-collapsed {
    grid-template-columns: 42px minmax(0, 1fr) clamp(220px, 16vw, 260px);
  }
  .quote-page.right-collapsed {
    grid-template-columns: clamp(220px, 17vw, 260px) minmax(0, 1fr) 42px;
  }
  .quote-page.left-collapsed.right-collapsed {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
  .quote-page.left-collapsed .quote-panel-left {
    overflow: hidden;
  }
  .quote-page.left-collapsed .quote-panel-title {
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 6px;
  }
  .quote-page.left-collapsed .quote-panel-title strong,
  .quote-page.left-collapsed .quote-panel-title .panel-actions,
  .quote-page.left-collapsed .quote-search,
  .quote-page.left-collapsed .quote-tree {
    display: none;
  }
  .quote-page.right-collapsed .quote-panel-right {
    overflow: hidden;
  }
  .quote-page.right-collapsed .quote-panel-right .right-card {
    display: none;
  }
  .quote-page.right-collapsed .quote-right-rail {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    background: #fbfcfe;
  }
  .quote-page:not(.right-collapsed) .quote-right-rail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfcfe;
  }
  .quote-page:not(.right-collapsed) .quote-right-rail span {
    display: none;
  }
  .quote-page.right-collapsed .quote-right-rail span {
    writing-mode: vertical-rl;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
  }
}
@media (max-width: 980px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .quick-create { position: relative; }
  .quick-create-menu {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 20px));
    grid-template-columns: 1fr;
  }
  .search-box { width: min(100%, 320px); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-kanban,
  .quality-summary,
  .customer-summary-grid,
  .customer-summary-grid-compact,
  .customer-workbench-metrics,
  .trace-metric-grid,
  .quality-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trace-split { grid-template-columns: 1fr; }
  .customer-workbench-split { grid-template-columns: 1fr; }
  .dashboard-grid,
  .ops-dashboard-grid,
  .ops-board-grid,
  .ops-layout-grid,
  .ops-workbench { grid-template-columns: 1fr; }
  .ops-center-stack { grid-template-rows: auto auto; }
  .ops-flow,
  .ops-flow-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "parts"
      "builder";
  }
  .quote-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-form .quote-name { grid-column: span 2; }
  .quote-bottom-card { grid-template-columns: 1fr; }
  .quote-fee-grid,
  .quote-cost-grid,
  .quote-delivery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-terms-grid { grid-template-columns: 1fr; }
  .quote-terms-grid .wide-field { grid-column: span 1; }
}
@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; height: auto; max-height: 360px; }
  .side-user { display: none; }
  .content { padding: 12px; }
  .metric-grid { grid-template-columns: 1fr; }
  .settings-entry-grid { grid-template-columns: 1fr; }
  .ops-page { min-height: auto; }
  .quick-action-grid,
  .ops-closure-grid,
  .ops-flow,
  .ops-flow-rail { grid-template-columns: 1fr; }
  .ops-recent-item { grid-template-columns: 54px minmax(0, 1fr); }
  .ops-recent-item em { display: none; }
  .ops-flow-step::after { display: none; }
  .quote-form,
  .quote-bottom-card,
  .quote-terms-grid,
  .cost-grid,
  .project-kanban,
  .template-save-grid,
  .template-filter-bar,
  .operation-log-filter,
  .draft-filter-bar,
  .batch-match-row,
  .template-manager-item,
  .quality-summary,
  .customer-summary-grid,
  .customer-summary-grid-compact,
  .customer-workbench-metrics,
  .customer-workbench-head,
  .trace-metric-grid,
  .trace-hero,
  .customer-record-item,
  .project-task-item,
  .quality-counts,
  .quality-issue,
  .drawer-body .form-grid { grid-template-columns: 1fr; }
  .customer-detail-tabs {
    width: 100%;
  }
  .customer-detail-tabs button {
    flex: 1 1 0;
  }
  .customer-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
  .trace-section-head,
  .trace-timeline-title {
    display: grid;
    justify-content: stretch;
  }
  .trace-section-head p {
    text-align: left;
  }
  .trace-hero-action {
    justify-content: flex-start;
  }
  .drawer,
  .ui-dialog-backdrop {
    padding: 10px;
  }
  .drawer-card,
  .ui-dialog-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }
  .drawer-body,
  .ui-dialog-body {
    padding: 12px;
  }
  .customer-progress-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attachment-preview-card { height: calc(100vh - 20px); }
  .project-task-actions { justify-content: flex-start; }
  .quote-form .quote-name,
  .quote-form .wide-field { grid-column: span 1; }
  .quote-terms-grid .wide-field { grid-column: span 1; }
  .quote-terms-grid .remarks-field { grid-column: span 1; }
  .quote-bottom-row,
  .quote-internal-cost-details,
  .quote-fee-grid,
  .quote-cost-grid,
  .quote-delivery-grid { grid-template-columns: 1fr; }
  .quote-watermark-controls { grid-template-columns: 1fr; }
  .quote-risk-banner { grid-template-columns: 1fr; }
  .quote-risk-banner .quote-risk-item { grid-template-columns: 1fr; }
  .quote-risk-banner .quote-risk-item span { white-space: normal; }
  .supplier-import-summary { grid-template-columns: 1fr; }
  .supplier-inquiry-hero,
  .supplier-inquiry-section-head {
    flex-direction: column;
  }
  .supplier-inquiry-metrics,
  .supplier-invite-card {
    grid-template-columns: 1fr;
  }
  .supplier-inquiry-status,
  .supplier-invite-actions,
  .supplier-inquiry-workflow-actions {
    justify-content: flex-start;
  }
  .quote-table-shell { min-height: 0; flex-basis: auto; }
  .quote-detail-table-wrap { min-height: 220px; }
}

@page {
  size: 210mm 297mm;
  margin: 12mm;
}

@media print {
  body > *:not(#printRoot) { display: none !important; }
  #printRoot {
    display: block;
    padding: 0;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  #printRoot * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  #printRoot .print-document {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  #printRoot .print-table thead { display: table-header-group; }
  #printRoot .print-table tr,
  #printRoot .print-total,
  #printRoot .print-terms,
  #printRoot .print-sign,
  #printRoot .contract-party-card,
  #printRoot .contract-clause,
  #printRoot .contract-sign-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.supplier-quote-page {
  min-height: 100vh;
  margin: 0;
  background: #eef3f8;
  color: #172b4d;
}

.supplier-portal {
  width: min(1440px, calc(100vw - 32px));
  margin: 16px auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.08);
  overflow: hidden;
}

.supplier-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #d9e2ec;
  background: #f8fafc;
}

.supplier-portal-head strong {
  display: block;
  font-size: 18px;
}

.supplier-portal-head span {
  display: block;
  margin-top: 4px;
  color: #5f6f83;
  font-size: 13px;
}

.supplier-portal-body {
  padding: 16px 18px 20px;
}

.supplier-rfq-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.supplier-rfq-summary div,
.supplier-guide {
  min-width: 0;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}
.supplier-rfq-summary span,
.supplier-guide span {
  display: block;
  color: #5f6f83;
  font-size: 12px;
}
.supplier-rfq-summary strong,
.supplier-guide strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  overflow-wrap: anywhere;
}
.supplier-guide {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: #eef6ff;
  border-color: #bfdbfe;
}
.supplier-guide.locked {
  border-color: #f0c36d;
  background: #fff8e8;
}
.supplier-guide.locked strong { color: #8a4b00; }
.supplier-intent-brief,
.supplier-attachment-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}
.supplier-intent-brief strong,
.supplier-attachment-head strong {
  display: block;
  color: #172b4d;
  font-weight: 800;
}
.supplier-intent-brief span,
.supplier-attachment-head span {
  display: block;
  margin-top: 5px;
  color: #5f6f83;
  line-height: 1.55;
}
.supplier-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.supplier-attachment-item {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(120px, .8fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e3e9f2;
  border-radius: 6px;
  background: #f8fafc;
}
.supplier-attachment-item span,
.supplier-attachment-item em {
  color: #5f6f83;
  font-size: 12px;
  font-style: normal;
}
.supplier-attachment-item strong {
  overflow-wrap: anywhere;
}
.supplier-attachment-empty {
  padding: 10px;
  border: 1px dashed #cfd8e3;
  border-radius: 6px;
  color: #5f6f83;
  background: #f8fafc;
}
.supplier-upload-box {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #5f6f83;
  font-size: 13px;
}

.supplier-upload-panel {
  margin-top: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.supplier-upload-input {
  display: none;
}

.supplier-upload-zone {
  width: 100%;
  min-height: 132px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #9bb6d6;
  border-radius: 8px;
  background: #f4f8fd;
  color: #244a73;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.supplier-upload-zone:hover,
.supplier-upload-zone.dragging {
  border-color: #1f5f8b;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 139, 0.18);
}

.supplier-upload-zone svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.supplier-upload-zone strong {
  font-size: 16px;
  font-weight: 900;
}

.supplier-upload-zone span {
  color: #5f6f83;
  font-size: 13px;
}

.supplier-upload-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.supplier-upload-empty {
  padding: 10px;
  border: 1px solid #e3e9f2;
  border-radius: 6px;
  background: #f8fafc;
  color: #5f6f83;
  font-size: 13px;
}

.supplier-upload-file {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e3e9f2;
  border-radius: 6px;
  background: #fbfdff;
}

.supplier-upload-file > svg {
  width: 20px;
  height: 20px;
  color: #1f5f8b;
}

.supplier-upload-file span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.supplier-upload-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172b4d;
}

.supplier-upload-file em {
  color: #5f6f83;
  font-size: 12px;
  font-style: normal;
}
.supplier-quote-page input:disabled {
  background: #f4f6f8;
  color: #5f6f83;
  cursor: not-allowed;
}
.supplier-inline-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f2b8b5;
  background: #fff3f2;
  color: #b3261e;
  font-weight: 800;
}
.supplier-inline-notice.ok {
  border-color: #b7e2c1;
  background: #effaf2;
  color: #23633a;
}

.supplier-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.supplier-meta-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.supplier-meta label,
.supplier-public-link {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #5f6f83;
}

.supplier-meta input,
.supplier-meta textarea,
.supplier-public-link input,
.supplier-quote-table input {
  width: 100%;
  height: 34px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  padding: 6px 8px;
  font: inherit;
  color: #172b4d;
  background: #fff;
}

.supplier-meta textarea {
  height: 72px;
  min-height: 72px;
  resize: vertical;
}

.supplier-meta .wide {
  grid-column: 1 / -1;
}

.supplier-table-card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  overflow: hidden;
}

.supplier-table-head,
.supplier-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #d9e2ec;
}

.supplier-table-head span,
.supplier-total-line span {
  color: #5f6f83;
  font-size: 13px;
}

.supplier-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 250px);
}

.supplier-mobile-lines {
  display: none;
}

.supplier-quote-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 13px;
}

.intent-rfq-table {
  min-width: 1320px;
}

.supplier-quote-table th,
.supplier-quote-table td {
  border-bottom: 1px solid #e6edf5;
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
}

.supplier-quote-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f9;
  color: #4a5f76;
  font-weight: 700;
}

.supplier-quote-table td:nth-child(1),
.supplier-quote-table td:nth-child(6),
.supplier-quote-table td:nth-child(8) {
  white-space: nowrap;
}

.supplier-price-input {
  text-align: right;
}

.supplier-quote-table input[data-field^="quoted"] {
  min-width: 120px;
}
.supplier-quote-table input[data-field="quotedTech"] {
  min-width: 180px;
}

.supplier-line-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  box-shadow: 0 6px 16px rgba(15, 35, 55, 0.06);
}

.supplier-line-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.supplier-line-card header span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #1f5f8b;
  font-weight: 900;
  font-size: 12px;
}

.supplier-line-card header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 14px;
}

.supplier-line-card header em {
  color: #5f6f83;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.supplier-line-spec {
  margin-top: 8px;
  color: #5f6f83;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.supplier-line-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.supplier-line-fields.intent {
  grid-template-columns: 1fr 1fr;
}

.supplier-line-fields label {
  display: grid;
  gap: 5px;
  color: #5f6f83;
  font-size: 12px;
}

.supplier-line-fields .wide {
  grid-column: 1 / -1;
}

.supplier-line-fields input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  padding: 7px 8px;
  font: inherit;
  background: #fff;
  color: #172b4d;
}

.supplier-line-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e6edf5;
  color: #5f6f83;
  font-size: 13px;
}

.supplier-line-amount strong {
  color: #172b4d;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.supplier-message {
  padding: 28px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #4a5f76;
  text-align: center;
}

.supplier-message.ok {
  border-color: #b7e2c1;
  background: #effaf2;
  color: #23633a;
}

.supplier-message.danger {
  border-color: #f2b8b5;
  background: #fff3f2;
  color: #b3261e;
}

.supplier-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 30, 66, .38);
  backdrop-filter: blur(2px);
}
.supplier-dialog-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(23, 43, 77, .28);
}
.supplier-dialog-card header span {
  color: #0c66e4;
  font-size: 12px;
  font-weight: 900;
}
.supplier-dialog-card header strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 18px;
}
.supplier-dialog-card p {
  margin: 0;
  color: #344563;
  line-height: 1.7;
}
.supplier-dialog-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.supplier-online-actions {
  margin: 10px 0 12px;
}

.supplier-qr-backdrop {
  z-index: 1700;
}

.supplier-qr-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 30, 66, .22);
}

.supplier-qr-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.supplier-qr-dialog header span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.supplier-qr-dialog header strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 20px;
}

.supplier-qr-preview {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-qr-preview img {
  width: min(100%, 360px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(9, 30, 66, .12);
}

.supplier-qr-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.supplier-qr-meta div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.supplier-qr-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supplier-qr-meta strong {
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.supplier-qr-dialog footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .supplier-qr-dialog {
    padding: 14px;
  }
  .supplier-qr-meta {
    grid-template-columns: 1fr;
  }
  .supplier-qr-dialog footer {
    justify-content: stretch;
  }
  .supplier-qr-dialog footer > button {
    flex: 1 1 150px;
  }
  .supplier-inline-picker,
  .supplier-picker-bar,
  .supplier-picker-dialog-toolbar,
  .supplier-picker-dialog-item {
    grid-template-columns: 1fr;
  }
  .supplier-picker-bar,
  .supplier-picker-dialog header,
  .supplier-picker-dialog footer {
    align-items: stretch;
    flex-direction: column;
  }
  .supplier-picker-actions {
    justify-content: stretch;
  }
  .supplier-picker-actions > button,
  .supplier-picker-dialog footer > button {
    flex: 1 1 auto;
  }
}

.supplier-picker {
  display: grid;
  gap: 8px;
}

.supplier-inline-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.supplier-inline-picker input {
  min-width: 0;
}

.supplier-inline-picker button {
  white-space: nowrap;
}

.supplier-picker-compact {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.supplier-picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supplier-picker-bar > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.supplier-picker-bar strong {
  color: #172b4d;
  font-size: 13px;
}

.supplier-picker-bar span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.supplier-picker-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supplier-picker-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.supplier-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-top: 8px;
}

.supplier-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 6px 4px 9px;
  border: 1px solid #cfe1f6;
  border-radius: 8px;
  background: #eef6ff;
  color: #172b4d;
  font-size: 12px;
}

.supplier-picker-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-picker-chip em {
  min-width: 0;
  max-width: 280px;
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-picker-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

.supplier-picker-backdrop {
  z-index: 1710;
}

.supplier-picker-dialog {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto auto auto minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c7d1dd;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(31, 41, 55, .26);
}

.supplier-picker-dialog header,
.supplier-picker-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supplier-picker-dialog header span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.supplier-picker-dialog header strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 18px;
}

.supplier-picker-dialog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.supplier-picker-dialog-selected {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-picker-dialog-selected span {
  color: #172b4d;
  font-size: 13px;
  font-weight: 800;
}

.supplier-picker-dialog-selected em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.supplier-picker-dialog-list {
  min-height: 220px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f2f5f8;
}

.supplier-picker-dialog-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fff;
}

.supplier-picker-dialog-item.selected {
  border-color: #9ec5fe;
  background: #eef6ff;
}

.supplier-picker-dialog-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.supplier-picker-dialog-item strong {
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.supplier-picker-dialog-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.supplier-picker-dialog-item small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.supplier-picker input[type="text"] {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: #172b4d;
  background: #fff;
}

.supplier-picker-list {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-picker-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  background: #fff;
}

.supplier-picker-item input {
  margin-top: 2px;
}

.supplier-picker-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.supplier-picker-item strong {
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.supplier-picker-item em,
.supplier-picker-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.supplier-line-picker {
  display: grid;
  gap: 12px;
}

.supplier-line-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.supplier-line-picker-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}

.supplier-line-picker-all input,
.supplier-line-picker-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.supplier-line-picker-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.supplier-line-picker-count strong {
  color: var(--primary);
  font-size: 16px;
}

.supplier-line-picker-table {
  min-width: 900px;
}

.supplier-line-picker-table th:first-child,
.supplier-line-picker-table td:first-child {
  width: 54px;
  text-align: center;
}

.supplier-line-picker-table td:nth-child(4),
.supplier-line-picker-table td:nth-child(5) {
  min-width: 150px;
  overflow-wrap: anywhere;
}

.supplier-line-picker-cost {
  color: #172b4d;
  font-weight: 800;
  white-space: nowrap;
}

.supplier-inquiry-workspace {
  display: grid;
  gap: 14px;
}
.supplier-inquiry-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}
.supplier-inquiry-hero span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.supplier-inquiry-hero h3 {
  margin: 4px 0;
  color: #172b4d;
  font-size: 22px;
  letter-spacing: 0;
}
.supplier-inquiry-hero p {
  margin: 0;
  color: var(--muted);
}
.supplier-inquiry-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.supplier-inquiry-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.supplier-inquiry-metric {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.supplier-inquiry-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.supplier-inquiry-metric strong {
  min-width: 0;
  color: #172b4d;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.supplier-inquiry-metric em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.supplier-invite-card,
.supplier-inquiry-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.supplier-invite-card {
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.15fr);
  align-items: end;
}
.supplier-invite-main span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.supplier-invite-main strong {
  display: block;
  margin-top: 4px;
  color: #172b4d;
  font-size: 18px;
}
.supplier-invite-main p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.supplier-invite-link {
  display: grid;
  gap: 6px;
}
.supplier-invite-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.supplier-invite-link input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: #172b4d;
  background: #f8fafc;
}
.supplier-invite-actions,
.supplier-inquiry-workflow-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.supplier-reopen-quick {
  border-color: #f0c36d;
  background: #fff8e8;
  color: #7a4a00;
  font-weight: 900;
}

.supplier-reopen-quick:hover {
  border-color: #d89922;
  background: #fff1c6;
  color: #5f3b00;
}

.supplier-reopen-quick:disabled {
  border-color: #d6dee8;
  background: #f3f6f9;
  color: #8a97a8;
}
.supplier-inquiry-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.supplier-inquiry-section-head h3 {
  margin: 0;
  color: #172b4d;
  font-size: 16px;
}
.supplier-inquiry-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.supplier-lines-table-wrap {
  max-height: 420px;
}
.supplier-lines-table {
  min-width: 1120px;
}
.supplier-inquiry-workspace .project-task-section {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}
.supplier-inquiry-workspace .record-detail-table-wrap {
  max-height: 340px;
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
}

.supplier-rfq-source,
.supplier-rfq-suppliers,
.supplier-rfq-progress {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.supplier-rfq-source strong,
.supplier-rfq-suppliers strong,
.supplier-rfq-progress strong {
  color: #172b4d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.supplier-rfq-source span,
.supplier-rfq-suppliers span,
.supplier-rfq-progress span,
.supplier-rfq-state span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.supplier-rfq-state {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-items: start;
}

.supplier-rfq-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-rfq-action-cell .mini-btn {
  min-width: 72px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.supplier-rfq-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f1f2f5;
}

.supplier-rfq-tabs button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #42526e;
  font-size: 13px;
  font-weight: 800;
}

.supplier-rfq-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(23,43,77,.12);
}

.supplier-rfq-supplier-table {
  min-width: 860px;
  table-layout: fixed;
}

.supplier-rfq-supplier-table th,
.supplier-rfq-supplier-table td,
.supplier-rfq-smart-table th,
.supplier-rfq-smart-table td {
  font-size: 12.5px;
  line-height: 1.35;
  vertical-align: top;
}

.supplier-rfq-supplier-table th:nth-child(1) {
  width: 210px;
}

.supplier-rfq-supplier-table th:nth-child(2) {
  width: 145px;
}

.supplier-rfq-supplier-table th:nth-child(3),
.supplier-rfq-supplier-table th:nth-child(4) {
  width: 120px;
}

.supplier-rfq-supplier-table th:nth-child(5) {
  width: 112px;
}

.supplier-rfq-supplier-table th:nth-child(6) {
  width: 86px;
}

.supplier-rfq-workspace .record-detail-table-wrap {
  max-height: 460px;
  overflow: auto;
}

.supplier-rfq-workspace .quote-record-detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8fb;
}

.supplier-rfq-smart-table {
  min-width: 1040px;
  table-layout: fixed;
}

.supplier-rfq-scheme-list {
  display: grid;
  gap: 12px;
}

.supplier-rfq-scheme-block {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-rfq-scheme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.supplier-rfq-scheme-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.supplier-rfq-scheme-head strong {
  color: #172b4d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.supplier-rfq-scheme-head span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.supplier-rfq-scheme-table,
.supplier-rfq-price-update-table {
  min-width: 1120px;
}

.supplier-rfq-line-table-wrap {
  max-height: 420px;
}

.supplier-rfq-line-table {
  min-width: 1180px;
}

.supplier-rfq-line-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-rfq-quote-chip {
  display: inline-grid;
  gap: 2px;
  max-width: 210px;
  padding: 6px 8px;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  background: #f8fafc;
}

.supplier-rfq-quote-chip.best {
  border-color: #b7dbc8;
  background: #e7f6ef;
}

.supplier-rfq-quote-chip strong {
  color: #172b4d;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.supplier-rfq-quote-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

/* Professional full-screen layouts for non-quote-center pages. */
.content.page-parts,
.content.page-part-review,
.content.page-customers,
.content.page-project-package,
.content.page-orders,
.content.page-supplier-inquiry,
.content.page-receivable,
.content.page-invoice,
.content.page-global-search,
.content.page-maintenance-center,
.content.page-deployment-preflight,
.content.page-data-security,
.content.page-approval-center,
.content.page-contract-template,
.content.page-attachment-center,
.content.page-core-status,
.content.page-settings-dashboard {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.content.page-data-security {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, .9fr);
}

.content.page-settings-dashboard {
  overflow: auto;
  grid-template-rows: auto auto auto;
}

.content.page-orders {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.content.page-orders > .contract-workbench-panel {
  margin-bottom: 0;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid {
  gap: 8px;
  margin-bottom: 0;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card {
  min-height: 50px;
  padding: 7px 10px;
  box-shadow: var(--shadow);
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card strong {
  font-size: 19px;
}

.content.page-parts > .panel,
.content.page-part-review > .panel,
.content.page-customers > .panel,
.content.page-project-package > .panel,
.content.page-orders > .panel,
.content.page-supplier-inquiry > .panel,
.content.page-receivable > .panel,
.content.page-invoice > .panel,
.content.page-data-security > .panel,
.content.page-approval-center > .panel,
.content.page-contract-template > .panel,
.content.page-attachment-center > .panel,
.content.page-settings-dashboard > .panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content.page-parts .record-table-wrap,
.content.page-part-review .record-table-wrap,
.content.page-customers .record-table-wrap,
.content.page-project-package .record-table-wrap,
.content.page-orders .record-table-wrap,
.content.page-supplier-inquiry .record-table-wrap,
.content.page-receivable .record-table-wrap,
.content.page-invoice .record-table-wrap,
.content.page-data-security .record-table-wrap,
.content.page-approval-center .record-table-wrap,
.content.page-contract-template .record-table-wrap,
.content.page-attachment-center .record-table-wrap,
.content.page-core-status .record-table-wrap,
.content.page-deployment-preflight .record-table-wrap,
.content.page-maintenance-center .record-table-wrap,
.content.page-global-search .record-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.content.page-parts .parts-manage-panel .record-table-wrap,
.content.page-part-review .parts-manage-panel .record-table-wrap {
  height: auto;
  overflow: auto;
}

.content.page-parts .parts-manage-toolbar,
.content.page-part-review .parts-manage-toolbar,
.content.page-project-package .compact-toolbar {
  flex: 0 0 auto;
  margin: 0;
}

.content.page-parts .parts-profit-bar,
.content.page-parts .parts-horizontal-scroll,
.content.page-parts .table-note,
.content.page-part-review .table-note {
  flex: 0 0 auto;
}

.content.page-customers .panel-head,
.content.page-project-package .panel-head,
.content.page-parts .panel-head,
.content.page-part-review .panel-head,
.content.page-data-security .panel-head,
.content.page-deployment-preflight .panel-head,
.content.page-maintenance-center .panel-head,
.content.page-global-search .panel-head,
.content.page-core-status .panel-head {
  min-height: 42px;
  padding: 8px 10px;
}

.content.page-customers .panel-head p,
.content.page-parts .panel-head p,
.content.page-part-review .panel-head p,
.content.page-project-package .panel-head p {
  display: none;
}

.content.page-parts .parts-table th:first-child,
.content.page-parts .parts-table th:nth-child(4),
.content.page-parts .parts-table th:last-child,
.content.page-part-review .part-review-table th {
  background: var(--table-head);
  color: var(--table-head-text);
}

.content.page-parts .parts-table td:first-child,
.content.page-parts .parts-table td:nth-child(4),
.content.page-parts .parts-table td:last-child,
.content.page-part-review .part-review-table td:first-child,
.content.page-part-review .part-review-table td:nth-child(4),
.content.page-part-review .part-review-table td:last-child {
  background: transparent;
}

.content.page-global-search .split-layout,
.content.page-maintenance-center .split-layout,
.content.page-deployment-preflight .split-layout,
.content.page-core-status .split-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 10px;
  align-items: stretch;
}

.content.page-global-search .split-layout > .panel,
.content.page-maintenance-center .split-layout > .panel,
.content.page-deployment-preflight .split-layout > .panel,
.content.page-core-status .split-layout > .panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content.page-global-search .split-layout .panel-body,
.content.page-maintenance-center .split-layout .panel-body,
.content.page-deployment-preflight .split-layout .panel-body,
.content.page-core-status .split-layout .panel-body {
  min-height: 0;
  overflow: auto;
}

/* Industrial workbench theme pass. */
body,
.app-shell,
.main,
.content {
  background: var(--bg);
}

.login-screen {
  background: var(--bg);
}

.login-panel {
  background: #f4f7fa;
}

.login-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar {
  background: var(--surface-muted);
  border-right-color: #c8d2df;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .62);
}

.side-brand,
.side-user {
  background: #f7f9fc;
  border-color: var(--line);
}

.brand-mark {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.collapse-btn,
.icon-btn,
.user-btn,
.ghost-btn,
.mini-btn {
  background: #f8fafc;
  border-color: var(--line);
  color: #344563;
}

.ghost-btn:hover,
.icon-btn:hover,
.user-btn:hover,
.mini-btn:hover {
  background: #eef4fa;
  border-color: #b9c7d8;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.nav-row,
.child-row {
  border-radius: 5px;
}

.nav-row:hover,
.child-row:hover {
  background: #dde6f1;
}

.nav-row.active,
.child-row.active {
  background: #dcebf7;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.topbar {
  background: #f8fafc;
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .62);
}

.search-box,
.input-wrap,
input,
select,
textarea {
  border-color: var(--line);
}

input,
select,
textarea {
  background: var(--panel-strong);
}

.quick-create-menu,
.drawer-card,
.ui-dialog-card,
.panel,
.metric-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.supplier-dialog-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  background: #f5f8fb;
  border-color: var(--line);
}

.panel-body,
.drawer-body,
.ui-dialog-body,
.quote-final-action-card,
.quote-search {
  background: var(--panel);
}

.metric-card strong,
.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.supplier-inquiry-hero h3,
.supplier-inquiry-metric strong,
.supplier-rfq-source strong,
.supplier-rfq-suppliers strong,
.supplier-rfq-progress strong {
  color: #1d2b3f;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-picker-list,
.supplier-rfq-tabs {
  background: #f2f5f8;
  border-color: var(--line);
}

.quote-table,
.record-table {
  background: var(--panel-strong);
}

.quote-table th,
.record-table th,
.content.page-parts .parts-table th:first-child,
.content.page-parts .parts-table th:nth-child(4),
.content.page-parts .parts-table th:last-child,
.content.page-part-review .part-review-table th {
  background: var(--table-head);
  border-bottom-color: #c4ceda;
  color: var(--table-head-text);
}

.quote-table td,
.record-table td {
  border-bottom-color: #e4eaf1;
  color: #24364f;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.record-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td {
  background: #f1f6fb;
}

.quote-table td:first-child,
.quote-table td:nth-child(4),
.quote-table td:last-child {
  background: var(--panel-strong);
}

.quote-table tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td:first-child,
.quote-table tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td:nth-child(4),
.quote-table tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td:last-child {
  background: #f1f6fb;
}

.drawer {
  background: rgba(31, 41, 55, .42);
  backdrop-filter: blur(2px);
}

.drawer-card,
.ui-dialog-card {
  border-color: #c7d1dd;
  box-shadow: 0 24px 64px rgba(31, 41, 55, .26);
}

.quote-panel-right .right-card {
  background: var(--panel);
  border-color: var(--line-soft);
  box-shadow: none;
}

.supplier-inquiry-hero {
  background: #f4f8fb;
  border-color: var(--line);
}

.supplier-rfq-tabs {
  padding: 4px;
}

.supplier-rfq-tabs button.active {
  background: var(--panel-strong);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(31, 41, 55, .14);
}

.status-pill.draft,
.badge-soft {
  background: #edf2f7;
  color: #44546f;
}

.status-pill.info,
.badge-soft.info,
.badge-soft:not(.ok):not(.warn):not(.danger):not(.vip) {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-pill.ok {
  background: #e4f3ed;
}

.status-pill.warn {
  background: #fff4d9;
}

.status-pill.danger,
.mini-btn.danger,
.ghost-btn.danger {
  background: #fff0f0;
  border-color: #f3b8b8;
  color: var(--danger);
}

/* Data emphasis refinement. */
.content {
  background: #edf2f6;
}

.quote-panel-main {
  background: #f3f6f9;
}

.metric-grid {
  gap: 10px;
}

.metric-card {
  --metric-color: var(--data-blue);
  --metric-soft: var(--data-blue-soft);
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon desc";
  min-height: 64px;
  padding: 10px 12px;
  align-items: center;
  gap: 2px 10px;
  border-left: 3px solid var(--metric-color);
  background: #f8fafc;
}

.metric-card:nth-child(2) {
  --metric-color: var(--data-teal);
  --metric-soft: var(--data-teal-soft);
}

.metric-card:nth-child(3) {
  --metric-color: var(--data-amber);
  --metric-soft: var(--data-amber-soft);
}

.metric-card:nth-child(4) {
  --metric-color: var(--data-red);
  --metric-soft: var(--data-red-soft);
}

.metric-card:nth-child(5) {
  --metric-color: var(--data-graphite);
  --metric-soft: var(--data-graphite-soft);
}

.metric-card > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 6px;
  background: var(--metric-soft);
  color: var(--metric-color);
}

.metric-card span {
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  color: var(--metric-color);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card {
  min-height: 56px;
  padding: 8px 10px;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card strong {
  font-size: 21px;
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.supplier-inquiry-section-head h3 {
  font-weight: 900;
}

.quote-table,
.record-table,
.supplier-lines-table,
.supplier-rfq-smart-table,
.supplier-rfq-supplier-table {
  font-variant-numeric: tabular-nums;
}

.quote-table th,
.record-table th {
  font-size: 12px;
  font-weight: 900;
}

.quote-table td,
.record-table td {
  font-size: 13px;
}

.quote-detail-table-wrap {
  background:
    repeating-linear-gradient(
      to bottom,
      #fbfcfe 0,
      #fbfcfe 33px,
      #e7edf4 33px,
      #e7edf4 34px
    );
}

.quote-detail-table-wrap .quote-table td:nth-child(6),
.quote-detail-table-wrap .quote-table td:nth-child(7),
.quote-detail-table-wrap .quote-table td:nth-child(8),
.quote-detail-table-wrap .quote-table td:nth-child(9) {
  font-weight: 800;
}

.status-pill {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.supplier-inquiry-metric {
  background: #f8fafc;
}

.supplier-inquiry-metric strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.contract-price-panel {
  display: grid;
  gap: 12px;
}

.contract-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.contract-price-preview span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.contract-price-preview strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.contract-price-preview em {
  color: #344563;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .supplier-portal {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .supplier-portal-head {
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .supplier-portal-head,
  .supplier-total-line {
    align-items: stretch;
    flex-direction: column;
  }
  .supplier-portal-head .primary-btn {
    width: 100%;
  }
  .supplier-portal-body {
    padding: 12px;
  }
  .supplier-rfq-summary,
  .supplier-guide {
    grid-template-columns: 1fr;
  }
  .supplier-rfq-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .supplier-guide {
    gap: 6px;
  }
  .supplier-attachment-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .supplier-attachment-item div {
    display: flex;
    gap: 8px;
  }
  .supplier-meta {
    grid-template-columns: 1fr;
  }
  .supplier-table-wrap {
    display: none;
    max-height: none;
  }
  .supplier-mobile-lines {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #f6f9fc;
  }
  .supplier-table-head,
  .supplier-total-line {
    padding: 11px;
  }
  .supplier-table-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .supplier-total-line {
    position: sticky;
    bottom: 0;
    z-index: 6;
    border-top: 1px solid #d9e2ec;
    box-shadow: 0 -8px 18px rgba(15, 35, 55, 0.08);
  }
  .supplier-line-fields,
  .supplier-line-fields.intent {
    grid-template-columns: 1fr;
  }
  .supplier-upload-zone {
    min-height: 118px;
  }
  .supplier-upload-file {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .supplier-upload-file .ghost-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* Professional operations UI upgrade. */
:root {
  --bg: #e7edf4;
  --panel: #f8fbfd;
  --panel-strong: #ffffff;
  --surface-subtle: #f2f6fa;
  --surface-muted: #dfe7f0;
  --line: #c4cfdb;
  --line-soft: #dce5ee;
  --text: #172033;
  --muted: #5f6f82;
  --muted-soft: #91a0b1;
  --primary: #1f5f8b;
  --primary-hover: #184b70;
  --primary-soft: #e1edf6;
  --table-head: #dce6f0;
  --table-head-text: #15273d;
  --orange: #a86a13;
  --orange-soft: #fff3d7;
  --danger: #b63a35;
  --success: #08735a;
  --warning: #a86a13;
  --data-blue: #1f5f8b;
  --data-teal: #08735a;
  --data-amber: #a86a13;
  --data-red: #b63a35;
  --data-graphite: #44546f;
  --data-blue-soft: #e1edf6;
  --data-teal-soft: #dff2ed;
  --data-amber-soft: #fff3d7;
  --data-red-soft: #fde9e7;
  --data-graphite-soft: #e8eef5;
  --shadow: 0 1px 2px rgba(23, 32, 51, .07), 0 10px 24px rgba(31, 48, 70, .07);
  --shadow-soft: 0 1px 2px rgba(23, 32, 51, .05);
}

html {
  background: #e7edf4;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #dbe5ef 0, #edf3f8 156px, #e7edf4 100%);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.42;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.app-shell,
.main,
.content {
  background: transparent;
}

.main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 170px),
    var(--bg);
}

.content {
  padding: 14px;
}

.topbar {
  min-height: 56px;
  padding: 8px 16px;
  background: rgba(248, 251, 253, .96);
  border-bottom: 1px solid #bcc8d5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 8px 22px rgba(31, 48, 70, .06);
}

.breadcrumb {
  color: #6a7789;
  font-size: 12px;
}

.topbar h1 {
  color: #122033;
  font-size: 19px;
  font-weight: 900;
}

.top-actions {
  gap: 7px;
}

.sidebar {
  background: #eaf0f6;
  border-right-color: #bdc9d6;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .74);
}

.side-brand,
.side-user {
  background: #f4f8fb;
  border-color: #cbd6e1;
}

.brand-mark {
  border-radius: 8px;
  background: #153852;
  border-color: #153852;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18);
}

.side-brand strong {
  color: #122033;
  font-size: 17px;
}

.module-nav {
  padding: 8px 7px 10px;
}

.nav-row,
.child-row {
  min-height: 32px;
  color: #34465c;
  border-radius: 6px;
}

.nav-row:hover,
.child-row:hover {
  background: #dfe8f1;
}

.nav-row.active,
.child-row.active {
  background: #d8e8f4;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.search-box,
.input-wrap,
input,
select,
textarea {
  border-color: #c8d2df;
  border-radius: 7px;
  background: #fff;
}

.search-box {
  height: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

input,
select {
  height: 38px;
}

textarea {
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus,
.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, .14);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn,
.mini-btn {
  border-radius: 7px;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.ghost-btn,
.icon-btn,
.user-btn,
.mini-btn {
  background: #f8fbfd;
  border-color: #c4cfdb;
  color: #31445b;
}

.ghost-btn:hover,
.icon-btn:hover,
.user-btn:hover,
.mini-btn:hover {
  background: #edf4fa;
  border-color: #aebdcb;
}

.mini-btn {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.quick-create-menu,
.drawer-card,
.ui-dialog-card,
.panel,
.metric-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.quote-bottom-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.supplier-dialog-card,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section {
  border-radius: 8px;
  border-color: #cbd6e1;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  overflow: hidden;
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  min-height: 44px;
  background: #f0f5f9;
  border-color: #cbd6e1;
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.supplier-inquiry-section-head h3 {
  color: #142238;
  font-size: 15px;
  font-weight: 900;
}

.panel-head p,
.quote-form-head span,
.supplier-inquiry-section-head p {
  color: #66778a;
}

.panel-body,
.drawer-body,
.ui-dialog-body {
  background: #f8fbfd;
}

.metric-grid {
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card {
  --metric-color: var(--data-blue);
  --metric-soft: var(--data-blue-soft);
  min-height: 72px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon desc";
  align-items: center;
  gap: 2px 10px;
  padding: 11px 13px;
  background: #f9fcfe;
  border-left: 4px solid var(--metric-color);
}

.metric-card:nth-child(2) {
  --metric-color: var(--data-teal);
  --metric-soft: var(--data-teal-soft);
}

.metric-card:nth-child(3) {
  --metric-color: var(--data-amber);
  --metric-soft: var(--data-amber-soft);
}

.metric-card:nth-child(4) {
  --metric-color: var(--data-red);
  --metric-soft: var(--data-red-soft);
}

.metric-card:nth-child(5) {
  --metric-color: var(--data-graphite);
  --metric-soft: var(--data-graphite-soft);
}

.metric-card > svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 7px;
  background: var(--metric-soft);
  color: var(--metric-color);
}

.metric-card span {
  color: #627286;
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong,
.dashboard-summary-item strong,
.supplier-inquiry-metric strong,
.contract-price-preview strong {
  font-variant-numeric: tabular-nums;
}

.metric-card strong {
  color: var(--metric-color);
  font-size: 25px;
  line-height: 1.05;
  font-weight: 900;
}

.metric-card small {
  color: #6c7c8f;
  font-size: 11px;
  font-weight: 700;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid {
  gap: 9px;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card {
  min-height: 58px;
  padding: 9px 11px;
}

.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card strong {
  font-size: 22px;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-line-picker-table-wrap,
.supplier-rfq-workspace .record-detail-table-wrap,
.contract-preview-scroll {
  border-radius: 8px;
  border-color: #c7d2df;
  background: #e9eff5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.quote-table,
.record-table,
.supplier-lines-table,
.supplier-rfq-smart-table,
.supplier-rfq-supplier-table,
.contract-items-table {
  background: #fff;
  color: #23364d;
  font-variant-numeric: tabular-nums;
}

.quote-table th,
.record-table th,
.supplier-lines-table th,
.supplier-rfq-smart-table th,
.supplier-rfq-supplier-table th,
.contract-items-table th,
.content.page-parts .parts-table th:first-child,
.content.page-parts .parts-table th:nth-child(4),
.content.page-parts .parts-table th:last-child,
.content.page-part-review .part-review-table th {
  height: 34px;
  background: var(--table-head);
  border-bottom: 1px solid #b8c6d5;
  color: var(--table-head-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.quote-table td,
.record-table td,
.supplier-lines-table td,
.supplier-rfq-smart-table td,
.supplier-rfq-supplier-table td,
.contract-items-table td {
  border-bottom-color: #e1e8f0;
  color: #24364f;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.record-table tbody tr:nth-child(even) td,
.supplier-lines-table tbody tr:nth-child(even) td,
.supplier-rfq-smart-table tbody tr:nth-child(even) td,
.supplier-rfq-supplier-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td,
.supplier-lines-table tbody tr:hover td,
.supplier-rfq-smart-table tbody tr:hover td,
.supplier-rfq-supplier-table tbody tr:hover td {
  background: #edf5fb;
}

.quote-table input,
.quote-table select,
.record-table input,
.record-table select,
.supplier-lines-table input,
.supplier-lines-table select,
.supplier-rfq-smart-table input,
.supplier-rfq-smart-table select,
.supplier-rfq-supplier-table input,
.supplier-rfq-supplier-table select {
  min-height: 30px;
  height: 30px;
  border-color: #ccd6e2;
  background: #fff;
}

.quote-subtotal,
.quote-detail-table-wrap .quote-table td:nth-child(8),
.record-table td:nth-child(6),
.contract-total,
.supplier-line-picker-cost {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.quote-detail-table-wrap,
.supplier-rfq-workspace .record-detail-table-wrap {
  background:
    repeating-linear-gradient(
      to bottom,
      #f9fcfe 0,
      #f9fcfe 34px,
      #e2eaf2 34px,
      #e2eaf2 35px
    );
}

.quote-num {
  border-color: #bcc9d7;
  background: #f8fbfd;
}

.quote-num button {
  background: #e6eef7;
  color: var(--primary);
}

.profit-rate,
.status-pill.ok,
.ops-status-item.ok em {
  background: #dff2ed;
  color: var(--success);
}

.profit-rate.low-profit,
.status-pill.danger,
.mini-btn.danger,
.ghost-btn.danger,
.ops-status-item.danger em {
  background: #fde9e7;
  border-color: #e7b8b5;
  color: var(--danger);
}

.status-pill.warn,
.ops-status-item.warn em {
  background: #fff3d7;
  color: #8a570f;
}

.status-pill.info,
.badge-soft:not(.danger) {
  background: #e1edf6;
  color: var(--primary);
}

.status-pill,
.badge-soft,
.supplier-rfq-quote-chip {
  border-radius: 999px;
  font-weight: 900;
}

.dashboard-task,
.quick-action,
.ops-status-item,
.ops-flow-step,
.dashboard-summary-item,
.project-lifecycle-step,
.settings-entry {
  border-color: #d3deea;
  background: #fbfdff;
  border-radius: 8px;
}

.dashboard-task:hover,
.quick-action:hover,
.ops-status-item:hover,
.ops-flow-step:hover,
.settings-entry:hover {
  background: #eff6fb;
  border-color: #aecaec;
}

.quick-action.primary,
.settings-entry.primary {
  background: #eaf3fb;
  border-color: #aecaec;
}

.ops-flow-step:not(:last-child)::after {
  background: #9eb0c2;
}

.supplier-inquiry-hero {
  background: #eaf3fb;
  border-color: #b7cada;
}

.supplier-inquiry-metrics {
  gap: 10px;
}

.supplier-inquiry-metric {
  min-height: 68px;
  background: #fbfdff;
  border-left: 3px solid #9eb0c2;
}

.supplier-inquiry-metric:nth-child(2) {
  border-left-color: var(--data-teal);
}

.supplier-inquiry-metric:nth-child(3) {
  border-left-color: var(--data-amber);
}

.supplier-inquiry-metric:nth-child(4) {
  border-left-color: var(--data-blue);
}

.supplier-rfq-tabs {
  background: #dde6ef;
  border: 1px solid #c4cfdb;
}

.supplier-rfq-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(23, 32, 51, .12);
}

.supplier-rfq-quote-chip {
  border-radius: 7px;
  background: #f5f9fc;
}

.supplier-rfq-quote-chip.best {
  border-color: #93ccb9;
  background: #dff2ed;
}

.compact-toolbar {
  padding: 8px;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: #f1f6fa;
}

.record-toolbar,
.record-actions,
.quote-toolbar,
.supplier-rfq-action-cell {
  gap: 6px;
}

.drawer {
  background: rgba(18, 32, 51, .46);
  backdrop-filter: blur(3px);
}

.drawer-card,
.ui-dialog-card,
.supplier-picker-dialog,
.supplier-qr-dialog {
  border-radius: 8px;
  border-color: #b8c6d5;
  background: #f8fbfd;
  box-shadow: 0 28px 72px rgba(18, 32, 51, .28);
}

.login-panel {
  background: #e7edf4;
}

.login-card {
  border-radius: 8px;
  border-color: #c4cfdb;
  background: #f8fbfd;
}

.login-title h2 {
  color: #122033;
}

@media (max-width: 1180px) {
  .search-box {
    width: 240px;
  }
  .metric-card strong {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .content {
    padding: 10px;
  }
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .top-actions {
    flex-wrap: wrap;
  }
  .search-box {
    width: 100%;
  }
}

/* Presales closed-loop clarity. */
.presales-workorder-table {
  min-width: 1780px;
}

.presales-workorder-table th:nth-child(1),
.presales-workorder-table td:nth-child(1) {
  width: 150px;
  min-width: 150px;
}

.presales-workorder-table th:nth-child(2),
.presales-workorder-table td:nth-child(2) {
  width: 210px;
  min-width: 210px;
}

.presales-workorder-table th:nth-child(3),
.presales-workorder-table td:nth-child(3) {
  width: 118px;
  min-width: 118px;
}

.presales-workorder-table th:nth-child(4),
.presales-workorder-table td:nth-child(4) {
  width: 240px;
  min-width: 240px;
}

.presales-workorder-table th:nth-child(5),
.presales-workorder-table td:nth-child(5),
.presales-workorder-table th:nth-child(7),
.presales-workorder-table td:nth-child(7) {
  width: 92px;
  min-width: 92px;
  text-align: center;
}

.presales-workorder-table th:nth-child(6),
.presales-workorder-table td:nth-child(6) {
  width: 170px;
  min-width: 170px;
}

.presales-workorder-table th:nth-child(8),
.presales-workorder-table td:nth-child(8) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

.presales-workorder-table th:nth-child(9),
.presales-workorder-table td:nth-child(9),
.presales-workorder-table th:nth-child(10),
.presales-workorder-table td:nth-child(10) {
  width: 160px;
  min-width: 160px;
}

.presales-workorder-table th:last-child,
.presales-workorder-table td:last-child {
  width: 300px;
  min-width: 300px;
}

.presales-workorder-table .record-actions {
  min-width: 280px;
  flex-wrap: nowrap;
}

.presales-flow-state {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
}

.presales-flow-state em {
  max-width: 160px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.presales-flow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbfd;
}

.presales-flow-banner strong {
  color: #172b4d;
  font-size: 15px;
  font-weight: 900;
}

.presales-flow-banner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.presales-flow-banner.ok {
  border-color: #9fd6c5;
  background: #dff2ed;
}

.presales-flow-banner.info {
  border-color: #aecaec;
  background: #e1edf6;
}

.presales-flow-banner.warn {
  border-color: #f2d18f;
  background: #fff3d7;
}

.presales-flow-banner.danger {
  border-color: #e7b8b5;
  background: #fde9e7;
}

.presales-picker-table {
  min-width: 1220px;
}

.presales-picker-table th:nth-child(5),
.presales-picker-table td:nth-child(5) {
  width: 170px;
  min-width: 170px;
}

/* Presales workorder upload and table fit. */
.content.page-presales-workorder {
  min-height: 100%;
  display: block;
  overflow: visible;
}

.content.page-presales-workorder > .metric-grid {
  margin-bottom: 10px;
}

.content.page-presales-workorder > .panel {
  min-height: 0;
  max-height: none;
  display: block;
  overflow: visible;
}

.content.page-presales-workorder .record-table-wrap {
  max-height: none;
  min-height: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.presales-workorder-table th {
  top: 0;
}

.presales-workorder-table .muted-row td {
  color: #7a8797;
  background: #f3f6f9;
}

.presales-workorder-table .mini-btn {
  min-width: 54px;
}

.presales-attachment-table {
  min-width: 980px;
}

.presales-attachment-table th:last-child,
.presales-attachment-table td:last-child {
  width: 170px;
  min-width: 170px;
}

.presales-workorder-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.presales-workorder-form .pwo-title-field {
  grid-column: span 2;
}

.presales-workorder-form label span {
  font-size: 12px;
}

.presales-workorder-form textarea {
  min-height: 82px;
}

.pwo-priority-control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pwo-priority-control select {
  min-width: 0;
  flex: 1;
}

.pwo-priority-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .13);
}

.pwo-priority-dot.warn {
  background: #f59f00;
  box-shadow: 0 0 0 3px rgba(245, 159, 0, .16);
}

.pwo-priority-dot.danger {
  background: #e03131;
  box-shadow: 0 0 0 3px rgba(224, 49, 49, .16);
}

.pwo-more-block {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.pwo-more-block summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #24364f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pwo-more-block[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.pwo-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.presales-upload-panel {
  display: grid;
  gap: 8px;
}

.presales-upload-input {
  display: none;
}

.presales-upload-zone {
  width: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
  border: 2px dashed #aebdcb;
  border-radius: 8px;
  background: #f4f8fb;
  color: #31445b;
  text-align: center;
}

.presales-upload-zone:hover,
.presales-upload-zone.dragging {
  border-color: var(--primary);
  background: #eaf3fb;
}

.presales-upload-zone svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.presales-upload-zone strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
}

.presales-upload-zone span {
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.presales-upload-list {
  display: grid;
  gap: 6px;
}

.presales-upload-empty {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 12px;
}

.presales-upload-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}

.presales-upload-file > svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.presales-upload-file span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.presales-upload-file strong {
  min-width: 0;
  color: #172b4d;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presales-upload-file em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.workorder-scan-unit {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.workorder-scan-unit > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workorder-scan-unit span {
  color: #0c66e4;
  font-size: 12px;
  font-weight: 900;
}

.workorder-scan-unit strong {
  color: #172b4d;
  font-size: 15px;
}

.workorder-scan-unit em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.workorder-scan-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.workorder-scan-actions .ghost-btn,
.workorder-scan-actions .primary-btn {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.presales-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f4f8fb;
}

.presales-view-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #344563;
  background: transparent;
  font-weight: 900;
}

.presales-view-tabs button.primary-tab {
  min-width: 176px;
  justify-content: space-between;
  border-color: #9fb6cc;
  color: #172b4d;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .07);
}

.presales-view-tabs button.trash-tab {
  margin-left: auto;
  color: #5f6c7b;
  background: #eef2f6;
}

.presales-view-tabs button.active {
  border-color: #b9c9da;
  color: #0c66e4;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .08);
}

.presales-view-tabs button.primary-tab.active {
  border-color: #0c66e4;
  color: #fff;
  background: #0c66e4;
  box-shadow: 0 7px 18px rgba(12, 102, 228, .18);
}

.presales-view-tabs button.primary-tab.active b {
  color: #0c66e4;
  background: #fff;
}

.presales-view-tabs button.trash-tab.active {
  border-color: #aab7c5;
  color: #2f3a46;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .06);
}

.presales-view-tabs b {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #172b4d;
  background: #e3ebf5;
  font-size: 12px;
}

.presales-view-tabs button.active b {
  color: #fff;
  background: #0c66e4;
}

.task-center-action-panel .customer-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-center-action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.task-center-action-row .primary-btn,
.task-center-action-row .ghost-btn {
  min-width: 104px;
  justify-content: center;
}

.customer-request-table {
  min-width: 1660px;
}

.customer-request-table th:nth-child(1),
.customer-request-table td:nth-child(1) {
  width: 145px;
  min-width: 145px;
}

.customer-request-table th:nth-child(2),
.customer-request-table td:nth-child(2) {
  width: 220px;
  min-width: 220px;
}

.customer-request-table th:nth-child(3),
.customer-request-table td:nth-child(3) {
  width: 112px;
  min-width: 112px;
}

.customer-request-table th:nth-child(4),
.customer-request-table td:nth-child(4) {
  width: 210px;
  min-width: 210px;
}

.customer-request-table th:nth-child(5),
.customer-request-table td:nth-child(5) {
  width: 230px;
  min-width: 230px;
}

.customer-request-table th:nth-child(6),
.customer-request-table td:nth-child(6),
.customer-request-table th:nth-child(7),
.customer-request-table td:nth-child(7) {
  width: 92px;
  min-width: 92px;
  text-align: center;
}

.customer-request-table th:nth-child(8),
.customer-request-table td:nth-child(8) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

.customer-request-table th:nth-child(9),
.customer-request-table td:nth-child(9),
.customer-request-table th:nth-child(10),
.customer-request-table td:nth-child(10) {
  width: 150px;
  min-width: 150px;
}

.customer-request-table th:last-child,
.customer-request-table td:last-child {
  width: 230px;
  min-width: 230px;
}

.customer-request-table .record-actions {
  min-width: 210px;
  flex-wrap: nowrap;
}

.aftersales-workorder-table {
  min-width: 1500px;
}

.aftersales-workorder-table th:last-child,
.aftersales-workorder-table td:last-child {
  width: 210px;
  min-width: 210px;
}

.aftersales-workorder-table .record-actions {
  min-width: 190px;
  flex-wrap: nowrap;
}

.customer-request-table .muted-row td {
  color: #7a8797;
  background: #f3f6f9;
}

.customer-request-table.is-readonly th:last-child,
.customer-request-table.is-readonly td:last-child {
  width: 110px;
  min-width: 110px;
}

.customer-request-table.is-readonly .record-actions {
  min-width: 0;
}

.presales-trash-stack {
  display: grid;
  gap: 14px;
}

.presales-trash-section {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.presales-trash-head {
  min-height: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.presales-trash-head strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
}

.presales-trash-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-request-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbfd;
}

.customer-request-action-panel.is-result {
  align-items: stretch;
}

.customer-request-flow-result {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-request-flow-result div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #d8e2ec;
  border-radius: 7px;
  background: #fff;
}

.customer-request-flow-result div.wide {
  grid-column: 1 / -1;
}

.customer-request-flow-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-request-flow-result strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 13px;
}

.customer-request-merge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px dashed #b9c9da;
  border-radius: 8px;
  background: #fbfdff;
}

.customer-request-merge label {
  margin: 0;
}

.customer-entry-dialog {
  width: min(520px, calc(100vw - 24px));
}

.customer-entry-dialog .supplier-qr-preview img {
  width: min(100%, 330px);
}

@media (max-width: 760px) {
  .presales-workorder-form .form-grid,
  .pwo-more-grid {
    grid-template-columns: 1fr;
  }
  .presales-workorder-form .pwo-title-field {
    grid-column: 1 / -1;
  }
  .content.page-presales-workorder > .panel,
  .content.page-presales-workorder .record-table-wrap {
    max-height: none;
  }
  .presales-upload-zone {
    min-height: 128px;
  }
  .presales-view-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .workorder-scan-unit {
    align-items: stretch;
    display: grid;
  }
  .workorder-scan-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .presales-view-tabs button.trash-tab {
    margin-left: 0;
  }
  .trace-center-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .trace-center-tabs button.trash-tab {
    margin-left: 0;
  }
  .customer-request-action-panel,
  .customer-request-merge {
    grid-template-columns: 1fr;
  }
  .customer-request-flow-result {
    grid-template-columns: 1fr;
  }
  .customer-portal-panel,
  .customer-portal-facts,
  .customer-portal-center-summary {
    grid-template-columns: 1fr;
  }
}


/* Deep optimization: action density and table fit. */
.record-actions {
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.record-actions:has(.compact-action-menu) {
  flex-wrap: nowrap;
}

.record-table .record-actions,
.presales-workorder-table .record-actions,
.customer-request-table .record-actions,
.customers-table .record-actions {
  min-width: 0;
  justify-content: flex-start;
}

.compact-action-menu {
  width: 78px;
  flex: 0 0 78px;
  display: inline-block;
  position: relative;
  color: #31445b;
  font-size: 12px;
  font-weight: 800;
  vertical-align: top;
}

.compact-action-menu summary {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 4px 7px;
  border: 1px solid #c4cfdb;
  border-radius: 7px;
  background: #f8fbfd;
  color: #31445b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.compact-action-menu summary::-webkit-details-marker {
  display: none;
}

.compact-action-menu summary svg {
  width: 13px;
  height: 13px;
}

.compact-action-menu[open] summary {
  border-color: #94abc2;
  background: #edf4fa;
}

.compact-action-menu[open] summary svg {
  transform: rotate(180deg);
}

.compact-action-menu-list {
  display: grid;
  gap: 4px;
  width: 118px;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid #c4cfdb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, .10);
}

.compact-action-menu[open] .compact-action-menu-list {
  display: none;
}

.compact-action-menu-floating-list {
  position: fixed;
  top: var(--compact-menu-top, 0);
  left: var(--compact-menu-left, 0);
  right: auto;
  bottom: auto;
  z-index: 2147483000;
  display: grid;
  gap: 4px;
  width: 118px;
  max-height: min(280px, calc(100vh - 16px));
  margin: 0;
  padding: 5px;
  overflow: auto;
  border: 1px solid #c4cfdb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 32, 51, .24);
}

.compact-action-menu-list button,
.compact-action-menu-floating-list button {
  min-height: 28px;
  width: 100%;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24364f;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.compact-action-menu-list button:hover,
.compact-action-menu-floating-list button:hover {
  background: #edf4fa;
  color: var(--primary);
}

.compact-action-menu-list button.danger,
.compact-action-menu-floating-list button.danger {
  color: var(--danger);
}

.compact-action-menu-list button.danger:hover,
.compact-action-menu-floating-list button.danger:hover {
  background: #fde9e7;
}

.compact-action-menu-list button:disabled,
.compact-action-menu-floating-list button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.record-table th:last-child,
.record-table td:last-child {
  width: 138px;
  min-width: 138px;
}

.record-table {
  min-width: 1420px;
}

.customers-table {
  min-width: 1580px;
}

.customers-table th:last-child,
.customers-table td:last-child {
  width: 138px;
  min-width: 138px;
}

.presales-workorder-table {
  min-width: 1600px;
}

.presales-workorder-table th:last-child,
.presales-workorder-table td:last-child,
.customer-request-table th:last-child,
.customer-request-table td:last-child {
  width: 138px;
  min-width: 138px;
}

.customer-request-table {
  min-width: 1560px;
}

.content.page-presales-workorder .panel-head p,
.content.page-supplier-profile .panel-head p,
.content.page-customers .panel-head p {
  display: none;
}

.content.page-customers .record-table-wrap,
.content.page-supplier-profile .record-table-wrap,
.content.page-presales-workorder .record-table-wrap {
  background: #eef4f8;
}

.customer-request-action-panel,
.customer-action-row {
  align-items: flex-start;
}

.customer-request-action-panel .primary-btn,
.customer-request-action-panel .ghost-btn,
.customer-action-row .primary-btn,
.customer-action-row .ghost-btn {
  min-height: 32px;
}

@media (max-width: 760px) {
  .compact-action-menu {
    width: 92px;
    flex-basis: 92px;
  }

  .compact-action-menu-list {
    width: 132px;
  }

  .record-actions {
    flex-wrap: wrap;
  }
}
/* RFQ batch drawer refinement. */
.drawer-card.supplier-inquiry-drawer {
  width: min(1380px, calc(100vw - 24px));
}

.supplier-rfq-workspace .supplier-inquiry-hero {
  align-items: flex-start;
}

.supplier-rfq-workspace .supplier-inquiry-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.supplier-rfq-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.supplier-rfq-action-cell {
  align-items: flex-start;
  flex-wrap: nowrap;
  position: relative;
}

.supplier-rfq-action-cell .row-action-dropdown {
  position: relative;
  flex: 0 0 72px;
}

.supplier-rfq-action-cell .row-action-dropdown > summary {
  width: 100%;
}

.supplier-rfq-supplier-table {
  min-width: 860px;
}

.supplier-rfq-supplier-table th:nth-child(6) {
  width: 86px;
}

.supplier-rfq-supplier-table .supplier-rfq-action-cell {
  min-width: 72px;
  flex-wrap: nowrap;
}

.supplier-rfq-supplier-table .supplier-rfq-action-cell .mini-btn {
  min-width: 58px;
  flex: 0 0 auto;
}

.supplier-rfq-secondary-section {
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.supplier-rfq-secondary-section > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
}

.supplier-rfq-secondary-section > summary::-webkit-details-marker {
  display: none;
}

.supplier-rfq-secondary-section strong {
  display: block;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}

.supplier-rfq-secondary-section span {
  display: block;
  margin-top: 2px;
  color: #657386;
  font-size: 12px;
  font-weight: 700;
}

.supplier-rfq-secondary-section > summary svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform .18s ease;
}

.supplier-rfq-secondary-section[open] > summary svg {
  transform: rotate(180deg);
}

.supplier-rfq-secondary-section #supplierRfqPriceUpdateList {
  padding: 10px;
}

.content.page-supplier-inquiry {
  grid-template-rows: minmax(0, 1fr);
}

.content.page-supplier-inquiry > .supplier-rfq-workbench-panel {
  height: calc(100vh - 66px - 54px - 42px - 20px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.supplier-rfq-workbench-panel {
  padding: 12px;
}

.supplier-rfq-workbench-head {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e5edf4;
}

.supplier-rfq-workbench-head h2 {
  margin: 0;
  color: #12223a;
  font-size: 18px;
  font-weight: 900;
}

.supplier-rfq-workbench-head p {
  margin: 4px 0 0;
  color: #627083;
  font-size: 12.5px;
  line-height: 1.45;
}

.supplier-rfq-status-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0;
}

.supplier-rfq-status-tabs button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label count"
    "desc desc";
  align-content: center;
  gap: 3px 8px;
  padding: 9px 10px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #f8fafc;
  color: #203247;
  text-align: left;
  cursor: pointer;
}

.supplier-rfq-status-tabs button.active {
  border-color: #7aa9cf;
  background: #eef6fb;
  box-shadow: inset 3px 0 0 #0e74b8;
}

.supplier-rfq-status-tabs span {
  grid-area: label;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-rfq-status-tabs strong {
  grid-area: count;
  color: #c62828;
  font-size: 16px;
  font-weight: 900;
}

.supplier-rfq-status-tabs em {
  grid-area: desc;
  color: #697789;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-rfq-workbench-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.supplier-rfq-batch-rail,
.supplier-rfq-detail-pane {
  min-height: 0;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.supplier-rfq-batch-rail {
  display: flex;
  flex-direction: column;
}

.supplier-rfq-rail-head {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #e2eaf2;
  background: #f3f7fa;
}

.supplier-rfq-rail-head strong {
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}

.supplier-rfq-rail-head span {
  color: #657386;
  font-size: 12px;
  font-weight: 800;
}

.supplier-rfq-batch-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  overflow: auto;
}

.supplier-rfq-batch-card {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #ffffff;
  color: #203247;
  text-align: left;
  cursor: pointer;
}

.supplier-rfq-batch-card.active {
  border-color: #7aa9cf;
  background: #eef6fb;
  box-shadow: inset 3px 0 0 #0e74b8;
}

.supplier-rfq-card-top,
.supplier-rfq-card-grid {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.supplier-rfq-card-top strong,
.supplier-rfq-card-main {
  min-width: 0;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-rfq-card-sub {
  min-width: 0;
  color: #66758a;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-rfq-card-grid em {
  min-width: 0;
  display: grid;
  gap: 1px;
  color: #718096;
  font-size: 11px;
  font-style: normal;
}

.supplier-rfq-card-grid b {
  color: #203247;
  font-size: 12px;
  font-weight: 900;
}

.supplier-rfq-detail-pane {
  display: flex;
  flex-direction: column;
}

.supplier-rfq-detail-head {
  flex: 0 0 auto;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #e2eaf2;
  background: #ffffff;
}

.supplier-rfq-detail-head span {
  display: block;
  color: #0e74b8;
  font-size: 12px;
  font-weight: 900;
}

.supplier-rfq-detail-head h3 {
  margin: 2px 0;
  color: #12223a;
  font-size: 16px;
  font-weight: 900;
}

.supplier-rfq-detail-head p {
  margin: 0;
  color: #657386;
  font-size: 12.5px;
}

.supplier-rfq-quick-actions {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #e2eaf2;
  background: #ffffff;
  overflow-x: auto;
}

.supplier-rfq-quick-actions > * {
  flex: 0 0 auto;
}

.supplier-rfq-quick-actions .primary-btn,
.supplier-rfq-quick-actions .ghost-btn {
  min-height: 30px;
  padding: 0 10px;
}

.supplier-rfq-workbench-tabs {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 12px;
  border-bottom: 1px solid #e2eaf2;
  background: #f8fafc;
}

.supplier-rfq-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px 12px;
  overflow: auto;
}

.supplier-rfq-detail-scroll > [hidden] {
  display: none !important;
}

.supplier-rfq-detail-scroll .supplier-inquiry-section {
  margin: 0 0 10px;
}

.supplier-rfq-material-table {
  min-width: 820px;
}

.supplier-rfq-loading,
.supplier-rfq-empty-detail {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.supplier-rfq-empty-detail strong {
  color: #203247;
  font-size: 15px;
}

.supplier-rfq-loading.error {
  color: #b42318;
}

.supplier-rfq-workspace .record-detail-table-wrap {
  max-height: min(52vh, 460px);
}

@media (max-width: 760px) {
  .supplier-rfq-tabs {
    grid-template-columns: 1fr;
  }

  .supplier-rfq-action-cell {
    flex-wrap: wrap;
  }
}

/* Professional digital UI pass. */
:root {
  --bg: #e8edf3;
  --panel: #f8fafc;
  --panel-strong: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-muted: #dfe7ef;
  --line: #bdc9d6;
  --line-soft: #d8e1ea;
  --text: #1c2837;
  --muted: #607286;
  --muted-soft: #8b9aab;
  --primary: #1f5e7a;
  --primary-hover: #184d65;
  --primary-soft: #deedf3;
  --table-head: #dbe5ee;
  --table-head-text: #1f3448;
  --success: #0f766e;
  --warning: #a16207;
  --danger: #b42318;
  --data-blue: #1f5e7a;
  --data-teal: #0f766e;
  --data-amber: #a16207;
  --data-red: #b42318;
  --data-graphite: #475569;
  --data-blue-soft: #deedf3;
  --data-teal-soft: #dff4ef;
  --data-amber-soft: #f7edcf;
  --data-red-soft: #f8dfdc;
  --data-graphite-soft: #e6ebf0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 14px 30px rgba(30, 41, 59, .07);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 18px rgba(30, 41, 59, .05);
}

body {
  color: var(--text);
  background: #e8edf3;
}

.main,
.content {
  background: #e8edf3;
}

.content {
  padding: 14px;
}

.panel,
.metric-card,
.drawer-card,
.ui-dialog-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel {
  border-radius: 8px;
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  background: #eef4f8;
  border-color: var(--line);
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.drawer-head h2,
.supplier-inquiry-section-head h3 {
  color: #162436;
  font-size: 15px;
  font-weight: 900;
}

.panel-head p,
.quote-form-head span,
.supplier-inquiry-section-head p,
.drawer-head p {
  color: #657789;
}

.metric-grid {
  gap: 10px;
}

.metric-card {
  --metric-color: var(--data-blue);
  --metric-soft: var(--data-blue-soft);
  min-height: 74px;
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label icon"
    "value icon"
    "desc desc";
  gap: 4px 10px;
  padding: 12px 13px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--metric-color);
  background: var(--panel-strong);
}

.metric-card:nth-child(2),
.metric-grid .metric-card:nth-child(6) {
  --metric-color: var(--data-teal);
  --metric-soft: var(--data-teal-soft);
}

.metric-card:nth-child(3),
.metric-grid .metric-card:nth-child(7) {
  --metric-color: var(--data-amber);
  --metric-soft: var(--data-amber-soft);
}

.metric-card:nth-child(4),
.metric-grid .metric-card:nth-child(8) {
  --metric-color: var(--data-red);
  --metric-soft: var(--data-red-soft);
}

.metric-card:nth-child(5) {
  --metric-color: var(--data-graphite);
  --metric-soft: var(--data-graphite-soft);
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: var(--metric-soft);
}

.metric-card > svg,
.metric-card span i {
  color: var(--metric-color);
}

.metric-card span {
  color: #5d7084;
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  color: var(--metric-color);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  padding-bottom: 6px;
  color: #6d7e90;
  font-size: 11px;
  font-weight: 750;
}

.ops-metric-grid {
  grid-template-columns: repeat(8, minmax(126px, 1fr));
}

.ops-metric-grid .metric-card {
  min-height: 70px;
  padding: 11px 12px 10px;
}

.ops-metric-grid .metric-card strong {
  font-size: 24px;
}

.ops-board-grid {
  gap: 12px;
}

.ops-page .panel {
  border-color: #bfcbd8;
  box-shadow: var(--shadow);
}

.ops-page .panel-head {
  min-height: 48px;
  padding: 9px 12px;
}

.dashboard-task,
.quick-action,
.ops-status-item,
.ops-closure-card,
.ops-flow-step {
  border-color: #ccd8e4;
  background: #fbfdff;
}

.dashboard-task {
  border-left-width: 4px;
}

.dashboard-task strong,
.ops-closure-card strong,
.quick-action strong,
.ops-status-item strong,
.ops-flow-step strong {
  color: #17263a;
}

.dashboard-task em,
.ops-status-item em,
.ops-closure-card em {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ops-closure-grid {
  gap: 8px;
}

.ops-closure-card {
  min-height: 72px;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-left: 4px solid var(--data-blue);
}

.ops-closure-card.warn { border-left-color: var(--data-amber); }
.ops-closure-card.danger { border-left-color: var(--data-red); }
.ops-closure-card.ok { border-left-color: var(--data-teal); }

.ops-closure-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}

.ops-closure-card.warn .ops-closure-icon {
  background: var(--data-amber-soft);
  color: var(--data-amber);
}

.ops-closure-card.danger .ops-closure-icon {
  background: var(--data-red-soft);
  color: var(--data-red);
}

.ops-closure-card.ok .ops-closure-icon {
  background: var(--data-teal-soft);
  color: var(--data-teal);
}

.ops-closure-card span,
.quick-action span,
.ops-flow-step span,
.ops-status-item span {
  color: #657789;
}

.ops-closure-card em {
  min-width: 46px;
  padding: 4px 8px;
  background: #edf4f8;
  color: var(--primary);
  text-align: center;
}

.quick-action {
  min-height: 62px;
  border-left: 3px solid #c7d4df;
}

.quick-action.primary {
  border-left-color: var(--primary);
  background: #eef7fb;
}

.quick-action:hover,
.dashboard-task:hover,
.ops-status-item:hover,
.ops-closure-card:hover,
.ops-flow-step:hover {
  border-color: #9fb3c5;
  background: #f4f9fc;
}

.ops-flow-rail {
  border: 1px solid #c7d4df;
  background: #eef4f8;
  padding: 6px;
}

.ops-flow-step {
  background: #fff;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-line-picker-table-wrap,
.supplier-rfq-workspace .record-detail-table-wrap,
.contract-preview-scroll {
  border-color: #c2cfdb;
  background: #eef4f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.quote-table,
.record-table,
.supplier-lines-table,
.supplier-rfq-smart-table,
.supplier-rfq-supplier-table,
.contract-items-table {
  background: #fff;
  color: #203247;
  font-variant-numeric: tabular-nums;
}

.quote-table th,
.record-table th,
.supplier-lines-table th,
.supplier-rfq-smart-table th,
.supplier-rfq-supplier-table th,
.contract-items-table th {
  height: 36px;
  background: #dce7ef;
  border-bottom: 1px solid #acbdcc;
  color: #1d3348;
  font-size: 12px;
  font-weight: 950;
}

.quote-table td,
.record-table td,
.supplier-lines-table td,
.supplier-rfq-smart-table td,
.supplier-rfq-supplier-table td,
.contract-items-table td {
  border-bottom-color: #e2eaf2;
  color: #22364b;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.record-table tbody tr:nth-child(even) td,
.supplier-lines-table tbody tr:nth-child(even) td,
.supplier-rfq-smart-table tbody tr:nth-child(even) td,
.supplier-rfq-supplier-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td,
.supplier-lines-table tbody tr:hover td,
.supplier-rfq-smart-table tbody tr:hover td,
.supplier-rfq-supplier-table tbody tr:hover td {
  background: #edf6fa;
}

.status-pill,
.badge-soft {
  min-height: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.status-pill.ok,
.badge-soft.ok {
  border-color: #9fd2c7;
  background: #dff4ef;
  color: var(--success);
}

.status-pill.warn {
  border-color: #e6c975;
  background: #f7edcf;
  color: var(--warning);
}

.status-pill.danger,
.mini-btn.danger,
.ghost-btn.danger {
  border-color: #efb3ad;
  background: #f8dfdc;
  color: var(--danger);
}

.status-pill.info,
.badge-soft:not(.danger) {
  border-color: #b5cede;
  background: #deedf3;
  color: var(--primary);
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.ghost-btn,
.mini-btn,
.icon-btn,
.user-btn {
  border-color: #bfcbd8;
  background: #f8fbfd;
  color: #2d4054;
}

.ghost-btn:hover,
.mini-btn:hover,
.icon-btn:hover,
.user-btn:hover {
  border-color: #9fb3c5;
  background: #eef6fa;
}

.supplier-inquiry-hero {
  border-color: #b7c8d6;
  background: #eaf3f7;
}

.supplier-inquiry-metrics {
  gap: 9px;
}

.supplier-inquiry-metric {
  min-height: 70px;
  border-left: 4px solid var(--data-blue);
  background: #fbfdff;
}

.supplier-inquiry-metric:nth-child(2),
.supplier-inquiry-metric:nth-child(6) {
  border-left-color: var(--data-teal);
}

.supplier-inquiry-metric:nth-child(3),
.supplier-inquiry-metric:nth-child(7) {
  border-left-color: var(--data-amber);
}

.supplier-inquiry-metric:nth-child(4),
.supplier-inquiry-metric:nth-child(8) {
  border-left-color: var(--data-red);
}

.supplier-rfq-tabs {
  border-color: #bfcbd8;
  background: #dce7ef;
}

.supplier-rfq-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(30, 41, 59, .12);
}

.supplier-rfq-tabs {
  grid-template-columns: minmax(176px, 1.25fr) repeat(2, minmax(0, .9fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #f4f8fb;
}

.supplier-rfq-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.supplier-rfq-tabs button.primary-tab {
  min-width: 176px;
  border-color: #9fb6cc;
  color: #172b4d;
  background: #fff;
  box-shadow: 0 5px 14px rgba(9, 30, 66, .07);
}

.supplier-rfq-tabs button.active {
  border-color: #b9c9da;
  color: #0c66e4;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--primary), 0 5px 14px rgba(9, 30, 66, .08);
}

.supplier-rfq-tabs button.primary-tab.active {
  border-color: #0c66e4;
  color: #fff;
  background: #0c66e4;
  box-shadow: 0 7px 18px rgba(12, 102, 228, .18);
}

@media (max-width: 760px) {
  .supplier-rfq-tabs {
    grid-template-columns: 1fr;
  }

  .supplier-rfq-tabs button.primary-tab {
    min-width: 0;
  }
}

.drawer {
  background: rgba(24, 36, 50, .46);
}

.drawer-card,
.ui-dialog-card {
  border-color: #aebdcb;
  box-shadow: 0 24px 64px rgba(24, 36, 50, .28);
}

.detail-list > div {
  border-color: #d2dde8;
  background: #fbfdff;
}

.security-note {
  border-color: #e3c46d;
  background: #f8f1d8;
  color: #6f4e08;
}

@media (max-width: 1180px) {
  .ops-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .metric-grid,
  .ops-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 68px;
  }

  .ops-closure-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ops-closure-card em {
    grid-column: 1 / -1;
    width: max-content;
  }

  .customer-portal-manage,
  .customer-managed-request-head {
    grid-template-columns: 1fr;
  }

  .customer-brand-card,
  .customer-brand-main {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-logo-actions {
    justify-content: stretch;
  }

  .customer-logo-actions .ghost-btn {
    flex: 1 1 130px;
    justify-content: center;
  }
}

/* Design System 2026: restrained enterprise UI polish. */
:root {
  --bg: #e7edf3;
  --panel: #fbfdff;
  --panel-strong: #ffffff;
  --surface-subtle: #f5f8fb;
  --surface-muted: #e5edf4;
  --line: #c6d2dd;
  --line-soft: #dde6ee;
  --text: #172033;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --primary: #164e77;
  --primary-hover: #0f3e62;
  --primary-soft: #e4f0f7;
  --table-head: #edf3f8;
  --table-head-text: #1f354b;
  --orange: #a76712;
  --danger: #b42318;
  --success: #08775f;
  --warning: #9a650f;
  --data-blue: #164e77;
  --data-teal: #0f766e;
  --data-amber: #a76712;
  --data-red: #b94a48;
  --data-graphite: #475569;
  --data-blue-soft: #e4f0f7;
  --data-teal-soft: #e4f5f2;
  --data-amber-soft: #fff2d6;
  --data-red-soft: #fdecea;
  --data-graphite-soft: #eef2f6;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(31, 48, 70, .08);
  --shadow-strong: 0 18px 48px rgba(15, 23, 42, .18);
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #f7fafc 0, #e7edf3 220px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.app-shell,
.main {
  background:
    radial-gradient(circle at 24% 0%, rgba(22, 78, 119, .08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 220px),
    var(--bg);
}

.content {
  padding: 16px;
  background: transparent;
}

.topbar {
  min-height: 58px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(151, 166, 182, .62);
  background: rgba(250, 253, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .78), 0 10px 26px rgba(30, 41, 59, .06);
}

.breadcrumb {
  color: #738195;
  font-size: 11px;
  font-weight: 800;
}

.topbar h1 {
  color: #142238;
  font-size: 20px;
  font-weight: 950;
}

.sidebar {
  background: #eaf1f7;
  border-right-color: #b9c7d5;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .78);
}

.side-brand,
.side-user {
  background: rgba(248, 251, 253, .84);
  border-color: #c6d2dd;
}

.brand-mark {
  background: linear-gradient(180deg, #1c5d88, #123d5f);
  border-color: #123d5f;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.module-nav {
  padding: 8px 7px 10px;
}

.nav-row,
.child-row {
  min-height: 33px;
  border-radius: 7px;
  color: #34465c;
  font-weight: 800;
}

.nav-row:hover,
.child-row:hover {
  background: #dfe9f2;
  color: #1d3348;
}

.nav-row.active,
.child-row.active {
  background: #d6e7f2;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary), 0 1px 0 rgba(255, 255, 255, .58);
}

.panel,
.metric-card,
.drawer-card,
.ui-dialog-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.quote-bottom-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-rfq-scheme-block,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section,
.customer-workbench,
.customer-workbench-section,
.customer-brand-card {
  border: 1px solid rgba(188, 202, 216, .88);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  min-height: 46px;
  border-color: #c7d3df;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(239, 246, 250, .94));
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.drawer-head h2,
.supplier-inquiry-section-head h3 {
  color: #142238;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.panel-head p,
.quote-form-head span,
.supplier-inquiry-section-head p,
.drawer-head p {
  color: #64748b;
  line-height: 1.45;
}

.panel-body,
.drawer-body,
.ui-dialog-body {
  background: #f8fbfd;
}

input,
select,
textarea,
.input-wrap,
.search-box {
  border-color: #c3cfdc;
  border-radius: 7px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 78, 119, .15);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn,
.mini-btn {
  min-height: 32px;
  border-radius: 7px;
  font-weight: 850;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  border-color: #123d5f;
  background: linear-gradient(180deg, #1f678f, #164e77);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(15, 23, 42, .12);
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  border-color: #0f3e62;
  background: linear-gradient(180deg, #1a5a80, #0f3e62);
}

.ghost-btn,
.mini-btn,
.icon-btn,
.user-btn {
  border-color: #bdcbd8;
  background: linear-gradient(180deg, #ffffff, #f3f7fa);
  color: #2d4054;
}

.ghost-btn:hover,
.mini-btn:hover,
.icon-btn:hover,
.user-btn:hover {
  border-color: #97aabd;
  background: #edf5f9;
}

.ghost-btn.danger,
.mini-btn.danger,
.status-pill.danger {
  border-color: #efb3ad;
  background: #fde9e7;
  color: var(--danger);
}

.metric-grid,
.ops-metric-grid {
  gap: 10px;
}

.metric-card {
  --metric-color: var(--data-blue);
  --metric-soft: var(--data-blue-soft);
  min-height: 74px;
  position: relative;
  overflow: hidden;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 11px;
  padding: 12px 14px;
  border-left: 0;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric-color);
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--metric-color), transparent);
  opacity: .28;
}

.metric-card > svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 8px;
  background: var(--metric-soft);
  color: var(--metric-color);
}

.metric-card span {
  color: #607287;
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  color: var(--metric-color);
  font-size: 26px;
  line-height: 1.04;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  color: #708095;
  font-size: 11px;
  font-weight: 750;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-line-picker-table-wrap,
.supplier-rfq-workspace .record-detail-table-wrap,
.contract-preview-scroll {
  border-color: #bfcedb;
  background: #edf3f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.quote-table,
.record-table,
.supplier-lines-table,
.supplier-rfq-smart-table,
.supplier-rfq-supplier-table,
.contract-items-table {
  background: #fff;
  color: #203247;
  font-variant-numeric: tabular-nums;
}

.quote-table th,
.record-table th,
.supplier-lines-table th,
.supplier-rfq-smart-table th,
.supplier-rfq-supplier-table th,
.contract-items-table th {
  height: 36px;
  border-bottom: 1px solid #aebfce;
  background:
    linear-gradient(180deg, #f4f8fb, #e5edf4);
  color: #1d3348;
  font-size: 12px;
  font-weight: 950;
}

.quote-table td,
.record-table td,
.supplier-lines-table td,
.supplier-rfq-smart-table td,
.supplier-rfq-supplier-table td,
.contract-items-table td {
  border-bottom-color: #e1e9f1;
  color: #22364b;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.record-table tbody tr:nth-child(even) td,
.supplier-lines-table tbody tr:nth-child(even) td,
.supplier-rfq-smart-table tbody tr:nth-child(even) td,
.supplier-rfq-supplier-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td,
.supplier-lines-table tbody tr:hover td,
.supplier-rfq-smart-table tbody tr:hover td,
.supplier-rfq-supplier-table tbody tr:hover td {
  background: #ecf5fa;
}

.status-pill,
.badge-soft,
.supplier-rfq-quote-chip {
  min-height: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.status-pill.ok,
.badge-soft.ok {
  border-color: #9fd2c7;
  background: #dff4ef;
  color: var(--success);
}

.status-pill.warn {
  border-color: #e6c975;
  background: #fff0c7;
  color: var(--warning);
}

.status-pill.info,
.badge-soft:not(.danger) {
  border-color: #b5cede;
  background: #deedf3;
  color: var(--primary);
}

.status-pill.vip {
  border-color: #dfbf57;
  background: linear-gradient(180deg, #fff7dd, #f6e7b7);
  color: #7a5200;
}

.drawer {
  background: rgba(16, 26, 40, .48);
  backdrop-filter: blur(3px);
}

.drawer-card,
.ui-dialog-card,
.supplier-picker-dialog,
.supplier-qr-dialog {
  box-shadow: var(--shadow-strong);
}

.customer-brand-card {
  border-left: 5px solid var(--primary);
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
}

.customer-brand-card.vip {
  border-color: #dfbf57;
  border-left-color: #a97806;
  background:
    linear-gradient(135deg, #fff8e8 0%, #f8fbfd 62%, #eef6f4 100%);
}

.customer-logo-mark {
  border-color: #bfcedb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.content.page-presales-workorder .presales-workorder-table .muted-row td,
.content.page-presales-workorder .customer-request-table .muted-row td,
.content.page-presales-workorder .presales-workorder-table .muted-row:hover td,
.content.page-presales-workorder .customer-request-table .muted-row:hover td {
  color: #7a8797;
  background: #f3f6f9;
}

@media (max-width: 760px) {
  .content {
    padding: 10px;
  }

  .topbar {
    align-items: stretch;
  }

  .metric-card {
    min-height: 68px;
  }
}

/* Login refresh: industrial command-center entrance. */
.login-screen {
  min-height: 100vh;
  grid-template-columns: minmax(620px, 1.18fr) minmax(430px, .82fr);
  background: #0d131b;
}

.login-visual {
  min-width: 0;
  min-height: 100vh;
  background: #0a1119;
}

.login-visual img {
  opacity: .42;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.02);
}

.login-visual::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, .88) 0%, rgba(9, 16, 24, .58) 52%, rgba(9, 16, 24, .88) 100%),
    linear-gradient(180deg, rgba(12, 21, 32, .22) 0%, rgba(6, 10, 16, .82) 100%);
}

.visual-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .26;
  background:
    repeating-linear-gradient(90deg, rgba(178, 195, 212, .16) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(178, 195, 212, .12) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  pointer-events: none;
}

.visual-statusbar {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 44px;
  right: 44px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border: 1px solid rgba(182, 199, 216, .22);
  border-radius: 8px;
  background: rgba(14, 24, 35, .56);
  color: #cfdae6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.visual-statusbar span,
.visual-statusbar strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.visual-statusbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-statusbar strong {
  flex: 0 0 auto;
  color: #7dd3c7;
}

.visual-statusbar strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #20c997;
  box-shadow: 0 0 0 5px rgba(32, 201, 151, .12);
  vertical-align: 1px;
}

.visual-copy {
  z-index: 3;
  left: 56px;
  right: 56px;
  bottom: auto;
  top: 132px;
  color: #f8fbfd;
}

.visual-copy span {
  display: inline-flex;
  margin-bottom: 16px;
  color: #7dd3c7;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.visual-copy h1 {
  color: #ffffff;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .96;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.visual-copy p {
  margin-top: 18px;
  color: rgba(230, 238, 247, .66);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.visual-command-panel {
  position: absolute;
  z-index: 3;
  left: 56px;
  bottom: 92px;
  width: min(560px, calc(100% - 112px));
  padding: 16px;
  border: 1px solid rgba(182, 199, 216, .24);
  border-radius: 8px;
  background: rgba(12, 21, 31, .68);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.command-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.command-panel-head span {
  color: #f4c76b;
  font-size: 11px;
  font-weight: 950;
}

.command-panel-head strong {
  color: #f8fbfd;
  font-size: 14px;
}

.command-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.command-flow div {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid rgba(196, 207, 219, .18);
  border-radius: 8px;
  background: rgba(248, 251, 253, .07);
}

.command-flow div::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, #7dd3c7, #f4c76b);
  transform-origin: left center;
  animation: loginFlowScan 2.8s ease-in-out infinite;
}

.command-flow div:nth-child(2)::after { animation-delay: .18s; }
.command-flow div:nth-child(3)::after { animation-delay: .36s; }
.command-flow div:nth-child(4)::after { animation-delay: .54s; }

.command-flow b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 199, .48);
  border-radius: 7px;
  background: rgba(125, 211, 199, .12);
  color: #e9fffb;
  font-size: 17px;
}

.command-flow span {
  color: rgba(230, 238, 247, .72);
  font-size: 12px;
  font-weight: 800;
}

.command-signal {
  height: 28px;
  display: flex;
  align-items: end;
  gap: 5px;
  margin-top: 14px;
}

.command-signal span {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 199, .42), rgba(244, 199, 107, .72));
  animation: loginSignal 1.9s ease-in-out infinite;
}

.command-signal span:nth-child(2) { animation-delay: .14s; }
.command-signal span:nth-child(3) { animation-delay: .28s; }
.command-signal span:nth-child(4) { animation-delay: .42s; }
.command-signal span:nth-child(5) { animation-delay: .56s; }

.visual-footer {
  z-index: 3;
  left: 56px;
  right: 56px;
  bottom: 28px;
  color: rgba(230, 238, 247, .48);
}

.visual-footer strong {
  color: rgba(244, 199, 107, .64);
  letter-spacing: 0;
}

.login-panel {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  padding: 48px 58px;
  background:
    linear-gradient(135deg, #eef3f7 0%, #f8fbfd 45%, #e7eef4 100%);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(31, 94, 122, .08) 30% 31%, transparent 31% 100%),
    repeating-linear-gradient(0deg, rgba(120, 139, 158, .08) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 420px;
  max-width: 100%;
  padding: 28px;
  border: 1px solid rgba(177, 191, 207, .9);
  border-radius: 8px;
  background: rgba(248, 251, 253, .88);
  box-shadow: 0 24px 60px rgba(30, 41, 59, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #1f5e7a;
  border-radius: 8px;
  background: #1f5e7a;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.login-brand-row strong {
  display: block;
  color: #172b3d;
  font-size: 17px;
  line-height: 1.2;
}

.login-brand-row em {
  display: block;
  margin-top: 2px;
  color: #607286;
  font-size: 12px;
  font-style: normal;
}

.login-title span {
  display: block;
  margin-bottom: 8px;
  color: #a16207;
  font-size: 11px;
  font-weight: 950;
}

.login-title h2 {
  margin-bottom: 6px;
  color: #122033;
  font-size: 30px;
  line-height: 1.12;
}

.login-title p {
  margin-bottom: 20px;
  color: #607286;
  font-size: 13px;
}

.login-card .segmented {
  gap: 5px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid #d2dce7;
  border-radius: 8px;
  background: #e8eef4;
}

.login-card .segmented button {
  height: 34px;
  border-radius: 6px;
  color: #465b70;
  font-weight: 850;
}

.login-card .segmented button.active {
  background: #fff;
  color: #1f5e7a;
  box-shadow: 0 6px 16px rgba(30, 41, 59, .10);
}

.login-form {
  gap: 15px;
}

.login-form label span {
  color: #263b50;
  font-size: 12px;
  font-weight: 900;
}

.login-card .input-wrap {
  height: 42px;
  border-color: #c4cfdb;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.login-card .input-wrap:focus-within {
  border-color: #1f5e7a;
  box-shadow: 0 0 0 4px rgba(31, 94, 122, .12);
}

.login-card .input-wrap svg {
  color: #607286;
}

.login-card .input-wrap input {
  height: 40px;
  color: #122033;
  font-weight: 750;
}

.login-card .input-wrap input::placeholder {
  color: #93a2b1;
  font-weight: 650;
}

.login-options {
  color: #607286;
}

.login-card .primary-btn.wide {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #246f8a, #1f5e7a);
  box-shadow: 0 14px 28px rgba(31, 94, 122, .24);
}

.login-card .primary-btn.wide:hover {
  background: linear-gradient(180deg, #2a7d99, #184d65);
}

.login-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.login-meta-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d2dce7;
  border-radius: 8px;
  background: #f3f7fa;
}

.login-meta-grid span {
  color: #607286;
  font-size: 11px;
  font-weight: 850;
}

.login-meta-grid strong {
  min-width: 0;
  color: #172b3d;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-foot {
  flex-wrap: wrap;
  margin-top: 22px;
  color: #607286;
}

@keyframes loginFlowScan {
  0%, 100% { transform: scaleX(.18); opacity: .46; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes loginSignal {
  0%, 100% { height: 8px; opacity: .48; }
  50% { height: 26px; opacity: 1; }
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: block;
    min-height: 330px;
  }

  .visual-copy {
    top: 92px;
  }

  .visual-copy h1 {
    font-size: 54px;
  }

  .visual-command-panel {
    right: 28px;
    left: auto;
    bottom: 28px;
    width: min(480px, calc(100% - 56px));
  }

  .visual-footer {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 330px);
    padding: 34px 18px;
  }
}

@media (max-width: 680px) {
  html,
  body,
  .login-screen {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .login-visual,
  .login-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .visual-statusbar {
    left: 12px;
    right: 12px;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    padding: 0 10px;
  }

  .visual-statusbar span,
  .visual-statusbar strong {
    min-width: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .visual-copy {
    left: 22px;
    right: 22px;
  }

  .visual-copy h1 {
    font-size: 44px;
  }

  .visual-copy p {
    max-width: calc(100vw - 44px);
    white-space: normal;
  }

  .visual-command-panel {
    display: none;
  }

  .login-panel {
    display: block;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 12px 26px;
  }

  .login-card {
    width: auto;
    max-width: none;
    padding: 20px;
    overflow: hidden;
  }

  .login-card *,
  .login-card input,
  .login-card button {
    max-width: 100%;
  }

  .login-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .login-options .link-btn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .login-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Minimal dashboard progress pass */
.login-screen {
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 460px);
  background: #edf3f8;
}

.login-visual {
  min-height: 100vh;
  background: #e8eff5;
  border-right: 1px solid #c8d5e0;
}

.login-visual img {
  opacity: .16;
  filter: grayscale(.08) saturate(.85) contrast(.98);
  transform: scale(1);
}

.login-visual::after {
  background:
    linear-gradient(90deg, rgba(237, 243, 248, .96) 0%, rgba(237, 243, 248, .86) 58%, rgba(229, 237, 245, .92) 100%);
}

.visual-grid-lines {
  opacity: .35;
  background:
    repeating-linear-gradient(90deg, rgba(144, 161, 181, .18) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(180deg, rgba(144, 161, 181, .14) 0 1px, transparent 1px 72px);
  mask-image: none;
}

.visual-statusbar {
  top: 30px;
  left: 38px;
  right: 38px;
  min-height: 38px;
  border-color: #c6d3df;
  background: rgba(255, 255, 255, .72);
  color: #263b50;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .04);
  backdrop-filter: blur(10px);
}

.visual-statusbar span,
.visual-statusbar strong {
  font-size: 12px;
  color: #263b50;
}

.visual-statusbar strong {
  color: #1f5e7a;
}

.visual-statusbar strong::before {
  background: #12805c;
  box-shadow: 0 0 0 4px rgba(18, 128, 92, .12);
}

.visual-copy {
  top: 132px;
  left: 48px;
  right: 48px;
  color: #111827;
}

.visual-copy span {
  margin-bottom: 14px;
  color: #1f5e7a;
  font-size: 12px;
  font-weight: 950;
}

.visual-copy h1 {
  max-width: 720px;
  color: #111827;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  text-shadow: none;
}

.visual-copy p {
  margin-top: 16px;
  color: #526476;
  font-size: 14px;
  font-weight: 850;
}

.visual-command-panel {
  left: 48px;
  bottom: 88px;
  width: min(620px, calc(100% - 96px));
  padding: 16px;
  border-color: #c6d3df;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 12px 28px rgba(30, 41, 59, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}

.command-panel-head span {
  color: #1f5e7a;
}

.command-panel-head strong {
  color: #172b3d;
}

.command-flow {
  gap: 10px;
}

.command-flow div {
  min-height: 82px;
  border-color: #d3dee8;
  background: #f8fbfd;
  box-shadow: inset 3px 0 0 #dbe6ef;
}

.command-flow div::after {
  background: #1f5e7a;
  opacity: .72;
  animation: none;
}

.command-flow b {
  border-color: #c6d3df;
  background: #e7f0f6;
  color: #1f5e7a;
}

.command-flow span {
  color: #42576b;
}

.command-signal {
  display: none;
}

.visual-footer {
  left: 48px;
  right: 48px;
  bottom: 28px;
  color: #66788a;
}

.visual-footer strong {
  color: #1f5e7a;
}

.login-panel {
  padding: 42px 46px;
  background: #f8fbfd;
}

.login-panel::before {
  background: linear-gradient(180deg, rgba(31, 94, 122, .06), transparent 38%);
}

.login-card {
  width: 390px;
  padding: 26px;
  border-color: #c7d3df;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 41, 59, .08);
  backdrop-filter: none;
}

.login-brand-row {
  margin-bottom: 22px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-color: #c7d3df;
  background: #fff;
}

.login-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-brand-row strong {
  color: #111827;
  font-size: 18px;
}

.login-brand-row em,
.login-title p,
.login-meta-grid span,
.login-foot {
  color: #66788a;
}

.login-title span {
  color: #1f5e7a;
}

.login-title h2 {
  color: #111827;
  font-size: 28px;
}

.login-card .segmented {
  border-color: #d6e0ea;
  background: #edf3f8;
}

.login-card .segmented button.active {
  color: #1f5e7a;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .08);
}

.login-card .input-wrap {
  border-color: #c7d3df;
  box-shadow: none;
}

.login-card .primary-btn.wide {
  background: #1f5e7a;
  box-shadow: none;
}

.login-card .primary-btn.wide:hover {
  background: #184d65;
}

.login-meta-grid div {
  border-color: #d6e0ea;
  background: #f4f8fb;
}

.login-foot {
  justify-content: flex-start;
  margin-top: 18px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .login-visual {
    min-height: 300px;
  }

  .visual-copy {
    top: 92px;
  }

  .visual-command-panel {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 300px);
  }
}

@media (max-width: 680px) {
  .login-visual {
    min-height: 240px;
  }

  .visual-statusbar {
    top: 14px;
  }

  .visual-copy {
    top: 74px;
  }

  .visual-copy h1 {
    font-size: 34px;
  }

  .login-panel {
    padding: 14px 12px 24px;
  }
}

.ops-page-minimal {
  height: calc(100vh - 104px);
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.ops-focus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-focus-pill {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, .72fr) minmax(0, 1fr);
  grid-template-areas:
    "icon label value"
    "icon desc desc";
  align-items: center;
  gap: 2px 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid #cfd6e1;
  border-radius: var(--compact-radius);
  background: #fff;
  color: var(--text);
  text-align: left;
}

.ops-focus-pill svg {
  grid-area: icon;
  width: 17px;
  height: 17px;
  color: #44546f;
}

.ops-focus-pill span {
  grid-area: label;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-focus-pill strong {
  grid-area: value;
  min-width: 0;
  color: #172b4d;
  font-size: 18px;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-focus-pill em {
  grid-area: desc;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-focus-pill.ok { border-left-color: var(--success); }
.ops-focus-pill.warn { border-left-color: var(--orange); }
.ops-focus-pill.danger { border-left-color: var(--danger); }
.ops-focus-pill.ok svg { color: var(--success); }
.ops-focus-pill.warn svg { color: #b45309; }
.ops-focus-pill.danger svg { color: var(--danger); }

.ops-minimal-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(660px, 1fr) minmax(320px, 360px);
  gap: 8px;
}

.ops-progress-panel,
.ops-queue-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ops-progress-body,
.ops-queue-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.ops-progress-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.ops-project-row {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--compact-radius);
  background: #fff;
}

.ops-project-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.ops-project-title {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.ops-project-title strong,
.ops-project-title span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-project-title strong {
  color: #172b4d;
  font-size: 14px;
}

.ops-project-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ops-project-score {
  min-height: 38px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 6px;
  background: #f4f6f8;
  color: #44546f;
}

.ops-project-score strong {
  font-size: 15px;
  line-height: 1;
}

.ops-project-score span {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
}

.ops-project-score.ok {
  background: #e7f6ef;
  color: var(--success);
}

.ops-project-score.warn {
  background: #fff7e6;
  color: #b45309;
}

.ops-project-stage-note {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  color: #44546f;
  font-size: 11px;
  line-height: 1.2;
}

.ops-project-stage-note span {
  min-width: 0;
  max-width: 100%;
  display: block;
  padding: 3px 6px;
  border: 1px solid #e5eaf0;
  border-radius: 5px;
  background: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-project-stage-note strong {
  margin-right: 4px;
  color: #172b4d;
  font-size: 10px;
  font-weight: 900;
}

.ops-project-stage-note .ok {
  border-color: #d8eee4;
  background: #f2fbf6;
  color: #11734a;
}

.ops-project-stage-note .warn {
  border-color: #f7d9a6;
  background: #fff8ea;
  color: #9a4f00;
}

.ops-project-arrow-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(15, minmax(56px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ops-project-step {
  min-width: 56px;
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 5px 10px 5px 14px;
  border: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 8px 50%);
  background: #f1f5f9;
  color: #44546f;
  text-align: center;
}

.ops-project-step:first-child {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-left: 8px;
}

.ops-project-step strong,
.ops-project-step span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-project-step strong {
  font-size: 11px;
  line-height: 1.1;
}

.ops-project-step span {
  font-size: 9px;
  line-height: 1.1;
}

.ops-project-step.ok {
  background: #e7f6ef;
  color: #11734a;
}

.ops-project-step.warn {
  background: #fff3d8;
  color: #9a4f00;
}

.ops-project-step.danger {
  background: #fff0f0;
  color: #b42318;
}

.ops-project-step.info {
  background: #edf5ff;
  color: #1d4ed8;
}

.ops-project-step:hover {
  filter: brightness(.98);
}

.ops-queue-body {
  padding: 8px;
}

.ops-queue-list {
  gap: 6px;
}

.ops-queue-list .dashboard-task {
  min-height: 42px;
  padding: 7px 8px;
  gap: 8px;
}

.ops-queue-list .dashboard-task strong,
.ops-queue-list .dashboard-task span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-queue-list .dashboard-task em {
  min-width: 56px;
  padding: 2px 6px;
  font-size: 11px;
}

.ops-command-strip {
  min-height: 38px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.ops-command {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--compact-radius);
  background: #fff;
  color: #172b4d;
  font-size: 12px;
  font-weight: 900;
}

.ops-command.primary {
  border-color: #9cc2f6;
  background: #f5f9ff;
  color: var(--primary);
}

.ops-command svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.ops-command span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-command:hover,
.ops-focus-pill:hover {
  border-color: #b7d4fb;
  background: #f7fbff;
}

.ops-dashboard-hidden-status {
  display: none;
}

@media (max-width: 1180px) {
  .ops-minimal-grid {
    grid-template-columns: 1fr;
  }
  .ops-queue-panel {
    max-height: 320px;
  }
}

@media (max-width: 860px) {
  .ops-page-minimal {
    height: auto;
    min-height: 0;
  }
  .ops-focus-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-command-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ops-focus-strip,
  .ops-command-strip {
    grid-template-columns: 1fr 1fr;
  }
  .ops-project-meta {
    grid-template-columns: 1fr;
  }
  .ops-project-score {
    width: 58px;
  }
}

/* Workday dashboard 20260607 */
.ops-page-minimal {
  gap: 10px;
}

.ops-business-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ops-business-strip .ops-focus-pill {
  min-height: 64px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 46, 75, .05);
}

.ops-business-strip .ops-focus-pill strong {
  font-size: 20px;
}

.ops-workday-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(430px, .9fr);
  gap: 10px;
}

.ops-today-panel,
.ops-project-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ops-today-panel {
  border-top: 3px solid #2563eb;
}

.ops-project-panel {
  border-top: 3px solid #12b981;
}

.ops-today-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.ops-today-list {
  gap: 8px;
}

.ops-today-list .dashboard-task {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.ops-today-list .dashboard-task strong {
  font-size: 15px;
}

.ops-today-list .dashboard-task span {
  font-size: 12px;
  line-height: 1.35;
}

.ops-today-list .dashboard-task em {
  min-width: 64px;
  text-align: center;
}

.ops-project-focus-list {
  gap: 9px;
  padding: 10px;
}

.ops-project-focus-list .ops-project-row {
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 46, 75, .04);
}

.ops-project-focus-list .ops-project-arrow-bar {
  grid-template-columns: repeat(15, minmax(48px, 1fr));
}

.ops-project-focus-list .ops-project-step {
  min-width: 48px;
  min-height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.ops-project-focus-list .ops-project-step strong {
  font-size: 10px;
}

.ops-project-focus-list .ops-project-step span {
  font-size: 8px;
}

.ops-command-strip {
  min-height: 42px;
}

.ops-command {
  border-radius: 8px;
}

@media (max-width: 1280px) {
  .ops-business-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-workday-grid {
    grid-template-columns: 1fr;
  }
  .ops-project-panel {
    max-height: 360px;
  }
}

@media (max-width: 860px) {
  .ops-business-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ops-business-strip,
  .ops-command-strip {
    grid-template-columns: 1fr 1fr;
  }
  .ops-today-list .dashboard-task {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-today-list .dashboard-task em {
    justify-self: start;
  }
}

/* Workflow desk dashboard 20260607 */
.ops-workflow-board {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(20, 46, 75, .06);
}

.ops-workflow-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ops-workflow-head span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.ops-workflow-head h2 {
  margin: 3px 0 0;
  color: #172b4d;
  font-size: 22px;
  line-height: 1.15;
}

.ops-workflow-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.ops-workflow-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ops-workflow-node {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 5px;
  padding: 12px 11px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  color: #172b4d;
  text-align: left;
  box-shadow: inset 0 3px 0 #cfd6e1;
}

.ops-workflow-node.active {
  border-color: #9cc2f6;
  background: #f5f9ff;
  box-shadow: inset 0 3px 0 var(--primary), 0 10px 18px rgba(37, 99, 235, .12);
}

.ops-workflow-node.warn { box-shadow: inset 0 3px 0 var(--orange); }
.ops-workflow-node.danger { box-shadow: inset 0 3px 0 var(--danger); }
.ops-workflow-node.ok { box-shadow: inset 0 3px 0 var(--success); }
.ops-workflow-node.active.warn { box-shadow: inset 0 3px 0 var(--orange), 0 10px 18px rgba(180, 83, 9, .12); }
.ops-workflow-node.active.danger { box-shadow: inset 0 3px 0 var(--danger), 0 10px 18px rgba(180, 35, 24, .12); }

.ops-workflow-node svg {
  width: 17px;
  height: 17px;
  color: #44546f;
}

.ops-workflow-node strong,
.ops-workflow-node span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-workflow-node strong {
  color: #172b4d;
  font-size: 14px;
  font-weight: 950;
}

.ops-workflow-node span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-workflow-node em {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.ops-flowdesk-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(320px, 380px);
  gap: 10px;
}

.ops-workflow-list-panel,
.ops-todo-side-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ops-workflow-list-panel {
  border-top: 3px solid var(--primary);
}

.ops-todo-side-panel {
  border-top: 3px solid #64748b;
}

.ops-workflow-list-body,
.ops-todo-side-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.ops-workflow-list {
  display: grid;
  gap: 8px;
}

.ops-workflow-item {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cfd6e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
  text-align: left;
}

.ops-workflow-item:hover {
  border-color: #b7d4fb;
  border-left-color: var(--primary);
  background: #f7fbff;
}

.ops-workflow-item.warn { border-left-color: var(--orange); }
.ops-workflow-item.danger { border-left-color: var(--danger); }
.ops-workflow-item.ok { border-left-color: var(--success); }

.ops-workflow-item div {
  min-width: 0;
}

.ops-workflow-item strong,
.ops-workflow-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-workflow-item strong {
  color: #172b4d;
  font-size: 15px;
  font-weight: 950;
}

.ops-workflow-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ops-workflow-item em {
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.ops-workflow-empty {
  display: grid;
  gap: 4px;
  text-align: left;
}

.ops-workflow-empty strong,
.ops-workflow-empty span {
  display: block;
}

.ops-todo-side-list .dashboard-task {
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 8px;
}

.ops-todo-side-list .dashboard-task strong,
.ops-todo-side-list .dashboard-task span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1320px) {
  .ops-workflow-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ops-flowdesk-grid {
    grid-template-columns: 1fr;
  }
  .ops-todo-side-panel {
    max-height: 320px;
  }
}

@media (max-width: 860px) {
  .ops-workflow-head {
    display: grid;
  }
  .ops-workflow-head p {
    max-width: none;
    text-align: left;
  }
  .ops-workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Industry content management 20260607 */
.industry-table-wrap {
  max-height: none;
  overflow: auto;
}

.industry-plan-table {
  min-width: 1040px;
  table-layout: fixed;
}

.industry-plan-table th,
.industry-plan-table td {
  vertical-align: middle;
  height: 46px;
}

.industry-category-table .industry-col-name { width: 140px; }
.industry-category-table .industry-col-desc { width: auto; }
.industry-category-table .industry-col-count { width: 86px; }
.industry-category-table .industry-col-status { width: 112px; }
.industry-category-table .industry-col-actions { width: 150px; }

.industry-article-table .article-col-title { width: 420px; }
.industry-article-table .article-col-industry { width: 150px; }
.industry-article-table .article-col-type { width: 120px; }
.industry-article-table .article-col-status { width: 112px; }
.industry-article-table .article-col-pin { width: 86px; }
.industry-article-table .article-col-time { width: 160px; }
.industry-article-table .article-col-actions { width: 150px; }

.industry-name-cell,
.industry-desc-cell {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.industry-name-cell {
  color: var(--text);
  font-weight: 950;
  line-height: 1.35;
}

.industry-desc-cell {
  color: #253858;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.industry-plan-table .record-actions {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  white-space: nowrap;
}

.industry-plan-table .record-actions .mini-btn,
.industry-plan-table .record-actions .compact-action-menu {
  flex: 0 0 auto;
}

.industry-plan-table .status-pill {
  white-space: nowrap;
}

.industry-article-title {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: none;
}

.industry-article-title strong,
.industry-article-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-article-title strong {
  color: var(--text);
  font-weight: 900;
}

.industry-article-title span {
  color: var(--muted);
  font-size: 12px;
}

.industry-article-drawer textarea {
  min-height: 168px;
  resize: vertical;
}
/* Fengjun consistency pass 20260611: align existing UI rules, no feature changes. */
:root {
  --fj-radius: 8px;
  --fj-radius-sm: 6px;
  --fj-gap: 10px;
  --fj-panel-head: 44px;
  --fj-control-height: 32px;
  --fj-shadow-soft: 0 1px 2px rgba(23, 43, 77, .06), 0 8px 18px rgba(23, 43, 77, .04);
}

body {
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.content {
  padding: 12px;
}

.panel,
.metric-card,
.quick-create-menu,
.drawer-card,
.ui-dialog-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.quote-bottom-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.supplier-dialog-card,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section {
  border-radius: var(--fj-radius);
  box-shadow: var(--fj-shadow-soft);
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  min-height: var(--fj-panel-head);
  padding-block: 8px;
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.drawer-head h2,
.supplier-inquiry-section-head h3 {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.panel-head p,
.quote-form-head span,
.drawer-head p,
.supplier-inquiry-section-head p {
  margin-top: 3px;
  line-height: 1.45;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn,
.mini-btn,
.search-box,
.input-wrap,
input,
select,
textarea,
.nav-row,
.child-row,
.status-pill,
.badge-soft {
  border-radius: var(--fj-radius-sm);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn {
  min-height: var(--fj-control-height);
}

.search-box {
  height: var(--fj-control-height);
}

.metric-grid,
.dashboard-grid,
.ops-dashboard-grid,
.ops-workbench,
.ops-flowdesk-grid,
.settings-entry-grid,
.quick-action-grid,
.dashboard-task-list,
.dashboard-summary-list {
  gap: var(--fj-gap);
}

.metric-card {
  min-height: 66px;
  padding: 10px 12px;
}

.metric-card strong {
  font-variant-numeric: tabular-nums;
}

.quote-table,
.record-table,
.parts-table,
.supplier-lines-table,
.supplier-rfq-smart-table,
.supplier-rfq-supplier-table {
  font-variant-numeric: tabular-nums;
}

.quote-table th,
.record-table th,
.parts-table th {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quote-table td,
.record-table td,
.parts-table td {
  line-height: 1.45;
}

.dashboard-task,
.ops-workflow-item,
.quick-action,
.ops-status-item,
.ops-closure-card,
.ops-flow-step,
.settings-entry,
.ops-command {
  border-radius: var(--fj-radius);
}

.status-pill,
.badge-soft,
.dashboard-task em,
.ops-workflow-item em,
.ops-status-item em,
.ops-closure-card em {
  border-radius: 999px;
  font-weight: 900;
}

.ops-page-minimal {
  gap: var(--fj-gap);
}

.ops-workflow-board,
.ops-workflow-list-panel,
.ops-todo-side-panel,
.ops-command-strip {
  gap: var(--fj-gap);
}

.ops-command-strip {
  min-height: 40px;
}

.ops-command {
  min-height: 40px;
}

@media (max-width: 760px) {
  .content {
    padding: 10px;
  }

  .metric-grid,
  .ops-command-strip {
    gap: 8px;
  }
}
/* Fengjun visible consistency pass 20260611: make alignment visible, no feature changes. */
:root {
  --fj-brand: #164e77;
  --fj-brand-2: #1f6f9f;
  --fj-shell: #edf3f8;
  --fj-card: #ffffff;
  --fj-card-head: #f3f7fb;
  --fj-border: #c7d3df;
  --fj-border-soft: #dce5ee;
  --fj-hover: #eef6fb;
  --fj-active: #e4f1f9;
}

body,
.app-shell,
.main {
  background: var(--fj-shell);
}

.content {
  padding: 14px;
}

.sidebar {
  background: #f7fafc;
  border-right: 1px solid var(--fj-border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .82);
}

.side-brand {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--fj-border-soft);
  box-shadow: inset 4px 0 0 var(--fj-brand);
}

.brand-mark {
  background: var(--fj-brand);
  border-color: var(--fj-brand);
  color: #fff;
}

.side-brand strong {
  color: #142238;
  font-weight: 900;
}

.module-nav {
  padding: 8px 7px 10px;
}

.nav-row,
.child-row {
  min-height: 34px;
  margin-bottom: 2px;
  color: #34465c;
  border-radius: 7px;
}

.nav-row:hover,
.child-row:hover {
  background: var(--fj-hover);
  color: #17324d;
}

.nav-row.active,
.child-row.active {
  background: var(--fj-active);
  color: var(--fj-brand);
  box-shadow: inset 4px 0 0 var(--fj-brand);
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: var(--fj-brand);
}

.side-user {
  background: #fff;
  border-top: 1px solid var(--fj-border-soft);
}

.topbar {
  min-height: 58px;
  padding: 9px 16px;
  background: #fff;
  border-bottom: 1px solid var(--fj-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .82), 0 8px 18px rgba(23, 43, 77, .05);
}

.topbar > div:first-child {
  position: relative;
  padding-left: 12px;
}

.topbar > div:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 999px;
  background: var(--fj-brand);
}

.breadcrumb {
  color: #6b7b8f;
}

.topbar h1 {
  color: #142238;
  font-size: 19px;
  font-weight: 900;
}

.global-history-actions {
  border: 1px solid var(--fj-border-soft);
  background: #f7fafc;
}

.panel,
.metric-card,
.quick-create-menu,
.drawer-card,
.ui-dialog-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.quote-bottom-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.supplier-dialog-card,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section {
  border: 1px solid var(--fj-border);
  background: var(--fj-card);
  box-shadow: 0 1px 2px rgba(23, 43, 77, .06), 0 10px 22px rgba(23, 43, 77, .04);
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  min-height: 46px;
  background: var(--fj-card-head);
  border-color: var(--fj-border-soft);
}

.panel-head > div:first-child,
.quote-panel-title > div:first-child,
.quote-form-head > div:first-child,
.drawer-head > div:first-child {
  min-width: 0;
  padding-left: 10px;
  border-left: 4px solid var(--fj-brand);
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.drawer-head h2,
.supplier-inquiry-section-head h3 {
  color: #142238;
  font-size: 15px;
  font-weight: 900;
}

.panel-head p,
.quote-form-head span,
.drawer-head p,
.supplier-inquiry-section-head p {
  color: #66778a;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn,
.mini-btn {
  min-height: 32px;
  border-radius: 7px;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  background: var(--fj-brand);
  border-color: var(--fj-brand);
  color: #fff;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: #0f3f63;
  border-color: #0f3f63;
}

.ghost-btn,
.icon-btn,
.user-btn,
.mini-btn {
  background: #fff;
  border-color: var(--fj-border);
  color: #2f4157;
}

.ghost-btn:hover,
.icon-btn:hover,
.user-btn:hover,
.mini-btn:hover {
  background: var(--fj-hover);
  border-color: #9fb3c5;
}

.search-box,
.input-wrap,
input,
select,
textarea {
  border-color: var(--fj-border);
}

.search-box {
  height: 34px;
  background: #fff;
}

.metric-grid {
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 72px;
  border-top: 3px solid var(--fj-brand);
}

.metric-card:nth-child(2) { border-top-color: var(--data-teal); }
.metric-card:nth-child(3) { border-top-color: var(--data-amber); }
.metric-card:nth-child(4) { border-top-color: var(--data-red); }
.metric-card:nth-child(5) { border-top-color: var(--data-graphite); }

.metric-card strong {
  color: #142238;
  font-variant-numeric: tabular-nums;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-picker-list,
.supplier-rfq-tabs {
  border-color: var(--fj-border);
  background: #f4f8fb;
}

.quote-table th,
.record-table th,
.parts-table th,
.content.page-parts .parts-table th:first-child,
.content.page-parts .parts-table th:nth-child(4),
.content.page-parts .parts-table th:last-child,
.content.page-part-review .part-review-table th {
  background: #e2ebf4;
  color: #17263a;
  border-bottom-color: #b9c7d6;
  font-size: 12px;
  font-weight: 900;
}

.quote-table td,
.record-table td,
.parts-table td {
  border-bottom-color: #e1e8f0;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td,
.parts-table tbody tr:hover td {
  background: #eef6fb;
}

.dashboard-task,
.ops-workflow-item,
.quick-action,
.ops-status-item,
.ops-closure-card,
.ops-flow-step,
.settings-entry,
.ops-command {
  border-color: var(--fj-border-soft);
  background: #fff;
}

.dashboard-task:hover,
.ops-workflow-item:hover,
.quick-action:hover,
.ops-status-item:hover,
.ops-closure-card:hover,
.ops-flow-step:hover,
.settings-entry:hover,
.ops-command:hover {
  border-color: #9fb3c5;
  background: #f4f9fc;
}

.ops-workflow-board {
  border: 1px solid var(--fj-border);
  background: #fff;
}

.ops-workflow-node.active {
  border-color: #98c2df;
  background: #eef7fc;
  box-shadow: inset 0 3px 0 var(--fj-brand);
}

.ops-command-strip {
  gap: 8px;
  min-height: 42px;
}

.ops-command {
  min-height: 42px;
  font-weight: 900;
}

.ops-command.primary {
  border-color: #98c2df;
  background: #eef7fc;
  color: var(--fj-brand);
}

.status-pill,
.badge-soft,
.dashboard-task em,
.ops-workflow-item em,
.ops-status-item em,
.ops-closure-card em {
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .content {
    padding: 10px;
  }

  .topbar > div:first-child {
    padding-left: 10px;
  }

  .metric-grid,
  .ops-command-strip {
    gap: 8px;
  }
}
/* Fengjun shell consistency pass 20260611: learned structure, retained functions. */
:root {
  --learn-shell-bg: #edf2f6;
  --learn-top: #ffffff;
  --learn-side: #122c43;
  --learn-side-2: #0e2438;
  --learn-blue: #0b7fbd;
  --learn-blue-dark: #075f91;
  --learn-blue-soft: #e4f3fb;
  --learn-card: #ffffff;
  --learn-head: #f3f7fb;
  --learn-line: #c6d3df;
  --learn-line-soft: #dde7ef;
  --learn-text: #172338;
  --learn-muted: #66778a;
  --learn-radius: 8px;
  --learn-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px rgba(15, 35, 55, .05);
}

html,
body,
.app-shell {
  background: var(--learn-shell-bg);
}

body {
  color: var(--learn-text);
  letter-spacing: 0;
}

.main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72) 0, rgba(255, 255, 255, 0) 120px),
    var(--learn-shell-bg);
}

.content {
  padding: 14px;
  background: transparent;
}

.sidebar {
  width: 224px;
  min-width: 224px;
  background: linear-gradient(180deg, var(--learn-side) 0, var(--learn-side-2) 100%);
  border-right: 1px solid #081a2a;
  color: #d8e6f2;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08), 8px 0 20px rgba(15, 35, 55, .08);
}

.side-brand {
  height: 58px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--learn-blue);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

.side-brand strong {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.side-brand span,
.nav-arrow,
.nav-icon {
  color: rgba(216, 230, 242, .72);
}

.collapse-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #d8e6f2;
}

.module-nav {
  padding: 10px 8px;
}

.nav-row,
.child-row {
  min-height: 35px;
  margin-bottom: 2px;
  padding-inline: 10px 8px;
  border-radius: 7px;
  color: rgba(240, 247, 252, .88);
  font-weight: 800;
}

.nav-row:hover,
.child-row:hover,
.nav-row.expanded {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-row.active,
.child-row.active {
  background: rgba(11, 127, 189, .24);
  color: #fff;
  box-shadow: inset 4px 0 0 #38bdf8;
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: #9ee7ff;
}

.nav-badge {
  background: rgba(56, 189, 248, .14);
  border-color: rgba(125, 211, 252, .38);
  color: #bfecff;
}

.child-list {
  padding-left: 24px;
}

.side-user {
  min-height: 60px;
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.side-user .avatar {
  background: #eaf3fa;
  color: #0e2a42;
}

.side-user strong {
  color: #fff;
}

.side-user span,
.side-user button {
  color: rgba(216, 230, 242, .68);
}

.sidebar-collapsed .sidebar {
  width: 60px;
  min-width: 60px;
}

.topbar {
  min-height: 58px;
  padding: 9px 16px;
  background: var(--learn-top);
  border-bottom: 1px solid var(--learn-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .86), 0 8px 20px rgba(15, 35, 55, .06);
}

.topbar > div:first-child {
  position: relative;
  padding-left: 13px;
}

.topbar > div:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 999px;
  background: var(--learn-blue);
}

.breadcrumb {
  color: var(--learn-muted);
  font-size: 12px;
}

.topbar h1 {
  color: var(--learn-text);
  font-size: 19px;
  font-weight: 900;
}

.top-actions {
  gap: 8px;
}

.global-history-actions {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--learn-line-soft);
  border-radius: var(--learn-radius);
  background: #f6f9fc;
}

.panel,
.metric-card,
.quick-create-menu,
.drawer-card,
.ui-dialog-card,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.right-card,
.quote-bottom-card,
.supplier-invite-card,
.supplier-inquiry-section,
.supplier-inquiry-metric,
.supplier-rfq-scheme-block,
.supplier-dialog-card,
.contract-settings-panel,
.contract-preview-panel,
.project-task-section {
  border: 1px solid var(--learn-line);
  border-radius: var(--learn-radius);
  background: var(--learn-card);
  box-shadow: var(--learn-shadow);
}

.panel-head,
.quote-panel-title,
.quote-form-head,
.drawer-head,
.drawer-foot,
.ui-dialog-head,
.ui-dialog-foot {
  min-height: 46px;
  background: var(--learn-head);
  border-color: var(--learn-line-soft);
}

.panel-head > div:first-child,
.quote-panel-title > div:first-child,
.quote-form-head > div:first-child,
.drawer-head > div:first-child {
  min-width: 0;
  padding-left: 10px;
  border-left: 4px solid var(--learn-blue);
}

.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.drawer-head h2,
.supplier-inquiry-section-head h3 {
  color: var(--learn-text);
  font-size: 15px;
  font-weight: 900;
}

.panel-head p,
.quote-form-head span,
.drawer-head p,
.supplier-inquiry-section-head p {
  color: var(--learn-muted);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.user-btn,
.danger-btn,
.mini-btn {
  min-height: 32px;
  border-radius: 7px;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  background: var(--learn-blue);
  border-color: var(--learn-blue);
  color: #fff;
  box-shadow: none;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: var(--learn-blue-dark);
  border-color: var(--learn-blue-dark);
}

.ghost-btn,
.icon-btn,
.user-btn,
.mini-btn {
  background: #fff;
  border-color: var(--learn-line);
  color: #2f4157;
}

.ghost-btn:hover,
.icon-btn:hover,
.user-btn:hover,
.mini-btn:hover {
  background: #eef6fb;
  border-color: #9fb3c5;
}

.search-box,
.input-wrap,
input,
select,
textarea {
  border-color: var(--learn-line);
  border-radius: 7px;
  background: #fff;
}

.search-box {
  height: 34px;
}

input:focus,
select:focus,
textarea:focus,
.input-wrap:focus-within {
  border-color: var(--learn-blue);
  box-shadow: 0 0 0 3px rgba(11, 127, 189, .14);
}

.metric-grid {
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 74px;
  border-top: 3px solid var(--learn-blue);
}

.metric-card:nth-child(2) { border-top-color: var(--data-teal); }
.metric-card:nth-child(3) { border-top-color: var(--data-amber); }
.metric-card:nth-child(4) { border-top-color: var(--data-red); }
.metric-card:nth-child(5) { border-top-color: var(--data-graphite); }

.metric-card strong {
  color: var(--learn-text);
  font-variant-numeric: tabular-nums;
}

.quote-table-wrap,
.record-table-wrap,
.supplier-import-table-wrap,
.supplier-picker-list,
.supplier-rfq-tabs {
  border-color: var(--learn-line);
  background: #f4f8fb;
}

.quote-table th,
.record-table th,
.parts-table th,
.content.page-parts .parts-table th:first-child,
.content.page-parts .parts-table th:nth-child(4),
.content.page-parts .parts-table th:last-child,
.content.page-part-review .part-review-table th {
  background: #e2ebf4;
  color: #17263a;
  border-bottom-color: #b9c7d6;
  font-size: 12px;
  font-weight: 900;
}

.quote-table td,
.record-table td,
.parts-table td {
  border-bottom-color: #e1e8f0;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.record-table tbody tr:hover td,
.parts-table tbody tr:hover td {
  background: #eef6fb;
}

.status-pill,
.badge-soft,
.dashboard-task em,
.ops-workflow-item em,
.ops-status-item em,
.ops-closure-card em {
  border-radius: 999px;
  font-weight: 900;
}

.dashboard-task,
.ops-workflow-item,
.quick-action,
.ops-status-item,
.ops-closure-card,
.ops-flow-step,
.settings-entry,
.ops-command {
  border-color: var(--learn-line-soft);
  background: #fff;
}

.dashboard-task:hover,
.ops-workflow-item:hover,
.quick-action:hover,
.ops-status-item:hover,
.ops-closure-card:hover,
.ops-flow-step:hover,
.settings-entry:hover,
.ops-command:hover {
  border-color: #9fb3c5;
  background: #f4f9fc;
}

.ops-workflow-board {
  border: 1px solid var(--learn-line);
  background: #fff;
  box-shadow: var(--learn-shadow);
}

.ops-workflow-head span {
  color: var(--learn-blue-dark);
  letter-spacing: 0;
}

.ops-workflow-node.active {
  border-color: #98c2df;
  background: #eef7fc;
  box-shadow: inset 0 3px 0 var(--learn-blue);
}

.ops-command-strip {
  gap: 8px;
  min-height: 42px;
}

.ops-command {
  min-height: 42px;
  font-weight: 900;
}

.ops-command.primary {
  border-color: #98c2df;
  background: #eef7fc;
  color: var(--learn-blue-dark);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 360px;
  }

  .content {
    padding: 10px;
  }

  .metric-grid,
  .ops-command-strip {
    gap: 8px;
  }
}

/* UI consistency pass 20260612 */
:root {
  --ui-bg: #f3f6f9;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8fafc;
  --ui-border: #d8e0e8;
  --ui-border-soft: #e6ebf1;
  --ui-text: #172033;
  --ui-muted: #667085;
  --ui-primary: #1f6684;
  --ui-primary-hover: #18536d;
  --ui-primary-soft: #e7f2f6;
  --ui-teal: #0f766e;
  --ui-amber: #a16207;
  --ui-red: #b42318;
  --ui-radius: 7px;
  --ui-radius-sm: 5px;
  --ui-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px rgba(21, 35, 54, .06);
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
}

.app-shell,
.content {
  background: var(--ui-bg);
}

.topbar,
.panel,
.metric-card,
.ops-workflow-board,
.drawer-card,
.ui-dialog-card,
.quote-table-wrap,
.record-table-wrap,
.parts-table-wrap {
  border-color: var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.panel,
.metric-card,
.quote-table-wrap,
.record-table-wrap,
.parts-table-wrap,
.drawer-card,
.ui-dialog-card {
  border-radius: var(--ui-radius);
}

.topbar {
  min-height: 58px;
  border-bottom-color: var(--ui-border);
}

.panel-head,
.drawer-head,
.ui-dialog-head,
.workbench-header,
.record-toolbar {
  border-color: var(--ui-border-soft);
}

.panel-head {
  min-height: 56px;
  padding: 12px 14px;
  background: var(--ui-surface);
}

.panel-head h2,
.drawer-head h2,
.ui-dialog-head h2 {
  color: var(--ui-text);
  letter-spacing: 0;
}

.panel-head p,
.drawer-head span,
.ui-dialog-head span,
.breadcrumb,
.muted {
  color: var(--ui-muted);
}

input,
select,
textarea {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 34px;
}

textarea {
  min-height: 86px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(31, 102, 132, .13);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.mini-btn,
.icon-btn,
.user-btn {
  border-radius: var(--ui-radius-sm);
  font-weight: 850;
  letter-spacing: 0;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: var(--ui-primary-hover);
}

.ghost-btn,
.mini-btn,
.icon-btn,
.user-btn {
  border-color: var(--ui-border);
  background: var(--ui-surface);
  color: #344054;
}

.ghost-btn:hover,
.mini-btn:hover,
.icon-btn:hover,
.user-btn:hover {
  border-color: #b8c6d5;
  background: var(--ui-surface-soft);
}

.danger-btn,
.mini-btn.danger {
  border-color: #f2b8b5;
  background: #fff3f2;
  color: var(--ui-red);
}

.record-toolbar,
.compact-toolbar {
  gap: 8px;
  align-items: center;
}

.compact-toolbar {
  padding: 10px 12px;
  border: 1px solid var(--ui-border-soft);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-soft);
}

.compact-toolbar input,
.compact-toolbar select {
  max-width: 240px;
}

.quote-table-wrap,
.record-table-wrap,
.parts-table-wrap {
  overflow: auto;
}

.quote-table,
.record-table,
.parts-table {
  border-collapse: separate;
  border-spacing: 0;
}

.quote-table th,
.record-table th,
.parts-table th {
  height: 38px;
  border-bottom: 1px solid var(--ui-border);
  background: #eef3f7;
  color: #24364f;
  font-size: 12px;
  font-weight: 900;
}

.quote-table td,
.record-table td,
.parts-table td {
  min-height: 42px;
  border-bottom: 1px solid var(--ui-border-soft);
  color: var(--ui-text);
  line-height: 1.45;
  vertical-align: middle;
}

.quote-table tbody tr:hover td,
.record-table tbody tr:hover td,
.parts-table tbody tr:hover td {
  background: #f3f8fb;
}

.status-pill,
.badge-soft,
.nav-badge,
.dashboard-task em,
.ops-status-item em {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
}

.trace-center-tabs {
  gap: 8px;
}

.trace-center-tabs button {
  min-height: 82px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: none;
}

.trace-center-tabs button.active {
  border-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  box-shadow: inset 0 3px 0 var(--ui-primary);
}

.trace-center-tabs strong {
  color: var(--ui-text);
}

.trace-pager {
  justify-content: flex-end;
  margin-top: 10px;
  border: 0;
  background: transparent;
}

.trace-pager span {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 800;
}

.drawer-card {
  max-height: calc(100vh - 28px);
}

.drawer-head,
.drawer-foot {
  background: var(--ui-surface);
}

.drawer-body {
  background: #fbfcfe;
}

.ui-dialog-card {
  overflow: hidden;
}

.record-actions,
.trace-actions {
  gap: 6px;
}

@media (max-width: 760px) {
  .panel-head,
  .record-toolbar,
  .compact-toolbar,
  .trace-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-toolbar input,
  .compact-toolbar select,
  .trace-pager .mini-btn {
    width: 100%;
    max-width: none;
  }

  .trace-center-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html,
  body,
  .login-screen {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .login-screen,
  .login-visual,
  .login-panel,
  .login-card {
    box-sizing: border-box;
  }

  .login-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .login-visual,
  .login-panel {
    width: 100%;
    max-width: 100%;
  }

  .login-visual {
    min-height: 330px;
  }

  .visual-statusbar {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    overflow: hidden;
    justify-content: flex-start;
    gap: 10px;
  }

  .visual-statusbar span {
    flex: 1 1 auto;
  }

  .visual-statusbar strong {
    flex: 0 0 14px;
    width: 14px;
    max-width: 14px;
    margin-left: auto;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .visual-statusbar strong::before {
    margin-right: 0;
  }

  .visual-copy {
    left: 22px;
    right: 22px;
  }

  .visual-copy h1 {
    font-size: clamp(40px, 14vw, 54px);
    max-width: 100%;
  }

  .visual-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .login-panel {
    padding: 18px 12px 28px;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .login-options {
    grid-template-columns: 1fr;
  }

  .login-options .link-btn {
    justify-self: start;
    max-width: 100%;
  }
}

/* Neutral UI pass 20260612: remove colored edge strips */
.nav-row.active,
.child-row.active,
.trace-center-tabs button.active,
.ops-workflow-node.active {
  box-shadow: none;
}

.dashboard-task,
.dashboard-task.danger,
.dashboard-task.warn,
.dashboard-task.money,
.ops-closure-card,
.ops-closure-card.ok,
.ops-closure-card.warn,
.ops-closure-card.danger,
.ops-status-item,
.ops-status-item.ok,
.ops-status-item.warn,
.ops-status-item.danger,
.ops-recent-item,
.ops-recent-item.warn,
.ops-recent-item.danger,
.settings-entry,
.todo-item {
  border-left-width: 1px;
  border-left-color: var(--ui-border-soft);
}

.trace-center-tabs button.active {
  border-color: #b8c6d5;
  background: #f8fafc;
}

.nav-row.active,
.child-row.active {
  background: rgba(255, 255, 255, .10);
}

.panel,
.metric-card,
.dashboard-task,
.ops-workflow-item,
.quick-action,
.ops-status-item,
.ops-closure-card,
.ops-recent-item,
.settings-entry,
.ops-command,
.trace-center-tabs button {
  outline: 0;
}

/* Operational light layout pass 20260612 */
.app-shell {
  background: #f5f6f6;
}

.sidebar {
  width: 246px;
  min-width: 246px;
  background: #ffffff;
  color: #071330;
  border-right: 1px solid #e4e7eb;
  box-shadow: none;
}

.side-brand {
  height: 66px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #eceff3;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #159a9c;
  color: #ffffff;
}

.side-brand strong {
  color: #159a9c;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .2px;
}

.side-brand span {
  color: #657386;
  font-size: 10px;
}

.collapse-btn {
  border-color: #d9e0e7;
  background: #ffffff;
  color: #071330;
}

.module-nav {
  padding: 10px 0 12px;
  scrollbar-color: #c8d0dc transparent;
}

.nav-block {
  margin: 0;
}

.nav-row,
.child-row {
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border-radius: 0;
  color: #071330;
  font-size: 14px;
  font-weight: 760;
}

.child-row {
  min-height: 36px;
  padding-left: 52px;
  color: #1f2a44;
  font-size: 13px;
}

.nav-icon,
.nav-arrow {
  color: #071330;
}

.nav-row:hover,
.child-row:hover,
.nav-row.expanded {
  background: #f1f5f5;
  color: #071330;
}

.nav-row.active,
.child-row.active {
  background: #e8f3f3;
  color: #005f68;
  font-weight: 900;
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: #005f68;
}

.child-list {
  padding: 0;
}

.nav-badge {
  border-color: #d0dce4;
  background: #f2f6f7;
  color: #00646d;
}

.nav-badge.alert {
  border-color: #f3b8b3;
  background: #fff1f0;
  color: #b42318;
}

.side-user {
  min-height: 66px;
  background: #ffffff;
  border-top: 1px solid #eceff3;
}

.side-user strong {
  color: #071330;
}

.side-user span,
.side-user button {
  color: #657386;
}

.content {
  padding: 16px 18px;
  background: #f5f6f6;
}

.topbar {
  min-height: 66px;
  background: #ffffff;
  border-bottom: 1px solid #e4e7eb;
  box-shadow: none;
}

.breadcrumb {
  color: #00747d;
  font-weight: 780;
}

.panel,
.metric-card,
.quote-table-wrap,
.record-table-wrap,
.parts-table-wrap,
.trace-center-tabs button,
.compact-toolbar {
  border-color: #dfe4e8;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

.panel-head {
  min-height: 58px;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom-color: #edf0f2;
}

.panel-head h2 {
  color: #071330;
  font-size: 16px;
  font-weight: 900;
}

.panel-head p {
  color: #657386;
}

.metric-card {
  min-height: 76px;
  padding: 14px 16px;
}

.metric-card strong {
  color: #071330;
  font-size: 22px;
}

.record-toolbar,
.compact-toolbar {
  min-height: 46px;
  padding: 8px 0;
  background: transparent;
  border: 0;
}

.compact-toolbar {
  padding: 10px 0;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis {
  border-color: #00747d;
  background: #00747d;
  color: #ffffff;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover {
  background: #005f68;
}

.ghost-btn,
.mini-btn {
  border-color: #008399;
  background: #ffffff;
  color: #00677a;
}

.ghost-btn:hover,
.mini-btn:hover {
  border-color: #00677a;
  background: #f0f7f7;
  color: #005f68;
}

.quote-table th,
.record-table th,
.parts-table th {
  height: 44px;
  background: #ffffff;
  color: #071330;
  border-bottom: 1px solid #e5e8ec;
  font-size: 13px;
  font-weight: 900;
}

.quote-table td,
.record-table td,
.parts-table td {
  height: 41px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
  color: #071330;
}

.quote-table tbody tr:hover td,
.record-table tbody tr:hover td,
.parts-table tbody tr:hover td {
  background: #f7faf9;
}

.trace-center-tabs button {
  min-height: 74px;
  padding: 12px 14px;
}

.trace-center-tabs button.active {
  border-color: #b9c7cd;
  background: #f3f7f7;
}

.drawer-card,
.ui-dialog-card {
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .content {
    padding: 12px;
  }
}

/* Card refinement pass 20260612 */
:root {
  --card-bg: #ffffff;
  --card-border: #dfe4e8;
  --card-border-hover: #c6d1d8;
  --card-muted-bg: #f7f9fa;
  --card-radius: 6px;
}

.metric-grid,
.ops-metric-grid,
.template-metric-grid,
.parts-metric-grid {
  gap: 12px;
}

.panel,
.metric-card,
.dashboard-task,
.todo-item,
.quick-action,
.settings-entry,
.ops-command,
.ops-status-item,
.ops-closure-card,
.ops-recent-item,
.ops-workflow-item,
.ops-flow-step,
.quote-form-card,
.quote-bottom-card,
.right-card,
.quote-final-action-card,
.draft-card,
.saved-draft-card,
.customer-brand-card,
.customer-summary-card,
.contract-party-card,
.supplier-invite-card,
.supplier-table-card,
.supplier-line-card,
.attachment-preview-card,
.template-save-panel,
.supplier-import-panel,
.data-check-panel,
.quote-price-sync-panel,
.part-review-import-panel,
.part-price-change-panel,
.stability-panel,
.customer-workbench-panel,
.customer-portal-panel,
.project-customer-progress-panel,
.contract-settings-panel,
.contract-preview-panel,
.trace-center-panel,
.operation-log-panel,
.batch-quote-panel {
  border: 1px solid var(--card-border);
  border-left-width: 1px;
  border-left-color: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: none;
}

.metric-card:hover,
.dashboard-task:hover,
.todo-item:hover,
.quick-action:hover,
.settings-entry:hover,
.ops-command:hover,
.ops-status-item:hover,
.ops-closure-card:hover,
.ops-recent-item:hover,
.ops-workflow-item:hover,
.ops-flow-step:hover,
.right-card:hover,
.draft-card:hover,
.saved-draft-card:hover,
.customer-summary-card:hover,
.supplier-line-card:hover {
  border-color: var(--card-border-hover);
  background: #fbfdfd;
  box-shadow: none;
}

.metric-card {
  min-height: 82px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon desc";
  gap: 2px 12px;
  padding: 14px 16px;
}

.metric-card > svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #e2ebef;
  border-radius: 6px;
  background: var(--card-muted-bg);
  color: #00747d;
}

.metric-card span {
  color: #657386;
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  color: #071330;
  font-size: 24px;
  font-weight: 920;
  line-height: 1.05;
}

.metric-card small {
  color: #657386;
  font-size: 12px;
}

.panel-head {
  padding: 14px 18px;
}

.panel-body {
  padding: 14px;
}

.dashboard-task,
.todo-item,
.quick-action,
.settings-entry,
.ops-command,
.ops-status-item,
.ops-closure-card,
.ops-recent-item,
.ops-workflow-item,
.ops-flow-step {
  padding: 12px 14px;
}

.dashboard-task strong,
.todo-item strong,
.quick-action strong,
.settings-entry strong,
.ops-status-item strong,
.ops-closure-card strong,
.ops-recent-item strong,
.customer-summary-card strong,
.contract-party-card strong {
  color: #071330;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-task span,
.todo-item span,
.quick-action span,
.settings-entry span,
.ops-status-item span,
.ops-closure-card span,
.ops-recent-item small,
.customer-summary-card span,
.contract-party-card p {
  color: #657386;
  letter-spacing: 0;
}

.ops-closure-icon,
.quick-action svg,
.settings-entry svg {
  border-radius: 6px;
  background: var(--card-muted-bg);
}

.quote-panel-right .right-card,
.right-card {
  padding: 14px;
}

.right-card h3,
.quote-panel-title strong {
  color: #071330;
  font-weight: 900;
}

.trace-category-cell,
.record-actions,
.trace-actions {
  min-width: 0;
}

/* Closure center merge pass 20260612 */
.closure-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 12px;
  padding: 14px 18px 4px;
}

.closure-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.closure-card,
.closure-queue-panel,
.closure-queue-row {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: #ffffff;
  box-shadow: none;
}

.closure-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon desc";
  gap: 2px 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.closure-card:hover,
.closure-queue-row:hover {
  border-color: var(--card-border-hover);
  background: #fbfdfd;
}

.closure-card i {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e2ebef;
  border-radius: 6px;
  background: var(--card-muted-bg);
  color: #00747d;
}

.closure-card i svg {
  width: 20px;
  height: 20px;
}

.closure-card span {
  grid-area: label;
  color: #657386;
  font-size: 12px;
  font-weight: 850;
}

.closure-card strong {
  grid-area: value;
  color: #071330;
  font-size: 24px;
  line-height: 1;
}

.closure-card em {
  grid-area: desc;
  overflow: hidden;
  color: #657386;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closure-queue-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.closure-queue-panel h3 {
  margin: 0;
  color: #071330;
  font-size: 15px;
}

.closure-queue-panel p {
  margin: 4px 0 0;
  color: #657386;
  font-size: 12px;
}

.closure-queue-list {
  display: grid;
  gap: 7px;
}

.closure-queue-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 3px 10px;
  padding: 10px 12px;
  text-align: left;
}

.closure-queue-row span {
  grid-row: span 2;
  align-self: center;
  color: #00747d;
  font-size: 12px;
  font-weight: 900;
}

.closure-queue-row strong {
  overflow: hidden;
  color: #071330;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closure-queue-row em {
  overflow: hidden;
  color: #657386;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .closure-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .closure-workbench {
    padding: 12px;
  }

  .closure-card-grid {
    grid-template-columns: 1fr;
  }

  .closure-queue-row {
    grid-template-columns: 1fr;
  }

  .closure-queue-row span {
    grid-row: auto;
  }
}

/* AI chat page 20260614 */
.content.page-ai-chat {
  height: calc(100vh - 96px);
  overflow: hidden;
}

.ai-chat-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #c9d6df;
  background: #f6f9fb;
  color: #2d4054;
  font-size: 13px;
}

.ai-chat-status.ready {
  border-color: #b8d7cc;
  background: #edf8f3;
  color: #08714f;
}

.ai-chat-status.warn {
  border-color: #efd49a;
  background: #fff8e8;
  color: #946200;
}

.ai-chat-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}

.ai-chat-panel,
.ai-chat-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ai-chat-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ai-chat-body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.ai-chat-stream {
  min-height: 320px;
  max-height: calc(100vh - 310px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: #f5f8fa;
}

.ai-chat-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #657386;
  text-align: center;
}

.ai-chat-empty svg {
  width: 36px;
  height: 36px;
  color: #00747d;
}

.ai-chat-empty strong {
  color: #071330;
  font-size: 16px;
}

.ai-chat-message {
  width: min(760px, 86%);
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: #fff;
}

.ai-chat-message.user {
  justify-self: end;
  border-color: #b9cbd7;
  background: #eef6f8;
}

.ai-chat-message.assistant {
  justify-self: start;
}

.ai-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-chat-message-meta strong {
  color: #071330;
  font-size: 12px;
}

.ai-chat-message-meta span {
  color: #7b8794;
  font-size: 11px;
}

.ai-chat-message-body {
  color: #203247;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ai-chat-composer {
  display: grid;
  gap: 10px;
}

.ai-chat-composer textarea {
  min-height: 92px;
  max-height: 180px;
}

.ai-chat-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-chat-helper,
.ai-chat-composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chat-helper span {
  color: #657386;
  font-size: 12px;
  font-weight: 800;
}

.ai-chat-side-body {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
}

/* Uiverse.io by marcelodolza: Voice-activated AI Card, scoped for AI chat. */
.ai-uiverse-voice {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
}

.ai-uiverse-voice-state {
  margin-top: -8px;
  padding: 0 8px 8px;
  color: #657386;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.ai-uiverse-voice-grid {
  --perspective: 800px;

  position: absolute;
  left: 0;
  right: 0;
  top: -2.5rem;
  bottom: -2.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transform-style: preserve-3d;
}

.ai-uiverse-voice-grid .ai-uiverse-area {
  position: relative;
  z-index: 1;
}

.ai-uiverse-voice-grid input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ai-uiverse-voice-grid::after,
.ai-uiverse-voice-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.ai-uiverse-voice-grid::after {
  width: 600px;
  height: 380px;
  background: radial-gradient(#f0d4e9 100%, #ae98c7 0%);
  transform: translateZ(-100px) translateX(-40px) translateY(-120px);
}
.ai-uiverse-voice-grid::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(#b0a8d9 100%, #a2a1bf 0%);
  transform: translateZ(-120px) translateX(100px) translateY(100px);
}

.ai-uiverse-voice-wrap {
  display: flex;
  align-items: center;
  justify-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 9;
  transform-style: preserve-3d;
  cursor: pointer;
}

.ai-uiverse-voice-card {
  transform-style: preserve-3d;
  padding: 7px 7px 7px 7px;
  will-change: transform;
  transition: all 0.6s ease;
  width: 326px;
  height: 360px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 40px rgba(0, 0, 60, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  padding-bottom: 70px;
  pointer-events: none;
}
.ai-uiverse-voice-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
  transition: all 0.5s linear;
  background: rgba(208, 228, 255, 0.3);
  backdrop-filter: blur(10px);
}

.ai-uiverse-outline {
  position: absolute;
  overflow: hidden;
  inset: 0;
  outline: none;
  transition: all 0.4s ease;
  border-radius: 27px;
  transform-style: preserve-3d;
}
.ai-uiverse-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 400px;
  height: 550px;
  margin: auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    white 50%,
    transparent 100%
  );
  animation: aiUvRotate 3s linear infinite;
  transform: translateZ(10px);
  animation-play-state: paused;
}

.ai-uiverse-wave {
  position: absolute;
  width: 200px;
  height: 200px;
  inset: 0;
  bottom: 60px;
  margin: auto;
  opacity: 0;
  transition: all 0.3s linear;
}
.ai-uiverse-wave::before,
.ai-uiverse-wave::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 30px rgba(106, 76, 172, 0.5);
  filter: blur(2px);
  inset: 0;
  animation: aiUvWave 1.5s linear infinite;
}
.ai-uiverse-wave::after {
  animation-delay: 0.4s;
}

.ai-uiverse-circle-1 {
  width: 224px;
  height: 224px;
  border-radius: 50%;
  position: absolute;
  box-shadow:
    inset 0 0 3px 0 white,
    inset 60px 40px 30px -40px rgba(106, 76, 172, 0.15),
    20px 20px 70px -5px rgb(150, 166, 197),
    -50px -50px 70px 20px rgba(255, 255, 255, 0.7),
    inset 0 0 30px 0 white;
  background: hsl(0deg 0% 70% / 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aiUvCircle1 4.2s ease-in-out infinite 0.3s;
  transform-style: preserve-3d;
  z-index: 1;
  --z: 0px;
}
.ai-uiverse-circle-1::after,
.ai-uiverse-circle-1::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  width: 30%;
  height: 30%;
}
.ai-uiverse-circle-1::before {
  background: #ff0073;
  top: 30%;
  right: 30%;
}
.ai-uiverse-circle-1::after {
  background: #00baff;
  bottom: 10%;
  left: 30%;
}
.ai-uiverse-circle-1 .ai-uiverse-lines {
  animation: aiUvRotate 30s linear infinite;
}
.ai-uiverse-circle-1 .ai-uiverse-lines svg {
  stroke: white;
  animation: aiUvLines 3s ease-in-out infinite;
  stroke-width: 2px;
}
.ai-uiverse-circle-1 .ai-uiverse-lines path {
  animation: aiUvLine 3s ease-in-out calc(var(--i) * -1s) infinite;
  stroke-dasharray: 100;
  stroke-dashoffset: 10;
  transition: all 0.3s linear;
}
.ai-uiverse-circle-2 {
  width: 123px;
  height: 123px;
  border-radius: 50%;
  position: absolute;
  transform-style: preserve-3d;
  animation: aiUvCircle2 4.2s ease-in-out infinite;
  background-color: white;
  z-index: 9;
  --z: 10px;
}
.ai-uiverse-circle-2::before,
.ai-uiverse-circle-2::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
}
.ai-uiverse-circle-2::before {
  background: #ff0073;
  width: 30%;
  height: 30%;
  top: 20%;
  right: 20%;
}
.ai-uiverse-circle-2::after {
  background: #00bbff;
  width: 20%;
  height: 20%;
  bottom: 10%;
  left: 40%;
}
.ai-uiverse-circle-2 .ai-uiverse-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 25px 10px rgba(255, 255, 255, 0.8),
    0 0 10px 10px rgba(255, 255, 255, 0.9);
  background-color: #9292d8;
  animation: aiUvBgRotate 2.5s linear infinite;
  animation-play-state: paused;
  transition: all 0.3s ease;
}
.ai-uiverse-circle-2 .ai-uiverse-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: aiUvBg 4s linear infinite;
  border-radius: inherit;
  transition: all 0.4s linear;
  box-shadow: inset 0 0 25px 10px rgba(255, 255, 255, 0.8);
  opacity: 0;
}

.ai-uiverse-icon {
  transform: translateZ(50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  position: absolute;
  z-index: 1;
}
.ai-uiverse-icon svg {
  width: 64px;
  transition: all 0.8s cubic-bezier(0.7, -1, 0.3, 1.5);
  position: absolute;
}
.ai-uiverse-icon-2 {
  transform: translateY(80px) scale(0.7) rotateX(90deg);
  filter: blur(2px);
  opacity: 0;
  mask-image: linear-gradient(
    to bottom,
    rgb(255 255 255 / 100%) 10%,
    rgb(255 255 255 / 20%)
  );
}
.ai-uiverse-icon-2 .ai-uiverse-cut {
  stroke-dasharray: 732;
  stroke-dashoffset: 732;
  animation: aiUvReducePath 0.5s ease forwards;
}

.ai-uiverse-voice-card footer {
  transform: translateZ(10px);
  padding: 12px 18px;
  position: absolute;
  bottom: 17px;
  left: 17px;
  right: 17px;
  transform-style: preserve-3d;
}
.ai-uiverse-voice-card footer::before {
  content: "";
  border-radius: 15px;
  animation: aiUvFooter 9s ease infinite 0.8s;
  position: absolute;
  z-index: -1;
  inset: 0;
  filter: blur(15px) brightness(1.5);
  transform: scaleY(0);
  background: rgba(236, 237, 246, 0.7);
  box-shadow:
    inset 0 0 2px 0 white,
    0 5px 10px -5px rgba(0, 0, 60, 0.25);
  backdrop-filter: blur(5px);
  background: linear-gradient(
    to bottom,
    rgb(242 243 252 / 80%) 0%,
    rgb(220 220 232 / 80%) 100%
  );
}
.ai-uiverse-voice-card footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  font-size: 11px;
  position: relative;
  z-index: 10;
  transform: translateZ(20px);
  line-height: 17px;
  transition: all 0.3s ease;
  color: #696969;
}
.ai-uiverse-voice-card footer .ai-uiverse-bold {
  font-weight: 600;
  color: black;
}
.ai-uiverse-voice-card footer span {
  display: inline-block;
  animation: aiUvLabels 9s ease calc(1s + var(--i) * 0.05s) infinite;
  opacity: 0;
}

/** STATES */

.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-1,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-2,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-1 .ai-uiverse-lines,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-1 .ai-uiverse-lines svg,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-1 .ai-uiverse-lines path,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-outline::before,
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-2 .ai-uiverse-bg {
  animation-play-state: paused;
}
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-circle-1 .ai-uiverse-lines path {
  opacity: 0;
}
.ai-uiverse-voice-wrap input:checked + .ai-uiverse-voice-card .ai-uiverse-wave {
  opacity: 0;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-voice-card:before {
  backdrop-filter: blur(10px);
  background: transparent;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-outline::before {
  animation-play-state: running;
}
.ai-uiverse-voice-wrap:hover input:checked + .ai-uiverse-voice-card .ai-uiverse-icon-2 {
  transform: translateY(80px) scale(0.7) rotateX(90deg);
  filter: blur(2px);
  opacity: 0;
}
.ai-uiverse-voice-wrap:hover input:checked + .ai-uiverse-voice-card .ai-uiverse-icon-1 {
  transform: none;
  filter: none;
  opacity: 1;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-icon-1 {
  transform: translateY(-80px) scale(0.7) rotateX(90deg);
  filter: blur(2px);
  opacity: 0;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-icon-2 {
  transform: none;
  filter: none;
  opacity: 0.6;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-icon-2 .ai-uiverse-cut {
  animation: aiUvGrowPath 0.3s ease 0.6s forwards;
}
.ai-uiverse-voice-wrap:hover footer p {
  transform: translateY(-4px) translateZ(20px);
}

.ai-uiverse-voice-wrap:hover .ai-uiverse-bg {
  animation-play-state: running;
}

.ai-uiverse-voice-wrap:hover .ai-uiverse-wave {
  opacity: 1;
}
.ai-uiverse-voice-wrap:hover .ai-uiverse-circle-2 .ai-uiverse-bg::before {
  opacity: 0.2;
}

.ai-uiverse-voice-wrap:hover .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(0)
    scale3d(1, 1, 1);
}

.ai-uiverse-area:nth-child(15):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(15deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(14):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(13):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(0)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(12):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(-7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(11):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(-15deg)
    scale3d(1, 1, 1);
}

.ai-uiverse-area:nth-child(10):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(15deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(9):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(8):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(0)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(7):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(-7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(6):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(0) rotateY(-15deg)
    scale3d(1, 1, 1);
}

.ai-uiverse-area:nth-child(5):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(15deg) rotateY(15deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(4):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(15deg) rotateY(7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(3):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(15deg) rotateY(0)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(2):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(15deg) rotateY(-7deg)
    scale3d(1, 1, 1);
}
.ai-uiverse-area:nth-child(1):hover ~ .ai-uiverse-voice-wrap .ai-uiverse-voice-card {
  transform: perspective(var(--perspective)) rotateX(15deg) rotateY(-15deg)
    scale3d(1, 1, 1);
}

@keyframes aiUvLines {
  0% {
    transform: scale(0.41);
  }

  15% {
    transform: scale(0.37);
  }

  36% {
    transform: scale(0.41);
  }

  50% {
    transform: scale(0.38);
  }

  65% {
    transform: scale(0.43);
  }

  80% {
    transform: scale(0.39);
  }

  100% {
    transform: scale(0.41);
  }
}

@keyframes aiUvLine {
  0% {
    stroke-dashoffset: 10;
  }
  50% {
    stroke-dashoffset: 45;
  }
  100% {
    stroke-dashoffset: 10;
  }
}

@keyframes aiUvRotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes aiUvCircle1 {
  0% {
    transform: scale(0.97) translateZ(calc(20px + var(--z)));
  }
  15% {
    transform: scale(1) translateZ(calc(30px + var(--z)));
  }
  30% {
    transform: scale(0.98) translateZ(calc(20px + var(--z)));
  }
  45% {
    transform: scale(1) translateZ(calc(30px + var(--z)));
  }
  60% {
    transform: scale(0.97) translateZ(calc(20px + var(--z)));
  }
  85% {
    transform: scale(1) translateZ(calc(30px + var(--z)));
  }
  100% {
    transform: scale(0.97) translateZ(calc(20px + var(--z)));
  }
}

@keyframes aiUvCircle2 {
  0% {
    transform: scale(1) translateZ(calc(20px + var(--z)));
  }
  15% {
    transform: scale(1.03) translateZ(calc(30px + var(--z)));
  }
  30% {
    transform: scale(0.98) translateZ(calc(20px + var(--z)));
  }
  45% {
    transform: scale(1.04) translateZ(calc(30px + var(--z)));
  }
  60% {
    transform: scale(0.97) translateZ(calc(20px + var(--z)));
  }
  85% {
    transform: scale(1.03) translateZ(calc(30px + var(--z)));
  }
  100% {
    transform: scale(1) translateZ(calc(20px + var(--z)));
  }
}

@keyframes aiUvGrowPath {
  from {
    stroke-dashoffset: 732;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes aiUvReducePath {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 732;
  }
}

@keyframes aiUvBgRotate {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(90deg);
  }
  40% {
    transform: rotate(180deg) scale(0.95, 1);
  }
  60%,
  100% {
    transform: rotate(360deg);
  }
}

@keyframes aiUvBg {
  20% {
    background-color: red;
  }
  40% {
    background-color: #5eff7e;
  }
  60% {
    background-color: #2cb5ff;
  }
  80% {
    background-color: #fc63ff;
  }
}

@keyframes aiUvWave {
  0% {
    transform: scale(1);
    opacity: 0;
    box-shadow: 0 0 30px rgba(106, 76, 172, 0.9);
  }
  35% {
    transform: scale(1.3);
    opacity: 1;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
    box-shadow: 0 0 30px rgba(106, 76, 172, 0.3);
  }
}

@keyframes aiUvFooter {
  0%,
  3% {
    transform: scaleY(0);
    filter: blur(15px) brightness(1.5);
  }
  10%,
  82% {
    filter: blur(0);
    transform: scaleY(1);
  }
  86% {
    transform: scaleY(0);
    filter: blur(15px) brightness(1.5);
  }
}

@keyframes aiUvLabels {
  0% {
    transform: translateY(-30px) rotate(-30deg);
    filter: blur(10px);
  }
  5% {
    transform: translateY(10px);
    filter: blur(0);
  }
  10% {
    transform: translateY(0);
    opacity: 1;
  }
  73% {
    transform: translateY(0);
    opacity: 1;
  }
  76% {
    transform: translateY(-5px);
    filter: blur(0);
  }
  80% {
    transform: translateY(15px);
    opacity: 0;
    filter: blur(5px);
  }
}


.ai-chat-quick {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ai-chat-quick:hover {
  border-color: var(--card-border-hover);
  background: #fbfdfd;
  transform: translateY(-1px);
}

.ai-chat-quick strong {
  color: #071330;
  font-size: 13px;
  font-weight: 900;
}

.ai-chat-quick span {
  color: #657386;
  font-size: 12px;
}

.ai-config-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ai-config-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-config-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.ai-config-table-wrap {
  min-height: 0;
  overflow: auto;
}

.ai-config-table {
  min-width: 1080px;
}

.ai-config-table th,
.ai-config-table td {
  white-space: normal;
  vertical-align: top;
}

.ai-config-table td:nth-child(4) {
  overflow-wrap: anywhere;
}

.ai-config-form textarea {
  min-height: 150px;
}

@media (max-width: 1180px) {
  .content.page-ai-chat {
    height: auto;
    overflow: visible;
  }

  .ai-chat-layout {
    grid-template-columns: 1fr;
  }

  .ai-chat-stream {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .ai-chat-message {
    width: 100%;
  }

  .ai-chat-head-actions,
  .ai-chat-composer-bar,
  .ai-chat-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-chat-head-actions > *,
  .ai-chat-composer-actions > * {
    width: 100%;
  }
}

.business-board-panel {
  min-width: 0;
}

.business-board-wrap {
  overflow-x: auto;
}

.business-board-table {
  min-width: 860px;
  table-layout: fixed;
}

.business-board-table td {
  vertical-align: top;
  white-space: normal;
}

.business-board-table th:nth-child(1),
.business-board-table td:nth-child(1) {
  width: 72px;
}

.business-board-table th:nth-child(2),
.business-board-table td:nth-child(2) {
  width: 30%;
}

.business-board-table th:nth-child(3),
.business-board-table td:nth-child(3) {
  width: 42%;
}

.business-board-table th:nth-child(4),
.business-board-table td:nth-child(4) {
  width: 130px;
}

.business-board-table th:nth-child(5),
.business-board-table td:nth-child(5) {
  width: 110px;
}

.board-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.board-event-cell {
  min-width: 0;
}

.board-event-no,
.board-event-name,
.board-event-customer {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-event-no {
  color: #071b3a;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.board-event-name {
  margin-top: 4px;
  color: #172b4d;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.28;
}

.board-event-customer {
  margin-top: 4px;
  color: #55708a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.board-type {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.board-stage-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.business-board-overview {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
}

.board-group-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  border: 1px solid #e6edf3;
  border-radius: 6px;
  background: #f8fafc;
}

.board-group-card strong {
  grid-row: span 2;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.board-group-card span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.board-group-card em {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-group-card.pending {
  background: #fffaf0;
  border-color: #fde5b6;
}

.board-group-card.active {
  background: #f0f9ff;
  border-color: #bfdbfe;
}

.board-group-card.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.business-board-section-row td {
  position: sticky;
  top: 35px;
  z-index: 2;
  padding: 8px 12px !important;
  background: #f4f7fa !important;
  border-top: 1px solid #dfe7ef;
  border-bottom: 1px solid #dfe7ef;
}

.business-board-section-row div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.business-board-section-row strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.business-board-section-row span {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.business-board-section-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.business-board-data-row td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.board-current-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.board-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 0;
  max-width: 620px;
  padding-top: 2px;
}

.board-stage-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 11px;
  height: 1px;
  background: #dbe5ee;
}

.board-stage-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
}

.board-stage-step i {
  width: 18px;
  height: 18px;
  border: 2px solid #dbe5ee;
  border-radius: 50%;
  background: #ffffff;
}

.board-stage-step b,
.board-stage-step em {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-stage-step b {
  color: #334155;
  font-weight: 800;
}

.board-stage-step em {
  color: #64748b;
  font-style: normal;
}

.board-stage-step.ok i {
  border-color: #0f9f6e;
  background: #dcfce7;
}

.board-stage-step.info i {
  border-color: #3b82f6;
  background: #dbeafe;
}

.board-stage-step.warn i {
  border-color: #f59e0b;
  background: #fef3c7;
}

.board-stage-step.danger i {
  border-color: #ef4444;
  background: #fee2e2;
}

.board-stage-step.is-quiet {
  opacity: .58;
}

.board-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 160px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.2;
}

.board-stage-chip b,
.board-stage-chip em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-stage-chip b {
  color: #334155;
}

.board-stage-chip em {
  color: #64748b;
  font-style: normal;
}

.board-stage-chip.ok {
  border-color: #b9e4cd;
  background: #ecfdf3;
  color: #147a4d;
}

.board-stage-chip.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.board-stage-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.board-stage-chip.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.board-next {
  color: #172b4d;
  font-size: 13px;
}

.board-next-action {
  min-width: 72px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cfe1e8;
  border-radius: 6px;
  background: #ffffff;
  color: #006b75;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.board-next-action:hover {
  border-color: #087f88;
  background: #eefbfc;
}

/* Brand fix 20260626: keep the sidebar logo present and the product name black. */
.side-brand .brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #159a9c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(21, 154, 156, .18);
}

.side-brand .brand-copy strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.side-brand .brand-copy span {
  color: #657386;
}

.sidebar-collapsed .side-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

/* Logo image fix 20260626: use the real Fengjun mark instead of a text badge. */
.side-brand .brand-logo-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.side-brand .brand-logo-btn img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sidebar-collapsed .side-brand .brand-logo-btn,
.sidebar-collapsed .side-brand .brand-logo-btn img {
  width: 38px;
  height: 38px;
}

/* Fixed shell scroll 20260626: keep sidebar/topbar anchored; scroll only workspace content. */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100%;
}

.login-screen {
  height: 100vh;
  min-height: 0;
  overflow: auto;
}

.app-shell {
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  height: 100vh;
  max-height: 100vh;
  flex: 0 0 246px;
  position: relative;
  z-index: 30;
  overflow: hidden;
}

.sidebar-collapsed .sidebar {
  flex-basis: 58px;
}

.main {
  height: 100vh;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 25;
  flex: 0 0 auto;
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.business-board-panel {
  min-width: 0;
}

.business-board-wrap {
  max-width: 100%;
  overflow: visible;
}

.business-board-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Board duplicate title cleanup 20260626. */
.business-board-panel {
  padding-top: 10px;
}

.business-board-toolbar {
  justify-content: flex-end;
  padding: 0 10px 10px;
  border-bottom: 0;
  background: transparent;
}

/* Top full-row framework 20260626. */
.app-shell {
  display: flex;
  flex-direction: column;
  background: #f5f6f6;
}

.global-topbar {
  height: 66px;
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #e6ebf0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  z-index: 45;
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.global-brand .brand-logo-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.global-brand .brand-logo-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.global-brand .brand-copy strong {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.global-brand .brand-copy span {
  color: #657386;
  font-size: 11px;
}

.global-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.global-top-actions .search-box {
  width: min(360px, 28vw);
}

.app-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.sidebar {
  height: auto;
  max-height: none;
  flex: 0 0 246px;
}

.sidebar .side-brand {
  height: 42px;
  justify-content: flex-end;
  padding: 0 12px;
  border-bottom: 1px solid #eceff3;
}

.sidebar .side-brand .collapse-btn {
  display: inline-flex;
}

.sidebar-collapsed .sidebar {
  flex-basis: 58px;
}

.sidebar-collapsed .sidebar .side-brand {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .sidebar .collapse-btn {
  display: inline-flex;
}

.main {
  height: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #f5f6f6;
}

.topbar {
  min-height: 54px;
  padding: 14px 20px 6px;
  background: #f5f6f6;
  border-bottom: 0;
  box-shadow: none;
}

.topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumb {
  color: #00717c;
  font-size: 13px;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.top-actions {
  display: none;
}

.content {
  padding: 8px 20px 20px;
  background: #f5f6f6;
}

.panel,
.quote-table-wrap,
.record-table-wrap,
.business-board-panel {
  border-radius: 0;
}

.content > .panel,
.content > .business-board-panel,
.content > .quote-table-wrap,
.content > .record-table-wrap {
  width: 100%;
  min-height: calc(100vh - 66px - 54px - 42px - 40px);
  background: #ffffff;
  border: 1px solid #edf0f2;
  box-shadow: none;
}

.business-board-panel {
  padding-top: 0;
}

.business-board-wrap {
  background: #ffffff;
}

@media (max-width: 980px) {
  .global-topbar {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .global-brand {
    min-width: 160px;
  }

  .global-top-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .global-top-actions .search-box {
    width: 240px;
    min-width: 220px;
  }
}

/* Top-frame final layout 20260626: right side = location, actions, work frame. */
.app-shell {
  display: flex;
  flex-direction: column;
}

.global-topbar {
  position: relative;
  width: 100%;
}

.app-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.app-body .sidebar {
  height: auto;
  max-height: none;
  align-self: stretch;
}

.app-body .main {
  height: auto;
  min-height: 0;
}

.topbar {
  flex: 0 0 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px 20px 4px;
}

.topbar > div:first-child {
  width: 100%;
}

.page-actionbar {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 20px 8px;
  background: #f5f6f6;
}

.page-actionbar.is-empty {
  min-height: 8px;
  padding-bottom: 0;
}

.page-actionbar-inner {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  overflow-x: auto;
}

.page-actionbar-inner > * {
  flex: 0 0 auto;
}

.page-actionbar .record-toolbar,
.page-actionbar .parts-manage-toolbar,
.page-actionbar .compact-toolbar {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.content {
  padding: 0 20px 20px;
}

.content > .panel,
.content > .business-board-panel,
.content > .quote-table-wrap,
.content > .record-table-wrap {
  min-height: calc(100vh - 66px - 54px - 42px - 20px);
  border-radius: 0;
}

@media (max-width: 980px) {
  .topbar {
    flex-basis: auto;
  }

  .page-actionbar {
    padding: 0 14px 8px;
  }

  .content {
    padding: 0 14px 14px;
  }
}

/* Sidebar typography restore 20260626: keep current nav layout, restore the more comfortable text scale. */
.module-nav {
  gap: 0;
}

.nav-block {
  margin: 0;
}

.nav-row,
.child-row {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  gap: 12px;
}

.child-row {
  font-size: 14px;
  font-weight: 500;
}

.nav-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-arrow {
  width: 14px;
  height: 14px;
}

.side-user strong {
  font-size: 13px;
}

.side-user span {
  font-size: 12px;
}

/* Business board fixed frame 20260626: keep the white frame fixed, scroll only inside it. */
.content.page-business-board {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content.page-business-board > .business-board-panel {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content.page-business-board .business-board-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.content.page-business-board .business-board-table thead th {
  top: 0;
}

/* Visual polish 20260626: logo-blue hierarchy, quieter chrome, balanced board columns. */
:root {
  --primary: #215fba;
  --primary-hover: #174b95;
  --primary-soft: #eaf2ff;
}

.global-topbar {
  height: 60px;
  flex-basis: 60px;
  border-bottom-color: #edf1f5;
}

.global-top-actions {
  gap: 6px;
}

.global-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.global-top-actions .icon-btn,
.global-top-actions .ghost-btn {
  height: 32px;
  border-color: transparent;
  background: transparent;
  color: #42526e;
}

.global-top-actions .icon-btn:hover,
.global-top-actions .ghost-btn:hover {
  border-color: #d7e2ee;
  background: #f5f8fc;
  color: var(--primary);
}

.global-top-actions .search-box {
  width: min(320px, 24vw);
  height: 34px;
  border-color: #d9e2ec;
  background: #fbfdff;
}

.global-top-actions .primary-btn {
  height: 34px;
  background: var(--primary);
  border-color: var(--primary);
}

.topbar {
  flex-basis: 48px;
  min-height: 48px;
  padding-top: 8px;
}

.breadcrumb {
  color: var(--primary);
}

.nav-row.active,
.child-row.active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: var(--primary);
}

.nav-badge {
  background: #edf3f8;
  color: #60758a;
  border-color: #d8e4ee;
  font-weight: 750;
}

.nav-row.active .nav-badge,
.child-row.active .nav-badge,
.nav-badge.alert {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #c8dafa;
}

.content > .business-board-panel {
  min-height: calc(100vh - 60px - 48px - 42px - 20px);
}

.business-board-table th:nth-child(2),
.business-board-table td:nth-child(2) {
  width: 32%;
}

.business-board-table th:nth-child(3),
.business-board-table td:nth-child(3) {
  width: 39%;
}

.business-board-table th:nth-child(4),
.business-board-table td:nth-child(4) {
  width: 116px;
}

.business-board-table th:nth-child(5),
.business-board-table td:nth-child(5) {
  width: 96px;
  text-align: center;
}

.business-board-table th:nth-child(5),
.business-board-table td:nth-child(5) {
  background: transparent;
  box-shadow: none;
}

.business-board-section-row td {
  top: 34px;
}

.board-type {
  background: #edf4ff;
  color: var(--primary);
}

.board-stage-track {
  max-width: 540px;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
}

.board-stage-track.is-empty {
  display: block;
  max-width: none;
  padding-top: 0;
}

.board-stage-track.is-empty::before {
  display: none;
}

.board-stage-empty {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 22px;
  color: #8a9aaa;
  font-size: 12px;
}

.board-stage-empty::before {
  display: none;
}

.board-stage-step i {
  width: 15px;
  height: 15px;
}

.board-stage-step b,
.board-stage-step em {
  max-width: 60px;
}

.board-stage-step.info i {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.board-risk-clear {
  color: #9aa8b5;
  font-size: 12px;
  font-weight: 650;
}

.board-next-action {
  min-width: 64px;
  height: 30px;
  border-color: #cad9ed;
  background: #f8fbff;
  color: var(--primary);
}

.board-next-action:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

@media (max-width: 980px) {
  .global-top-actions .search-box {
    width: 220px;
  }
}

/* Business board clean list 20260627: match the lighter event-led table direction. */
.business-board-table {
  min-width: 1320px;
  table-layout: fixed;
}

.business-board-table thead th {
  height: 42px;
  padding: 0 8px;
  background: #eaf2f8;
  color: #0f2742;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  vertical-align: middle;
}

.business-board-table tbody td {
  height: 42px;
  padding: 6px 8px;
  color: #001a38;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  vertical-align: middle;
  overflow: hidden;
  border-bottom-color: #e7eef4;
}

.business-board-table th:first-child,
.business-board-table td:first-child,
.business-board-table th:nth-child(4),
.business-board-table td:nth-child(4),
.business-board-table th:last-child,
.business-board-table td:last-child {
  position: static;
  left: auto;
  right: auto;
  z-index: auto;
  min-width: 0;
  box-shadow: none;
}

.business-board-table td:first-child,
.business-board-table td:nth-child(4),
.business-board-table td:last-child {
  background: inherit;
}

.business-board-table thead th:first-child,
.business-board-table thead th:nth-child(4),
.business-board-table thead th:last-child {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 1;
  min-width: 0;
  box-shadow: none;
}

.business-board-table th:nth-child(1),
.business-board-table td:nth-child(1) {
  width: 118px;
}

.business-board-table th:nth-child(2),
.business-board-table td:nth-child(2) {
  width: 172px;
}

.business-board-table th:nth-child(3),
.business-board-table td:nth-child(3) {
  width: 250px;
}

.business-board-table th:nth-child(4),
.business-board-table td:nth-child(4) {
  width: auto;
}

.business-board-table th:nth-child(5),
.business-board-table td:nth-child(5) {
  width: 238px;
  text-align: left;
}

.business-board-table th:nth-child(6),
.business-board-table td:nth-child(6) {
  width: 210px;
  text-align: left;
}

.business-board-table th:nth-child(7),
.business-board-table td:nth-child(7) {
  width: 88px;
  text-align: center;
}

.business-board-table th:nth-child(5),
.business-board-table td:nth-child(5),
.business-board-table th:nth-child(6),
.business-board-table td:nth-child(6),
.business-board-table th:nth-child(7),
.business-board-table td:nth-child(7) {
  background: transparent;
  box-shadow: none;
}

.business-board-table thead th:nth-child(1),
.business-board-table thead th:nth-child(5) {
  background: #e5eff6;
}

.business-board-data-row:nth-child(even) td {
  background: #f7fafc;
}

.business-board-data-row:hover td {
  background: #f2f7fc;
}

.business-board-section-row td {
  top: 42px;
  height: 34px;
  padding: 6px 8px !important;
  background: #f0f5f9 !important;
}

.business-board-section-row div {
  gap: 8px;
}

.business-board-section-row em {
  color: #748499;
}

.board-type {
  height: 23px;
  padding: 0 9px;
  border: 1px solid #b7d8ee;
  border-radius: 999px;
  background: #e4f4ff;
  color: #075ea8;
  font-size: 12px;
  font-weight: 850;
}

.board-event-no,
.board-event-name,
.board-event-customer {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-event-no {
  color: inherit;
  font-size: 13px;
  font-weight: inherit;
  line-height: inherit;
}

.board-event-customer {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: inherit;
  line-height: inherit;
}

.board-event-name {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: inherit;
  line-height: inherit;
}

.board-list-status {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.board-list-status .status-pill {
  flex: 0 0 auto;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-list-risk {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 112px;
  overflow: hidden;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-stage-track.board-stage-track-compact {
  width: 100%;
  max-width: 238px;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  padding-top: 0;
}

.board-stage-track.board-stage-track-compact::before {
  left: 11px;
  right: 11px;
  top: 8px;
}

.board-stage-track.board-stage-track-compact .board-stage-step {
  min-width: 0;
  overflow: hidden;
  gap: 2px;
  font-size: 10px;
}

.board-stage-track.board-stage-track-compact .board-stage-step i {
  width: 13px;
  height: 13px;
  border-width: 2px;
}

.board-stage-track.board-stage-track-compact .board-stage-step b {
  max-width: 30px;
  color: #516176;
  font-size: 10px;
  font-weight: 700;
}

.board-stage-track.board-stage-track-compact .board-stage-step em {
  display: none;
}

.board-stage-track.board-stage-track-compact .board-stage-empty {
  height: 22px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e3ebf2;
  border-radius: 999px;
  background: #f7fafc;
  color: #8a9aaa;
  font-size: 12px;
  font-weight: 650;
}

.board-next-action {
  min-width: 62px;
  height: 28px;
  padding: 0 9px;
  border-color: #bdd0e5;
  background: #f8fbff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* Style filter 20260628: unify Fengjun Cloud chrome, tables, actions, and status colors. */
:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --surface-subtle: #f8fafb;
  --surface-muted: #edf2f5;
  --line: #d8e0e7;
  --line-soft: #e7edf2;
  --text: #111827;
  --muted: #657386;
  --muted-soft: #94a3b8;
  --primary: #00747d;
  --primary-hover: #005f68;
  --primary-soft: #e8f4f5;
  --table-head: #eef3f5;
  --table-head-text: #1f2a44;
  --orange: #a16207;
  --orange-soft: #fff7e8;
  --danger: #b42318;
  --success: #08714f;
  --warning: #a16207;
  --data-blue: #256f8f;
  --data-teal: #00747d;
  --data-amber: #a16207;
  --data-red: #b42318;
  --data-graphite: #475569;
  --data-blue-soft: #eaf3f8;
  --data-teal-soft: #e8f4f5;
  --data-amber-soft: #fff7e8;
  --data-red-soft: #fff1f0;
  --data-graphite-soft: #f1f5f9;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px rgba(20, 35, 52, .05);
}

.app-shell,
.content.page-business-board,
.content,
.quote-page {
  background: #f4f6f8;
  color: #111827;
}

.global-topbar,
.topbar {
  background: #ffffff;
  border-bottom-color: #e6ebf0;
  color: #111827;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.topbar h1,
.panel-head h2,
.quote-panel-title strong,
.quote-form-head h2,
.dashboard-task strong,
.ops-status-item strong,
.business-board-section-row strong,
.board-event-name {
  color: #111827;
}

.topbar span,
.quote-form-head span,
.dashboard-task span,
.ops-status-item span,
.business-board-section-row span,
.board-event-customer,
.board-stage-step b,
.board-stage-step em {
  color: #657386;
}

.sidebar {
  background: #ffffff;
  border-right-color: #e4e9ee;
  color: #111827;
}

.side-brand strong,
.side-user strong {
  color: #111827;
}

.side-brand span,
.side-user span {
  color: #657386;
}

.nav-row,
.child-row {
  color: #1f2a44;
}

.nav-icon,
.nav-arrow {
  color: #657386;
}

.nav-row:hover,
.child-row:hover {
  background: #f1f5f5;
  color: #111827;
}

.nav-row.active,
.child-row.active {
  background: #e8f4f5;
  color: #005f68;
  box-shadow: inset 3px 0 0 #00747d;
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: #00747d;
}

.nav-badge {
  border-color: #d0dce4;
  background: #f2f6f7;
  color: #00646d;
}

.nav-badge.alert {
  border-color: #f3b8b3;
  background: #fff1f0;
  color: #b42318;
}

.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis,
.board-next-action {
  border-color: #00747d;
  background: #00747d;
  color: #ffffff;
  box-shadow: none;
}

.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover,
.board-next-action:hover {
  border-color: #005f68;
  background: #005f68;
  color: #ffffff;
}

.ghost-btn,
.icon-btn,
.user-btn,
.mini-btn {
  border-color: #d9e0e7;
  background: #ffffff;
  color: #344054;
  box-shadow: none;
}

.ghost-btn:hover,
.icon-btn:hover,
.user-btn:hover,
.mini-btn:hover {
  border-color: #b9c7cd;
  background: #f3f7f7;
  color: #005f68;
}

.danger-btn,
.mini-btn.danger {
  border-color: #f3b8b3;
  background: #fff1f0;
  color: #b42318;
}

.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.quote-bottom-card,
.quote-panel-right .right-card,
.quote-final-action-card,
.business-board-panel,
.dashboard-task,
.dashboard-summary-item,
.ops-status-item,
.panel-card,
.right-card {
  border-color: #e2e8ee;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.quote-panel-title,
.quote-form-head,
.business-board-toolbar,
.panel-head {
  border-bottom-color: #e7edf2;
  background: #f8fafb;
}

input,
select,
textarea,
.quote-combo,
.quote-search,
.search-box {
  border-color: #d9e0e7;
  background: #ffffff;
  color: #111827;
}

input:focus,
select:focus,
textarea:focus,
.quote-combo:focus-within,
.search-box:focus-within {
  border-color: #00747d;
  box-shadow: 0 0 0 3px rgba(0, 116, 125, .12);
}

.quote-table-wrap,
.business-board-wrap {
  border-color: #dfe7ef;
  background: #ffffff;
}

.quote-table th,
.business-board-table thead th,
.quote-price-sync-table th {
  background: #eef3f5;
  color: #1f2a44;
  border-bottom-color: #d8e0e7;
}

.quote-table td,
.business-board-table tbody td,
.quote-price-sync-table td {
  color: #111827;
  border-bottom-color: #edf1f4;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.business-board-data-row:nth-child(even) td {
  background: #fbfdfd;
}

.quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.business-board-data-row:hover td {
  background: #f1f7f7;
}

.quote-table tr.selected td,
.quote-table tr.selected td:first-child,
.quote-table tr.selected td:nth-child(4),
.quote-table tr.selected td:last-child {
  background: #e8f4f5;
}

.business-board-section-row td {
  background: #f3f7f7 !important;
}

.board-type,
.board-stage-chip.info,
.status-pill.info,
.badge-soft:not(.danger),
.supplier-rfq-quote-chip {
  border-color: #cfe1e8;
  background: #eef7f8;
  color: #006b75;
}

.status-pill,
.badge-soft,
.dashboard-task em,
.ops-status-item em,
.business-board-section-row em,
.board-stage-empty {
  border-color: #d8e0e7;
  background: #f3f6f9;
  color: #475569;
}

.status-pill.ok,
.badge-soft.ok,
.ops-status-item.ok em,
.board-stage-step.ok i,
.board-stage-chip.ok {
  border-color: #b8d7cc;
  background: #edf8f3;
  color: #08714f;
}

.status-pill.warn,
.badge-soft.warn,
.ops-status-item.warn em,
.dashboard-task.warn em,
.board-stage-step.warn i,
.board-stage-chip.warn {
  border-color: #efd49a;
  background: #fff8e8;
  color: #946200;
}

.status-pill.danger,
.badge-soft.danger,
.ops-status-item.danger em,
.dashboard-task.danger em,
.board-stage-step.danger i,
.board-stage-chip.danger {
  border-color: #f3b8b3;
  background: #fff1f0;
  color: #b42318;
}

.quote-table tr.low-profit td,
.quote-table tr.low-profit td:first-child,
.quote-table tr.low-profit td:nth-child(4),
.quote-table tr.low-profit td:last-child,
.quote-table tr.row-warn td,
.quote-table tr.row-warn td:first-child,
.quote-table tr.row-warn td:nth-child(4),
.quote-table tr.row-warn td:last-child {
  background: #fff8e8;
}

.quote-table tr.row-danger td,
.quote-table tr.row-danger td:first-child,
.quote-table tr.row-danger td:nth-child(4),
.quote-table tr.row-danger td:last-child {
  background: #fff1f0;
}

.quote-subtotal,
.quote-side-total strong,
.quote-side-grid strong,
.quote-record-fees span.grand,
.profit-rate,
.quote-profit-rate-pill.ok {
  color: #00747d;
}

.quote-final-action-card .quote-cta-action {
  background: #00747d;
  color: #ffffff;
  box-shadow: 5px 5px 0 #0f172a;
}

.quote-final-action-card .quote-cta-action:hover {
  background: #005f68;
  box-shadow: 8px 8px 0 #f4c76b;
}

.quote-final-action-card .quote-cta-action:focus {
  outline-color: rgba(0, 116, 125, .32);
}

.quote-final-action-card .quote-cta-action:disabled {
  box-shadow: 4px 4px 0 #94a3b8;
}

@keyframes quoteCtaColorPulse {
  0%,
  100% {
    fill: #ffffff;
  }
  50% {
    fill: #f4c76b;
  }
}

/* Style filter hardening 20260628: beat older high-specificity accent rules. */
.global-top-actions .primary-btn,
.login-card .primary-btn.wide,
.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis,
.board-next-action {
  background-color: #00747d;
  background-image: none;
  border-color: #00747d;
  color: #ffffff;
  box-shadow: none;
}

.global-top-actions .primary-btn:hover,
.login-card .primary-btn.wide:hover,
.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover,
.board-next-action:hover {
  background-color: #005f68;
  background-image: none;
  border-color: #005f68;
  color: #ffffff;
}

.quote-form-head .mini-btn.emphasis,
.quote-form-head .mini-btn.primary,
.quote-panel-title .mini-btn.primary,
.quote-panel-title .mini-btn.emphasis {
  background-color: #00747d;
  background-image: none;
  border-color: #00747d;
  color: #ffffff;
}

.business-board-table thead th,
.business-board-table thead th:first-child,
.business-board-table thead th:nth-child(1),
.business-board-table thead th:nth-child(4),
.business-board-table thead th:nth-child(5),
.business-board-table thead th:last-child,
.quote-table th,
.quote-table th:first-child,
.quote-table th:nth-child(4),
.quote-table th:last-child {
  background: #eef3f5;
  background-image: none;
  color: #1f2a44;
  border-bottom-color: #d8e0e7;
  box-shadow: none;
}

.business-board-table td:first-child,
.business-board-table td:nth-child(4),
.business-board-table td:last-child,
.quote-table td:first-child,
.quote-table td:nth-child(4),
.quote-table td:last-child {
  background-image: none;
}

.content > .business-board-panel,
.content > .quote-table-wrap,
.content.page-business-board > .business-board-panel,
.content.page-business-board .business-board-wrap,
.quote-panel-left,
.quote-panel-main,
.quote-panel-right,
.quote-form-card,
.quote-bottom-card {
  border-color: #e2e8ee;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.board-type {
  border-color: #cfe1e8;
  background: #eef7f8;
  color: #006b75;
}

.quote-final-action-card .quote-cta-action,
.quote-final-action-card .quote-cta-action:hover {
  background-image: none;
}

/* Logo palette correction 20260628: extend from the actual Fengjun mark. */
:root {
  --primary: #2040a0;
  --primary-hover: #17327f;
  --primary-soft: #eef2ff;
  --orange: #b7791f;
  --orange-soft: #fff7e8;
  --danger: #c91832;
  --success: #08714f;
  --warning: #b7791f;
  --data-blue: #2040a0;
  --data-teal: #3158b8;
  --data-amber: #b7791f;
  --data-red: #c91832;
  --data-blue-soft: #eef2ff;
  --data-teal-soft: #edf2ff;
  --data-red-soft: #fff0f2;
}

.nav-row.active,
.child-row.active {
  background: #eef2ff;
  color: #2040a0;
  box-shadow: inset 3px 0 0 #2040a0;
}

.nav-row.active .nav-icon,
.child-row.active .nav-icon,
.nav-row.active .nav-arrow,
.child-row.active .nav-arrow {
  color: #2040a0;
}

.nav-badge,
.board-type,
.board-stage-chip.info,
.status-pill.info,
.badge-soft:not(.danger),
.supplier-rfq-quote-chip {
  border-color: #cbd7ff;
  background: #eef2ff;
  color: #2040a0;
}

.nav-badge.alert,
.danger-btn,
.mini-btn.danger,
.status-pill.danger,
.badge-soft.danger,
.ops-status-item.danger em,
.dashboard-task.danger em,
.board-stage-step.danger i,
.board-stage-chip.danger {
  border-color: #f4b5bf;
  background: #fff0f2;
  color: #c91832;
}

.global-top-actions .primary-btn,
.login-card .primary-btn.wide,
.primary-btn,
.mini-btn.primary,
.mini-btn.emphasis,
.board-next-action,
.quote-form-head .mini-btn.emphasis,
.quote-form-head .mini-btn.primary,
.quote-panel-title .mini-btn.primary,
.quote-panel-title .mini-btn.emphasis {
  background-color: #2040a0;
  background-image: none;
  border-color: #2040a0;
  color: #ffffff;
  box-shadow: none;
}

.global-top-actions .primary-btn:hover,
.login-card .primary-btn.wide:hover,
.primary-btn:hover,
.mini-btn.primary:hover,
.mini-btn.emphasis:hover,
.board-next-action:hover {
  background-color: #17327f;
  background-image: none;
  border-color: #17327f;
  color: #ffffff;
}

input:focus,
select:focus,
textarea:focus,
.quote-combo:focus-within,
.search-box:focus-within {
  border-color: #2040a0;
  box-shadow: 0 0 0 3px rgba(32, 64, 160, .13);
}

.quote-table tr.selected td,
.quote-table tr.selected td:first-child,
.quote-table tr.selected td:nth-child(4),
.quote-table tr.selected td:last-child {
  background: #eef2ff;
}

.quote-subtotal,
.quote-side-total strong,
.quote-side-grid strong,
.quote-record-fees span.grand,
.profit-rate,
.quote-profit-rate-pill.ok {
  color: #2040a0;
}

.quote-final-action-card .quote-cta-action {
  background: #2040a0;
  background-image: none;
  box-shadow: 5px 5px 0 #111827;
}

.quote-final-action-card .quote-cta-action:hover {
  background: #17327f;
  background-image: none;
  box-shadow: 8px 8px 0 #f01030;
}

.quote-final-action-card .quote-cta-action:focus {
  outline-color: rgba(32, 64, 160, .32);
}

@keyframes quoteCtaColorPulse {
  0%,
  100% {
    fill: #ffffff;
  }
  50% {
    fill: #f01030;
  }
}

/* Quote center simplification 20260628: separate entry, pricing review, and confirmation. */
.quote-page {
  grid-template-columns: clamp(184px, 14vw, 220px) minmax(0, 1fr) clamp(202px, 15vw, 236px);
  gap: 8px;
}

.quote-page.left-collapsed {
  grid-template-columns: 42px minmax(0, 1fr) clamp(202px, 15vw, 236px);
}

.quote-form-head {
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.quote-stage-title {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-stage-flow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #657386;
  font-size: 11px;
  font-weight: 800;
}

.quote-stage-flow span {
  position: relative;
  min-width: 34px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d8e0e7;
  border-radius: 999px;
  background: #ffffff;
  color: #657386;
}

.quote-stage-flow span.active {
  border-color: #cbd7ff;
  background: #eef2ff;
  color: #2040a0;
}

.quote-toolbar {
  flex-wrap: nowrap;
  gap: 6px;
}

.quote-action-main {
  flex: 0 0 auto;
}

.quote-action-secondary {
  flex: 0 0 auto;
}

.quote-form-head .quote-action-group {
  gap: 5px;
}

.quote-form-head .mini-btn {
  min-height: 28px;
  padding: 3px 9px;
}

.quote-form-head .mini-btn.emphasis {
  min-width: 76px;
}

.quote-page.left-collapsed .quote-panel-left {
  width: 42px;
  min-width: 42px;
}

.quote-page.left-collapsed .quote-panel-left .quote-panel-title {
  height: 100%;
  min-height: 0;
  justify-content: flex-start;
  padding: 8px 6px;
}

.quote-page.left-collapsed .quote-panel-left .quote-panel-toggle.left {
  margin: 0 auto;
}

.quote-page.left-collapsed .quote-panel-left .panel-actions,
.quote-page.left-collapsed .quote-panel-left .quote-search,
.quote-page.left-collapsed .quote-panel-left .quote-tree,
.quote-page.left-collapsed .quote-panel-left .quote-panel-title strong {
  display: none;
}

.quote-side-summary {
  gap: 8px;
}

.quote-side-summary h3 {
  margin-bottom: 0;
  color: #111827;
}

.quote-side-total {
  border-color: #cbd7ff;
  background: #eef2ff;
}

.quote-side-total span {
  color: #1f2a44;
}

.quote-side-total strong {
  color: #2040a0;
  font-size: 22px;
}

.quote-side-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.quote-side-grid div {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
}

.quote-side-grid span,
.quote-side-grid strong {
  margin: 0;
}

.quote-side-grid strong {
  max-width: 118px;
  text-align: right;
}

.quote-side-actions {
  grid-template-columns: 1fr;
}

.global-top-actions .global-save-btn {
  height: 32px;
  min-height: 32px;
  padding-inline: 10px;
  gap: 5px;
  font-weight: 900;
}

.global-top-actions .global-save-btn svg {
  width: 15px;
  height: 15px;
}

.quote-final-action-card {
  padding: 10px 10px 12px;
}

.quote-action-menu.quote-action-menu-right {
  right: 0;
  left: auto;
}

@media (max-width: 1180px) {
  .quote-toolbar {
    flex-wrap: wrap;
  }

  .quote-stage-title {
    min-width: 160px;
  }
}

/* Sales quotation simplification 20260628: keep the main path visible, move rare actions behind menus. */
.quote-record-workbench {
  min-height: 0;
}

.quote-record-workbench .panel-head {
  align-items: center;
}

.quote-record-sections {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.quote-archive-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.quote-archive-tabs button {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title count"
    "desc count";
  align-items: center;
  gap: 2px 10px;
  padding: 9px 11px;
  border: 1px solid #d8e0e7;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  text-align: left;
}

.quote-archive-tabs button:hover {
  border-color: #b9c8dc;
  background: #f8fafc;
}

.quote-archive-tabs button.active {
  border-color: #2040a0;
  background: #eef2ff;
  box-shadow: inset 3px 0 0 #2040a0;
}

.quote-archive-tabs span {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-archive-tabs em {
  grid-area: desc;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-archive-tabs b {
  grid-area: count;
  min-width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.quote-archive-tabs button.active b {
  background: #2040a0;
  color: #ffffff;
}

.quote-record-section {
  min-width: 0;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
}

.quote-record-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf5;
  background: #f8fafc;
}

.quote-record-section-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.quote-record-section-head svg {
  width: 16px;
  height: 16px;
  color: #2040a0;
}

.quote-record-section-head p {
  margin: 3px 0 0;
  color: #657386;
  font-size: 12px;
  font-weight: 700;
}

.quote-record-section-head strong {
  min-width: 34px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #2040a0;
  font-size: 13px;
  font-weight: 900;
}

.quote-record-section-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.quote-record-section-tools .mini-btn {
  min-height: 28px;
  white-space: nowrap;
}

.quote-record-section.flow .quote-record-section-head {
  background: #fff7ed;
}

.quote-record-section.flow .quote-record-section-head strong {
  background: #fee2e2;
  color: #b91c1c;
}

.quote-record-section.history .quote-record-section-head {
  background: #f8fafc;
}

.quote-record-section.history .quote-record-section-head svg,
.quote-record-section.history .quote-record-section-head strong {
  color: #64748b;
}

.quote-record-section.history .quote-record-section-head strong {
  background: #e2e8f0;
}

.quote-record-table-wrap {
  max-height: min(340px, 42vh);
  border: 0;
  border-radius: 0 0 8px 8px;
}

.quote-record-table {
  min-width: 1180px;
}

.quote-record-table .record-actions {
  min-width: 118px;
  justify-content: flex-start;
}

.quote-approval-section .quote-record-section-head {
  background: #f3f7fb;
}

.quote-approval-section .quote-record-section-head strong {
  background: #fee2e2;
  color: #b91c1c;
}

.quote-approval-table-wrap {
  max-height: min(260px, 34vh);
  border: 0;
  border-radius: 0 0 8px 8px;
}

.quote-approval-table {
  min-width: 1080px;
}

.quote-record-empty {
  padding: 16px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .quote-archive-tabs {
    grid-template-columns: 1fr;
  }
}

.quote-next-panel {
  display: grid;
  gap: 14px;
}

.quote-next-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quote-next-flow div {
  min-height: 64px;
  padding: 10px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #f8fafc;
}

.quote-next-flow strong {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.quote-next-flow span {
  display: block;
  margin-top: 8px;
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
}

.quote-next-flow div.active {
  border-color: #2040a0;
  background: #eef2ff;
}

.quote-next-flow div.active strong,
.quote-next-flow div.done strong {
  background: #2040a0;
  color: #fff;
}

.quote-next-flow div.done {
  border-color: #b7c4da;
  background: #f3f7fb;
}

.quote-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.quote-next-actions .primary-btn,
.quote-next-actions .ghost-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.quote-next-actions svg {
  width: 17px;
  height: 17px;
}

.user-mini-avatar {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #2040a0;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.personal-settings-panel {
  display: grid;
  gap: 14px;
}

.profile-editor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #f8fafc;
}

.profile-avatar-preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef2ff;
  color: #2040a0;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

.profile-editor-head strong,
.profile-editor-head span {
  display: block;
}

.profile-editor-head strong {
  color: #172b4d;
  font-size: 18px;
  font-weight: 900;
}

.profile-editor-head span {
  margin: 3px 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .quote-next-flow,
  .quote-next-actions {
    grid-template-columns: 1fr;
  }
}

.content.page-quote-list .metric-grid {
  grid-template-columns: repeat(6, minmax(128px, 1fr));
}

.supplier-inquiry-status .row-action-dropdown {
  flex: 0 0 auto;
}

.supplier-inquiry-status .row-action-dropdown > summary {
  min-height: 30px;
}

/* Fengjun home redesign 20260630: brand-led, reduced dashboard noise. */
.content.page-dashboard {
  padding: 14px;
}

.ops-home-page {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.ops-page-minimal.ops-home-page {
  height: calc(100vh - 104px);
  min-height: 660px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.ops-brand-home {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(520px, 1.4fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #c9d6e2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 78, 119, .08), rgba(255, 255, 255, 0) 58%),
    #fff;
  box-shadow: 0 1px 2px rgba(20, 34, 56, .06), 0 12px 24px rgba(20, 34, 56, .05);
}

.ops-brand-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ops-brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 8px 18px rgba(20, 34, 56, .08);
}

.ops-brand-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.ops-brand-eyebrow {
  display: block;
  color: #1d4f91;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-brand-main h2 {
  margin: 4px 0 5px;
  color: #111827;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: 0;
}

.ops-brand-main p {
  margin: 0;
  color: #5f6f83;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.ops-brand-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ops-brand-stat {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #d8e2ec;
  border-top: 3px solid #1d4f91;
  border-radius: 8px;
  background: #fbfdff;
  color: #172338;
  text-align: left;
  cursor: pointer;
}

.ops-brand-stat:nth-child(2),
.ops-brand-stat:nth-child(5),
.ops-brand-stat:nth-child(6) {
  border-top-color: #e11d48;
}

.ops-brand-stat:hover {
  border-color: #9fb8d2;
  background: #f4f8fc;
}

.ops-brand-stat span,
.ops-brand-stat em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-brand-stat span {
  color: #607086;
  font-size: 12px;
  font-weight: 800;
}

.ops-brand-stat strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ops-brand-stat em {
  color: #7a8798;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.ops-home-page .ops-board-grid {
  grid-template-columns: minmax(380px, .95fr) minmax(520px, 1.35fr) minmax(300px, .75fr);
  gap: 12px;
}

.ops-home-page .panel {
  border-radius: 8px;
}

.ops-home-page .panel-head {
  min-height: 48px;
  padding: 10px 12px;
}

.ops-home-page .panel-head h2 {
  font-size: 15px;
}

.ops-home-page .panel-head p {
  font-size: 12px;
  line-height: 1.35;
}

.ops-home-page .quick-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-home-page .quick-action {
  min-height: 68px;
  padding: 10px;
  border-radius: 8px;
}

.ops-home-page .quick-action.primary {
  border-color: #9fb8d2;
  background: #eef5fb;
  color: #164e77;
}

.ops-home-page .quick-action.primary::after {
  background: #e11d48;
}

.ops-home-page .ops-flow-rail {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.ops-home-page .ops-flow-step {
  min-height: 54px;
  border-radius: 8px;
}

.ops-home-page .dashboard-task,
.ops-home-page .ops-status-item {
  border-radius: 8px;
}

.ops-home-page .ops-workflow-board {
  padding: 12px;
  border-color: #c9d6e2;
  background: #fff;
}

.ops-home-page .ops-workflow-head h2 {
  font-size: 20px;
}

.ops-home-page .ops-workflow-strip {
  gap: 8px;
}

.ops-home-page .ops-workflow-node.active {
  border-color: #9fb8d2;
  background: #eef5fb;
  box-shadow: inset 0 3px 0 #1d4f91, 0 10px 18px rgba(29, 79, 145, .10);
}

.ops-home-page .ops-workflow-node.danger,
.ops-home-page .ops-workflow-node.active.danger {
  box-shadow: inset 0 3px 0 #e11d48, 0 10px 18px rgba(225, 29, 72, .10);
}

.ops-home-page .ops-flowdesk-grid {
  gap: 12px;
}

.ops-home-page .ops-command-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ops-home-page .ops-command.primary {
  border-color: #9fb8d2;
  background: #eef5fb;
  color: #164e77;
}

@media (max-width: 1480px) {
  .ops-brand-home {
    grid-template-columns: 1fr;
  }

  .ops-brand-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-home-page .ops-board-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  }

  .ops-home-page .ops-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .6fr);
  }
}

@media (max-width: 980px) {
  .ops-brand-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-home-page .ops-board-grid,
  .ops-home-page .ops-side-stack {
    grid-template-columns: 1fr;
  }

  .ops-home-page .ops-side-stack {
    grid-column: auto;
  }

  .ops-page-minimal.ops-home-page {
    height: auto;
  }

  .ops-home-page .ops-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ops-brand-main {
    align-items: flex-start;
  }

  .ops-brand-main h2 {
    font-size: 20px;
  }

  .ops-brand-stats,
  .ops-home-page .quick-action-grid,
  .ops-home-page .ops-flow-rail,
  .ops-home-page .ops-command-strip {
    grid-template-columns: 1fr;
  }
}

/* Workbench focus pass 20260630: keep dashboard as today's operating desk. */
.ops-workbench-page {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.ops-page-minimal.ops-workbench-page {
  height: calc(100vh - 104px);
  min-height: 620px;
}

.ops-workbench-head {
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
}

.ops-workbench-head .ops-brand-logo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.ops-workbench-head .ops-brand-logo img {
  width: 51px;
  height: 51px;
}

.ops-workbench-head .ops-brand-main h2 {
  font-size: 22px;
}

.ops-workbench-head .ops-brand-main p {
  max-width: 520px;
}

.ops-workbench-head .ops-brand-stat {
  min-height: 72px;
}

.ops-brand-stat-action {
  border-top-color: #164e77;
  background: #eef5fb;
}

.ops-brand-stat-action strong {
  color: #164e77;
}

.ops-workbench-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(540px, 1.08fr);
  gap: 12px;
  overflow: hidden;
}

.ops-workbench-todo-panel,
.ops-workbench-main,
.ops-workbench-actions-panel,
.ops-workbench-status-panel {
  min-width: 0;
  min-height: 0;
}

.ops-workbench-todo-panel,
.ops-workbench-actions-panel,
.ops-workbench-status-panel {
  display: flex;
  flex-direction: column;
}

.ops-workbench-todo-panel {
  border-top: 3px solid #164e77;
}

.ops-workbench-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(188px, .58fr);
  gap: 12px;
  overflow: hidden;
}

.ops-workbench-scroll,
.ops-workbench-actions-panel .panel-body,
.ops-workbench-status-panel .panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.ops-workbench-task-list {
  gap: 8px;
}

.ops-workbench-task-list .dashboard-task {
  min-height: 56px;
  padding: 10px 11px;
  border-radius: 8px;
}

.ops-workbench-task-list .dashboard-task strong {
  font-size: 14px;
}

.ops-workbench-task-list .dashboard-task span {
  font-size: 12px;
  line-height: 1.35;
}

.ops-workbench-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-workbench-actions .quick-action {
  min-height: 82px;
}

.ops-workbench-status-panel {
  border-top: 3px solid #e11d48;
}

.ops-workbench-status-panel .ops-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-workbench-status-panel .ops-status-item {
  min-height: 64px;
}

.ops-workbench-page .ops-command-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1480px) {
  .ops-workbench-head {
    grid-template-columns: 1fr;
  }

  .ops-workbench-grid {
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  }

  .ops-workbench-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .ops-page-minimal.ops-workbench-page {
    height: auto;
    overflow: visible;
  }

  .ops-workbench-page {
    overflow: visible;
  }

  .ops-workbench-grid,
  .ops-workbench-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow: visible;
  }

  .ops-workbench-scroll,
  .ops-workbench-actions-panel .panel-body,
  .ops-workbench-status-panel .panel-body {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .ops-workbench-actions,
  .ops-workbench-status-panel .ops-status-list,
  .ops-workbench-page .ops-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .content.page-quote-list .metric-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

/* Quote panel resize 20260630: draggable left/right side widths. */
.quote-page {
  --quote-left-width: 300px;
  --quote-right-width: 260px;
  grid-template-columns: var(--quote-left-width) 8px minmax(0, 1fr) 8px var(--quote-right-width);
  grid-template-areas: "parts resize-left builder resize-right assist";
}

.quote-resize-handle {
  width: 8px;
  min-width: 8px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: col-resize;
}

.quote-resize-left { grid-area: resize-left; }
.quote-resize-right { grid-area: resize-right; }

.quote-resize-handle::before {
  content: "";
  display: block;
  width: 2px;
  height: 100%;
  margin: 0 auto;
  border-radius: 999px;
  background: transparent;
}

.quote-resize-handle:hover::before,
.quote-resizing .quote-resize-handle::before {
  background: #9fb8d2;
}

.quote-resizing {
  cursor: col-resize;
  user-select: none;
}

.quote-resizing iframe,
.quote-resizing input,
.quote-resizing textarea {
  pointer-events: none;
}

@media (min-width: 981px) {
  .quote-page.left-collapsed {
    grid-template-columns: 42px 0 minmax(0, 1fr) 8px var(--quote-right-width);
  }

  .quote-page.right-collapsed {
    grid-template-columns: var(--quote-left-width) 8px minmax(0, 1fr) 0 42px;
  }

  .quote-page.left-collapsed.right-collapsed {
    grid-template-columns: 42px 0 minmax(0, 1fr) 0 42px;
  }

  .quote-page.left-collapsed .quote-resize-left,
  .quote-page.right-collapsed .quote-resize-right {
    display: none;
  }
}

@media (max-width: 980px) {
  .quote-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "parts"
      "builder"
      "assist";
  }

  .quote-resize-handle {
    display: none;
  }
}

/* Login shell 20260630: keep the entrance aligned with the app chrome. */
.login-screen {
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 460px);
  background: #edf3f8;
}

.login-visual {
  min-height: 100vh;
  background: #e8eff5;
  border-right: 1px solid #c8d5e0;
}

.login-visual img {
  opacity: .92;
  filter: saturate(1.02) contrast(1);
  transform: none;
}

.login-visual img.login-industrial-scene {
  inset: auto 38px 96px 34px;
  width: min(760px, calc(100% - 72px));
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  object-position: left bottom;
  opacity: .96;
}

.login-visual::after {
  pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 243, 248, .72) 0%, rgba(237, 243, 248, .42) 58%, rgba(229, 237, 245, .78) 100%);
}

.visual-grid-lines {
  opacity: .32;
  background:
    repeating-linear-gradient(90deg, rgba(144, 161, 181, .18) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(180deg, rgba(144, 161, 181, .14) 0 1px, transparent 1px 72px);
  mask-image: none;
}

.visual-statusbar {
  top: 30px;
  left: 38px;
  right: 38px;
  min-height: 38px;
  border-color: #c6d3df;
  background: rgba(255, 255, 255, .74);
  color: #263b50;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .04);
  backdrop-filter: blur(10px);
}

.visual-statusbar span,
.visual-statusbar strong {
  color: #263b50;
  font-size: 12px;
  letter-spacing: 0;
}

.visual-statusbar strong {
  color: #164e77;
}

.visual-statusbar strong::before {
  background: #12805c;
  box-shadow: 0 0 0 4px rgba(18, 128, 92, .12);
}

.visual-copy {
  top: 118px;
  left: 48px;
  right: 48px;
  color: #111827;
}

.visual-copy span {
  margin-bottom: 14px;
  color: #164e77;
  font-size: 12px;
  font-weight: 950;
}

.visual-copy h1 {
  max-width: 720px;
  color: #111827;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  text-shadow: none;
}

.visual-copy p {
  margin-top: 16px;
  color: #526476;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.visual-command-panel {
  left: 48px;
  bottom: 32px;
  width: min(520px, calc(100% - 96px));
  padding: 12px;
  border-color: #c6d3df;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(30, 41, 59, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}

.command-panel-head span {
  color: #164e77;
}

.command-panel-head strong {
  color: #172b3d;
}

.command-flow {
  gap: 8px;
}

.command-flow div {
  min-height: 68px;
  border-color: #d3dee8;
  background: #f8fbfd;
  box-shadow: inset 3px 0 0 #dbe6ef;
}

.command-flow div::after {
  background: #164e77;
  opacity: .72;
  animation: none;
}

.command-flow b {
  width: 30px;
  height: 30px;
  border-color: #c6d3df;
  background: #e7f0f6;
  color: #164e77;
}

.command-flow span {
  color: #42576b;
  font-size: 11px;
}

.command-signal {
  display: none;
}

.visual-footer {
  left: 48px;
  right: 48px;
  bottom: 12px;
  color: #66788a;
  display: none;
}

.visual-footer strong {
  color: #164e77;
  letter-spacing: 0;
}

.login-panel {
  padding: 42px 46px;
  background: #f8fbfd;
}

.login-panel::before {
  background: linear-gradient(180deg, rgba(22, 78, 119, .06), transparent 38%);
}

.login-card {
  width: 390px;
  padding: 26px;
  border-color: #c7d3df;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 41, 59, .08);
  backdrop-filter: none;
}

.login-brand-row {
  margin-bottom: 22px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-color: #c7d3df;
  background: #fff;
  color: transparent;
}

.login-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-brand-row strong {
  color: #111827;
  font-size: 18px;
}

.login-brand-row em,
.login-title p,
.login-meta-grid span,
.login-foot {
  color: #66788a;
}

.login-title span {
  color: #164e77;
}

.login-title h2 {
  color: #111827;
  font-size: 28px;
}

.login-card .segmented {
  border-color: #d6e0ea;
  background: #edf3f8;
}

.login-card .segmented button.active {
  color: #164e77;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .08);
}

.login-card .input-wrap {
  border-color: #c7d3df;
  box-shadow: none;
}

.login-card .input-wrap:focus-within {
  border-color: #164e77;
  box-shadow: 0 0 0 4px rgba(22, 78, 119, .12);
}

.login-card .primary-btn.wide,
.login-card .primary-btn.wide:hover {
  background-color: #164e77;
  background-image: none;
  border-color: #164e77;
  box-shadow: none;
}

.login-card .primary-btn.wide:hover {
  background-color: #123f60;
  border-color: #123f60;
}

.login-meta-grid div {
  border-color: #d6e0ea;
  background: #f4f8fb;
}

.login-foot {
  justify-content: flex-start;
  margin-top: 18px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 330px;
  }

  .visual-copy {
    top: 78px;
  }

  .login-visual img.login-industrial-scene {
    right: 22px;
    bottom: 18px;
    left: auto;
    width: min(520px, 64vw);
    max-height: 210px;
    object-position: right bottom;
  }

  .visual-command-panel {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 300px);
  }
}

@media (max-width: 680px) {
  .login-visual {
    min-height: 230px;
  }

  .visual-statusbar {
    top: 14px;
  }

  .visual-copy {
    top: 66px;
  }

  .visual-copy h1 {
    font-size: 34px;
  }

  .login-panel {
    padding: 14px 12px 24px;
  }

  .login-visual img.login-industrial-scene {
    right: 6px;
    bottom: 8px;
    width: 74vw;
    max-height: 132px;
    opacity: .72;
  }
}

/* Collapsed navigation identity pass 20260630. */
.nav-short-title,
.side-brand-copy {
  display: none;
}

.sidebar-collapsed .global-brand {
  min-width: 128px;
}

.sidebar-collapsed .global-brand .brand-copy {
  display: block;
}

.sidebar-collapsed .global-brand .brand-copy span {
  display: none;
}

.sidebar-collapsed .global-brand .brand-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.sidebar-collapsed .sidebar {
  width: 72px;
  min-width: 72px;
  flex-basis: 72px;
}

.sidebar-collapsed .sidebar .side-brand {
  height: 58px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 5px 0 6px;
}

.sidebar-collapsed .sidebar .collapse-btn {
  width: 22px;
  height: 22px;
}

.sidebar-collapsed .side-brand-copy {
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1;
}

.sidebar-collapsed .side-brand-copy strong {
  display: block;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
}

.sidebar-collapsed .side-brand-copy span {
  display: block;
  color: #657386;
  font-size: 9px;
  font-weight: 800;
}

.sidebar-collapsed .module-nav {
  padding: 6px 5px 8px;
}

.sidebar-collapsed .nav-row {
  min-height: 50px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 4px;
}

.sidebar-collapsed .nav-icon {
  width: 20px;
  height: 20px;
}

.sidebar-collapsed .nav-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-collapsed .nav-short-title {
  display: block;
  max-width: 58px;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top brand wording pass 20260630. */
.global-brand {
  min-width: 260px;
}

.global-brand .brand-copy span {
  display: none;
}

.global-brand .brand-copy strong {
  display: block;
  color: #111827;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.sidebar-collapsed .global-brand {
  min-width: 260px;
}

.sidebar-collapsed .global-brand .brand-copy strong {
  font-size: 19px;
}

/* Collapsed sidebar cleanup 20260630: plain, compact, no extra brand stack. */
.sidebar-collapsed .sidebar {
  width: 58px;
  min-width: 58px;
  flex-basis: 58px;
}

.sidebar-collapsed .sidebar .side-brand {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.sidebar-collapsed .side-brand-copy {
  display: none;
}

.sidebar-collapsed .sidebar .collapse-btn {
  width: 24px;
  height: 24px;
}

.sidebar-collapsed .module-nav {
  padding: 6px 4px 8px;
}

.sidebar-collapsed .nav-row {
  min-height: 44px;
  gap: 2px;
  padding: 5px 3px;
}

.sidebar-collapsed .nav-short-title {
  max-width: 48px;
  font-size: 10px;
}

/* Top save state and notifications 20260630. */
.global-save-state {
  min-width: 74px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #f7fafc;
  color: #657386;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.global-save-state.saving {
  border-color: #9fb8d2;
  background: #eef5fb;
  color: #164e77;
}

.global-save-state.saved {
  border-color: #b9ddcc;
  background: #edf8f2;
  color: #12805c;
}

.global-save-state.error {
  border-color: #f1b5ae;
  background: #fff1f0;
  color: #b42318;
}

.global-save-state.local {
  border-color: #f0d29b;
  background: #fff8e8;
  color: #9a5b00;
}

.notice-btn {
  position: relative;
}

.notice-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.drawer-card.notification-drawer {
  width: min(760px, 100%);
}

.notification-panel,
.notification-list {
  display: grid;
  gap: 10px;
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.notification-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #fbfdff;
}

.notification-summary span {
  color: #657386;
  font-size: 12px;
  font-weight: 800;
}

.notification-summary strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.notification-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e1e8ef;
  border-left: 4px solid #9fb3c5;
  border-radius: 8px;
  background: #fff;
  color: #172338;
  text-align: left;
}

.notification-item:hover {
  border-color: #b7d4fb;
  background: #f7fbff;
}

.notification-item.warn {
  border-left-color: #b7791f;
}

.notification-item.danger {
  border-left-color: #b42318;
}

.notification-item.info {
  border-left-color: #215fba;
}

.notification-item strong,
.notification-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item strong {
  font-size: 14px;
  font-weight: 950;
}

.notification-item span {
  margin-top: 4px;
  color: #657386;
  font-size: 12px;
}

.notification-item em {
  color: #657386;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .notification-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-item {
    grid-template-columns: 1fr;
  }
}

/* Rigorous undo/redo confirmation 20260630. */
.ui-dialog-card.history-confirm-dialog {
  width: min(720px, 100%);
}

.history-confirm-panel {
  display: grid;
  gap: 12px;
}

.history-confirm-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e3ed;
  border-left: 4px solid #164e77;
  border-radius: 8px;
  background: #f7fbff;
}

.history-confirm-summary span,
.history-confirm-summary em,
.history-confirm-meta span,
.history-confirm-diff span {
  color: #657386;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.history-confirm-summary strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.history-confirm-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.history-confirm-meta div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #fff;
}

.history-confirm-meta strong {
  min-width: 0;
  color: #172338;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-confirm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.history-confirm-steps div {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #fbfdff;
}

.history-confirm-steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #164e77;
  color: #fff;
  font-size: 12px;
}

.history-confirm-steps span {
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.history-confirm-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.history-confirm-diff div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #fff;
}

.history-confirm-diff p {
  min-height: 68px;
  max-height: 150px;
  margin: 0;
  overflow: auto;
  color: #172338;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .history-confirm-meta,
  .history-confirm-steps,
  .history-confirm-diff {
    grid-template-columns: 1fr;
  }
}

/* Topbar control unification 20260630: align everything to the New button size. */
.global-top-actions {
  gap: 8px;
}

.global-history-actions {
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.global-top-actions .icon-btn,
.global-top-actions .ghost-btn,
.global-top-actions .user-btn,
.global-top-actions .primary-btn,
.global-history-actions .icon-btn,
.global-history-actions .ghost-btn,
.global-top-actions .quick-create-trigger {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.global-top-actions .icon-btn,
.global-top-actions .ghost-btn,
.global-top-actions .user-btn,
.global-history-actions .icon-btn,
.global-history-actions .ghost-btn {
  background: #fff;
  color: #344563;
}

.global-top-actions .icon-btn:hover,
.global-top-actions .ghost-btn:hover,
.global-top-actions .user-btn:hover,
.global-history-actions .icon-btn:hover,
.global-history-actions .ghost-btn:hover {
  border-color: #b8c8da;
  background: #f5f8fc;
  color: #215fba;
}

.global-top-actions .primary-btn,
.global-top-actions .quick-create-trigger,
.global-top-actions .global-save-btn {
  border-color: #2040a0;
  background: #2040a0;
  color: #fff;
}

.global-top-actions .primary-btn:hover,
.global-top-actions .quick-create-trigger:hover,
.global-top-actions .global-save-btn:hover {
  border-color: #173585;
  background: #173585;
  color: #fff;
}

.global-top-actions button svg,
.global-top-actions .search-box svg {
  width: 15px;
  height: 15px;
}

.global-top-actions .search-box {
  height: 34px;
  width: min(320px, 24vw);
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.global-top-actions .search-box input {
  height: 32px;
  font-size: 13px;
}

.global-save-state {
  height: 34px;
  min-height: 34px;
  min-width: 76px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* Quote detail table cleanup 20260630: remove the unintended middle frozen-column divider. */
.quote-detail-table-wrap .quote-table th:nth-child(4),
.quote-detail-table-wrap .quote-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}

.quote-detail-table-wrap .quote-table td:nth-child(4) {
  background: transparent;
}

.customer-profile-review-drawer {
  display: grid;
  gap: 12px;
}

.customer-profile-review-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.customer-profile-review-card header,
.customer-profile-review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-profile-review-card header div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.customer-profile-review-card header span,
.customer-profile-review-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.customer-profile-review-card header strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
}

.customer-profile-review-card header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.customer-profile-review-card header b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.customer-profile-review-card header b.ok {
  background: var(--success-soft);
  color: var(--success);
}

.customer-profile-review-card header b.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.customer-profile-review-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.customer-profile-review-meta div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.customer-profile-review-meta strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-profile-review-table-wrap {
  max-height: none;
}

.customer-profile-review-table-wrap .quote-table td {
  vertical-align: top;
  white-space: normal;
}

.customer-profile-review-table-wrap .quote-table tr.changed td {
  background: #f8fbff;
}

.customer-profile-review-table-wrap .quote-table tr.changed td:first-child {
  border-left: 3px solid #215f8f;
  font-weight: 950;
}

.customer-profile-review-logo-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.customer-profile-review-logo-value strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-profile-review-attachments {
  display: grid;
  gap: 8px;
}

.customer-profile-review-attachments > strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.customer-profile-review-file-wrap {
  max-height: 220px;
}

.customer-profile-review-card footer {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.customer-profile-review-history {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.customer-profile-review-history summary {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.customer-profile-review-history summary strong {
  margin-left: 6px;
  color: var(--muted);
}

.customer-profile-review-history-wrap {
  margin-top: 10px;
  max-height: 260px;
}

@media (max-width: 720px) {
  .customer-profile-review-card header,
  .customer-profile-review-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-profile-review-meta {
    grid-template-columns: 1fr;
  }
}

/* Production UI pass 20260703: make content pages denser and more ledger-like without touching topbar/sidebar. */
.content {
  background: #f2f5f8;
}

.content .panel,
.content .metric-card,
.content .dashboard-task,
.content .quick-action,
.content .settings-entry,
.content .ops-status-item,
.content .ops-flow-step,
.content .ops-closure-card,
.content .ops-recent-item,
.content .customer-profile-review-card,
.drawer-card {
  border-color: #cfd8e3;
  border-radius: 5px;
  box-shadow: none;
}

.content .panel {
  background: #fff;
}

.content .panel-head {
  min-height: 40px;
  padding: 8px 12px;
  border-bottom-color: #d8e1ea;
  background: #f8fafc;
}

.content .panel-head > div:first-child {
  min-width: 0;
  padding-left: 9px;
  border-left: 3px solid #215f8f;
}

.content .panel-head h2 {
  color: #12233d;
  font-size: 15px;
  font-weight: 950;
}

.content .panel-head p {
  margin-top: 2px;
  color: #5f6f84;
}

.content .panel-body {
  padding: 10px;
}

.content .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.content .metric-card {
  min-height: 48px;
  padding: 8px 10px;
  border-left: 3px solid #215f8f;
  background: #fff;
}

.content .metric-card > svg {
  width: 16px;
  height: 16px;
  color: #62748b;
}

.content .metric-card span {
  color: #54677d;
  font-size: 11px;
  font-weight: 850;
}

.content .metric-card strong {
  color: #0f233a;
  font-size: 18px;
}

.content .metric-card small {
  color: #6b7b8f;
  font-size: 11px;
}

.content .quote-table-wrap,
.content .record-table-wrap {
  border-color: #cfd8e3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.content .quote-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.content .quote-table th {
  height: 38px;
  padding: 7px 8px;
  border-right: 1px solid #cfd8e3;
  border-bottom: 1px solid #c3ceda;
  background: #e5edf5;
  color: #20344f;
  font-weight: 950;
}

.content .quote-table td {
  height: 36px;
  padding: 7px 8px;
  border-right: 1px solid #dbe3ed;
  border-bottom: 1px solid #dbe3ed;
  color: #20344f;
}

.content .quote-table tr:nth-child(even) td {
  background: #f8fafc;
}

.content .quote-table tr:hover td,
.content .quote-table tr:hover td:first-child,
.content .quote-table tr:hover td:nth-child(4),
.content .quote-table tr:hover td:last-child {
  background: #eef6ff;
}

.content .quote-table td:first-child,
.content .quote-table td:nth-child(4),
.content .quote-table td:last-child {
  background: inherit;
}

.content .quote-table th:first-child,
.content .quote-table th:nth-child(4),
.content .quote-table th:last-child {
  background: #e5edf5;
}

.content .quote-table th:last-child,
.content .quote-table td:last-child,
.content .quote-table th:nth-child(4),
.content .quote-table td:nth-child(4) {
  box-shadow: none;
}

.content .record-toolbar,
.content .record-actions {
  gap: 6px;
}

.content .mini-btn,
.content .primary-btn,
.content .ghost-btn,
.content .danger-btn {
  border-radius: 4px;
  box-shadow: none;
}

.content .mini-btn {
  min-height: 26px;
  padding: 3px 8px;
  font-weight: 850;
}

.content .status-pill {
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: #fff;
  font-weight: 900;
}

.content .dashboard-task,
.content .ops-status-item,
.content .ops-flow-step,
.content .ops-closure-card,
.content .ops-recent-item {
  min-height: 42px;
  padding: 8px 10px;
  border-left-width: 3px;
  background: #fff;
}

.content .dashboard-task strong,
.content .ops-status-item strong,
.content .ops-flow-step strong,
.content .ops-closure-card strong,
.content .ops-recent-item strong {
  color: #10233a;
  font-size: 13px;
}

.content .dashboard-task span,
.content .ops-status-item span,
.content .ops-flow-step span,
.content .ops-closure-card span,
.content .ops-recent-item small {
  color: #5f6f84;
}

.content .quick-action-grid,
.content .settings-entry-grid {
  gap: 8px;
}

.content .quick-action,
.content .settings-entry {
  min-height: 54px;
  padding: 10px 12px;
  border-left: 3px solid #d8e1ea;
  background: #fff;
}

.content .quick-action:hover,
.content .settings-entry:hover {
  border-color: #b8c8da;
  border-left-color: #215f8f;
  background: #f8fbff;
}

.content .quick-action.primary,
.content .settings-entry.primary {
  border-color: #b8c8da;
  border-left-color: #215f8f;
  background: #eef6ff;
  color: #173b68;
}

.ops-workbench-head {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.ops-workbench-head .ops-brand-logo {
  width: 44px;
  height: 44px;
}

.ops-workbench-head h2 {
  font-size: 18px;
}

.ops-brand-stats {
  gap: 6px;
}

.ops-brand-stat {
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-left: 3px solid #215f8f;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.ops-brand-stat span {
  font-size: 11px;
  color: #54677d;
  font-weight: 850;
}

.ops-brand-stat strong {
  font-size: 18px;
  color: #0f233a;
}

.ops-workbench-grid {
  gap: 8px;
}

.ops-workbench-todo-panel,
.ops-workbench-actions-panel,
.ops-workbench-status-panel {
  min-height: 0;
}

.ops-command-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.ops-command {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #fff;
  color: #20344f;
  box-shadow: none;
}

.ops-command:hover,
.ops-command.active {
  border-color: #9cb6d2;
  background: #eef6ff;
  color: #173b68;
}

.ops-command svg {
  width: 15px;
  height: 15px;
}

.drawer-card {
  border: 1px solid #c3ceda;
  background: #fff;
}

.drawer-head,
.drawer-actions {
  background: #f8fafc;
  border-color: #d8e1ea;
}

.drawer-body .form-grid label,
.form-grid label {
  gap: 5px;
}

.drawer-body .form-grid input,
.drawer-body .form-grid select,
.drawer-body .form-grid textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border-color: #cfd8e3;
  border-radius: 4px;
  background: #fff;
}

.quality-empty,
.dashboard-empty {
  border-color: #cfd8e3;
  border-radius: 4px;
  background: #f8fafc;
}

/* Production ledger polish 20260703: final visual cleanup for content pages only. */
.content {
  gap: 8px;
  padding: 10px 12px;
  background: #f3f6f9;
}

.content.page-dashboard {
  padding: 10px 12px;
}

.content .panel,
.content .quote-table-wrap,
.content .record-table-wrap,
.content .business-board-panel,
.content .drawer-card,
.content .customer-workbench-panel,
.content .customer-summary-card,
.content .quote-form-card,
.content .quote-bottom-card,
.content .right-card,
.content .supplier-import-panel,
.content .supplier-price-update-panel,
.content .data-check-panel,
.content .quote-price-sync-panel,
.content .part-review-import-panel,
.content .part-price-change-panel {
  border: 1px solid #c8d3df;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.content .panel-head {
  min-height: 38px;
  padding: 7px 10px;
  border-bottom: 1px solid #d5dee8;
  background: #f8fafc;
}

.content .panel-head h2 {
  font-size: 14px;
  line-height: 1.25;
}

.content .panel-head p {
  display: none;
}

.content .panel-body {
  padding: 8px 10px;
}

.content > .metric-grid:not(.ops-metric-grid),
.content.page-nonquote:not(.page-quote-center) > .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
  margin: 0 0 6px;
}

.content .metric-card,
.content.page-nonquote:not(.page-quote-center) > .metric-grid .metric-card,
.content .ops-brand-stat {
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #c8d3df;
  border-left: 3px solid #1f5d8f;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.content .metric-grid .metric-card,
.content .ops-metric-grid .metric-card,
.content .template-metric-grid .metric-card,
.content .parts-metric-grid .metric-card,
.content .trace-metric-grid > div {
  min-height: 50px !important;
  align-content: center;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "icon label"
    "icon value" !important;
  gap: 2px 8px !important;
  padding: 7px 10px !important;
}

.content .metric-card > svg {
  width: 17px !important;
  height: 17px !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: #61738a;
}

.content .metric-card span,
.content .metric-card small,
.content .ops-brand-stat span,
.content .ops-brand-stat em {
  font-size: 11px;
  line-height: 1.2;
}

.content .metric-card small,
.content.page-nonquote:not(.page-quote-center) > .metric-grid .metric-card small,
.content .parts-metric-grid .metric-card small {
  display: none !important;
}

.content .metric-card strong,
.content.page-nonquote:not(.page-dashboard):not(.page-quote-center) > .metric-grid .metric-card strong,
.content .ops-brand-stat strong {
  font-size: 17px;
  line-height: 1.1;
}

.ops-brand-home,
.ops-workbench-head {
  min-height: 60px;
  padding: 9px 11px;
  border: 1px solid #c8d3df;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.ops-workbench-head {
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
}

.ops-workbench-head .ops-brand-logo,
.ops-brand-home .ops-brand-logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 5px;
  box-shadow: none;
}

.ops-workbench-head .ops-brand-logo img,
.ops-brand-home .ops-brand-logo img {
  width: 40px;
  height: 40px;
}

.ops-workbench-head .ops-brand-main h2,
.ops-brand-main h2 {
  margin: 2px 0 3px;
  font-size: 19px;
  line-height: 1.15;
}

.ops-brand-main p {
  max-width: 520px;
  overflow: hidden;
  color: #5d6d80;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-brand-stats {
  gap: 5px;
}

.ops-brand-stat:nth-child(2),
.ops-brand-stat:nth-child(5),
.ops-brand-stat:nth-child(6) {
  border-top-color: #c8d3df;
  border-left-color: #c92842;
}

.ops-brand-stat-action {
  background: #eef5fb;
}

.ops-workbench-grid,
.ops-home-page .ops-board-grid,
.ops-board-grid,
.dashboard-grid,
.ops-dashboard-grid,
.ops-workbench {
  gap: 8px;
}

.ops-workbench-main {
  gap: 8px;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.ops-workbench-actions-panel {
  align-self: start;
}

.ops-workbench-actions-panel .panel-body {
  flex: 0 0 auto;
}

.ops-workbench-actions .quick-action,
.ops-home-page .quick-action,
.content .quick-action,
.content .settings-entry {
  min-height: 46px;
  padding: 8px 9px;
  border-radius: 4px;
}

.ops-workbench-status-panel .ops-status-item,
.content .dashboard-task,
.content .ops-status-item,
.content .ops-flow-step,
.content .ops-closure-card,
.content .ops-recent-item {
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 4px;
}

.ops-command-strip,
.ops-home-page .ops-command-strip,
.ops-workbench-page .ops-command-strip {
  min-height: 40px;
  max-height: 40px;
  grid-auto-rows: 40px;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  gap: 5px;
  margin-top: 6px;
  overflow: hidden;
}

.ops-command,
.ops-home-page .ops-command,
.ops-workbench-page .ops-command {
  height: 40px;
  min-height: 40px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #c8d3df;
  border-radius: 4px;
  background: #fff;
  color: #20344f;
  box-shadow: none;
}

.ops-command.primary,
.ops-home-page .ops-command.primary {
  border-color: #9fb8d2;
  background: #eef5fb;
  color: #174b78;
}

.ops-command svg {
  width: 14px;
  height: 14px;
}

.content .quote-table-wrap,
.content .record-table-wrap,
.content .business-board-wrap {
  overflow: auto;
  border-color: #c8d3df;
}

.content .quote-table,
.content .record-table,
.content .business-board-table,
.content .supplier-quote-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  color: #16263b;
  font-size: 13px;
}

.content .quote-table th,
.content .record-table th,
.content .business-board-table thead th,
.content .supplier-quote-table th {
  height: 36px;
  padding: 7px 8px;
  border-right: 1px solid #c8d3df;
  border-bottom: 1px solid #bfcbd8;
  background: #e6eef6;
  color: #162f4d;
  font-size: 13px;
  font-weight: 950;
}

.content .quote-table td,
.content .record-table td,
.content .business-board-table tbody td,
.content .supplier-quote-table td {
  height: 36px;
  padding: 7px 8px;
  border-right: 1px solid #d8e0ea;
  border-bottom: 1px solid #d8e0ea;
  color: #223650;
  font-size: 13px;
}

.content .quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):nth-child(even) td,
.content .record-table tbody tr:nth-child(even) td,
.content .business-board-data-row:nth-child(even) td,
.content .supplier-quote-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.content .quote-table tbody tr:not(.selected):not(.low-profit):not(.row-danger):not(.row-warn):hover td,
.content .record-table tbody tr:hover td,
.content .business-board-data-row:hover td,
.content .supplier-quote-table tbody tr:hover td {
  background: #eef5fb;
}

.content .record-table th:first-child,
.content .record-table td:first-child,
.content .record-table th:nth-child(4),
.content .record-table td:nth-child(4),
.content .record-table th:last-child,
.content .record-table td:last-child,
.content .parts-table th:first-child,
.content .parts-table td:first-child,
.content .parts-table th:nth-child(4),
.content .parts-table td:nth-child(4),
.content .parts-table th:last-child,
.content .parts-table td:last-child,
.content .customers-table th:first-child,
.content .customers-table td:first-child,
.content .customers-table th:nth-child(4),
.content .customers-table td:nth-child(4),
.content .customers-table th:last-child,
.content .customers-table td:last-child,
.content .business-board-table th:first-child,
.content .business-board-table td:first-child,
.content .business-board-table th:nth-child(4),
.content .business-board-table td:nth-child(4),
.content .business-board-table th:last-child,
.content .business-board-table td:last-child,
.content .supplier-quote-table th:first-child,
.content .supplier-quote-table td:first-child,
.content .supplier-quote-table th:nth-child(4),
.content .supplier-quote-table td:nth-child(4),
.content .supplier-quote-table th:last-child,
.content .supplier-quote-table td:last-child {
  position: static;
  left: auto;
  right: auto;
  z-index: auto;
  box-shadow: none;
}

.content .quote-detail-table-wrap .quote-table th:first-child,
.content .quote-detail-table-wrap .quote-table td:first-child {
  position: sticky;
  left: 0;
}

.content .quote-detail-table-wrap .quote-table th:last-child,
.content .quote-detail-table-wrap .quote-table td:last-child {
  position: sticky;
  right: 0;
}

.content .quote-detail-table-wrap .quote-table th:first-child,
.content .quote-detail-table-wrap .quote-table th:last-child {
  z-index: 5;
  background: #e6eef6;
}

.content .quote-detail-table-wrap .quote-table td:first-child,
.content .quote-detail-table-wrap .quote-table td:last-child {
  z-index: 2;
  background: #fff;
}

.content .quote-detail-table-wrap .quote-table th:nth-child(4),
.content .quote-detail-table-wrap .quote-table td:nth-child(4) {
  position: static;
  left: auto;
  right: auto;
  box-shadow: none;
}

.content .quote-table input,
.content .quote-table select,
.content .record-table input,
.content .record-table select,
.content .form-grid input,
.content .form-grid select,
.content .form-grid textarea {
  min-height: 30px;
  border-color: #c8d3df;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
}

.content .status-pill {
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.content .primary-btn,
.content .ghost-btn,
.content .danger-btn,
.content .mini-btn {
  border-radius: 4px;
}

.drawer-head,
.drawer-actions {
  min-height: 44px;
  background: #f8fafc;
}

@media (max-width: 980px) {
  .ops-command-strip,
  .ops-home-page .ops-command-strip,
  .ops-workbench-page .ops-command-strip {
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-brand-main p {
    white-space: normal;
  }
}

/* Web management console: daily business actions live in the desktop client. */
#appView #undoBtn,
#appView #redoBtn,
#appView #globalSaveBtn,
#appView #globalSaveState,
#appView .search-box,
#appView #quickScan,
#appView #quickCreate,
#appView #noticeBtn {
  display: none !important;
}
