/* ERP 设计体系：深色导航 + 冷灰中性色 + 靛蓝主色，面向高密度表格场景 */

.erp-root {
  --erp-brand: #16697a;
  /* 深主色对齐刀模工具的深色系 —— 两个工作区是同一个产品家族，
     统一使用「墨青」品牌色，切换时不会有换了个软件的错觉。 */
  --erp-brand-deep: #0f4c59;
  --erp-brand-soft: #e2f1f5;
  --erp-side: #0f1729;
  --erp-side-2: #131d33;
  --erp-page: #f6f7f9;
  --erp-line: #e6e9ef;
  --erp-line-soft: #eef1f5;
  --erp-ink: #0f172a;
  --erp-body: #334155;
  --erp-mute: #64748b;
  --erp-faint: #94a3b8;
  --erp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px -4px rgba(15, 23, 42, 0.08);
  --erp-shadow-lg: 0 8px 32px -8px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06);

  /* ── 字号刻度 ──
     开纸箱厂的多是四五十岁往上的老板和车间主管，字小了真看不清。
     这里把整套字号比常规后台放大 ~20%，并且**只在这一处定义**：
     以后嫌小改这里即可，全站 124 页跟着走。
     原值 → 现值：10→12 / 10.5→12.5 / 11→13 / 11.5→14 / 12→14.5
                  12.5→15 / 13→15.5 / 14→17 / 16→19 / 21→25 */
  --erp-fs-10: 12px;
  --erp-fs-105: 12.5px;
  --erp-fs-11: 13px;
  --erp-fs-115: 14px;
  --erp-fs-12: 14.5px;
  --erp-fs-125: 15px;
  --erp-fs-13: 15.5px;
  --erp-fs-14: 17px;
  --erp-fs-16: 19px;
  --erp-fs-20: 24px;
  --erp-fs-21: 25px;
  --erp-row-h: 50px;
  --erp-head-h: 42px;
  --erp-ctl-h: 38px;
  font-size: var(--erp-fs-13);
  color: var(--erp-body);
  -webkit-font-smoothing: antialiased;
}

.erp-root *,
.erp-root *::before,
.erp-root *::after {
  box-sizing: border-box;
}

.erp-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 覆盖刀模全局的输入框高对比度规则，ERP 用常规字重更清爽 */

.erp-root input,
.erp-root select,
.erp-root textarea {
  font-family: inherit;
  font-weight: 500;
  color: var(--erp-ink);
}

.erp-root input::-moz-placeholder, .erp-root textarea::-moz-placeholder {
  font-weight: 400;
}

.erp-root input::placeholder,
.erp-root textarea::placeholder {
  font-weight: 400;
}

/* ───────── 字号工具类 ─────────
   把 TSX 里散落的 text-[Npx] 收回到同一套刻度上。
   加 .erp-root 前缀是为了压过 Tailwind 的 .text-\[13px\] 之类原子类。 */

.erp-root .erp-fs-10 { font-size: var(--erp-fs-10); }

.erp-root .erp-fs-105 { font-size: var(--erp-fs-105); }

.erp-root .erp-fs-11 { font-size: var(--erp-fs-11); }

.erp-root .erp-fs-115 { font-size: var(--erp-fs-115); }

.erp-root .erp-fs-12 { font-size: var(--erp-fs-12); }

.erp-root .erp-fs-125 { font-size: var(--erp-fs-125); }

.erp-root .erp-fs-13 { font-size: var(--erp-fs-13); }

.erp-root .erp-fs-14 { font-size: var(--erp-fs-14); }

.erp-root .erp-fs-16 { font-size: var(--erp-fs-16); }

.erp-root .erp-fs-20 { font-size: var(--erp-fs-20); }

.erp-root .erp-fs-21 { font-size: var(--erp-fs-21); }

/* 语义化边框色：比 Tailwind 的 border-[var(--x)] 更可靠 */

.erp-root .erp-b {
  border-color: var(--erp-line);
}

.erp-root .erp-b-soft {
  border-color: var(--erp-line-soft);
}

.erp-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.erp-split-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 310px) minmax(0, 560px);
  align-items: stretch;
}

@media (max-width: 1100px) {
  .erp-split,
  .erp-split-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.erp-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--erp-line);
  flex-shrink: 0;
}

.erp-sec-head h3 {
  margin: 0;
  font-size: var(--erp-fs-13);
  font-weight: 600;
  color: var(--erp-ink);
}

.erp-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--erp-line-soft);
}

@media (min-width: 768px) {
  .erp-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .erp-quick-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.erp-quick-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s;
}

.erp-quick-cell:hover {
  background: #f7f9fc;
}

.dark .erp-quick-cell {
  background: #101a2b;
}

.dark .erp-quick-cell:hover {
  background: #142033;
}

/* ───────── 骨架 ───────── */

.erp-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--erp-page);
}

.erp-side {
  width: 224px;
  flex: 0 0 224px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--erp-side-2) 0%, var(--erp-side) 100%);
  transition: width 0.18s ease, flex-basis 0.18s ease;
  position: relative;
  z-index: 20;
}

.erp-side.collapsed {
  width: 60px;
  flex-basis: 60px;
}

.erp-side-brand {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.erp-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.erp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.erp-brand-text b {
  color: #f1f5f9;
  font-size: var(--erp-fs-13);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.erp-brand-text span {
  color: #64748b;
  font-size: var(--erp-fs-10);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.erp-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.erp-nav::-webkit-scrollbar {
  width: 6px;
}

.erp-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

.erp-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

.erp-group {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #a3b1c6;
  font-size: var(--erp-fs-125);
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: color 0.14s, background 0.14s;
}

.erp-group:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.045);
}

.erp-group svg {
  color: #8095b0;
  flex-shrink: 0;
}

.erp-group:hover svg {
  color: #93b4f5;
}

.erp-group .erp-chev {
  color: #475569;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.erp-group .erp-chev.open {
  transform: rotate(90deg);
}

.erp-leaf {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #8b9ab1;
  font-size: var(--erp-fs-125);
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: color 0.14s, background 0.14s;
}

.erp-leaf span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 叶子节点图标：比分组图标略淡，选中时提亮 */

.erp-leaf .erp-leaf-ic {
  color: #5d6d85;
  flex-shrink: 0;
}

.erp-leaf:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.045);
}

.erp-leaf:hover .erp-leaf-ic {
  color: #93b4f5;
}

.erp-leaf.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.22);
}

.erp-leaf.active .erp-leaf-ic {
  color: #93b4f5;
}

.erp-side-foot {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
}

.erp-icon-btn {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: var(--erp-fs-12);
  cursor: pointer;
  transition: color 0.14s, background 0.14s;
}

.erp-icon-btn:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.erp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
}

.erp-rail button {
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c8ba3;
  cursor: pointer;
  transition: color 0.14s, background 0.14s;
}

.erp-rail button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.erp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--erp-page);
}

/* ───────── 顶栏 ───────── */

.erp-topbar {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--erp-line);
}

.erp-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--erp-fs-125);
  color: var(--erp-faint);
  min-width: 0;
}

.erp-crumb b {
  color: var(--erp-ink);
  font-weight: 600;
  font-size: var(--erp-fs-14);
}

.erp-crumb svg {
  color: #cbd5e1;
  flex-shrink: 0;
}

.erp-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.erp-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 99px;
  border: 1px solid var(--erp-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.erp-user:hover {
  border-color: #cbd5e1;
  box-shadow: var(--erp-shadow);
}

.erp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: var(--erp-fs-11);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
  flex-shrink: 0;
}

.erp-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.erp-user-meta b {
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
  font-weight: 600;
}

.erp-user-meta span {
  font-size: var(--erp-fs-10);
  color: var(--erp-faint);
}

/* ───────── 标签页 ───────── */

.erp-tabbar {
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--erp-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.erp-tabbar::-webkit-scrollbar {
  display: none;
}

.erp-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px 0 11px;
  border-radius: 7px 7px 0 0;
  font-size: var(--erp-fs-125);
  color: var(--erp-mute);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.14s, background 0.14s;
  border: 1px solid transparent;
  border-bottom: 0;
  top: 1px;
}

.erp-tab:hover {
  color: var(--erp-ink);
  background: #f4f6f9;
}

.erp-tab.active {
  color: var(--erp-brand-deep);
  background: var(--erp-page);
  border-color: var(--erp-line);
  font-weight: 500;
}

.erp-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--erp-brand);
  border-radius: 2px 2px 0 0;
}

.erp-tab-x {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b9c2cf;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.14s, background 0.14s, color 0.14s;
}

.erp-tab:hover .erp-tab-x,
.erp-tab.active .erp-tab-x {
  opacity: 1;
}

