/* Management screens inside the Command Center (#manage): the working tabs (Orders, Menu, Inventory, Customers, Reports, Settings). Colours come from the --cc-* tokens in cc-theme.css. Mobile first. */
.mg{display:grid;gap:14px}
.mg-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.mg-tabs::-webkit-scrollbar{display:none}
.mg-tab,.mg-chip{min-height:44px;padding:0 16px;border:1px solid var(--cc-card-line);border-radius:999px;background:var(--cc-card-bg);color:var(--cc-ink);font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.mg-tab.on,.mg-chip.on{background:var(--cc-bar);border-color:var(--cc-bar);color:var(--cc-ink)}
.mg-chips{display:flex;flex-wrap:wrap;gap:8px}
.mg-body{display:grid;gap:14px}
.mg-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mg-tile{display:grid;gap:2px;padding:14px;border:1px solid var(--cc-card-line);border-radius:var(--cc-radius-sm);background:var(--cc-card-bg)}
.mg-tile span{font-size:.88rem;color:var(--cc-ink);opacity:.8}
.mg-tile b{font-size:1.5rem;line-height:1.15;overflow-wrap:anywhere}
.mg-tile small{font-size:.76rem;color:var(--cc-muted)}
.mg-cols{display:grid;gap:14px}
.mg .panel h3{margin:0 0 8px}
.mg-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mg-list li{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--cc-card-line)}
.mg-list li:last-child{border-bottom:0}
.mg-list li>span:not(.mg-pill){flex:1;min-width:0;overflow-wrap:anywhere}
.mg-list small{color:var(--cc-muted);display:block}
.mg-list li>small{display:inline}
.mg-links a{display:block;padding:6px 0;min-height:44px;line-height:32px}
ol.mg-list{counter-reset:n}
ol.mg-list li::before{counter-increment:n;content:counter(n);width:22px;color:var(--cc-muted)}
.mg-pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap;background:var(--cc-done-soft);color:var(--cc-ink)}
.mg-pill.soldout{background:#b3261e;color:#fff}
.mg-pill.low{background:#f2b705;color:#2b2200}
.mg-pill.ok{background:#dcebdc;color:#14361a}
.mg-pill.untracked{background:var(--cc-done-soft);color:var(--cc-muted)}
.mg-askform{display:flex;gap:8px;margin:10px 0}
.mg-askform input{flex:1;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--cc-card-line);border-radius:10px;background:#fff;color:#1b1b1b;font:inherit}
.mg-askform button{min-height:44px;padding:0 18px;border-radius:10px}
.mg-answer{min-height:24px}
.mg-q{margin:6px 0 2px;color:var(--cc-muted);font-size:.85rem}
.mg-a{margin:2px 0;font-size:1.02rem;overflow-wrap:anywhere}
.mg-a.err{color:#b3261e;font-weight:600}
.mg-error h3{margin:0 0 6px}
.mg-menurow{display:grid!important;grid-template-columns:1fr auto;gap:8px 12px;align-items:start!important}
.mg-sizes{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.mg-size{display:inline-flex;align-items:center;gap:8px}
.mg-sizes button{min-height:44px;padding:0 14px;border:1px solid var(--cc-card-line);border-radius:10px;background:var(--cc-card-bg);color:var(--cc-ink);font:inherit;font-weight:600;cursor:pointer}
.mg-sub{margin:14px 0 4px;font-size:.82rem;color:var(--cc-muted);font-weight:600}
.mg-empty,.mg-foot{color:var(--cc-muted);font-size:.9rem;margin:6px 0}
.mg-foot a,.mg-link{color:inherit;text-decoration:underline;background:none;border:0;font:inherit;padding:8px 0;min-height:44px;cursor:pointer;text-align:left}
.mg-orders{display:grid;gap:10px}
.mg-order{display:grid;gap:4px;padding:14px;border:1px solid var(--cc-card-line);border-radius:var(--cc-radius-sm);background:var(--cc-card-bg);color:inherit;text-decoration:none;min-height:44px}
.mg-order h3{margin:0}
.mg-order p{margin:0}
.mg-allergy{color:#b3261e;font-weight:700}
.mg-total{font-weight:700}
.mg-table{display:grid;gap:8px}
.mg-trow{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:12px;border:1px solid var(--cc-card-line);border-radius:var(--cc-radius-sm);background:var(--cc-card-bg)}
.mg-thead{display:none}
.mg-name small{display:block;color:var(--cc-muted);font-size:.78rem}
.mg-trow>span:nth-child(3),.mg-trow>span:nth-child(4){display:flex;align-items:center;gap:8px}
.mg-trow>span:nth-child(3)::before{content:"Left";color:var(--cc-muted);font-size:.8rem;min-width:44px}
.mg-trow>span:nth-child(4)::before{content:"Low at";color:var(--cc-muted);font-size:.8rem;min-width:44px}
.mg-num{width:84px;min-height:44px;padding:0 10px;border:1px solid var(--cc-card-line);border-radius:10px;background:#fff;color:#1b1b1b;font:inherit}
.mg-acts{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.mg-acts button{min-height:44px;padding:0 14px;border:1px solid var(--cc-card-line);border-radius:10px;background:var(--cc-card-bg);color:var(--cc-ink);font:inherit;font-weight:600;cursor:pointer}
.mg-bars{display:flex;align-items:flex-end;gap:6px;height:150px;overflow-x:auto}
.mg-bar{flex:1 0 34px;display:grid;grid-template-rows:1fr auto auto;justify-items:center;gap:2px;height:100%}
.mg-bar i{display:block;width:70%;min-height:2px;align-self:end;background:var(--cc-bar);border-radius:6px 6px 0 0}
.mg-bar b{font-size:.68rem;white-space:nowrap}
.mg-bar small{font-size:.66rem;color:var(--cc-muted)}
@media(min-width:760px){
 .mg-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mg-cols{grid-template-columns:1fr 1fr}
 .mg-thead,.mg-trow{grid-template-columns:2fr 1fr 1fr 1fr 1.6fr}
 .mg-thead{display:grid;padding:0 12px;color:var(--cc-muted);font-size:.8rem}
 .mg-trow>span:nth-child(3)::before,.mg-trow>span:nth-child(4)::before{content:none}
 .mg-acts{grid-column:auto}
}
/* the signed-in header button looks like the sign-in link */
header button.site-signin{font:inherit;cursor:pointer}
