.city-supervisor-shell .sidebar > .nav-title{
  display:none;
}

.city-supervisor-shell #mainNav{
  min-height:0;
  overflow-y:auto;
  padding:10px 0 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(160,178,215,.35) transparent;
}

.city-supervisor-shell .city-nav-group-title{
  margin:13px 3px 7px;
  padding:8px 9px;
  border-left:3px solid #6f91ff;
  border-radius:6px;
  background:rgba(255,255,255,.075);
  color:#e7eefb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.07em;
  line-height:1.35;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}

.city-supervisor-shell .city-nav-group-title:first-child{
  margin-top:0;
}

.city-supervisor-shell #mainNav button{
  padding-left:13px;
}

.city-supervisor-shell .page-head h1{
  font-size:24px;
}

.city-supervisor-shell .city-task-decision{
  margin-bottom:14px;
  padding:16px;
  border:1px solid #dbe4ff;
  border-radius:13px;
  background:linear-gradient(125deg,#f5f8ff,#fff);
}

.city-supervisor-shell .city-task-decision-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:13px;
}

.city-supervisor-shell .city-task-decision-head h2,
.city-supervisor-shell .city-task-decision-head p{
  margin:0;
}

.city-supervisor-shell .city-task-decision-head h2{
  font-size:17px;
}

.city-supervisor-shell .city-task-decision-head p{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}

.city-supervisor-shell .city-task-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:9px;
}

.city-supervisor-shell .city-task-card{
  min-height:92px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}

.city-supervisor-shell .city-task-card small,
.city-supervisor-shell .city-task-card strong,
.city-supervisor-shell .city-task-card span{
  display:block;
}

.city-supervisor-shell .city-task-card small,
.city-supervisor-shell .city-task-card span{
  color:var(--muted);
  font-size:9px;
}

.city-supervisor-shell .city-task-card strong{
  margin:3px 0;
  font-size:25px;
}

.city-supervisor-shell .city-task-card.done strong{color:var(--green)}
.city-supervisor-shell .city-task-card.pending strong{color:var(--red)}
.city-supervisor-shell .city-task-card.visits strong{color:var(--blue)}

.city-supervisor-shell .city-member{
  display:flex;
  align-items:center;
  gap:8px;
}

.city-supervisor-shell .city-member-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--blue-bg);
  color:var(--blue);
  font-weight:850;
}

.city-supervisor-shell .city-member small,
.city-supervisor-shell .city-member b{
  display:block;
}

.city-supervisor-shell .city-progress{
  width:90px;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#edf0f4;
}

.city-supervisor-shell .city-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--blue);
}

.city-supervisor-shell .city-section-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin:25px 0 13px;
}

.city-supervisor-shell .city-section-heading:before{
  content:"";
  width:4px;
  height:34px;
  border-radius:4px;
  background:var(--blue);
}

.city-supervisor-shell .city-section-heading h2,
.city-supervisor-shell .city-section-heading p{
  margin:0;
}

.city-supervisor-shell .city-section-heading p{
  color:var(--muted);
  font-size:10px;
}

.city-supervisor-shell .service-scope-switch{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:7px;
  margin-bottom:10px;
}

.city-supervisor-shell .service-scope-button{
  min-height:62px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--text);
  text-align:left;
}

.city-supervisor-shell .service-scope-button b,
.city-supervisor-shell .service-scope-button small{
  display:block;
}

.city-supervisor-shell .service-scope-button b{
  font-size:15px;
}

.city-supervisor-shell .service-scope-button small{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}

.city-supervisor-shell .service-scope-button.active{
  border:2px solid var(--blue);
  padding:10px 13px;
  background:var(--blue-bg);
  box-shadow:0 7px 20px rgba(49,91,234,.12);
}

.city-supervisor-shell .service-scope-button.active b{
  color:var(--blue);
}

.city-supervisor-shell .service-scope-button:disabled{
  cursor:not-allowed;
  opacity:.58;
}

.city-supervisor-shell .service-compare-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.city-supervisor-shell .service-compare-panel.mine{border-top:4px solid var(--blue)}
.city-supervisor-shell .service-compare-panel.company{border-top:4px solid var(--green)}

.city-supervisor-shell .service-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(105px,1fr));
  gap:9px;
}

.city-supervisor-shell .service-summary-item{
  min-height:78px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f8fafc;
}

.city-supervisor-shell .service-summary-item small,
.city-supervisor-shell .service-summary-item strong,
.city-supervisor-shell .service-summary-item span{
  display:block;
}

.city-supervisor-shell .service-summary-item small,
.city-supervisor-shell .service-summary-item span{
  color:var(--muted);
  font-size:8px;
}

