/*! 船舶航线班次数据管理系统 · 深色深蓝主题
 * 视觉层仅依赖现有 DOM / class，不改变业务脚本、接口或页面结构。
 */
:root {
  --bg: #07111f; --bg-2: #0b1728; --panel: #0f1d31; --panel-2: #12243b;
  --panel-3: #162b45; --line: #203654; --line-soft: #182c46;
  --text: #e7f0fc; --text-2: #c1d0e3; --muted: #8295ad; --faint: #5d718b;
  --blue: #2f8cff; --blue-2: #57adff; --blue-soft: rgba(47,140,255,.14);
  --cyan: #35c2d8; --green: #31c48d; --green-soft: rgba(49,196,141,.14);
  --orange: #f5ad4c; --orange-soft: rgba(245,173,76,.14);
  --red: #f07178; --red-soft: rgba(240,113,120,.14); --purple: #9b8cff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(0,0,0,.24); --shadow-sm: 0 4px 16px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 13px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% -10%, rgba(47,140,255,.12), transparent 35%), linear-gradient(135deg, rgba(24,56,93,.18), transparent 45%); z-index: -1; }
a { color: var(--blue-2); text-decoration: none; }
button, input, select { font: inherit; }
button, .sb-item, .sb-group-title, .drop, .chip { -webkit-tap-highlight-color: transparent; }

/* 顶部与导航 */
.topbar { height: 68px; display: flex; align-items: center; gap: 22px; padding: 0 28px; position: sticky; top: 0; z-index: 50; background: rgba(8,20,35,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.topbar .brand { width: 260px; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.topbar .brand .logo, .login-box .logo { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #1975ea, #54c3ff); box-shadow: 0 8px 22px rgba(47,140,255,.34); }
.topbar .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.topbar .brand-text .en { color: var(--faint); font-size: 9px; letter-spacing: 1.3px; }
.topbar .brand-text .cn { color: var(--text); font-size: 14px; margin-top: 3px; }
.topbar .crumb { flex: 1; color: var(--muted); font-size: 12px; }
.topbar .crumb b { color: var(--text-2); font-weight: 500; margin-left: 5px; }
.topbar .who { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 5px; border: 1px solid var(--line); border-radius: 24px; background: rgba(18,36,59,.78); }
.topbar .who .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1c65c8, #42b9d6); color: #fff; font-weight: 700; }
.topbar .who .name { font-size: 12px; font-weight: 600; display: block; }
.topbar .who .unit { color: var(--muted); font-size: 10px; display: block; }
.topbar button.link { margin-left: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; color: var(--text-2); background: transparent; cursor: pointer; }
.topbar button.link:hover { border-color: var(--blue); color: var(--blue-2); background: var(--blue-soft); }
.layout { display: flex; min-height: calc(100vh - 68px); }
.sidebar { width: 260px; flex: 0 0 260px; padding: 20px 14px 24px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; background: linear-gradient(180deg, #0a192b, #091525 78%, #0b1c31); border-right: 1px solid var(--line); }
.sidebar::-webkit-scrollbar, .scroll-y::-webkit-scrollbar { width: 6px; height: 6px; }
.sidebar::-webkit-scrollbar-thumb, .scroll-y::-webkit-scrollbar-thumb { background: #254362; border-radius: 10px; }
.sb-group { margin-bottom: 18px; }
.sb-group-title { display: flex; align-items: center; gap: 9px; padding: 8px 12px 7px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.sb-group-title .caret { margin-left: auto; transition: transform .2s; }
.sb-group.collapsed .caret { transform: rotate(-90deg); }
.sb-group.collapsed .sb-group-items { display: none; }
.sb-group-items { display: flex; flex-direction: column; gap: 4px; }
.sb-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--text-2); cursor: pointer; transition: .18s ease; }
.sb-item:hover { color: #fff; background: rgba(47,140,255,.08); border-color: rgba(47,140,255,.12); }
.sb-item.active { color: #fff; font-weight: 600; background: linear-gradient(90deg, rgba(47,140,255,.26), rgba(47,140,255,.08)); border-color: rgba(87,173,255,.28); box-shadow: inset 3px 0 0 var(--blue), 0 8px 20px rgba(0,0,0,.12); }
.sb-icon { width: 18px; display: inline-flex; justify-content: center; align-items: center; filter: saturate(.85); }
.sb-item .badge-mini { margin-left: auto; padding: 2px 6px; border-radius: 5px; color: var(--faint); background: rgba(255,255,255,.07); font-size: 10px; }
.sidebar .sb-bottom { margin-top: 24px; padding: 17px 12px 0; border-top: 1px solid var(--line); }
.sidebar .sb-bottom .logout { color: var(--muted); cursor: pointer; padding: 7px 0; }
.sidebar .sb-bottom .logout:hover { color: var(--red); }

/* 主区、标题、按钮 */
.main { flex: 1; min-width: 0; overflow: auto; padding: 28px 32px 42px; background: linear-gradient(180deg, rgba(8,19,33,.54), rgba(7,17,31,.9)); }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.page-head .bread { color: var(--faint); font-size: 11px; margin-bottom: 6px; }
.page-head h1 { margin: 0; color: var(--text); font-size: 25px; line-height: 1.25; letter-spacing: -.3px; }
.page-head .subtitle { color: var(--muted); margin-top: 6px; font-size: 12px; }
.page-head .actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn, .page-head .actions button, .filters .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--blue); border-radius: 8px; padding: 8px 14px; color: #fff; background: linear-gradient(135deg, #237be6, #2f8cff); cursor: pointer; box-shadow: 0 6px 14px rgba(47,140,255,.18); transition: .18s; }
.btn:hover, .page-head .actions button:hover, .filters .btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost, .btn-outline { color: var(--text-2) !important; border-color: var(--line) !important; background: var(--panel-2) !important; box-shadow: none !important; }
.btn.ghost:hover, .btn-outline:hover { color: var(--blue-2) !important; border-color: var(--blue) !important; background: var(--blue-soft) !important; }
.btn.sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.btn.danger { background: linear-gradient(135deg, #c95161, #f07178); border-color: #f07178; }
.btn-primary { border: 1px solid var(--blue); }

/* 卡片与 KPI */
.card { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,34,56,.96), rgba(12,26,44,.96)); box-shadow: var(--shadow-sm); }
.card-head { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 14px 18px; color: var(--text); font-weight: 650; border-bottom: 1px solid var(--line); background: rgba(21,43,69,.38); }
.card-head .right { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.card-body { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { min-height: 126px; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #132740, #0f2035); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.kpi .kpi-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-2); background: var(--blue-soft); font-size: 19px; }
.kpi.orange .kpi-icon { color: var(--orange); background: var(--orange-soft); }
.kpi.green .kpi-icon { color: var(--green); background: var(--green-soft); }
.kpi.purple .kpi-icon { color: var(--purple); background: rgba(155,140,255,.14); }
.kpi .kpi-body { min-width: 0; }
.kpi .kpi-body .k { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.kpi .kpi-body .v { color: var(--text); font: 700 25px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.5px; }
.kpi .kpi-body .v small, .kpi .kpi-body .d { color: var(--muted); font-size: 11px; font-weight: 400; }
.kpi .kpi-body .d { margin-top: 7px; }
.sub-up, .status.bad, .badge.danger { color: var(--red) !important; }
.sub-down, .status.ok, .badge.success { color: var(--green) !important; }
.divider { height: 1px; margin: 14px 0; background: var(--line); }

/* 状态、标签、筛选 */
.status-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.status-tabs .seg, .chart-toolbar .seg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 8px 12px; color: var(--text-2); background: var(--panel); cursor: pointer; transition: .18s; }
.status-tabs .seg:hover, .status-tabs .seg.active, .chart-toolbar .seg:hover, .chart-toolbar .seg.active { color: #fff; border-color: var(--blue); background: var(--blue-soft); }
.status-tabs .seg.active { box-shadow: inset 0 0 0 1px rgba(87,173,255,.12); }
.status-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.status-tabs .danger .dot { background: var(--orange); }.status-tabs .success .dot { background: var(--green); }
.status-tabs .cnt { min-width: 20px; padding: 1px 6px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.08); font-size: 11px; text-align: center; }
.status-tabs .active .cnt { color: #fff; background: var(--blue); }.status-tabs .right { margin-left: auto; }.muted { color: var(--muted) !important; }
.dim-tabs { display: inline-flex; gap: 4px; }.dim-tabs .tab, .fd-tabs .seg { padding: 6px 11px; border-radius: 6px; color: var(--muted); cursor: pointer; }.dim-tabs .tab:hover, .dim-tabs .tab.active { color: var(--blue-2); background: var(--blue-soft); }
.search-box { position: relative; margin-bottom: 10px; }.search-box::before { content: "⌕"; position: absolute; left: 13px; top: 7px; color: var(--muted); font-size: 18px; }.search-box input { width: 100%; padding: 10px 14px 10px 34px; }
.chip-row, .filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }.chip { display: flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel-2); }.chip select { min-width: 86px; }.chip select, .chip input { color: var(--text-2); border: none; outline: none; background: transparent !important; }.chip select option, select option { color: var(--text); background: var(--panel-2); }
.filters .fld { display: flex; flex-direction: column; gap: 5px; min-width: 130px; }.filters label, .manual-form label, .dept-config label { color: var(--muted); font-size: 11px; }
input, select, textarea { color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: #0b1b2e; outline: none; }.filters select, .filters input { min-height: 34px; }.filters input:focus, .filters select:focus, .manual-form input:focus, .manual-form select:focus, .search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,140,255,.13); }

/* 表格与统计卡 */
.scroll-y { max-height: 540px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table.grid, table.map, table.fd, table.person-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; background: var(--panel-2); overflow: hidden; }
table.grid th, table.grid td, table.map th, table.map td, table.fd th, table.fd td, table.person-table th, table.person-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
table.grid thead th, table.map th, table.fd th, table.person-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #142943; font-weight: 650; }.scroll-y table.grid th { top: 0; }
table.grid tbody tr:hover td, table.fd tr:hover td, table.person-table tr:hover td { background: rgba(47,140,255,.07); }.grid td.num, .person-table td.num { text-align: right; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }.grid td.dim, .f-name, .p-name { color: var(--blue-2); font-weight: 600; }
table.grid tr.total-row { background: rgba(47,140,255,.12); font-weight: 700; } table.grid tr.total-row td { border-top: 1px solid var(--blue); }.status, .badge, .imp-status, .fd-badge, .imp-version, .agg-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.08); color: var(--text-2); }.status.ok, .badge.success, .imp-status.ok { background: var(--green-soft); }.status.warn, .imp-status.renamed, .imp-status.needs-confirm { color: var(--orange); background: var(--orange-soft); }.status.bad, .badge.danger, .imp-status.error { background: var(--red-soft); }.status.normal, .badge, .badge.entry, .fd-badge.unit { color: var(--blue-2); background: var(--blue-soft); }
.agg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.agg-block { position: relative; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }.agg-block::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue); }.agg-block.month::before { background: var(--green); }.agg-block.year::before { background: var(--purple); }.agg-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }.agg-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--blue-2); background: var(--blue-soft); }.month .agg-icon { color: var(--green); background: var(--green-soft); }.year .agg-icon { color: var(--purple); background: rgba(155,140,255,.14); }.agg-head-text { min-width: 0; }.agg-k { font-weight: 650; }.agg-sub, .agg-row .lab, .agg-foot { color: var(--muted); font-size: 11px; }.agg-rows { display: flex; flex-direction: column; }.agg-row { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line); }.agg-row:last-child { border: 0; }.agg-row .val { color: var(--text); font: 650 14px ui-monospace, monospace; }.agg-row.highlight { margin: 0 -7px; padding: 8px 9px; border: 0; border-radius: 6px; background: var(--blue-soft); }.agg-row.highlight .val { color: var(--blue-2); font-size: 17px; }.agg-foot { display: flex; justify-content: space-between; padding-top: 9px; margin-top: 5px; border-top: 1px dashed var(--line); }

/* 导入、图表、提示 */
.chart-toolbar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; background: var(--panel-2); }.chart-toolbar .ct-label { color: var(--muted); margin-right: 4px; }.chart-toolbar .seg { padding: 5px 10px; border-radius: 6px; }.chart-box { width: min(100%, 760px); padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #0c1d31; }.chart-box canvas { width: 100% !important; height: auto !important; }.drop { padding: 30px 20px; text-align: center; border: 1px dashed #386085; border-radius: 10px; color: var(--muted); background: rgba(15,39,64,.55); cursor: pointer; transition: .18s; }.drop:hover, .drop.hovering { color: var(--blue-2); border-color: var(--blue); background: var(--blue-soft); }.drop-icon { font-size: 30px; }.drop-title { color: var(--text-2); font-size: 14px; }.imp-queue, .imp-result { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }.imp-queue-head, .imp-result-head, .imp-result-summary { padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(22,43,69,.6); }.imp-list, .imp-result-list { display: flex; flex-direction: column; gap: 7px; padding: 10px 14px 14px; }.imp-row, .imp-result-row { display: grid; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #10243c; }.imp-row { grid-template-columns: 28px 1fr 140px 100px 100px 36px; }.imp-result-row { grid-template-columns: 28px 1fr 1fr 140px 100px 110px; }.imp-row:hover, .imp-result-row:hover { border-color: #386b9c; }.imp-idx { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-2); background: var(--blue-soft); }.imp-name, .imp-old, .imp-new { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.imp-size, .imp-meta { color: var(--muted); font: 11px ui-monospace, monospace; }.imp-action, .imp-queue-actions, .f-ops, .p-ops { display: flex; align-items: center; gap: 7px; }.imp-remove, .f-ops button, .p-ops button { color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: var(--panel); cursor: pointer; }.imp-remove:hover, .f-ops button:hover, .p-ops button:hover { color: var(--blue-2); border-color: var(--blue); }.imp-result-row.success { border-left: 3px solid var(--green); }.imp-result-row.failed { border-left: 3px solid var(--red); }.note { padding: 10px 12px; margin: 10px 0; border: 1px solid rgba(245,173,76,.34); border-radius: 7px; color: var(--orange); background: var(--orange-soft); }.note.ok { color: var(--green); border-color: rgba(49,196,141,.3); background: var(--green-soft); }.note.bad { color: var(--red); border-color: rgba(240,113,120,.3); background: var(--red-soft); }.empty { padding: 30px; color: var(--muted); text-align: center; }

/* 字段、人员、表单与弹窗 */
table.map select { width: 100%; color: var(--text); border: 1px solid var(--line); background: #0b1b2e; }.unmatched { background: var(--red-soft) !important; color: var(--red) !important; }.fd-tabs { display: inline-flex; gap: 3px; }.fd-tabs .seg { border: 1px solid transparent; }.fd-tabs .seg.active { color: #fff; background: var(--blue); }.f-type.select { color: var(--green); }.f-type.number { color: var(--orange); }.f-type.date { color: var(--blue-2); }.fd-badge.req { color: var(--red); background: var(--red-soft); }.fd-badge.opt, .fd-badge.fixed { color: var(--muted); background: rgba(255,255,255,.07); }.f-val { font-family: ui-monospace, monospace; }.dept-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }.dept-config .fld, .manual-form .fld { display: flex; flex-direction: column; gap: 5px; }.dept-config .fld input, .manual-form input, .manual-form select { width: 100%; }.manual-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }.manual-form .fld.full, .manual-form .add-row { grid-column: 1 / -1; }.manual-form .add-row { display: flex; justify-content: space-between; align-items: center; }.modal-overlay, .upload-overlay { display: none; position: fixed; inset: 0; z-index: 80; align-items: flex-start; justify-content: center; padding: 70px 20px 20px; background: rgba(3,10,19,.76); backdrop-filter: blur(5px); }.modal-overlay.show, .upload-overlay.show { display: flex; }.modal-overlay .panel, .upload-overlay .panel { width: min(900px, 94vw); max-height: 84vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #0f2137; box-shadow: var(--shadow); }.modal-overlay .head { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }.modal-overlay .head strong { color: var(--text); }.modal-overlay .head .close { margin-left: auto; padding: 4px 9px; color: var(--muted); cursor: pointer; border-radius: 6px; }.modal-overlay .head .close:hover { color: #fff; background: var(--red-soft); }.modal-overlay .body { padding: 18px; }.upload-overlay .panel { padding: 22px; }.upload-overlay .panel h3 { margin-top: 0; color: var(--text); }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 70% 20%, rgba(47,140,255,.18), transparent 32%), linear-gradient(135deg, #06101d, #0b2742 55%, #071525); }.login-box { width: min(410px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15,31,51,.94); box-shadow: var(--shadow); }.login-box .logo { margin: 0 auto 18px; width: 52px; height: 52px; font-size: 23px; }.login-box h1 { margin: 0 0 5px; color: var(--text); font-size: 19px; text-align: center; }.login-box .desc { margin-bottom: 24px; color: var(--muted); text-align: center; }.login-box label { display: block; margin: 13px 0 5px; color: var(--text-2); font-size: 12px; }.login-box input { width: 100%; padding: 11px 12px; }.login-box .btn { width: 100%; margin-top: 20px; padding: 11px; font-size: 14px; }.login-box .err { min-height: 17px; margin-top: 11px; color: var(--red); text-align: center; }.login-box .hint { margin-top: 18px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 11px; line-height: 1.8; }

@media (max-width: 1100px) { .sidebar { width: 220px; flex-basis: 220px; }.topbar .brand { width: 220px; }.main { padding: 24px 20px 34px; }.kpis { grid-template-columns: repeat(2, 1fr); }.agg-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .topbar { height: auto; min-height: 62px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }.topbar .brand { width: auto; flex: 1; }.topbar .crumb { order: 3; flex-basis: 100%; }.topbar .who { display: none; }.layout { display: block; }.sidebar { width: 100%; height: auto; max-height: none; position: relative; top: 0; padding: 10px; }.sb-group { margin: 0; }.sb-group-title { padding: 8px; }.sb-group-items { display: grid; grid-template-columns: repeat(2, 1fr); }.sb-item { padding: 8px 10px; }.sidebar .sb-bottom { display: none; }.main { padding: 20px 12px 30px; }.page-head { display: block; }.page-head .actions { margin-top: 14px; }.status-tabs .right { flex-basis: 100%; margin-left: 0; }.kpis { grid-template-columns: 1fr 1fr; gap: 8px; }.kpi { min-height: 108px; padding: 12px; }.kpi .kpi-icon { width: 34px; height: 34px; flex-basis: 34px; }.kpi .kpi-body .v { font-size: 18px; }.card-body { padding: 12px; }.manual-form { grid-template-columns: 1fr; }.imp-row, .imp-result-row { grid-template-columns: 28px 1fr 80px 36px; }.imp-row .imp-size, .imp-row .imp-action, .imp-result-row .imp-new, .imp-result-row .imp-meta { display: none; } }
.date-parts { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 6px; }
.date-parts select { min-width: 0; }
.mo-row { position: relative; padding: 12px 12px 42px; margin-bottom: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.025); }
.row-actions { position: absolute; right: 12px; bottom: 10px; display: flex; justify-content: flex-end; }
.row-actions .mo-remove { color: var(--red); }

/* ===== 工作台布局增强：参考卡片式管理后台 ===== */
.top-search { width: min(360px, 30vw); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: #0d2035; transition: .18s; }
.top-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,140,255,.12); }
.top-search input { width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); outline: 0; }
.top-search input::placeholder { color: var(--faint); }
.mobile-nav-toggle { display: none; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--text-2); background: var(--panel-2); cursor: pointer; }
.sec-page[data-sec="ops"] .card:first-of-type { border-color: rgba(87,173,255,.22); }
.sec-page[data-sec="ops"] .card:first-of-type .card-body { padding-top: 16px; }
.sec-page[data-sec="ops"] .card:nth-of-type(2) { box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.page-head .actions button:focus-visible, .btn:focus-visible, .sb-item:focus-visible, .topbar button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { max-width: min(420px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #132b47; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .22s ease; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateY(0); }.toast.success { border-color: rgba(49,196,141,.42); }.toast.error { border-color: rgba(240,113,120,.48); color: #ffd8da; }.toast.info { border-color: rgba(87,173,255,.42); }

/* 智能导入页：仅优化视觉层级与信息密度，不改变 DOM 及导入逻辑 */
[data-sec="import"] { max-width: 1280px; }
[data-sec="import"] .page-head { align-items: flex-start; margin-bottom: 22px; }
[data-sec="import"] .page-head h1 { font-size: 26px; letter-spacing: -.4px; }
[data-sec="import"] .page-head .subtitle { max-width: 820px; line-height: 1.8; }
[data-sec="import"] .page-head .actions { padding-top: 26px; }
[data-sec="import"] > .card:first-of-type { border-color: #dfe7f1; box-shadow: 0 8px 24px rgba(55,72,96,.08); }
[data-sec="import"] > .card:first-of-type .card-head { min-height: 56px; padding: 16px 20px; font-size: 14px; }
[data-sec="import"] > .card:first-of-type .card-body { padding: 20px; }
[data-sec="import"] .chip-row { display: grid; grid-template-columns: minmax(170px, .85fr) minmax(230px, 1.1fr) minmax(290px, 1.45fr); gap: 12px; align-items: stretch; margin-bottom: 16px; }
[data-sec="import"] .chip { min-height: 46px; padding: 8px 13px; border-radius: 9px; background: #f8fafc; color: #68778a; font-size: 12px; }
[data-sec="import"] .chip select, [data-sec="import"] .chip input { min-height: 28px; color: #344255; font-size: 13px; }
[data-sec="import"] .drop { min-height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; border-radius: 12px; background: #f8fbff; }
[data-sec="import"] .drop-icon { margin-bottom: 8px; font-size: 28px; }
[data-sec="import"] .drop-title { font-size: 14px; font-weight: 500; }
[data-sec="import"] .drop-title strong { color: #2f80ed; font-weight: 700; }
[data-sec="import"] .drop .muted { max-width: 680px; text-align: center; line-height: 1.7; }
[data-sec="import"] .imp-queue, [data-sec="import"] .imp-result { margin-top: 18px; border-radius: 11px; box-shadow: 0 3px 12px rgba(55,72,96,.04); }
[data-sec="import"] .imp-queue-head, [data-sec="import"] .imp-result-head, [data-sec="import"] .imp-result-summary { min-height: 48px; display: flex; align-items: center; padding: 12px 16px; color: #354357; }
[data-sec="import"] .imp-list, [data-sec="import"] .imp-result-list { gap: 8px; padding: 12px 14px 14px; }
[data-sec="import"] .imp-row, [data-sec="import"] .imp-result-row { min-height: 54px; padding: 10px 14px; border-radius: 8px; background: #fff; }
[data-sec="import"] .imp-queue-actions { justify-content: flex-start; flex-wrap: wrap; padding: 12px 14px 15px; border-top: 1px solid #edf0f4; }
[data-sec="import"] #imp-queue-hint { line-height: 1.6; }
[data-sec="import"] .imp-result-row { box-shadow: 0 2px 8px rgba(55,72,96,.035); }
[data-sec="import"] > .card:not(:first-of-type) { box-shadow: 0 3px 12px rgba(55,72,96,.045); }
[data-sec="import"] > .card:not(:first-of-type) .card-head { min-height: 50px; padding: 14px 18px; font-size: 13px; }
[data-sec="import"] > .card:not(:first-of-type) .card-body { padding: 16px 18px; }
[data-sec="import"] > .card:not(:first-of-type) .muted { color: #718095 !important; }
[data-sec="import"] > .card:not(:first-of-type) code { padding: 2px 5px; border-radius: 4px; color: #397fe0; background: #eef5ff; }
.export-date-hint { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; margin-top: 2px; border: 1px solid #dce9fb; border-radius: 8px; color: #718095; background: #f4f8ff; font-size: 12px; }
.export-date-hint strong { color: #2f80ed; font-size: 13px; }
.export-date-hint small { color: #96a2b1; margin-left: auto; }
.export-range input { min-width: 150px; }
@media (max-width: 900px) {
  [data-sec="import"] .chip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-sec="import"] .chip-row .chip:last-child { grid-column: 1 / -1; }
  [data-sec="import"] .page-head .actions { padding-top: 14px; }
}
@media (max-width: 760px) {
  [data-sec="import"] .chip-row { display: flex; flex-direction: column; gap: 8px; }
  [data-sec="import"] > .card:first-of-type .card-body { padding: 14px; }
  [data-sec="import"] .drop { min-height: 140px; }
  [data-sec="import"] .imp-queue-actions { align-items: flex-start; flex-direction: column; }
  .export-date-hint { align-items: flex-start; flex-direction: column; gap: 2px; }
  .export-date-hint small { margin-left: 0; }
}
.confirm-overlay { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; background: rgba(3,10,19,.72); backdrop-filter: blur(5px); }
.confirm-box { width: min(430px, 100%); display: grid; grid-template-columns: 38px 1fr; gap: 12px 14px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #10243c; box-shadow: var(--shadow); }
.confirm-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-soft); font-weight: 800; }.confirm-copy strong { color: var(--text); }.confirm-copy p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }.confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 760px) { .top-search { order: 4; width: 100%; flex-basis: 100%; }.mobile-nav-toggle { display: inline-flex; }.sidebar { display: none; }.sidebar.mobile-open { display: block; }.toast-stack { right: 12px; bottom: 12px; }.main { min-height: calc(100vh - 62px); } }

/* 运营首页：左侧主数据区 + 右侧日历与提示卡 */
.ops-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; align-items: start; }
.ops-primary { min-width: 0; }.ops-rail { min-width: 0; position: sticky; top: 88px; }.ops-rail .card { margin-bottom: 18px; }
.calendar-card .card-body { padding: 16px; }.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.calendar-toolbar strong { font-size: 16px; letter-spacing: .3px; }.calendar-nav { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); background: var(--panel-2); cursor: pointer; font-size: 20px; line-height: 1; }.calendar-nav:hover { color: var(--blue-2); border-color: var(--blue); background: var(--blue-soft); }.calendar-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }.calendar-week { margin-bottom: 6px; color: var(--faint); font-size: 10px; }.calendar-day { height: 31px; border: 1px solid transparent; border-radius: 8px; color: var(--text-2); background: transparent; cursor: pointer; font-size: 11px; }.calendar-day:hover { color: #fff; border-color: var(--blue); background: var(--blue-soft); }.calendar-day.muted-day { color: #3f536c; cursor: default; }.calendar-day.selected, .calendar-day.in-range { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgba(47,140,255,.25); }.calendar-day.in-range:not(.selected) { background: rgba(47,140,255,.32); border-color: rgba(87,173,255,.25); box-shadow: none; }.calendar-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; }.calendar-selection strong { color: var(--blue-2); font-size: 11px; }.calendar-clear { width: 100%; margin-top: 12px; }.rail-note .card-body { padding: 15px 16px; }.rail-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }.rail-stat strong { color: var(--text-2); }.rail-tip { margin-top: 13px; padding: 10px; border-radius: 8px; color: var(--muted); background: var(--blue-soft); font-size: 11px; line-height: 1.7; }
@media (max-width: 1180px) { .ops-dashboard-grid { grid-template-columns: 1fr; }.ops-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; position: static; }.ops-rail .card { margin-bottom: 0; } }
@media (max-width: 760px) { .ops-rail { display: block; }.ops-rail .card { margin-bottom: 12px; } }

/* 首页经营图表：仅作用于主内容区，不改变左侧导航和右侧工作台 */
.ops-visual-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.ops-visual-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-3); }
.ops-visual-panel.ops-trend-panel { grid-row: span 2; }
.ops-visual-title { color: var(--text); font-size: 13px; font-weight: 700; }
.ops-visual-subtitle { margin-top: 4px; color: var(--muted); font-size: 11px; }
.ops-visual-canvas { position: relative; height: 245px; margin-top: 10px; }
.ops-mix-panel .ops-visual-canvas { height: 210px; }
.ops-visual-canvas canvas { width: 100% !important; height: 100% !important; }
/* 趋势图独占第一行，中心对比与收入结构并列位于第二行 */
.ops-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-visual-panel.ops-trend-panel { grid-column: 1 / -1; grid-row: auto; }
.ops-trend-panel .ops-visual-canvas { height: 280px; }
@media (max-width: 900px) {
  .ops-visual-grid { grid-template-columns: 1fr; }
  .ops-visual-panel.ops-trend-panel { grid-column: auto; grid-row: auto; }
  .ops-trend-panel .ops-visual-canvas { height: 245px; }
}

/* ===== 参考图浅色主题覆盖 ===== */
:root {
  --bg: #eef2f6; --bg-2: #f5f7fa; --panel: #ffffff; --panel-2: #ffffff; --panel-3: #f7f9fc;
  --line: #e3e8ef; --line-soft: #edf0f4; --text: #18212f; --text-2: #526174; --muted: #8a96a5; --faint: #aeb8c5;
  --blue: #2f80ed; --blue-2: #397fe0; --blue-soft: #eaf3ff; --cyan: #48b9d3;
  --green: #31a875; --green-soft: #e9f8f0; --orange: #e49a2e; --orange-soft: #fff5df;
  --red: #dc5c63; --red-soft: #fff0f1; --purple: #7569d9;
  --shadow: 0 16px 40px rgba(55,72,96,.12); --shadow-sm: 0 4px 14px rgba(55,72,96,.07);
}
body { background: var(--bg); color: var(--text); }
body::before { background: radial-gradient(circle at 75% -12%, rgba(47,128,237,.09), transparent 34%), none; }
.topbar { background: rgba(255,255,255,.94); border-bottom-color: #e4e9f0; box-shadow: 0 1px 10px rgba(35,54,76,.04); }
.topbar .brand-text .en { color: #9aa5b2; }.topbar .brand-text .cn { color: #1d2735; }.topbar .crumb { color: #8a96a5; }.topbar .crumb b { color: #344255; }
.topbar .who { background: #fff; border-color: #e4e9f0; }.topbar .who .name { color: #263244; }.topbar button.link { color: #657286; background: #fff; border-color: #e1e6ed; }
.top-search { color: #8793a2; background: #f8fafc; border-color: #dfe5ec; }.top-search input { color: #273447; }.top-search input::placeholder { color: #a5afbc; }
.sidebar { background: #fff; border-right-color: #e4e9f0; box-shadow: 2px 0 12px rgba(50,70,96,.03); }.sb-group-title { color: #98a3b1; }.sb-item { color: #6d7888; }.sb-item:hover { color: #2f80ed; background: #f3f7fd; border-color: #e9f1fb; }.sb-item.active { color: #fff; background: linear-gradient(90deg, #2f80ed, #2384f1); border-color: #2f80ed; box-shadow: 0 8px 18px rgba(47,128,237,.22); }.sb-item .badge-mini { color: #9aa5b2; background: #f1f4f8; }.sidebar .sb-bottom { border-top-color: #edf0f4; }.sidebar .sb-bottom .logout { color: #8894a3; }
.main { background: #eef2f6; }.page-head .bread { color: #9aa5b2; }.page-head h1 { color: #18212f; }.page-head .subtitle { color: #8a96a5; }
.card { background: #fff; border-color: #e4e9f0; box-shadow: var(--shadow-sm); }.card-head { color: #202b3a; background: #fff; border-bottom-color: #edf0f4; }.card-head .right { color: #8a96a5; }
.kpi { background: #fff; border-color: #e8edf3; box-shadow: 0 3px 12px rgba(50,70,96,.05); }.kpi .kpi-body .v { color: #1c2736; }.kpi .kpi-body .k { color: #7f8b9a; }.divider { background: #edf0f4; }
.status-tabs .seg, .chart-toolbar .seg { color: #667487; background: #fff; border-color: #e0e6ed; }.status-tabs .seg:hover, .status-tabs .seg.active, .chart-toolbar .seg:hover, .chart-toolbar .seg.active { color: #2f80ed; border-color: #b9d7fb; background: #eaf3ff; }.status-tabs .cnt { color: #8591a0; background: #f2f5f8; }
.chip { color: #778496; background: #fff; border-color: #dfe5ec; }.chip select, .chip input { color: #3c4a5c; }.search-box input { color: #344255; background: #fff; border-color: #dfe5ec; }
input, select, textarea { color: #344255; background: #fff; border-color: #dfe5ec; }.chip select option, select option { color: #344255; background: #fff; }
table.grid, table.map, table.fd, table.person-table { color: #3c4a5c; background: #fff; }.scroll-y { border-color: #e2e7ee; } table.grid th, table.grid td, table.map th, table.map td, table.fd th, table.fd td, table.person-table th, table.person-table td { border-bottom-color: #edf0f4; } table.grid thead th, table.map th, table.fd th, table.person-table th { color: #7a8797; background: #f6f8fb; } table.grid tbody tr:hover td, table.fd tr:hover td, table.person-table tr:hover td { background: #f6faff; } table.grid tr.total-row { background: #edf5ff; } table.grid tr.total-row td { border-top-color: #78b2f6; }.grid td.dim, .f-name, .p-name { color: #2f72c8; }
.agg-block { background: #fff; border-color: #e4e9f0; }.agg-head { border-bottom-color: #edf0f4; }.agg-row { border-bottom-color: #edf0f4; }.agg-row .val { color: #263244; }.agg-row.highlight { background: #f0f6ff; }.agg-row.highlight .val { color: #2f80ed; }.agg-sub, .agg-row .lab, .agg-foot { color: #8995a4; }
.chart-toolbar { background: #f6f8fb; }.chart-box { background: #fff; border-color: #e2e7ee; }
.drop { color: #8a96a5; background: #f8fbff; border-color: #b8d3f1; }.drop-title { color: #536276; }.drop:hover, .drop.hovering { color: #2f80ed; background: #eaf3ff; border-color: #2f80ed; }
.imp-queue, .imp-result { background: #fff; border-color: #e3e8ef; }.imp-queue-head, .imp-result-head, .imp-result-summary { background: #f7f9fc; border-bottom-color: #e8edf3; }.imp-row, .imp-result-row { background: #fff; border-color: #e4e9f0; }.imp-row:hover, .imp-result-row:hover { border-color: #b8d3f1; }.imp-remove, .f-ops button, .p-ops button { color: #718095; background: #fff; border-color: #dfe5ec; }
.note { background: #fff7e6; border-color: #f1d49b; }.note.ok { background: #ecfaf3; border-color: #b8e4ce; }.note.bad { background: #fff0f1; border-color: #efc2c6; }.empty { color: #8a96a5; }
.modal-overlay, .upload-overlay, .confirm-overlay { background: rgba(36,50,68,.36); }.modal-overlay .panel, .upload-overlay .panel, .confirm-box { background: #fff; border-color: #e1e6ed; box-shadow: 0 20px 60px rgba(36,52,73,.18); }.modal-overlay .head { border-bottom-color: #edf0f4; }.modal-overlay .head strong, .upload-overlay .panel h3, .confirm-copy strong { color: #202b3a; }.modal-overlay .head .close { color: #8a96a5; }.confirm-copy p { color: #788597; }
.calendar-nav { color: #6c7a8d; background: #fff; border-color: #dfe5ec; }.calendar-day { color: #5d6b7d; }.calendar-day.muted-day { color: #c0c8d1; }.calendar-day:hover { color: #2f80ed; background: #eaf3ff; border-color: #b9d7fb; }.calendar-day.selected, .calendar-day.in-range { color: #fff; background: #4d94e9; border-color: #4d94e9; }.calendar-selection { border-top-color: #edf0f4; }.rail-tip { background: #f0f6ff; color: #718095; }
.login-wrap { background: radial-gradient(circle at 70% 20%, rgba(47,128,237,.16), transparent 32%), #eef2f6; }.login-box { background: #fff; border-color: #e1e6ed; box-shadow: 0 20px 60px rgba(50,70,96,.14); }.login-box h1 { color: #1d2735; }.login-box .desc, .login-box label { color: #7e8a99; }.login-box .hint { color: #8793a2; background: #f7f9fc; border-color: #e6ebf1; }
.toast { color: #344255; background: #fff; border-color: #dfe5ec; box-shadow: 0 12px 28px rgba(50,70,96,.16); }.toast.error { color: #b8444d; }.confirm-icon { background: #fff5df; }

/* 考核奖金工作台 */
.manual-entry-choice { display: flex; gap: 12px; justify-content: center; padding: 18px 8px 6px; }
.manual-entry-choice button { min-width: 140px; }
input[readonly] { color: #67758a; background: #f3f6fa; cursor: not-allowed; }
.month-picker { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: #7e8a99; font-size: 11px; }.month-picker span { display: inline-flex; align-items: center; height: 100%; }.month-picker select { min-width: 112px; height: 36px; padding: 0 9px; border-radius: 8px; }
.assess-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 18px; align-items: start; }.assess-primary { min-width: 0; }.assess-rail { position: sticky; top: 88px; }.assess-rail .card { margin-bottom: 16px; }.assess-chart-panel { margin-bottom: 16px; }.assess-chart-panel .chart-box { width: 100%; max-width: none; min-height: 260px; }.assess-chart-panel canvas { max-height: 260px; }
.assess-param, .source-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f4; color: #7e8a99; font-size: 11px; }.assess-param:last-child, .source-state:last-of-type { border-bottom: 0; }.assess-param strong { color: #344255; font: 600 13px ui-monospace, monospace; }.assess-param small { color: #9aa5b2; font: 400 10px "Microsoft YaHei", sans-serif; }.source-state strong { flex: 1; color: #536276; font-weight: 600; }.source-state span { color: #31a875; font-size: 12px; }.source-state.warn span { color: #e49a2e; }.source-state em { color: #31a875; font-style: normal; }.source-state.warn em { color: #e49a2e; }.source-tip { margin-top: 12px; padding: 10px; border-radius: 8px; color: #7e8a99; background: #f7f9fc; font-size: 11px; line-height: 1.7; }.assess-action { width: 100%; margin-bottom: 9px; }.assess-actions-card .rail-tip { margin-top: 7px; }
@media (max-width: 1180px) { .assess-dashboard-grid { grid-template-columns: 1fr; }.assess-rail { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.assess-rail .card { margin-bottom: 0; } }
@media (max-width: 760px) { .month-picker { width: 100%; }.month-picker select { flex: 1; }.assess-rail { display: block; }.assess-rail .card { margin-bottom: 12px; } }

/* 侧栏业务分组：强化导航层级并放大入口文字 */
.sidebar .sb-group { padding: 0 2px 12px; margin-bottom: 14px; border-bottom: 1px solid #edf0f4; }
.sidebar .sb-group:last-of-type { border-bottom: 0; }
.sidebar .sb-group-title { min-height: 32px; padding: 7px 10px 8px; color: #7b8796; font-size: 12px; letter-spacing: .3px; }
.sidebar .sb-item { min-height: 42px; padding: 10px 12px; font-size: 13px; }
.sidebar .nav-workbench .sb-group-title .sb-icon { color: #2f80ed; }
.sidebar .nav-data .sb-group-title .sb-icon { color: #31a875; }
.sidebar .nav-assess .sb-group-title .sb-icon { color: #e49a2e; }
.sidebar .nav-system .sb-group-title .sb-icon { color: #7569d9; }
.sidebar .nav-workbench .sb-group-title { color: #4c78b9; }
.sidebar .nav-data .sb-group-title { color: #4c9275; }
.sidebar .nav-assess .sb-group-title { color: #a77931; }
.sidebar .nav-system .sb-group-title { color: #7569b7; }
.sidebar .sb-group-title {
  min-height: 36px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}
.sidebar .nav-workbench .sb-group-title { background: #eef5ff; }
.sidebar .nav-data .sb-group-title { background: #eef9f4; }
.sidebar .nav-settings .sb-group-title { background: #f0f6ff; }
.sidebar .nav-assess .sb-group-title { background: #fff7e8; }
.sidebar .nav-system .sb-group-title { background: #f3f1ff; }
.sidebar .nav-settings .sb-group-title { color: #4f7fb8; }
.sidebar .nav-settings .sb-group-title .sb-icon { color: #2f80ed; }

/* 人员名单：保证表头、字段、状态和操作区统一垂直居中 */
#p-list table.person-table th,
#p-list table.person-table td { vertical-align: middle; }
#p-list table.person-table th,
#p-list table.person-table td { text-align: center !important; }
#p-list table.person-table thead th {
  height: 42px;
  padding: 0 12px;
  color: #5d6b7d;
  background: #e8edf4;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  vertical-align: middle !important;
}
#p-list table.person-table thead th .fd-badge.fixed {
  display: block;
  width: max-content;
  margin: 3px auto 0;
}
#p-list table.person-table tbody tr { height: 58px; }
#p-list table.person-table tbody td {
  height: 58px;
  padding: 0 12px;
  line-height: 20px;
  vertical-align: middle !important;
}
#p-list table.person-table tbody td > * { vertical-align: middle; }
#p-list table.person-table th:nth-last-child(-n+2),
#p-list table.person-table td:nth-last-child(-n+2) { text-align: center; }
#p-list .p-ops { align-items: center; justify-content: center; flex-wrap: wrap; }
#p-list .p-ops button { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; }
.person-state { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 3px 8px; border-radius: 6px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.person-state.enabled { color: #2d9b70; background: #e9f8f0; }
.person-state.disabled { color: #c77a24; background: #fff5df; }

/* 导入队列：每个文件提供独立确认入口 */
.imp-row { grid-template-columns: 28px minmax(180px, 1fr) 90px 95px 120px 150px; }
.imp-action { justify-content: flex-end; }
.imp-single-import { white-space: nowrap; }
@media (max-width: 760px) {
  .imp-row { grid-template-columns: 28px minmax(0, 1fr) 76px 108px; }
  .imp-row .imp-size, .imp-row .imp-meta { display: none; }
  .imp-row .imp-action { display: flex; }
  .imp-single-import { padding: 5px 6px; }
}

/* 字段启用状态 */
.fd-badge.enabled { color: var(--green); background: var(--green-soft); }
.fd-badge.disabled { color: var(--muted); background: #eef1f5; }
.fd-disabled-row { color: #9aa5b2 !important; text-decoration: line-through; }

/* 全局表格规范：表头与单元格统一四向居中 */
table.grid th, table.grid td,
table.map th, table.map td,
table.fd th, table.fd td,
table.person-table th, table.person-table td {
  text-align: center !important;
  vertical-align: middle !important;
}
table.grid thead th, table.map thead th, table.map th,
table.fd thead th, table.person-table thead th {
  color: #5d6b7d !important;
  background: #e8edf4 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}
table.grid th, table.map th, table.fd th, table.person-table th {
  padding-top: 12px;
  padding-bottom: 12px;
}
table.grid td, table.map td, table.fd td, table.person-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
table.grid th > *, table.grid td > *,
table.map th > *, table.map td > *,
table.fd th > *, table.fd td > *,
table.person-table th > *, table.person-table td > * { vertical-align: middle; }

/* 字段编辑弹窗：双列栅格 + 统一开关卡片 */
.field-editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}
.field-editor-form .fld.full { grid-column: 1 / -1; }
.field-editor-form .fld { min-width: 0; }
.field-editor-form .fld > label:not(.field-toggle label) {
  display: block;
  min-height: 18px;
  margin-bottom: 6px;
  color: #738196;
  font-size: 12px;
  line-height: 18px;
}
.field-editor-form .fld > input:not([type="checkbox"]),
.field-editor-form .fld > select,
.field-editor-form .fld > textarea { width: 100%; min-height: 40px; box-sizing: border-box; }
.field-editor-form .field-toggle {
  min-height: 66px;
  box-sizing: border-box;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}
.field-editor-form .field-toggle label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 20px;
  margin: 0;
  color: #3c4a5c;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.field-editor-form .field-toggle input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  padding: 0;
  accent-color: #2f80ed;
}
.field-editor-form .field-toggle small {
  display: block;
  margin: 4px 0 0 26px;
  color: #9aa5b2;
  font-size: 11px;
  line-height: 16px;
}
.field-editor-form #fm-opts-wrap { padding-top: 1px; }
.field-editor-form .fld.full[style] { align-items: flex-end; }
@media (max-width: 640px) {
  .field-editor-form { grid-template-columns: 1fr; gap: 13px; }
  .field-editor-form .fld.full { grid-column: auto; }
}

/* 首页经营汇总卡片：统一层级、间距、摘要对齐和异常弱显 */
.agg-block { min-height: 360px; border: 1px solid #e1e7ef; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.agg-block::before { background: #2f80ed; }
.agg-block.month::before { background: #31a875; }
.agg-block.year::before { background: #6b7280; }
.agg-head { min-height: 54px; padding-bottom: 14px; margin-bottom: 8px; }
.agg-sub { color: #66768a; font-weight: 500; }
.agg-row { min-height: 38px; padding: 9px 0; line-height: 1.6; }
.agg-row .val { font-size: 15px; font-weight: 700; }
.agg-row.highlight .val { font-size: 21px; }
.agg-row.highlight .unit { font-size: 11px; font-weight: 500; color: #718095; }
.agg-foot { display: grid; grid-template-columns: 1fr 86px; align-items: center; min-height: 34px; gap: 8px; }
.agg-foot > span:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.agg-tag { text-align: center; white-space: nowrap; }
.na-value { color: #999 !important; font-weight: 600; }
.agg-row .val:empty, .agg-row .val.zero { color: #999 !important; }
.kpi .kpi-body .v small { font-size: 12px; font-weight: 500; margin-left: 2px; }
.kpi .kpi-body .d { line-height: 1.6; }
.kpi.green .kpi-body .v { color: #16875d; }
.kpi.orange .kpi-body .v { color: #c74634; }
.agg-tag.up { color: #c74634; background: #fff0ee; }
.agg-tag.down { color: #16875d; background: #eaf8f1; }
.ops-agg-info, #ops-agg-info { color: #536579; }

/* 首页累计卡片：去除底部空白，突出完成率与同比 */
.agg-block { min-height: 0; height: auto; align-self: start; }
.agg-head { position: relative; }
.agg-count { margin-left: auto; align-self: flex-start; padding: 3px 7px; border-radius: 6px; color: #8a96a5; background: #f3f6fa; font-size: 11px; white-space: nowrap; }
.agg-foot { min-height: 0; padding-top: 10px; margin-top: 7px; }
.agg-foot > span:last-child { display: none; }
.agg-foot > span:first-child { grid-column: 1 / -1; }
.agg-tag { padding: 5px 8px; font-size: 12px; font-weight: 700; }

/* 考核页部门奖金汇总：指标卡 + 计算关系 */
.assess-dept-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.assess-dept-metric { min-width: 0; min-height: 82px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 13px 15px; border: 1px solid #e3e9f1; border-radius: 10px; background: #f8fafc; }
.assess-dept-metric span { color: #8290a2; font-size: 11px; }
.assess-dept-metric strong { overflow: hidden; color: #2a3748; font: 700 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.assess-dept-metric.text strong { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 15px; }
.assess-dept-metric.income { background: #f4f8ff; border-color: #dce9fb; }
.assess-dept-metric.income strong { color: #2f80ed; }
.assess-dept-metric.param { background: #f8f9fc; }
.assess-dept-metric.bonus { background: #fff7e8; border-color: #f5dfb1; }
.assess-dept-metric.bonus strong { color: #bd791b; font-size: 20px; }
.assess-dept-metric small { color: #b58a4b; font-size: 10px; }
.assess-dept-formula { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 11px 14px; border-radius: 8px; color: #718095; background: #f0f6ff; font-size: 11px; }
.assess-dept-formula strong { color: #397fe0; font-weight: 650; }
.assess-dept-ops { display: flex; justify-content: flex-end; margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) { .assess-dept-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .assess-dept-summary { grid-template-columns: 1fr; }.assess-dept-formula { align-items: flex-start; flex-direction: column; gap: 5px; } }

/* 考核页层级强化：筛选、汇总标题及指标标签 */
[data-sec="assess"] > .status-tabs .seg {
  font-size: 13px;
  font-weight: 650;
}

[data-sec="assess"] > .status-tabs .cnt {
  min-width: 22px;
  padding: 2px 7px;
  font-size: 12px;
}

.assess-dept-card .card-head {
  min-height: 54px;
  padding: 15px 18px;
  color: #263447;
  background: #e7eef8;
  border-bottom-color: #d5e0ee;
  font-size: 14px;
  font-weight: 750;
}

.assess-dept-metric span {
  color: #68788d;
  font-size: 13px;
  font-weight: 650;
}

.assess-dept-metric.text span {
  color: #536276;
  font-size: 14px;
}

.assess-dept-metric.text strong {
  font-size: 16px;
}

.assess-dept-metric small {
  font-size: 11px;
}

/* 智能导入：顶部参数控件统一高度并强化操作按钮 */
[data-sec="import"] .chip-row {
  align-items: stretch;
}

[data-sec="import"] .chip-row .chip {
  min-height: 50px;
  height: 50px;
  padding: 0 15px;
  gap: 8px;
  color: #5d6b7d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

[data-sec="import"] .chip-row .chip select,
[data-sec="import"] .chip-row .chip input {
  min-width: 0;
  height: 32px;
  padding: 3px 7px;
  color: #344255;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

[data-sec="import"] .chip-row .chip input {
  flex: 1 1 auto;
  width: auto !important;
}

[data-sec="import"] .chip-row .chip select {
  flex: 1 1 auto;
}

[data-sec="import"] .imp-single-import,
[data-sec="import"] #imp-batch-import {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #2f80ed;
  border-radius: 7px;
  color: #fff !important;
  background: linear-gradient(135deg, #2f80ed, #4d94e9) !important;
  box-shadow: 0 5px 12px rgba(47,128,237,.18);
  font-size: 13px;
  font-weight: 650;
}

[data-sec="import"] .imp-single-import:hover,
[data-sec="import"] #imp-batch-import:hover {
  border-color: #236fce;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

[data-sec="import"] #imp-queue-clear {
  min-height: 32px;
  padding: 6px 12px;
  color: #397fe0 !important;
  border-color: #b9d7fb !important;
  background: #eef5ff !important;
  font-size: 12px;
  font-weight: 650;
}

[data-sec="import"] .imp-queue-actions {
  align-items: center;
  min-height: 64px;
}

@media (max-width: 760px) {
  [data-sec="import"] .chip-row .chip {
    width: 100%;
  }
  [data-sec="import"] .imp-queue-actions {
    align-items: flex-start;
  }
}

/* 字段设计页：统一顶部操作按钮并提升字段列表可读性 */
[data-sec="fields"] .card-head > .right {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

[data-sec="fields"] #fd-tabs,
[data-sec="fields"] #fd-scope-tabs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

[data-sec="fields"] #fd-tabs .seg,
[data-sec="fields"] #fd-scope-tabs .seg,
[data-sec="fields"] #fd-add {
  min-width: 88px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #d5e1ef;
  border-radius: 7px;
  color: #52657b;
  background: #f4f7fb;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
}

[data-sec="fields"] #fd-scope-tabs .seg {
  min-width: 76px;
  padding: 7px 12px;
}

[data-sec="fields"] #fd-tabs .seg:hover,
[data-sec="fields"] #fd-scope-tabs .seg:hover,
[data-sec="fields"] #fd-tabs .seg.active,
[data-sec="fields"] #fd-scope-tabs .seg.active,
[data-sec="fields"] #fd-add:hover {
  color: #fff;
  border-color: #2f80ed;
  background: linear-gradient(135deg, #2f80ed, #4d94e9);
  box-shadow: 0 5px 12px rgba(47,128,237,.16);
}

[data-sec="fields"] #fd-add {
  min-width: 104px;
  color: #2f72c8;
  border-color: #b9d7fb;
  background: #eef5ff;
}

[data-sec="fields"] #fd-list table.fd {
  font-size: 13px;
}

[data-sec="fields"] #fd-list table.fd th {
  min-height: 42px;
  padding: 12px 13px;
  color: #536276 !important;
  background: #e3eaf3 !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

[data-sec="fields"] #fd-list table.fd td {
  min-height: 52px;
  padding: 13px;
  color: #46566b;
  line-height: 21px;
}

[data-sec="fields"] #fd-list table.fd .f-name {
  color: #2f72c8;
  font-weight: 700;
}

[data-sec="fields"] #fd-list table.fd .f-attr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

[data-sec="fields"] #fd-list table.fd .fd-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 16px;
}

[data-sec="fields"] #fd-list table.fd .f-ops {
  justify-content: center;
  gap: 6px;
}

[data-sec="fields"] #fd-list table.fd .f-ops button {
  min-height: 30px;
  padding: 5px 10px;
  color: #536b85;
  border: 1px solid #d5e1ef;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

[data-sec="fields"] #fd-list table.fd .f-ops button:hover {
  color: #2f72c8;
  border-color: #9fc5f2;
  background: #eef5ff;
}

[data-sec="fields"] #fd-list table.fd .f-ops button.del:hover {
  color: #c45662;
  border-color: #efc2c6;
  background: #fff0f1;
}

[data-sec="fields"] #fd-hint {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

@media (max-width: 760px) {
  [data-sec="fields"] .card-head > .right {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
  }
  [data-sec="fields"] #fd-tabs .seg,
  [data-sec="fields"] #fd-scope-tabs .seg,
  [data-sec="fields"] #fd-add {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }
  [data-sec="fields"] #fd-scope-tabs {
    order: 1;
  }
}

/* 字段状态移入操作栏，释放属性列空间 */
[data-sec="fields"] #fd-list table.fd th:last-child {
  width: 17%;
}

[data-sec="fields"] #fd-list table.fd td:last-child {
  padding-right: 10px;
  padding-left: 10px;
}

[data-sec="fields"] #fd-list .f-ops {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
}

[data-sec="fields"] #fd-list .fd-action-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

[data-sec="fields"] #fd-list .fd-action-state.enabled {
  color: #2d9b70;
  background: #e9f8f0;
}

[data-sec="fields"] #fd-list .fd-action-state.disabled {
  color: #7f8b9a;
  background: #eef1f5;
}

[data-sec="fields"] #fd-list .f-op-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

[data-sec="fields"] #fd-list .f-attr {
  max-width: 100%;
}

/* 启用状态与切换动作合并为一个按钮 */
[data-sec="fields"] #fd-list .f-ops {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

[data-sec="fields"] #fd-list table.fd .f-ops > button.fd-toggle {
  min-width: 52px;
  padding-right: 7px;
  padding-left: 7px;
  color: #2d9b70;
  border-color: #b8e4ce;
  background: #e9f8f0;
  font-weight: 700;
}

[data-sec="fields"] #fd-list table.fd .f-ops > button.fd-toggle:hover {
  color: #217b59;
  border-color: #82cda9;
  background: #d9f2e5;
}

[data-sec="fields"] #fd-list table.fd .f-ops > button.fd-toggle.disabled {
  color: #7f8b9a;
  border-color: #d5dce5;
  background: #eef1f5;
}

[data-sec="fields"] #fd-list table.fd .f-ops > button.fd-toggle.disabled:hover {
  color: #5f6d7e;
  border-color: #b9c4d1;
  background: #e5eaf0;
}

[data-sec="fields"] #fd-list table.fd .f-ops > button:not(.fd-toggle) {
  padding-right: 7px;
  padding-left: 7px;
}

/* 考核状态筛选后的人员明细视图 */
.assess-people-only { margin-top: 8px; }
.assess-people-caption { display: flex; align-items: center; min-height: 38px; padding: 0 12px; margin-bottom: 8px; border-left: 3px solid #2f80ed; border-radius: 6px; color: #536276; background: #f3f7fd; font-size: 12px; font-weight: 650; }
.assess-people-only .scroll-y { max-height: 560px; }