.erp-tab-x:hover {
  background: #e2e8f0;
  color: #475569;
}

.erp-tab.active .erp-tab-x:hover {
  background: #dbe3ee;
  color: #1e293b;
}

.erp-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ───────── 页面容器 ───────── */

.erp-page {
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.erp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.erp-page-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.erp-page-title h2 {
  margin: 0;
  font-size: var(--erp-fs-16);
  font-weight: 600;
  color: var(--erp-ink);
  letter-spacing: -0.1px;
}

.erp-page-title p {
  margin: 0;
  font-size: var(--erp-fs-12);
  color: var(--erp-faint);
}

.erp-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ───────── 卡片 ───────── */

.erp-card {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  box-shadow: var(--erp-shadow);
  overflow: hidden;
}

.erp-card-pad {
  padding: 14px 16px;
}

/* 汇总页列少时收窄，避免单个文本列吃掉整行宽度 */

.erp-card-narrow {
  max-width: 1120px;
}

/* ───────── 按钮 ───────── */

.erp-btn {
  height: var(--erp-ctl-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid var(--erp-line);
  background: #fff;
  color: var(--erp-body);
  font-size: var(--erp-fs-125);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s;
}

.erp-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cfd7e3;
  color: var(--erp-ink);
}

.erp-btn:active:not(:disabled) {
  background: #f1f5f9;
}

.erp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.erp-btn svg {
  flex-shrink: 0;
}

.erp-btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #2f6fed 0%, var(--erp-brand) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.erp-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #2560dc 0%, var(--erp-brand-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.erp-btn-soft {
  border-color: #d6e2fb;
  background: var(--erp-brand-soft);
  color: var(--erp-brand-deep);
}

.erp-btn-soft:hover:not(:disabled) {
  background: #e4edff;
  border-color: #b9cdf8;
  color: var(--erp-brand-deep);
}

.erp-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--erp-mute);
}

.erp-btn-ghost:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: transparent;
  color: var(--erp-ink);
}

.erp-btn-danger {
  border-color: #f1c9c9;
  background: #fef2f2;
  color: #b91c1c;
}

.erp-btn-danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #eeb4b4;
  color: #991b1b;
}

/* ───────── 表单控件 ───────── */

.erp-search {
  position: relative;
  display: flex;
  align-items: center;
}

.erp-search svg {
  position: absolute;
  left: 10px;
  color: var(--erp-faint);
  pointer-events: none;
}

.erp-input,
.erp-select {
  height: var(--erp-ctl-h);
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--erp-line);
  border-radius: 7px;
  background: #fff;
  color: var(--erp-ink);
  font-size: var(--erp-fs-125);
  font-weight: 500;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  min-width: 0;
  font-family: inherit;
}

.erp-search .erp-input {
  padding-left: 30px;
}

.erp-input::-moz-placeholder {
  color: #a9b3c1;
  font-weight: 400;
}

.erp-input::placeholder {
  color: #a9b3c1;
  font-weight: 400;
}

.erp-input:hover,
.erp-select:hover {
  border-color: #cfd7e3;
}

.erp-input:focus,
.erp-select:focus {
  border-color: var(--erp-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.erp-select {
  padding-right: 26px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  cursor: pointer;
}

.erp-textarea {
  height: auto;
  padding: 8px 10px;
  line-height: 1.6;
  resize: vertical;
  width: 100%;
}

.erp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.erp-field > label {
  font-size: var(--erp-fs-115);
  color: var(--erp-mute);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.erp-req {
  color: #dc2626;
}

/* ───────── 筛选栏 ───────── */

.erp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  box-shadow: var(--erp-shadow);
}

.erp-filters .erp-field > label {
  color: var(--erp-faint);
}

.erp-filters-tail {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ───────── 状态计数页签条（对齐原版企进宝 V7 列表页顶栏） ───────── */

.erp-status-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  box-shadow: var(--erp-shadow);
  scrollbar-width: thin;
}

.erp-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--erp-line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--erp-ink);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.12s, background 0.12s;
}

.erp-status-tab:hover {
  border-color: var(--erp-brand);
}

.erp-status-tab b {
  font-weight: 600;
  color: var(--erp-faint);
  font-variant-numeric: tabular-nums;
}

.erp-status-tab.erp-status-on {
  border-color: var(--erp-brand);
  background: var(--erp-brand-weak, #eef5ff);
  color: var(--erp-brand);
  font-weight: 600;
}

.erp-status-tab.erp-status-on b {
  color: var(--erp-brand);
}

/* 状态色调 pill 叠加在页签上时，保持页签的尺寸与圆角（.erp-pill 定义在后会覆盖） */

.erp-status-tab.erp-pill {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.erp-status-tab.erp-pill::before {
  display: none;
}

/* ───────── 表格 ───────── */

/* 列表页：卡片撑满可用高度，分页条压到底部，避免短表格下方大片空白 */

.erp-card-fill {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 300px;
}

.erp-card-fill .erp-pager {
  margin-top: auto;
}

.erp-card-fill .erp-empty {
  margin: auto 0;
}

.erp-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 282px);
  scrollbar-width: thin;
  scrollbar-color: #cfd7e3 transparent;
}

.erp-table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.erp-table-wrap::-webkit-scrollbar-thumb {
  background: #cfd7e3;
  border-radius: 99px;
  border: 2px solid #fff;
}

.erp-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #b3bdcb;
}

.erp-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.erp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--erp-fs-125);
}

.erp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--erp-mute);
  font-size: var(--erp-fs-115);
  font-weight: 600;
  text-align: left;
  padding: 0 14px;
  height: var(--erp-head-h);
  white-space: nowrap;
  border-bottom: 1px solid var(--erp-line);
  letter-spacing: 0.2px;
}

.erp-table thead th:first-child {
  padding-left: 18px;
}

.erp-table thead th:last-child {
  padding-right: 18px;
}

.erp-table tbody td {
  padding: 0 14px;
  height: var(--erp-row-h);
  color: var(--erp-body);
  border-bottom: 1px solid var(--erp-line-soft);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-table tbody td:first-child {
  padding-left: 18px;
}

.erp-table tbody td:last-child {
  padding-right: 18px;
}

.erp-table tbody tr {
  transition: background 0.1s;
}

.erp-table tbody tr:hover {
  background: #f7f9fc;
}

.erp-table tbody tr:last-child td {
  border-bottom: 0;
}

.erp-cell-strong {
  color: var(--erp-ink);
  font-weight: 600;
}

.erp-cell-mute {
  color: var(--erp-faint);
}

.erp-cell-money {
  color: var(--erp-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.erp-cur {
  color: var(--erp-faint);
  font-weight: 400;
  font-size: var(--erp-fs-11);
  margin-right: 1px;
}

.erp-row-actions {
  display: flex;
  justify-content: center;
  gap: 2px;
  opacity: 0.75;
  transition: opacity 0.14s;
}

.erp-table tbody tr:hover .erp-row-actions {
  opacity: 1;
}

.erp-table tfoot td {
  height: 44px;
  padding: 0 14px;
  background: #fafbfc;
  border-top: 1px solid var(--erp-line);
  font-size: var(--erp-fs-12);
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.erp-table tfoot td:first-child {
  padding-left: 18px;
}

.erp-table tfoot td:last-child {
  padding-right: 18px;
}

.erp-act {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.erp-act:hover {
  background: #e8eefb;
  color: var(--erp-brand-deep);
}

.erp-act.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* ───────── 状态徽章 ───────── */

.erp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: var(--erp-fs-11);
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.erp-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  flex-shrink: 0;
}

.erp-pill-ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #c7f0e1;
}

.erp-pill-warn {
  color: #b45309;
  background: #fffbeb;
  border-color: #fbe6bd;
}

.erp-pill-info {
  color: #1d4ed8;
  background: #eff5ff;
  border-color: #d3e2fb;
}

.erp-pill-mute {
  color: #64748b;
  background: #f4f6f9;
  border-color: #e4e8ef;
}

.erp-pill-danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #f8d4d4;
}

/* ───────── 分页 ───────── */

.erp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--erp-line);
  background: #fff;
  flex-wrap: wrap;
}

