/* ══════════════════════════════════════════════════════════════════════════
   floor.css — the live packing floor (fulfilment.js, _tab === 'floor').

   Reached from the supervisor dashboard's "View floor" button. Its own sheet
   rather than another block appended to style.css: that file is already 6,800
   lines and is the one every branch collides on. Everything here is scoped to
   .flr-*, so nothing can reach the dashboard it sits beside.
   ══════════════════════════════════════════════════════════════════════════ */
.flr-wrap{display:flex;flex-direction:column;gap:12px}
.flr-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;
  border:1px solid #e6e8ee;border-radius:12px;padding:11px 15px}
.flr-back{background:#f6f7f9;border:1px solid #d8dce4;border-radius:9px;padding:7px 12px;
  font-size:12.5px;font-weight:600;color:#1f2733;cursor:pointer}
.flr-back:hover{border-color:#b9c0cc}
.flr-title{font-weight:800;font-size:19px;letter-spacing:-.02em;line-height:1.1}
.flr-sub{font-size:11.5px;color:#8a93a3}
.flr-live{display:inline-flex;align-items:center;gap:7px;background:#e9f4ee;border:1px solid #bfe0cf;
  color:#177550;border-radius:99px;padding:4px 11px;font-size:10.5px;font-weight:800;letter-spacing:.07em}
.flr-live i{width:7px;height:7px;border-radius:50%;background:#177550;
  animation:flrPulse 2.4s ease-in-out infinite}
@keyframes flrPulse{0%,100%{opacity:1}50%{opacity:.32}}
@media (prefers-reduced-motion:reduce){.flr-live i{animation:none}}
.flr-clock{font-weight:800;font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.flr-open-btn{background:#1f2733;border:1px solid #1f2733;color:#fff;border-radius:9px;
  padding:7px 14px;font-size:12.5px;font-weight:600;cursor:pointer}
.flr-open-btn:hover{background:#2c3645}
.flr-degraded{background:#fbf3e4;border:1px solid #eed9b2;color:#b45309;border-radius:10px;
  padding:9px 13px;font-size:12px;font-weight:600}

/* ── the lead: the one answer this screen exists to give ─────────────────── */
.flr-lead{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(260px,.95fr);
  background:#fff;border:1px solid #e6e8ee;border-radius:12px;overflow:hidden}
.flr-lead>div{padding:16px 18px}
.flr-lead>div+div{border-left:1px solid #eef0f4}
.flr-k{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8a93a3}
.flr-lead-top{display:flex;align-items:baseline;gap:10px;margin:3px 0 10px}
.flr-hero{font-size:40px;font-weight:800;letter-spacing:-.035em;line-height:1;
  font-variant-numeric:tabular-nums}
.flr-of{font-size:14px;font-weight:600;color:#8a93a3;font-variant-numeric:tabular-nums}
.flr-pct{margin-left:auto;font-size:11px;font-weight:800;background:#e9f4ee;border:1px solid #bfe0cf;
  color:#177550;border-radius:99px;padding:2px 9px}
.flr-bar{height:9px;border-radius:99px;background:#eceef2;overflow:hidden;display:flex}
.flr-bar i{display:block;height:100%}
.flr-bar i.ok{background:#177550}
.flr-bar i.ok2{background:#bfe0cf}
.flr-key{display:flex;gap:14px;margin-top:9px;font-size:11px;color:#5b6472;flex-wrap:wrap}
.flr-key b{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px}
.flr-key b.ok{background:#177550}
.flr-key b.ok2{background:#bfe0cf}
.flr-key b.rest{background:#eceef2}
.flr-v-t{font-size:14.5px;font-weight:800}
.flr-v-s{font-size:12px;color:#5b6472;margin-top:5px;line-height:1.5}
.flr-v-row{display:flex;gap:20px;margin-top:14px;flex-wrap:wrap}
.flr-num{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.015em;
  margin-top:2px}
.flr-num small{font-size:11px;color:#8a93a3;font-weight:600}
.flr-mini{font-size:10.5px;color:#8a93a3}
.flr-green{color:#177550}
.flr-amber{color:#b45309}
.flr-risk{background:#fbedea}
.flr-risk .flr-v-t{color:#b42318}
.flr-risk .flr-v-s{color:#8e2c22}
.flr-v-acts{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.flr-btn-red{background:#b42318;border:1px solid #b42318;color:#fff;border-radius:8px;
  padding:7px 13px;font-size:12.5px;font-weight:700;cursor:pointer}
.flr-btn-dark{background:#1f2733;border:1px solid #1f2733;color:#fff;border-radius:7px;
  padding:4px 11px;font-size:11.5px;font-weight:600;cursor:pointer;margin-left:auto}

/* ── two columns: work on the left, standing reference on the right ──────── */
.flr-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:12px;
  align-items:start}
.flr-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.flr-card{background:#fff;border:1px solid #e6e8ee;border-radius:12px;overflow:hidden}
.flr-card-h{display:flex;align-items:center;gap:9px;padding:11px 15px;border-bottom:1px solid #eef0f4}
.flr-card-t{font-size:12.5px;font-weight:700}
.flr-card-s{font-size:11px;color:#8a93a3}
.flr-none{padding:16px 15px;font-size:12.5px;color:#8a93a3}
.flr-foot{padding:10px 15px;border-top:1px solid #eef0f4;background:#f8f9fb;font-size:11px;
  color:#8a93a3}

/* ── station cards ───────────────────────────────────────────────────────── */
.flr-sts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#eef0f4}
.flr-sc{background:#fff;padding:13px 14px;cursor:pointer;text-align:left}
.flr-sc:hover{background:#f8f9fb}
.flr-sc:focus-visible{outline:2px solid #5E48B8;outline-offset:-2px}
.flr-sc.warn{background:#fbf3e4}
.flr-sc.warn:hover{background:#f8eede}
.flr-sc.free{background:#f8f9fb}
.flr-sc-h{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.flr-sc-no{font-weight:800;font-size:12.5px;background:#1f2733;color:#fff;border-radius:6px;
  padding:2px 8px;font-variant-numeric:tabular-nums}
.flr-sc.free .flr-sc-no{background:#d8dce4;color:#5b6472}
.flr-sc-n{font-weight:700;font-size:13.5px;line-height:1.15}
.flr-sc-s{font-size:9.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  margin-top:1px;color:#177550}
.flr-sc-s.stalled{color:#b45309}
.flr-sc-s.idle{color:#8a93a3}
.flr-sc-s.free{color:#8a93a3}
.flr-sc-mid{display:flex;align-items:flex-end;gap:12px;margin-bottom:10px}
.flr-sc-big{font-size:24px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;
  letter-spacing:-.025em}
.flr-sc-meta{font-size:10.5px;color:#8a93a3;margin-top:3px}
.flr-spark{margin-left:auto;width:96px;height:30px;display:block;flex:none}
.flr-spark line{stroke:#eceef2;stroke-width:1}
.flr-spark polyline{fill:none;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.flr-sc-now{display:flex;align-items:baseline;gap:9px;border-top:1px solid #eef0f4;padding-top:9px;
  font-size:11px}
.flr-sc.warn .flr-sc-now{border-top-color:#eed9b2}
.flr-sc-o{font-weight:600;font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.flr-sc-o.dim{color:#8a93a3;font-weight:500}
.flr-sc-t{font-weight:800;font-size:13px;font-variant-numeric:tabular-nums;color:#b45309;flex:none}
.flr-sc-more{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:#5E48B8;opacity:0;transition:opacity .13s;flex:none}
.flr-sc:hover .flr-sc-more{opacity:1}

/* ── throughput ──────────────────────────────────────────────────────────── */
.flr-chart{padding:14px 15px 12px}
.flr-bars{display:flex;align-items:flex-end;gap:5px;height:120px;position:relative}
.flr-bars::before{content:"";position:absolute;left:0;right:0;bottom:var(--avg,50%);
  border-top:1px dashed #d8dce4}
.flr-bars i{flex:1;background:#5E48B8;border-radius:3px 3px 0 0;position:relative;min-height:2px}
.flr-bars i.zero{background:#eceef2}
.flr-bars i em{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;
  transform:translateX(-50%);background:#1f2733;color:#fff;border-radius:7px;padding:5px 9px;
  font-size:11px;font-style:normal;white-space:nowrap;z-index:5}
.flr-bars i em span{display:block;opacity:.72;font-size:10px}
.flr-bars i:hover em{display:block}
.flr-bars-lbl{display:flex;gap:5px;margin-top:6px}
.flr-bars-lbl span{flex:1;text-align:center;font-size:9px;color:#8a93a3;
  font-variant-numeric:tabular-nums}

/* ── exceptions + activity ───────────────────────────────────────────────── */
.flr-blk{display:flex;gap:12px;align-items:center;padding:11px 15px;border-top:1px solid #eef0f4}
.flr-blk:first-of-type{border-top:0}
.flr-blk-n{min-width:42px;text-align:right;font-size:19px;font-weight:800;
  font-variant-numeric:tabular-nums;line-height:1.1}
.flr-blk.bad .flr-blk-n{color:#b42318}
.flr-blk.warn .flr-blk-n{color:#b45309}
.flr-blk.neu .flr-blk-n{color:#8a93a3}
.flr-blk-t{font-size:12.5px;font-weight:600;line-height:1.3}
.flr-blk-w{font-size:10.5px;color:#8a93a3;margin-top:1px}
.flr-fd{display:flex;gap:9px;align-items:center;padding:7px 15px;border-top:1px solid #eef0f4;
  font-size:11.5px}
.flr-fd:first-of-type{border-top:0}
.flr-fd-t{font-variant-numeric:tabular-nums;color:#8a93a3;font-size:10.5px;flex:none;width:40px}
.flr-fd-b{width:3px;height:16px;border-radius:2px;flex:none;background:#177550}
.flr-fd-b.warn{background:#b45309}
.flr-fd-b.bad{background:#b42318}
.flr-fd-x{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b6472}

@media (max-width:1100px){
  .flr-cols{grid-template-columns:1fr}
  .flr-lead{grid-template-columns:1fr}
  .flr-lead>div+div{border-left:0;border-top:1px solid #eef0f4}
}
@media (max-width:620px){
  .flr-sts{grid-template-columns:1fr}
}
