/* 管理汇总页面的响应式排版；不作用于独立审核系统。 */
.sales-theme{--brand:#e5f0ea;--brand-fg:#244d3b;--brand-muted:#426553;--brand-nav:#315541}
.sales-theme .view-nav a.active{color:#244d3b;background:#fff}
.view-nav{flex-wrap:wrap;gap:4px}.app-header{gap:24px}.view-nav a{white-space:nowrap}
.sales-theme .cards,.sales-theme .daily-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:16px}
.sales-theme .card,.sales-theme .daily-card{background:linear-gradient(135deg,#f2f9f5,#fff);color:#24503c;min-height:140px;padding:22px;text-align:left}
.sales-theme .daily-card.hero{grid-column:auto;background:#e4f1eb;color:#244d3b}.sales-theme .daily-card.hero small{color:#426553}
.sales-entry-grid{grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:16px}
.sales-entry{grid-template-columns:40px minmax(0,1fr) auto;min-height:96px;padding:20px;gap:16px}
.sales-entry b,.sales-entry strong,.sales-entry small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.7}
.status-grid{grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr));gap:24px}
.status-card{padding:24px}.status-card>button{min-height:64px;padding:12px 8px;gap:16px}.status-card>button>span{background:#edf4f0;border-radius:8px;padding:8px 10px;line-height:1.6;white-space:normal;text-align:left;box-shadow:0 2px 5px #1f44380a}
.summary-table th,.summary-table td{text-align:center;padding:14px 16px;vertical-align:middle}.summary-table th:first-child,.summary-table td:first-child{text-align:left}.summary-table .chart-action{margin:auto;justify-content:center}
.dashboard-grid{gap:24px}.review-panel{min-width:0}.review-panel h2{line-height:1.5}.review-panel>p{margin:12px 0;line-height:1.8}.drill-row{padding:16px 0;border-bottom:1px solid #dfe7e3;display:grid;gap:8px}
@media(max-width:760px){.summary-table{display:table;min-width:560px}.summary-table thead{display:table-header-group}.summary-table tbody{display:table-row-group}.summary-table tr{display:table-row}.summary-table th,.summary-table td{display:table-cell;width:auto;min-height:0;border-radius:0}.summary-table td:before{display:none}.summary-table td button{justify-content:center}.summary-table tr{padding:0;margin:0}.app-header{padding:20px 16px}.sales-entry{grid-template-columns:32px minmax(0,1fr)}.sales-entry>i{display:none}}

.sales-theme .cards{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-theme .daily-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1400px){.sales-theme .cards{grid-template-columns:repeat(8,minmax(0,1fr))}.sales-theme .card{padding:18px}.sales-theme .daily-cards{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.sales-theme .cards,.sales-theme .daily-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-theme .card,.sales-theme .daily-card{padding:16px}}

@media(max-width:760px){.sales-theme .sales-metrics td button{justify-content:center}.sales-theme .sales-metrics td:not(:first-child){text-align:center}}

.sales-theme .primary,.sales-theme #applyRange{color:#fff}

.touch-stat{display:grid;grid-template-columns:12px minmax(0,1fr) 4ch 6ch;gap:12px;align-items:center;width:100%;min-height:60px;padding:12px 0;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer}.touch-stat:hover{background:var(--surface-2)}

/* 销售汇总：姓名与入口左对齐，窄屏按销售上下排列。 */
.sales-theme .summary-table th:last-child,
.sales-theme .summary-table td:last-child{text-align:left}
.sales-theme .summary-table td:first-child{white-space:normal;overflow-wrap:anywhere}
.sales-theme .summary-table td .chart-action{min-width:44px;min-height:44px}
@media(max-width:760px){
  .sales-theme .summary-table{display:block;min-width:0;width:100%}
  .sales-theme .summary-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .sales-theme .summary-table tbody{display:grid;gap:16px}
  .sales-theme .summary-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px;border:1px solid var(--line);border-radius:12px;background:#f5faf7}
  .sales-theme .summary-table td{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border:0;min-width:0;text-align:center}
  .sales-theme .summary-table td::before{display:block;content:attr(data-label);font-size:12px;color:var(--fg-muted);line-height:1.6}
  .sales-theme .summary-table td:first-child,
  .sales-theme .summary-table td:last-child{grid-column:1/-1;align-items:flex-start;padding:8px 0;text-align:left;gap:4px}
  .sales-theme .summary-table td:first-child{font-size:16px;font-weight:650;border-bottom:1px solid var(--line)}
  .sales-theme .summary-table td:last-child{border-top:1px solid var(--line)}
  .sales-theme .summary-table td:last-child a{display:block;padding:8px 0;line-height:1.7;overflow-wrap:anywhere}
}

/* 长姓名在平板与桌面半宽面板内换行，不撑宽指标列。 */
.sales-theme .summary-table,.sales-theme .sales-metrics{table-layout:fixed;min-width:0}
.sales-theme .summary-table th,.sales-theme .summary-table td,
.sales-theme .sales-metrics th,.sales-theme .sales-metrics td{min-width:0;white-space:normal;overflow-wrap:anywhere}
.sales-theme .summary-table th:first-child{width:24%}
.sales-theme .summary-table th:last-child{width:31%}
.sales-theme .sales-metrics th:first-child{width:20%}
