/* 录入页与销售看板共用的展示规范，避免影响其他业务页面。 */
.view-eyebrow { display: block; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.lead-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 22px; }
.lead-entry-card { padding: 0; overflow: visible; }
.lead-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px; border-bottom: 1px solid var(--border); }
.lead-entry-heading h2 { font-size: 21px; margin: 0 0 8px; }
.lead-entry-heading p { line-height: 1.7; }
.entry-required-note { flex: 0 0 auto; font-size: 12px; color: var(--muted); padding-top: 5px; }
.lead-entry-form { display: block; }
.entry-group { padding: 24px 28px; border-bottom: 1px solid #edf0f5; }
.entry-group-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.entry-step { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #e0e7ff; background: #f5f5ff; color: var(--primary); border-radius: 9px; font-size: 12px; font-weight: 700; }
.entry-group-heading h3 { margin: 0 0 5px; font-size: 15px; }
.entry-group-heading p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.entry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-field { min-width: 0; color: #334155; gap: 8px; }
.entry-field > span { display: flex; align-items: center; gap: 4px; }
.entry-field .entry-optional { margin-left: auto; color: #94a3b8; font-size: 11px; font-weight: 400; }
.entry-field:has(textarea) { grid-column: 1 / -1; }
.entry-field textarea { min-height: 100px; line-height: 1.7; }
.entry-field input, .entry-field select, .entry-field textarea { border-width: 1px; border-radius: 8px; padding: 11px 12px; }
.entry-field input::placeholder, .entry-field textarea::placeholder { color: #94a3b8; font-size: 12px; }
.entry-submit-bar { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-radius: 0 0 16px 16px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15,23,42,.04); }
.entry-submit-bar p { font-size: 12px; color: var(--text); line-height: 1.6; }
.entry-submit-bar p.error { color: var(--red); }
.entry-submit-bar small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.entry-submit-bar button { flex: 0 0 auto; color: #fff; background: var(--primary); padding: 12px 20px; font-weight: 600; }
.entry-submit-bar button:hover { background: var(--primary-dark); }
.entry-submit-bar button span { margin-left: 12px; }
.entry-submit-bar button:disabled { cursor: wait; opacity: .6; }
.entry-guide { padding: 24px 20px; background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 16px; }
.entry-guide h3 { font-size: 15px; margin-bottom: 24px; }
.entry-guide ol { list-style: none; counter-reset: entry; }
.entry-guide li { position: relative; padding: 0 0 24px 32px; counter-increment: entry; }
.entry-guide li::before { content: counter(entry); position: absolute; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #fff; color: var(--primary); font-size: 11px; display: grid; place-items: center; border: 1px solid #c7d2fe; }
.entry-guide li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 25px; bottom: 6px; width: 1px; background: #c7d2fe; }
.entry-guide strong { font-size: 12px; }
.entry-guide p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 6px; }
.entry-guide-note { font-size: 12px; line-height: 1.8; padding-top: 16px; border-top: 1px solid #dce3fb; color: #475569; }
.lead-entry-empty { line-height: 1.8; }

#content:has(.lead-entry-layout), #content:has(.sales-dashboard) { overflow: visible; }
.sales-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; font-variant-numeric: tabular-nums; }
.sales-dashboard .sales-channel-volume-panel { max-width: 820px; padding: 18px 22px; }
.sales-dashboard .sales-channel-volume-panel .bc-svg { display: block; width: min(100%, 700px); min-width: 0; height: auto; }
.sales-dashboard > .panel { min-width: 0; margin-bottom: 0; padding: 24px; border: 1px solid var(--border); box-shadow: none; }
.dashboard-heading, .dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-heading { align-items: flex-start; margin-bottom: 24px; }
.sales-dashboard .dashboard-heading h2 { font-size: 22px; margin: 0 0 9px; }
.dashboard-timezone { display: inline-block; font-size: 11px; border-left: 1px solid #cbd5e1; padding-left: 8px; margin-left: 6px; }
.dashboard-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.sales-dashboard .period-switch { padding: 3px; border-radius: 10px; background: #f1f5f9; gap: 2px; }
.sales-dashboard .period-switch .period { padding: 7px 12px; border: 0; background: transparent; border-radius: 7px; }
.sales-dashboard .period-switch .period.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.sales-dashboard #refresh-dashboard { border: 1px solid var(--border); background: #fff; color: var(--muted); }
.sales-dashboard .dashboard-range { margin: 0 0 22px; max-width: 580px; padding: 14px; background: #f8fafc; border-radius: 10px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-kpi { padding: 18px; border: 1px solid #e0e7ff; border-radius: 12px; background: #fafaff; min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; color: #475569; font-size: 12px; }
.sales-dashboard .dashboard-detail { position: static; padding: 3px 0; background: transparent; color: var(--primary); font-size: 11px; }
.dashboard-kpi strong { display: block; color: var(--primary); font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.04em; margin: 16px 0 10px; line-height: 1.2; overflow-wrap: anywhere; }
.dashboard-kpi strong small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.dashboard-kpi p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.dashboard-kpi.tone-success { background: #f3fbf8; border-color: #d4eee3; }
.dashboard-kpi.tone-success strong { color: #047857; }
.dashboard-kpi.tone-warning { background: #fffbf3; border-color: #f4e6cc; }
.dashboard-kpi.tone-warning strong { color: #b45309; }
.dashboard-efficiency { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; }
.sales-dashboard .efficiency-item { display: grid; gap: 9px; text-align: left; padding: 18px; border-radius: 0; min-width: 0; color: var(--muted); font-size: 12px; }
.efficiency-item:not(:last-child) { border-right: 1px solid var(--border); }
.sales-dashboard .efficiency-item:hover { background: #f8fafc; }
.efficiency-item strong { font-size: 23px; color: var(--text); }
.efficiency-item strong small { font-size: 12px; margin-left: 4px; font-weight: 400; }
.efficiency-item > small { color: var(--primary); font-size: 10px; }
.efficiency-item > p { font-size: 11px; line-height: 1.6; min-height: 5px; }
.efficiency-track { display: block; width: 100%; background: #eef2ff; height: 5px; border-radius: 4px; overflow: hidden; }
.efficiency-track i { display: block; height: 100%; border-radius: inherit; background: #818cf8; }
.dashboard-definition { margin-top: 16px; color: var(--muted); font-size: 12px; }
.dashboard-definition summary { cursor: pointer; width: fit-content; }
.dashboard-definition p { margin-top: 10px; padding: 12px 14px; background: #f8fafc; line-height: 1.9; border-radius: 8px; }
.dashboard-empty-note { margin-top: 14px; font-size: 12px; color: #64748b; padding: 12px; background: #f8fafc; border-radius: 8px; }
.dashboard-section-heading h2, .dashboard-section-heading h3 { margin: 0 0 6px; font-size: 16px; }
.dashboard-section-heading p { line-height: 1.6; font-size: 12px; }
.dashboard-overview > .dashboard-section-heading { margin-top: 28px; }
.sales-dashboard .dash-grid { min-width: 0; }
.sales-dashboard .chart-card { min-width: 0; overflow-x: auto; background: #fff; padding: 18px; transition: none; }
.sales-dashboard .chart-card:hover { transform: none; box-shadow: none; }
.sales-dashboard .chart-card h3 { margin-bottom: 16px; }
.sales-dashboard .bc-svg { display: block; min-width: 360px; }
.sales-dashboard .dashboard-primary { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
.sales-dashboard .chart-hint { margin-top: 12px; font-size: 11px; line-height: 1.7; }
.sales-dashboard .chart-download { display: block; background: #f8fafc; color: var(--muted); margin-top: 14px; font-size: 11px; }
.sales-dashboard .chart-card > .dashboard-detail { display: inline-block; margin-top: 12px; }
.dashboard-count { display: inline-block; vertical-align: middle; padding: 2px 8px; margin-left: 5px; border-radius: 6px; font-size: 12px; color: #9a3412; background: #fff7ed; }
.dashboard-team-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sales-dashboard .dashboard-team table { min-width: 900px; }
.sales-dashboard th { padding-top: 12px; padding-bottom: 12px; }
.sales-dashboard td { padding-top: 14px; padding-bottom: 14px; }
.team-campus { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.team-deals { color: #047857; font-weight: 700; }
.team-rate { padding: 4px 8px; border-radius: 5px; color: var(--primary); background: #eef2ff; }
.sales-dashboard td.exception-description { white-space: normal; min-width: 200px; line-height: 1.7; }
.exception-type { display: inline-block; color: #9a3412; font-size: 12px; padding-left: 10px; border-left: 3px solid #fdba74; }
.dashboard-clear-state { display: flex; gap: 14px; align-items: center; padding: 25px 0 8px; }
.dashboard-clear-state > span { width: 36px; height: 36px; display: grid; place-items: center; background: #ecfdf5; color: #047857; border-radius: 50%; }
.dashboard-clear-state strong { font-size: 13px; }
.dashboard-clear-state p { margin-top: 5px; font-size: 12px; }
.dashboard-table-empty { padding: 30px !important; text-align: center; color: var(--muted); }
.notification-summary { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.notification-summary strong { margin-left: 6px; color: var(--text); }
.lead-entry-layout button:focus-visible, .sales-dashboard button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1250px) {
  .lead-entry-layout { grid-template-columns: minmax(0, 1fr); }
  .entry-guide { display: none; }
  .dashboard-heading { flex-wrap: wrap; }
  .dashboard-controls { justify-content: flex-start; }
  .sales-dashboard .dashboard-primary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dashboard-kpis, .dashboard-efficiency { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efficiency-item:nth-child(2) { border-right: 0; }
  .efficiency-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .sales-dashboard .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .lead-entry-heading, .entry-group { padding: 20px 16px; }
  .lead-entry-heading { flex-wrap: wrap; }
  .lead-entry-heading h2 { font-size: 19px; }
  .entry-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .entry-submit-bar { padding: 14px 16px; flex-wrap: wrap; bottom: 0; }
  .entry-submit-bar button { width: 100%; }
  .sales-dashboard > .panel { padding: 18px 14px; }
  .dashboard-kpis { gap: 10px; }
  .dashboard-kpi { padding: 14px 12px; }
  .sales-dashboard .efficiency-item { padding: 14px 12px; }
  .dashboard-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .sales-dashboard .chart-card { padding: 14px 12px; }
  .sales-dashboard .period-switch .period { padding: 7px 10px; }
  .notification-summary { flex-wrap: wrap; gap: 12px; }
}