.erp-pager-info {
  font-size: var(--erp-fs-12);
  color: var(--erp-faint);
  /* 不参与压缩、不换行：否则「每页记录数」下拉框会被挤到第二行，
     和右侧页码按钮错开一行（每个列表页都看得见的错位） */
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 与文字同排且居中对齐。
   关键：.erp-select 默认是 width:100%（表单里的全宽控件），
   分页栏这个「每页记录数」是行内小控件，撑满整行会把前面的文字挤到下一行，
   和右侧页码按钮错开一行（149 个列表页都看得见）。 */

.erp-pager-info .erp-select {
  width: auto;
  min-width: 84px;
  vertical-align: middle;
}

.erp-pager-info b {
  color: var(--erp-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.erp-pages {
  display: flex;
  align-items: center;
  gap: 3px;
}

.erp-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--erp-mute);
  font-size: var(--erp-fs-12);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.erp-page-btn:hover:not(:disabled):not(.on) {
  background: #f1f5f9;
  color: var(--erp-ink);
}

.erp-page-btn.on {
  background: var(--erp-brand);
  border-color: var(--erp-brand);
  color: #fff;
  font-weight: 600;
}

.erp-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.erp-page-dots {
  width: 20px;
  text-align: center;
  color: var(--erp-faint);
  font-size: var(--erp-fs-12);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ───────── 空状态 ───────── */

.erp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  color: var(--erp-faint);
  font-size: var(--erp-fs-125);
}

.erp-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #b3bdcb;
}

/* ───────── 指标卡 ───────── */

.erp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.erp-kpi {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  box-shadow: var(--erp-shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.erp-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.erp-kpi-label {
  font-size: var(--erp-fs-12);
  color: var(--erp-mute);
  font-weight: 500;
}

.erp-kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--erp-brand-soft);
  color: var(--erp-brand);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.erp-kpi-value {
  font-size: var(--erp-fs-21);
  font-weight: 650;
  color: var(--erp-ink);
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.erp-kpi-foot {
  font-size: var(--erp-fs-115);
  color: var(--erp-faint);
}

/* ───────── 首页：顶部滚动横幅 ───────── */

.erp-marquee {
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #fef2f2, #fff7f7);
  border: 1px solid #fbe3e3;
  border-radius: 8px;
  padding: 0 12px;
  position: relative;
}

.erp-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: erpMarquee 24s linear infinite;
  will-change: transform;
}

.erp-marquee-track span {
  font-size: var(--erp-fs-12);
  color: #c0392b;
  font-weight: 500;
}

@keyframes erpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───────── 首页：彩色统计卡（对齐行业主流 ERP四卡） ───────── */

.erp-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .erp-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.erp-stat-card {
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--erp-shadow);
}

.erp-stat-card .erp-stat-label {
  font-size: var(--erp-fs-12);
  opacity: 0.85;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.erp-stat-card .erp-stat-value {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.erp-stat-card .erp-stat-foot {
  font-size: var(--erp-fs-115);
  opacity: 0.75;
}

/* ───────── 首页：流程式快速导航 ───────── */

.erp-flow-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.erp-flow-cell {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}

.erp-flow-cell:hover {
  border-color: var(--erp-brand);
  box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.erp-flow-cell .erp-flow-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.6);
}

.erp-flow-cell .erp-flow-name {
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
  font-weight: 500;
  line-height: 1.25;
}

.erp-flow-cell .erp-flow-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.erp-flow-arrow {
  display: flex;
  align-items: center;
  color: var(--erp-brand);
  flex-shrink: 0;
}

/* ───────── 首页：公告/资讯面板 ───────── */

.erp-notice-list {
  display: flex;
  flex-direction: column;
}

.erp-notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--erp-line-soft);
  transition: background 0.12s;
}

.erp-notice-item:last-child {
  border-bottom: 0;
}

.erp-notice-item:hover {
  background: #f7f9fc;
}

.erp-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--erp-brand);
  flex-shrink: 0;
}

.erp-notice-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--erp-fs-12);
  color: var(--erp-body);
}

.erp-notice-date {
  font-size: var(--erp-fs-11);
  color: var(--erp-faint);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ───────── 弹窗 ───────── */

.erp-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: erpFade 0.14s ease;
}

@keyframes erpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes erpRise {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.erp-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--erp-shadow-lg);
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: erpRise 0.16s ease;
}

.erp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--erp-line);
  flex-shrink: 0;
}

.erp-modal-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.erp-modal-title b {
  font-size: var(--erp-fs-14);
  font-weight: 600;
  color: var(--erp-ink);
}

.erp-modal-title span {
  font-size: var(--erp-fs-115);
  color: var(--erp-faint);
}

.erp-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.erp-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--erp-line);
  background: #fbfcfd;
  flex-shrink: 0;
}

.erp-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.erp-col2 {
  grid-column: span 2;
}

.erp-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--erp-faint);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.erp-close:hover {
  background: #f1f5f9;
  color: var(--erp-ink);
}

/* ───────── 提示条 ───────── */

.erp-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: var(--erp-fs-125);
  font-weight: 500;
  box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.4);
  pointer-events: none;
  animation: erpRise 0.16s ease;
}

.erp-toast svg {
  color: #34d399;
}

/* ───────── 图表 ───────── */

.erp-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 190px;
  padding: 18px 4px 0;
}

.erp-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.erp-bar-track {
  width: 100%;
  max-width: 56px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.erp-bar {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #5b95f7 0%, #2563eb 100%);
  box-shadow: 0 2px 6px -2px rgba(37, 99, 235, 0.5);
  transition: filter 0.14s;
  min-height: 2px;
  position: relative;
}

.erp-bar-value {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--erp-fs-105);
  color: var(--erp-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.erp-bar-col:hover .erp-bar {
  filter: brightness(1.08);
}

.erp-bar-label {
  font-size: var(--erp-fs-105);
  color: var(--erp-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.erp-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--erp-fs-115);
  color: var(--erp-mute);
}

.erp-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.erp-share-bar {
  height: 4px;
  border-radius: 99px;
  background: #eef1f5;
  overflow: hidden;
  width: 72px;
}

.erp-share-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

/* ───────── 欢迎页 ───────── */

.erp-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
}

.erp-welcome-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 10px 28px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  margin-bottom: 8px;
}

.erp-welcome h2 {
  margin: 0;
  font-size: var(--erp-fs-16);
  font-weight: 600;
  color: var(--erp-ink);
}

.erp-welcome p {
  margin: 0;
  font-size: var(--erp-fs-125);
  color: var(--erp-faint);
}

.erp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  max-width: 560px;
}

.erp-quick button {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--erp-line);
  background: #fff;
  color: var(--erp-body);
  font-size: var(--erp-fs-12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.14s, color 0.14s, box-shadow 0.14s;
}

.erp-quick button:hover {
  border-color: #b9cdf8;
  color: var(--erp-brand-deep);
  box-shadow: var(--erp-shadow);
}

/* ───────── 深色模式 ───────── */

.dark .erp-root {
  --erp-page: #0b1120;
  --erp-line: #1e293b;
  --erp-line-soft: #16202f;
  --erp-ink: #e2e8f0;
  --erp-body: #b6c2d2;
  --erp-mute: #8494a9;
  --erp-faint: #64748b;
  --erp-brand-soft: rgba(37, 99, 235, 0.14);
  --erp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}

.dark .erp-card,
.dark .erp-kpi,
.dark .erp-filters,
.dark .erp-topbar,
.dark .erp-tabbar,
.dark .erp-pager,
.dark .erp-modal {
  background: #101a2b;
}

.dark .erp-modal-foot {
  background: #0d1624;
}

.dark .erp-table thead th {
  background: #0d1624;
}

.dark .erp-table tbody tr:hover {
  background: #142033;
}

.dark .erp-tab.active {
  background: var(--erp-page);
}

.dark .erp-tab:hover {
  background: #142033;
}

.dark .erp-input,
.dark .erp-select,
.dark .erp-btn,
.dark .erp-user {
  background: #0d1624;
  color: var(--erp-ink);
}

.dark .erp-btn:hover:not(:disabled) {
  background: #16233a;
}

.dark .erp-pill-mute {
  background: #16233a;
  border-color: #22304a;
  color: #8494a9;
}

.dark .erp-pill-ok {
  background: rgba(4, 120, 87, 0.16);
  border-color: rgba(4, 120, 87, 0.35);
  color: #34d399;
}

.dark .erp-pill-warn {
  background: rgba(180, 83, 9, 0.16);
  border-color: rgba(180, 83, 9, 0.35);
  color: #fbbf24;
}

