:root {
  --ink: #172321;
  --muted: #687572;
  --line: #dfe7e4;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --deep: #102c2a;
  --deep-2: #17413d;
  --mint: #dff5e9;
  --mint-strong: #5db68c;
  --green: #28775b;
  --teal: #2b7e80;
  --amber: #a56a17;
  --amber-bg: #fff5df;
  --rose: #af5149;
  --rose-bg: #fff0ed;
  --shadow: 0 14px 36px rgba(24, 54, 48, 0.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 12px; border-radius: 8px; color: white; background: var(--deep); transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
:where(button, a, input, select, [tabindex]):focus-visible { outline: 3px solid rgba(58, 145, 106, .35); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; color: #eef8f4; background: radial-gradient(circle at 20% 0%, #1e4d47 0, var(--deep) 42%, #0b2422 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #ffffff; background: var(--green); }
.brand strong { display: block; font-size: 19px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: #a9c9c1; font-size: 11px; letter-spacing: .08em; }
.side-nav { flex: 1; }
.nav-label { margin: 10px 12px 8px; color: #7fa59c; font-size: 11px; letter-spacing: .12em; }
.nav-label-spaced { margin-top: 28px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 4px 0; border: 0; border-radius: 10px; color: #b9d1cb; background: transparent; text-align: left; }
button.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(98,190,143,.24), rgba(94,181,138,.1)); box-shadow: inset 3px 0 0 #71c99d; }
.nav-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #cde5de; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.nav-item.active .nav-icon { color: #10352d; background: #83d5aa; }
.nav-item em { margin-left: auto; color: #6e9189; font-size: 10px; font-style: normal; }
.nav-item.muted { opacity: .7; cursor: default; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 15px 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; font-weight: 600; }
.sidebar-foot small { margin-top: 3px; color: #789b93; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #63cd91; box-shadow: 0 0 0 4px rgba(99,205,145,.12); }

.main-content { min-width: 0; padding: 32px clamp(22px, 3.2vw, 52px) 52px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 29px; line-height: 1.25; letter-spacing: -.03em; }
.topbar p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: flex-end; gap: 12px; }
.month-control { display: grid; gap: 6px; }
.month-control span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
select, input[type="month"] { min-width: 130px; height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; outline: none; }
select:focus, input:focus { border-color: #6cb490; box-shadow: 0 0 0 3px rgba(69,156,112,.11); }
.button { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; text-decoration: none; transition: .15s ease; }
.button-primary { color: white; background: var(--deep-2); box-shadow: 0 5px 14px rgba(23,65,61,.14); }
.button-primary:hover { background: #20534e; transform: translateY(-1px); }
.button-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-secondary { color: #35514c; border-color: var(--line); background: white; }
.button-secondary:hover { border-color: #a9c8bf; background: #f9fbfa; }
.button-small { height: 32px; padding: 0 11px; font-size: 10px; }
.button.disabled { opacity: .45; pointer-events: none; }

.flash-message { margin: -8px 0 18px; padding: 11px 14px; border: 1px solid #b8dfc9; border-radius: 9px; color: #236245; background: #edf9f2; font-size: 13px; }
.flash-message.error { color: #8e4039; border-color: #efc5c1; background: var(--rose-bg); }
.client-update-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid #e2c382; border-radius: 9px; color: #79551e; background: #fff8e9; }
.client-update-notice p { margin: 5px 0 0; font-size: 12px; }
.role-actions-empty { margin: 10px 0; padding: 20px 14px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.role-actions-warning { padding: 10px 12px; background: #fff8e9; color: #79551e; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.loading-state { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.loading-state strong { display: block; font-size: 13px; }
.loading-state p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.loading-spinner { width: 30px; height: 30px; border: 3px solid #d9e8e1; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-dashboard { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 24px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); text-align: center; }
.empty-dashboard-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px; color: white; background: linear-gradient(145deg, #70c69b, #28775b); font-size: 20px; font-weight: 800; }
.empty-dashboard h2 { margin: 0; font-size: 19px; }
.empty-dashboard p { max-width: 480px; margin: 9px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.formula-banner { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid #bde0cf; border-radius: 12px; background: linear-gradient(90deg, #eaf8f0, #f7fbf9); }
.formula-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); font-family: Georgia, serif; font-size: 21px; font-style: italic; }
.formula-banner strong, .formula-banner span { display: block; }
.formula-banner strong { margin-bottom: 3px; color: #225c47; font-size: 13px; }
.formula-banner span { color: #5f746c; font-size: 12px; }
.quality-pill { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: #226548; background: #d5efdf; font-size: 11px; font-weight: 700; }
.quality-pill.warning { color: #865814; background: #fee9bd; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { position: relative; overflow: hidden; min-height: 136px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 7px 20px rgba(23, 61, 54, .035); }
.kpi-card::after { content: ""; position: absolute; right: -20px; bottom: -40px; width: 90px; height: 90px; border: 18px solid rgba(60,141,109,.06); border-radius: 50%; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.kpi-head i { padding: 4px 7px; border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 700; }
.kpi-card > strong { display: block; margin: 17px 0 7px; font-size: clamp(22px, 2.25vw, 31px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi-card p { margin: 0; color: #89938f; font-size: 10px; }
.kpi-used .kpi-head i { color: #2f6f61; background: #e5f4ee; }
.kpi-refund .kpi-head i { color: var(--rose); background: var(--rose-bg); }
.kpi-refund > strong { color: #8d4943; }
.kpi-actual { color: white; border-color: var(--deep-2); background: linear-gradient(135deg, #173d39, #205b50); }
.kpi-actual .kpi-head, .kpi-actual p { color: #b9d3cc; }
.kpi-actual .kpi-head i { color: #153f31; background: #83caa3; }
.kpi-actual::after { border-color: rgba(255,255,255,.06); }
.kpi-count .kpi-head i { color: #76612d; background: #f5eed7; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.right-rail { display: grid; gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e8edeb; }
.panel-head.compact { min-height: 68px; }
.panel-head h2, .section-title-row h2 { margin: 0; font-size: 15px; }
.panel-head p, .section-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.search-box { height: 38px; display: flex; align-items: center; gap: 7px; min-width: 214px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #82918c; background: #fbfcfc; }
.search-box.wide { min-width: min(460px, 60vw); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box:focus-within { border-color: #6cb490; box-shadow: 0 0 0 3px rgba(69,156,112,.11); }
.search-box input:focus { border-color: transparent; box-shadow: none; }
.search-box input::placeholder { color: #a3aeaa; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
th { height: 42px; padding: 0 14px; color: #73817c; background: #f7f9f8; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .035em; }
td { height: 50px; padding: 0 14px; border-top: 1px solid #edf0ef; color: #31403c; }
.loading-cell { height: 150px; color: var(--muted); text-align: center; }
tbody tr:hover td { background: #fbfdfc; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td.actual-column { color: #176444; font-weight: 750; }
th.actual-column { color: #2e6d56; }
.promotion-id { color: #53635e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.note-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.note-warning { display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 5px; color: var(--amber); background: var(--amber-bg); font-size: 9px; }
.empty-state { padding: 44px; color: var(--muted); text-align: center; font-size: 12px; }

.source-list { margin: 0; padding: 7px 18px 8px; }
.source-list > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1ef; }
.source-list > div:last-child { border-bottom: 0; }
.source-list dt { color: #84908c; font-size: 10px; }
.source-list dd { min-width: 0; margin: 0; overflow: hidden; color: #344641; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.source-file-value { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.source-file-value span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.source-download { flex: 0 0 auto; color: var(--green); font-size: 9px; text-decoration: none; }
.source-download:hover { text-decoration: underline; }
.text-button { width: calc(100% - 36px); display: flex; justify-content: space-between; margin: 3px 18px 16px; padding: 9px 0 0; border: 0; border-top: 1px solid #edf1ef; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; text-align: left; }
.ranking-chart { display: grid; gap: 13px; padding: 16px 18px 20px; }
.ranking-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: center; }
.ranking-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #45534f; font-size: 10px; }
.ranking-track { height: 24px; position: relative; overflow: hidden; border-radius: 6px; background: #edf2f0; }
.ranking-fill { height: 100%; min-width: 4px; border-radius: 6px; background: linear-gradient(90deg, #56ad84, #2f7f62); }
.ranking-value { position: absolute; inset: 0 7px 0 auto; display: grid; place-items: center; color: #264a3d; font-size: 9px; font-weight: 750; }
.ranking-fill.wide + .ranking-value { color: white; }

.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 5px 0 18px; }
.detail-table-wrap { max-height: calc(100vh - 260px); }
.detail-table { min-width: 1100px; }
.detail-table td:nth-child(3) { max-width: 310px; overflow: hidden; text-overflow: ellipsis; }
.result-count { color: var(--muted); font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }
.pagination span { min-width: 90px; color: var(--muted); font-size: 11px; text-align: center; }
.history-action { display: flex; gap: 6px; }
.table-link { padding: 5px 7px; border: 0; border-radius: 6px; color: var(--green); background: #eaf6ef; font-size: 10px; font-weight: 700; }
.table-link.danger { color: #a24b44; background: #fff0ed; }
.audit-panel { margin-top: 18px; }
.audit-action { display: inline-block; padding: 4px 7px; border-radius: 6px; color: #23644b; background: #e8f5ee; font-size: 9px; font-weight: 750; }
.audit-action.overwrite { color: #8a5b16; background: var(--amber-bg); }
.audit-action.delete { color: #9a4841; background: var(--rose-bg); }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8, 28, 26, .55); backdrop-filter: blur(3px); }
.modal { width: min(620px, 100%); overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 15px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #5a6965; background: #f0f4f2; font-size: 22px; line-height: 1; }
.month-first-step { display: flex; align-items: flex-start; gap: 12px; margin: 0 24px 15px; padding: 14px; border: 1px solid #cfe2da; border-radius: 11px; background: #f4faf7; }
.month-first-step > div { min-width: 0; display: grid; gap: 6px; flex: 1; }
.month-first-step select { width: min(260px, 100%); min-height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.month-first-step label { display: grid; gap: 5px; color: var(--muted); font-size: .88rem; }
.auto-month-step > div { min-width: 0; display: grid; gap: 4px; }
.auto-month-step strong { color: #275e4b; font-size: 12px; }
.auto-month-step small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.step-badge { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font-size: 11px; font-weight: 800; }
.upload-month-field { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 7px 14px; flex: 1; }
.upload-month-field > span { font-size: 12px; font-weight: 750; }
.upload-month-field select { width: 150px; min-width: 0; background: white; }
.upload-month-field small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.upload-month-field small.warning { color: #925c12; font-weight: 650; }
.upload-month-field small.ready { color: #287154; }
.upload-step-label { display: flex; align-items: center; gap: 10px; margin: 0 24px 10px; color: #43534f; font-size: 12px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 235px; margin: 0 24px 18px; padding: 26px; border: 1.5px dashed #9cc5b6; border-radius: 13px; background: #f7fbf9; outline: none; text-align: center; }
.drop-zone.dragging { border-color: #398763; background: #edf8f2; }
.drop-zone.locked { border-color: #d7dfdc; background: #f5f6f6; cursor: not-allowed; opacity: .68; }
.drop-zone.locked .upload-icon { background: #9aa6a2; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 13px; color: white; background: #367f61; font-size: 25px; }
.drop-zone strong { font-size: 14px; }
.drop-zone > span { margin: 7px 0 18px; color: var(--muted); font-size: 11px; }
.parse-progress { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 24px 18px; border-radius: 12px; background: #f7faf8; }
.parse-progress span { width: 28px; height: 28px; border: 3px solid #d9e8e1; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.parse-progress p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.import-preview { margin: 0 24px 18px; }
.file-chip { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.file-type { width: 42px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: white; background: #27805a; font-size: 9px; font-weight: 800; }
.file-chip div { min-width: 0; }
.file-chip strong, .file-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip strong { max-width: 430px; font-size: 11px; }
.file-chip small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.check-mark { margin-left: auto; color: #2b8b61; font-weight: 800; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.preview-grid label, .preview-grid > div { display: grid; gap: 6px; padding: 11px 12px; border-radius: 9px; background: #f6f8f7; }
.preview-grid span { color: var(--muted); font-size: 9px; font-weight: 700; }
.preview-grid input { width: 100%; min-width: 0; background: white; }
.preview-grid strong { align-self: center; font-size: 12px; }
.preview-money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.preview-money-grid > div { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #e6ece9; border-radius: 9px; background: white; }
.preview-money-grid span { color: var(--muted); font-size: 9px; }
.preview-money-grid strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.preview-money-grid .actual { color: #175e45; border-color: #bcdcca; background: #f0f8f4; }
.warning-box { margin-top: 11px; padding: 10px 12px; border-radius: 8px; color: #855612; background: var(--amber-bg); font-size: 10px; line-height: 1.6; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px 20px; border-top: 1px solid var(--line); }
#employeeModal .modal-foot { flex-wrap: wrap; }
#employeeSaveError { flex-basis: 100%; margin: 0 0 6px; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #e5f5ed 0, var(--canvas) 45%, #edf2ef 100%); }
.auth-card { width: min(460px, 100%); padding: 42px 40px 38px; border: 1px solid #d8e6e0; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 28px 80px rgba(20, 57, 49, .12); text-align: center; }
.auth-brand-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 18px; color: #ffffff; background: var(--green); }
.auth-card .eyebrow { margin-bottom: 9px; }
.auth-card h1 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.auth-card > p { margin: 12px auto 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.auth-card > small { display: block; margin-top: 18px; color: #8a9793; font-size: 10px; line-height: 1.6; }
.feishu-login { min-width: 190px; }
.feishu-logo { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #176448; background: white; font-size: 10px; font-weight: 800; }
.auth-error { margin: -10px 0 18px; padding: 10px 12px; border-radius: 9px; color: #97433c; background: var(--rose-bg); font-size: 11px; }

.sidebar-account { display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px; align-items: center; gap: 9px; margin-top: 10px; padding: 13px 7px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-account img, .user-avatar-fallback { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #133c31; background: #84d0a8; object-fit: cover; font-size: 12px; font-weight: 800; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { color: white; font-size: 11px; }
.sidebar-account small { margin-top: 3px; color: #83a79e; font-size: 9px; }
.sidebar-account .icon-button { width: 30px; height: 30px; color: #a9c8c0; background: rgba(255,255,255,.07); font-size: 15px; }

.permission-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.permission-summary > div { display: grid; gap: 4px; padding: 18px 20px; border-right: 1px solid var(--line); }
.permission-summary > div:last-child { border-right: 0; }
.permission-summary strong { font-size: 22px; }
.permission-summary span { color: var(--muted); font-size: 10px; }
.user-cell { display: flex; align-items: center; gap: 9px; }
.user-cell strong, .user-cell small { display: block; }
.user-cell small { max-width: 240px; margin-top: 3px; overflow: hidden; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; text-overflow: ellipsis; }
.mini-avatar, .permission-user-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #225c47; background: #dff3e8; font-weight: 800; }
.mini-avatar { width: 30px; height: 30px; font-size: 11px; }
.role-badge, .account-status { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 750; }
.role-badge.admin { color: #6d4c12; background: #fff0c8; }
.role-badge.finance { color: #225d4a; background: #dff3e8; }
.role-badge.user { color: #315f79; background: #e6f2f8; }
.role-badge.pending { color: #765b30; background: #f4ede1; }
.account-status.enabled { color: #27674f; background: #e3f4eb; }
.account-status.disabled { color: #97453e; background: var(--rose-bg); }
.role-management-panel, .user-permission-panel { margin-top: 16px; }
.role-management-panel .panel-head, .user-permission-panel .panel-head { border-bottom: 1px solid var(--line); }
.role-management-panel td small { display: block; max-width: 420px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.role-management-actions { display: flex; align-items: center; gap: 10px; }
.role-system-label { color: var(--muted); font-size: 9px; }

.permission-modal { width: min(820px, 100%); max-height: calc(100vh - 30px); overflow: auto; }
.permission-user-card { display: flex; align-items: center; gap: 12px; margin: 0 24px 17px; padding: 13px; border-radius: 11px; background: #f5f8f6; }
.permission-user-avatar { width: 40px; height: 40px; }
.permission-user-card strong, .permission-user-card small { display: block; }
.permission-user-card small { margin-top: 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.permission-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 24px 17px; }
.permission-form-grid label { display: grid; gap: 6px; }
.permission-form-grid label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.permission-form-grid select { width: 100%; min-width: 0; }
.permission-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 24px 15px; }
.permission-modal fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.permission-modal legend { padding: 0 6px; color: #42534e; font-size: 11px; font-weight: 750; }
.permission-modal fieldset > p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.permission-check-list { display: grid; gap: 7px; }
.role-page-group { display: grid; gap: 7px; }
.role-pages-hint { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.role-page-group h4 { margin: 4px 0; font-size: 11px; color: #247457; }
.role-page-group small, #roleActions small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.permission-check-list label, .promotion-check-list label { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 7px; background: #f7f9f8; color: #40504c; font-size: 10px; }
.permission-check-list input, .promotion-check-list input { margin: 1px 0 0; accent-color: var(--green); }
.role-permission-preview { display: grid; gap: 12px; margin: 0 24px 16px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f7faf8; }
.role-permission-preview > strong { font-size: 14px; }
.role-permission-preview > p { margin: -6px 0 0; color: var(--muted); font-size: 10px; }
.role-permission-preview > div { display: grid; gap: 6px; }
.role-permission-preview > div > span { color: var(--muted); font-size: 9px; font-weight: 750; }
.permission-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-chip-list em { padding: 5px 8px; border-radius: 999px; color: #245f4b; background: #e3f3eb; font-size: 9px; font-style: normal; font-weight: 700; }
.permission-chip-list small { color: var(--muted); font-size: 9px; }
.role-modal { width: min(900px, 100%); }
.role-form-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin: 0 24px 17px; }
.role-form-head label { display: grid; gap: 6px; }
.role-form-head label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.role-form-head input { width: 100%; }
.button-danger { color: #9a4039; border: 1px solid #e9c5c1; background: #fff6f5; }
.button-danger:hover { background: #fdebea; }
#deleteRoleButton { margin-right: auto; }
#promotionScopeField { margin: 0 24px 18px; }
.permission-scope-help { margin: 0 24px 16px; }
.permission-scope-help p { margin: 0 0 10px; padding: 12px; border-radius: 8px; color: #245f4b; background: #edf7f1; font-size: 11px; line-height: 1.7; }
.permission-scope-help p.warning { color: #79551e; background: #fff8e9; }
.permission-selection-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.permission-selection-tools > span { flex: 1 1 160px; color: var(--muted); font-size: 11px; }
.permission-selection-tools .button { min-height: 32px; padding: 7px 10px; font-size: 11px; }
.permission-only-selected { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.permission-only-selected input { margin: 0; }
.permission-filter-empty { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.promotion-check-list { max-height: 210px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; overflow: auto; }
.promotion-check-list label span { min-width: 0; }
.promotion-check-list strong, .promotion-check-list small { display: block; }
.promotion-check-list strong { font-family: ui-monospace, monospace; font-size: 9px; }
.promotion-check-list small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.section-actions { display: flex; align-items: center; gap: 9px; }
#employeesView .employee-title-row { flex-wrap: wrap; }
#employeesView .employee-title-row > div:first-child { flex: 1 1 420px; }
#employeeManageActions { flex-shrink: 0; flex-wrap: wrap; }
#employeeManageActions .button { white-space: nowrap; }
.employee-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.operations-promotion-masterdata { display: grid; gap: 15px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #cedfd7; }
.operations-promotion-masterdata .compact-section-title { margin-bottom: 0; }
.operations-promotion-masterdata .employee-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 0; }
.employee-kpi-grid article { min-height: 112px; display: grid; align-content: space-between; gap: 7px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.employee-kpi-grid article.warning { border-color: #ecd5a5; background: linear-gradient(145deg, #fffdf8, #fff8e8); }
.employee-kpi-grid span { color: #55645f; font-size: 10px; font-weight: 750; }
.employee-kpi-grid strong { color: #183b31; font-size: 25px; letter-spacing: -.035em; }
.employee-kpi-grid small { color: var(--muted); font-size: 9px; }
.employee-summary-panel { margin-bottom: 15px; }
.employee-total-chip { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #cde3d7; border-radius: 9px; background: #f1f8f4; }
.employee-total-chip span { color: var(--muted); font-size: 9px; }
.employee-total-chip strong { color: #176248; font-size: 15px; }
.group-badge { display: inline-block; padding: 5px 8px; border-radius: 7px; color: #315f79; background: #e9f4f8; font-size: 9px; font-weight: 750; }
.project-badge-list { display: flex; flex-wrap: wrap; gap: 5px; }
.employee-name-cell strong, .employee-name-cell small { display: block; }
.employee-name-cell small { margin-top: 3px; color: #a0574d; font-size: 8px; }
.unassigned-panel { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; margin-bottom: 15px; padding: 17px 18px; border-color: #ead3a4; background: #fffaf0; }
.unassigned-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #8b5d11; background: #ffe9b8; font-size: 17px; font-weight: 850; }
.unassigned-panel h3 { margin: 1px 0 5px; color: #704c12; font-size: 13px; }
.unassigned-panel p { margin: 0; color: #8c754d; font-size: 10px; line-height: 1.6; }
.unassigned-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.unassigned-action-hint { margin-top: 8px !important; color: #70551f !important; font-weight: 700; }
.promotion-pill-list { margin-top: 10px; }
.promotion-reference-list { display: flex; flex-wrap: wrap; gap: 7px; min-width: 250px; }
.promotion-reference { min-width: 148px; max-width: 240px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 8px; border: 1px solid #d8e4df; border-radius: 8px; color: #35514c; background: #f8fbf9; text-align: left; }
.promotion-reference strong { max-width: 220px; overflow: hidden; color: #28423b; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.promotion-reference small { max-width: 220px; overflow: hidden; color: var(--muted); font-family: ui-monospace, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.promotion-reference .promotion-alliance { color: #2c6652; font-family: inherit; font-weight: 700; }
.promotion-reference.interactive { border-color: #e2c889; color: #74551e; background: white; cursor: pointer; transition: .15s ease; }
.promotion-reference.interactive:hover { border-color: #c89d3d; background: #fff8e8; transform: translateY(-1px); }
.promotion-reference.interactive:focus-visible { outline: 3px solid rgba(201,157,61,.24); outline-offset: 2px; }
.operations-ungrouped-promotion { font: inherit; }
.employee-management { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(540px, 1.28fr); gap: 15px; align-items: start; }
.employee-management.single { grid-template-columns: minmax(0, 1fr); }
.promotion-settings-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.promotion-settings-scope select { height: 38px; min-width: 126px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #31554a; background-color: white; font: inherit; font-size: 9px; font-weight: 750; }
.promotion-settings-search { min-width: 270px; }
.promotion-owner-cell { min-width: 220px; }
.promotion-owner-cell strong, .promotion-owner-cell small { display: block; }
.promotion-owner-cell .promotion-note { max-width: 320px; overflow: hidden; color: #203b34; font-size: 12px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.promotion-owner-cell .promotion-number { margin-top: 5px; color: #7a8984; font-family: ui-monospace, monospace; font-size: 8px; font-weight: 600; letter-spacing: .015em; }
/* 同名推广位靠联盟名区分：名称后跟一个浅色联盟标签，带标签时允许折行不省略。 */
.promotion-alliance-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; color: #315f79; background: #e7f2f7; font-size: 9px; font-weight: 700; letter-spacing: .01em; vertical-align: 1px; }
.promotion-owner-cell .promotion-note.has-alliance { max-width: 420px; overflow: visible; text-overflow: clip; white-space: normal; }
.order-cell-primary .promotion-alliance-tag { vertical-align: 0; }
.owner-badge { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.owner-badge.assigned { color: #246148; background: #e4f4eb; }
.owner-badge.alliance { color: #315f79; background: #e7f2f7; }
.owner-badge.unassigned { color: #8b5b11; background: #fff0cd; }
.organization-modal { width: min(620px, 100%); }
.first-followup-modal { width: min(1080px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.first-followup-content { padding: 0 24px 18px; overflow: auto; min-height: 0; }
.first-followup-content p { line-height: 1.65; }
.first-followup-original, .first-followup-preview { white-space: pre-line; overflow-wrap: anywhere; padding: 13px 16px; border-radius: 10px; background: #f0f7f3; }
.first-followup-filters { display: grid; grid-template-columns: 0.8fr 1fr 1fr auto; align-items: end; gap: 14px; }
.first-registration-filters { grid-template-columns: 0.8fr 1fr 1fr auto; }
.first-followup-filters label { display: grid; gap: 8px; }
.first-followup-filters input, .first-followup-filters select { width: 100%; min-width: 0; }
.first-followup-content .search-box { margin: 14px 0; max-width: 100%; }
.first-followup-table-wrap { max-height: 320px; overflow: auto; }
.first-followup-table-wrap table { min-width: 660px; }
.first-followup-table-wrap th { position: sticky; top: 0; background: #f4f8f6; }
.first-followup-table-wrap td:nth-child(2) { min-width: 240px; max-width: 390px; white-space: normal; overflow-wrap: anywhere; }
.first-followup-table-wrap td small { display: block; margin-top: 5px; }
.first-followup-modal .modal-head, .first-followup-modal .modal-foot { flex-shrink: 0; }
@media (max-width: 640px) { .first-followup-filters { grid-template-columns: 1fr; } .first-followup-content { padding: 0 14px 12px; } }
.organization-form { display: grid; gap: 13px; padding: 3px 24px 23px; }
.organization-form.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organization-form label { display: grid; gap: 7px; }
.organization-form label > span { color: #4d5d58; font-size: 10px; font-weight: 750; }
.organization-form input, .organization-form select { width: 100%; min-width: 0; }
.organization-form .form-static-value { min-width: 0; height: 40px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #34534a; background: #f5f8f6; font-size: 11px; font-weight: 750; }
.organization-form .employee-project-field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.employee-project-field legend { padding: 0 5px; color: #4d5d58; font-size: 10px; font-weight: 750; }
.employee-project-field > p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.employee-project-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 190px; overflow: auto; }
.employee-project-choices label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 7px; background: #f7f9f8; color: #40504c; font-size: 10px; }
.employee-project-choices input { width: auto; margin: 0; accent-color: var(--green); }
.assignment-promotion-card { display: grid; gap: 5px; margin: 0 24px 17px; padding: 13px 14px; border-radius: 10px; background: #f4f8f6; }
.assignment-promotion-card strong { color: #1b4b3d; font-family: ui-monospace, monospace; font-size: 12px; }
.assignment-promotion-card span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.assignment-hint { margin: -8px 24px 18px; color: #7a6a4a; font-size: 9px; line-height: 1.6; }
.operations-formula-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 15px 18px; border: 1px solid #bcdccc; border-radius: 13px; background: linear-gradient(110deg, #edf8f2, #fbfdfc); }
.operations-formula-banner span, .operations-formula-banner strong { display: block; }
.operations-formula-banner span { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.operations-formula-banner strong { color: #1d6047; font-size: 17px; letter-spacing: -.015em; }
.operations-formula-banner p { max-width: 520px; margin: 0; color: #64736e; font-size: 10px; line-height: 1.65; text-align: right; }
.operations-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.operations-settings-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 15px; padding: 15px 18px; border: 1px solid #c7ddf0; border-radius: 13px; background: linear-gradient(110deg, #f0f7fc, #fbfdff); }
.operations-settings-notice strong { flex: 0 0 auto; color: #315f79; font-size: 13px; }
.operations-settings-notice p { max-width: 760px; margin: 0; color: #657780; font-size: 10px; line-height: 1.65; text-align: right; }
.operations-settings-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.operations-settings-groups-panel { margin-bottom: 15px; }
.operations-settings-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.operations-settings-group-card { min-width: 0; overflow: hidden; border: 1px solid #dce8e2; border-radius: 11px; background: #fbfdfc; }
.operations-settings-group-card[data-view-group-promotions] { cursor: pointer; }
.operations-settings-group-card[data-view-group-promotions]:hover { border-color: #8fc5aa; }
.operations-group-view-button { flex: 1; border: 0; padding: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.operations-group-view-button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.operations-group-view-button em { display: block; margin-top: 5px; color: #267559; font-size: 10px; font-style: normal; }
.operations-modal.operations-group-promotions-modal { width: min(1050px, 100%); }
.operations-group-promotions-content { min-width: 0; padding: 0 24px; }
.operations-group-promotions-content > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.operations-group-promotions-content > p:last-child { margin-top: 16px; }
.operations-group-promotions-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.operations-group-promotions-toolbar .search-box { flex: 1; min-width: min(260px, 100%); }
.operations-group-promotions-toolbar > span { color: var(--muted); font-size: 12px; }
.operations-group-promotions-content table { min-width: 760px; }
.operations-group-promotions-content td { white-space: normal; overflow-wrap: anywhere; }
.operations-group-promotions-content th:first-child { width: 30%; }
.operations-settings-group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid #e4ede8; background: #f2f8f5; }
.operations-settings-group-card-title { min-width: 0; display: flex; align-items: center; gap: 9px; }
.operations-settings-group-card-title .operations-group-mark { width: 32px; height: 32px; border-radius: 9px; }
.operations-settings-group-card-title strong, .operations-settings-group-card-title small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-settings-group-card-title strong { color: #244a3e; font-size: 11px; }
.operations-settings-group-card-title small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.operations-settings-member-list { display: grid; gap: 6px; padding: 10px; }
.operations-settings-member { width: 100%; min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; color: inherit; background: white; text-align: left; }
.operations-settings-member > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #2a684f; background: #e2f2ea; font-size: 10px; font-weight: 850; }
.operations-settings-member strong, .operations-settings-member small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-settings-member strong { color: #2a493f; font-size: 10px; }
.operations-settings-member small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.operations-settings-member em { color: #2d7559; font-size: 8px; font-style: normal; font-weight: 750; white-space: nowrap; }
.operations-settings-promotions-panel { overflow: hidden; }
.operations-settings-search { min-width: 300px; }
.operations-settings-table { min-width: 980px; }
.operations-settings-owner { display: grid; gap: 3px; }
.operations-settings-owner strong { color: #285646; font-size: 11px; }
.operations-settings-owner small { color: var(--muted); font-size: 8px; }
.operations-settings-owner.unassigned strong { color: #9a6617; }
.employee-kpi-grid .operations-net-kpi { color: white; border-color: #1e594a; background: linear-gradient(145deg, #17443b, #286c57); }
.employee-kpi-grid .operations-net-kpi span, .employee-kpi-grid .operations-net-kpi small { color: #bdd7ce; }
.employee-kpi-grid .operations-net-kpi strong { color: white; }
.operations-group-list { display: grid; gap: 15px; margin-bottom: 15px; }
.operations-group-card { overflow: visible; }
.operations-group-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.operations-group-title { display: flex; align-items: center; gap: 11px; }
.operations-group-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #1f634a; background: #dff3e8; font-size: 12px; font-weight: 850; }
.operations-group-title h3 { margin: 0; color: #213f37; font-size: 14px; }
.operations-group-operator { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 8px; border-radius: 999px; color: #236248; background: #e6f4ec; font-size: 9px; font-weight: 750; vertical-align: middle; }
.operations-group-title p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.operations-group-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; }
.operations-group-summary div { display: grid; gap: 3px; text-align: right; }
.operations-group-summary span { color: var(--muted); font-size: 8px; }
.operations-group-summary strong { color: #1c684b; font-size: 17px; font-variant-numeric: tabular-nums; }
.operations-payroll-table { min-width: 900px; }
.operations-payroll-table .commission-after-rate { color: #315f79; font-weight: 750; }
.operations-payroll-table .net-commission { color: #176444; font-size: 13px; font-weight: 850; }
.monthly-calculation-table { min-width: 1180px; }
.monthly-calculation-filter { min-width: 250px; display: grid; gap: 5px; }
.monthly-calculation-filter > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.monthly-calculation-filter select { width: 100%; }
.monthly-calculation-filter small { color: var(--muted); font-size: 9px; text-align: right; }
.monthly-calculation-table td:first-child strong, .monthly-calculation-table td:first-child small { display: block; }
.monthly-calculation-table td:first-child small { margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.monthly-calculation-table .monthly-total-row { background: #edf8f2; }
.monthly-calculation-table .monthly-total-row td { border-top: 2px solid #8fc5aa; font-weight: 800; }
.monthly-calculation-notice { display: flex; align-items: flex-start; gap: 13px; margin-top: 15px; padding: 16px 18px; }
.monthly-calculation-notice h3 { margin: 0 0 5px; font-size: 13px; }
.monthly-calculation-notice p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.operations-member-summary-row > td { border-bottom: 0; background: #fcfdfc; }
.operations-promotion-breakdown-row > td { padding: 0 14px 14px; background: #fcfdfc; }
.operations-single-member-breakdown { padding: 12px 14px 14px; background: #fcfdfc; }
.operations-promotion-breakdown { overflow: hidden; border: 1px solid #dbe9e2; border-radius: 10px; background: white; }
.operations-promotion-breakdown-direct { border-radius: 12px; }
.operations-promotion-breakdown-title { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #e3ece8; background: #f1f7f4; }
.operations-promotion-breakdown-title strong { color: #254b3f; font-size: 10px; }
.operations-promotion-breakdown-title span { color: var(--muted); font-size: 8px; }
.operations-promotion-breakdown > .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.operations-subsidy-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 16px; border-top: 1px solid #bddbcd; background: #edf8f2; color: #254b3f; }
.operations-subsidy-total { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px 16px; }
.operations-subsidy-total > span, .operations-subsidy-equation { font-size: 12px; }
.operations-subsidy-total > small { grid-column: 1 / -1; font-size: 10px; color: var(--muted); white-space: normal; }
.operations-subsidy-summary strong { display: block; font-size: 19px; color: #176444; font-variant-numeric: tabular-nums; }
.operations-subsidy-equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; white-space: normal; }
.operations-subsidy-equation > div { display: grid; gap: 4px; }
.operations-promotion-detail-table { min-width: 940px; }
.operations-promotion-detail-table th { padding-top: 8px; padding-bottom: 8px; font-size: 8px; }
.operations-promotion-detail-table td { padding-top: 9px; padding-bottom: 9px; background: white; }
.operations-promotion-detail-table tbody tr:last-child td { border-bottom: 0; }
.operations-promotion-detail-name, .operations-promotion-channel { display: grid; gap: 3px; min-width: 155px; white-space: normal; }
.operations-promotion-detail-name strong, .operations-promotion-channel strong { color: #294c41; font-size: 9px; }
.operations-promotion-detail-name small, .operations-promotion-channel small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.operations-modal { width: min(760px, 100%); max-height: calc(100vh - 30px); overflow: auto; }
.operations-choice-field { min-width: 0; margin: 0 24px 20px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.operations-choice-field legend { padding: 0 6px; color: #40514c; font-size: 11px; font-weight: 750; }
.operations-choice-field > p { margin: 0 0 10px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.operations-candidates-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.operations-candidates-toolbar p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.operations-candidates-toolbar button { flex-shrink: 0; white-space: nowrap; }
#operationsGroupError { color: #9b3b21; font-size: 12px; }
.operations-choice-list { max-height: 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow: auto; }
.operations-choice-list label { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: #40504c; background: #f6f9f7; font-size: 10px; }
.operations-choice-list label:hover { border-color: #c4dbd1; background: #f0f7f3; }
.operations-choice-list input { margin: 0; accent-color: var(--green); }
.operations-choice-list strong, .operations-choice-list small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-choice-list strong { color: #29453d; font-size: 10px; }
.operations-choice-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.operations-choice-list .choice-owner { color: #8b5b11; }
.operations-assignee-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 24px 14px; padding: 13px 14px; border-radius: 10px; background: #edf7f2; }
.operations-assignee-card span { color: var(--muted); font-size: 9px; }
.operations-assignee-card strong { color: #1d5c45; font-size: 13px; }
.operations-assignee-card small { color: #537268; font-size: 9px; }
.operations-promotion-tools { display: grid; grid-template-columns: 180px minmax(260px, 1fr); gap: 12px; margin: 0 24px 14px; }
.operations-promotion-tools > label { min-width: 0; display: grid; grid-template-rows: auto 40px; align-content: end; gap: 6px; }
.operations-promotion-tools > label > span:first-child { color: #4d5d58; font-size: 9px; font-weight: 750; }
.operations-promotion-tools select, .operations-promotion-tools .search-box { width: 100%; min-width: 0; height: 40px; }
.operations-promotion-filter .search-box > span:first-child { color: #82918c; font-size: inherit; font-weight: 400; }
.operations-choice-list.promotion-list { max-height: 340px; }
.operations-empty-help { padding: 24px; color: var(--muted); text-align: center; font-size: 10px; }
.alimama-status-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7faf8; }
.alimama-status-banner .status-dot { flex: 0 0 auto; }
.alimama-status-banner strong { display: block; color: #28433b; font-size: 11px; }
.alimama-status-banner p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.alimama-status-banner.ready { border-color: #c6e2d5; background: #f1f8f4; }
.alimama-status-banner.warning { border-color: #ead3a4; background: #fff9ed; }
.alimama-status-banner.warning .status-dot { background: #c89332; box-shadow: 0 0 0 4px rgba(200,147,50,.12); }
.alimama-status-banner.error { border-color: #ebc4bd; background: #fff5f3; }
.alimama-status-banner.error .status-dot { background: #b65e50; box-shadow: 0 0 0 4px rgba(182,94,80,.12); }
.alimama-kpi-grid article:nth-child(3), .alimama-kpi-grid article:nth-child(4) { border-color: #cfe1ec; background: linear-gradient(145deg, #fbfdfe, #f1f8fb); }
.alimama-table-wrap { max-height: calc(100vh - 380px); }
.alimama-order-warning { color: #9a6820; font-weight: 750; }
.order-workspace-tabs { margin-bottom: 18px; }
.order-source-tabs.monthly-calculation-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.monthly-estimate-status { margin-bottom: 15px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f2f8f5; color: #245846; font-size: 12px; }
.company-notice { padding: 18px; margin: 15px 0; font-size: 12px; line-height: 1.7; }
.company-summary { margin-bottom: 12px; overflow: hidden; }
.company-summary summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; cursor: pointer; background: #f1f8f4; }
.company-summary summary > span:last-child { text-align: right; font-size: 11px; color: var(--muted); }
.company-summary summary strong { display: block; color: var(--deep); font-size: 17px; }
.company-summary summary small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.company-settings { padding: 20px; margin-top: 20px; }
.company-settings-status { padding: 12px 0; color: var(--green); }
.company-config-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.company-settings fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0 0 20px; min-width: 0; }
.company-settings label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.company-settings input:not([type=checkbox]), .company-settings select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.company-settings .company-check { display: flex; align-items: center; }
.company-warning { display: block; color: #a34a25; font-size: 12px; }
@media (max-width: 900px) { .company-config-columns { grid-template-columns: 1fr; } }
.monthly-estimate-status.error { border-color: #ebc4bd; background: #fff5f3; color: #a44838; }
.monthly-estimate-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.monthly-estimate-filters label { display: grid; flex: 1 1 210px; gap: 6px; color: var(--muted); font-size: 11px; }
.monthly-estimate-filters input, .monthly-estimate-filters select { width: 100%; min-width: 0; height: 40px; }
.monthly-estimate-filters input { padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; font-size: 12px; }
.monthly-estimate-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1181px) and (max-width: 1600px) {
  .monthly-estimate-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#monthlyEstimatePanel > .panel { margin-bottom: 16px; }
#monthlyEstimatePanel .order-operator-details table { min-width: 640px; }
.order-workspace-tabs .order-source-tabs { margin-bottom: 0; }
.order-source-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.order-source-tab { min-height: 68px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: #40504c; background: white; text-align: left; box-shadow: 0 5px 16px rgba(23, 61, 54, .025); }
.order-source-tab > span { width: 36px; height: 36px; display: grid; grid-row: 1 / 3; place-items: center; border-radius: 10px; color: #45645a; background: #edf3f0; font-size: 12px; font-weight: 800; }
.order-source-tab strong { align-self: end; font-size: 13px; }
.order-source-tab small { align-self: start; color: var(--muted); font-size: 9px; }
.order-source-tab:hover { border-color: #aacabe; background: #fbfdfc; }
.order-source-tab.active { color: #1f654a; border-color: #83bea4; background: linear-gradient(145deg, #f7fcf9, #edf8f2); box-shadow: 0 7px 20px rgba(37, 111, 78, .08); }
.order-source-tab.active > span { color: white; background: linear-gradient(145deg, #68b990, #2d795c); }
.youzan-api-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding: 14px 18px; border-color: #c6e2d5; background: #f4faf6; }
.youzan-api-panel[hidden] { display: none; }
.youzan-api-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.youzan-api-status h2 { margin: 0; color: #28433b; font-size: 11px; }
.youzan-api-status p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.youzan-api-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.youzan-api-panel.warning { border-color: #ead3a4; background: #fff9ed; }
.youzan-api-panel.warning .status-dot { background: #c89332; box-shadow: 0 0 0 4px rgba(200,147,50,.12); }
.youzan-api-panel.error { border-color: #ebc4bd; background: #fff5f3; }
.youzan-api-panel.error .status-dot { background: #b65e50; box-shadow: 0 0 0 4px rgba(182,94,80,.12); }
.order-empty { margin-bottom: 15px; }
.order-kpi-grid article:nth-child(3), .order-kpi-grid article:nth-child(4) { border-color: #cfe1ec; background: linear-gradient(145deg, #fbfdfe, #f1f8fb); }
.order-kpi-grid.jd-breakdown article:nth-child(2) { border-color: #c6e2d5; background: linear-gradient(145deg, #fbfefc, #eef8f2); }
.order-kpi-grid.jd-breakdown article:nth-child(3) { border-color: #ead8b8; background: linear-gradient(145deg, #fffefa, #fff8ea); }
.order-kpi-grid.jd-breakdown article:nth-child(3) strong { color: #8a5a19; }
.order-kpi-grid.jd-breakdown article:nth-child(4) { border-color: #e0cfeb; background: linear-gradient(145deg, #fefcff, #f7f1fb); }
.order-kpi-grid.jd-breakdown article:nth-child(4) strong { color: #704d85; }
.order-source-panel { margin-bottom: 15px; }
.order-rights-panel { margin-bottom: 15px; border-color: #ead8b8; }
.order-rights-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fffdf9; }
.order-rights-kpis article { min-width: 0; display: grid; gap: 6px; padding: 16px 18px; border-right: 1px solid #eee6d7; }
.order-rights-kpis article:last-child { border-right: 0; }
.order-rights-kpis span { color: var(--muted); font-size: 9px; }
.order-rights-kpis strong { color: #704b18; font-size: 20px; font-variant-numeric: tabular-nums; }
.order-rights-kpis small { color: #8a7a63; font-size: 8px; }
.order-rights-kpis article.adjusted { background: #f2f8f5; }
.order-rights-kpis article.adjusted strong { color: #1f684d; }
.order-rights-import-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.order-rights-import-row p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.order-rights-alliance-table-wrap { max-height: 260px; }
.order-rights-table-wrap { max-height: 360px; }
/* Promotion summaries expand with the page; no hidden inner vertical scroll. */
.order-summary-table-wrap { max-height: none; }
.order-promotion-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.order-promotion-tools .search-box { width: min(370px, 100%); }
.order-promotion-tools .search-box input { min-width: 0; }
.order-operator-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.order-operator-toggle strong { display: block; color: #195c49; font-size: 13px; }
.order-operator-toggle small { display: block; margin-top: 5px; color: var(--muted); }
.order-operator-toggle:focus-visible { outline: 2px solid #237c5f; outline-offset: 3px; border-radius: 5px; }
.order-operator-chevron { color: #237c5f; font-size: 17px; }
.order-operator-row:hover { background: #f2f9f5; }
.order-operator-details > td { padding: 14px 18px 20px; background: #f2f7f5; }
.order-operator-details[hidden] { display: none; }
.order-operator-detail-title { margin-bottom: 12px; color: #195c49; font-weight: 750; }
.order-operator-detail-title span { margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.order-operator-details .table-wrap { border: 1px solid var(--line); border-radius: 10px; background: white; }
#orderPromotionTable.youzan-net { min-width: 1180px; }
.order-summary-table-wrap td.net-commission { color: #176444; font-weight: 850; }
.order-summary-table-wrap td.net-commission .order-cell-secondary { font-weight: 600; }
.order-record-table-wrap { max-height: calc(100vh - 300px); }
.order-record-table { min-width: 1120px; }
.order-record-tools { gap: 18px; }
.order-filters { display: flex; align-items: center; gap: 9px; }
.order-filters .button { white-space: nowrap; }
.launch-accounting-filter-panel { margin-bottom: 15px; padding: 18px; }
.launch-accounting-filters { display: grid; grid-template-columns: 150px 190px minmax(260px, 1fr) auto; gap: 12px; align-items: end; }
.launch-accounting-filters label { display: grid; gap: 6px; min-width: 0; }
.launch-accounting-filters label > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.launch-accounting-filters input, .launch-accounting-filters select { width: 100%; height: 42px; min-width: 0; }
.launch-accounting-filters .button { height: 42px; white-space: nowrap; }
.launch-matching-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.launch-matching-note strong { color: #28594c; }
.launch-accounting-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.panel-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.launch-product-search-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfcfc; }
.launch-product-search-combobox { position: relative; width: min(620px, 100%); }
.launch-product-search-combobox .search-box { width: 100%; min-width: 0; height: 42px; background: #fff; }
.launch-select-visible { display: inline-flex; align-items: center; gap: 7px; color: #28594c; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.launch-select-visible input { width: 16px; height: 16px; accent-color: #237c5f; }
.launch-product-search-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
/* 1.45.0 统一补贴比例：给已勾选的商品一次填同一个比例 */
.launch-bulk-subsidy { display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.launch-bulk-subsidy-label { color: #28594c; font-size: 11px; font-weight: 750; }
.launch-bulk-subsidy .launch-subsidy-rate { width: 96px; margin-left: 0; }
.launch-bulk-subsidy .button { height: 34px; padding: 0 12px; font-size: 11px; }
.launch-product-suggestions { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(25, 61, 51, .16); }
.launch-product-suggestion { display: flex; width: 100%; flex-direction: column; gap: 3px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.launch-product-suggestion:hover, .launch-product-suggestion:focus-visible { outline: 0; background: #eef7f2; }
.launch-product-suggestion span { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.launch-product-suggestion small { color: var(--muted); font-size: 11px; }
.launch-accounting-table { min-width: 1510px; }
.launch-accounting-table td { vertical-align: middle; }
.launch-cost-breakdown { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.launch-accounting-table td:nth-child(2) .launch-cost-breakdown { max-width: 310px; line-height: 1.45; white-space: normal; }
.launch-select-column { width: 58px; min-width: 58px; text-align: center; }
.launch-selection-control { display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.launch-selection-control input { width: 17px; height: 17px; accent-color: #237c5f; }
.launch-selection-control input:disabled { cursor: not-allowed; }
.launch-selection-control small { min-height: 12px; color: #267454; font-size: 8px; font-weight: 750; white-space: nowrap; }
.launch-profit-positive { color: #16714f; font-weight: 800; }
.launch-profit-negative { color: #b44235; font-weight: 800; }
.launch-subsidy-rate { width: 106px; margin-left: auto; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; overflow: hidden; border: 1px solid #c9d9d3; border-radius: 8px; background: #fff; }
.launch-subsidy-rate:focus-within { border-color: #3d9873; box-shadow: 0 0 0 3px rgba(61, 152, 115, .13); }
.launch-subsidy-rate input { width: 100%; height: 34px; padding: 6px 5px 6px 9px; border: 0; outline: 0; color: #21493c; background: transparent; font-size: 10px; font-weight: 750; text-align: right; }
.launch-subsidy-rate input:disabled { color: #6b7b76; background: #f2f5f4; cursor: not-allowed; }
.launch-subsidy-rate span { color: var(--muted); font-size: 9px; text-align: center; }
.launch-subsidy-amount { color: #9a6218; font-weight: 850; }
.saved-subsidy-panel-head { align-items: end; }
.saved-subsidy-tools { grid-template-columns: 140px minmax(280px, 1fr) auto; align-items: end; margin: 0; }
.saved-subsidy-tools > label { grid-template-rows: 40px; }
.saved-subsidy-tools .search-box { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 40px; align-items: center; }
.saved-subsidy-tools .search-box > span { font-size: 13px; text-align: center; }
.saved-subsidy-tools .result-count { align-self: center; white-space: nowrap; }
.launch-product-list-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-list-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 12px; }
.product-list-operator-filter { display: grid; gap: 6px; width: 230px; max-width: 100%; }
.product-list-operator-filter > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.product-list-operator-filter select { width: 100%; min-width: 0; height: 40px; }
.saved-first-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.saved-first-tools > label { grid-template-rows: 40px; }
.saved-first-tools select { min-width: 135px; }
.saved-first-tools .search-box { display: flex; width: 280px; max-width: 100%; }
.saved-first-tools .result-count { white-space: nowrap; }
#firstProductsView .saved-subsidy-panel-head { flex-wrap: wrap; gap: 15px; }
.first-products-table { min-width: 1250px; }
.first-products-table td { white-space: normal; }
.first-products-table td:first-child { min-width: 250px; max-width: 350px; }
.first-products-table td small { display: block; margin-top: 5px; color: var(--muted, #70817c); overflow-wrap: anywhere; }
.first-products-table td:nth-child(2), .first-products-table td:nth-child(3) { min-width: 155px; max-width: 215px; }
.first-daily-table { min-width: 1150px; table-layout: fixed; }
.first-history-table { min-width: 1140px; table-layout: fixed; }
.first-daily-product-col { width: 28%; }
.first-daily-owner-col { width: 16%; }
.first-daily-commission-col { width: 16%; }
.first-daily-status-col { width: 14%; }
.first-history-product-col { width: 24%; }
.first-history-owner-col { width: 13%; }
.first-history-followup-col { width: 23%; }
.first-history-commission-col { width: 13%; }
.first-history-reward-col { width: 15%; }
.first-history-actions-col { width: 12%; }
.first-daily-table td, .first-history-table td { height: auto; padding-top: 14px; padding-bottom: 14px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; vertical-align: top; }
.first-daily-table th, .first-history-table th { white-space: normal; line-height: 1.6; }
.first-daily-table td > strong, .first-history-table td > strong { display: block; color: #274d40; }
.first-daily-table td small, .first-history-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.first-history-panel-head { flex-wrap: wrap; align-items: center; gap: 12px; }
.first-history-panel-head .result-count { flex-shrink: 0; color: #35654f; font-size: 12px; font-weight: 650; }
.first-history-table .first-history-group th { height: auto; padding: 12px 14px; color: #245e44; background: #eef7f1; text-align: left; }
.first-history-group small { display: inline-block; margin-left: 16px; font-size: 11px; font-weight: 400; color: #668173; }
.first-reward-cell > strong { display: block; font-size: 16px; line-height: 1.6; white-space: nowrap; }
.first-reward-cell > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; white-space: normal; }
.first-record-actions { display: grid; justify-items: start; gap: 10px; }
:is(.first-daily-table, .first-history-table, .first-products-table) .table-action { padding: 6px 10px; border: 1px solid #d0e3d8; border-radius: 7px; color: #276b4c; background: #eff8f2; font-size: 11px; line-height: 1.5; }
:is(.first-daily-table, .first-history-table, .first-products-table) .table-action:hover { background: #e0f1e6; }
:is(.first-history-table, .first-products-table) .table-action.danger { color: #995047; border-color: #edd3cc; background: #fff7f5; }
:is(.first-daily-table, .first-history-table, .first-products-table) .table-action:disabled { opacity: .5; cursor: wait; }
.saved-subsidy-table { min-width: 1720px; }
.saved-subsidy-table td { padding-top: 8px; padding-bottom: 8px; }
.saved-subsidy-editor { display: grid; justify-content: end; gap: 5px; }
.saved-subsidy-save { min-height: 28px; padding: 6px 10px; border: 0; border-radius: 6px; background: #e3f4eb; color: #1b694c; font-size: 11px; font-weight: 750; cursor: pointer; }
.saved-subsidy-save:disabled { opacity: .5; cursor: default; }
.launch-operator-summary-panel { margin-bottom: 16px; }
.launch-operator-summary-table { min-width: 850px; }
.selection-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.selection-status.is-configured { color: #1b694c; background: #e3f4eb; }
.selection-status.is-pending { color: #996018; background: #fff2d4; }
.launch-selection-remove { padding: 5px 8px; border: 1px solid #e2c7bf; border-radius: 7px; color: #a1473d; background: #fff8f6; font-size: 9px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.launch-selection-remove:hover, .launch-selection-remove:focus-visible { border-color: #c98274; outline: 0; background: #fff0ec; }
.launch-selection-remove:disabled { opacity: .55; cursor: wait; }
.order-cell-primary, .order-cell-secondary { display: block; }
.order-cell-primary { max-width: 310px; overflow: hidden; color: #27453c; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.order-cell-secondary { max-width: 310px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.order-status { display: inline-block; padding: 4px 7px; border-radius: 6px; color: #315f79; background: #e8f2f7; font-size: 9px; font-weight: 750; white-space: nowrap; }
.order-status.invalid { color: #97453e; background: var(--rose-bg); }
.order-status.settled { color: #27674f; background: #e3f4eb; }
.order-import-note { color: #52645e; background: #f2f7f4; }
.order-upload-progress { margin: 0 24px 18px; }
.order-upload-progress > div { height: 8px; overflow: hidden; border-radius: 999px; background: #e5ece9; }
.order-upload-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c7d5d, #70bf93); transition: width .2s ease; }
.order-upload-progress p { margin: 8px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.recruiting-accounting-notice { margin-bottom: 15px; }
.recruiting-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recruiting-kpis article:nth-child(3), .recruiting-kpis article:nth-child(4) { border-color: #cfe1ec; background: linear-gradient(145deg, #fbfdfe, #f1f8fb); }
.recruiting-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.recruiting-source-grid.single { grid-template-columns: 1fr; }
.recruiting-source-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px 16px; }
.recruiting-source-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #1f6b4d; background: #dff2e8; font-size: 13px; font-weight: 850; }
.recruiting-source-icon.rights { color: #8b5a18; background: #fff0d2; }
.recruiting-source-copy { min-width: 0; }
.recruiting-source-copy strong { color: #26483e; font-size: 12px; }
.recruiting-source-copy p { margin: 5px 0 0; overflow: hidden; color: #52645e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recruiting-source-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.recruiting-source-actions { display: flex; align-items: center; gap: 7px; }
.recruiting-data-panel { overflow: hidden; }
.recruiting-toolbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.recruiting-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 10px; background: #eef4f1; }
.recruiting-tabs button { min-height: 34px; padding: 7px 14px; border: 0; border-radius: 8px; color: #5c6c67; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.recruiting-tabs button:hover { color: #205e47; }
.recruiting-tabs button.active { color: white; background: #246b50; box-shadow: 0 4px 12px rgba(34, 102, 76, .18); }
.recruiting-filters { min-width: 420px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.recruiting-filters .search-box { min-width: 300px; }
.recruiting-filters select { min-width: 130px; height: 40px; }
.recruiting-table-wrap { max-height: calc(100vh - 360px); border: 0; border-radius: 0; box-shadow: none; }
.recruiting-table { min-width: 1240px; }
.recruiting-rights-table { min-width: 1220px; }
.recruiting-order-counts { display: grid; gap: 3px; min-width: 105px; }
.recruiting-order-counts strong { color: #294a40; font-size: 10px; }
.recruiting-order-counts small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.recruiting-rate { color: #245f49; font-size: 10px; font-weight: 800; white-space: nowrap; }
.recruiting-match-note { display: block; margin-top: 4px; color: #98702d; font-size: 8px; }
.recruiting-data-panel > [role="tabpanel"] > .pagination { padding: 13px 16px; border-top: 1px solid var(--line); }
.panel-inline-hint { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.youzan-recruiting-panel > .pagination { padding: 13px 16px; border-top: 1px solid var(--line); }
.youzan-page-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.youzan-page-switcher button { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; color: #486159; background: #fff; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.youzan-page-switcher button:hover { border-color: #9ec9b6; background: #f9fcfa; }
.youzan-page-switcher button.active { border-color: #52a27e; background: linear-gradient(145deg, #f8fcfa, #edf8f2); box-shadow: 0 7px 20px rgba(32, 101, 73, .1); }
.youzan-page-switcher button > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #246b50; background: #e0f2e9; font-size: 13px; font-weight: 850; }
.youzan-page-switcher button > span:last-child { min-width: 0; display: grid; gap: 3px; }
.youzan-page-switcher strong { color: #24483d; font-size: 12px; }
.youzan-page-switcher small { color: var(--muted); font-size: 8px; }
.youzan-brand-panel { margin-bottom: 16px; }
.youzan-brand-table-wrap { max-height: calc(100vh - 300px); }
.youzan-brand-table { min-width: 760px; }
.youzan-brand-table th:first-child { width: 32%; }
.youzan-brand-table th:nth-child(2), .youzan-brand-table th:nth-child(3) { width: 180px; }
.youzan-brand-table th:last-child { width: 80px; }
.youzan-brand-group-row td { padding: 9px 14px; background: #edf6f1; color: #245e4d; border-top: 1px solid #cfe2d9; }
.youzan-brand-group-row strong { font-size: 11px; }
.youzan-brand-group-row small { margin-left: 8px; color: #6d7e78; font-size: 9px; }
.youzan-brand-products-panel { margin-top: 16px; }
.youzan-brand-products-panel > .pagination { padding: 13px 16px; border-top: 1px solid var(--line); }
.youzan-brand-products-table { min-width: 1680px; }
.youzan-brand-products-table th:first-child { width: 25%; }
.youzan-brand-products-table th:nth-child(5) { width: 210px; }
.youzan-brand-products-table th:nth-child(6) { width: 210px; }
.youzan-brand-products-table th:nth-child(7) { width: 170px; }
.youzan-brand-products-table th:nth-child(8) { width: 190px; }
.youzan-accounting-cell { min-width: 190px; }
.youzan-accounting-cell small, .youzan-accounting-cell .table-link { display: block; margin-top: 6px; }
.youzan-accounting-mode-control { display: grid; gap: 4px; }
.youzan-accounting-mode-control > span { color: var(--muted); font-size: 8px; font-weight: 750; }
.youzan-accounting-mode-control select { width: 100%; min-width: 190px; height: 38px; color: #285548; font-size: 9px; font-weight: 800; background: #f8fcfa; }
.youzan-accounting-mode-control select:disabled { cursor: wait; opacity: .65; }
.youzan-accounting-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.youzan-accounting-badge.distribution { color: #27674f; background: #e3f4eb; }
.youzan-accounting-badge.self-listed { color: #315f79; background: #e8f2f7; }
.youzan-accounting-badge.excluded { color: #6a6253; background: #f0eee8; }
.youzan-accounting-badge.unknown { color: #97453e; background: var(--rose-bg); }
.youzan-cost-warning { color: #a45b24 !important; font-weight: 750; }
.youzan-accounting-modal { width: min(980px, 100%); }
.youzan-sku-cost-fieldset { max-height: 430px; overflow: auto; }
.youzan-sku-cost-fieldset.inactive { opacity: .52; }
.youzan-sku-cost-table { min-width: 760px; }
.youzan-sku-cost-table th:first-child { width: 34%; }
.youzan-sku-spec-list { max-width: 330px; display: flex; flex-wrap: wrap; gap: 5px; }
.youzan-sku-spec-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 7px; color: #255c4b; background: #e8f5ee; font-size: 9px; font-weight: 800; line-height: 1.35; }
.youzan-cost-input { width: 150px; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.youzan-cost-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 132, 94, .12); }
.youzan-cost-input span { color: var(--muted); font-size: 10px; text-align: center; }
.youzan-cost-input input { width: 100%; height: 36px; padding: 0 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.youzan-preview-notice { margin: 0 24px 20px; }
.youzan-accounting-preview-panel { margin: 16px 0; }
.youzan-accounting-preview-panel .recruiting-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.employee-role-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.employee-role-badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; background: #e7f4ed; color: #1e6b53; font-size: 9px; font-weight: 750; }
.employee-role-badge.recruiter { background: #fff2d7; color: #8a5b0d; }
.panel-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px 9px; color: #294c41; border-top: 1px solid var(--line); }
.panel-subhead strong { font-size: 11px; }
.panel-subhead small { color: var(--muted); font-size: 8px; }
.youzan-brand-summary-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfdfc; }
.youzan-brand-summary-block .panel-subhead { border-top: 0; }
.youzan-brand-summary-wrap { max-height: 310px; }
.youzan-brand-summary-table { min-width: 1120px; }
.youzan-product-detail-head { background: #fff; }
.youzan-recruiting-table { min-width: 1500px; }
.youzan-recruiting-table th:nth-child(1) { width: 26%; }
.youzan-product-data-table th:nth-child(2) { width: 180px; }
.youzan-product-data-table th:nth-child(9) { width: 230px; }
.youzan-assignment-cell, .youzan-cooperation-cell, .youzan-rate-cell { min-width: 0; }
.youzan-assignment-cell { display: table-cell; }
.youzan-assignment-cell select { width: 100%; min-width: 165px; height: 38px; padding: 0 30px 0 10px; }
.youzan-assignment-cell small, .youzan-cooperation-cell small, .youzan-rate-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.youzan-product-date-control { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 750; }
.youzan-product-date-control input { width: 150px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.youzan-product-date-control input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(42, 132, 94, .12); }
.youzan-first-order-control { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: #6f531d; font-size: 9px; font-weight: 800; cursor: pointer; }
.youzan-first-order-control input { width: 16px; height: 16px; accent-color: #b2781f; }
.youzan-rate-control { width: 132px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.youzan-rate-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 132, 94, .12); }
.youzan-rate-control input { width: 100%; height: 36px; padding: 0 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.youzan-rate-control span { color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.button-compact { min-height: 34px; padding: 7px 12px; font-size: 9px; white-space: nowrap; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: 1fr 1fr; }
  .employee-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-settings-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-settings-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-accounting-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-accounting-filters .button { width: 100%; }
  .employee-management { grid-template-columns: 1fr; }
  .order-source-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-rights-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-rights-kpis article:nth-child(2) { border-right: 0; }
  .order-rights-kpis article:nth-child(-n+2) { border-bottom: 1px solid #eee6d7; }
  .recruiting-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruiting-source-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; gap: 12px; padding: 15px 16px; }
  .brand { padding: 0; }
  .side-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
  .side-nav .nav-label, .side-nav .nav-item.muted { display: none; }
  .side-nav .nav-item { justify-content: center; margin: 0; }
  .sidebar-foot { padding: 10px 4px 0; }
  .sidebar-account { margin-top: 0; padding: 10px 4px; }
  .main-content { padding: 22px 14px 40px; }
  .topbar { display: block; }
  .topbar-actions { margin-top: 18px; align-items: flex-end; }
  .topbar-actions .button { flex: 1; }
  .formula-banner { align-items: flex-start; }
  .quality-pill { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-actions { width: 100%; }
  .search-box { min-width: 0; flex: 1; }
  .promotion-settings-tools { width: 100%; }
  .promotion-settings-scope, .promotion-settings-scope select { width: 100%; }
  .promotion-settings-search { min-width: 0; flex: 1; }
  .right-rail { grid-template-columns: 1fr; }
  .section-title-row { align-items: flex-start; }
  .permission-columns, .permission-form-grid, .role-form-head { grid-template-columns: 1fr; }
  .employee-title-row { gap: 14px; flex-direction: column; }
  #employeesView .employee-title-row > div:first-child { flex-basis: auto; }
  .monthly-calculation-filter { width: 100%; min-width: 0; }
  .monthly-calculation-filter small { text-align: left; }
  .youzan-api-panel { align-items: flex-start; flex-direction: column; }
  .order-filters { width: 100%; align-items: stretch; flex-direction: column; }
  .order-filters .button, .order-filters .search-box { width: 100%; }
  .order-rights-import-row { align-items: flex-start; flex-direction: column; }
  .operations-formula-banner { align-items: flex-start; flex-direction: column; }
  .operations-formula-banner p { text-align: left; }
  .operations-settings-notice { align-items: flex-start; flex-direction: column; gap: 8px; }
  .operations-settings-notice p { text-align: left; }
  .operations-settings-search { width: 100%; min-width: 0; }
  .launch-accounting-filters { grid-template-columns: 1fr; }
  .operations-group-head { align-items: flex-start; flex-direction: column; }
  .operations-group-summary { width: 100%; justify-content: space-between; }
  .recruiting-source-card { grid-template-columns: 42px minmax(0, 1fr); }
  .recruiting-source-actions { grid-column: 1 / -1; padding-left: 55px; }
  .recruiting-toolbar { align-items: stretch; flex-direction: column; }
  .recruiting-filters { width: 100%; min-width: 0; align-items: stretch; flex-direction: column; }
  .recruiting-filters .search-box, .recruiting-filters select { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .topbar-actions { align-items: stretch; flex-direction: column; }
  .month-control select { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 120px; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .panel-actions .button { width: 100%; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-money-grid { grid-template-columns: 1fr; }
  .upload-month-field { grid-template-columns: 1fr; }
  .upload-month-field small { grid-column: auto; }
  .upload-month-field select { width: 100%; }
  .modal { max-height: calc(100vh - 20px); overflow: auto; }
  .auth-card { padding: 34px 22px 30px; }
  .permission-summary { grid-template-columns: 1fr; }
  .permission-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .promotion-check-list { grid-template-columns: 1fr; }
  .employee-kpi-grid { grid-template-columns: 1fr; }
  .order-source-tabs { grid-template-columns: 1fr; }
  .section-actions { width: 100%; }
  .section-actions .button { flex: 1; }
  .organization-form.two-columns { grid-template-columns: 1fr; }
  .employee-project-choices { grid-template-columns: 1fr; }
  .operations-kpi-grid { grid-template-columns: 1fr; }
  .operations-settings-kpis { grid-template-columns: 1fr; }
  .operations-settings-group-grid { grid-template-columns: 1fr; }
  .operations-choice-list { grid-template-columns: 1fr; }
  .operations-promotion-tools { grid-template-columns: 1fr; }
  .panel-head-actions, .saved-subsidy-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .saved-first-tools { display: grid; grid-template-columns: 1fr; width: 100%; }
  .saved-first-tools .search-box { width: 100%; }
  .launch-product-search-bar { align-items: stretch; flex-direction: column; }
  .launch-bulk-subsidy { padding-left: 0; border-left: 0; }
  .operations-group-summary { align-items: stretch; flex-direction: column; }
  .operations-group-summary div { text-align: left; }
  .order-rights-kpis { grid-template-columns: 1fr; }
  .order-rights-kpis article { border-right: 0; border-bottom: 1px solid #eee6d7; }
  .order-rights-kpis article:last-child { border-bottom: 0; }
  .recruiting-kpis { grid-template-columns: 1fr; }
  .recruiting-source-actions { padding-left: 0; }
  .recruiting-source-actions .button { flex: 1; }
  .recruiting-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .youzan-page-switcher { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 招商渠道合作：保持源表团队、运营人与渠道三个维度可分辨。 */
.channel-cooperation-import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.channel-cooperation-import-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
.channel-cooperation-import-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.channel-cooperation-import-card h3 { margin: 0 0 4px; }
.channel-cooperation-import-card .panel-actions { flex-shrink: 0; }
.channel-cooperation-import-card .panel-actions .button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
/* 顶部三张导入卡片压成一行高：说明文字单行省略（悬停看全文），按钮留在右侧 */
.channel-cooperation-source-grid .channel-cooperation-import-card { gap: 10px; padding: 10px 14px; }
.channel-cooperation-source-grid .channel-cooperation-import-card > div:first-child { gap: 10px; }
.channel-cooperation-source-grid .channel-cooperation-import-card > div:first-child > div { min-width: 0; }
.channel-cooperation-source-grid .channel-cooperation-import-card h3 { margin: 0 0 2px; font-size: 14px; }
.channel-cooperation-source-grid .channel-cooperation-import-card p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-cooperation-source-grid .channel-cooperation-channel { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
.channel-cooperation-import-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.channel-cooperation-channel {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}
.channel-cooperation-notice {
  margin-bottom: 14px;
  padding: 15px 18px;
  border-color: #bcded0;
  background: #f3fbf7;
}
.channel-cooperation-notice p { margin: 5px 0 0; color: var(--muted); }
.channel-cooperation-filters { grid-template-columns: .75fr 1fr 1fr 1.5fr; }
.recruiting-service-fee-panel { margin-top: 18px; padding: 20px; }
.recruiting-service-fee-panel > .section-title-row { margin-bottom: 12px; }
.recruiting-service-fee-panel > .panel-head { padding: 14px 0 10px; }
.recruiting-service-fee-panel .channel-cooperation-notice { margin-bottom: 14px; }
.recruiting-service-fee-filters { grid-template-columns: 1fr 2fr; }
.recruiting-service-fee-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.recruiting-service-fee-row.active td { background: var(--mint); }
.recruiting-service-fee-detail { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.recruiting-service-fee-detail .panel-actions { display: flex; align-items: center; gap: 10px; }
.channel-cooperation-kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (min-width: 1181px) {
  .channel-cooperation-kpis { gap: 8px; }
  .channel-cooperation-kpis article { min-width: 0; min-height: 104px; gap: 6px; padding: 13px 10px; container-type: inline-size; }
  .channel-cooperation-kpis strong { font-size: 18px; font-size: clamp(12px, 12.5cqi, 23px); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .channel-cooperation-kpis small { overflow-wrap: anywhere; line-height: 1.35; }
}
.channel-cooperation-team-picker { position: relative; }
/* 1.44.0 招商团队多选：已选团队以标签形式排在输入框前面，整块看起来还是一个输入框 */
.channel-cooperation-team-field { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: text; }
.channel-cooperation-team-field:focus-within { border-color: #6cb490; box-shadow: 0 0 0 3px rgba(69,156,112,.11); }
.channel-cooperation-team-chips { display: contents; }
.channel-cooperation-team-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 3px 2px 9px; border-radius: 999px; color: #245f4b; background: #e3f3eb; font-size: 12px; font-weight: 600; }
.channel-cooperation-team-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-cooperation-team-chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; color: inherit; background: transparent; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.channel-cooperation-team-chip button:hover, .channel-cooperation-team-chip button:focus-visible { outline: 0; background: rgba(36, 95, 75, .14); }
.monthly-estimate-filters .channel-cooperation-team-field input { flex: 1 1 110px; width: auto; min-width: 110px; height: 30px; padding: 0 4px; border: 0; border-radius: 6px; }
.monthly-estimate-filters .channel-cooperation-team-field input:focus { border-color: transparent; box-shadow: none; }
.channel-cooperation-team-options { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(25, 61, 51, .16); }
.channel-cooperation-team-option { position: relative; display: block; width: 100%; padding: 9px 12px 9px 32px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.channel-cooperation-team-option::before { content: ""; position: absolute; top: 50%; left: 11px; width: 13px; height: 13px; transform: translateY(-50%); border: 1.5px solid #b9cfc5; border-radius: 4px; background: white; }
.channel-cooperation-team-option:hover, .channel-cooperation-team-option:focus-visible { outline: 0; background: #eef7f2; }
.channel-cooperation-team-option.active { color: #237c5f; font-weight: 700; }
.channel-cooperation-team-option.active::before { border-color: #237c5f; background: #237c5f; }
/* 对勾用边框画，不依赖字体 */
.channel-cooperation-team-option.active::after { content: ""; position: absolute; top: 50%; left: 15.5px; width: 3px; height: 7px; transform: translateY(-62%) rotate(45deg); border: solid white; border-width: 0 2px 2px 0; }
.channel-cooperation-team-option.is-all::before { display: none; }
.channel-cooperation-team-option.is-all { padding-left: 12px; color: var(--muted); }
.channel-cooperation-team-empty { padding: 10px 12px; color: var(--muted); font-size: 12px; }
.channel-cooperation-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.channel-cooperation-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.channel-cooperation-group:hover { border-color: var(--mint); transform: translateY(-1px); }
.channel-cooperation-group.active { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 2px rgba(42, 126, 95, .09); }
.channel-cooperation-group-head,
.channel-cooperation-group-metrics { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-cooperation-group-head strong { font-size: 17px; overflow-wrap: anywhere; }
.channel-cooperation-group-head em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.channel-cooperation-group-metrics { justify-content: flex-start; flex-wrap: wrap; }
.channel-cooperation-group-metrics span { color: var(--muted); font-size: 13px; }
.channel-cooperation-group-metrics b { margin-right: 3px; color: var(--ink); font-size: 16px; }
.channel-cooperation-group small { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.channel-cooperation-duplicate {
  display: block;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0e7;
  color: #a24d2d;
  font-size: 12px;
  line-height: 1.35;
}
.channel-cooperation-table { min-width: 1460px; }
.channel-cooperation-table th,
.channel-cooperation-table td { vertical-align: top; }
.channel-cooperation-product { min-width: 260px; max-width: 420px; overflow-wrap: anywhere; }
.channel-cooperation-match-table { min-width: 1560px; white-space: nowrap; }
.channel-cooperation-match-table .channel-cooperation-product,
.channel-cooperation-match-table .channel-cooperation-note { white-space: normal; }
.channel-cooperation-product .table-link { display: inline-block; margin-top: 2px; font-size: 12px; }
.channel-cooperation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.channel-cooperation-sync { display: flex; align-items: center; gap: 12px; }
.channel-cooperation-sync-state { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.channel-cooperation-sync-warning { color: #a24d2d; font-weight: 600; }
.channel-cooperation-note { max-width: 260px; overflow-wrap: anywhere; }
.channel-cooperation-unmatched { color: #a24d2d; font-size: 13px; font-weight: 600; }
/* 已匹配 = 绿，未匹配 = 橙：整行底色、左边色条、商品格里的小标签三处同时区分 */
.channel-cooperation-badge {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px;
}
.channel-cooperation-badge.is-matched { color: #1f6b4d; background: #d3efdf; }
.channel-cooperation-badge.is-unmatched { color: #a24d2d; background: #fbe3d5; }
.channel-cooperation-table tbody tr.channel-cooperation-row-matched td { background: #f3fbf6; }
.channel-cooperation-table tbody tr.channel-cooperation-row-unmatched td { background: #fff5ee; }
.channel-cooperation-table tbody tr.channel-cooperation-row-matched td:first-child { box-shadow: inset 4px 0 0 #3f9b74; }
.channel-cooperation-table tbody tr.channel-cooperation-row-unmatched td:first-child { box-shadow: inset 4px 0 0 #e0894f; }
.channel-cooperation-table tbody tr.channel-cooperation-row-matched:hover td { background: #e9f7ef; }
.channel-cooperation-table tbody tr.channel-cooperation-row-unmatched:hover td { background: #ffeadc; }
.channel-cooperation-diff { color: #a24d2d; font-weight: 600; }
.channel-cooperation-match-source {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--mint);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.channel-cooperation-match-source small { display: block; margin-top: 3px; color: var(--muted); }
.channel-cooperation-share { display: block; margin-top: 3px; color: #236245; }
.channel-cooperation-share-warning { display: block; margin-top: 3px; color: #a24d2d; font-weight: 600; }
.channel-cooperation-day-total { display: block; margin-top: 2px; color: var(--muted); }
.channel-cooperation-operators-panel select { max-width: 200px; }
.channel-cooperation-operators-panel td small { display: block; }
#channelCooperationMatchDialog:focus { outline: 0; }
.channel-cooperation-candidate-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.channel-cooperation-candidate-side .table-link { font-size: 12px; }
.channel-cooperation-match-notice { margin: 10px 0 0; padding: 9px 12px; border: 1px solid #b8dfc9; border-radius: 9px; color: #236245; background: #edf9f2; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.channel-cooperation-match-notice.error { color: #8e4039; border-color: #efc5c1; background: var(--rose-bg); }
.channel-cooperation-candidate-side button[disabled] { opacity: .6; cursor: default; }
.channel-cooperation-match-filters { margin: 14px 0 8px; }
.channel-cooperation-match-filters label { flex: 1 1 150px; }
.channel-cooperation-match-filters .channel-cooperation-match-search { flex: 2 1 240px; }
.channel-cooperation-match-count { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.channel-cooperation-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
}
.channel-cooperation-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.channel-cooperation-candidate.active { border-color: var(--green); background: var(--mint); }
.channel-cooperation-candidate-main { display: grid; gap: 3px; min-width: 0; }
.channel-cooperation-candidate-main strong { overflow-wrap: anywhere; }
.channel-cooperation-candidate-main small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.channel-cooperation-candidate-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.channel-cooperation-current { color: var(--green); font-size: 13px; font-weight: 600; }

@media (max-width: 1180px) {
  .channel-cooperation-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-cooperation-kpis,
  .recruiting-service-fee-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-cooperation-import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-cooperation-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .channel-cooperation-import-grid,
  .channel-cooperation-filters,
  .channel-cooperation-kpis,
  .recruiting-service-fee-filters,
  .recruiting-service-fee-kpis,
  .channel-cooperation-groups { grid-template-columns: 1fr; }
  .channel-cooperation-import-card { align-items: stretch; flex-direction: column; }
}

/* 记账：钉钉财务审批单（1.48.0） */
.bookkeeping-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bookkeeping-table td { vertical-align: top; }
.bookkeeping-table .bookkeeping-summary { max-width: 420px; overflow-wrap: anywhere; }
.bookkeeping-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bookkeeping-form { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--canvas); color: var(--deep-2); font-size: 12px; white-space: nowrap; }
.bookkeeping-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: var(--canvas); color: var(--muted); }
.bookkeeping-status.running { background: var(--amber-bg); color: var(--amber); }
.bookkeeping-status.approved { background: var(--mint); color: var(--green); }
.bookkeeping-status.refused { background: var(--rose-bg); color: var(--rose); }
.bookkeeping-status.revoked { background: #eef1f0; color: var(--muted); text-decoration: line-through; }
.channel-cooperation-sync-state.error { color: var(--rose); }
.modal.bookkeeping-detail { width: min(860px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.bookkeeping-detail-body { overflow-y: auto; padding: 0 24px 22px; }
.bookkeeping-detail-body h3 { margin: 18px 0 10px; font-size: 14px; }
.bookkeeping-detail-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.bookkeeping-detail-head span, .bookkeeping-field > span { display: block; color: var(--muted); font-size: 11px; }
.bookkeeping-detail-head strong { font-size: 13px; overflow-wrap: anywhere; }
.bookkeeping-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.bookkeeping-field.wide { grid-column: 1 / -1; }
.bookkeeping-field p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.bookkeeping-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.bookkeeping-field .table-wrap { margin-top: 4px; }
.bookkeeping-files { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.bookkeeping-files small { display: inline; margin: 0; }
.bookkeeping-records { margin: 0; padding: 0; list-style: none; }
.bookkeeping-records li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bookkeeping-records time { color: var(--muted); font-variant-numeric: tabular-nums; }
.bookkeeping-records small { margin-left: 6px; color: var(--muted); font-size: 11px; }
.bookkeeping-records p { margin: 4px 0 0; color: var(--ink); white-space: pre-wrap; }
.bookkeeping-result { color: var(--green); font-weight: 600; }
.bookkeeping-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1180px) {

  .bookkeeping-detail-head, .bookkeeping-fields { grid-template-columns: 1fr; }
}
