/* 2CORNER v0.14.0 — Operations Focus presentation layer. Core order logic remains untouched. */
/* Remove the duplicated legacy KPI strip in this release; the compact command strip is the operational summary. */
#dashboard .dashboard-head-v2{grid-template-columns:1fr;margin-bottom:7px}
#dashboard .metrics-v2{display:none!important}

.smartops-command{display:grid;grid-template-columns:auto minmax(430px,1fr) auto;align-items:center;gap:10px;margin:0 0 8px;padding:8px 10px;border:1px solid #204c3a;border-radius:15px;background:linear-gradient(135deg,#123626 0%,#174a34 100%);color:#fff;box-shadow:0 8px 20px #12362612}
.smartops-command-lead{display:flex;align-items:center;gap:7px;min-width:max-content}.smartops-live-dot{width:7px;height:7px;border-radius:50%;background:#63d690;box-shadow:0 0 0 4px #63d69016}.smartops-command-lead strong{font-size:12px}.smartops-command-lead em{font-style:normal;font-size:8px;font-weight:900;padding:4px 7px;border-radius:999px}.smartops-pressure.calm{background:#ffffff16;color:#c9f4d9}.smartops-pressure.busy{background:#f59e0b22;color:#ffd79a}.smartops-pressure.hot,.smartops-pressure.incident{background:#ef444433;color:#fecaca}
.smartops-command-stats{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:5px}.smartops-command-stats button,.smartops-command-stats>div{min-width:0;appearance:none;border:1px solid #ffffff14;background:#ffffff0b;color:#fff;border-radius:10px;padding:5px 7px;text-align:center}.smartops-command-stats button{cursor:pointer;transition:.14s ease}.smartops-command-stats button:hover{background:#ffffff16}.smartops-command-stats b,.smartops-command-stats span{display:block}.smartops-command-stats b{font-size:13px;line-height:1.1;white-space:nowrap}.smartops-command-stats b i{font-style:normal;font-size:9px;font-weight:800;opacity:.7}.smartops-command-stats span{font-size:7.5px;opacity:.7;margin-top:2px}.smartops-command-stats .sla.warn{border-color:#f3bd5a55;background:#f59e0b15}.smartops-command-stats .sla.late{border-color:#ef8a7c66;background:#ef44441d}.smartops-command-stats .sla.late b{color:#ffc4bb}
.smartops-command-note{font-size:8.5px;color:#c9d8cf;white-space:nowrap;text-align:left}.smartops-command-note.late{color:#ffd0c9;font-weight:800}

/* Keep filters/search immediately before the live orders. */
#dashboard .ops-bar{margin:7px 0 9px;padding:6px}

/* Store Brain stays fully functional, but secondary detail now lives below the live order board. */
.store-brain-panel.smartops-brain-compact{margin:14px 0 8px;padding:9px 11px;border-radius:15px;box-shadow:none}
.smartops-brain-compact .brain-head{margin:0;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px}.smartops-brain-compact .brain-head>div:first-child{min-width:max-content}.smartops-brain-compact .brain-head>div:first-child span{font-size:7px}.smartops-brain-compact .brain-head strong{font-size:12px;margin:0}.smartops-brain-compact .brain-state{padding:5px 7px;font-size:8px;grid-column:4}.smartops-brain-quick{font-size:9px;color:#65726a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smartops-brain-toggle{appearance:none;border:1px solid #d9e0da;background:#fff;color:#123626;border-radius:9px;padding:5px 8px;font:inherit;font-size:8px;font-weight:900;cursor:pointer;grid-column:3;grid-row:1}.smartops-brain-compact .brain-metrics,.smartops-brain-compact .brain-batches{display:none}.smartops-brain-compact.smartops-expanded .brain-metrics{display:grid;margin-top:10px}.smartops-brain-compact.smartops-expanded .brain-batches{display:block}.smartops-brain-compact .brain-metrics>div:nth-child(3) b{font-size:14px}

.smartops-summary{margin:8px 0 18px;border:1px solid #e2e5df;border-radius:15px;background:#fffdf8;box-shadow:none;overflow:hidden}.smartops-summary-toggle{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:9px 11px;cursor:pointer;text-align:right}.smartops-summary-name{display:flex;align-items:center;gap:7px}.smartops-summary-name i{font-style:normal;font-size:7px;font-weight:950;letter-spacing:.14em;color:#c96b17}.smartops-summary-name strong{font-size:11px;color:#123626}.smartops-summary-quick{font-size:9px;color:#68746c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smartops-summary-quick b{color:#173c2a}.smartops-summary-quick i{font-style:normal;color:#b5bbb7;padding:0 3px}.smartops-summary-chevron{font-size:14px;color:#758078;transition:transform .16s ease}.smartops-summary[open] .smartops-summary-chevron{transform:rotate(180deg)}.smartops-summary-details{display:none;padding:0 11px 11px}.smartops-summary[open] .smartops-summary-details{display:block}.smartops-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.smartops-summary-grid>div{min-width:0;padding:8px 9px;border:1px solid #e8ebe6;border-radius:11px;background:#fff}.smartops-summary-grid span,.smartops-summary-grid small,.smartops-summary-grid b{display:block}.smartops-summary-grid span{font-size:8px;color:#7f8781}.smartops-summary-grid b{font-size:11px;color:#173c2a;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smartops-summary-grid small{font-size:7.5px;color:#9aa09b}.smartops-insight{display:flex;gap:8px;align-items:center;margin-top:7px;padding:7px 9px;border-radius:10px;background:#f2f6f2}.smartops-insight span{font-size:7px;font-weight:900;color:#c96b17;letter-spacing:.12em;white-space:nowrap}.smartops-insight p{margin:0;font-size:9px;color:#45564b}

/* Customer Tracking 2.0 retained from v0.14.0. */
.smartops-tracking-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:46px 1fr;gap:11px;align-items:center;margin:12px 0 15px;padding:15px 14px 19px;border:1px solid #dfe7df;border-radius:21px;background:linear-gradient(140deg,#fffdf8,#f1f6f2);box-shadow:0 10px 25px #173c2a0b}.smartops-tracking-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#123626;color:#fff;font-size:20px;font-weight:900}.smartops-tracking-copy span,.smartops-tracking-copy strong,.smartops-tracking-copy small{display:block}.smartops-tracking-copy span{font-size:8px;letter-spacing:.13em;font-weight:900;color:#cb6c19}.smartops-tracking-copy strong{font-size:18px;color:#123626;margin:2px 0}.smartops-tracking-copy small{font-size:11px;color:#66736b}.smartops-tracking-progress{position:absolute;right:0;left:0;bottom:0;height:4px;background:#e2e9e3}.smartops-tracking-progress i{display:block;height:100%;background:#df6a0a;transition:width .35s ease}.smartops-tracking-hero.ready{background:linear-gradient(140deg,#eff9f2,#fffdf8);border-color:#bedbc7}.smartops-tracking-hero.ready .smartops-tracking-icon,.smartops-tracking-hero.completed .smartops-tracking-icon{background:#1e6a45}.smartops-tracking-hero.completed .smartops-tracking-progress i{background:#1e6a45}.smartops-tracking-hero.cancelled{background:#fff5f5;border-color:#f4cccc}.smartops-tracking-hero.cancelled .smartops-tracking-icon{background:#a92f2f}.smartops-tracking-hero.cancelled .smartops-tracking-progress i{background:#a92f2f}

body.dark-mode .smartops-summary{background:#14231b;border-color:#31443a}.dark-mode .smartops-summary-toggle{color:#eaf2ec}.dark-mode .smartops-summary-name strong,.dark-mode .smartops-summary-quick b{color:#edf6f0}.dark-mode .smartops-summary-grid>div{background:#192b22;border-color:#31443a}.dark-mode .smartops-summary-grid b{color:#edf6f0}.dark-mode .smartops-insight{background:#1a2e24}.dark-mode .smartops-insight p,.dark-mode .smartops-summary-quick{color:#c6d2ca}.dark-mode .smartops-brain-toggle{background:#192b22;border-color:#31443a;color:#eaf2ec}.dark-mode .smartops-brain-quick{color:#bdcbc2}

body.kds-focus .smartops-command{margin-bottom:6px;padding:6px 8px}body.kds-focus .smartops-command-note{display:none}body.kds-focus .store-brain-panel.smartops-brain-compact,body.kds-focus .smartops-summary{display:none!important}

@media(max-width:1050px){.smartops-command{grid-template-columns:auto 1fr}.smartops-command-note{grid-column:1/-1;text-align:right}.smartops-summary-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){#dashboard .dashboard-head-v2{margin-bottom:4px}.dashboard-title-v2 h1{font-size:20px}.smartops-command{grid-template-columns:1fr;margin:0 0 7px;padding:7px 8px;gap:6px;border-radius:13px}.smartops-command-lead{justify-content:space-between}.smartops-command-lead strong{margin-inline-end:auto}.smartops-command-stats{grid-template-columns:repeat(5,1fr);gap:3px}.smartops-command-stats button,.smartops-command-stats>div{padding:5px 2px;border-radius:8px}.smartops-command-stats b{font-size:12px}.smartops-command-stats span{font-size:7px}.smartops-command-note{display:none}#dashboard .ops-bar{margin-bottom:7px}.smartops-brain-compact .brain-head{grid-template-columns:1fr auto auto}.smartops-brain-compact .brain-head>div:first-child span{display:none}.smartops-brain-quick{grid-column:1/-1;grid-row:2;font-size:8px}.smartops-brain-compact .brain-state{grid-column:3;grid-row:1}.smartops-brain-toggle{grid-column:2;grid-row:1}.smartops-brain-compact.smartops-expanded .brain-metrics{grid-template-columns:1fr 1fr}.smartops-brain-compact.smartops-expanded .brain-metrics>div:last-child{grid-column:1/-1}.smartops-summary-toggle{grid-template-columns:auto 1fr auto;padding:8px 9px}.smartops-summary-name i{display:none}.smartops-summary-quick{font-size:8px}.smartops-summary-grid{grid-template-columns:1fr 1fr}.smartops-insight{align-items:flex-start;flex-direction:column}.smartops-tracking-hero{grid-template-columns:40px 1fr;padding:13px 12px 18px;border-radius:18px}.smartops-tracking-icon{width:38px;height:38px;border-radius:13px;font-size:18px}.smartops-tracking-copy strong{font-size:16px}}
@media(max-width:420px){.smartops-command-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.smartops-command-stats b{font-size:11px}.smartops-command-stats span{font-size:6.5px}.smartops-summary-quick i:nth-of-type(2),.smartops-summary-quick b:last-child{display:none}.smartops-summary-name strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.smartops-command-stats button,.smartops-tracking-progress i,.smartops-summary-chevron{transition:none!important}}

/* v0.14.0 — Mobile Focus Polish
   On phones the native stage tabs own stage navigation. The Operations Center
   keeps only operational signals so counts are not repeated three times. */
@media(max-width:760px){
  #dashboard .filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}
  #dashboard .filters .filter[data-filter="new"],
  #dashboard .filters .filter[data-filter="preparing"],
  #dashboard .filters .filter[data-filter="ready"]{display:none!important}
  #dashboard .filters .filter{min-width:0!important;padding:9px 6px!important;white-space:nowrap!important}

  .smartops-command{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;padding:7px 8px!important;gap:7px!important}
  .smartops-command-lead{min-width:0!important;justify-content:flex-start!important;gap:6px!important}
  .smartops-command-lead strong{margin-inline-end:0!important;white-space:nowrap!important}
  .smartops-command-stats{grid-template-columns:repeat(2,58px)!important;gap:4px!important}
  .smartops-command-stats [data-smartops-filter]{display:none!important}
  .smartops-command-stats button,.smartops-command-stats>div{padding:4px 2px!important;min-height:37px!important}
  .smartops-command-stats b{font-size:11px!important}
  .smartops-command-stats span{font-size:6.5px!important}

  .mobile-stage-tabs{margin-top:0!important;margin-bottom:7px!important;padding:5px!important;gap:4px!important}
  .mobile-stage-tabs button{min-height:39px!important;padding:6px 3px!important}
  .mobile-stage-tabs button b{font-size:12px!important}
  .kds-column-list{min-height:58px!important}
  .kds-empty{padding:22px 8px!important}

  .store-brain-panel.smartops-brain-compact{margin-top:10px!important}
  .smartops-summary{margin-top:6px!important}
}
@media(max-width:760px){
  body:has(#ordersList:not(.kds-board-host)) .mobile-stage-tabs{display:none!important}
}

/* v0.14.0 native summary + desktop readability */
.smartops-summary>summary{list-style:none}.smartops-summary>summary::-webkit-details-marker{display:none}
@media(min-width:681px){#dashboard .dashboard-title-v2 p{font-size:12px!important}#dashboard .filter{font-size:12px!important;min-height:40px!important;padding:9px 14px!important}#dashboard input,#dashboard select{font-size:12px!important}.smartops-command-lead strong{font-size:15px}.smartops-command-lead em{font-size:10px}.smartops-command-stats b{font-size:16px}.smartops-command-stats b i{font-size:11px}.smartops-command-stats span{font-size:10px}.smartops-command-note{font-size:11px}.smartops-brain-compact .brain-head strong{font-size:15px}.smartops-brain-quick{font-size:11px}.smartops-brain-toggle,.smartops-brain-compact .brain-state{font-size:10px}.smartops-summary-name strong{font-size:14px}.smartops-summary-quick{font-size:11px}.smartops-summary-grid span{font-size:10px}.smartops-summary-grid b{font-size:14px}.smartops-summary-grid small{font-size:9.5px}.smartops-insight p{font-size:11px}.kds-column>header span{font-size:10px!important}.kds-column>header strong{font-size:17px!important}.kds-empty{font-size:12px!important}.kds-card-head strong{font-size:17px!important}.kds-card-head span{font-size:12px!important}.kds-card-head>b{font-size:11px!important}.kds-item strong{font-size:14px!important}.kds-item span{font-size:12px!important}.kds-item small{font-size:10px!important}.kds-primary{font-size:12px!important}}
@media(min-width:681px){
  .cashier-top .brand strong{font-size:14px!important}.cashier-top .brand span{font-size:10.5px!important}
  .top-actions-v2>button,.top-actions-v2>.cashier-tools-wrap>button{font-size:11px!important}
  .dashboard-title-v2 h1{font-size:34px!important}.dashboard-title-v2 .eyebrow{font-size:10px!important}
  .kds-note{font-size:11px!important}.kds-actions button{font-size:11px!important}
  .status-pill,.age-chip{font-size:10px!important}
}