.dark .erp-pill-info {
  background: rgba(29, 78, 216, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
  color: #7ba7f7;
}

.dark .erp-pill-danger {
  background: rgba(185, 28, 28, 0.16);
  border-color: rgba(185, 28, 28, 0.35);
  color: #f87171;
}

.dark .erp-empty-icon {
  background: #16233a;
}

.dark .erp-act:hover {
  background: #16233a;
}

.dark .erp-side {
  background: linear-gradient(180deg, #0c1524 0%, #080e18 100%);
}

@media (max-width: 900px) {
  .erp-side {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .erp-side.open {
    transform: none;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }

  .erp-page {
    padding: 12px 12px 24px;
  }

  .erp-grid2 {
    grid-template-columns: 1fr;
  }

  .erp-col2 {
    grid-column: span 1;
  }
}

/* ───────── 工艺多选（报价算价弹窗） ─────────
   工艺库 254 条，平铺会把弹窗撑爆。两列网格 + 内部滚动 + 搜索框过滤，
   勾选状态用主色浅底标出来，扫一眼就知道选了哪几项。 */

.erp-proc-pick {
  max-height: 216px;
  overflow-y: auto;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cfd7e3 transparent;
}

.erp-proc-pick::-webkit-scrollbar {
  width: 8px;
}

.erp-proc-pick::-webkit-scrollbar-thumb {
  background: #cfd7e3;
  border-radius: 99px;
  border: 2px solid #fff;
}

.erp-proc-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 0;
  font-size: var(--erp-fs-11);
  color: var(--erp-body);
  transition: background 0.12s, color 0.12s;
}

.erp-proc-cell:hover {
  background: #f4f7fc;
}

.erp-proc-cell.on {
  background: var(--erp-brand-soft);
  color: var(--erp-brand-deep);
  font-weight: 500;
}

.erp-proc-cell input[type="checkbox"] {
  accent-color: var(--erp-brand);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.erp-proc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-proc-cat {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--erp-faint);
  font-size: var(--erp-fs-10);
  font-weight: 400;
}

/* ───────── 打印设置对话框（复刻行业主流 ERP 5 页签） ───────── */

.erp-print-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  animation: erp-fade-in 0.12s ease;
}

.erp-print-dialog {
  width: 560px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--erp-shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.25));
  overflow: hidden;
}

.erp-print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--erp-line);
}

.erp-print-title {
  font-size: var(--erp-fs-13);
  font-weight: 600;
  color: var(--erp-ink);
}

.erp-print-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--erp-faint);
  cursor: pointer;
}

.erp-print-close:hover {
  background: var(--erp-soft, #f1f5f9);
  color: var(--erp-ink);
}

.erp-print-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--erp-line);
}

.erp-print-tab {
  padding: 9px 14px;
  border: none;
  background: transparent;
  font-size: var(--erp-fs-12);
  color: var(--erp-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}

.erp-print-tab:hover {
  color: var(--erp-ink);
}

.erp-print-tab.active {
  color: var(--erp-brand-deep);
  border-bottom-color: var(--erp-brand);
  font-weight: 600;
}

.erp-print-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.erp-print-group-title {
  font-size: var(--erp-fs-12);
  font-weight: 600;
  color: var(--erp-ink);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--erp-line);
}

.erp-print-radios,
.erp-print-checks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.erp-print-radio,
.erp-print-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
  cursor: pointer;
}

.erp-print-radio input,
.erp-print-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--erp-brand);
}

.erp-print-input {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
  background: #fff;
}

.erp-print-input:focus {
  outline: none;
  border-color: var(--erp-brand);
  box-shadow: 0 0 0 2px var(--erp-brand-soft, rgba(59, 130, 246, 0.15));
}

.erp-print-select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--erp-line);
  border-radius: 6px;
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
  background: #fff;
  cursor: pointer;
}

.erp-print-unit {
  font-size: var(--erp-fs-11);
  color: var(--erp-faint);
}

.erp-print-hint {
  font-size: var(--erp-fs-10);
  color: var(--erp-faint);
}

/* 浏览器做不到的打印选项：禁用态 + 说明块。
   这些项（打印范围/打印标题/打印顺序/缩放/表页/页眉页脚边距/打印机名称/纸张来源）
   原来可以随便改，改完打印毫无反应 —— 与其留着装样子，不如明确关掉并讲清去哪儿设置。 */

.erp-print-input:disabled,
.erp-print-select:disabled {
  background: var(--erp-bg-2, #f5f6f8);
  color: var(--erp-faint);
  cursor: not-allowed;
}

.erp-print-input:disabled:focus {
  border-color: var(--erp-line);
  box-shadow: none;
}

.erp-print-radio.is-off,
.erp-print-radio.is-off span {
  color: var(--erp-faint);
  cursor: not-allowed;
}

.erp-print-radio.is-off input {
  cursor: not-allowed;
}

.erp-print-off-note {
  margin-top: 10px;
  padding: 7px 10px;
  border-left: 3px solid var(--erp-line);
  background: var(--erp-bg-2, #f7f8fa);
  border-radius: 0 4px 4px 0;
  font-size: var(--erp-fs-11, 11px);
  line-height: 1.65;
  color: var(--erp-text-3, #7b838d);
}

.erp-print-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.erp-print-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--erp-fs-12);
  color: var(--erp-ink);
}

.erp-print-field-row {
  gap: 8px;
}

.erp-print-meta {
  font-size: var(--erp-fs-11);
  color: var(--erp-faint);
  line-height: 1.7;
}

.erp-print-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--erp-line);
}

@keyframes erp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─────────── 打印勾选列 + 打印下拉菜单（对齐行业主流 ERP btnMenu） ─────────── */

.erp-sel {
  vertical-align: middle;
}

.erp-sel input[type='checkbox'] {
  width: 15px;
  height: 15px;
  accent-color: var(--erp-brand);
  cursor: pointer;
}

.erp-menu-wrap {
  position: relative;
  display: inline-flex;
}

.erp-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 208px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 9px;
  box-shadow: var(--erp-shadow-lg);
  z-index: 80;
  animation: erp-fade-in 0.12s ease-out;
}

.erp-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: var(--erp-fs-115);
  text-align: left;
  color: var(--erp-ink);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.erp-menu-item:hover {
  background: var(--erp-brand-soft);
  color: var(--erp-brand-deep);
}

.erp-menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--erp-line);
}

.erp-btn .erp-caret {
  margin-left: 2px;
  transition: transform 0.15s;
}

.erp-btn-open .erp-caret {
  transform: rotate(180deg);
}

/* 回收站 / 批量操作工具栏 */

.erp-page-actions {
  flex-wrap: wrap;
}

.erp-btn-danger {
  color: #dc2626;
  border-color: #fecaca;
}

.erp-btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* ── 快速导航 20 卡网格（对齐行业主流 ERP FastNavigation） ── */

/* 快速导航外层：给「业务流向箭头」做定位基准 */

.erp-nav-wrap { position: relative; }

.erp-flow-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.erp-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 列间距必须留够：原版就是靠这些空隙画红色流向箭头，4px 根本画不出来 */
  gap: 36px 22px;
  padding: 22px 18px 26px;
}

/* 快速导航卡片：对齐原版——整块是蓝色直角块，图标+名称都在块内，角标是右上角橙色圆点，
   而不是"透明背景 + 一个渐变图标"。 */

.erp-nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, #3a92b8, #216c90);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 6px 9px;
  width: 100%;
  min-height: 76px;
  color: #fff;
  box-shadow: 0 2px 6px -2px rgba(24, 78, 104, 0.45);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.erp-nav-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 16px -6px rgba(24, 78, 104, 0.6);
}

.erp-nav-ic {
  color: #fff;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
}

.erp-nav-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: #f08a24;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 64px;
}

.erp-nav-name {
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  font-size: var(--erp-fs-105);
  color: var(--erp-body);
}

/* ── 行内编辑（参考设计基础资料 Grid 形态） ── */

.erp-cell-editable {
  cursor: cell;
}

.erp-cell-editable:hover {
  box-shadow: inset 0 0 0 1.5px var(--erp-brand);
  border-radius: 3px;
}

.erp-cell-input {
  width: 100%;
  height: 30px;
  padding: 0 6px;
  font-size: var(--erp-fs-115);
  color: var(--erp-ink);
  background: #fff;
  border: 1.5px solid var(--erp-brand);
  border-radius: 5px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 保存按钮：有待保存修改时的徽标 */

.erp-save-dot {
  margin-left: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--erp-brand-deep);
  font-size: 11px;
  font-weight: 800;
  border-radius: 9px;
}

@keyframes erp-save-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12); }
}

.erp-save-dirty {
  animation: erp-save-pulse 1.8s ease-in-out infinite;
}

/* ── 底部新增表单区（参考设计销售单 SimpleForm 形态） ── */

.erp-billbar {
  margin-top: 12px;
}

.erp-billbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 14px;
}

@media (max-width: 1100px) {
  .erp-billbar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 负数金额红字（中国财务惯例，按行业惯例设计欠款/冲销红字） */

.erp-cell-money.erp-neg {
  color: #dc2626;
}

/* 工作台底部状态栏（对齐原版的版权/协议/手机端/在线客服那一条） */

.erp-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 2px;
  font-size: 11.5px;
  color: var(--erp-faint);
  border-top: 1px solid var(--erp-line);
  margin-top: 2px;
}

