/* ===== 云驿递 Skylink 内部查价系统 - 新版样式 ===== */
:root {
  --navy-900: #0b1221;
  --navy-800: #111b2e;
  --navy-700: #1a2942;
  --navy-600: #253858;
  --primary: #1a2942;
  --primary-light: #2e4a6e;
  --primary-dark: #0b1221;
  --gold: #c79a3b;
  --gold-light: #e8c66a;
  --accent: #c79a3b;
  --accent-light: #e8c66a;
  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 1px 4px rgba(16,20,46,.05);
  --shadow-lg: 0 4px 16px rgba(16,20,46,.1);
  --primary-vivid: #2b6cb0;
  --primary-soft: #ebf8ff;
  --primary-mid: #90cdf4;
  /* 主题派生：深色框架 / 浅色内容区 / 半透明主色（随皮肤动态覆盖） */
  --content-bg: #f4f6fb;
  --frame-bg: #0b1221;
  --frame-text: #ffffff;
  --frame-text-secondary: rgba(255,255,255,.66);
  --frame-border: rgba(255,255,255,.10);
  --surface: #ffffff;
  --input-bg: #ffffff;
  --card-bg: #ffffff;
  --sidebar-bg: #0b1221;
  --brand-rgb: 26,41,66;
  --brand-a04: rgba(26,41,66,.04);
  --brand-a08: rgba(26,41,66,.08);
  --brand-a12: rgba(26,41,66,.12);
  --brand-a18: rgba(26,41,66,.18);
  --brand-a30: rgba(26,41,66,.30);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--content-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: 230px;
  background: var(--frame-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0;
  box-shadow: 0 0 44px rgba(0,0,0,.22);
  border-right: 1px solid var(--frame-border);
  z-index: 100;
  transition: background .35s ease, border-color .35s ease;
}
.logo-area { display: flex; align-items: center; gap: 12px; padding: 24px 22px 20px; border-bottom: 1px solid var(--frame-border); }
.logo-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,.92); padding: 5px; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-name { color: var(--frame-text); font-size: 17px; font-weight: 700; letter-spacing: .6px; }
.logo-sub { font-size: 9px; color: var(--gold); display: block; margin-top: 2px; letter-spacing: 3.5px; text-transform: uppercase; font-weight: 700; }

.nav { flex: 1; padding: 14px 14px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  font-size: 14px; margin-bottom: 3px; transition: all .15s;
  color: var(--frame-text-secondary); border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: rgba(255,255,255,.10); color: var(--frame-text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-vivid) 0%, var(--primary-light) 100%);
  color: #fff; font-weight: 500;
  box-shadow: 0 4px 16px var(--brand-a18);
}
.nav-item .ico { width: 18px; text-align: center; opacity: .85; font-size: 15px; }
/* 财务中心折叠箭头（点击「财务中心」展开/收起子菜单） */
.nav-caret { margin-left: auto; font-size: 11px; opacity: .65; transition: transform .15s ease; flex-shrink: 0; }

/* ===== 左下角用户区（可点开菜单） ===== */
.side-user-wrap { position: relative; margin: 14px; }
.side-user {
  width: 100%; padding: 12px 12px; background: rgba(255,255,255,.08); border-radius: 13px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--frame-border); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: box-shadow .2s, border-color .2s, transform .15s, background .2s;
}
.side-user:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.side-user.open { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.side-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.side-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.side-name { color: var(--frame-text); font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-role { font-size: 11px; color: var(--frame-text-secondary); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-caret { color: var(--frame-text-secondary); flex-shrink: 0; display: flex; transition: transform .2s ease; }
.side-user.open .side-caret { transform: rotate(180deg); }

/* 用户弹菜单 */
.user-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px);
  background: var(--navy-800); border: 1px solid var(--frame-border); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  padding: 7px; z-index: 200; display: none;
  transform-origin: bottom left;
  animation: umPop .18s ease;
}
.user-menu.show { display: block; }
@keyframes umPop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.um-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border: none; background: none; cursor: pointer;
  border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--frame-text); transition: background .15s, color .15s; text-align: left;
}
.um-item:hover { background: var(--primary-vivid); color: #fff; }
.um-ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.10); color: var(--frame-text); }
.um-item:hover .um-ico { background: rgba(255,255,255,.22); color: #fff; }
.um-ico-skin { background: rgba(255,255,255,.10); color: var(--frame-text); }
.um-text { flex: 1; }
.um-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg,var(--primary) 0%,var(--gold) 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.um-sep { height: 1px; background: var(--frame-border); margin: 5px 6px; }

/* ===== 主区域 ===== */
.main { flex: 1; margin-left: 230px; padding: 26px 32px 44px; min-width: 0; background: var(--content-bg); min-height: 100vh; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; color: var(--navy-900); }
.page-sub { font-size: 13px; color: var(--text-secondary); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.top-actions { display: flex; gap: 12px; align-items: center; }

/* 状态指示器 */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.18); display: inline-block; }
.status-dot.loading { background: var(--warning); box-shadow: 0 0 0 3px rgba(245,158,11,.18); animation: pulse 1s infinite; }
.status-dot.error { background: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }

/* 用户标签 */
.user-badge {
  display: inline-block; padding: 5px 13px;
  background: var(--navy-700); color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

/* 退出登录按钮 */
.btn-logout {
  padding: 8px 16px; font-size: 13px;
  color: var(--text-secondary); background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.btn-logout:hover { background: #fef2f2; color: var(--error); border-color: #fecaca; }

/* ===== Tab 面板 ===== */
.tab-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary-vivid);
  margin-bottom: 16px;
}

/* ===== 查价表单 ===== */
.query-form { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 140px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.required { color: var(--error); }

.form-group input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
  background: var(--input-bg); color: var(--text);
}
.form-group input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--brand-a12); }

/* 表单文本域：与输入框同款样式，仅更大 */
.form-grid textarea,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; line-height: 1.6;
  background: var(--input-bg); color: var(--text);
  font-family: inherit; box-sizing: border-box;
  resize: vertical; min-height: 84px;
  transition: border-color .15s, box-shadow .15s;
}
.form-grid textarea:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(37,56,88,.12); }

/* 国家可搜索下拉 */
.country-select-wrapper { position: relative; }
.country-select-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: var(--input-bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.country-select-input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(37,56,88,.12); }
.country-select-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 280px; overflow-y: auto;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(11,18,33,.14);
  z-index: 1000; display: none;
}
.country-select-dropdown.active { display: block; }
.country-select-item {
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-size: 14px; border-bottom: 1px solid #f1f5f9; transition: background .1s;
}
.country-select-item:last-child { border-bottom: none; }
.country-select-item:hover, .country-select-item.active {
  background: #f1f5f9;
}
.country-select-item .cc {
  color: var(--navy-700); font-weight: 700; min-width: 34px; font-size: 13px;
  background: #f1f5f9; padding: 2px 6px; border-radius: 6px; text-align: center;
}
.country-select-item.active .cc { background: #e2e8f0; }
.country-select-item .cn { color: var(--text); flex: 1; }
.country-select-item .en { color: var(--text-secondary); font-size: 12px; }
.country-select-empty {
  padding: 16px; color: var(--text-secondary); text-align: center; font-size: 13px;
}

.form-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: var(--input-bg); cursor: pointer;
  transition: border-color .15s, box-shadow .15s; 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='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
  color: var(--text);
}
.form-select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(37,56,88,.12); }

.hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 板块选择 */
.seg-group { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: 100%; }
.seg-btn {
  flex: 1; padding: 9px 0; border: none; background: #fff;
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn:hover { background: #f8fafc; color: var(--text); }
.seg-btn.active { background: var(--navy-900); color: #fff; }

/* 查询按钮 */
.btn-query {
  padding: 10px 24px; background: var(--navy-900); color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all .15s; white-space: nowrap; height: 44px;
  box-shadow: 0 2px 8px var(--brand-a18);
}
.btn-query:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-a30); }
.btn-query:active { transform: translateY(0); }
.btn-query:disabled { background: var(--text-secondary); cursor: not-allowed; opacity: .6; }

/* 区块标题 */
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; margin-top: 20px; }
.section-title h2 { font-size: 16px; color: var(--navy-900); font-weight: 700; }
.result-summary { font-size: 14px; color: var(--text-secondary); }
.result-summary .success-count { color: var(--success); font-weight: 600; }
.result-summary .fail-count { color: var(--error); font-weight: 600; }

/* ===== 加载中 ===== */
.loading { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border); border-top-color: var(--navy-900);
  border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--text-secondary); }
.loading-progress { margin-top: 12px; font-size: 13px; color: var(--navy-700); }