.city-supervisor-shell .service-summary-item strong{
  margin:3px 0;
  font-size:17px;
}

.city-supervisor-shell .capability-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:9px;
  margin-bottom:14px;
}

.city-supervisor-shell .capability-card{
  padding:11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}

.city-supervisor-shell .capability-card b,
.city-supervisor-shell .capability-card small{
  display:block;
}

.city-supervisor-shell .capability-card b{
  margin-top:3px;
  font-size:17px;
}

.city-supervisor-shell .capability-card small{
  color:var(--muted);
}

@media(max-width:1050px){
  .city-supervisor-shell .city-nav-group-title{display:none}
  .city-supervisor-shell #mainNav{padding-top:8px}
  .city-supervisor-shell .city-task-summary,
  .city-supervisor-shell .service-scope-switch,
  .city-supervisor-shell .service-compare-grid{grid-template-columns:1fr 1fr}
  .city-supervisor-shell .capability-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:700px){
  .city-supervisor-shell #mainNav{display:flex;overflow-x:auto;overflow-y:hidden;padding:0}
  .city-supervisor-shell .city-task-decision-head{display:block}
  .city-supervisor-shell .city-task-summary,
  .city-supervisor-shell .service-scope-switch,
  .city-supervisor-shell .service-compare-grid,
  .city-supervisor-shell .service-summary-grid,
  .city-supervisor-shell .capability-grid{grid-template-columns:1fr}
}

.visit-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.visit-summary-card{background:white;border:1px solid #dbe2ea;border-radius:10px;padding:16px;text-align:left;cursor:pointer}.visit-summary-card b{display:block;font-size:24px;margin-top:8px}.visit-summary-card.active{outline:3px solid currentColor;outline-offset:-3px}.visit-tone-overdue{color:#d60000!important;font-weight:800!important}.visit-tone-today{color:#c95c00!important;font-weight:800!important}.visit-tone-future{color:#1764c0!important}.visit-tone-refund{color:#8034b0!important}.visit-matched-nodes{min-width:280px}

/* S1 supervisor workbench: compact hierarchy without changing read models. */
.city-supervisor-workbench{display:grid;gap:10px;min-width:0}
.city-supervisor-workbench>.page-head{margin-bottom:0}
.supervisor-workbench-today-area{display:grid;gap:8px;min-width:0}
.supervisor-workbench-today-area>.panel{margin:0!important}
.supervisor-yesterday-status{margin:0;border:1px dashed #b8c7df;background:#fbfcff}
.supervisor-yesterday-status .panel-body{padding-top:8px;padding-bottom:8px}
.supervisor-workbench-performance{display:grid;gap:8px;min-width:0}
.supervisor-workbench-performance>.panel,.supervisor-workbench-performance .panel{min-width:0;margin:0!important}
.supervisor-workbench-performance .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:7px;margin:8px 0}
.supervisor-workbench-performance .stat{min-height:0;padding:8px 10px;gap:7px}
.supervisor-workbench-performance .stat small{font-size:11px;line-height:1.35}
.supervisor-workbench-performance .stat strong{font-size:18px;line-height:1.25}
.supervisor-workbench-performance .notice{margin:6px 0;padding:8px 10px;font-size:12px}
.supervisor-daily-situation{margin:0;min-width:0}
.supervisor-daily-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 12px 12px}
.supervisor-daily-summary .city-task-card{min-height:58px;padding:8px 10px}
.supervisor-daily-summary .city-task-card strong{font-size:20px}
.supervisor-target-report{margin:0;min-width:0}
.supervisor-target-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.supervisor-target-metrics .metric-row{margin:0;padding:8px 10px}
.supervisor-target-actions{margin-top:8px;justify-content:flex-start}
.city-supervisor-workbench .report-discrepancy-panel .table-wrap{max-width:100%;overflow:auto}
@media(max-width:1050px){.supervisor-workbench-performance .stats{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}}
@media(max-width:700px){
  .supervisor-daily-summary{grid-template-columns:1fr 1fr}
  .supervisor-daily-summary .city-task-card:last-child{grid-column:1/-1}
  .supervisor-target-metrics{grid-template-columns:1fr}
  .supervisor-target-actions{display:grid;grid-template-columns:1fr}
  .supervisor-target-actions .btn{width:100%;min-height:40px}
}

