:root {
  --primary: #246bfd;
  --primary-dark: #1756d8;
  --primary-soft: #edf3ff;
  --ink: #182230;
  --muted: #7b8798;
  --line: #e8edf3;
  --bg: #f5f7fa;
  --card: #ffffff;
  --danger: #ef4d5a;
  --success: #18a66a;
  --warning: #f19a2a;
  --shadow: 0 8px 28px rgba(35, 53, 84, 0.08);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

img, svg, canvas {
  max-width: 100%;
}

html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body { position: relative; }

.site-record-footer {
  width: 100%;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-record-footer a {
  color: inherit;
  text-decoration: none;
}

.site-record-footer a:hover,
.site-record-footer a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

body, button, input, select, textarea {
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea {
  max-width: 100%;
  font: inherit;
}
button { border: 0; cursor: pointer; }

.app-shell {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.page-header h1 { margin: 0; font-size: 17px; }
.page-header .sub { margin-top: 2px; color: var(--muted); font-size: 10px; }
.header-action { color: var(--primary); background: transparent; font-size: 14px; }

.content { width: 100%; max-width: 100%; overflow-x: hidden; padding: 12px; }

.home-hero {
  position: relative;
  min-height: 292px;
  padding: 22px 30px 0;
  color: white;
  background: linear-gradient(135deg, #2f8cff 0%, #1f6ff2 100%);
}

.home-hero h1 {
  margin: 14px 0 4px;
  font-size: 31px;
  letter-spacing: 1px;
  font-weight: 800;
}

.home-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.login-pill {
  position: absolute;
  top: 14px;
  right: 0;
  padding: 8px 15px;
  background: rgba(20, 79, 173, 0.45);
  border-radius: 999px 0 0 999px;
  font-size: 13px;
  font-weight: 700;
}

.home-setting {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.todo-panel {
  position: absolute;
  right: 30px;
  bottom: -84px;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  color: var(--ink);
  background: white;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(37, 59, 92, 0.16);
}

.todo-item {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px 6px 16px;
  text-align: center;
  background: white;
  border-right: 1px solid var(--line);
}

.todo-item:last-child { border-right: 0; }
.todo-item strong { font-size: 20px; font-weight: 800; }
.todo-item span { color: #c4c9d2; font-size: 14px; }
.todo-item b { font-size: 36px; font-weight: 500; line-height: 1; }
.todo-item em { color: var(--primary); font-style: normal; font-size: 16px; }
.home-hero + .content { padding-top: 112px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 14px 8px 34px;
}

.module-item {
  display: grid;
  gap: 12px;
  place-items: center;
  color: var(--ink);
  background: transparent;
}

.module-item span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #6bcaff, #4f8ff8);
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(36, 107, 253, 0.18);
  font-size: 28px;
  font-weight: 800;
}

.module-finance span { background: linear-gradient(135deg, #7ed7ff, #5b9cf6); }
.module-warehouse span { background: linear-gradient(135deg, #5bb7ff, #3778df); }
.module-analysis span { background: linear-gradient(135deg, #7ab7ff, #4a89eb); }
.module-item strong { font-size: 19px; font-weight: 500; }

.home-board-card {
  margin: 0 0 18px;
  padding: 22px 18px 18px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(35, 50, 76, 0.12);
}

.home-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-board-title h2 {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 21px;
}

.home-board-title h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 6px;
  border-radius: 99px;
  background: var(--primary);
}

.home-board-title div {
  display: flex;
  gap: 22px;
  color: #8b95a5;
  font-size: 16px;
}

.home-board-title .active { color: var(--primary); }

.hero {
  padding: 20px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #1d61ed, #4b8dff);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(36, 107, 253, 0.24);
}

.hero-label { font-size: 13px; opacity: 0.85; }
.hero-value { margin: 8px 0 5px; font-size: 30px; font-weight: 700; }
.hero-note { font-size: 12px; opacity: 0.82; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stat-card, .card {
  background: var(--card);
  border: 1px solid rgba(225, 231, 239, 0.8);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat-card { padding: 14px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 6px; font-size: 19px; font-weight: 700; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { margin: 0; font-size: 16px; }
.section-title span { color: var(--muted); font-size: 12px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-item {
  padding: 16px 8px;
  text-align: center;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.quick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
}

.quick-item strong { display: block; font-size: 13px; }
.quick-item small { color: var(--muted); font-size: 10px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.board-card {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 12px 8px;
  place-items: center;
  text-align: center;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.board-card strong { font-size: 15px; }
.board-card span { color: var(--muted); font-size: 12px; }

.billing-summary-grid,
.order-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.billing-summary-grid span,
.order-stat-grid span {
  padding: 8px;
  background: #f7f9fc;
  border-radius: 9px;
}

.billing-summary-grid b,
.order-stat-grid b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.product-mini-head {
  display: grid;
  grid-template-columns: minmax(48px, 1.4fr) minmax(38px, 0.9fr) minmax(30px, 0.7fr) minmax(36px, 0.9fr) minmax(30px, 0.7fr) minmax(36px, 0.8fr);
  gap: 4px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.piece-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  max-width: 100%;
}

.piece-input {
  width: 100%;
  min-height: 36px;
  padding: 4px 2px;
  text-align: center;
  background: white;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  outline: none;
  font-size: 12px;
}

.piece-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(36, 107, 253, 0.12);
}

.piece-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 10px;
}

.piece-tools .btn { min-height: 40px; padding: 8px 10px; font-size: 12px; }

.compact-actions { border-top: 0; padding-top: 0; }
.compact-actions .btn { width: 100%; }

.list { display: grid; max-width: 100%; gap: 10px; }
.list-card { min-width: 0; max-width: 100%; padding: 14px; overflow: hidden; background: white; border-radius: 14px; box-shadow: var(--shadow); }
.list-top { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.list-top > div { min-width: 0; }
.list-title { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 700; }
.list-meta { min-width: 0; margin-top: 5px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.order-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-actions .btn { min-height: 38px; padding: 7px 10px; font-size: 12px; }
.order-actions .link-btn { margin-left: auto; font-size: 12px; }
.draft-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.draft-order-actions .btn { width: 100%; min-width: 0; padding-inline: 8px; }
.amount { flex: 0 0 auto; max-width: 42vw; overflow-wrap: anywhere; text-align: right; font-size: 16px; font-weight: 700; }
.amount.danger { color: var(--danger); }
.amount.success { color: var(--success); }
.badge { display: inline-block; padding: 3px 8px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 11px; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.debt-badge { color: var(--danger); background: #fff0f2; }
.paid-badge { color: var(--success); background: #eaf8f1; }
.muted-badge { color: var(--muted); background: #f0f2f5; }
.draft-badge { color: #f79009; background: #fff7ed; }
.more-btn { width: 34px; height: 30px; color: var(--muted); background: #f3f6fa; border-radius: 10px; font-size: 18px; }

.debt-table-head,
.debt-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.8fr);
  gap: 8px;
  align-items: center;
}

.debt-table-head span,
.debt-row-meta span,
.billing-summary-grid span,
.order-stat-grid span,
.board-card,
.quick-item,
.stat-card {
  overflow-wrap: anywhere;
}

.debt-table-head {
  margin-bottom: 8px;
  padding: 10px 12px;
  color: #4d5a6b;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}

.debt-table-head.supplier,
.debt-row-meta.supplier { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); }

.debt-row-meta {
  margin-top: 12px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.debt-row-meta span:nth-child(2) {
  color: var(--danger);
  font-weight: 700;
}

.form-card { margin-bottom: 12px; padding: 15px; background: white; border-radius: 14px; box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 14px; font-size: 15px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 7px; color: #4d5a6b; font-size: 13px; }
.required::after { content: " *"; color: var(--danger); }
.account-cash-settled {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #159447;
  font-size: 13px;
  font-weight: 800;
}
.account-cash-settled[hidden] { display: none; }
.account-cash-settled span {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: white;
  background: #22c55e;
  font-size: 11px;
  line-height: 1;
}
.finance-edit-notice {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #f0d6a7;
  border-radius: 10px;
  background: #fff9ec;
  color: #8a5a12;
  font-size: 13px;
  line-height: 1.6;
}
.input.cash-settled-input {
  border-color: #43c978;
  background: #f4fff7;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .08);
}
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fafbfc;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  outline: none;
}
.input[type="number"],
.piece-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button,
.piece-input[type="number"]::-webkit-outer-spin-button,
.piece-input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.1); }
.textarea { min-height: 76px; resize: vertical; }
.combo-results { display: grid; gap: 5px; margin-top: 6px; }
.combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  text-align: left;
  background: var(--primary-soft);
  border-radius: 9px;
}
.combo-option strong { font-size: 13px; }
.combo-option small { color: var(--muted); font-size: 11px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

.product-line {
  margin-bottom: 10px;
  padding: 13px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cost-row {
  margin-bottom: 10px;
  padding: 13px;
  background: #fffaf3;
  border: 1px solid #f3dfbd;
  border-radius: 12px;
}
.accounting-goods-panel {
  margin: 18px 0 16px;
  overflow: hidden;
  background: #f7faff;
  border: 1px solid #bdd2ff;
  border-radius: 14px;
}
.order-cost-panel {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.order-cost-head,
.order-cost-total,
.order-profit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-cost-head h3 { margin: 0; font-size: 16px; }
.order-cost-head span { color: #8b6a38; font-size: 12px; }
.order-cost-list { margin-top: 10px; border-top: 1px solid #eef0f2; }
.order-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f2;
}
.order-cost-row > div { min-width: 0; }
.order-cost-row strong,
.order-cost-row small { display: block; }
.order-cost-row small { margin-top: 3px; color: #7b8190; font-size: 12px; }
.order-cost-row > span { text-align: right; white-space: nowrap; }
.order-cost-row em { display: block; margin-bottom: 3px; font-size: 11px; font-style: normal; }
.order-cost-row em.paid { color: #20844d; }
.order-cost-row em.payable { color: #c2413b; }
.order-cost-row b { font-size: 14px; }
.order-cost-total { padding-top: 12px; }
.order-cost-total strong { font-size: 17px; }
.order-profit-row { margin-top: 8px; padding-top: 10px; border-top: 1px dashed #d8dce2; color: #226447; }
.order-profit-row strong { font-size: 17px; }
.accounting-goods-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #edf4ff;
}
.accounting-goods-head h3 { margin: 0; font-size: 17px; }
.accounting-goods-head span { color: var(--primary); font-size: 12px; font-weight: 700; text-align: right; }
.accounting-goods-list { max-height: 280px; overflow: auto; padding: 0 14px; -webkit-overflow-scrolling: touch; }
.accounting-goods-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(72px, auto);
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e2eaf7;
}
.accounting-goods-row:last-child { border-bottom: 0; }
.accounting-goods-row strong { display: block; font-size: 14px; }
.accounting-goods-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.accounting-goods-row > span { padding: 4px 8px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 11px; white-space: nowrap; }
.accounting-goods-row > b { font-size: 14px; text-align: right; white-space: nowrap; }
.product-line:last-child { margin-bottom: 0; }
.product-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.product-name { font-weight: 700; }
.link-btn { padding: 0; color: var(--primary); background: transparent; }
.danger-btn { color: var(--danger); }

.add-product {
  width: 100%;
  min-height: 44px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px dashed #9fbcff;
  border-radius: 11px;
  font-weight: 700;
}

.settlement {
  display: grid;
  gap: 8px;
  padding-top: 5px;
}
.settle-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.settle-row.total { padding-top: 10px; color: var(--ink); border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }

.action-bar {
  position: sticky;
  bottom: calc(68px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(10px);
}
.btn { min-height: 46px; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.btn-primary { color: white; background: var(--primary); }
.btn-primary:active { background: var(--primary-dark); }
.btn-secondary { color: var(--primary); background: white; border: 1px solid #b8ccfb; }
.btn-danger-soft { color: var(--danger); background: #fff1f3; border: 1px solid #fecdd6; }

.search-wrap { display: flex; align-items: center; gap: 10px; padding: 12px 14px 2px; }
.search { padding-left: 38px; background: white; }
.search-box { position: relative; flex: 1 1 auto; min-width: 0; }
.search-box::before { content: "⌕"; position: absolute; top: 8px; left: 13px; color: var(--muted); font-size: 20px; }

.filter-chips { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.chip-row { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.chip { flex: 0 0 auto; padding: 7px 12px; color: var(--muted); background: white; border-radius: 999px; font-size: 12px; }
.chip.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.draft-maker-filter { padding: 6px 14px 4px; }
.draft-maker-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.draft-maker-title span { color: var(--ink); font-weight: 700; }
.draft-maker-title em { font-style: normal; }
.draft-maker-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.draft-maker-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.draft-maker-chip.active { color: white; background: var(--primary); }
.draft-maker-chip b {
  min-width: 20px;
  padding: 2px 6px;
  color: var(--danger);
  background: #fff0f2;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}
.draft-maker-chip.active b { color: var(--primary); background: white; }
.order-date-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 14px 4px;
  color: var(--muted);
  font-size: 12px;
}
.compact-date {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}
.date-preset-panel {
  padding: 6px 14px 12px;
  background: var(--bg);
}
.date-preset-panel.hidden { display: none; }
.date-preset-title {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.date-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.date-preset-grid .chip {
  width: 100%;
  border-radius: 8px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 560px;
  min-height: 66px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 20px rgba(26, 39, 60, 0.06);
}
.nav-item { display: grid; place-items: center; align-content: center; gap: 3px; color: #8b96a5; background: transparent; font-size: 11px; }
.nav-item b { font-size: 18px; line-height: 1; }
.nav-item.active { color: var(--primary); }

.empty { padding: 38px 20px; color: var(--muted); text-align: center; background: white; border-radius: 14px; }
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); }
.fab {
  position: fixed;
  right: max(18px, calc((100vw - 560px) / 2 + 18px));
  bottom: calc(82px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  color: white;
  background: var(--primary);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(36, 107, 253, 0.35);
  font-size: 26px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  overflow-x: hidden;
  background: rgba(18, 27, 39, 0.45);
}
.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  margin: 0 auto;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background: white;
  border-radius: 22px 22px 0 0;
}
.modal-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title h2 { margin: 0; font-size: 18px; }
.close-btn { width: 34px; height: 34px; color: var(--muted); background: var(--bg); border-radius: 50%; }

.leave-confirm-modal {
  z-index: 160;
  align-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.46);
}

.leave-confirm-panel {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 34px 34px 30px;
  text-align: center;
  background: white;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.leave-confirm-panel h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.leave-confirm-panel p {
  margin: 0 0 34px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.6;
}

.leave-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.leave-stay-btn {
  color: #334155;
  background: #eef2f7;
}

.leave-exit-btn {
  border-radius: 13px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-entry {
  position: relative;
  min-height: 104px;
  padding: 14px;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.finance-entry strong { display: block; margin-bottom: 7px; overflow-wrap: anywhere; font-size: 15px; }
.finance-entry span { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.45; }
.finance-entry em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: var(--warning);
  font-style: normal;
  font-size: 11px;
}
.finance-entry.disabled { opacity: 0.72; }

.module-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-menu-item {
  min-height: 92px;
  padding: 12px 8px;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.module-menu-item strong { display: block; margin-bottom: 8px; overflow-wrap: anywhere; font-size: 14px; }
.module-menu-item span { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.module-menu-item.disabled { opacity: 0.62; }

.module-menu-item:not(.disabled):active,
.finance-entry:not(.disabled):active {
  transform: translateY(1px);
}

.small-panel { max-height: 62vh; }
.more-menu { display: grid; gap: 10px; }
.more-menu button {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  color: var(--ink);
  background: #f8fafc;
  border-radius: 12px;
  font-weight: 700;
}
.more-menu .disabled { color: var(--muted); opacity: 0.65; }
.more-menu span { color: var(--warning); font-size: 12px; font-weight: 400; }
.more-menu .copy-order-action {
  color: #246bfd;
  background: #edf4ff;
  border-color: #8eafff;
}
.more-menu .copy-order-action span { color: #71809a; }

.approval-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 6px auto 14px;
  overflow: hidden;
  border: 1px solid var(--primary);
  border-radius: 12px;
}

.approval-switch button {
  min-height: 42px;
  color: var(--primary);
  background: white;
}

.approval-switch .active { color: white; background: var(--primary); }
.approval-tabs { display: flex; gap: 18px; margin-bottom: 14px; overflow-x: auto; }
.approval-tabs button {
  flex: 0 0 auto;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
}
.approval-tabs .active { color: var(--primary); border-bottom-color: var(--primary); }

.receipt-preview { background: #f1f3f6; }
.receipt-paper { position: relative; padding: 12px; background: white; border: 1px solid #d9dee7; border-radius: 12px; }
.receipt-return-stamp { position: absolute; top: 10px; right: 12px; color: #d71920; font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.sales-return-card { border: 1px solid #fecaca; background: #fffafa; }
.sales-return-card .return-title { color: #b91c1c; }
.sales-return-badge { color: #b91c1c; background: #fee2e2; }
.receipt-brand { margin: 2px 0 2px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.receipt-subtitle { margin-bottom: 10px; text-align: center; color: #4b5563; font-size: 13px; }
.receipt-meta { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; color: #374151; font-size: 11px; }
.receipt-table { margin: 12px 0; overflow: hidden; background: white; border: 1px solid #cfd6e1; border-radius: 8px; }
.receipt-row { display: grid; grid-template-columns: minmax(72px, 1.25fr) minmax(96px, 1.45fr) minmax(42px, 0.55fr) minmax(42px, 0.55fr) minmax(52px, 0.65fr); border-bottom: 1px solid #dfe4eb; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span { padding: 7px 5px; border-right: 1px solid #dfe4eb; font-size: 10px; word-break: break-all; }
.receipt-row span:last-child { border-right: 0; }
.receipt-row small { display: block; margin-top: 3px; color: var(--muted); }
.receipt-head { color: #4b5563; background: #f0f3f7; font-weight: 700; }
.receipt-summary { margin-top: 8px; font-size: 13px; font-weight: 700; }
.receipt-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  padding: 8px 0;
  border-top: 1px solid #dfe4eb;
  border-bottom: 1px solid #dfe4eb;
  font-size: 11px;
  font-weight: 700;
}
.receipt-footer { margin-top: 9px; color: #374151; font-size: 11px; }

.receipt-piece-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(16px, 1fr));
  gap: 3px;
}

.receipt-piece-grid b {
  display: grid;
  min-height: 24px;
  place-items: center;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 500;
}

.receipt-image-wrap {
  display: grid;
  gap: 10px;
}

.receipt-image-wrap img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid #dfe4eb;
  border-radius: 14px;
  background: white;
  -webkit-touch-callout: default;
  user-select: auto;
}

.receipt-image-panel {
  max-width: 100vw;
}

.receipt-image-landscape {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.receipt-image-landscape img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: 72vh;
  min-width: min(920px, 2052px);
}

.statement-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d7dde6;
}

.statement-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(56px, auto);
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

button.statement-row {
  width: 100%;
  text-align: left;
  background: transparent;
}

.statement-row.clickable {
  padding: 6px;
  border-radius: 10px;
}

.statement-row.clickable:active {
  background: var(--primary-soft);
}

.statement-card {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.statement-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.statement-row.detail {
  grid-template-columns: 64px minmax(0, 1fr) minmax(54px, auto) minmax(62px, auto);
  align-items: start;
}

.statement-row em {
  display: block;
  margin-top: 2px;
  color: #9aa3af;
  font-style: normal;
}

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

.report-summary-grid div {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.report-summary-grid strong { display: block; font-size: 17px; }
.report-summary-grid span { color: var(--muted); font-size: 11px; }

.customer-compensation-panel {
  max-width: 620px;
}

.compensation-supplier-list {
  display: grid;
  gap: 10px;
}

.compensation-supplier-row {
  border-color: #fed7aa;
  background: #fffaf3;
}

.compensation-profit-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.compensation-profit-card .total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.compensation-profit-card .danger,
.compensation-card .danger {
  color: var(--danger);
}

.compensation-card {
  border-left: 4px solid #f59e0b;
}

.compensation-card .badge {
  margin-right: 4px;
}

.compensation-card .badge.danger {
  background: #fff1f2;
  color: #e11d48;
}
.report-section { margin-top: 16px; }
.report-section h3 { margin: 0 0 8px; font-size: 15px; }
.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(54px, auto) minmax(54px, auto) minmax(54px, auto);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.statement-row span,
.statement-row strong,
.report-row span,
.report-row strong,
.report-summary-grid div {
  overflow-wrap: anywhere;
}
.report-row strong { color: var(--primary); }

.sales-stat-filter { margin-bottom: 12px; }
.sales-stat-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.sales-stat-table {
  margin-top: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.sales-stat-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: auto;
  scrollbar-width: thin;
}
.sales-stat-scroll::-webkit-scrollbar {
  height: 6px;
}
.sales-stat-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.sales-stat-head,
.sales-stat-row {
  display: grid;
  grid-template-columns: 104px 180px 118px 82px 58px 104px 72px 84px 90px;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  width: 934px;
  min-width: 934px;
}
.sales-stat-head {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 700;
}
.sales-stat-row:last-child { border-bottom: 0; }
button.sales-stat-row {
  width: 934px;
  color: inherit;
  text-align: left;
  background: white;
  touch-action: auto;
}
button.sales-stat-row.clickable:active {
  background: var(--primary-soft);
}
.sales-stat-row span,
.sales-stat-row strong {
  min-width: 0;
  overflow-wrap: break-word;
}
.sales-stat-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sales-stat-row em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.sales-stat-row strong {
  color: #111827;
  text-align: right;
}
.sales-stat-row span:nth-child(7),
.sales-stat-row span:nth-child(8),
.sales-stat-row span:nth-child(9) {
  font-size: 11px;
}
.sales-stat-note {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sales-stat-scroll-tip {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  background: #fbfdff;
}

.statement-row span:last-child {
  color: #111827;
  font-weight: 700;
}

.audit-danger {
  border-left: 4px solid var(--danger);
}

.audit-warning {
  border-left: 4px solid var(--warning);
}
.audit-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.audit-toolbar .btn { width: auto; min-height: 38px; padding: 8px 12px; }
.audit-issue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audit-issue-head .list-title { flex: 1; }
.audit-read-btn { flex: 0 0 auto; border: 1px solid #d7c7a6; border-radius: 999px; background: #fff; color: #8a5a16; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.audit-read { opacity: .68; background: #f7f7f5; border-color: #deded9; }
.audit-read .audit-read-btn { color: #666; border-color: #ccc; }

.toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  color: white;
  background: rgba(22, 30, 42, 0.92);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.2s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.app-operation-layer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .28);
}

.app-operation-card {
  width: min(100%, 310px);
  padding: 24px 20px 20px;
  text-align: center;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .24);
}

.app-operation-card strong,
.app-operation-card small {
  display: block;
}

.app-operation-card strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: 16px;
}

.app-operation-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: app-operation-spin .8s linear infinite;
}

.app-operation-slow {
  margin-top: 12px;
  color: #8a5a16;
  font-size: 13px;
}

.app-operation-card small {
  margin-top: 5px;
  color: var(--muted);
}

.cloud-connection-banner {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 185;
  display: flex;
  width: min(100%, 560px);
  min-height: calc(48px + env(safe-area-inset-top));
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7c4a03;
  background: #fff4cf;
  border-bottom: 1px solid #f1d277;
  box-shadow: 0 7px 18px rgba(92, 60, 8, .14);
}

.cloud-connection-banner strong,
.cloud-connection-banner span {
  display: block;
}

.cloud-connection-banner strong { font-size: 13px; }
.cloud-connection-banner span { margin-top: 2px; font-size: 11px; opacity: .82; }
.cloud-connection-banner button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #7c4a03;
  background: white;
  border: 1px solid #dfbd55;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.customer-owner-save-error {
  margin-top: 10px;
  padding: 10px 12px;
  color: #a83232;
  background: #fff1f1;
  border: 1px solid #f3c7c7;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

@keyframes app-operation-spin {
  to { transform: rotate(360deg); }
}

.receipt-image-panel {
  max-height: 96vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.receipt-sticky-title {
  position: sticky;
  top: 0;
  z-index: 4;
  padding-bottom: 8px;
  background: white;
}

.receipt-image-landscape img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  -webkit-touch-callout: default;
  user-select: auto;
}

.ios-receipt-tip {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.ios-receipt-tip strong {
  color: #9a3412;
  font-size: 14px;
}

.income-sheet {
  padding: 0 0 calc(72px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.income-tabs {
  display: flex;
  gap: 24px;
  padding: 0 14px 10px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.income-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 4px 0 9px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.income-tab.active { color: var(--primary); font-weight: 800; }
.income-tab.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  content: "";
}

.income-form {
  background: white;
}

.income-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.income-row label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.income-row label.required::before {
  margin-right: 2px;
  color: var(--danger);
  content: "*";
}

.income-row .input,
.income-row .select {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.income-row .input:focus,
.income-row .select:focus {
  outline: none;
  box-shadow: none;
}

.income-row .select {
  appearance: none;
  -webkit-appearance: none;
}

.income-side {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.income-arrow {
  color: var(--muted);
  font-size: 20px;
}

.income-spacer {
  height: 10px;
  background: var(--bg);
}

.income-preview-total {
  margin: 14px;
  padding: 13px 14px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.income-preview-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.income-preview-total strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
}

.income-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
}

.customer-statement-panel {
  padding-top: 12px;
  background: var(--bg);
}

.customer-statement-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.customer-statement-search.single {
  display: block;
  margin: 12px 0;
}

.customer-statement-card {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.customer-statement-card:active {
  transform: translateY(1px);
  background: var(--primary-soft);
}

.blue-report-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  margin: -12px -12px 0;
  padding: calc(10px + env(safe-area-inset-top)) 10px 12px;
  color: white;
  background: var(--primary);
}

.blue-report-title h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.blue-back,
.blue-icon {
  min-height: 36px;
  color: white;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.blue-icon {
  font-size: 24px;
}

.statement-detail-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.statement-detail-filter strong {
  color: var(--ink);
}

.statement-detail-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.statement-detail-hero div {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.statement-detail-hero span,
.statement-ledger-row em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.statement-detail-hero strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.statement-ledger-head,
.statement-ledger-row {
  display: grid;
  grid-template-columns: 86px 70px minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
}

.statement-ledger-head {
  padding: 12px 14px;
  color: var(--muted);
  background: white;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
}

.statement-ledger-list {
  margin-bottom: 58px;
  background: white;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.statement-ledger-row {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
  background: white;
  border-top: 1px solid var(--line);
}

.statement-ledger-row.clickable:active {
  background: var(--primary-soft);
}

.statement-ledger-row b {
  font-size: 13px;
}

.statement-ledger-row strong {
  text-align: right;
  font-size: 15px;
}

.ledger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 7px;
  color: #188da5;
  background: #d8fbff;
  border-radius: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.ledger-badge.pay {
  color: var(--primary);
  background: var(--primary-soft);
}

.ledger-badge.adjust {
  color: var(--muted);
  background: #f3f6fa;
}

.ledger-badge.refund {
  color: #ef4444;
  background: #fee2e2;
}

.statement-bottom-total {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -12px calc(-14px - env(safe-area-inset-bottom));
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.statement-bottom-total strong {
  color: var(--ink);
}

.product-analysis-panel {
  max-width: 700px;
  padding: 0;
  background: var(--bg);
}

.product-analysis-hero {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #2c7df7, #33c7e8);
}

.product-analysis-title {
  margin: 0;
  padding-right: 16px;
  padding-left: 16px;
  background: transparent;
}

.blue-filter {
  color: white;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.product-analysis-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 20px 16px 0;
  text-align: center;
}

.product-analysis-summary span,
.product-analysis-summary em {
  display: block;
  color: rgba(255,255,255,.86);
  font-style: normal;
  font-size: 13px;
}

.product-analysis-summary strong {
  display: block;
  margin: 8px 0 8px;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 600;
}

.product-analysis-hero .wave {
  position: absolute;
  right: -40px;
  bottom: -22px;
  left: -40px;
  height: 74px;
  background: rgba(255,255,255,.72);
  border-radius: 50% 50% 0 0;
}

.product-analysis-hero .wave.two {
  bottom: -34px;
  transform: translateX(70px);
  background: rgba(255,255,255,.88);
}

.product-analysis-body {
  padding: 12px 0 18px;
}

.product-analysis-search {
  padding: 0 12px;
}

.product-analysis-date {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 16px 18px;
  text-align: left;
  color: var(--ink);
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-analysis-date span {
  font-size: 16px;
}

.product-analysis-date strong {
  font-size: 15px;
  font-weight: 500;
}

.product-analysis-date b {
  color: var(--primary);
  font-size: 20px;
}

.product-analysis-filter {
  margin: 10px 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-analysis-filter.hidden {
  display: none;
}

.product-analysis-head,
.product-analysis-row {
  display: grid;
  grid-template-columns: minmax(88px, 1.1fr) minmax(74px, .8fr) minmax(96px, 1fr) minmax(96px, 1fr);
  align-items: center;
  gap: 8px;
}

.product-analysis-head {
  margin-top: 10px;
  padding: 14px 12px;
  color: #374151;
  background: #f1f4fa;
  font-size: 15px;
}

.product-analysis-list {
  background: white;
}

.product-analysis-row {
  min-height: 82px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

button.product-analysis-row {
  width: 100%;
  text-align: left;
  background: white;
}

.product-analysis-row.clickable:active {
  background: var(--primary-soft);
}

.product-analysis-panel.hide-profit .product-analysis-head,
.product-analysis-panel.hide-profit .product-analysis-row {
  grid-template-columns: minmax(88px, 1.1fr) minmax(74px, .8fr) minmax(96px, 1fr);
}

.product-analysis-panel.hide-profit .product-analysis-summary > div:last-child,
.product-analysis-panel.hide-profit .product-analysis-head > span:last-child,
.product-analysis-panel.hide-profit .product-analysis-row > span:last-child {
  display: none;
}

.product-analysis-row span {
  min-width: 0;
}

.product-analysis-row b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.product-analysis-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.product-name-cell {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.product-name-cell em {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
}

.product-analysis-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding: 14px 20px 0;
  background: white;
}

.product-analysis-tabs button {
  position: relative;
  padding: 12px 4px 18px;
  color: #a3aab5;
  background: transparent;
  font-size: 17px;
}

.product-analysis-tabs button.active {
  color: var(--ink);
  font-weight: 700;
}

.product-analysis-tabs button.active::after {
  position: absolute;
  right: 36%;
  bottom: 0;
  left: 36%;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  content: "";
}

.product-order-card {
  width: 100%;
  text-align: left;
  color: var(--ink);
}

.auth-shell {
  background: #f3f6fb;
}

.auth-hero {
  min-height: 230px;
  padding: calc(34px + env(safe-area-inset-top)) 26px 86px;
  color: white;
  background: linear-gradient(135deg, #1d7cff, #26c4f7);
}

.auth-hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: 2px;
}

.auth-hero p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 15px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  margin: -64px auto 0;
  padding: 22px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(25, 72, 160, .16);
}

.account-sync-spinner {
  width: 34px;
  height: 34px;
  margin: 18px auto 0;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: app-operation-spin .8s linear infinite;
}

.auth-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #ef4444;
  background: #fff1f2;
  border-radius: 12px;
  font-size: 13px;
}

.auth-defaults {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.auth-defaults strong {
  color: var(--ink);
  font-size: 13px;
}

.setting-list-panel {
  padding: 0;
  background: #f4f6fb;
}

.setting-list-panel > .modal-title {
  padding: 18px;
  background: white;
}

.setting-current-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  margin: 12px;
  padding: 16px;
  background: white;
  border-radius: 18px;
}

.setting-current-user strong {
  font-size: 20px;
}

.setting-current-user span {
  color: var(--muted);
  font-size: 13px;
}

.setting-current-user button {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}

.setting-section-title,
.permission-block-title {
  padding: 14px 18px 9px;
  color: #8b94a3;
  font-size: 14px;
}

.setting-menu {
  background: white;
}

.setting-menu button,
.role-row,
.org-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: white;
  border-bottom: 1px solid var(--line);
}

.setting-menu b,
.role-row b,
.org-member b {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.setting-menu span,
.role-row em,
.org-member em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.setting-menu i,
.role-row i {
  color: #b8c0cc;
  font-style: normal;
}

.blue-title-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 86px;
  align-items: center;
  min-height: 58px;
  padding-top: env(safe-area-inset-top);
  color: white;
  background: #2f86ff;
}

.blue-title-bar h2 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.blue-title-bar button {
  color: white;
  background: transparent;
  font-size: 15px;
}

.blue-title-bar button:disabled {
  color: rgba(255,255,255,.45);
}

.blue-back {
  font-size: 34px !important;
}

.org-company {
  padding: 22px 24px;
  background: white;
}

.org-company h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.org-company span {
  display: inline-flex;
  padding: 6px 10px;
  color: #ff8a1f;
  background: #fff3e5;
  border-radius: 999px;
  font-size: 13px;
}

.org-tree,
.role-list {
  padding: 12px;
}

.org-dept,
.editor-card,
.permission-card {
  margin-bottom: 12px;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}

.org-dept-title {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.org-dept-title strong {
  font-size: 18px;
}

.org-dept-title span,
.org-member i {
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
}

.org-member i.off {
  color: #ef4444;
}

.empty-line {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
}

.editor-card {
  padding: 0;
}

.editor-card h3 {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 17px;
}

.form-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.form-line label {
  color: #667085;
}

.form-line input,
.form-line select {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.required {
  color: #ef4444;
}

.weekday-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 10px 18px 16px;
}

.day-pill input {
  display: none;
}

.day-pill span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: #eef5ff;
  border-radius: 50%;
}

.day-pill input:checked + span {
  color: white;
  background: var(--primary);
}

.role-check-list label,
.permission-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.role-check-list b {
  display: block;
  font-size: 16px;
}

.role-check-list em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.permission-card h3 {
  margin: 0;
  padding: 14px 18px;
  color: var(--primary);
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.permission-grid label {
  min-height: 54px;
  padding: 12px 14px;
}

@media (min-width: 700px) {
  body { padding: 20px 0; }
  .app-shell { min-height: calc(100vh - 40px); border-radius: 22px; box-shadow: 0 18px 60px rgba(25, 42, 70, 0.12); overflow: hidden; }
  .bottom-nav { bottom: 20px; border-radius: 0 0 22px 22px; }
}

@media (max-width: 430px) {
  .page-header { min-height: 46px; padding: calc(7px + env(safe-area-inset-top)) 12px 7px; }
  .page-header h1 { font-size: 16px; }
  .content { padding: 10px; }
  .home-hero { min-height: 272px; padding: 20px 18px 0; }
  .home-hero h1 { margin-top: 14px; font-size: 28px; }
  .home-setting { top: 20px; right: 18px; font-size: 28px; }
  .todo-panel { right: 18px; left: 18px; bottom: -78px; }
  .todo-item { min-height: 140px; padding: 18px 4px 14px; gap: 7px; }
  .todo-item strong { font-size: 17px; }
  .todo-item span { font-size: 12px; }
  .todo-item b { font-size: 32px; }
  .todo-item em { font-size: 15px; }
  .home-hero + .content { padding-top: 104px; }
  .module-grid { gap: 10px; padding: 12px 4px 28px; }
  .module-item { gap: 8px; }
  .module-item span { width: 58px; height: 58px; border-radius: 17px; font-size: 21px; }
  .module-item strong { font-size: 15px; }
  .home-board-card { padding: 18px 12px 14px; }
  .home-board-title { align-items: flex-start; }
  .home-board-title h2 { font-size: 19px; }
  .home-board-title div { gap: 12px; font-size: 14px; }
  .board-card strong { font-size: 14px; }
  .board-card span { font-size: 11px; }
  .quick-grid,
  .billing-summary-grid,
  .order-stat-grid,
  .module-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .finance-grid { gap: 8px; }
  .finance-entry { min-height: 92px; padding: 11px 10px; }
  .module-menu-item { min-height: 82px; padding: 10px 7px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .piece-grid { gap: 3px; }
  .piece-input { min-height: 32px; padding: 3px 1px; font-size: 11px; }
  .piece-tools { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .order-actions { flex-wrap: wrap; }
  .order-actions .link-btn { margin-left: 0; }
  .action-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; }
  .modal-panel { max-height: 94vh; padding-right: 10px; padding-left: 10px; }
  .receipt-paper { padding: 8px; border-radius: 10px; }
  .receipt-brand { font-size: 18px; letter-spacing: 2px; }
  .receipt-meta { flex-wrap: wrap; gap: 4px 8px; }
  .receipt-row {
    grid-template-columns: minmax(48px, 1.15fr) minmax(68px, 1.35fr) minmax(30px, 0.55fr) minmax(30px, 0.55fr) minmax(38px, 0.65fr);
  }
  .receipt-row span { padding: 6px 3px; font-size: 9px; }
  .receipt-piece-grid { gap: 2px; }
  .receipt-piece-grid b { min-height: 20px; font-size: 8px; }
  .statement-row { grid-template-columns: 58px minmax(0, 1fr) minmax(48px, auto); gap: 6px; }
  .statement-row.detail { grid-template-columns: 56px minmax(0, 1fr); }
  .statement-row.detail span:nth-child(3),
  .statement-row.detail strong {
    grid-column: 2;
    text-align: left;
  }
  .statement-totals { grid-template-columns: minmax(0, 1fr); }
  .report-row { grid-template-columns: minmax(0, 1fr) minmax(64px, auto); }
  .report-row span:nth-child(3),
  .report-row strong {
    grid-column: 2;
    text-align: right;
  }
  .amount { max-width: 36vw; font-size: 15px; }
}

.supplier-analysis-panel {
  max-width: 620px;
  padding: 0;
  background: #f5f7fb;
}

.supplier-analysis-hero {
  padding-bottom: 18px;
  color: white;
  background: linear-gradient(150deg, #1768e9 0%, #2f88f7 58%, #62a9ff 100%);
}

.supplier-analysis-summary {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 10px;
  padding: 10px 14px 0;
}

.supplier-analysis-summary > div {
  min-width: 0;
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(5, 64, 166, .13);
}

.supplier-analysis-summary span,
.supplier-analysis-summary strong {
  display: block;
}

.supplier-analysis-summary span {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
}

.supplier-analysis-summary strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 700;
}

.supplier-analysis-body {
  padding: 14px 0 18px;
}

.supplier-analysis-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 12px 12px;
}

.supplier-analysis-search .btn {
  min-width: 70px;
}

.supplier-analysis-date {
  background: white;
  border-top: 1px solid var(--line);
}

.supplier-analysis-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px 10px;
}

.supplier-analysis-caption strong {
  font-size: 16px;
}

.supplier-analysis-caption span {
  color: var(--muted);
  font-size: 12px;
}

.supplier-analysis-list {
  overflow: hidden;
  margin: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.supplier-analysis-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.supplier-analysis-row:last-child {
  border-bottom: 0;
}

.supplier-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #64748b;
  background: #eef2f7;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.supplier-rank.top-1 { color: #8a5600; background: #ffd968; }
.supplier-rank.top-2 { color: #52606d; background: #dbe3ec; }
.supplier-rank.top-3 { color: #8a4a21; background: #f4c29d; }

.supplier-analysis-name,
.supplier-analysis-amount {
  min-width: 0;
}

.supplier-analysis-name strong,
.supplier-analysis-amount strong,
.supplier-analysis-name em,
.supplier-analysis-amount em {
  display: block;
}

.supplier-analysis-name strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-analysis-name em,
.supplier-analysis-amount em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.supplier-analysis-amount {
  text-align: right;
}

.supplier-analysis-amount strong,
.supplier-analysis-amount em {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.supplier-analysis-amount strong {
  font-size: 16px;
}

.supplier-analysis-amount strong span,
.supplier-analysis-amount em span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.supplier-analysis-amount strong b {
  color: #1768e9;
  font-size: 16px;
}

.supplier-analysis-amount em b {
  font-size: 13px;
  font-style: normal;
}

.supplier-analysis-note {
  margin: 12px 14px 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 520px) {
  .supplier-analysis-summary {
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .supplier-analysis-summary > div {
    padding: 13px 7px;
  }

  .supplier-analysis-summary strong {
    font-size: 16px;
  }

  .supplier-analysis-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(132px, auto);
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .supplier-analysis-amount strong,
  .supplier-analysis-amount strong b {
    font-size: 14px;
  }
}

/* v98：容胜自有企业视觉。仅覆盖颜色、边框和质感，不改变现有布局与点击位置。 */
:root {
  --primary: #0f9f94;
  --primary-dark: #0b7d75;
  --primary-soft: #e8f7f4;
  --ink: #102a43;
  --muted: #667b8d;
  --line: #dbe4ea;
  --bg: #f2f6f8;
  --card: #ffffff;
  --danger: #dc4c55;
  --success: #14856f;
  --warning: #d8871c;
  --shadow: 0 7px 22px rgba(16, 42, 67, 0.075);
  --navy: #102a43;
  --navy-deep: #0b2238;
  --teal: #0f9f94;
}

html,
body,
.app-shell {
  background: var(--bg);
}

.app-shell {
  border-color: rgba(16, 42, 67, 0.08);
}

.page-header {
  color: white;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(11, 34, 56, 0.16);
  backdrop-filter: none;
}

.page-header .sub {
  color: rgba(255, 255, 255, 0.68);
}

.header-action {
  padding: 7px 10px;
  color: white;
  background: rgba(15, 159, 148, 0.92);
  border-radius: 8px;
  font-weight: 700;
}

.home-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 159, 148, 0.2), transparent 34%),
    linear-gradient(135deg, #0b2b49 0%, #123b61 100%);
}

.home-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.home-setting {
  width: auto;
  min-width: 44px;
  height: 34px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.todo-panel {
  border: 1px solid rgba(16, 42, 67, 0.06);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(16, 42, 67, 0.16);
}

.todo-item {
  border-right-color: var(--line);
}

.todo-item span {
  color: #91a0ae;
}

.todo-item em {
  color: var(--primary);
}

.module-item span {
  background: linear-gradient(145deg, #155078, #0f9f94);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.16);
}

.module-finance span {
  background: linear-gradient(145deg, #123b61, #176b76);
}

.module-warehouse span {
  background: linear-gradient(145deg, #194d70, #277f83);
}

.module-analysis span {
  background: linear-gradient(145deg, #0f3555, #1b6b75);
}

.home-board-card,
.board-card,
.quick-item,
.stat-card,
.card,
.list-card,
.form-card,
.statement-card,
.report-summary-grid div,
.supplier-analysis-list {
  border: 1px solid rgba(205, 218, 226, 0.86);
  box-shadow: var(--shadow);
}

.home-board-card,
.list-card,
.form-card,
.statement-card,
.supplier-analysis-list {
  border-radius: 12px;
}

.board-card,
.quick-item,
.stat-card,
.report-summary-grid div {
  border-radius: 10px;
}

.home-board-title h2::before {
  width: 4px;
  background: var(--primary);
}

.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #13516a 58%, var(--teal) 100%);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.18);
}

.input,
.select,
.textarea {
  background: #fbfcfd;
  border-color: #d7e1e7;
  border-radius: 8px;
}

.input:focus,
.select:focus,
.textarea:focus,
.piece-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 159, 148, 0.11);
}

.piece-input {
  border-color: #cfdce3;
}

.product-line,
.accounting-goods-panel {
  background: #f7fafb;
  border-color: #d8e4e9;
}

.accounting-goods-head {
  background: var(--primary-soft);
}

.btn,
.add-product,
.chip,
.draft-maker-chip,
.more-btn,
.close-btn {
  border-radius: 8px;
}

.btn-primary {
  background: var(--primary);
  box-shadow: 0 5px 14px rgba(15, 159, 148, 0.18);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  color: #176b75;
  border-color: #9fcfc9;
}

.btn-danger-soft {
  color: var(--danger);
  background: #fff5f5;
  border-color: #f1bdc1;
}

.add-product {
  border-color: #86c8c1;
}

.badge {
  color: #0d756e;
  background: var(--primary-soft);
}

.draft-badge {
  color: #a6630b;
  background: #fff5e5;
}

.debt-badge {
  color: var(--danger);
  background: #fff1f2;
}

.paid-badge {
  color: var(--success);
  background: #e9f7f1;
}

.order-stat-grid span,
.billing-summary-grid span {
  background: #f5f8fa;
  border: 1px solid #e5ecef;
}

.order-actions {
  border-top-color: #e2e9ed;
}

.draft-order-actions {
  gap: 8px;
}

.draft-order-actions .btn {
  min-height: 38px;
}

.chip.active {
  color: #0d756e;
  background: var(--primary-soft);
}

.draft-maker-chip.active {
  color: white;
  background: var(--primary);
}

.date-preset-panel,
.action-bar {
  background: rgba(242, 246, 248, 0.96);
}

.bottom-nav {
  border-top-color: #dbe4ea;
  box-shadow: 0 -5px 18px rgba(16, 42, 67, 0.055);
}

.nav-item {
  color: #7a8b99;
}

.nav-item.active {
  color: var(--primary);
}

.modal {
  background: rgba(7, 24, 39, 0.52);
}

.modal-panel {
  background: #fbfcfd;
  box-shadow: 0 -16px 44px rgba(7, 24, 39, 0.2);
}

.finance-entry,
.module-menu-item {
  border-color: #d8e3e8;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(16, 42, 67, 0.06);
}

.finance-entry::before,
.module-menu-item::before {
  content: "";
  display: block;
  width: 3px;
  height: 18px;
  margin-bottom: 8px;
  background: var(--primary);
  border-radius: 99px;
}

.auth-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 159, 148, 0.2), transparent 36%),
    linear-gradient(135deg, var(--navy-deep), #123b61);
}

.auth-card {
  border: 1px solid rgba(205, 218, 226, 0.9);
  box-shadow: 0 16px 38px rgba(16, 42, 67, 0.14);
}

.fab {
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 159, 148, 0.28);
}

.receipt-head {
  color: var(--navy);
  background: #edf3f5;
}

.more-menu .copy-order-action {
  color: #0f6f71;
  background: var(--primary-soft);
  border-color: #8dcac4;
}