/* ===== 结果表格 ===== */
.results { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th {
  background: var(--primary-soft); color: var(--navy-700);
  padding: 12px 14px; text-align: left; font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
.price-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tr { transition: background .12s; }
.price-table tr:hover { background: var(--primary-soft); }
.price-table tr.error-row { background: #fef2f2; }
.price-table tr.error-row:hover { background: #fee2e2; }
.price-table tr.nodata-row { background: #fffbeb; }
.price-table tr.nodata-row:hover { background: #fef3c7; }

/* 列宽 */
.col-channel { min-width: 140px; }
.col-total { min-width: 140px; }
.col-unit { min-width: 120px; }
.col-weight { min-width: 100px; }
.col-fuel { min-width: 100px; }
.col-fuel-rate { min-width: 100px; }
.col-remark { min-width: 120px; max-width: 220px; }

.remote-table th, .remote-table td { text-align: center; }
.remote-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.remote-badge.remote-no { background: #d1fae5; color: #065f46; }
.remote-badge.remote-yes { background: #fee2e2; color: #991b1b; }
.postcode-table th, .postcode-table td { text-align: center; }

/* 渠道单元格 */
.channel-code { font-weight: 700; color: var(--navy-900); font-size: 14px; }
.channel-name { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* 渠道来源徽章 */
.src-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; vertical-align: middle; margin-left: 6px; }
.src-zto { background: var(--gold); color: #fff; }
.src-erp { background: #ede9fe; color: #5b3fd3; }
.src-hl { background: #d1fae5; color: #065f46; }
.src-hmc { background: #fce7f3; color: #9f1239; }
.src-xh { background: #fee2e2; color: #991b1b; }
.src-sz { background: #e0f2fe; color: #075985; }
.src-smf { background: #e0e7ff; color: #3730a3; }
.src-yyd { background: #fef3c7; color: #92400e; }

/* 费用高亮 */
.cost-amount { font-size: 18px; font-weight: 700; color: var(--gold); }
.cost-currency { font-size: 12px; color: var(--text-secondary); margin-left: 4px; }
.unit-text { font-size: 12px; color: var(--text-secondary); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state p { margin-top: 12px; font-size: 15px; }
.empty-sub { font-size: 13px !important; color: var(--text-secondary); opacity: .7; }

/* 错误消息 */
.error-msg { color: var(--error); font-size: 13px; padding: 8px 0; font-weight: 500; }
.nodata-msg { color: var(--warning); font-size: 13px; padding: 8px 0; }

/* 错误行变体 */
.price-table tr.err-country { background: #fef2f2; }
.price-table tr.err-country:hover { background: #fee2e2; }
.price-table tr.err-suspended { background: #fffbeb; }
.price-table tr.err-suspended:hover { background: #fef3c7; }
.price-table tr.err-suspended .error-msg { color: #c05621; }
.price-table tr.err-weight { background: #eff6ff; }
.price-table tr.err-weight:hover { background: #dbeafe; }
.price-table tr.err-weight .error-msg { color: #1e40af; }

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11,18,33,.5); z-index: 1000;
  justify-content: center; align-items: center; backdrop-filter: blur(2px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 90%; max-width: 700px; max-height: 85vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; color: var(--navy-900); font-weight: 700; }
.modal-close {
  font-size: 24px; background: none; border: none; cursor: pointer;
  color: var(--text-secondary); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  transition: background .15s;
}
.modal-close:hover { background: #f1f5f9; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #E2E8F0; display: flex; justify-content: flex-end; gap: 10px; }

/* 渠道管理分组下拉 */
.cm-select { background: #fff; cursor: pointer; }

/* 明细表 */
.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-table th { background: #fafbfd; padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 12px; border-bottom: 1px solid var(--border); }
.detail-table td { padding: 10px 12px; border-bottom: 1px solid #f1f4f9; }
.detail-table .fee-name { font-weight: 600; }
.detail-table .amount { text-align: right; font-weight: 600; }

/* ===== 登录层 ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 44px 38px 32px; text-align: center;
}
.login-brand { margin-bottom: 28px; }
.login-logo {
  display: block; width: 80px; height: auto; max-height: 70px;
  margin: 0 auto 14px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(11,18,33,.15));
}
.login-title { font-size: 24px; font-weight: 700; color: var(--navy-900); }
.login-sub { font-size: 11px; color: var(--gold); margin-top: 4px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.login-form { text-align: left; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.login-field input {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; font-size: 15px; color: var(--text); background: var(--input-bg);
  outline: none; transition: border-color .15s, background .15s;
}
.login-field input:focus { border-color: var(--navy-600); background: var(--input-bg); box-shadow: 0 0 0 3px var(--brand-a12); }
.login-error {
  font-size: 13px; color: var(--error); background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px;
}
.btn-login {
  width: 100%; height: 46px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff; font-size: 16px; font-weight: 600; border: none; border-radius: 10px;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 12px rgba(11,18,33,.2);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,18,33,.25); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== 档案工具栏 ===== */
.archive-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.archive-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.archive-search input {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; min-width: 220px; transition: border-color .15s, box-shadow .15s; background: var(--input-bg);
}
.archive-search input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--brand-a12); }
.archive-search .form-select { min-width: 110px; padding: 9px 30px 9px 12px; font-size: 14px; }
.archive-search .btn-query { height: 38px; padding: 0 16px; font-size: 14px; }

/* 添加按钮 */
.btn-add {
  padding: 9px 20px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-900); border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(199,154,59,.25);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(199,154,59,.35); }
.btn-add:active { transform: translateY(0); }

/* 档案表格 */
.archive-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.archive-table th {
  background: var(--primary-soft); color: var(--navy-700);
  padding: 12px; text-align: left; font-weight: 600; font-size: 13px;
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
.archive-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.archive-table tr { transition: background .12s; }
.archive-table tr:hover { background: var(--primary-soft); }
.archive-table tr:last-child td { border-bottom: none; }

.emp-id, .cus-id { font-family: 'SF Mono', 'Consolas', monospace; font-size: 13px; color: var(--text-secondary); }
.emp-name, .cus-company { font-weight: 600; color: var(--navy-900); }
.sales-name { font-weight: 600; color: var(--navy-700); }
.emp-remark, .text-muted { color: var(--text-secondary); font-size: 13px; }

/* 徽章 */
.pos-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #fee2e2; color: #991b1b; }
.settle-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.settle-ticket { background: #ede9fe; color: #5b3fd3; }
.settle-week { background: #d1fae5; color: #065f46; }
.settle-halfmonth { background: #fef3c7; color: #92400e; }
.settle-month { background: #fce7f3; color: #9f1239; }
.settle-default { background: #e2e8f0; color: #475569; }
.ctype-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #e0f2fe; color: #075985; }
.wb-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* 运单号/运费列 */
.way-no { font-family: 'Consolas', 'Monaco', monospace; font-weight: 600; color: var(--navy-700); font-size: 13px; }
.way-freight { font-weight: 600; color: #92400e; }

/* 操作按钮 */
.action-cell { white-space: nowrap; display: flex; gap: 6px; }
.btn-edit-sm {
  padding: 5px 12px; background: var(--navy-700); color: #fff;
  border: none; border-radius: 8px; font-size: 12px; cursor: pointer; transition: background .15s;
}
.btn-edit-sm:hover { background: var(--navy-900); }
.btn-del-sm {
  padding: 5px 12px; background: #fff; color: var(--error);
  border: 1px solid #fecaca; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.btn-del-sm:hover { background: var(--error); color: #fff; border-color: var(--error); }

/* 弹窗表单网格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-full { grid-column: 1 / -1; }
.form-grid .form-group { min-width: 0; }

/* 表单操作按钮 */
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-cancel {
  padding: 10px 24px; background: #fff; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-cancel:hover { background: #f8fafc; color: var(--text); }
.btn-save {
  padding: 10px 24px; background: var(--navy-900); color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 2px 8px rgba(11,18,33,.15);
}
.btn-save:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-save:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .sidebar { width: 200px; }
  .main { margin-left: 200px; padding: 20px 24px 40px; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px; }
  .query-form { flex-direction: column; gap: 12px; }
  .form-group { width: 100%; }
  .btn-query { width: 100%; justify-content: center; }
  .archive-toolbar { flex-direction: column; align-items: stretch; }
  .archive-search { flex-direction: column; }
  .archive-search input, .archive-search .form-select { width: 100%; min-width: 0; }
  .btn-add { width: 100%; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .archive-table { font-size: 13px; }
  .archive-table th, .archive-table td { padding: 8px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== 双击复制：数据单元格可复制提示 ===== */
.archive-table td:not(.action-cell),
.detail-table td { cursor: text; }

/* ===== 运单管理：状态选项卡 ===== */
.way-status-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f7fafc;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.way-tab {
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: #718096;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.way-tab:hover {
  background: #edf2f7;
  color: #4a5568;
}
.way-tab.active {
  background: var(--primary-vivid);
  color: #fff;
  box-shadow: 0 1px 3px var(--brand-a30);
}

/* ===== 运单详情弹窗：标签页 ===== */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  padding: 0 16px;
  background: #fafbfd;
  border-radius: 8px 8px 0 0;
}
.detail-tab {
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #718096;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}
.detail-tab:hover {
  color: var(--primary-vivid);
  background: var(--brand-a04);
}
.detail-tab.active {
  color: var(--primary-vivid);
  border-bottom-color: var(--primary-vivid);
  font-weight: 600;
}

/* 详情内容区 */
.detail-content {
  background: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.detail-kv {
  display: flex;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f4f9;
}
.dk-label {
  min-width: 110px;
  font-size: 12px;
  color: #a0aec0;
  font-weight: 500;
  flex-shrink: 0;
}
.dk-val {
  font-size: 14px;
  color: #2d3748;
  font-weight: 400;
  word-break: break-all;
}
.detail-section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-vivid);
  padding: 10px 12px 6px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 4px;
  background: #f7fafc;
}

/* ===== 轨迹时间线 ===== */
.timeline-container {
  position: relative;
  padding-left: 24px;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}
.timeline-item {
  position: relative;
  padding: 8px 0 16px 8px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e0;
}
.timeline-item.latest .timeline-dot {
  background: #48bb78;
  box-shadow: 0 0 0 1px #48bb78, 0 0 0 4px rgba(72, 187, 120, 0.2);
}
.timeline-content {
  background: #f7fafc;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #e8edf3;
}
.timeline-time {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  margin-bottom: 2px;
}
.timeline-desc {
  font-size: 14px;
  color: #2d3748;
  line-height: 1.5;
}
.timeline-loc {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 2px;
}

/* ===== 运单详情：内嵌在 panel-waybill 中 ===== */
#panel-waybill {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  padding: 16px 20px 20px;
  overflow: hidden;
}
#panel-waybill #wcSubList {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#panel-waybill .wc-top-area {
  flex-shrink: 0;
}
#panel-waybill .wc-stats-bar,
#panel-waybill .wc-archive-toolbar {
  flex-shrink: 0;
}
#panel-waybill #wayResults {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
/* 暂存区与运单列表同款 flex 纵向布局：内容增多时列表区内部滚动，不被面板裁剪 */
#wcSubStaging {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#wcSubStaging .wc-stats-bar,
#wcSubStaging .wc-archive-toolbar { flex-shrink: 0; }
#wcSubStaging #stagingResults {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* 运单中心录入区：仿个人中心快速录入，自然高度 + 横向网格 */
.wc-entry-card {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}
.wc-entry-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.wc-entry-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 12px;
  align-content: start;
}
.wc-entry-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wc-entry-grid .form-group label {
  font-size: 12.5px;
  color: #718096;
  white-space: nowrap;
}
.wc-entry-grid .form-group input,
.wc-entry-grid .form-group select {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13.5px;
  color: #2d3748;
  background: #fff;
  min-height: 30px;
  min-width: 0;
}
.wc-entry-grid .form-group.wc-entry-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.wc-entry-grid .form-group.wc-entry-actions label { visibility: hidden; }
.wc-entry-grid .form-group.wc-entry-actions .btn-save {
  padding: 6px 14px;
  font-size: 14px;
  height: auto;
  width: auto;
  white-space: nowrap;
}
.wc-entry-actions-row {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}
.wc-entry-actions-row .btn-edit-sm {
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
}
.wc-archive-toolbar {
  padding: 6px 8px;
  margin-bottom: 4px;
  gap: 8px;
}
.wc-archive-toolbar .archive-search {
  gap: 6px;
}
.wc-archive-toolbar .archive-search input,
.wc-archive-toolbar .archive-search .form-select {
  min-width: auto;
  padding: 5px 8px;
  font-size: 14px;
  height: 30px;
}
.wc-archive-toolbar .archive-search .btn-query,
.wc-archive-toolbar .archive-search .btn-edit-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.wc-stats-bar {
  margin-bottom: 4px;
  gap: 6px;
}
.wc-stat-chip {
  padding: 4px 8px;
  font-size: 13px;
}

#panel-finance {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  padding: 16px 20px 20px;
  overflow: hidden;
}
#panel-finance .fin-stats,
#panel-finance .archive-toolbar {
  flex-shrink: 0;
}
#panel-finance #finResults {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}
/* 主框架高度恒定：表格框撑满剩余空间，行少不缩短、行多框内滚动 */
#panel-finance #finResults .fin-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
}
#panel-finance #finPager { flex-shrink: 0; }
.way-detail-view {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 10;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.way-detail-view.active {
  display: flex;
}
/* 个人中心·我的运单：双击详情内嵌宿主（详情面板由 JS 移入本面板） */
#panel-mycenter {
  position: relative;
}
.way-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.way-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #2d3748;
}
.way-detail-back {
  color: var(--primary-vivid);
  cursor: pointer;
  font-weight: 500;
}
.way-detail-back:hover {
  color: var(--primary-vivid);
}
.way-detail-divider {
  color: #cbd5e0;
}
.way-detail-tabs-outer {
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
}
.way-detail-tabs-outer .detail-tabs {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.way-detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  background: #f7fafc;
}
.way-detail-content .detail-section-title {
  background: #edf2f7;
}

/* 轨迹表格 */
.track-table th {
  background: #edf2f7;
  font-weight: 600;
  font-size: 13px;
}
.track-table td {
  font-size: 13px;
}

/* 确保中文字符（费用名称等）有正确的系统字体回退 */
.fee-name,
.detail-table td,
.dk-val {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

/* 费用汇总条 */
.fee-summary-bar {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fee-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fee-summary-item .label {
  font-size: 13px;
  color: #718096;
}
.fee-summary-item .value {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}
.fee-summary-item.total .value {
  color: #e53e3e;
  font-size: 17px;
}

/* ===== 财务中心 / 个人中心 / 查询工具 ===== */
.tool-section { margin-top: 16px; }
.fin-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fin-stat-card {
  flex: 1;
  min-width: 150px;
  background: #fafbfd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}
.fin-stat-card .label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 6px;
}
.fin-stat-card .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900, var(--navy-700));
}
.fin-stat-card.profit .value { color: #276749; }
.fin-stat-card.loss .value { color: #c53030; }
.fin-stat-card.paid .value { color: var(--primary-vivid); font-size: 16px; }
.fin-stat-card.unpaid .value { color: #b45309; font-size: 16px; }
.my-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f8faff, #fafbfd);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.my-profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900, var(--navy-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.my-profile .info .name { font-size: 18px; font-weight: 700; color: var(--navy-900, var(--navy-700)); }
.my-profile .info .meta { font-size: 13px; color: #718096; margin-top: 4px; }
.my-center-header { display: flex; align-items: center; gap: 16px; }
.my-center-header .my-profile { flex: 1; margin-bottom: 0; }
.my-sales-selector { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; min-width: 160px; }
.my-sales-selector label { font-size: 13px; color: #718096; }
.my-sales-selector select { width: 100%; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; font-size: 13px; color: #2d3748; cursor: pointer; }
.fin-table td, .fin-table th { white-space: nowrap; }
/* 财务汇总：仅转单号(第4列)限宽防撑表，悬停 title 显示全号；客户单号(第3列)完整展示 */
.fin-summary-table th:nth-child(4), .fin-summary-table td:nth-child(4) { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* ===== 财务表格：一代同款格子线 + 列宽拖拽/行高/列设置（按人按表 localStorage 持久化） ===== */
.fin-table th, .fin-table td { border: 1px solid #e3e8f0; }
/* 表头全部居中（一代风格）；带漏斗筛选的表头：列名居中 + 漏斗绝对定位右侧 */
.fin-table th { text-align: center; }
.fin-th-inner .fin-fh-filter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
/* 固定布局：colgroup 定宽后列宽可自由拖窄（自动布局有内容最小宽地板，压不下去） */
.fin-table.fin-tbl-fixed { table-layout: fixed; }
.fin-table.fin-tbl-fixed td { overflow: hidden; text-overflow: ellipsis; }
.fin-table tr:last-child td { border-bottom: 1px solid #e3e8f0; }
.fin-table.fin-d-compact th, .fin-table.fin-d-compact td { padding: 5px 9px; }
.fin-table.fin-d-loose th, .fin-table.fin-d-loose td { padding: 15px 13px; }
/* 密度档位需压过 #panel-finance 的 ID 级内边距规则 */
#panel-finance .fin-table.fin-d-compact th, #panel-finance .fin-table.fin-d-compact td { padding: 5px 9px; }
#panel-finance .fin-table.fin-d-loose th, #panel-finance .fin-table.fin-d-loose td { padding: 15px 13px; }
.fin-col-resize { position: absolute; top: 0; right: 0; width: 10px; height: 100%; cursor: col-resize; z-index: 6; }
.fin-col-resize:hover, .fin-col-resize.on { background: rgba(199,154,59,.5); }
.fin-colset-btn { display: inline-flex; align-items: center; gap: 5px; border: none; background: #276749; color: #fff; border-radius: 7px; padding: 6px 13px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fin-colset-btn:hover { background: #1f573d; }
.fin-density { display: flex; align-items: center; gap: 9px; margin: 2px 0 8px; font-size: 12px; color: #64748b; }
.fin-density label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; color: #334155; }
.fin-density input { accent-color: #c79a3b; cursor: pointer; }

/* ===== 银行账户·分组框 ===== */
.bank-box {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; margin-bottom: 16px; overflow: hidden;
}
.bank-box-head {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-bottom: 1px dashed var(--border); background: #fafbfc;
}
/* 框头标题=顶部统计卡同款样式（label 组名小灰字 + value 组内余额大粗字） */
.bank-box-title {
  min-width: 180px;
  background: #fafbfd; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 16px;
}
.bank-box-title .label { font-size: 13px; color: #718096; margin-bottom: 4px; }
.bank-box-title .value { font-size: 20px; font-weight: 700; color: #276749; }
.bank-box-info { color: #718096; font-size: 13px; margin-left: auto; }
.bank-box-del {
  border: none; background: none; color: #cbd5e0; cursor: pointer;
  font-size: 17px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.bank-box-del:hover { color: #c53030; background: #fff5f5; }
.bank-box-body {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 14px;
  min-height: 92px; transition: background .15s, outline .15s;
}
.bank-box-body.dragover { background: #ebf8ff; outline: 2px dashed #63b3ed; outline-offset: -6px; }
.bank-box-empty-hint { color: #a0aec0; font-size: 13px; margin: auto; }

/* ===== 财务成本明细编辑器（业务汇总双击行） ===== */
.fw-fee-wrap { overflow-x: auto; }
.fw-fee-table td { padding: 5px 6px; }
.fw-fee-table input.fw-in {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 4px 6px; font-size: 13px; border-radius: 6px; color: #2d3748;
}
.fw-fee-table input.fw-in:hover { border-color: #e2e8f0; }
.fw-fee-table input.fw-in:focus { outline: none; border-color: #63b3ed; background: #fff; }
.fw-fee-table input.fw-in-num { text-align: right; }
.fw-fee-table input.fw-in-cur { width: 56px; text-align: center; }
.fw-fee-table tr.fw-row-base td { background: #fafbfd; color: #4a5568; }
.fw-row-del {
  border: none; background: none; color: #cbd5e0; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.fw-row-del:hover { color: #c53030; background: #fff5f5; }

/* ===== 侧边栏菜单拖拽排序 ===== */
.nav-item[draggable="true"], .side-sub-item[draggable="true"] { cursor: grab; }
.nav-item.nav-dragging, .side-sub-item.nav-dragging { opacity: .45; }
.nav-item.nav-drop-before, .side-sub-item.nav-drop-before { box-shadow: inset 0 2px 0 0 #4fd1c5; }
.nav-item.nav-drop-after, .side-sub-item.nav-drop-after { box-shadow: inset 0 -2px 0 0 #4fd1c5; }
.fin-table-wrap {
  position: relative;
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.fin-table-wrap .fin-table { margin: 0; }
.fin-table-wrap .fin-table thead th {
  position: sticky;
  top: 0;
  background: var(--primary-soft);
  z-index: 2;
}
/* 表头列筛选：列名居中 + 漏斗按钮绝对定位右侧（Excel 风格） */
.fin-th-inner { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.fin-fh-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease, color .2s ease;
}
.fin-fh-filter svg { width: 15px; height: 15px; }
.fin-fh-filter:hover { background: var(--brand-a12); color: var(--primary-vivid); }
.fin-fh-filter.on { background: var(--primary-vivid); color: #fff; }
/* 列筛选弹层 */
.fin-col-pop {
  position: absolute;
  z-index: 10;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.fin-col-pop-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.fin-col-pop input[type="text"],
.fin-col-pop select {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text);
  box-sizing: border-box;
}
.fin-col-pop input:focus,
.fin-col-pop select:focus { outline: none; border-color: var(--primary-vivid); box-shadow: 0 0 0 3px var(--brand-a12); }
/* 弹层内复选框：不受文本输入框规则影响，保持原生小方框左对齐 */
.fin-col-pop input[type="checkbox"] { width: auto; flex: none; margin: 0; cursor: pointer; }
/* Excel 模式：排序行 / 搜索 / 去重值列表 */
.fcp-sort-row { display: flex; gap: 8px; margin-bottom: 8px; }
.fcp-sort-btn {
  flex: 1;
  padding: 5px 0;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s;
}
.fcp-sort-btn:hover { background: var(--primary-soft); }
.fcp-sort-btn.active { background: var(--primary-soft); border-color: var(--primary-mid); color: var(--primary-vivid); }
/* Excel 列筛选弹层挂 body 时的 fixed 定位变体（运单中心/个人中心） */
.fin-col-pop.xf-fixed { position: fixed; z-index: 3200; }
.fcp-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text);
  padding: 8px 2px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.fcp-link { color: var(--primary-vivid); cursor: pointer; }
.fcp-link:hover { text-decoration: underline; }
.fcp-list-head label { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.fcp-list { max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.fcp-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 13px; padding: 4px 4px; border-radius: 5px; cursor: pointer; text-align: left; }
.fcp-item:hover { background: var(--primary-soft); }
.fcp-item .fcp-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.fcp-item .cnt { color: #a0aec0; font-size: 11.5px; flex-shrink: 0; }
.fin-col-pop-btns { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
.fin-col-pop-btns .btn-edit-sm { font-size: 12px; padding: 5px 10px; }
.fcp-confirm { display: block; margin: 8px auto 0; width: 70%; padding: 6px 0; font-size: 13px; }
.fin-table tbody tr { cursor: default; }
.fin-table tbody tr:hover { background: var(--primary-soft); }

/* ===== 财务中心三版块（子导航 / 供应商明细 / 银行账户） ===== */
#panel-finance .fin-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.fin-sub-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#finViewSupplier { overflow: hidden; }
#finViewBank { overflow-y: auto; padding-right: 2px; }
.fin-sub-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
/* 供应商附件小标签 */
.sp-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-a12);
  color: var(--primary-vivid);
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--brand-a30);
  margin: 2px 4px 2px 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: background .15s;
}
.sp-att-chip:hover { background: var(--brand-a30); }
.sp-att-kind {
  display: inline-block; padding: 0 5px; border-radius: 4px;
  font-size: 10px; font-weight: 600; line-height: 1.6; flex-shrink: 0;
  background: var(--primary-vivid); color: #fff;
}
.sp-exist-files { margin-top: 6px; line-height: 1.8; }
.sp-tip { font-size: 12px; color: #a0aec0; margin: 10px 0 0; }
/* 银行账户卡片（行容器自由布局：卡片可拖拽换行换位） */
/* 银行账户：紧凑小卡片网格（一排多张自动换行整齐对齐，可拖拽换位，按用户名 localStorage 记忆） */
.bank-cards {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  /* 账户行数增多时卡片区自身滚动（统计条/工具栏保持可见），不被面板裁剪 */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}
.bank-cards.dragover { outline: 1px dashed var(--primary-vivid, #2b6cb0); outline-offset: -3px; border-radius: 10px; }
/* 末尾空白占位框：与卡片同尺寸，拖卡片进来=排到末尾 */
.bank-card-empty {
  width: 300px;
  min-height: 172px;
  flex-shrink: 0;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 13px;
  user-select: none;
  transition: border-color .12s, background .12s, color .12s;
}
.bank-card-empty.dragover {
  border-color: var(--primary-vivid, #2b6cb0);
  background: #ebf4ff;
  color: var(--primary-vivid, #2b6cb0);
}
.bank-card.dragging { opacity: .45; }
.bank-card.drop-before { box-shadow: -4px 0 0 0 var(--primary-vivid, #2b6cb0); }
.bank-card.drop-after { box-shadow: 4px 0 0 0 var(--primary-vivid, #2b6cb0); }
.bank-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06));
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
  width: 300px;
  flex-shrink: 0;
}
.bank-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); transform: translateY(-1px); }
.bank-card .bk-name { font-weight: 600; font-size: 15px; color: var(--text); }
.bank-card .bk-bank { font-size: 13px; color: #718096; word-break: break-all; }
.bank-card .bk-balance { font-size: 24px; font-weight: 700; color: var(--primary-vivid); margin-top: 2px; }
.bank-card .bk-meta { font-size: 12px; color: #a0aec0; }
.bank-card .bk-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
/* 财务子版块（左侧边栏「财务中心」下方） */
.side-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px;
  padding-left: 30px;
}
.side-sub-item {
  background: none;
  border: none;
  text-align: left;
  padding: 5px 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--frame-text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
/* ===== 财务版块整体字号放大（2026-09-20 ㊵） ===== */
#panel-finance .fin-table { font-size: 16.5px; }
#panel-finance .fin-table th, #panel-finance .fin-table td { padding: 12px 14px; }
#panel-finance .archive-toolbar .form-select,
#panel-finance .archive-toolbar input,
#panel-finance .archive-search input { font-size: 14px; }
#panel-finance .fin-stat-card .label { font-size: 14px; }
#panel-finance .fin-stat-card .value { font-size: 22px; }
#panel-finance .table-pager .pager-info,
#panel-finance .table-pager .pager-current { font-size: 14px; }
#panel-finance .btn-edit-sm, #panel-finance .btn-del-sm { font-size: 13px; }
.side-sub-item:hover { color: var(--frame-text); background: rgba(255,255,255,.06); }
.side-sub-item.active { color: var(--gold); background: rgba(255,255,255,.08); font-weight: 600; }
/* 顶部子页签移除后的 slim 条（仅通知铃） */
.fin-sub-tabs-slim { min-height: 0; padding: 0 0 6px; border-bottom: none; }

/* 账户流水详情（双击账户卡片，全界面覆盖） */
.bd-back {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.bd-back h3 { margin: 0; font-size: 16px; color: var(--navy-900); }
.bank-detail-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.bank-detail-bar .bd-date { display: flex; align-items: center; gap: 8px; }
.bank-detail-bar .bd-date label { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bank-detail-bar .bd-date input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text);
}
.bank-detail-bar .bd-stats { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.bd-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 130px;
}
.bd-chip .bd-chip-label { font-size: 12px; color: #718096; }
.bd-chip .bd-chip-val { font-size: 16px; font-weight: 700; color: var(--navy-700); }
/* 收入/支出芯片可点击筛选明细 */
.bd-chip-filter { cursor: pointer; transition: box-shadow .12s, background .12s; user-select: none; }
.bd-chip-filter:hover { box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.bd-chip-filter.active { background: #ebf4ff; border-color: var(--primary-vivid, #2b6cb0); box-shadow: 0 0 0 1px var(--primary-vivid, #2b6cb0); }
.bank-detail-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.bk-tx-type { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.bk-tx-type.in { background: #e6fffa; color: #276749; }
.bk-tx-type.out { background: #fff5f5; color: #c53030; }
/* 银行流水整月视图：不同日期之间的横线分隔行 */
.bk-date-sep td {
  background: #f7fafc !important;
  border-top: 2px solid #cbd5e0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 700;
  font-size: 13px;
  color: #4a5568;
  padding: 5px 12px !important;
  letter-spacing: .5px;
}
/* 回款账户选择弹窗 */
.paid-bank-info {
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.paid-bank-info b { color: var(--navy-800, var(--navy-700)); }

.my-waybill-table { table-layout: auto; font-size: 14.5px; }
.my-waybill-table th, .my-waybill-table td { padding: 8px; white-space: nowrap; vertical-align: middle; line-height: 1.4; }
.my-waybill-table td { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.my-waybill-table td:nth-child(10), .my-waybill-table th:nth-child(10),
.my-waybill-table td:nth-child(17), .my-waybill-table th:nth-child(17) { text-align: center; }
.my-waybill-table td:nth-child(11), .my-waybill-table th:nth-child(11),
.my-waybill-table td:nth-child(12), .my-waybill-table th:nth-child(12),
.my-waybill-table td:nth-child(13), .my-waybill-table th:nth-child(13),
.my-waybill-table td:nth-child(14), .my-waybill-table th:nth-child(14),
.my-waybill-table td:nth-child(15), .my-waybill-table th:nth-child(15) { text-align: right; }
#panel-mycenter .results { overflow-x: auto; }

/* 双击弹窗编辑（我的运单） */
.my-edit-ro {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  box-sizing: border-box;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  font-size: 14px;
  line-height: 20px;
}
#myEditForm input[type="text"],
#myEditForm input[type="number"],
#myEditForm input[type="date"],
#myEditForm select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: #1a202c;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#myEditForm input:focus,
#myEditForm select:focus {
  border-color: var(--primary-vivid);
  box-shadow: 0 0 0 3px rgba(49,130,206,0.12);
}
#myEditForm input:disabled {
  background: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
#myEditForm textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: #1a202c;
  outline: none;
  resize: vertical;
  min-height: 52px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
#myEditForm textarea:focus {
  border-color: var(--primary-vivid);
  box-shadow: 0 0 0 3px rgba(49,130,206,0.12);
}
#myEditForm textarea:disabled {
  background: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
#myEditDeleteBtn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 个人中心 v2：首页 + 我的运单 ===== */
#panel-mycenter {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  padding: 16px 20px 20px;
  overflow: hidden;
}
#panel-mycenter .my-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.my-sub-tab {
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all .15s ease;
}
.my-sub-tab:hover { background: #f7fafc; }
.my-sub-tab.active {
  background: var(--navy-900, var(--navy-700));
  color: #fff;
  border-color: var(--navy-900, var(--navy-700));
}

.my-center-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 首页 */
.my-home-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.my-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  padding: 14px 22px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26,41,66,0.18);
}
.my-welcome-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.my-welcome-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.my-welcome-card .info .welcome-title { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 2px; }
.my-welcome-card .info .name { font-size: 24px; font-weight: 700; color: #fff; }
.my-welcome-card .info .meta { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }
.my-welcome-card .my-sales-selector {
  background: #fff;
  border-color: rgba(255,255,255,0.45);
  color: var(--navy-700);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.my-welcome-card .my-sales-selector label { color: #4a5568; }
.my-welcome-card .my-sales-selector select {
  background: #fff;
  border-color: #cbd5e0;
  color: var(--navy-700);
  font-weight: 500;
}
.my-welcome-card .my-sales-selector select option {
  background: #fff;
  color: var(--navy-700);
}

.my-home-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
}
.dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dash-card.wide {
  grid-column: 1 / -1;
}
.dash-card.tall {
  grid-row: auto;
}
@media (max-width: 820px) {
  .my-home-bottom { grid-template-columns: 1fr; grid-template-rows: none; }
  .dash-card.wide, .dash-card.tall { grid-row: auto; }
  .dash-chart { min-height: 190px; }
}
.dash-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.dash-card-header h3 { font-size: 15px; font-weight: 600; color: #2d3748; margin: 0; }
.dash-card-header .dash-sub { font-size: 12px; color: #a0aec0; }
.dash-chart { flex: 1; min-height: 190px; position: relative; }
.dash-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #a0aec0;
  font-size: 13px;
}

/* ===== 个人中心首页·年/季/月统计 ===== */
.my-home-year { margin-bottom: 12px; flex-shrink: 0; }
/* 季度+月度并排一行（各占半宽） */
.my-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-column: 1 / -1; }
.dash-year-ctl { display: flex; align-items: center; gap: 10px; }
/* 年份手动选择：白色圆角下拉（隐藏原生箭头，自绘小三角） */
.dash-year-ctl select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23718096' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px 28px 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dash-year-ctl select:hover { border-color: #cbd5e0; }
.dash-year-ctl select:focus { outline: none; border-color: var(--primary-vivid, #3182ce); }
.mystat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* 季度/月度卡内：2×2，格宽与年度格一致（半宽卡/2列 = 全宽/4列） */
.mystat-grid.half { grid-template-columns: repeat(2, 1fr); }
.mystat-cell {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.mystat-cell .ms-label { font-size: 12px; color: #718096; margin-bottom: 4px; }
.mystat-cell .ms-value { font-size: 20px; font-weight: 800; color: #2d3748; }
.mystat-cell .ms-value.good { color: #38a169; }
.mystat-cell .ms-value.bad { color: #e53e3e; }
.mystat-empty { padding: 24px; text-align: center; color: #a0aec0; font-size: 13px; grid-column: 1 / -1; }
@media (max-width: 820px) {
  .my-stat-row { grid-template-columns: 1fr; }
  .mystat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mystat-cell .ms-value { font-size: 18px; }
}

/* 我的运单页 */
#myViewWaybills {
  gap: 12px;
}
.my-waybills-entry {
  flex: 0 0 20%;
  min-height: 150px;
  max-height: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.qentry-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.qentry-form {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 14px;
  overflow-y: auto;
  align-content: start;
}
.qentry-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.qentry-form .form-group label { font-size: 12.5px; color: #718096; white-space: nowrap; }
.qentry-form .form-group input,
.qentry-form .form-group select {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13.5px;
  color: #2d3748;
  background: #fff;
  min-width: 0;
}
.qentry-form .form-group.qentry-actions {
  justify-content: flex-end;
}
.qentry-form .form-group.qentry-actions label { visibility: hidden; }
.qentry-form .form-group.qentry-actions .btn-save {
  padding: 7px 16px;
  font-size: 14px;
  height: auto;
}

/* 个人中心：客户公司自动建议下拉 */
.customer-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 6px 0;
}
.customer-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background .12s ease;
}
.customer-dropdown-item:hover,
.customer-dropdown-item.active {
  background: #f7fafc;
}
.customer-dropdown-item .name {
  font-size: 13px;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-dropdown-item .meta {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 2px;
}
.customer-dropdown-empty {
  padding: 12px;
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
}

.my-waybills-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  overflow: hidden;
}
.my-waybills-list .archive-toolbar { flex-shrink: 0; }
.my-waybills-list .section-title { flex-shrink: 0; margin-top: 10px; }
.my-waybills-list .section-title .result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  margin-left: 16px;
}
.my-waybills-list .section-title .result-summary > span:first-child { margin-right: auto; }
#myBody td:first-child,
#myHead th:first-child { text-align: center; vertical-align: middle; }
#myHead th input[type="checkbox"] { margin: 0; }
.my-waybills-list .results { flex: 1; min-height: 0; overflow-y: auto; }

/* 我的运单表头锁定：列表区域内滚动时表头始终可见 */
.my-waybills-list .my-waybill-table thead th,
.my-waybills-list .my-waybill-table thead th.my-th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafbfd;
  box-shadow: 0 1px 0 #e2e8f0;
}

/* 信息录入：成本/应收区块（左明细右总计） */
.cq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}
.cq-grid .form-group { margin: 0; }
.cq-grid .form-group textarea { width: 100%; box-sizing: border-box; resize: vertical; }
@media (max-width: 640px) {
  .cq-grid { grid-template-columns: 1fr; }
}

/* 我的运单：全屏办公页（点击「我的运单」子导航弹出） */#myViewWaybills.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: #f0f2f6;
  padding: 16px 22px 20px;
  overflow: hidden;
}
.my-fullscreen-bar {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
#myViewWaybills.fullscreen .my-fullscreen-bar { display: flex; }
.my-fullscreen-bar .fs-title { font-size: 18px; font-weight: 700; color: var(--navy-700); }
.my-fullscreen-bar .fs-sub { font-size: 12px; color: #718096; }
.btn-back-fs {
  background: #fff;
  border: 1px solid #cbd5e0;
  color: #2d3748;
}
.btn-back-fs:hover { border-color: var(--navy-600, var(--navy-700)); color: var(--navy-700); }
/* 详情页从全屏我的运单打开时：固定全屏覆盖 */
.way-detail-view.detail-fixed {
  position: fixed;
  z-index: 155;
  border-radius: 0;
}
@media (max-width: 768px) {
  #myViewWaybills.fullscreen { padding: 12px 10px 16px; }
}

/* 个人中心：Excel 式表头筛选 */
.my-waybill-table th.my-th {
  position: relative;
  padding-right: 26px;
  padding-left: 26px; /* 与右侧漏斗位对称，保证标题文字视觉居中 */
  text-align: center; /* 表头始终居中 */
  cursor: default;
  user-select: none;
}
.my-th-text { vertical-align: middle; }
.my-filter-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #a0aec0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.my-filter-btn:hover { background: #edf2f7; color: var(--primary-vivid); }
.my-th.active-filter .my-filter-btn { color: var(--primary-vivid); background: var(--primary-soft); }
.my-th.active-filter .my-th-text { color: var(--primary-vivid); }

/* ===== 我的运单：Excel 式单元格内联编辑 ===== */
/* 固定方框：全表格边框线（Excel 网格感），拖选时禁文字选择 */
.my-waybill-table { border-collapse: collapse; /* 列宽拖拽需要表格可超出容器：按内容定宽+至少铺满，容器 overflow-x 滚动 */ width: max-content; min-width: 100%; }
.my-waybill-table th, .my-waybill-table td { border: 1px solid #e2e8f0; }
.my-waybill-table td { user-select: none; padding: 9px 10px; }
/* 列宽拖拽：th 右边框区域变横向双向箭头 */
.my-waybill-table th .col-resize-handle {
  position: absolute; right: -3px; top: 0; bottom: 0; width: 6px;
  cursor: col-resize; z-index: 5;
}
.my-waybill-table td.my-editable { cursor: cell; }
.my-waybill-table td.my-editable:hover { background: #f0f7ff; }
.my-waybill-table td.my-cell-active { outline: 2px solid var(--primary-vivid); outline-offset: -2px; background: #ebf4ff; }
.my-waybill-table th.my-cell-active { background: var(--primary-soft); color: var(--primary-vivid); }
/* Excel 式就地编辑：编辑器铺满整格、无边框无内边距（不再是格中套小框），格子本身即编辑区 */
.my-waybill-table td.my-editing { position: relative; padding: 0 !important; outline: 2px solid var(--primary-vivid); outline-offset: -2px; background: #fff; overflow: visible; /* 客户下拉需要溢出显示 */ }
.my-cell-input, .my-cell-select {
  width: 100%; height: 100%; box-sizing: border-box;
  border: none; border-radius: 0;
  padding: 9px 10px; font-size: 13px; font-family: inherit; color: inherit;
  background: transparent;
}
.my-cell-input:focus, .my-cell-select:focus { outline: none; box-shadow: none; }
.my-cell-input.num { text-align: right; }
/* 数字列：隐藏上下箭头（保险，编辑器已改 type=text） */
.my-cell-input.num::-webkit-outer-spin-button, .my-cell-input.num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.my-cell-input.num { -moz-appearance: textfield; appearance: textfield; }

/* ===== 出账单弹窗 / 我的账单 ===== */
.bill-pick-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.bill-pick-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #edf2f7; font-size: 13px; cursor: pointer; }
.bill-pick-row:last-child { border-bottom: none; }
.bill-pick-row:hover { background: var(--primary-soft); }
.bill-pick-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.bill-status-tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: #fffaf0; color: #b7791f; border: 1px solid #fbd38d;
}
.bill-status-tag.written { background: #f0fff4; color: #276749; border-color: #9ae6b4; }
.my-waybill-table td.my-cell-saving { opacity: .55; }
.my-waybill-table td.my-cell-saved { animation: myCellFlash 1.4s ease; }
@keyframes myCellFlash { 0% { background: #c6f6d5; } 100% { background: transparent; } }
.my-waybill-table td.my-cell-error { background: #fff5f5 !important; outline: 1px solid #fc8181; outline-offset: -1px; }
/* 单元格内客户下拉（复用编辑弹窗的 customer-dropdown，需相对定位锚点） */
.my-waybill-table td .customer-dropdown { position: absolute; left: 0; top: 100%; z-index: 60; min-width: 240px; }
/* 手动新增行（草稿行）：与普通行间距/格式/底色全权一致——td 零内边距 + 控件铺满整格（复用 my-cell-input） */
.my-draft-row td { background: #fff; padding: 0 !important; }
.my-draft-row .my-cell-input, .my-draft-row .my-cell-select {
  width: 100%; height: 100%; box-sizing: border-box;
  border: none; border-radius: 0;
  padding: 9px 10px; font-size: 13px; font-family: inherit; color: inherit;
  background: transparent;
}
.my-draft-row .my-cell-input:focus, .my-draft-row .my-cell-select:focus {
  outline: 2px solid var(--primary-vivid); outline-offset: -2px; background: #ebf4ff;
}
.my-draft-row .my-cell-input.num { text-align: right; }
.my-draft-row td.my-draft-ro { padding: 9px 10px !important; background: #fff; color: #a0aec0; text-align: center; }
.my-draft-row td.my-draft-ro.num { text-align: right; }
.my-draft-actions { white-space: nowrap; display: flex; gap: 6px; justify-content: center; padding: 9px 10px; }
.my-add-row-btn {
  border: 1px dashed var(--primary-vivid); color: var(--primary-vivid); background: #fff;
  border-radius: 6px; padding: 5px 14px; font-size: 13px; cursor: pointer;
}
.my-add-row-btn:hover { background: var(--primary-soft); }
.my-grid-tip { font-size: 12px; color: #a0aec0; }

.table-filter-popover {
  position: absolute;
  z-index: 200;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 12px;
  font-size: 13px;
}
.tf-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
}
.tf-sort {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tf-sort-btn {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  color: #4a5568;
  cursor: pointer;
}
.tf-sort-btn:hover { background: #f7fafc; }
.tf-sort-btn.active { background: var(--primary-soft); border-color: var(--primary-mid); color: var(--primary-vivid); }
.tf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tf-row label {
  width: 40px;
  color: #718096;
  font-size: 12px;
  flex-shrink: 0;
}
.tf-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 13px;
  outline: none;
}
.tf-input:focus { border-color: var(--primary-mid); }
.tf-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  cursor: pointer;
  color: #4a5568;
  font-size: 13px;
}
.tf-check input[type="checkbox"] { margin: 0; }
.tf-list {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 4px 8px;
  margin: 8px 0;
}
.tf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

/* ===== 运单中心 ===== */
/* 运单中心栏目导航 */
.wc-subnav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0;
}
.wc-subnav-btn {
  padding: 9px 18px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #718096;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color .15s, background .15s;
}
.wc-subnav-btn:hover { color: var(--primary-vivid); background: #f7fafc; }
.wc-subnav-btn.active { color: var(--primary-vivid); border-bottom-color: var(--primary-vivid); background: var(--primary-soft); }
.wc-entry-card {
  background: #fafbfd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.wc-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wc-entry-date { font-size: 13px; font-weight: 400; color: #718096; }
.wc-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.wc-stat-chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #4a5568;
}
.wc-stat-chip b { color: var(--primary-vivid); font-size: 15px; margin: 0 2px; }
.wc-hold-btn {
  padding: 3px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  background: #fff;
  transition: opacity .15s;
}
.wc-hold-btn:hover { opacity: .85; }
.wc-hold-btn.is-hold { background: #FFF5F5; color: #C53030; border-color: #FED7D7; }
.wc-hold-btn.no-hold { background: #F0FFF4; color: #276749; border-color: #C6F6D5; }
.wc-carry td { background: #FFF9FA; }
#wcFoot .wc-foot-row td { background: #f7fafc; border-top: 2px solid #e2e8f0; }

/* ===== 渠道管理 ===== */
.cm-tab-panel { margin-top: 16px; }
.cm-input:focus { border-color: var(--primary-vivid); box-shadow: 0 0 0 2px var(--brand-a12); }

/* ===== 查重提示（客户档案重名 + 客户单号已有） ===== */
.cus-dup-hint,
.live-dup-hint {
  font-size: 11px;
  line-height: 1.45;
  color: #b83209;
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 5px;
  max-width: 360px;
}
.live-dup-hint { max-width: 420px; word-break: break-all; }
.cus-dup-note { font-size: 11px; color: #9b2c2c; margin-top: 2px; }
input.dup-input { border-color: #e53e3e !important; box-shadow: 0 0 0 1px rgba(229,62,62,.35); }

/* =========================================================
   移动端响应式增强 (手机/小平板 ≤820px)
   - 侧边栏 → 抽屉菜单
   - 弹窗 → 全屏
   - 表格 → 横向滚动
   - 触控目标 ≥44px / 输入字号 16px(防iOS聚焦缩放)
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
/* 触屏去除双击缩放延迟（保留双指缩放），苹果/安卓手感一致 */
html { touch-action: manipulation; }

/* 移动端导航按钮/遮罩：默认隐藏 */
.menu-btn { display: none; }
.nav-mask {
  display: none; position: fixed; inset: 0; z-index: 1190;
  background: rgba(0,0,0,.45); backdrop-filter: blur(1px);
}
.nav-mask.show { display: block; }
body.nav-open { overflow: hidden; }

/* 所有渲染容器横向滚动（桌面宽度足够时无副作用） */
[id$="Results"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 820px) {

  /* ===== 顶部栏：菜单按钮 + 紧凑标题 ===== */
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--navy-900);
    border-radius: 10px; cursor: pointer;
  }
  .menu-btn:active { background: var(--primary-soft); }
  .topbar {
    flex-direction: row !important; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 900;
    background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
    padding: 8px 2px; margin-bottom: 12px;
  }
  .topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .page-title { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-sub { font-size: 11px; }
  .top-actions { gap: 8px; }
  .top-actions .user-badge { max-width: 120px; overflow: hidden; text-overflow: ellipsis; padding: 5px 10px; }
  .btn-logout { padding: 8px 12px; font-size: 13px; min-height: 40px; }

  /* ===== 侧边栏抽屉 ===== */
  .sidebar {
    display: flex !important;
    transform: translateX(-105%);
    transition: transform .24s ease;
    width: 272px; z-index: 1200;
    box-shadow: 0 0 40px rgba(11,18,33,.25);
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateX(0); }
  .logo-area { padding: 18px 18px 14px; }
  .nav-item { padding: 13px 14px; font-size: 15px; margin-bottom: 4px; border-radius: 12px; }
  .side-user { margin-bottom: 18px; }

  /* ===== 主区域与面板 ===== */
  .main { margin-left: 0 !important; padding: 10px 10px 56px; }
  .tab-panel { padding: 14px 12px; border-radius: 12px; margin-bottom: 12px; }
  .section-title { flex-wrap: wrap; gap: 4px; margin-top: 14px; margin-bottom: 10px; }
  .section-title h2 { font-size: 15px; }
  .result-summary { font-size: 12px; }

  /* ===== 表单与触控 ===== */
  .query-form { gap: 12px; }
  .form-group { min-width: 0; }
  .form-group label { font-size: 13px; }
  .form-group input,
  .form-group .country-select-input,
  .form-select,
  .archive-search input { font-size: 16px; padding: 11px 12px; }
  .btn-query, .btn-add, .btn-save, .btn-cancel { min-height: 46px; font-size: 15px; }
  .btn-query { height: 48px; }
  .form-actions { gap: 10px; }
  .form-actions .btn-cancel, .form-actions .btn-save { flex: 1; text-align: center; justify-content: center; }

  /* 板块分段选择：横向滑动 */
  .seg-group { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .seg-group::-webkit-scrollbar { display: none; }
  .seg-btn { flex: 0 0 auto; min-width: 84px; padding: 11px 6px; font-size: 13px; }

  /* ===== 弹窗全屏 ===== */
  .modal-overlay { align-items: stretch; }
  .modal {
    width: 100% !important; max-width: 100% !important;
    height: 100%; max-height: 100vh; border-radius: 0;
  }
  .modal-header { padding: 12px 14px; }
  .modal-header h3 { font-size: 16px; }
  .modal-close { width: 42px; height: 42px; font-size: 26px; }
  .modal-body { padding: 14px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .modal-footer .btn-cancel, .modal-footer .btn-save,
  .modal-footer .btn-query, .modal-footer .btn-add { flex: 1; justify-content: center; }

  /* ===== 表格 ===== */
  .archive-table, .price-table, .detail-table { font-size: 13px; }
  .archive-table th, .archive-table td { padding: 9px 7px; }
  .price-table th, .price-table td { padding: 9px 7px; }
  .way-no { font-size: 12px; }
  .action-cell { gap: 4px; flex-wrap: wrap; }
  .btn-edit-sm, .btn-del-sm { padding: 6px 10px; min-height: 34px; font-size: 12px; }

  /* 状态/详情标签页横滑 */
  .way-status-tabs, .detail-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .way-tab, .detail-tab { flex: 0 0 auto; }

  /* 工具栏竖排 */
  .archive-toolbar { align-items: stretch; }
  .archive-search { align-items: stretch; }
  .archive-search .btn-query { min-height: 44px; }

  /* ===== 登录页 ===== */
  .login-overlay { padding: 12px; }
  .login-card {
    width: 100%; max-width: 400px; margin: auto;
    padding: 34px 24px 26px; border-radius: 18px;
    max-height: calc(100vh - 24px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .login-logo { width: 68px; }
  .login-title { font-size: 22px; }
  .login-field input { font-size: 16px; height: 48px; }
  .btn-login { height: 50px; font-size: 16px; }

  /* 金额/加载等微调 */
  .cost-amount { font-size: 16px; }
  .loading { padding: 40px 12px; }
  .empty-state { padding: 40px 12px; }
  .country-select-dropdown { max-height: 42vh; font-size: 15px; }
  .hint, .text-muted { font-size: 12px; }

  /* ===== 手机端深度适配（全模块与桌面同功能） ===== */
  /* 通知铃面板不超出屏宽 */
  .nt-panel { width: min(360px, calc(100vw - 24px)); }
  /* 表头列筛选弹层不超出屏宽 */
  .fin-col-pop { width: min(260px, calc(100vw - 24px)); }
  /* 银行卡片区：单列铺满 */
  .bank-cards { overflow-y: auto; }
  .bank-card { width: 100%; box-sizing: border-box; }
  .bank-card-empty { width: 100%; box-sizing: border-box; min-height: 90px; }
  .bank-box-head { flex-wrap: wrap; }
  .bank-box-title { min-width: 0; flex: 1; }
  /* 我的运单全屏页：工具栏可换行、统计卡横向滑动 */
  .my-welcome-card { flex-wrap: wrap; }
  .fin-stats { flex-wrap: wrap; }
  .fin-stat-card { min-width: calc(50% - 6px); box-sizing: border-box; }
  /* 弹窗内表格横向滚动兜底 */
  .modal-body { overflow-x: auto; }
  /* 行内操作按钮加大触控 */
  .action-cell .btn-edit-sm, .action-cell .btn-del-sm { min-height: 38px; }
  /* 抽屉内财务子菜单可滚动（菜单项多时） */
  .sidebar .nav { -webkit-overflow-scrolling: touch; }
  /* 底部安全区（全面屏手势条） */
  .main { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* 我的运单全屏页标题栏紧凑 */
  .my-fullscreen-bar { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 400px) {
  .top-actions .user-badge { display: none !important; }
  .btn-logout { font-size: 12px; padding: 8px 10px; }
  .page-sub { display: none; }
}


/* ===== 旧版个人主题卡片（已升级为全站皮肤弹窗，保留占位兼容） ===== */
.theme-card.active .tc-check { opacity: 1; transform: scale(1); }

/* ===== 主题切换柔和过渡 ===== */
body, .main, .sidebar, .login-overlay, .tab-panel, .topbar, .topbar .page-title, .my-welcome-card,
.seg-btn.active, .nav-item, .nav-item.active, .side-user, .side-avatar, .archive-table th, .price-table th, .archive-table tr, .price-table tr {
  transition: background-color .4s ease, background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}

/* ===== 全局皮肤更换弹窗 ===== */
.theme-modal-overlay {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(11,18,33,.42); backdrop-filter: blur(6px);
  animation: tmFade .18s ease;
}
.theme-modal-overlay.show { display: flex; }
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }
.theme-modal {
  width: 660px; max-width: 100%; max-height: 86vh; overflow: hidden;
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(11,18,33,.35);
  display: flex; flex-direction: column;
  animation: tmPop .22s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes tmPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.tm-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 20px 11px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
}
.tm-head-left h3 { font-size: 16px; font-weight: 700; color: var(--navy-900); letter-spacing: -.2px; }
.tm-head-left p { font-size: 11.5px; color: var(--text-secondary); margin-top: 3px; }
.tm-close {
  width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--text-secondary); font-size: 16px; line-height: 1;
  cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.tm-close:hover { background: var(--primary-soft); color: var(--primary-vivid); border-color: var(--primary-mid); }
.tm-body { padding: 13px 20px 4px; overflow-y: auto; }
.tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.tm-card {
  position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; padding: 0; text-align: left; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px var(--brand-a18); border-color: var(--primary-mid); }
.tm-card.active { border-color: var(--primary-vivid); box-shadow: 0 8px 20px var(--brand-a18); }
.tm-preview { height: 72px; padding: 7px; display: flex; gap: 6px; background: var(--pv-soft); overflow: hidden; box-sizing: border-box; }
.tm-pv-side {
  width: 30%; border-radius: 6px; padding: 6px 5px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; box-sizing: border-box;
  background: var(--pv-side); box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.tm-pv-logo { width: 11px; height: 11px; border-radius: 3px; background: var(--pv-accent); }
.tm-pv-nav { height: 4px; border-radius: 2px; background: var(--pv-nav); width: 90%; }
.tm-pv-nav.on { background: var(--pv-nav-on); width: 78%; }
.tm-pv-main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tm-pv-bar { height: 12px; border-radius: 5px 5px 0 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: flex; align-items: center; padding: 0 6px; }
.tm-pv-bar i { display: block; width: 22px; height: 4px; border-radius: 2px; background: var(--pv-title); }
.tm-pv-card { flex: 1; min-height: 0; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.tm-pv-row { height: 4px; border-radius: 2px; background: rgba(0,0,0,.06); }
.tm-pv-row.w60 { width: 60%; }
.tm-pv-row.w40 { width: 40%; }
.tm-pv-chips { display: flex; gap: 4px; }
.tm-pv-chip { width: 18px; height: 8px; border-radius: 4px; background: var(--pv-primary); opacity: .85; }
.tm-pv-chip.acc { background: var(--pv-accent); }
.tm-pv-btn { width: 30px; height: 8px; border-radius: 4px; background: var(--pv-primary); margin-top: auto; }
.tm-check {
  position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pv-primary); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6);
  transition: opacity .18s, transform .18s; box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.tm-card.active .tm-check { opacity: 1; transform: scale(1); }
.tm-info, .tm-name, .tm-en { display: block; }
.tm-preview { display: flex; }
.tm-pv-side i, .tm-pv-main i, .tm-pv-card i, .tm-pv-logo, .tm-pv-nav, .tm-pv-row, .tm-pv-chip, .tm-pv-btn, .tm-swatches i, .tm-pv-bar i, .tm-check { display: block; }
.tm-pv-main, .tm-pv-card { display: flex; flex-direction: column; }
.tm-pv-chips, .tm-swatches { display: flex; }
.tm-info { display: block; padding: 8px 10px 10px; border-top: 1px solid var(--border); }
.tm-name { font-size: 12.5px; font-weight: 700; color: var(--navy-900); }
.tm-en { font-size: 8px; letter-spacing: 1.2px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; }
.tm-swatches { display: flex; gap: 3px; margin-top: 7px; }
.tm-swatches i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.tm-foot {
  padding: 11px 20px 13px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbfdff;
}
.tm-tip { font-size: 12px; color: var(--text-secondary); }
.tm-foot-actions { display: flex; gap: 8px; }
.tm-btn {
  padding: 7px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .15s; font-family: inherit;
}
.tm-btn.ghost { background: #fff; border-color: var(--border); color: var(--text-secondary); }
.tm-btn.ghost:hover { background: #f6f8fb; color: var(--text); }
.tm-btn.primary { background: var(--navy-900); color: #fff; box-shadow: 0 3px 10px var(--brand-a18); }
.tm-btn.primary:hover { background: var(--navy-700); transform: translateY(-1px); }
@media (max-width: 760px) {
  .theme-modal { width: 100%; max-height: 92vh; }
  .tm-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .tm-body { padding: 16px 16px 4px; }
  .tm-foot { padding: 14px 16px 16px; flex-direction: column; align-items: stretch; }
  .tm-foot-actions { justify-content: flex-end; }
}


/* ===== 通知铃铛（成本/报价变更提醒） ===== */
.my-title-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nt-bell-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.nt-bell-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--brand-a02, #fff);
  color: var(--navy-700, #2c5282);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: background .15s;
}
.nt-bell-btn:hover { background: var(--brand-a08, #f1f5f9); }
.nt-dot {
  position: absolute; top: 4px; right: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #e53e3e; border: 2px solid var(--brand-a00, #fff);
  display: none;
}
.nt-dot.on { display: block; }
.nt-panel {
  position: absolute; top: 42px; right: 0; width: 360px; max-height: 380px; overflow-y: auto;
  background: var(--brand-a00, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
  z-index: 600; display: none;
}
.nt-panel.open { display: block; }
.nt-head {
  position: sticky; top: 0; padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--navy-800, #2a4365);
  background: var(--brand-a00, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.nt-item {
  padding: 10px 14px; border-bottom: 1px dashed var(--border, #e2e8f0);
  font-size: 13px; line-height: 1.55; color: var(--navy-800, #2a4365);
}
.nt-item:last-child { border-bottom: none; }
.nt-item.unread { background: var(--brand-a04, #f7fafc); }
.nt-time { display: block; margin-top: 3px; font-size: 11px; color: #a0aec0; }
.nt-empty { padding: 28px 16px; text-align: center; color: #a0aec0; font-size: 13px; }

/* ===== 财务中心：成本核对徽章 + 收款账户下拉 ===== */
.fin-check-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; cursor: pointer; user-select: none;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.fin-check-badge.no {
  background: #fff5f5; color: #e53e3e; border-color: #feb2b2;
}
.fin-check-badge.no:hover { background: #e53e3e; color: #fff; border-color: #e53e3e; }
.fin-check-badge.ok {
  background: #f0fff4; color: #276749; border-color: #9ae6b4;
}
.fin-check-badge.ok:hover { background: #38a169; color: #fff; border-color: #38a169; }
/* 静态徽标（核对默认态/成本支付列）：只读展示，无指针与悬停变化 */
.fin-check-badge.static { cursor: default; }
.fin-check-badge.static.no:hover { background: #fff5f5; color: #e53e3e; border-color: #feb2b2; }
.fin-check-badge.static.ok:hover { background: #f0fff4; color: #276749; border-color: #9ae6b4; }
.fin-paid-select {
  max-width: 150px; padding: 4px 6px; font-size: 12px;
  border: 1px solid var(--border, #e2e8f0); border-radius: 8px;
  background: var(--brand-a00, #fff); color: var(--navy-800, #2a4365);
  cursor: pointer; outline: none;
}
.fin-paid-select:focus { border-color: var(--navy-700, #2c5282); }


/* ===================================================================== */
/* ==================== 政务大厅 OA（2026-09-20 ㊷） ==================== */
/* ===================================================================== */
/* 侧边栏待办红点 */
.oa-nav-dot {
  display: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: #f56565; box-shadow: 0 0 0 2px rgba(245,101,101,.22); flex-shrink: 0;
}
.oa-nav-dot.on { display: block; animation: oaDotPulse 1.6s ease infinite; }
@keyframes oaDotPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }

/* 入口卡片（钉钉风格） */
.oa-entries { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.oa-entry {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; font-family: inherit; text-align: left; min-width: 240px; flex: 1;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.oa-entry:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,18,33,.10); border-color: var(--primary-mid); }
.oa-entry-ico {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  color: #fff; box-shadow: 0 4px 10px rgba(11,18,33,.16);
}
.oa-ico-expense { background: linear-gradient(135deg, #4299e1, #2b6cb0); }
.oa-ico-leave { background: linear-gradient(135deg, #38b2ac, #2c7a7b); }
.oa-ico-review { background: linear-gradient(135deg, #ed8936, #c05621); }
.oa-entry-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oa-entry-name { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.oa-entry-sub { font-size: 12.5px; color: var(--text-secondary); }
.oa-entry-sub b { color: #c05621; font-size: 14px; }

/* 状态页签 + 类型筛选 */
.oa-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.oa-tabs { display: flex; gap: 4px; padding: 4px; background: #f1f4f9; border-radius: 10px; flex-wrap: wrap; }
.oa-tab {
  border: none; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--text-secondary); transition: all .15s;
}
.oa-tab:hover { color: var(--navy-900); }
.oa-tab.active { background: #fff; color: var(--navy-900); font-weight: 600; box-shadow: 0 2px 6px rgba(11,18,33,.10); }

/* 申请卡片列表 */
.oa-list { display: flex; flex-direction: column; gap: 10px; }
.oa-card {
  display: flex; gap: 14px; padding: 15px 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.oa-card:hover { box-shadow: 0 6px 18px rgba(11,18,33,.08); border-color: var(--primary-mid); }
.oa-card-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff;
}
.oa-card-main { flex: 1; min-width: 0; }
.oa-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--navy-900); }
.oa-amount { color: var(--primary-vivid); font-size: 15px; }
.oa-st { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.oa-st-pending { background: #fef3e2; color: #b45309; }
.oa-st-ok { background: #e6f6ec; color: #276749; }
.oa-st-no { background: #fdeaea; color: #c53030; }
.oa-card-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }
.oa-card-reason { font-size: 13px; color: #4a5568; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 审批进度条 */
.oa-flow { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.oa-step {
  font-size: 11.5px; padding: 2px 10px; border-radius: 99px;
  background: #eef1f6; color: #a0aec0; white-space: nowrap;
}
.oa-step.cur { background: #fef3e2; color: #b45309; font-weight: 600; }
.oa-step.on { background: #e6f0fb; color: #2b6cb0; font-weight: 600; }
.oa-step.rej { background: #fdeaea; color: #c53030; font-weight: 600; }
.oa-step-line { width: 18px; height: 1.5px; background: #dbe2ec; flex-shrink: 0; }
/* 卡片操作按钮 */
.oa-card-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.oa-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
  font-family: inherit; font-size: 12.5px; color: #4a5568; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.oa-btn:hover { background: #f6f8fb; color: var(--navy-900); }
.oa-btn.primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.oa-btn.primary:hover { background: var(--navy-700); }
.oa-btn.danger { color: #c53030; border-color: #fecaca; }
.oa-btn.danger:hover { background: #fdeaea; }

/* 弹窗（复用皮肤弹窗的遮罩风格） */
.oa-overlay {
  position: fixed; inset: 0; z-index: 1300; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(11,18,33,.42); backdrop-filter: blur(5px);
}
.oa-overlay.show { display: flex; }
.oa-modal {
  width: 560px; max-width: 100%; max-height: 88vh; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: 0 26px 70px rgba(11,18,33,.32);
  display: flex; flex-direction: column; animation: tmPop .2s cubic-bezier(.2,.9,.3,1.1);
}
.oa-modal-lg { width: 620px; }
.oa-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px 12px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
}
.oa-modal-head h3 { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.oa-modal-body { padding: 16px 20px; overflow-y: auto; }
.oa-modal-foot { padding: 12px 20px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #fbfdff; }
.oa-modal-foot:empty { display: none; }
.oa-req { color: #e53e3e; }
.oa-modal-body label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.oa-modal-body input[type="text"], .oa-modal-body input[type="date"], .oa-modal-body textarea, .oa-modal-body select {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--text);
}
.oa-modal-body input:focus, .oa-modal-body textarea:focus, .oa-modal-body select:focus {
  outline: none; border-color: var(--primary-mid); box-shadow: 0 0 0 3px var(--brand-a12);
}
.oa-modal-body input[type="file"] { font-size: 13px; }

/* 详情弹窗内容 */
.oa-detail-grid { display: flex; flex-direction: column; gap: 2px; }
.oa-detail-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #edf1f7; }
.oa-detail-row:last-child { border-bottom: none; }
.oa-detail-label { width: 84px; flex-shrink: 0; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.oa-detail-val { flex: 1; font-size: 13.5px; color: var(--navy-900); word-break: break-all; }
.oa-atts { display: flex; flex-wrap: wrap; gap: 8px; }
.oa-att {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: #f8fafc;
  font-family: inherit; font-size: 12.5px; color: #4a5568; cursor: pointer; transition: all .15s;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oa-att:hover { border-color: var(--primary-mid); color: var(--primary-vivid); background: var(--primary-soft); }
.oa-review-item { padding: 8px 0; border-bottom: 1px dashed #edf1f7; font-size: 13.5px; color: var(--navy-900); }
.oa-review-item:last-child { border-bottom: none; }
.oa-review-by { margin-left: 10px; font-size: 12.5px; color: var(--text-secondary); }
.oa-review-note { margin-top: 4px; font-size: 12.5px; color: #4a5568; background: #f8fafc; border-radius: 6px; padding: 6px 10px; }
/* 审批操作区 */
.oa-review-box { width: 100%; }
.oa-review-box input[type="text"] {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 14px; margin-bottom: 10px;
}
.oa-review-btns { display: flex; justify-content: flex-end; gap: 10px; }
.oa-review-btns .oa-btn { padding: 8px 22px; font-size: 13.5px; }

/* ===== 手机端适配（iOS/安卓） ===== */
@media (max-width: 820px) {
  .oa-entries { gap: 10px; }
  .oa-entry { min-width: 0; width: 100%; flex: 1 1 100%; padding: 14px 16px; }
  .oa-entry-ico { width: 42px; height: 42px; font-size: 19px; }
  .oa-entry-name { font-size: 15px; }
  .oa-list-head { flex-direction: column; align-items: stretch; }
  .oa-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; min-width: 0; width: 100%; box-sizing: border-box; }
  .oa-tab { white-space: nowrap; padding: 8px 12px; }
  .oa-card { flex-wrap: wrap; padding: 13px 14px; }
  .oa-card-ico { width: 38px; height: 38px; font-size: 17px; }
  .oa-card-actions { flex-direction: row; width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .oa-btn { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .oa-modal { width: 100%; max-height: 92vh; border-radius: 14px; }
  .oa-overlay { padding: 10px; align-items: flex-end; }
  .oa-modal-body input, .oa-modal-body select, .oa-modal-body textarea { font-size: 16px; } /* 防 iOS 聚焦自动放大 */
  .oa-review-btns .oa-btn { flex: 1; min-height: 44px; }
  .oa-detail-label { width: 76px; }
}

/* ===== 个人中心 · 我的客户（mc- 前缀独立命名空间，勿与其他版块混用） ===== */
.mc-stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.mc-stat-card { background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 14px 18px; position: relative; overflow: hidden; }
.mc-stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, #c79a3b); }
.mc-stat-card.warn::before { background: #dc2626; }
.mc-stat-card .lab { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.mc-stat-card .val { font-size: 24px; font-weight: 800; color: var(--primary, #1a2942); line-height: 1.15; }
.mc-stat-card .val small { font-size: 13px; font-weight: 600; color: #94a3b8; }
.mc-stat-card .foot { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.mc-stat-card .foot b { color: #d97706; }
.mc-toolbar { background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-toolbar input[type=text] { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 7px 12px; font-size: 13px; width: 200px; outline: none; background: #fff; color: inherit; }
.mc-toolbar input[type=text]:focus { border-color: var(--accent, #c79a3b); }
.mc-tb-label { font-size: 12px; color: #94a3b8; }
.mc-seg { display: flex; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.mc-seg button { border: none; background: #fff; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #64748b; border-right: 1px solid var(--border, #e2e8f0); }
.mc-seg button:last-child { border-right: none; }
.mc-seg button.on { background: var(--primary, #1a2942); color: #fff; font-weight: 600; }
.mc-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; cursor: pointer; user-select: none; }
.mc-chk input { accent-color: #dc2626; }
.mc-spacer { flex: 1; }
.mc-cnt { font-size: 12px; color: #94a3b8; }
.mc-main { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.mc-side { display: flex; flex-direction: column; gap: 14px; }
.mc-panel { background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; overflow: hidden; }
.mc-panel-h { padding: 12px 18px; border-bottom: 1px solid var(--border, #e2e8f0); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-panel-h .mc-t { font-weight: 700; color: var(--primary, #1a2942); font-size: 14px; }
.mc-panel-h .mc-s { font-size: 12px; color: #94a3b8; font-weight: 400; }
.mc-table-wrap { overflow-x: auto; max-height: 68vh; overflow-y: auto; }
table.mc-rank { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mc-rank th { background: #f8fafc; color: #64748b; font-weight: 600; padding: 10px 12px; text-align: left; white-space: nowrap; font-size: 12px; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 1; }
table.mc-rank th:nth-child(2), table.mc-rank td:nth-child(2) { min-width: 200px; } /* 客户名列保证宽度，避免逐字换行 */
table.mc-rank th .arr { color: var(--accent, #c79a3b); }
table.mc-rank td { padding: 10px 12px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
table.mc-rank tr.mc-crow { cursor: pointer; transition: background .12s; }
table.mc-rank tr.mc-crow:hover { background: #f8f6ef; }
table.mc-rank tr.mc-crow.open { background: #fdfaf3; }
.mc-rk { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #64748b; }
.mc-rk.top1 { background: linear-gradient(135deg, #f6d365, #c79a3b); color: #fff; }
.mc-rk.top2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.mc-rk.top3 { background: linear-gradient(135deg, #d6a05a, #a1703a); color: #fff; }
.mc-cname { font-weight: 700; color: var(--primary, #1a2942); }
.mc-csub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.mc-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.mc-b-act { background: #dcfce7; color: #16a34a; }
.mc-b-warn { background: #fef3c7; color: #d97706; }
.mc-b-sleep { background: #fee2e2; color: #dc2626; }
.mc-b-new { background: #dbeafe; color: #2563eb; }
.mc-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.mc-profit { color: var(--accent, #c79a3b); font-weight: 800; }
.mc-dim { color: #94a3b8; font-weight: 400; }
.mc-spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.mc-spark i { flex: 1; min-width: 4px; background: #e2e8f0; border-radius: 2px 2px 0 0; }
.mc-spark i.hot { background: var(--accent, #c79a3b); }
table.mc-rank tr.mc-detail td { background: #fdfaf3; padding: 16px 20px; }
.mc-d-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.mc-d-box { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 14px 16px; }
.mc-d-box h4 { font-size: 13px; color: var(--primary, #1a2942); margin: 0 0 10px; display: flex; justify-content: space-between; }
.mc-d-box h4 span { font-weight: 400; color: #94a3b8; font-size: 11px; }
.mc-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 6px; }
.mc-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.mc-chart .bar { width: 70%; background: linear-gradient(180deg, #e8c66a, #c79a3b); border-radius: 3px 3px 0 0; min-height: 2px; }
.mc-chart .bar.zero { background: #e2e8f0; }
.mc-chart .bl { font-size: 10px; color: #94a3b8; white-space: nowrap; }
.mc-chart .bv { font-size: 10px; color: #64748b; font-weight: 600; }
table.mc-mini { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mc-mini th { color: #94a3b8; font-weight: 600; text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--border, #e2e8f0); }
table.mc-mini th:first-child, table.mc-mini td:first-child { text-align: left; }
table.mc-mini td { text-align: right; padding: 5px 8px; border-bottom: 1px solid #f1f5f9; font-variant-numeric: tabular-nums; }
.mc-insight { margin-top: 12px; background: linear-gradient(90deg, #fdf6e3, #fff); border: 1px solid #f0e2b8; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #7c5e10; line-height: 1.7; }
.mc-insight b { color: var(--primary, #1a2942); }
.mc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mc-tagchip { font-size: 11px; background: #f1f5f9; color: #64748b; border-radius: 4px; padding: 2px 7px; }
.mc-hbars { padding: 12px 16px 14px; }
.mc-hbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; }
.mc-hbar-row .nm { width: 108px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-hbar-row .tr { flex: 1; height: 14px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.mc-hbar-row .fl { display: block; height: 100%; background: linear-gradient(90deg, #2e4a6e, #1a2942); border-radius: 4px; }
.mc-hbar-row .vl { width: 66px; text-align: right; font-weight: 700; color: var(--primary, #1a2942); font-variant-numeric: tabular-nums; }
.mc-pareto { padding: 0 16px 14px; font-size: 12px; color: #64748b; line-height: 1.6; }
.mc-pareto b { color: var(--accent, #c79a3b); }
.mc-alert-item { display: flex; gap: 10px; padding: 11px 16px; border-top: 1px solid #f1f5f9; font-size: 12.5px; align-items: flex-start; }
.mc-alert-item .ico { font-size: 15px; line-height: 1.3; }
.mc-alert-item .tt { font-weight: 700; color: var(--primary, #1a2942); }
.mc-alert-item .dd { color: #64748b; margin-top: 2px; line-height: 1.5; }
.mc-alert-item button { margin-left: auto; flex: none; border: 1px solid var(--accent, #c79a3b); background: #fff; color: var(--accent, #c79a3b); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.mc-alert-item button:hover { background: var(--accent, #c79a3b); color: #fff; }
.mc-trend { padding: 14px 16px 16px; }
.mc-legend { display: flex; gap: 14px; font-size: 11px; color: #64748b; margin-bottom: 8px; }
.mc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.mc-empty { text-align: center; color: #94a3b8; padding: 36px 0; font-size: 13px; }
@media (max-width: 1100px) {
  .mc-main { grid-template-columns: 1fr; }
  .mc-stat-row { grid-template-columns: repeat(2, 1fr); }
  .mc-d-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .mc-stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mc-toolbar input[type=text] { width: 100%; }
  .mc-panel-h { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ===== 我的运单 · 列设置弹层 ===== */
.my-colset-pop { position: absolute; z-index: 2600; width: 220px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.16); padding: 10px 12px; display: none; }
.my-colset-title { font-size: 13px; font-weight: 700; color: #1a2942; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.my-colset-title span { font-size: 11px; font-weight: 400; color: #94a3b8; }
.my-colset-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.my-colset-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #334155; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.my-colset-item:hover { background: #f8fafc; }
.my-colset-item.locked { color: #94a3b8; cursor: default; }
.my-colset-item input { accent-color: #c79a3b; cursor: pointer; }
.my-colset-item.locked input { cursor: default; }
.my-colset-lock { font-size: 10px; background: #f1f5f9; color: #94a3b8; border-radius: 4px; padding: 1px 5px; margin-left: auto; }
.my-colset-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.my-colset-foot button { flex: 1; border: 1px solid #e2e8f0; background: #fff; color: #4a5568; border-radius: 6px; padding: 5px 0; font-size: 12px; cursor: pointer; }
.my-colset-foot button:hover { border-color: #c79a3b; color: #c79a3b; }

/* ===== 业务汇总：快捷筛选 chips + 收款确认 + 信息徽标 ===== */
.fin-chips { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.fin-chip { border: 1px solid #dfe3ea; background: #fff; color: #4a5568; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fin-chip b { font-variant-numeric: tabular-nums; }
.fin-chip.active { border-color: var(--primary, #c79a3b); background: #fdf6e3; color: #8a5a00; font-weight: 600; }
.fin-chip.warn b { color: #b45309; }
.btn-rc-open { border: none; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: linear-gradient(135deg, #c79a3b, #b3852c); color: #fff; font-weight: 600; white-space: nowrap; }
.btn-rc-open:hover { filter: brightness(1.07); }
.fin-info-badge { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; line-height: 1.6; margin: 1px 2px 1px 0; background: #fff7e6; color: #b45309; border: 1px solid #f2d8a0; white-space: nowrap; }
.fin-info-badge.ok { background: #e9f7ef; color: #276749; border-color: #c3e6d2; }
.fin-cust-link { color: #2b6cb0; cursor: pointer; border-bottom: 1px dashed #b8cff0; }
.fin-cust-link:hover { color: #1d4f91; }

/* ===== 收款确认弹层 ===== */
.rc-mask { position: fixed; inset: 0; background: rgba(32, 25, 18, .48); display: flex; z-index: 1200; }
.rc-card { background: #f3f4f6; margin: 3vh 3.5vw; flex: 1; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.rc-head { background: #fff; border-bottom: 1px solid #e6e9ef; padding: 14px 20px; display: flex; align-items: center; }
.rc-head h3 { font-size: 16px; color: #3d2c1e; margin: 0; flex: 1; }
.rc-x { border: none; background: #f1f5f9; color: #64748b; width: 30px; height: 30px; border-radius: 8px; font-size: 17px; cursor: pointer; }
.rc-x:hover { background: #e2e8f0; color: #2d3748; }
.rc-body { flex: 1; display: flex; min-height: 0; }
.rc-rail { width: 300px; flex: 0 0 300px; background: #fff; border-right: 1px solid #e6e9ef; display: flex; flex-direction: column; }
.rc-rail-search { padding: 12px 14px 8px; }
.rc-rail-search input { width: 100%; border: 1px solid #dfe3ea; border-radius: 8px; padding: 8px 11px; font-size: 13px; outline: none; }
.rc-cust-list { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.rc-cust { padding: 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; border: 1px solid transparent; }
.rc-cust:hover { background: #faf6ee; }
.rc-cust.active { background: #fdf6e3; border-color: #ecd9a4; }
.rc-cust .nm { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.rc-cust .nm .amt { color: #b45309; font-variant-numeric: tabular-nums; }
.rc-cust .mt { font-size: 12px; color: #8b93a1; margin-top: 3px; }
.rc-rail-foot { padding: 10px 14px; border-top: 1px solid #eef1f5; font-size: 12.5px; color: #8b93a1; }
.rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-main-head { padding: 13px 18px 10px; font-size: 14px; font-weight: 700; color: #3d2c1e; display: flex; align-items: baseline; gap: 12px; }
.rc-main-head .rc-meta { font-size: 12.5px; color: #8b93a1; font-weight: 400; }
.rc-tbl-wrap { margin: 0 14px; flex: 1; overflow: auto; background: #fff; border: 1px solid #e6e9ef; border-radius: 10px; }
.rc-foot { background: #fff; border-top: 1px solid #e6e9ef; padding: 12px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.rc-foot b { font-variant-numeric: tabular-nums; }
.rc-foot input[type="text"] { border: 1px solid #dfe3ea; border-radius: 8px; padding: 8px 11px; font-size: 14px; width: 130px; text-align: right; outline: none; font-variant-numeric: tabular-nums; }
.rc-diff-ok { color: #276749; font-weight: 600; }
.rc-diff-short { color: #b45309; font-weight: 600; }
.rc-diff-over { color: #c53030; font-weight: 600; }

/* ===== 工资核算版块 ===== */
.wg-bar { background: #fff; border: 1px solid #e6e9ef; border-radius: 12px; padding: 11px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 12px; }
.wg-tabs { display: flex; gap: 6px; margin-left: auto; }
.wg-tab { border: 1px solid #dfe3ea; background: #fff; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #4a5568; }
.wg-tab.active { background: #f3effc; border-color: #c9b8ec; color: #6b46c1; font-weight: 600; }
.wg-card { background: #fff; border: 1px solid #e6e9ef; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.wg-card-h { padding: 11px 16px; font-size: 13.5px; font-weight: 700; color: #3d2c1e; border-bottom: 1px solid #eef1f5; display: flex; gap: 12px; align-items: center; }
.wg-card-h .tip { font-size: 12px; color: #8b93a1; font-weight: 400; }
table.wg-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.wg-tbl th, table.wg-tbl td { padding: 9px 12px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
table.wg-tbl th { background: #faf6ee; text-align: center; font-size: 12.5px; color: #4a3b28; }
table.wg-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.wg-tbl tr:last-child td { border-bottom: none; }
.wg-rate-in { width: 58px; border: 1px solid #dfe3ea; border-radius: 6px; padding: 5px 7px; font-size: 13px; text-align: right; outline: none; }
.wg-foot-bar { padding: 12px 16px; border-top: 1px solid #eef1f5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; background: #fffdf6; }
.wg-foot-bar b { font-variant-numeric: tabular-nums; }
.btn-wg { border: none; border-radius: 8px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; background: linear-gradient(135deg, #6b46c1, #553c9a); color: #fff; font-weight: 600; white-space: nowrap; }
.btn-wg:hover { filter: brightness(1.07); }
.btn-wg[disabled] { opacity: .45; cursor: not-allowed; }
.wg-undo-btn { border: 1px solid #e2c9c9; background: #fff; color: #c53030; border-radius: 6px; padding: 2px 9px; font-size: 12px; cursor: pointer; }
.wg-undo-btn:hover { background: #fff5f5; }
