/* Storefront / Operation pages + help panel · layout on top of app.css (mockup components) */
#main.ops{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%}
#main.ops>*{flex-shrink:0}
.ops .kpi{grid-template-columns:repeat(4,1fr)}
.ops .pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
@media(min-width:961px){.ops .pgrid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
.ops .paybar{padding:10px 16px 12px;background:var(--surface);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;position:sticky;bottom:0;z-index:5;margin:0 -24px -16px;border-radius:0}
.ops .paybar .cart{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ops .paybar .cart span{font-size:13px;min-width:0}.ops .paybar .cart b{font-size:22px;flex-shrink:0}
.ops .payrow{display:flex;gap:6px}
.ops .stops{display:flex;flex-direction:column;gap:6px}
.ops .foot{position:sticky;bottom:0;z-index:5;margin:0 -24px -16px;justify-content:flex-end}
.ops .foot .btn{flex-grow:0;height:42px;padding:0 18px}
.ops .foot .lead{margin-right:auto;display:flex;flex-direction:column;justify-content:center;min-width:84px}
.ops .foot .lead b{font-size:15px}
.ops .segrow{display:flex;gap:6px;flex-wrap:wrap}
.ops .c2{display:flex;gap:14px;align-items:flex-start}
.ops .c2>.grow{flex-grow:1;min-width:0}
.ops .c2>.side{width:300px;flex-shrink:0;display:flex;flex-direction:column;gap:10px}
.ops .li .nm .chip{padding:0 6px;font-size:10px;vertical-align:middle}
.ops .card.tl{padding:6px 12px}
.ops .card.warnc{border-color:var(--amber-line);background:var(--edited)}
.ops .noteline{padding:4px 0 8px}
.ops .sumcard{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;padding:8px 12px}
.ops .svgchart{width:100%;max-width:100%;height:120px}
.ops .grid .hd{background:var(--surface)}
.ops .grid td.f .nm{font-size:12.5px}
.ops .tool{gap:8px}
@media(min-width:961px){#regFoot{display:none!important}}
@media(max-width:960px){
  .ops .kpi{grid-template-columns:1fr 1fr}
  .ops .paybar{position:fixed;left:0;right:0;bottom:0;margin:0;padding-bottom:calc(12px + env(safe-area-inset-bottom));z-index:50}
  .ops .foot{position:fixed;left:0;right:0;bottom:0;margin:0;padding-bottom:calc(10px + env(safe-area-inset-bottom));justify-content:stretch;z-index:50}
  .ops .foot .btn{flex-grow:1;height:48px;padding:0 10px}
  .ops .foot .btn.sec{flex-grow:0}
  .ops .foot .lead{margin-right:0}
  #main.ops.hasfoot{padding-bottom:84px}
  #main.ops.haspay{padding-bottom:150px}
  .ops .c2{flex-direction:column}
  .ops .c2>.side{width:100%}
}
/* ===== help panel (?) — full page on mobile, centered sheet on desktop (mockup HelpPanel) ===== */
.helpsheet{position:fixed;inset:0;background:rgba(18,56,42,.45);z-index:75;display:flex;align-items:center;justify-content:center;padding:20px}
.helpbox{background:var(--bg);border-radius:16px;width:100%;max-width:520px;max-height:92vh;overflow:auto;display:flex;flex-direction:column}
.helpbox .hbody{padding:8px 16px 12px;display:flex;flex-direction:column;gap:8px;flex-grow:1}
.helpbox .top{padding:10px 16px 0;background:transparent;border:0;height:auto;display:flex;align-items:center;gap:8px}
.helpbox .top h1{font-size:17px;white-space:normal;flex-grow:1;margin:0;font-weight:700}
.helpbox .foot{position:sticky;bottom:0}
.helpbox .foot .btn{flex-grow:1;height:48px}
.helpbox .card.req{border-color:var(--amber-line);background:var(--edited)}
.helpbox .li .btns{display:flex;gap:4px;flex-shrink:0}
@media(max-width:960px){
  .helpsheet{padding:0;align-items:stretch;background:var(--bg)}
  .helpbox{max-width:none;max-height:none;border-radius:0;height:100%}
}
