/* 超帅管家统一视觉层。只修改展示样式，不控制权限、数据或业务状态。
   四个入口用 cs-erp / cs-mobile / cs-alliance / cs-workbench 区分布局。
   不覆盖 hidden、page.active 或 dialog.open，避免误显示隐藏的业务页面。 */
.cs-ui {
  --green:#14795b;--green-dark:#0d6249;--green-deep:#123e32;--deep:#123e32;
  --green-soft:#eaf4ee;--mint:#eaf4ee;--nav:#132f28;--bg:#f5f6f3;
  --text:#24372f;--ink:#24372f;--muted:#708077;--line:#e3e8e1;
  --ui-shadow:0 3px 15px #1e3c2905;--ui-radius:16px;
  color:var(--ink);background:var(--bg);font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;line-height:1.5;
}
.cs-ui *, .cs-ui *::before, .cs-ui *::after{box-sizing:border-box}
.cs-ui h1,.cs-ui h2,.cs-ui h3{color:inherit;letter-spacing:-.45px;line-height:1.35}
.cs-ui h1{font-size:28px;font-weight:750}
.cs-ui h2{font-weight:700}.cs-ui p{line-height:1.65}
.cs-ui strong,.cs-ui .money,.cs-ui .metric b,.cs-ui .quote b{font-variant-numeric:tabular-nums}
.cs-ui a{text-underline-offset:4px}
.cs-ui button{font:inherit;font-size:13px;font-weight:600;min-height:38px;border-radius:10px;transition:background-color .15s,border-color .15s,box-shadow .15s}
.cs-ui button:disabled{opacity:.48;cursor:not-allowed}
.cs-ui button.primary,.cs-ui .primary{background:var(--green)!important;border-color:var(--green)!important;box-shadow:0 3px 8px #146c4f15;border-radius:10px!important}
.cs-ui .primary:hover{background:#0e674d!important;filter:none}
.cs-ui :is(button,a,input,select,textarea):focus-visible{outline:3px solid #8bb7a3;outline-offset:3px}
.cs-ui input:not([type=checkbox]):not([type=radio]):not([type=file]),.cs-ui select,.cs-ui textarea{
  border:1px solid #dce4dc;border-radius:10px;background:#fff;color:var(--ink);box-shadow:none;min-height:42px;
}
.cs-ui input::placeholder,.cs-ui textarea::placeholder{color:#8c9990;font-weight:400}
.cs-ui input[type=checkbox],.cs-ui input[type=radio]{accent-color:var(--green)}
.cs-ui :is(input,select,textarea):focus{border-color:#75a58c;box-shadow:0 0 0 3px #14795b0c}
.cs-ui .positive{color:#14795b}.cs-ui .negative{color:#b54f45}
.cs-ui .notice{border:1px solid #e0e9df;background:#eff4ed;color:#526c5a;border-radius:12px;font-size:12px}
.cs-ui .tag{font-size:11px;font-weight:550;padding:5px 10px;border-radius:7px;background:#edf5ee;color:#30684b}
.cs-ui .tag.status-qc{color:#916b2c;background:#fbf1dc}
.cs-ui .tag.status-repair{color:#ab5148;background:#faece8}
.cs-ui :is(.tag.status-sold,.tag.sold,.tag.out){color:#727b75;background:#f0f2ee}
.cs-ui .tag.status-transit{color:#547492;background:#edf2f7}
.cs-ui .empty{border-radius:14px;color:#79897d;padding:44px 22px;line-height:1.8}

/* 电脑ERP：减少不必要的大面积品牌背景，保留清晰的侧边导航。 */
.cs-erp aside{width:226px;background:#142f29;padding:28px 14px;box-shadow:none;border-right:1px solid #ffffff06}
.cs-erp .brand{padding:0 10px 26px;font-size:18px;gap:11px}
.cs-erp .brand img{width:39px;height:39px;border-radius:12px;box-shadow:none}
.cs-erp .brand small{font-size:9px;color:#91afa0;letter-spacing:1px}
.cs-erp aside nav{gap:5px}
.cs-erp aside nav button{color:#b1c4ba;border-radius:9px;text-align:left;padding:12px 14px;font-size:13px;font-weight:500}
.cs-erp aside nav button:hover{transform:none;background:#ffffff08;color:white}
.cs-erp aside nav button.active{background:#315348;box-shadow:none;color:#fff;font-weight:650}
.cs-erp aside nav button.active::after{content:'';width:5px;height:5px;position:absolute;right:14px;top:calc(50% - 2px);border-radius:100%;background:#bde2a4}
.cs-erp .nav-caption{color:#779387;font-size:10px;letter-spacing:1px;margin-bottom:12px}
.cs-erp .aside-foot{border-color:#ffffff0b;background:#ffffff04;padding:14px 12px;color:#99b3a6;line-height:1.9}
.cs-erp main{margin-left:226px;width:calc(100% - 226px);padding:30px 32px 55px;max-width:none}
.cs-erp header{gap:18px;margin-bottom:25px;min-height:52px;align-items:center}
.cs-erp header h1{margin-bottom:5px}.cs-erp header p{font-size:12px;color:#7b8a7f}
.cs-erp .header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
.cs-erp .soft{font-size:12px;background:white;border-color:var(--line);padding:9px 13px;min-height:38px}
.cs-erp .user-pill{font-size:11px;border:1px solid #dde8dc;background:#edf3e9;color:#4e6b4c}
.cs-erp .welcome{min-height:120px;padding:25px 28px;background:#eaf0e6;box-shadow:none;color:#284b37;border:1px solid #dee8d9;border-radius:16px}
.cs-erp .welcome::before,.cs-erp .welcome::after{display:none}
.cs-erp .welcome h2{font-size:21px}.cs-erp .welcome p{color:#6a7e6b;font-size:12px}
.cs-erp .welcome .eyebrow{color:#6c896c;letter-spacing:1.5px}
.cs-erp .welcome-logo{width:65px;height:65px;border-radius:17px;box-shadow:none}
.cs-erp .cards{gap:14px;margin-bottom:18px}
.cs-erp .cards article{border-color:var(--line);border-radius:15px;box-shadow:var(--ui-shadow);padding:22px;transform:none}
.cs-erp .cards article:hover{transform:none;box-shadow:0 5px 18px #1e3c2909}
.cs-erp .cards .metric{padding:21px;min-height:142px}
.cs-erp .metric-icon{position:static;width:27px;height:27px;border-radius:8px;float:right;font-size:11px;box-shadow:none}
.cs-erp .cards label{font-size:12px;color:#738170}
.cs-erp .cards strong{font-size:30px;font-weight:650;letter-spacing:-1px;margin:17px 0 8px;line-height:1.2;overflow-wrap:anywhere}
.cs-erp .cards small{font-size:10px;color:#82907f}
.cs-erp .cards .metric.profit{background:#254f40;border-color:#254f40}
.cs-erp .metric.profit strong{color:#fff}.cs-erp .metric.profit label,.cs-erp .metric.profit small{color:#c5d8c4}
.cs-erp .panel{border:1px solid var(--line);border-radius:15px;box-shadow:var(--ui-shadow)}
.cs-erp .panel-head{padding:20px 22px;border-color:#e9ede7;background:#fff}
.cs-erp .panel-head h2{font-size:16px}.cs-erp .panel-head p{font-size:11px;line-height:1.6;color:#7a897c}
.cs-erp .dashboard-alert-panel .alert-item{box-shadow:none;background:#fafbf8;border-color:#e6ece2;padding:18px 15px;text-align:left}
.cs-erp .dashboard-alert-panel .alert-item strong{font-size:23px;font-weight:650;color:inherit}
.cs-erp .dashboard-alert-panel .alert-item small{font-size:10px;color:#788777}
.cs-erp .inventory-subnav{background:#e9eee6;border:0;border-radius:11px;padding:4px}
.cs-erp .inventory-subnav button{background:none;color:#73816d;min-width:120px;padding:10px 18px}
.cs-erp .inventory-subnav button.active{background:#fff;color:#265d40;box-shadow:0 2px 5px #203e220b}
.cs-erp :is(.quick-filters,.qc-filter-row) button{font-size:12px;padding:8px 13px;border-radius:8px;min-height:36px;border-color:#e0e6dd}
.cs-erp :is(.quick-filters,.qc-filter-row) button.active{background:#eaf2e7;color:#376645;border-color:#c3d6bd}
.cs-erp .toolbar{background:white;border-color:var(--line);padding:12px;border-radius:13px;flex-wrap:wrap;align-items:end;gap:9px}
.cs-erp .toolbar>input{flex:1 1 260px;min-width:180px}
.cs-erp .toolbar>select{flex:0 1 170px;font-size:12px}
.cs-erp .toolbar>button{font-size:12px;padding:10px 12px;min-height:42px}
.cs-erp .toolbar>button:not(.primary){border:1px solid #dce5d5;background:#f8faf5;color:#5d744e}
.cs-erp .toolbar>label{font-size:10px;color:#748370;display:grid;gap:3px}
.cs-erp .toolbar>label input{font-size:12px}
.cs-erp .inventory-total-card{background:#f3f6ee;border-color:#e0e8d6;min-width:230px;padding:15px 18px}
.cs-erp .inventory-total-card strong{font-size:27px;font-weight:650;color:#3e6640}
.cs-erp .category-chips span{border-radius:7px;background:#f0f4ec;color:#607553;font-size:11px;padding:7px 10px}
.cs-erp table{font-size:12px}.cs-erp th{background:#f8f9f5;color:#7b8978;font-size:11px;font-weight:600;padding:14px 16px;border-bottom:1px solid #e7ece2}
.cs-erp td{padding:17px 16px;border-color:#edf0e9;line-height:1.6}
.cs-erp td b{font-weight:650;color:#293e2e}.cs-erp .device-sub{font-size:10px;color:#869080;margin-top:4px}
.cs-erp tbody tr:hover td{background:#f7faf3}
.cs-erp tbody tr:has(input[data-batch-device]:checked) td{background:#edf5e8}
.cs-erp .action-btn{min-height:32px;padding:6px 10px;font-size:11px;background:#edf4e9;color:#547444;border-radius:7px;transform:none}
.cs-erp .action-btn.detail{background:#f0f2ec;color:#71806a}
.cs-erp .report-highlight{background:#254f40!important}
.cs-erp .report-kpis article{min-height:125px}
.cs-erp .staff-entry,.cs-erp .waiver-entry{border-color:var(--line)!important;border-radius:15px!important;box-shadow:var(--ui-shadow)}
/* 数据看板先展示库存/经营指标，个人工作与审批入口并排放在其后。 */
.cs-erp #dashboard.active{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}
.cs-erp #dashboard>.welcome{order:0;grid-column:1/-1;margin:0}
.cs-erp #dashboard>.cards{order:1;grid-column:1/-1;margin:0}
.cs-erp #dashboard>.staff-entry{order:2;margin:0!important}
.cs-erp #dashboard>.waiver-entry{order:3;margin:0!important;padding:24px!important}
.cs-erp #dashboard>#turnover-alerts{order:4;grid-column:1/-1}
.cs-erp #dashboard>.dashboard-alert-panel{order:5;grid-column:1/-1}
.cs-ui .staff-entry>div:first-of-type>div:first-child{background:#244c3d!important}
.cs-ui .staff-entry>div:first-of-type>div:nth-child(2){background:#edf2e4!important;color:#385638!important}
.cs-ui .waiver-entry>button{padding:10px 16px;border:1px solid #d3e1c9;background:#eff5e9;color:#547143;border-radius:9px}

/* 共用弹窗：保持原滚动容器和按钮位置，只改善层次、输入框与遮罩。 */
.cs-ui dialog{border:1px solid #dde5da;border-radius:20px;color:var(--ink);box-shadow:0 24px 100px #102e2730;max-width:94vw;max-height:90dvh}
.cs-ui dialog::backdrop{background:#162e2660;backdrop-filter:blur(4px)}
.cs-ui dialog .modal-head{border-bottom:1px solid #e7ede3;padding-bottom:18px;margin-bottom:23px}
.cs-ui dialog .modal-head h2,.cs-ui dialog .dialog-head b{font-size:20px;font-weight:700}
.cs-ui dialog .modal-head p{font-size:12px;color:#7b8877;margin-top:5px}
.cs-ui dialog :is(.close,.dialog-head button){background:#f1f4ed;color:#77856f;border-radius:10px;border:0;min-width:36px;min-height:36px;font-size:22px}
.cs-ui dialog .grid{gap:17px}.cs-ui dialog label{color:#66775f;font-size:12px}
.cs-ui dialog .actions,.cs-ui dialog .modal-actions{border-color:#e6ece0;padding-top:19px;margin-top:22px;gap:10px}
.cs-ui dialog .notice{font-size:12px;background:#f3f6ee}
.cs-ui .batch-error{background:#fff5f0;border-color:#efdad0;border-radius:12px;color:#ac5849}
.cs-ui .batch-totals{border:1px solid #dfe9d8;background:#eff5e9;border-radius:13px;padding:20px}
.cs-ui .batch-totals strong,.cs-ui .batch-totals b{font-variant-numeric:tabular-nums}
.cs-ui .waiver-intake{display:grid;gap:12px;padding:16px!important;background:#f3f7ee!important}
.cs-ui .waiver-intake label:first-child{display:flex;align-items:center;gap:8px;line-height:1.6}
.cs-ui .waiver-intake label:nth-child(2){display:grid;gap:6px}
.cs-ui .waiver-intake input[name=waiver_reason]{width:100%;min-width:0}
.cs-ui .waiver-intake input[type=checkbox]{flex:none;width:18px!important;height:18px;margin:0}
.cs-ui .waiver-intake small{font-size:11px;line-height:1.6;color:#819176}
.cs-erp #batch-data{min-height:160px;line-height:1.8;font-size:15px}

/* 手机：触摸目标至少44px，卡片动作自动换行，保留扫码和底部安全区域。 */
.cs-mobile .app{background:var(--bg)}
.cs-mobile header{background:#f9faf7;border-color:#e4e9df;box-shadow:none}
.cs-mobile .page{padding:18px 16px}
.cs-mobile .hero,.cs-mobile .profile{background:#285441;border-radius:18px;box-shadow:0 5px 18px #1b523311;padding:22px}
.cs-mobile .hero>strong{font-size:34px;font-weight:650;letter-spacing:-.7px}
.cs-mobile .hero>span{font-size:12px}
.cs-mobile .quick-grid{gap:10px;margin:16px 0 24px}
.cs-mobile .quick-grid button{border-color:#e1e8db;border-radius:14px;box-shadow:none;padding:16px 13px;min-height:75px}
.cs-mobile .quick-grid span{background:#edf3e6;color:#587548;border-radius:10px;width:33px;height:33px;font-size:18px}
.cs-mobile .quick-grid b{font-size:13px;font-weight:650}.cs-mobile .quick-grid small{font-size:10px;color:#89947e}
.cs-mobile .metric-grid article{border-radius:14px;padding:17px;border-color:#e4e9dd}
.cs-mobile .metric-grid b{font-size:26px;font-weight:650;margin:8px 0;letter-spacing:-.6px}
.cs-mobile .metric-grid span,.cs-mobile .metric-grid small{font-size:11px;color:#7c8c72}
.cs-mobile :is(.device-card,.order-card){border-radius:15px;border-color:#e2e8dc;box-shadow:none;padding:17px}
.cs-mobile .card-top{align-items:flex-start}.cs-mobile .card-top h3{font-size:15px;font-weight:650;line-height:1.5}
.cs-mobile .code{font-size:12px;color:#85917e;overflow-wrap:anywhere}
.cs-mobile .card-bottom{flex-wrap:wrap;align-items:center;gap:12px;padding-top:14px;margin-top:13px;border-color:#eaf0e2}
.cs-mobile .card-bottom>span{font-size:11px}.cs-mobile .card-actions{flex-wrap:wrap;width:100%;gap:7px}
.cs-mobile .card-actions :is(button,a){min-height:38px;padding:8px 10px;font-size:11px;border-radius:8px;text-decoration:none;background:#f2f6eb;color:#587247;border:1px solid #e0ead4;display:inline-flex;align-items:center}
.cs-mobile .chips{padding-bottom:8px}.cs-mobile .chips button{border-radius:8px;min-height:36px;padding:7px 12px;font-size:12px}
.cs-mobile .chips button.active{color:#3d6441;border-color:#bfd3b6;background:#edf5e7}
.cs-mobile input:not([type=checkbox]):not([type=radio]),.cs-mobile select,.cs-mobile textarea{font-size:16px;min-height:46px;border-radius:10px}
.cs-mobile nav{border-top:1px solid #e4e9df;background:#fafcf8ed;box-shadow:0 -4px 20px #14392104;backdrop-filter:blur(12px)}
.cs-mobile nav button{font-size:10px;font-weight:500;color:#8b9583;min-height:44px;border-radius:8px}
.cs-mobile nav button.active{color:#316445;font-weight:700}.cs-mobile nav button span{font-size:19px}
.cs-mobile .scan-nav i{background:#477754;box-shadow:0 5px 13px #2f683b22;border-radius:15px}
.cs-mobile .staff-entry,.cs-mobile .waiver-entry{border-color:#e0e8d9!important;border-radius:16px!important;padding:18px!important;box-shadow:none}
.cs-mobile [data-page=home].active{display:flex;flex-direction:column}
.cs-mobile [data-page=home]>.staff-entry{order:-1}
.cs-mobile [data-page=home]>.waiver-entry{order:1}
.cs-mobile dialog form{padding:21px}.cs-mobile dialog .dialog-head{margin-bottom:22px}
.cs-mobile dialog button.primary{min-height:46px}

/* 共享联盟：延续ERP的导航/卡片体系，不改变共享标记与数据可见性。 */
.cs-alliance .trial{background:#eaf0e5;color:#6b7d60;border-color:#dde6d4;font-size:11px;padding:10px 16px}
.cs-alliance aside{background:#142f29;width:226px;padding:29px 18px;top:38px}
.cs-alliance .brand{font-size:24px}.cs-alliance .brand span{font-size:10px;letter-spacing:1.3px;color:#97b1a3}
.cs-alliance aside nav{margin-top:34px;gap:7px}
.cs-alliance aside nav button{color:#b5c7bc;border-radius:9px;font-size:13px;font-weight:500}
.cs-alliance aside nav button.active{background:#315348;color:white}
.cs-alliance main{margin-left:226px;padding:30px 32px}
.cs-alliance .metrics .metric{border-radius:15px;padding:23px;border-color:#e1e8da;box-shadow:var(--ui-shadow)}
.cs-alliance .metrics .metric:first-child{background:#254f40}
.cs-alliance .metric b{font-size:32px;letter-spacing:-1px;font-weight:650}
.cs-alliance .metric span{font-size:12px}
.cs-alliance .pool-grid{gap:17px}.cs-alliance .stock-card{border-radius:17px;border-color:#e0e7d9;box-shadow:var(--ui-shadow)}
.cs-alliance .card-body{padding:23px}.cs-alliance .card-body h3{font-size:20px}
.cs-alliance .city,.cs-alliance .specs,.cs-alliance .summary{font-size:12px;color:#84917b}
.cs-alliance .quote b{font-size:30px;letter-spacing:-1px;color:#325d3b}.cs-alliance .quote span{font-size:11px}
.cs-alliance .card-footer{background:#fcfdf9;border-color:#eaf0e2;padding:17px 21px}
.cs-alliance .card-footer span{font-size:12px;color:#687c5c}
.cs-alliance .order-card,.cs-alliance .org-card{border-radius:16px;border-color:#e2e9db;padding:24px}
.cs-alliance th{font-size:11px;background:#f7f9f3;color:#7a8870;padding:15px 17px}
.cs-alliance td{font-size:12px;padding:17px;border-color:#eaf0e3}.cs-alliance td small{font-size:11px;color:#8a9480}
.cs-alliance .table-scroll{border-radius:15px;border-color:#e2e8dc}

/* 业务员提成：更紧凑的仪表盘。移动端首屏并排看到今日和本月。 */
.cs-workbench main{max-width:1120px;padding:38px 28px 70px}
.cs-workbench header{padding-bottom:25px;border-bottom:1px solid #e0e7d8;margin-bottom:26px}
.cs-workbench header small{font-size:10px;color:#839173;letter-spacing:1.5px}
.cs-workbench header h1{font-size:30px;margin-top:8px}
.cs-workbench #identity{font-size:13px;color:#748267}
.cs-workbench header a,.cs-workbench header #reload{font-size:11px;background:#fff;border:1px solid #e0e7d7;color:#72825f;min-height:37px;padding:9px 12px}
.cs-workbench .hero-metric{border-radius:18px;padding:25px 28px;min-height:180px;box-shadow:none}
.cs-workbench .today-metric{background:#244c3d;color:#fff}
.cs-workbench .month-metric{background:#edf2e4;border-color:#dfe7d1;color:#385638}
.cs-workbench .hero-metric>strong{font-size:44px;font-weight:600;letter-spacing:-1.4px;margin:18px 0}
.cs-workbench .hero-top{font-size:13px;font-weight:550}
.cs-workbench .hero-chip{font-size:10px;border-radius:6px;padding:4px 8px}
.cs-workbench .hero-bottom{font-size:11px;opacity:1;color:#b5cdbb}
.cs-workbench .month-metric .hero-bottom{border-color:#dce4ce;color:#7b8a66}
.cs-workbench .notice{border:0;background:none;padding:0;font-size:11px;color:#829074}
.cs-workbench nav{background:#e9eee3;border-radius:11px}
.cs-workbench nav button{font-size:12px;min-height:38px;padding:10px 23px;border-radius:8px}
.cs-workbench nav button.active{box-shadow:0 2px 5px #26421c08;color:#3b6139}
.cs-workbench :is(.monthly-panel,.history-panel){border-radius:17px;border-color:#e1e8d9;padding:25px;box-shadow:var(--ui-shadow)}
.cs-workbench .monthly-panel .section-heading small{color:#8c987c;font-size:10px;letter-spacing:1.3px}
.cs-workbench .section-heading h2{font-size:18px}.cs-workbench .month-total strong{font-size:36px;font-weight:600}
.cs-workbench .stage-card{background:#fafcf6;border-radius:12px;border-color:#e7eddc;padding:18px}
.cs-workbench .stage-card strong{font-size:23px;font-weight:650}.cs-workbench .stage-icon{background:#eaf2e0;color:#6a8451}
.cs-workbench .stage-1 .stage-icon{background:#eaf0f3;color:#6d8b9a}.cs-workbench .stage-2 .stage-icon{background:#f6eedb;color:#a58b52}
.cs-workbench .stage-track{height:3px;background:#e9eedf}.cs-workbench .stage-track>span{background:#719763}
.cs-workbench .stage-1 .stage-track>span{background:#859eab}.cs-workbench .stage-2 .stage-track>span{background:#b6a16b}
.cs-workbench .month-history{gap:10px;padding-bottom:9px}
.cs-workbench .month-card{border-radius:11px;background:#fafbf7;border-color:#e4e9db;color:#788968;padding:17px;flex-basis:175px}
.cs-workbench .month-card.selected{background:#edf4e4;border-color:#adc596;box-shadow:none}
.cs-workbench .month-card>strong{font-weight:600;color:#4a6b3e}
.cs-workbench .entry{border-radius:13px;border-color:#e2e8da;box-shadow:none;padding:21px 24px}
.cs-workbench .entry>b{font-size:15px;font-weight:650}.cs-workbench .entry p{font-size:12px;color:#7c8a70}
.cs-workbench .entry details{font-size:11px}.cs-workbench .filters{border:1px solid #e1e7d8;background:#eff3e9;border-radius:12px}
.cs-workbench .filters label{font-size:11px;color:#81916f}
.cs-workbench #earnings .entry .filters{background:transparent;border:0;padding:0}
.cs-workbench .trend-panel{background:#fff;border:1px solid #e1e8d9;border-radius:16px;padding:21px 25px;margin:0 0 22px}
.cs-workbench .trend-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.cs-workbench .trend-heading h2{font-size:15px;margin:0}.cs-workbench .trend-heading small{font-size:10px;color:#91a07f}
.cs-workbench .trend-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-top:19px}
.cs-workbench .trend-day{min-width:0;display:grid;justify-items:center;gap:6px}
.cs-workbench .trend-value{font-size:10px;color:#6c8355;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-workbench .trend-column{height:40px;width:100%;display:flex;align-items:end;justify-content:center;background:#f7f9f2;border-radius:5px;overflow:hidden}
.cs-workbench .trend-column span{width:100%;background:#bacda5;border-radius:4px 4px 0 0;min-height:2px}
.cs-workbench .trend-day:last-child .trend-column span{background:#477750}
.cs-workbench .trend-date{font-size:10px;color:#929e82}

/* 登录页同样统一，但绝不改变认证层的显示/隐藏逻辑。 */
.cs-erp .auth-screen{background:radial-gradient(ellipse at 20% 20%,#42684822,transparent 50%),#eaf0e6}
.cs-erp .auth-card{border:1px solid #dae4d0;background:#fff;border-radius:23px;box-shadow:0 20px 70px #1b3b1b0b;padding:40px}
.cs-erp .auth-card h1{font-size:27px;color:#24442e}.cs-erp .auth-card .eyebrow{color:#92a080}
.cs-erp .auth-logo{box-shadow:none;border:1px solid #e1e8d8}
.cs-mobile .login-view{background:#edf2e8}.cs-mobile .login-card{box-shadow:0 15px 50px #223d1f07;border-color:#e0e8d6;border-radius:21px}
.cs-alliance .login-box{background:white;border:1px solid #dfe7d5;border-radius:23px;padding:36px;box-shadow:0 20px 60px #17351f08}
.cs-alliance .login-box h1{font-size:29px}.cs-alliance .login-box p{font-size:13px}

@media(min-width:1600px){.cs-erp main,.cs-alliance main{padding-left:44px;padding-right:44px}}
@media(max-width:1150px) and (min-width:901px){.cs-erp main{padding:24px}.cs-erp .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-erp .dashboard-alert-panel #alert-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 .cs-erp #dashboard.active{grid-template-columns:1fr}.cs-erp #dashboard>.staff-entry,.cs-erp #dashboard>.waiver-entry{grid-column:1/-1}
 .cs-erp aside{width:74px;padding:24px 10px}.cs-erp .brand{padding:0 5px 24px}.cs-erp aside nav button{font-size:0;padding:13px;text-align:center}.cs-erp aside nav button::first-letter{font-size:20px}.cs-erp aside nav button.active::after{display:none}.cs-erp main{margin-left:74px;width:calc(100% - 74px);padding:20px}.cs-erp header{flex-wrap:wrap}.cs-erp .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-erp .dashboard-alert-panel #alert-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .cs-alliance aside{position:static;width:auto;padding:18px;top:auto}.cs-alliance aside nav{margin-top:15px}.cs-alliance main{margin-left:0;padding:23px 17px}.cs-alliance .trial{font-size:10px}.cs-alliance .metric b{font-size:28px}.cs-alliance .metrics .metric{padding:18px}.cs-alliance h1{font-size:25px}.cs-alliance .card-body{padding:21px}.cs-alliance .header-actions button{font-size:11px}
}
@media(max-width:650px){
 .cs-workbench main{padding:25px 16px 50px}.cs-workbench header{padding-bottom:18px;margin-bottom:20px;gap:8px}.cs-workbench header h1{font-size:25px}.cs-workbench #identity{font-size:11px}.cs-workbench header a,.cs-workbench header #reload{font-size:10px;padding:8px 10px;min-height:33px}.cs-workbench .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cs-workbench .hero-metric{padding:18px 15px;min-height:180px;border-radius:15px}.cs-workbench .hero-top{font-size:11px;gap:8px;min-height:44px;align-content:start}.cs-workbench .hero-chip{font-size:9px;padding:3px 5px}.cs-workbench .hero-metric>strong{font-size:28px;letter-spacing:-.8px;margin:13px 0 17px;overflow-wrap:anywhere}.cs-workbench .hero-bottom{font-size:9px;display:grid;gap:5px;padding-top:10px}.cs-workbench .notice{font-size:10px;line-height:1.8;margin:12px 0 17px}.cs-workbench nav button{padding:9px 10px;font-size:12px}.cs-workbench :is(.monthly-panel,.history-panel){padding:20px 17px;border-radius:15px}.cs-workbench .section-heading h2{font-size:17px}.cs-workbench .month-picker{min-width:126px;max-width:137px}.cs-workbench .month-picker select{font-size:11px;min-height:39px}.cs-workbench .month-total{padding:15px 0}.cs-workbench .month-total strong{font-size:30px}.cs-workbench .amount-split>span{font-size:12px!important}.cs-workbench .stage-grid{gap:8px}.cs-workbench .stage-card{padding:13px}.cs-workbench .stage-card strong{font-size:20px}.cs-workbench .stage-card small{font-size:10px}.cs-workbench .stage-icon{width:32px;height:32px}.cs-workbench .month-card{flex-basis:146px;padding:14px}.cs-workbench .entry{padding:18px}.cs-workbench .entry>b{font-size:13px}.cs-workbench .entry p{font-size:11px}.cs-workbench .trend-panel{padding:18px 16px;margin-bottom:19px}.cs-workbench .trend-heading h2{font-size:14px}.cs-workbench .trend-heading small{font-size:9px;max-width:160px;text-align:right}.cs-workbench .trend-bars{gap:7px;margin-top:15px}.cs-workbench .trend-value{font-size:9px}.cs-workbench .trend-date{font-size:9px}.cs-workbench .trend-column{height:32px}.cs-ui dialog{border-radius:17px}.cs-ui dialog button{min-height:42px}.cs-ui dialog input:not([type=checkbox]):not([type=radio]),.cs-ui dialog select,.cs-ui dialog textarea{font-size:16px}
}
@media(max-width:600px){.cs-erp main{padding:17px 12px}.cs-erp header h1{font-size:23px}.cs-erp .cards{grid-template-columns:1fr}.cs-erp .cards .metric{min-height:120px}.cs-erp .dashboard-alert-panel #alert-list{grid-template-columns:1fr}.cs-erp .inventory-total-card{min-width:0;width:100%}.cs-erp .inventory-summary-line{flex-wrap:wrap}.cs-erp .toolbar>input{min-width:120px}.cs-erp .toolbar>label{max-width:100%}.cs-erp .toolbar>label input{width:100%}}
@media(prefers-reduced-motion:reduce){.cs-ui *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.cs-ui.cs-mobile button,.cs-ui.cs-mobile .card-actions a{min-height:44px}
/* 新品牌图标只负责视觉呈现，不绑定业务事件；固定尺寸避免图片加载时挤动标题。 */
.cs-workbench .workbench-brand{display:flex;align-items:center;gap:9px}
.cs-workbench .workbench-brand img{width:36px;height:36px;flex:0 0 36px;border-radius:10px;object-fit:contain}
/* 店长运营页独立导航；复用工作台表单和接口，个人提成卡片不混入员工汇总。 */
.cs-erp #dashboard.active .operations-overview{order:4;grid-column:1/-1}
.operations-overview{padding:22px;border:1px solid var(--line);border-radius:18px;background:white;margin:0 0 18px}
.operations-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.operations-heading p{font-size:12px;color:var(--muted);margin:5px 0 16px}
.operations-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.operations-stats a{display:grid;gap:8px;text-decoration:none;background:#f0f6ef;color:#255940;padding:18px;border-radius:12px}.operations-stats b{font-size:26px}.operations-stats small{color:#6b7d70;font-size:11px}
.cs-operations .ops-sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#132f28;padding:24px 16px;color:white;display:flex;flex-direction:column;gap:8px;overflow-y:auto}
.cs-operations .ops-sidebar a{display:flex;align-items:center;gap:12px;color:#bdcec4;text-decoration:none;padding:13px 16px;border-radius:10px;font-size:14px}.cs-operations .ops-sidebar a[aria-current]{background:#24513f;color:white}.cs-operations .ops-sidebar .ops-brand{font-size:19px;font-weight:700;padding:4px 8px 25px;color:white}.cs-operations .ops-brand img{border-radius:11px}.cs-operations .ops-sidebar p{margin-top:auto;font-size:12px;color:#98b4a4;padding:12px}
.cs-operations main{margin-left:226px;width:calc(100% - 226px);max-width:none;padding:28px 34px}.cs-operations .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.cs-operations .hero-metric{min-height:155px;padding:23px}.cs-operations .hero-metric strong{font-size:30px}.cs-operations .hero-metric small{font-size:12px}
.cs-operations .monthly-panel,.cs-operations .history-panel,.cs-operations #earning-trend{display:none}.cs-operations #manage>.cards{grid-template-columns:1fr;max-width:900px}.cs-operations .task-publisher{margin-bottom:25px}.cs-operations .task-publisher>summary{background:#e2f0e6;padding:16px;border-radius:12px;color:#136343;font-weight:650}.cs-operations .task-publisher article{margin-top:12px}.cs-operations #demands>h2{margin-top:24px}.cs-operations #error:not(:empty){background:#fff0ef;border-radius:10px;padding:16px}.cs-operations .filters label{min-width:130px;max-width:none}
@media(max-width:900px){.cs-operations .ops-sidebar{width:170px;padding:18px 10px}.cs-operations .ops-sidebar a{padding:12px 8px}.cs-operations main{margin-left:170px;width:calc(100% - 170px);padding:20px}.cs-operations .metrics{grid-template-columns:1fr}.operations-stats{grid-template-columns:1fr}}
@media(max-width:600px){.cs-operations .ops-sidebar{position:static;width:100%;display:flex;flex-direction:row;overflow-x:auto;padding:10px}.cs-operations .ops-sidebar a{flex-shrink:0}.cs-operations .ops-sidebar .ops-brand,.cs-operations .ops-sidebar p{display:none}.cs-operations main{margin-left:0;width:100%;padding:18px 14px}.operations-heading{align-items:flex-start;flex-direction:column}.cs-operations .metrics{grid-template-columns:1fr}}