.erp-statusbar-sep {
  width: 1px;
  height: 10px;
  background: var(--erp-line);
}

/* 工作台顶部 4 张统计卡：对齐原版的青/紫/绿/红实色底 + 白字 */

.erp-stat-card { color: #fff; border-top: 0 !important; }

.erp-stat-card .erp-stat-label { color: rgba(255,255,255,0.92) !important; }

.erp-stat-card .erp-stat-value { color: #fff !important; }

.erp-stat-card .erp-stat-foot { color: rgba(255,255,255,0.78) !important; }

.erp-stat-card .erp-stat-ic { background: rgba(255,255,255,0.22) !important; color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   V5 视觉规范层 —— 以纸箱行业 ERP 的通用视觉语言为基准（蓝白主色、紧凑密度、
   高信息层次），逐项定义色板/间距/字号的最终落点。
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. 变量整体回落（密度/字号/主色） ── */

:root {
  /* 设计令牌（全局）：品牌主色「墨青」（自有视觉身份），[data-theme] 机制支持多品牌扩展 */
  --erp-brand: #16697a;
  --erp-brand-deep: #0f4c59;
  --erp-brand-soft: #e2f1f5;
  --erp-page: #eff4f5;
  --erp-line: #d8e4e8;
  --erp-line-soft: #e5eef1;
  --erp-side: #f5fafa;
  --erp-side-2: #e9f2f4;
  /* 字号：专业 ERP 标准 + 半档（比 FineUI 略大便于阅读，比初版收敛） */
  --erp-fs-10: 12px;
  --erp-fs-105: 13px;
  --erp-fs-11: 13.5px;
  --erp-fs-115: 14px;
  --erp-fs-12: 14px;
  --erp-fs-125: 15px;
  --erp-fs-13: 15px;
  --erp-fs-14: 16px;
  --erp-fs-16: 17px;
  --erp-fs-20: 20px;
  --erp-fs-21: 21px;
  /* 密度：行高/表头/控件全线下调 */
  --erp-row-h: 30px;
  --erp-head-h: 30px;
  --erp-ctl-h: 28px;
  --erp-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  --erp-shadow-lg: 0 4px 14px -6px rgba(15, 23, 42, 0.14);
}

[data-theme='B'], [data-theme='B'] .erp-root {
  --erp-brand: #3d5a80;
  --erp-brand-deep: #293241;
  --erp-brand-soft: #e8eef7;
  --erp-page: #eff2f7;
  --erp-side: #f7f9fc;
  --erp-side-2: #eaeff7;
}

[data-theme='C'], [data-theme='C'] .erp-root {
  --erp-brand: #2a9d8f;
  --erp-brand-deep: #1f7a70;
  --erp-brand-soft: #e6f5f2;
  --erp-page: #eff6f4;
  --erp-side: #f5fbf9;
  --erp-side-2: #e8f4f0;
}

/* ── 2. 面板：直角 + 细边框 + 弱阴影 ── */

.erp-root .erp-card,
.erp-root .erp-modal {
  border-radius: 4px;
  box-shadow: var(--erp-shadow);
}

.erp-root .erp-billbar {
  border-radius: 4px;
}

/* ── 3. 表格：FineUI 深蓝表头白字 + 紧凑行 ── */

.erp-root .erp-table th {
  background: linear-gradient(180deg, #4a94c4, var(--erp-brand));
  color: #fff;
  font-weight: 400;
  height: 34px;
  font-size: 13.5px;
  border-bottom: 1px solid #3785b2;
  white-space: nowrap;
}

.erp-root .erp-table td {
  height: 34px;
  font-size: 13.5px;
  padding: 2px 8px;
}

.erp-root .erp-table tbody tr:hover td {
  background: #f2f8fc;
}

.erp-root .erp-table tfoot td {
  font-size: var(--erp-fs-105);
}

/* 跨页时的「总计」行：比上一行「本页合计」更重，否则两行数字看着一样分不清哪个是全量 */

.erp-root .erp-table tfoot tr.erp-tfoot-all td {
  border-top: 1px solid var(--erp-line-soft);
  background: var(--erp-side-2);
  font-weight: 600;
}

/* 勾选框随之变小 */

.erp-root .erp-sel input[type='checkbox'] {
  width: 13px;
  height: 13px;
}

/* ── 4. 按钮/输入控件：小号紧凑 ── */

.erp-root .erp-btn {
  border-radius: 3px;
  gap: 5px;
  padding: 0 11px;
  font-size: var(--erp-fs-11);
}

.erp-root .erp-btn svg {
  width: 13px;
  height: 13px;
}

.erp-root .erp-input,
.erp-root .erp-select {
  border-radius: 3px;
  font-size: var(--erp-fs-11);
}

.erp-root .erp-menu {
  border-radius: 4px;
}

.erp-root .erp-menu-item {
  padding: 6px 10px;
  font-size: var(--erp-fs-11);
}

.erp-root .erp-pill {
  font-size: 11px;
  padding: 1px 8px;
}

/* ── 5. 侧栏：深色 → 浅色（参考设计浅蓝窄栏观感） ── */

.erp-root .erp-side {
  background: linear-gradient(180deg, #fbfdfe, #f2f7fb);
  border-right: 1px solid var(--erp-line);
}

.erp-root .erp-side-brand {
  background: linear-gradient(135deg, #bfe0ef, #a5d2e8);
  border-bottom: 1px solid #9cc9de;
}

.erp-root .erp-mark {
  background: linear-gradient(150deg, var(--erp-brand), var(--erp-brand-deep));
  color: #fff;
  border-radius: 4px;
}

.erp-root .erp-brand-text b {
  color: #14405a;
}

.erp-root .erp-brand-text span {
  color: #4d7d99;
}

.erp-root .erp-group {
  color: #33566b;
  height: 36px;
  font-size: 15px;
  font-weight: 500;
}

.erp-root .erp-group svg {
  color: #4d86a6;
  width: 17px;
  height: 17px;
}

.erp-root .erp-group:hover {
  background: #e9f3f9;
  color: var(--erp-brand-deep);
}

.erp-root .erp-leaf {
  color: #4a6675;
  height: 32px;
  font-size: 14px;
}

.erp-root .erp-leaf .erp-leaf-ic {
  color: #7ba2b8;
  width: 16px;
  height: 16px;
}

.erp-root .erp-leaf:hover {
  background: #e9f3f9;
  color: var(--erp-brand-deep);
}

.erp-root .erp-leaf.active {
  background: var(--erp-brand);
  color: #fff;
}

.erp-root .erp-leaf.active .erp-leaf-ic {
  color: #fff;
}

.erp-root .erp-side-foot {
  border-top: 1px solid var(--erp-line);
  color: #5d7f93;
}

/* ── 6. 顶栏：浅蓝渐变条（参考设计 logo 栏） ── */

.erp-root .erp-topbar {
  background: linear-gradient(180deg, var(--erp-brand-soft), var(--erp-page));
  border-bottom: 1px solid #c2dcea;
  height: 44px;
}

.erp-root .erp-topbar .erp-crumb b {
  color: #14405a;
}

.erp-root .erp-user-meta b {
  color: #14405a;
}

.erp-root .erp-user-meta span {
  color: #5d8aa3;
}

/* ── 7. 页签条：紧凑浅色 ── */

.erp-root .erp-tab {
  height: 30px;
  font-size: var(--erp-fs-11);
  border-radius: 3px 3px 0 0;
}

/* ── 8. 面板标题栏：浅蓝底条（参考设计「快速导航/系统公告」样式） ── */

.erp-root .erp-sec-head {
  background: var(--erp-brand-soft);
  border-bottom: 1px solid var(--erp-page);
  min-height: 34px;
  padding: 0 12px;
}

.erp-root .erp-card > .h-11 {
  background: var(--erp-brand-soft);
  min-height: 34px;
  height: 34px;
  border-bottom: 1px solid var(--erp-page);
}

.erp-root .erp-billbar > .h-11 {
  background: var(--erp-brand-soft);
}

/* ── 9. 工作台统计卡：深渐变 → 柔和淡彩（Erp.tsx 内联色同步改，这里兜底字色） ── */

.erp-root .erp-stat-card {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.erp-root .erp-stat-label {
  font-size: var(--erp-fs-11);
}

.erp-root .erp-stat-value {
  font-size: var(--erp-fs-16);
}

.erp-root .erp-stat-foot {
  font-size: var(--erp-fs-10);
}

/* ── 10. 快速导航卡：微缩（46px 图标） ── */

.erp-root .erp-nav-grid {
  gap: 20px 4px;
  padding: 16px 14px 18px;
}

.erp-root .erp-nav-ic {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(155deg, #4a94c4, var(--erp-brand));
  box-shadow: 0 2px 6px -2px rgba(60, 141, 188, 0.5);
}

.erp-root .erp-nav-badge {
  top: -8px;
  right: calc(50% - 32px);
  background: #f0a04b;
  font-size: 10.5px;
  line-height: 15px;
  padding: 0 6px;
}

/* ── 11. 图表页 KPI 与柱图：紧凑 ── */

.erp-root .erp-kpi {
  border-radius: 4px;
  padding: 10px 14px;
}

.erp-root .erp-kpi-value {
  font-size: var(--erp-fs-16);
}

.erp-root .erp-kpi-label {
  font-size: var(--erp-fs-11);
}

/* ── 12. 弹窗/底部表单：紧凑 ── */

.erp-root .erp-modal-head {
  background: var(--erp-brand-soft);
  border-bottom: 1px solid var(--erp-page);
}

.erp-root .erp-print-dialog {
  border-radius: 4px;
}

.erp-root .erp-cell-input {
  height: 24px;
  font-size: var(--erp-fs-11);
}

/* ── 13. 分页/空状态/通知：随密度回落 ── */

.erp-root .erp-page-btn {
  height: 24px;
  min-width: 24px;
  font-size: var(--erp-fs-11);
}

.erp-root .erp-pager-info {
  font-size: var(--erp-fs-11);
}

.erp-root .erp-toast {
  font-size: var(--erp-fs-11);
  padding: 7px 14px;
}

.erp-root .erp-flow-cell,
.erp-root .erp-row-actions .erp-act {
  border-radius: 3px;
}

/* ── 14. 统计卡新结构（左圆图标 + 右数值区） ── */

.erp-root .erp-stat-cards {
  gap: 12px;
}

.erp-root .erp-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.erp-root .erp-stat-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.92;
}

.erp-root .erp-stat-main {
  min-width: 0;
}

.erp-root .erp-stat-label {
  color: #5b7488;
}

.erp-root .erp-stat-value {
  font-weight: 700;
  line-height: 1.25;
  margin: 1px 0;
}

.erp-root .erp-stat-foot {
  color: #8aa0b2;
}

/* ── 15. 图表柱色与统计卡数值：对齐 FineUI 蓝与行业惯例大数值 ── */

.erp-root .erp-bar {
  background: linear-gradient(180deg, #55a1cd, var(--erp-brand)) !important;
}

.erp-root .erp-stat-value {
  font-size: 20px;
}

/* ── 16. 主按钮/选中态统一 FineUI 蓝 ── */

.erp-root .erp-btn-primary {
  background: var(--erp-brand);
  border-color: #3785b2;
}

.erp-root .erp-btn-primary:hover {
  background: #4a94c4;
}

.erp-root .erp-leaf.active {
  background: var(--erp-brand);
}

.erp-root .erp-page-btn.on {
  background: var(--erp-brand);
  border-color: #3785b2;
}

/* ── 17. 页头紧凑化：去掉大标题，统计小字 + 按钮一行（按行业惯例设计） ── */

.erp-root .erp-page-head {
  margin-bottom: 8px;
  gap: 12px;
  align-items: center;
  min-height: 34px;
}

.erp-root .erp-page-stats {
  font-size: var(--erp-fs-11);
  color: var(--erp-mute);
  white-space: nowrap;
}

.erp-root .erp-filters {
  margin-bottom: 8px;
  gap: 8px;
  padding: 8px 10px;
}

.erp-root .erp-filters .erp-field label {
  font-size: var(--erp-fs-10);
}

.erp-root .erp-page {
  gap: 0;
}

/* ── 18. 列配置菜单勾选行 ── */

.erp-root .erp-colmenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.erp-root .erp-colmenu-item input[type='checkbox'] {
  width: 13px;
  height: 13px;
  accent-color: var(--erp-brand);
}

/* ── 19. toast 提示不拦截点击（连续操作时 toast 会盖住工具栏按钮，点击被吃掉） ── */

.erp-root .erp-toast {
  pointer-events: none;
}

/* ── 20. 两段式侧栏（按行业惯例设计窄图标栏：模块列 + 当前模块子菜单，拒绝长列表眼花） ── */

.erp-root .erp-side {
  display: flex;
  flex-direction: column;
  width: 216px;
}

.erp-root .erp-modcol {
  padding: 8px 8px 6px;
  border-bottom: 1px solid var(--erp-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.erp-root .erp-modbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #3d5a70;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}

.erp-root .erp-modbtn svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.erp-root .erp-modbtn span {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.erp-root .erp-modbtn:hover {
  background: #e9f3f9;
  color: var(--erp-brand-deep);
}

.erp-root .erp-modbtn.active {
  background: var(--erp-brand);
  color: #fff;
}

.erp-root .erp-modbtn.active svg {
  color: #fff;
}

.erp-root .erp-subnav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px 8px;
}

.erp-root .erp-subnav-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #6b8aa0;
  letter-spacing: 1px;
  padding: 8px 10px 6px;
}

/* ── 21. 窄图标轨 + hover 浮窗子菜单（按行业惯例设计框架：侧栏 64px 不占内容区） ── */

.erp-root .erp-side.erp-rail-mode {
  width: 88px;
  flex: 0 0 88px;
}

.erp-root .erp-side.erp-rail-mode .erp-side-brand {
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.erp-root .erp-rail2 {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.erp-root .erp-rail2::-webkit-scrollbar { width: 0; }

.erp-root .erp-modicon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 2px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #3d5a70;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.erp-root .erp-modicon svg {
  width: 22px;
  height: 22px;
}

.erp-root .erp-modicon span {
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.erp-root .erp-modicon:hover,
.erp-root .erp-modicon.hovered {
  background: #d7e9f5;
  color: var(--erp-brand-deep);
}

.erp-root .erp-modicon.active {
  background: var(--erp-brand);
  color: #fff;
}

.erp-root .erp-modicon.active svg {
  color: #fff;
}

.erp-root .erp-flyout {
  position: fixed;
  left: 88px;
  width: 208px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  box-shadow: var(--erp-shadow-lg);
  padding: 6px;
  z-index: 90;
  animation: erp-fade-in 0.12s ease-out;
}

.erp-root .erp-flyout-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #6b8aa0;
  letter-spacing: 1px;
  padding: 6px 10px 6px;
  border-bottom: 1px solid var(--erp-page);
  margin-bottom: 4px;
}

/* ── 22. 单据详情抽屉（双击行/查看按钮：傻瓜化看单） ── */

.erp-root .erp-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 92vw);
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  animation: erp-drawer-in 0.16s ease-out;
  z-index: 110;
}

@keyframes erp-drawer-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.erp-root .erp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--erp-line);
  background: linear-gradient(180deg, #f6fafd, var(--erp-brand-soft));
}

.erp-root .erp-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.erp-root .erp-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-content: start;
}

.erp-root .erp-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #e2ecf3;
  border-radius: 5px;
  background: #fbfdfe;
  min-width: 0;
}

.erp-root .erp-drawer-field span {
  font-size: 11px;
  color: #6b8aa0;
}

.erp-root .erp-drawer-field b {
  font-size: 13px;
  color: var(--erp-ink);
  font-weight: 500;
  word-break: break-all;
}

.erp-root .erp-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--erp-line);
}

/* ── 23. 图标轨加大 + 浮窗精确对齐 ── */

.erp-root .erp-modicon {
  padding: 10px 0 9px;
  position: relative;
}

.erp-root .erp-modicon svg {
  width: 28px;
  height: 28px;
}

/* 模块名可见：图标大 + 文字清楚（svg 是 flex 子项，不加 shrink:0 会被压缩成扁条） */

.erp-root .erp-modicon {
  flex-shrink: 0;
  /* .erp-group 兼容类带 height:36px（树形分组遗留），必须解除，否则按钮压扁图标叠字 */
  height: auto;
}

.erp-root .erp-modicon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.erp-root .erp-modicon {
  gap: 5px;
}

/* 模块名 12.5px（§21 的 11px 覆盖为可读字号） */

.erp-root .erp-modicon span {
  font-size: 12.5px;
  font-weight: 500;
}

/* ══ 24. 专业 ERP 质感（去 AI 味）：纯色替代渐变 / 圆角收敛 / 阴影减淡 ══
   传统企业软件（FineUI/用友/金蝶）视觉语言：白底、纯色块、小圆角、少阴影、克制用色 */

/* 主按钮：渐变 -> FineUI 纯色 */

.erp-root .erp-btn-primary {
  background: var(--erp-brand);
  border-color: var(--erp-brand-deep);
}

.erp-root .erp-btn-primary:hover:not(:disabled) {
  background: var(--erp-brand-deep);
}

/* 表头：渐变 -> 纯色（FineUI 参考设计即纯色） */

.erp-root .erp-table th {
  background: var(--erp-brand);
}

/* 侧栏 brand 区：淡蓝渐变 -> 白底蓝标 */

.erp-root .erp-side-brand {
  background: #fff;
}

.erp-root .erp-mark {
  border-radius: 4px;
}

/* logo / 图标块：全部纯色 */

.erp-root .erp-nav-ic,
.erp-kpi-icon {
  border-radius: 4px;
}

.erp-root .erp-mark,
.erp-root .erp-nav-ic {
  background: var(--erp-brand) !important;
  background-image: none !important;
  color: #fff;
}

.erp-root .erp-nav-ic {
  color: #fff;
}

/* 快速导航/工作台的渐变图标块 -> 纯色（JS 内联渐变由 !important 压制） */

.erp-root [style*="linear-gradient"] {
  background: var(--erp-brand) !important;
  background-image: none !important;
  border-radius: 4px;
}

/* 圆角收敛：卡片 6px / 弹层 5px / 提示 5px */

.erp-root .erp-card,
.erp-root .erp-kpi,
.erp-root .erp-nav-card {
  border-radius: 6px;
}

.erp-root .erp-modal,
.erp-root .erp-toast {
  border-radius: 5px;
}

/* 阴影减淡（纸面感而非悬浮感） */

.erp-root .erp-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.erp-root .erp-flyout,
.erp-root .erp-drawer,
.erp-root .erp-modal {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

/* KPI 数字更沉稳（深墨色而非彩色大数字，标签灰阶） */

.erp-root .erp-kpi-value {
  color: var(--erp-ink);
  font-weight: 600;
}

/* 统计卡：白底企业报表风（文字深色、label 灰阶、数字 tint 色） */

.erp-root .erp-stat-card {
  border-radius: 6px;
  color: var(--erp-ink);
  border: 1px solid var(--erp-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.erp-root .erp-stat-card .erp-stat-label {
  color: #64748b;
  opacity: 1;
  font-weight: 500;
}

.erp-root .erp-stat-card .erp-stat-foot {
  color: #94a3b8;
  opacity: 1;
}

.erp-root .erp-stat-card .erp-stat-ic {
  border-radius: 4px;
}

/* ── 25. 抽屉明细表（紧凑） + 顶栏全局搜索 ── */

.erp-root .erp-drawer-detail .erp-table th,
.erp-root .erp-drawer-detail .erp-table td {
  height: 28px;
  font-size: 12px;
  padding: 2px 6px;
}

.erp-root .erp-drawer-detail .erp-table th {
  background: var(--erp-brand-soft);
  color: #33566b;
  border-bottom: 1px solid #d6e5ef;
}

/* 顶栏为白底：搜索框用浅灰底+深字（白字白底看不清的教训） */

.erp-root .erp-gsearch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f7fa;
  border: 1px solid #d6e0e8;
  border-radius: 4px;
  padding: 0 8px;
  height: 30px;
  width: 230px;
}

.erp-root .erp-gsearch:focus-within {
  background: #fff;
  border-color: var(--erp-brand);
}

.erp-root .erp-gsearch svg {
  color: #6b8aa0;
  flex-shrink: 0;
}

.erp-root .erp-gsearch:focus-within svg {
  color: var(--erp-brand);
}

.erp-root .erp-gsearch input {
  border: 0;
  outline: none;
  background: none;
  color: var(--erp-ink);
  font-size: 12.5px;
  width: 100%;
}

.erp-root .erp-gsearch input::-moz-placeholder {
  color: #94a3b8;
}

.erp-root .erp-gsearch input::placeholder {
  color: #94a3b8;
}

.erp-root .erp-gsearch:focus-within input {
  color: var(--erp-ink);
}

.erp-root .erp-gsearch .erp-gmiss {
  font-size: 11px;
  color: #b91c1c;
  white-space: nowrap;
}

/* ── 26. 列宽拖拽把手 + 表格右键菜单 ── */

.erp-root .erp-col-resize {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: col-resize;
  z-index: 3;
}

.erp-root .erp-col-resize:hover {
  background: rgba(255, 255, 255, 0.35);
}

.erp-root .erp-ctxmenu {
  position: fixed;
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

/* ── 27. 右键菜单紧凑化（参考设计右键菜单的信息密度） ── */

.erp-root .erp-ctxmenu {
  min-width: 0;
  width: 168px;
  padding: 4px 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.erp-root .erp-ctxmenu .erp-menu-item {
  padding: 5px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.erp-root .erp-ctxmenu .erp-menu-item:hover {
  background: #e9f3f9;
}

.erp-root .erp-ctxmenu .erp-menu-sep {
  margin: 3px 0;
}

/* ── 28. 横滚固定列：勾选列钉左、操作列钉右（列多的页不丢操作入口） ── */

.erp-root .erp-table th.erp-sel,
.erp-root .erp-table td.erp-sel {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.erp-root .erp-table thead th.erp-sel {
  z-index: 4;
  background: var(--erp-brand);
}

.erp-root .erp-table th.erp-ops,
.erp-root .erp-table td.erp-ops {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -4px 0 6px -4px rgba(15, 23, 42, 0.12);
}

.erp-root .erp-table thead th.erp-ops {
  z-index: 4;
  background: var(--erp-brand);
  box-shadow: none;
}

.erp-root .erp-table tfoot td.erp-ops {
  background: #fbfdfe;
}

/* ── 多设备同步冲突提示条（第 59 轮）── */

.erp-root .erp-sync-conflict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 0;
  padding: 8px 12px;
  border: 1px solid #f0c36d;
  background: #fdf6e3;
  color: #8a6d1a;
  border-radius: 8px;
  font-size: var(--erp-fs-12, 12px);
  line-height: 1.6;
}

.erp-root .erp-sync-conflict .erp-conflict-x {
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
  padding: 0 4px;
}

/* ── 弹窗下拉 ➕ 现场新增选项（第 63 轮，员工页同款交互）── */

.erp-root .erp-opt-row { display: flex; align-items: center; gap: 6px; }

.erp-root .erp-opt-row .erp-select { flex: 1 1 auto; min-width: 0; }

.erp-root .erp-plus-opt {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--erp-line, #d6dee8);
  background: #fff; color: var(--erp-ink, #334155);
  border-radius: 6px; cursor: pointer;
  font-size: 13px; line-height: 1;
}

.erp-root .erp-plus-opt:hover { border-color: var(--erp-brand, #2563eb); color: var(--erp-brand, #2563eb); }

.erp-root .erp-plus-opt.ok { background: var(--erp-brand, #2563eb); border-color: var(--erp-brand, #2563eb); color: #fff; }

.erp-root .erp-optadd { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }

.erp-root .erp-optinput { flex: 1 1 auto; min-width: 0; }

/* ═══ 员工管理大表单（复刻参考设计「新增员工」弹窗布局） ═══ */

.emp-modal .erp-modal-head {
  background: #2f9fd0;
  color: #fff;
  border-radius: 6px 6px 0 0;
}

.emp-modal .erp-modal-head .erp-modal-title b { color: #fff; }

.emp-modal .erp-modal-head .erp-modal-title span { color: rgba(255, 255, 255, 0.8); }

.emp-modal .erp-modal-head .erp-close { color: #fff; background: transparent; border: 0; cursor: pointer; }

.emp-body {
  max-height: min(72vh, 720px);
  overflow-y: auto;
  padding: 10px 14px 4px;
}

/* 分区标题条（员工信息 / 工资信息），按行业惯例设计蓝底白字 */

.emp-sec {
  background: #2f9fd0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 0;
  margin: 4px -14px 10px;
}

/* 两列字段网格 */

.emp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  -moz-column-gap: 18px;
       column-gap: 18px;
}

.emp-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}

.emp-label {
  flex: 0 0 76px;
  text-align: right;
  font-size: 12px;
  color: #2f9fd0;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}

.emp-req { color: #d64541; margin-right: 2px; }

.emp-ctl-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.emp-field .erp-input,
.emp-field .emp-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  font-size: 12px;
  padding: 0 8px;
}

.emp-field textarea.emp-area { height: auto; padding: 5px 8px; resize: vertical; line-height: 1.5; }

/* ➕ 现场新增选项 */

.emp-plus {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7cc4e0;
  background: #2f9fd0;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.emp-plus:hover { background: #2b8fbc; }

.emp-plus-ok { background: #2e9e5b; border-color: #58bd85; }

.emp-optadd { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }

.emp-optinput { height: 26px !important; font-size: 11.5px !important; }

/* 照片 */

.emp-photo-row { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 auto; }

.emp-photo-box {
  width: 74px;
  height: 92px;
  border: 1px solid var(--erp-line, #d9dee6);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.emp-photo-box img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }

.emp-photo-empty { color: #b9c2cf; font-size: 11px; }

.emp-err { color: #d64541; font-size: 11px; margin-top: 3px; }

/* 工资信息数字输入：保留上下调节箭头的观感 */

.emp-grid input[type='number'] { height: 28px; font-size: 12px; }

/* 窄屏回退：单列 */

@media (max-width: 760px) {
  .emp-grid { grid-template-columns: 1fr; }
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.pointer-events-none {
  pointer-events: none;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.right-3 {
  right: 0.75rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-11 {
  height: 2.75rem;
}

.h-14 {
  height: 3.5rem;
}

.h-4 {
  height: 1rem;
}

.h-6 {
  height: 1.5rem;
}

.h-9 {
  height: 2.25rem;
}

.min-h-screen {
  min-height: 100vh;
}

.w-14 {
  width: 3.5rem;
}

.w-9 {
  width: 2.25rem;
}

.w-\[400px\] {
  width: 400px;
}

.w-full {
  width: 100%;
}

.w-px {
  width: 1px;
}

.min-w-0 {
  min-width: 0px;
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

.rotate-90 {
  --tw-rotate: 90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.resize {
  resize: both;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.place-items-center {
  place-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.gap-5 {
  gap: 1.25rem;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-all {
  word-break: break-all;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-\[var\(--erp-brand\)\] {
  border-color: var(--erp-brand);
}

.border-\[var\(--erp-line\)\] {
  border-color: var(--erp-line);
}

.border-emerald-100 {
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
}

.border-red-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 226 226 / var(--tw-border-opacity, 1));
}

.border-white\/15 {
  border-color: rgb(255 255 255 / 0.15);
}

.bg-\[\#fafbfc\] {
  --tw-bg-opacity: 1;
  background-color: rgb(250 251 252 / var(--tw-bg-opacity, 1));
}

.bg-\[var\(--erp-brand\)\] {
  background-color: var(--erp-brand);
}

.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.p-1 {
  padding: 0.25rem;
}

.p-2\.5 {
  padding: 0.625rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.align-middle {
  vertical-align: middle;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-\[12px\] {
  font-size: 12px;
}

.text-\[13px\] {
  font-size: 13px;
}

.text-\[14px\] {
  font-size: 14px;
}

.text-\[16px\] {
  font-size: 16px;
}

.text-\[18px\] {
  font-size: 18px;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.leading-\[1\.6\] {
  line-height: 1.6;
}

.leading-none {
  line-height: 1;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

.text-\[\#1f2937\] {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-\[\#64748b\] {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.text-\[\#94a3b8\] {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.text-\[\#b45309\] {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}

.text-\[var\(--erp-body\)\] {
  color: var(--erp-body);
}

.text-\[var\(--erp-brand\)\] {
  color: var(--erp-brand);
}

.text-\[var\(--erp-faint\)\] {
  color: var(--erp-faint);
}

.text-\[var\(--erp-ink\)\] {
  color: var(--erp-ink);
}

.text-\[var\(--erp-mute\)\] {
  color: var(--erp-mute);
}

.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}

.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-white\/75 {
  color: rgb(255 255 255 / 0.75);
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

@media (orientation: landscape) and (max-width: 1023px) {
  .footer-portrait-only {
    display: none !important;
  }
  .info-bar-portrait-only {
    display: none !important;
  }
}

/* 顶栏安全区（配合 viewport-fit=cover）：
   顶栏背景延伸到状态栏/刘海后方，内容整体下沉到安全区内，
   视觉上完全顶到屏幕物理顶部、按钮又不被状态栏遮挡。普通浏览器 env 为 0，不生效无影响。 */

.app-header-safe {
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(3.5rem + env(safe-area-inset-top, 0px));
}

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f5f7fa;
}

.dark html, .dark body, .dark #root {
  background: #12131e;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* 输入框高对比度文字（温和样式，不破坏组件布局）*/

input[type="number"], input[type="text"], select, textarea {
  color: #1a1a2e;
  font-weight: 600;
}

.dark input[type="number"], .dark input[type="text"], .dark select, .dark textarea {
  color: #f0f2f8;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.15);
}

@keyframes importHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
  }
}

.import-highlight {
  animation: importHighlight 2s ease-out;
  background-color: rgba(30, 64, 175, 0.05) !important;
  border-color: #1e40af !important;
}

/* 无具体进度时的导出进度条：滑块左右往返 */

@keyframes exportindeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* 登录/VIP 弹窗入场动画 */

@keyframes dc-gate-pop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b0b5c0;
}

.dark ::-webkit-scrollbar-thumb {
  background: #3a3b52;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #4a4b62;
}

/* 打印：只输出预览画布，隐藏所有界面外壳 */

@media print {
  .no-print {
    display: none !important;
  }
  html, body, #root {
    height: auto !important;
    overflow: visible !important;
  }
  body {
    background: #ffffff !important;
  }
}

/* 打印：完整报价单（宽版）—— 只印 .qsheet-print，其余全部不占位地隐藏。
   报价单通过 createPortal 挂在 body 直接子节点上，所以这里能用
   body > *:not(.qsheet-root) 精确摘掉应用外壳 —— 只用 visibility:hidden 的话
   外壳仍占排版高度，会印出一堆空白页。 */

@media print {
  body > *:not(.qsheet-root) {
    display: none !important;
  }
  .qsheet-root {
    position: static !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  .qsheet-root > .absolute {
    display: none !important; /* 半透明遮罩 */
  }
  .qsheet-print {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #111827 !important;
  }
  .qsheet-body {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    padding: 6px 10px !important;
  }
  /* 打印态压缩排版：尽量压进 1 页 A4 横向 */
  .qsheet-print-head {
    padding: 6px 10px !important;
  }
  .qsheet-body > div {
    gap: 8px !important;
  }
  .qsheet-print .rounded-xl {
    padding: 6px !important;
  }
  .qsheet-print th,
  .qsheet-print td {
    padding: 2px 5px !important;
  }
  .qsheet-print,
  .qsheet-print * {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
  /* 报价单内部一律强制浅色：深色主题的文字/边框在纸上不可读 */
  .qsheet-print * {
    color: #111827 !important;
    background: transparent !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
  }
  .qsheet-print table,
  .qsheet-print th,
  .qsheet-print td {
    border-color: #cbd5e1 !important;
  }
  .qsheet-no-print {
    display: none !important;
  }
  @page {
    size: A4 landscape;
    margin: 10mm;
  }
}

/* ── 移动端布局修正（2026-10-28）─────────────────────────────────────────
 * 背景：窄屏（<390px）顶栏左右两组会压叠；底部「撤销/重做」胶囊与左下「缩放」胶囊重叠。
 * 顶栏用 Tailwind 标准 flex-wrap 解决（换行，不再压叠）。
 * 底部因本项目 Tailwind 不生成任意 max-[...] 变体（CSS 里查不到 520px），改用显式媒体查询。
 * 上移到 3.75rem（60px）：让开 bottom-4 的缩放胶囊（高约 28px + 间距）。
 */

@media (max-width: 520px) {
  .undo-pill-lift {
    bottom: 3.75rem !important;
  }
}

/* 手机窄屏（<640）：顶栏允许换行，避免右侧组压住左侧「项目」按钮；
 * ≥640（平板/桌面）保持单行（此前无条件 flex-wrap 会让 768 平板也换行 = 回归）。 */

@media (max-width: 639px) {
  .header-mobile-wrap {
    flex-wrap: wrap !important;
    row-gap: 0.25rem;
  }
}

.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}

.hover\:border-\[var\(--erp-brand\)\]:hover {
  border-color: var(--erp-brand);
}

.hover\:bg-\[\#f0f4fa\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(240 244 250 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[\#f7f9fc\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(247 249 252 / var(--tw-bg-opacity, 1));
}

.hover\:text-\[var\(--erp-brand\)\]:hover {
  color: var(--erp-brand);
}

@media (min-width: 640px) {

  .sm\:block {
    display: block;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }
}

@media (min-width: 768px) {

  .md\:block {
    display: block;
  }
}

@media (min-width: 1024px) {

  .lg\:hidden {
    display: none;
  }
}