/* C4: put visit priorities first, then keep scope, filters, and shortcuts on one compact rail. */
.visit-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 10px}
.visit-summary-card{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:0;padding:8px 10px;border-radius:8px}
.visit-summary-card span{font-size:11px;font-weight:700;line-height:1.3}
.visit-summary-card b{margin:0;font-size:18px;line-height:1.2;white-space:nowrap}
.old-customer-visit-query-row{display:flex;align-items:center;gap:7px;max-width:100%;min-width:0;margin:0 0 8px;padding:1px 0 5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.old-customer-visit-query-row>.old-customer-visit-scope,
.old-customer-visit-query-row>.old-customer-visit-filter-layer,
.old-customer-visit-query-row>.customer-role-action-bar{flex:0 0 auto;margin:0}
.old-customer-visit-query-row>.old-customer-visit-scope{padding:5px 7px;border-radius:8px;box-shadow:none}
.old-customer-visit-query-row .old-customer-visit-scope-row{align-items:center;flex-wrap:nowrap;gap:7px}
.old-customer-visit-query-row .old-customer-visit-scope-label{min-width:0}
.old-customer-visit-query-row .old-customer-visit-scope-label strong{font-size:11px}
.old-customer-visit-query-row .old-customer-visit-scope-label small{display:none}
.old-customer-visit-query-row .old-customer-visit-tab-scroll{width:auto;overflow:visible}
.old-customer-visit-query-row .old-customer-visit-tabs{gap:2px;padding:2px}
.old-customer-visit-query-row .old-customer-visit-tab{min-width:0;height:30px;padding:0 8px;font-size:11px}
.old-customer-visit-query-row .old-customer-visit-scope-description{min-height:0;max-width:230px;margin:0;padding:0;overflow:hidden;background:transparent;color:var(--muted);font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.old-customer-visit-query-row .old-customer-visit-scope-description:before{display:none}
.old-customer-visit-query-row>.old-customer-visit-filter-layer{align-items:center;gap:4px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:#fff}
.old-customer-visit-query-row .old-customer-visit-filter-layer>*{flex:0 0 auto}
.old-customer-visit-query-row .old-customer-visit-filter-label{font-size:10px}
.old-customer-visit-query-row .old-customer-visit-filter-layer .btn{min-height:29px;padding:4px 7px;font-size:10px}
.old-customer-visit-query-row .old-customer-visit-filter-layer select{min-height:29px;font-size:10px}
.old-customer-visit-query-row>.customer-role-action-bar{flex-wrap:nowrap;gap:4px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:#fff}
.old-customer-visit-query-row>.customer-role-action-bar>.btn{flex:0 0 auto;min-height:29px;padding:4px 7px;font-size:10px;white-space:nowrap}
.old-customer-visit-care{margin:10px 0 0}
.old-customer-visit-care>.panel-head{padding:9px 12px}
.old-customer-visit-care>.panel-body{padding:8px 12px}
.old-customer-visit-care .toolbar{gap:6px;margin:0}
.old-customer-visit-care .toolbar>.btn{min-height:32px;padding:6px 9px;font-size:11px}
.old-customer-visit-care>.panel-body>small{font-size:10px;line-height:1.4}
@media(max-width:900px){.visit-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.visit-summary-cards{grid-template-columns:minmax(0,1fr);gap:6px}.visit-summary-card{min-height:42px;padding:7px 10px}}

/* G4: stack the C4 query rail on phones; only its tab strip may scroll locally. */
@media(max-width:700px){
  .old-customer-visit-query-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px;overflow:visible}
  .old-customer-visit-query-row>.old-customer-visit-scope,
  .old-customer-visit-query-row>.old-customer-visit-filter-layer,
  .old-customer-visit-query-row>.customer-role-action-bar{width:100%;max-width:100%;min-width:0;flex:0 1 auto}
  .old-customer-visit-query-row .old-customer-visit-scope-row{align-items:stretch;flex-direction:column;flex-wrap:wrap}
  .old-customer-visit-query-row .old-customer-visit-tab-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden}
  .old-customer-visit-query-row .old-customer-visit-scope-description{max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .old-customer-visit-query-row>.old-customer-visit-filter-layer{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:flex-start;gap:5px;overflow:visible;white-space:normal}
  .old-customer-visit-query-row .old-customer-visit-filter-layer>*{flex:0 1 auto;max-width:100%;white-space:normal}
  .old-customer-visit-query-row .old-customer-visit-filter-layer select{flex:1 1 130px;min-width:0}
  .old-customer-visit-query-row .old-customer-visit-filter-divider{display:none}
  .old-customer-visit-query-row>.customer-role-action-bar{display:flex;align-items:stretch;flex-wrap:wrap;justify-content:flex-start;gap:6px}
  .old-customer-visit-query-row>.customer-role-action-bar>.btn{flex:1 1 135px;white-space:normal}
}
