:root {
  --brand-dark: #020A24;
  --brand-cyan: #10BFD3;
  --brand-red: #E4002B;
  --text-primary: #171714;
  --text-secondary: #6B7280;
  --bg-page: #F5F7FA;
  --bg-white: #FFFFFF;
  --border-light: #E5E7EB;
  --border-input: #D8DEE8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --radius-sm: 6px;
  --radius-md: 8px;
  --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "Inter", "SF Mono", "Menlo", monospace;
  color-scheme: light;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-page);
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--bg-page); }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

/* ===== 侧边栏 ===== */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--brand-dark);
  color: #eef5ff;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.brand-logo {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-logo img { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; background: #fff; }

.brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}
.brand-text small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
  letter-spacing: 1px;
}

/* 导航分组 */
.nav-group {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

nav { display: flex; flex-direction: column; padding: 0 8px; }

nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
nav a.active {
  background: rgba(16, 191, 211, 0.12);
  color: var(--brand-cyan);
  font-weight: 600;
}

.nav-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  font-size: 14px;
}

/* ===== 工作区 ===== */
.workspace { padding: 24px 28px; overflow: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-page);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.topbar h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.topbar p { margin: 0; color: var(--text-secondary); font-size: 13px; max-width: 600px; line-height: 1.6; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.topbar-date { font-size: 13px; color: var(--text-secondary); }
.topbar-env {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 191, 211, 0.1);
  color: var(--brand-cyan);
}

/* ===== 通用组件 ===== */
h1, h2, h3, p { margin-top: 0; }
.page-section { display: none; }
.page-section.active { display: grid; gap: 16px; }

.panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.panel-title {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.panel-title h2 { margin: 0; font-size: 17px; font-weight: 700; }
.panel-title span { font-size: 12px; color: var(--text-secondary); }

.form-panel { padding: 20px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-section {
  padding: 16px;
  background: #fafbfc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.form-section h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.form-section h4::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
}

input, select, textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 191, 211, 0.1);
}
input[readonly] { background: #f9fafb; color: var(--text-secondary); }
textarea { min-height: 80px; resize: vertical; }

/* ===== 按钮 ===== */
button.primary, .primary {
  padding: 10px 20px;
  background: var(--brand-cyan);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s;
}
button.primary:hover { background: #0ea5bb; box-shadow: 0 2px 8px rgba(16,191,211,0.3); }

.small-button, .link-button {
  min-height: 34px; padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border-light);
  color: var(--text-primary); font-weight: 600; font-size: 13px;
  transition: all 0.15s;
}
.small-button:hover { background: #f9fafb; border-color: #d0d5dd; }

.text-danger-button, .danger-outline-button {
  min-height: 32px; padding: 6px 10px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
}
.text-danger-button { background: #fef2f2; color: var(--brand-red); border: 0; }
.text-danger-button:hover { background: #fee2e2; }
.danger-outline-button {
  border: 1px solid #fca5a5; background: #fef2f2; color: var(--brand-red);
}
.danger-outline-button:hover { background: #fee2e2; }

/* ===== 状态标签 ===== */
.status-pill {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(16,191,211,0.1); color: var(--brand-cyan);
}
.status-pill.done { background: #ecfdf5; color: #059669; }
.status-pill.warn { background: #fef2f2; color: var(--brand-red); }

[1599 more lines in file — use offset=301 to continue.]
/* ===== 状态类 ===== */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; font-size: 13px; }
.meta span { min-width: 0; overflow-wrap: anywhere; color: var(--text-secondary); }
.order-actions { display: flex; gap: 8px; margin-top: 10px; }
.order-actions .danger-outline-button { font-size: 12px; }
.finance-form, .review-box {
  margin-top: 12px; padding: 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: #fafbfc;
}
.finance-form textarea { min-height: 70px; }
.review-box strong { display: block; margin-bottom: 8px; }
.private-rebate-fields[hidden] { display: none; }
.private-rebate-fields.is-visible { display: grid; }
.ocr-fallback { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fafbfc; }
.ocr-fallback[hidden] { display: none; }
.ocr-fallback textarea { min-height: 86px; }

.receipt-preview {
  display: grid; gap: 10px; margin-top: 12px; padding: 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fafbfc;
}
.receipt-image { width: 180px; height: 120px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); object-fit: cover; }

.reuse-panel { padding: 14px; background: #f9fafb; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.reuse-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.reuse-head strong { font-size: 14px; }
.reuse-head span { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.history-results { margin-top: 8px; display: grid; gap: 8px; }
.history-card { padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all 0.15s; }
.history-card:hover { border-color: var(--brand-cyan); box-shadow: 0 0 0 2px rgba(16,191,211,0.1); }
.parse-tools { display: flex; align-items: center; gap: 10px; }
.parse-hint { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }
.parse-hint.warn { color: var(--brand-red); }
.parse-hint.ok { color: #059669; }

.hint { margin: 6px 0 0; font-size: 12px; color: var(--text-secondary); }
.empty { padding: 32px 20px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.empty.compact { padding: 20px; font-size: 13px; }

.order-list { display: grid; gap: 12px; }
.order-card { padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; }
.order-card .meta { margin: 8px 0; }
.order-card .card-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.order-status-bar {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.order-status-chip {
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: #f3f4f6; color: var(--text-secondary); cursor: pointer; border: 1px solid transparent; transition: all 0.15s;
}
.order-status-chip:hover { border-color: #d0d5dd; }
.order-status-chip.active { background: rgba(16,191,211,0.1); color: var(--brand-cyan); border-color: var(--brand-cyan); }

.daily-dashboard { display: grid; gap: 14px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat-card {
  padding: 18px; background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--brand-dark); }
.stat-card .stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-card.warn .stat-value { color: var(--brand-red); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.log-list { display: grid; gap: 8px; }

.supplier-page { display: grid; place-items: center; padding: 24px; }
.supplier-shell { width: min(100%, 720px); }
.receipt-card { margin: 0; }
.summary { display: grid; gap: 8px; margin-bottom: 16px; padding: 14px; border-radius: var(--radius-sm); background: #f3f7fb; color: #3e4e62; }
.simple-upload { display: grid; gap: 10px; padding: 18px; border: 1px dashed #9db1c9; border-radius: var(--radius-sm); background: #f8fbff; cursor: pointer; }
.simple-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.simple-upload strong { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--radius-sm); background: #1f6feb; color: #fff; }
.simple-upload em { color: #64748b; font-style: normal; }

/* ===== 小红书页面 ===== */
.xhs-editor { padding: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fafbfc; }
.xhs-editor h3 { margin: 0 0 12px; font-size: 16px; }
.xhs-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.xhs-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.15s; }
.xhs-tabs button:hover { color: var(--brand-cyan); }
.xhs-tabs button.active { border-bottom-color: var(--brand-cyan); color: var(--brand-cyan); }
.xhs-page { display: none; }
.xhs-page.active { display: grid; gap: 14px; }
.compact-form label { margin-bottom: 10px; }

.xhs-ticket-preview { min-height: 64px; padding: 12px; border-radius: var(--radius-sm); background: #eef4fb; }
.preview-section { margin-bottom: 10px; }
.preview-section:last-child { margin-bottom: 6px; }
.preview-section > strong { display: block; margin-bottom: 4px; font-size: 13px; color: #4a5a72; text-transform: uppercase; letter-spacing: 0.5px; }

.ticket-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.auto-execute-check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--brand-cyan); font-weight: 600; cursor: pointer; user-select: none; }
.auto-execute-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand-cyan); }

.ticket-form { display: grid; gap: 12px; }
.ticket-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ticket-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4a5a72; font-weight: 600; }
.ticket-form input, .ticket-form select, .ticket-form textarea { padding: 8px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); font-size: 14px; background: #fff; }
.ticket-form input:focus, .ticket-form select:focus, .ticket-form textarea:focus { border-color: var(--brand-cyan); outline: none; box-shadow: 0 0 0 2px rgba(16,191,211,0.12); }
.ticket-form input[readonly] { background: #f5f7fa; color: var(--text-secondary); }
.ticket-form textarea { min-height: 60px; resize: vertical; }

.xhs-list { display: grid; gap: 10px; }
.xhs-list-card { padding: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; }

/* 子账户卡片 */
.subaccount-card { display: grid; grid-template-columns: auto 1fr auto; gap: 0; align-items: start; }
.subaccount-check { display: flex; align-items: center; padding: 0 10px 0 2px; cursor: pointer; }
.subaccount-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand-cyan); }
.subaccount-info { min-width: 0; }
.subaccount-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.subaccount-head strong { white-space: nowrap; }
.subaccount-head span { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.subaccount-pricing { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid #eef3f8; margin-left: 12px; flex-shrink: 0; }
.pricing-inline { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-secondary); }
.pricing-inline input { width: 80px; padding: 5px 8px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); font-size: 14px; background: #f8fbff; }
.pricing-inline input:focus { border-color: var(--brand-cyan); outline: none; box-shadow: 0 0 0 2px rgba(16,191,211,0.12); }
.pricing-save { white-space: nowrap; }
.pricing-saved { color: #059669; font-weight: 700; font-size: 16px; }

.subaccount-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fafbfc; }
.subaccount-search { flex: 1; min-width: 220px; padding: 8px 12px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); font-size: 14px; background: #fff; }
.subaccount-search:focus { border-color: var(--brand-cyan); outline: none; box-shadow: 0 0 0 2px rgba(16,191,211,0.12); }
.batch-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.selected-count { font-size: 13px; color: var(--brand-cyan); font-weight: 700; white-space: nowrap; }
.batch-pricing-form { padding: 12px 14px; border: 1px solid #fcd34d; border-radius: var(--radius-sm); background: #fffbeb; }
.batch-pricing-form .form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.batch-pricing-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.batch-pricing-form select, .batch-pricing-form input { padding: 6px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); background: #fff; }

/* 子账户搜索浮层 */
.subaccount-search-combo { position: relative; }
.combo-search { width: 100%; padding: 8px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); font-size: 14px; background: #fff; }
.combo-search:focus { border-color: var(--brand-cyan); outline: none; box-shadow: 0 0 0 2px rgba(16,191,211,0.12); }
.combo-select { position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; max-height: 220px; border: 1px solid var(--border-light); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 13px; background: #fff; overflow-y: auto; box-shadow: var(--shadow-md); }
.combo-select:focus { outline: none; }
.combo-select option { padding: 8px 10px; cursor: pointer; }

/* 结算客户卡片 */
.customer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; cursor: pointer; }
.customer-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef3f8; }
.customer-accounts { display: grid; gap: 6px; margin-bottom: 12px; max-height: 300px; overflow-y: auto; }
.customer-account-row { display: grid; grid-template-columns: 1fr 1fr 0.5fr auto; gap: 8px; align-items: center; padding: 6px 8px; font-size: 13px; background: #f8fafc; border-radius: var(--radius-sm); }
.customer-account-row span { color: #405066; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-account-row select { font-size: 12px; padding: 4px 6px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.subaccount-reassign { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
.subaccount-reassign .reassign-search { flex: 1; max-width: 180px; padding: 3px 6px; font-size: 12px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }

.customer-adjust { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px; background: #fefce8; border: 1px solid #fde68a; border-radius: var(--radius-sm); }
.customer-adjust strong { width: 100%; font-size: 13px; color: #92400e; }
.customer-adjust label { font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 2px; }
.customer-adjust input { padding: 4px 8px; border: 1px solid var(--border-input); border-radius: 4px; width: 120px; }
.customer-add-account { margin-bottom: 12px; padding: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); }
.customer-add-account strong { display: block; margin-bottom: 6px; font-size: 13px; color: #166534; }
.customer-add-search { flex: 1; padding: 4px 8px; font-size: 13px; border: 1px solid var(--border-light); border-radius: 4px; }
.customer-add-select { min-width: 200px; font-size: 13px; }

.add-account-option { display: flex; align-items: center; gap: 8px; padding: 3px 8px; font-size: 13px; cursor: pointer; border-radius: 4px; }
.add-account-option input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--brand-cyan); }
.add-account-option:hover { background: #eef4fb; }
.customer-add-results { max-height: 200px; overflow-y: auto; margin-top: 4px; }

/* 结算客户类型 tab */
.customer-tabs { display: flex; gap: 0; margin-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.customer-tab { padding: 8px 16px; border: 0; background: transparent; color: var(--text-secondary); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.customer-tab.active { border-bottom-color: var(--brand-cyan); color: var(--brand-cyan); }
.customer-type-toggle { font-size: 12px; padding: 2px 4px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; color: var(--text-secondary); }

/* 账户总览 */
.xhs-tree { display: grid; gap: 14px; }
.xhs-customer-card, .xhs-entity-card { border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; }
.xhs-customer-card { padding: 16px; }
.xhs-customer-card .card-head p { margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; }
.xhs-entity-list { display: grid; gap: 10px; margin-top: 12px; }
.xhs-entity-card { padding: 12px; background: #f8fafc; }
.compact-head { margin-bottom: 10px; }
.compact-head span { color: #738196; }
.xhs-account-list { display: grid; gap: 8px; }
.xhs-account-row { display: grid; grid-template-columns: 1.2fr 1.1fr 0.8fr 0.5fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: #fff; color: #405066; font-size: 14px; }

.maintenance-card { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #f1c7c7; border-radius: var(--radius-sm); background: #fffafa; }
.maintenance-card p { margin: 4px 0 0; color: #7a5360; font-size: 13px; }
.maintenance-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }

.ledger-card p { font-size: 12px; color: var(--text-secondary); }
.card-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* 流水金额颜色 */
.amount-plus { color: #059669; }
.amount-minus { color: var(--brand-red); }

/* 响应式 */
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .topbar { position: static; }
  nav { flex-direction: row; flex-wrap: wrap; }
  .nav-group { display: none; }
  nav a { font-size: 12px; padding: 6px 8px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .workspace { padding: 14px; }
  .topbar { display: grid; }
  .form-row, .meta, .summary-cards, .dashboard-row, .history-card, .xhs-layout, .maintenance-card, .xhs-account-row { grid-template-columns: 1fr; }
  .maintenance-actions, .inline-actions { justify-content: flex-start; }
}
.combo-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.combo-dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}
.combo-dropdown-item:hover, .combo-dropdown-item.active {
  background: #eff6ff;
  color: var(--brand-cyan);
}
.ledger-table { width:100%; border-collapse:collapse; font-size:12px; }
.ledger-table th { background:#f8fafc; padding:8px 10px; text-align:left; font-weight:700; color:#4a5a72; border-bottom:2px solid var(--border-light); white-space:nowrap; }
.ledger-table td { padding:7px 10px; border-bottom:1px solid #f3f4f6; white-space:nowrap; }
.ledger-table tr:hover td { background:#f8fafc; }
.grade-SA { background:#FFD700;color:#5c4200;font-weight:700;padding:2px 6px;border-radius:3px; }
.grade-B { background:#22c55e;color:#fff;font-weight:700;padding:2px 6px;border-radius:3px; }
.grade-CD { background:#84cc16;color:#3f6212;font-weight:700;padding:2px 6px;border-radius:3px; }

/* 登录 */
.login-overlay {
  position:fixed;inset:0;z-index:9999;
  background:linear-gradient(135deg, #020A24 0%, #0a1628 50%, #0d2137 100%);
  display:flex;align-items:center;justify-content:center;
}
.login-card {
  background:#fff;border-radius:12px;padding:36px 40px;
  width:380px;max-width:90vw;box-shadow:0 20px 60px rgba(0,0,0,.3);
  text-align:center;
}
.login-brand { margin-bottom:8px; }
.login-card label { display:block;text-align:left;font-size:13px;font-weight:600;color:#4a5a72; }
.login-card input { width:100%;margin-top:4px;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;box-sizing:border-box; }
.login-card input:focus { border-color:var(--brand-cyan);outline:none;box-shadow:0 0 0 3px rgba(16,191,211,.15); }
.login-card button {
  background:var(--brand-dark);color:#fff;border:none;padding:10px 24px;
  border-radius:6px;font-size:15px;font-weight:700;cursor:pointer;
}
.login-card button:hover { background:#0a1a4a; }

/* 模态框 */
.modal-overlay {
  position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.5);
  display:flex;align-items:center;justify-content:center;
}
.modal-card {
  background:#fff;border-radius:10px;padding:24px 28px;
  max-height:85vh;overflow-y:auto;box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.modal-card h3 { margin:0 0 16px;font-size:17px; }
.modal-card label { display:block;font-size:13px;font-weight:600;color:#4a5a72;margin-bottom:2px; }
.modal-card input, .modal-card select { width:100%;padding:7px 10px;border:1px solid #d1d5db;border-radius:5px;font-size:13px;box-sizing:border-box; }
.modal-card button { padding:8px 20px;border:none;border-radius:5px;font-size:14px;font-weight:600;cursor:pointer; }
.modal-card button[type="submit"] { background:var(--brand-dark);color:#fff; }
.modal-card button.secondary { background:#e5e7eb;color:#374151; }

/* 顶部用户区 */
.topbar-user { display:flex;align-items:center;gap:10px; }
.topbar-user .user-name { font-weight:600;font-size:13px; }
.topbar-user .logout-btn { font-size:12px;color:var(--brand-red);cursor:pointer;background:none;border:none;text-decoration:underline; }

