/* HornetFuel — Hancock County Schools brand: Hornet red #dd0004, charcoal #242424/#373737, grays #f8f8f8/#e5e5e5 */
:root {
  --red: #dd0004; --red-d: #b00003; --red-l: #fde8e8; --ink: #242424; --ink2: #373737; --mut: #6f6f6f; --line: #e5e5e5; --bg: #f8f8f8; --card: #fff;
  --ok: #1a9b5b; --ok-l: #e3f5ec; --warn: #c77700; --warn-l: #fff3dc; --bad: #c9302c; --bad-l: #fdeaea; --info: #2463a6; --info-l: #e7f0fa;
  --r: 12px; --sh: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05); --sh2: 0 10px 40px rgba(0,0,0,.18);
  --side: 258px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); display: flex; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; }
small { font-size: 12px; }
.muted { color: var(--mut); } .small { font-size: 12px; } .b { font-weight: 700; } .r { text-align: right; } .c { text-align: center; }
.pos { color: var(--ok); font-weight: 700; } .neg { color: var(--bad); font-weight: 700; } .red { color: var(--red) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.grow { flex: 1; } .d { display: block; } .link { color: var(--red); font-weight: 600; } .link:hover { text-decoration: underline; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---------- sidebar ---------- */
.side { width: var(--side); flex: none; background: var(--ink); color: #cfcfcf; display: flex; flex-direction: column; height: 100vh; position: relative; overflow: hidden; }
.side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red); }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 18px 18px; border-bottom: 1px solid #333; }
.brand img { width: 46px; height: 46px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 0 0 2px var(--red); }
.brand b { display: block; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand b span { color: var(--red); }
.brand small { color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7d7d7d; padding: 16px 12px 6px; font-weight: 700; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #d6d6d6; font-weight: 500; margin: 1px 0; transition: background .15s, color .15s; position: relative; }
#nav a .ic { width: 18px; height: 18px; color: #9a9a9a; }
#nav a:hover { background: #2f2f2f; color: #fff; }
#nav a.on { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(221,0,4,.35); }
#nav a.on .ic { color: #fff; }
#nav a.parent { color: #fff; background: #2f2f2f; }
#nav a.sub { padding: 6px 12px 6px 41px; font-size: 13px; color: #a9a9a9; }
#nav a.sub .dot { width: 6px; height: 6px; border-radius: 50%; background: #555; position: absolute; left: 21px; }
#nav a.sub.on { background: #3a1415; color: #fff; box-shadow: none; } #nav a.sub.on .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(221,0,4,.25); }
#nav a span { flex: 1; }
.nb { font-style: normal; font-size: 11px; font-weight: 700; background: #444; color: #fff; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nb.red { background: #fff; color: var(--red); } #nav a.on .nb.red { background: #fff; }
.nb.amber { background: #e29a00; color: #241800; }
.side-foot { padding: 16px 18px 20px; border-top: 1px solid #333; background: linear-gradient(180deg, transparent, rgba(221,0,4,.12)); }
.sf-tag { color: #fff; font-weight: 800; font-size: 13px; }
.side-foot small { color: #8b8b8b; font-size: 11px; }

/* ---------- main / topbar ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.top { height: 62px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); }
.crumb b { color: var(--ink); font-size: 15px; } .crumb span::after { content: "›"; margin-left: 10px; color: #bbb; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-s { width: 300px; }
.sy-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: var(--red-l); color: var(--red-d); }
.me { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.me b { display: block; font-size: 13px; } .me small { color: var(--mut); font-size: 11px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.me .av { background: var(--red); }
.view { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }
.view > * + * { margin-top: 18px; }

/* ---------- generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.card.flat { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { display: flex; align-items: center; gap: 7px; }
.card-h > :last-child:not(:first-child) { margin-left: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--red); }
.eyebrow.light { color: #ffb3b4; }
.page-h { display: flex; align-items: flex-end; gap: 20px; }
.page-h h1 { font-size: 27px; font-weight: 800; margin-top: 4px; }
.page-h p { margin: 6px 0 0; max-width: 820px; }
.ph-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.grid { display: grid; gap: 18px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.dash { height: 0; border-top: 2px dashed var(--ink); border-radius: 0; width: 16px; }
.empty-s { padding: 26px 14px; text-align: center; color: var(--mut); font-size: 13px; background: var(--bg); border-radius: 10px; border: 1px dashed var(--line); }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; }
.banner .ic { margin-top: 1px; }
.banner.warn { background: var(--warn-l); border-color: #f1d49a; color: #6b4300; }
.banner.bad { background: var(--bad-l); border-color: #f2c1c0; color: #7d1a17; }
.banner.ok { background: var(--ok-l); border-color: #b8e2cb; color: #0f5a35; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: #cfcfcf; background: #fafafa; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.primary:hover { background: #000; }
.btn.hornet { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(221,0,4,.28); } .btn.hornet:hover { background: var(--red-d); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.ok:hover { background: #15834c; }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: #f1f1f1; }
.btn.danger-text { color: var(--bad); border-color: transparent; }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.xs .ic { width: 13px; height: 13px; }
.btn.wide { width: 100%; justify-content: center; height: 42px; }
.iconbtn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--mut); }
.iconbtn:hover { background: #efefef; color: var(--ink); } .iconbtn.del:hover { color: var(--bad); background: var(--bad-l); }
.iconbtn.xs { width: 22px; height: 22px; } .iconbtn.xs .ic { width: 13px; height: 13px; }

/* chips & pills */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #efefef; color: var(--ink2); white-space: nowrap; line-height: 1.35; }
.chip .ic { width: 13px; height: 13px; }
.chip.xs { font-size: 11px; padding: 2px 7px; }
.chip.ok { background: var(--ok-l); color: #0f6e3f; } .chip.bad { background: var(--bad-l); color: #a1221f; } .chip.warn { background: var(--warn-l); color: #8a5300; } .chip.info { background: var(--info-l); color: var(--info); }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--mut); } .chip.dark { background: var(--ink); color: #fff; }
.chip.c-sib { background: #fde8e8; color: var(--red-d); } .chip.c-prior { background: #ece9fb; color: #4a3aa8; } .chip.c-near { background: var(--info-l); color: var(--info); }
.chip.c-mv { background: var(--warn-l); color: #8a5300; } .chip.c-foster { background: #e2f4f4; color: #0d6b6b; } .chip.c-mig { background: #eef6e1; color: #4c6b12; }
.chip.ky { background: #e8f5e3; color: #2f6b1d; } .chip.usda { background: #e7eefb; color: #1d4c94; } .chip.allergen { background: #fff0e6; color: #a1460a; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; background: rgba(255,255,255,.12); color: #eee; border: 1px solid rgba(255,255,255,.18); font-family: inherit; }
.pill.dark { background: rgba(0,0,0,.35); } .pill.link { cursor: pointer; } .pill.link:hover { background: rgba(255,255,255,.22); }
.pill b { color: #fff; }

/* segmented / tabs */
.seg { display: inline-flex; background: #efefef; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; color: var(--ink2); }
.seg button em { font-style: normal; font-size: 11px; color: var(--mut); margin-left: 3px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); } .seg button.on em { color: var(--red); }
.seg.big button { padding: 9px 16px; font-size: 13.5px; }
.subtabs, .rtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.subtabs a, .rtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 600; color: var(--mut); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s; }
.subtabs a:hover, .rtabs a:hover { color: var(--ink); }
.subtabs a.on, .rtabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.subtabs a em, .rtabs a em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #efefef; color: var(--ink2); }
.rtabs a.on em { background: var(--red); color: #fff; }
.rtabs a { font-size: 15px; padding: 13px 20px; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-row.k3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi b i { font-style: normal; font-size: 14px; color: var(--mut); font-weight: 600; }
.kpi small { color: var(--mut); }
.kpi.red { border-color: #f6c8c9; background: linear-gradient(135deg, #fff 55%, #fff1f1); }
.kpi.red::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.kpi.red b { color: var(--red); }

/* tables */
.tbl-tools { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; flex-wrap: wrap; }
.tbl-tools select, select.big, .add { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 30px 0 10px; font: inherit; font-size: 13px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
select.big { height: 40px; font-size: 14px; font-weight: 600; min-width: 200px; }
.tsearch { display: flex; align-items: center; gap: 7px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; min-width: 240px; color: var(--mut); }
.tsearch:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,0,4,.12); }
.tsearch input { border: 0; outline: 0; font: inherit; font-size: 13px; flex: 1; background: transparent; color: var(--ink); min-width: 0; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafa; white-space: nowrap; user-select: none; position: sticky; top: 0; }
.tbl th.r { text-align: right; } .tbl th.c { text-align: center; }
.tbl th[data-sort] s { display: inline-block; width: 8px; height: 8px; margin-left: 5px; text-decoration: none; opacity: .3; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: 1px; width: 0; height: 0; cursor: pointer; }
.tbl th.sorted { color: var(--ink); } .tbl th.sorted s { opacity: 1; color: var(--red); } .tbl th.sorted.desc s { transform: rotate(180deg); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #fbf7f7; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl td.acts { white-space: nowrap; text-align: right; opacity: .35; transition: opacity .15s; } .tbl tr:hover td.acts { opacity: 1; }
.tbl td.empty { text-align: center; color: var(--mut); padding: 34px; }
.tbl tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); } .tbl tr.row-bad { background: #fffafa; }
.tbl tr.cur { background: #fff5f5; } .tbl tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl.mini th, .tbl.mini td { padding: 8px 10px; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12.5px; color: var(--mut); background: #fcfcfc; }
.pager { display: flex; align-items: center; gap: 10px; } .pager b { color: var(--ink); font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; } .who b { display: block; } .who small { color: var(--mut); }
.who .av { width: 30px; height: 30px; font-size: 11px; background: #ececec; color: var(--ink2); }
.grp { display: inline-block; padding: 2px 8px; margin: 1px 4px 1px 0; border-radius: 6px; background: #f1f1f1; font-weight: 600; font-size: 12px; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 50% { transform: translateX(-5px); } }
tr.shake { animation: shake .5s; background: var(--bad-l) !important; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; z-index: 50; opacity: 0; transition: opacity .18s; overflow-y: auto; }
.modal.in { opacity: 1; }
.modal.confirm { z-index: 60; align-items: center; padding-top: 20px; }
.modal-card { background: #fff; border-radius: 16px; width: 560px; max-width: 100%; box-shadow: var(--sh2); transform: translateY(12px) scale(.98); transition: transform .22s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal.in .modal-card { transform: none; }
.modal-card.wide { width: 860px; } .modal-card.sm { width: 400px; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; } .modal-head > div { flex: 1; } .modal-head .muted { margin-top: 2px; }
.modal-head::before { content: ""; width: 4px; align-self: stretch; border-radius: 3px; background: var(--red); }
.modal-body { padding: 18px 20px; max-height: 64vh; overflow-y: auto; }
.modal-body h3 { font-size: 17px; margin-bottom: 6px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafafa; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.modal-card.wide .form-grid { grid-template-columns: repeat(4, 1fr); }
.modal-card.wide .fld.span2 { grid-column: span 4; }
.fld.span2 { grid-column: span 2; }
.fld label { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; } .fld label i { color: var(--red); font-style: normal; }
.fld input:not([type=checkbox]), .fld select, .fld textarea { width: 100%; height: 38px; border: 1px solid #dcdcdc; border-radius: 8px; padding: 0 11px; font: inherit; background: #fff; color: var(--ink); }
.fld textarea { height: auto; padding: 9px 11px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,0,4,.12); }
.fld input:disabled { background: #f4f4f4; color: var(--mut); }
.fld .invalid { border-color: var(--bad) !important; background: #fffafa; }
label.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; font-size: 13px !important; margin: 0 !important; }
label.check input { width: 16px; height: 16px; accent-color: var(--red); }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.pillck input { display: none; }
.pillck span { display: inline-block; padding: 5px 11px; border-radius: 20px; border: 1px solid #dcdcdc; font-size: 12.5px; cursor: pointer; user-select: none; transition: all .12s; }
.pillck input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.sms { background: #f1f1f4; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 13px; max-width: 520px; }
.sms b { font-size: 11.5px; color: var(--mut); } .sms p { margin: 4px 0 0; }
.determ { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: 13px; }
.formula { background: var(--bg); border-radius: 10px; padding: 14px 16px; margin-top: 14px; display: grid; gap: 7px; font-size: 13px; }
.sigpad { height: 70px; border: 1px dashed #cfcfcf; border-radius: 10px; display: flex; align-items: center; padding: 0 20px; background: #fcfcfc; }
.sigpad span { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-size: 30px; color: #1d3f8a; }

/* toasts */
#toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 80; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 300px; max-width: 460px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--sh2); font-size: 13.5px; transform: translateX(30px); opacity: 0; transition: all .28s cubic-bezier(.2,.8,.2,1); border-left: 4px solid var(--ok); }
.toast.in { transform: none; opacity: 1; }
.toast .ic { color: #59d692; width: 18px; height: 18px; }
.toast.bad { border-left-color: var(--red); } .toast.bad .ic { color: #ff7b7d; }
.toast.info { border-left-color: #6aa4e6; } .toast.info .ic { color: #8dbdf2; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #efefef; stroke-width: 1; }
.chart .ax { font-size: 11px; fill: #8a8a8a; } .chart .axl { font-size: 12px; fill: var(--ink2); font-weight: 700; }
.chart rect { transition: opacity .2s; } .chart rect:hover { opacity: .8; }
.donut { width: 150px; height: 150px; flex: none; } .donut .dv { font-size: 17px; font-weight: 800; fill: var(--ink); } .donut .ds { font-size: 10px; fill: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.spark { width: 120px; height: 34px; }
.gauge { width: 100%; display: block; }
.gauge .gfill { transition: stroke-dasharray 1s cubic-bezier(.2,.8,.2,1), stroke .4s; }
.gauge .gt { font-size: 9px; fill: #9a9a9a; font-weight: 600; }
.gauge .gv { font-size: 25px; font-weight: 800; fill: var(--ink); letter-spacing: -.02em; }
.gauge .gs { font-size: 9.5px; fill: var(--mut); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.bar { height: 8px; background: #eee; border-radius: 6px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar.done i { background: var(--ok); } .bar.low i { background: var(--warn); }

/* =================== RADAR =================== */
.radar-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 26px 30px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 92% -20%, rgba(221,0,4,.55), transparent 45%), linear-gradient(120deg, #1b1b1b 0%, #2a2a2a 55%, #3a0f10 100%); box-shadow: 0 12px 40px rgba(36,36,36,.25); }
.radar-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02); pointer-events: none; }
.rh-left { position: relative; z-index: 1; max-width: 560px; }
.radar-hero .eyebrow { color: #ff8a8c; }
.radar-hero h1 { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 8px 0 14px; }
.radar-hero h1 span { color: #ffb0b1; font-weight: 600; }
.rh-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-kpis { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; position: relative; z-index: 1; }
.rk { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 13px 16px; backdrop-filter: blur(4px); }
.rk label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #bdbdbd; font-weight: 700; }
.rk b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 3px 0 1px; font-variant-numeric: tabular-nums; }
.rk b i { font-style: normal; color: #888; font-weight: 400; }
.rk small { color: #aaa; font-size: 11.5px; }
.rk.hot { background: linear-gradient(135deg, var(--red), #8d0003); border-color: #ff4d50; box-shadow: 0 8px 26px rgba(221,0,4,.45); }
.rk.hot label, .rk.hot small { color: #ffd6d6; }
.rk.hot b { font-size: 32px; }
.rk.ok b { color: #6be3a2; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); transform: scale(1.03); } 100% { box-shadow: 0 8px 26px rgba(221,0,4,.45); transform: none; } }
.rk.flash { animation: flash .9s ease-out; }
.gauges { display: grid; grid-template-columns: 1.15fr repeat(5, 1fr); gap: 12px; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px; box-shadow: var(--sh); transition: transform .2s; }
.gcard.district { background: linear-gradient(180deg, #fff, #fff6f6); border-color: #f3c6c7; }
.gc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; min-height: 36px; }
.gc-top img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.gc-img { width: 36px; height: 36px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.gc-top b { display: block; font-size: 14px; line-height: 1.1; } .gc-top small { color: var(--mut); font-size: 11px; white-space: nowrap; }
.gtag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--ink); color: #fff; white-space: nowrap; }
.gc-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mut); border-top: 1px solid #f1f1f1; padding-top: 7px; margin-top: 2px; gap: 6px; }
.gc-foot b { color: var(--ink); } .gc-foot .free b { color: var(--red); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.045); box-shadow: 0 0 0 4px rgba(26,155,91,.25); } 100% { transform: scale(1); } }
.gcard.bump { animation: bump .8s ease-out; }
.tabbody > * + * { margin-top: 16px; }
.tabbody { margin-top: 18px !important; }

/* optimizer */
.opt-bar { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--sh); }
.delta { min-width: 280px; padding: 8px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.delta label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; }
.delta b { display: inline-block; font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink2); }
.delta span { font-size: 13px; color: var(--mut); margin-left: 6px; }
.delta.pos { background: linear-gradient(135deg, #effaf4, #dff3e8); border-color: #a9dcc0; } .delta.pos b { color: var(--ok); }
.delta.neg { background: linear-gradient(135deg, #fff3f3, #fde3e3); border-color: #f2b8b9; } .delta.neg b { color: var(--bad); }
@keyframes pop { 0% { transform: scale(.94); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.delta.pop { animation: pop .55s cubic-bezier(.2,.8,.2,1); }
.opt-help { display: flex; gap: 10px; max-width: 560px; font-size: 13px; color: var(--ink2); }
.opt-help .ic { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.board-wrap { position: relative; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding: 2px 2px 8px; min-height: 380px; }
.gcol { background: #f0f0f0; border: 2px solid transparent; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s, box-shadow .2s, transform .2s; }
.gcol-h { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh); border-top: 4px solid var(--red); }
.gch-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gch-t b { font-size: 16px; } .gisp { font-weight: 800; font-size: 15px; color: var(--red); }
.gch-\$ { margin: 8px 0 6px; } .gch-\$ b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .gch-\$ small { display: block; color: var(--mut); }
.meter { position: relative; height: 8px; background: #eee; border-radius: 6px; margin: 4px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f05a5c, var(--red)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.meter s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.gch-hint { color: var(--mut); font-size: 11.5px; display: block; }
.gcol.capped .gcol-h { border-top-color: var(--ok); } .gcol.capped .gisp { color: var(--ok); } .gcol.capped .meter i { background: linear-gradient(90deg, #4fc386, var(--ok)); }
.gcol.inel { background: #fbeaea; border-color: #f0b3b4; border-style: dashed; } .gcol.inel .gcol-h { border-top-color: var(--bad); } .gcol.inel .gisp { color: var(--bad); }
.gcol.over { border-color: var(--red); border-style: solid; background: #fff1f1; box-shadow: 0 0 0 5px rgba(221,0,4,.12) inset, 0 10px 30px rgba(221,0,4,.15); transform: translateY(-2px); }
body.is-dragging .gcol:not(.over) { border-color: #d0d0d0; border-style: dashed; }
.gcol.winner { border-color: var(--ok); border-style: solid; box-shadow: 0 0 0 4px rgba(26,155,91,.18), 0 10px 30px rgba(26,155,91,.2); }
.gcol-b { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; }
.gcol.new { background: transparent; border: 2px dashed #cfcfcf; justify-content: center; }
.gcol.new.over { border-color: var(--red); background: #fff1f1; }
.newdrop { text-align: center; color: var(--mut); padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.newdrop .ic { width: 30px; height: 30px; color: #b5b5b5; margin-bottom: 4px; } .newdrop b { color: var(--ink2); }
.scard { display: flex; align-items: stretch; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: grab; overflow: hidden; border: 1px solid #e9e9e9; transition: box-shadow .15s, opacity .15s; user-select: none; }
.scard:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); border-color: #dadada; }
.scard:active { cursor: grabbing; }
.scard.dragging { opacity: .35; transform: rotate(-1.5deg); }
.scard.moved { box-shadow: 0 0 0 3px var(--red), 0 8px 24px rgba(221,0,4,.25); }
.sc-img { width: 74px; flex: none; background-size: cover; background-position: center; position: relative; }
.sc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,.2)); }
.sc-b { padding: 9px 10px; flex: 1; min-width: 0; }
.sc-b b { font-size: 15px; } .sc-b small { color: var(--mut); margin-left: 6px; }
.sc-m { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 11.5px; color: var(--ink2); }
.sc-m span.g { color: var(--ok); font-weight: 700; } .sc-m span.r { color: var(--bad); font-weight: 700; }
.grip { display: flex; align-items: center; padding: 0 8px; color: #c4c4c4; }
.board.scanning .scard { transition: none; }
.board.scanning { filter: saturate(.85); }
.scan { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); opacity: 0; pointer-events: none; transition: all .25s; z-index: 5; width: 560px; max-width: 92%; }
.scan.on { opacity: 1; transform: translate(-50%, -50%); }
.scan-hud { background: rgba(28,28,28,.94); color: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.4); border: 1px solid #444; }
.scan-hud.win { background: linear-gradient(135deg, #0f6e3f, #1a9b5b); border-color: #4fc386; }
.sh-t { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; } .sh-t .ic { color: #ff8a8c; } .scan-hud.win .sh-t .ic { color: #fff; }
.sh-p { height: 6px; background: #444; border-radius: 4px; margin: 12px 0 10px; overflow: hidden; } .sh-p i { display: block; height: 100%; background: var(--red); }
.sh-row { display: flex; gap: 14px; font-size: 12.5px; color: #ccc; align-items: center; } .sh-row .mono { flex: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sh-row .bad { color: #ff8a8c; }
.sh-best { margin-top: 8px; font-size: 13px; color: #bbb; } .sh-best b { color: #6be3a2; }
.sh-best.big { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; margin-top: 10px; } .sh-best.big b { font-size: 28px; color: #fff; }
.opt-lower { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.card.adopt { background: linear-gradient(180deg, #fff, #fafafa); }
.card.adopt p { margin: 0 0 14px; font-size: 13px; }
.adopt-sum { display: grid; gap: 10px; margin-bottom: 14px; }
.adopt-sum > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.adopt-sum label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); font-weight: 700; }
.adopt-sum b { font-size: 17px; } .adopt-sum b.pos { font-size: 22px; } .adopt-sum b.neg { font-size: 22px; }

/* hunter */
.hunt-top { display: flex; align-items: center; gap: 18px; }
.hunt-sum { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); }
.hunt-sum > div { padding: 14px 18px; border-left: 1px solid #f0f0f0; } .hunt-sum > div:first-child { border-left: 0; }
.hunt-sum label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); font-weight: 700; }
.hunt-sum b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .hunt-sum small { color: var(--mut); margin-left: 4px; }
.hunt-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.card.side { padding: 16px; } .card.side .card-h { margin-bottom: 8px; }
.tbl.hunt td { padding: 11px 14px; }
.ev { font-size: 12px; color: var(--mut); margin-top: 4px; max-width: 520px; }
.conf { height: 6px; background: #eee; border-radius: 4px; overflow: hidden; width: 80px; margin-bottom: 2px; }
.conf i { display: block; height: 100%; } .conf.hi i { background: var(--ok); } .conf.mid i { background: #e3a21a; } .conf.lo i { background: #bbb; }
.plus { font-size: 16px; color: var(--ok); font-variant-numeric: tabular-nums; } .plus.zero { color: #aaa; }
@keyframes goneok { 0% { background: #dff3e8; } 100% { background: #dff3e8; opacity: 0; transform: translateX(40px); } }
@keyframes gonerej { to { opacity: 0; transform: translateX(-30px); } }
tr.gone-ok { animation: goneok .38s ease-in forwards; } tr.gone-rej { animation: gonerej .38s ease-in forwards; }
.logrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f2f2f2; animation: slidein .35s; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.logrow .li { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ok-l); color: var(--ok); flex: none; }
.logrow.rej .li { background: #f0f0f0; color: #999; }
.logrow > div { flex: 1; min-width: 0; } .logrow b { display: block; font-size: 13px; } .logrow small { color: var(--mut); font-size: 11.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logrow em { font-style: normal; font-weight: 800; color: var(--ok); }
.howto { margin-top: 14px; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; } .howto p { margin: 4px 0 0; color: var(--mut); }

/* HIF */
.hif-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.hif-top .kpi-row { grid-template-columns: repeat(2, 1fr); }
.hs-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.hs-n { width: 92px; } .hs-n b { display: block; } .hs-n small { color: var(--mut); }
.hs-p { width: 40px; text-align: right; font-weight: 700; } .hs-s { width: 64px; text-align: right; color: var(--red); font-weight: 700; font-size: 12.5px; }
.kid { display: inline-block; margin: 1px 6px 1px 0; padding: 2px 8px; border-radius: 6px; background: #f3f3f3; font-size: 12px; font-weight: 600; }
.kid i { font-style: normal; color: var(--mut); font-weight: 400; }

/* =================== TODAY =================== */
.today-hero { display: grid; grid-template-columns: 1fr 420px; min-height: 190px; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 12px 40px rgba(36,36,36,.2); background: var(--ink); }
.th-photo { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.th-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,24,24,.92) 0%, rgba(24,24,24,.75) 45%, rgba(24,24,24,.35) 100%); }
.th-txt { position: relative; padding: 28px 32px; color: #fff; align-self: center; }
.th-txt h1 { font-size: 32px; font-weight: 800; margin: 6px 0 6px; } .th-txt p { margin: 0; color: #ddd; font-size: 15px; max-width: 560px; }
.th-radar { position: relative; margin: 18px; border-radius: 14px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, var(--red), #8d0003); box-shadow: 0 10px 30px rgba(221,0,4,.45); display: flex; flex-direction: column; justify-content: center; transition: transform .15s; }
.th-radar:hover { transform: translateY(-2px); }
.thr-l { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ffd0d0; }
.th-radar b { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.th-radar small { color: #ffdcdc; }
.thr-go { position: absolute; right: 18px; top: 18px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 20px; }
.g-today { grid-template-columns: 1.6fr 1fr; }
.card.alerts { grid-row: span 2; display: flex; flex-direction: column; }
#alertList { display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; border-left: 4px solid var(--info); }
.alert.bad { border-left-color: var(--bad); background: #fffafa; } .alert.warn { border-left-color: var(--warn); background: #fffcf5; }
.al-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--info-l); color: var(--info); flex: none; }
.alert.bad .al-ic { background: var(--bad-l); color: var(--bad); } .alert.warn .al-ic { background: var(--warn-l); color: var(--warn); }
.al-b { flex: 1; min-width: 0; } .al-b b { font-size: 13.5px; } .al-b p { margin: 2px 0 6px; font-size: 12.5px; color: var(--mut); }
.al-f { display: flex; align-items: center; gap: 6px; } .al-f small { color: var(--mut); margin-right: auto; }
.tm-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f2f2; align-items: flex-start; } .tm-row:last-child { border-bottom: 0; }
.tm-gg { width: 46px; flex: none; font-weight: 800; color: var(--red); padding-top: 3px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 3px 9px; border-radius: 7px; background: #f3f3f3; font-size: 12px; font-weight: 500; }
.fchip.ky { background: #e8f5e3; color: #2f6b1d; } .fchip .ic { width: 12px; height: 12px; }
.site-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.site-tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
.site-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.st-img { height: 96px; background-size: cover; background-position: center; position: relative; }
.st-img span { position: absolute; left: 10px; bottom: 8px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.st-b { padding: 11px 12px 12px; } .st-b > b { display: block; font-size: 13px; line-height: 1.25; } .st-b > small { color: var(--mut); font-size: 11px; }
.st-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 8px; }
.st-m label { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; }
.st-m b { font-size: 15px; font-weight: 800; } .st-m small { font-size: 10px; color: var(--mut); }

/* =================== MENUS =================== */
.mp-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; margin-top: 16px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 9px; border-top: 4px solid var(--ok); transition: border-color .3s; min-width: 0; }
.day.nc { border-top-color: var(--bad); background: #fffbfb; }
.day.today { box-shadow: 0 0 0 2px var(--ink), var(--sh); }
@keyframes dayflash { 0% { box-shadow: 0 0 0 4px rgba(221,0,4,.45); } 100% { box-shadow: 0 0 0 0 rgba(221,0,4,0); } }
.day.flash { animation: dayflash .9s ease-out; }
.day-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .day-h > div { margin-right: auto; } .day-h b { font-size: 16px; } .day-h small { color: var(--mut); margin-left: 5px; }
.comp { display: flex; gap: 4px; flex-wrap: wrap; }
.cc { font-size: 10.5px; font-weight: 800; padding: 3px 6px; border-radius: 5px; letter-spacing: .02em; }
.cc.ok { background: var(--ok-l); color: #0f6e3f; } .cc.bad { background: var(--bad); color: #fff; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.it { display: flex; align-items: center; gap: 7px; padding: 6px 6px 6px 7px; border-radius: 8px; background: var(--bg); font-size: 12.5px; animation: slidein .25s; }
.it:hover { background: #f1eded; }
.it-c { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; background: var(--ink2); }
.cat-Entre .it-c { background: var(--red); } .cat-Grain .it-c { background: #b8860b; } .cat-Vegetable .it-c { background: #2f8a3a; } .cat-Fruit .it-c { background: #e07a10; } .cat-Milk .it-c { background: #2463a6; }
.it-n { flex: 1; min-width: 0; line-height: 1.25; } .it-n small { display: block; color: var(--mut); font-size: 10.5px; }
.it-n .ky { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 10px; font-weight: 700; color: #2f6b1d; background: #e1f2d9; padding: 0 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.it-n .ky .ic { width: 10px; height: 10px; }
.it .iconbtn { opacity: 0; } .it:hover .iconbtn { opacity: 1; }
.add { width: 100%; height: 32px; font-size: 12px; color: var(--mut); border-style: dashed; }
.day-f { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mut); border-top: 1px solid #f0f0f0; padding-top: 7px; margin-top: auto; }
.compliance { position: sticky; top: 0; }
.cmp-score { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg); border-radius: 12px; margin-bottom: 8px; }
.cmp-score b { display: block; } .cmp-score small { display: block; }
.ring { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 16px; flex: none; border: 5px solid var(--ok); background: #fff; }
.ring.bad { border-color: var(--bad); } .ring b { font-size: 20px; font-weight: 900; display: inline !important; } .ring small { display: inline !important; color: var(--mut); font-size: 11px; }
.cmp-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); font-weight: 700; margin: 12px 0 4px; }
.cmp-row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 4px; font-size: 12.5px; border-radius: 6px; }
.cmp-row .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.cmp-row.bad { background: var(--bad-l); } .cmp-row.bad .dotc { background: var(--bad); box-shadow: 0 0 0 3px rgba(201,48,44,.2); } .cmp-row.bad .cv { color: var(--bad); }
.cmp-row.warn .dotc { background: var(--warn); }
.cv { font-weight: 700; font-variant-numeric: tabular-nums; } .ct { color: var(--mut); font-size: 11.5px; min-width: 76px; text-align: right; }

/* =================== PRODUCTION =================== */
.kitchens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh); border-top: 4px solid var(--warn); }
.kcard.signed { border-top-color: var(--ok); }
.kc-h b { font-size: 16px; display: block; } .kc-h small { color: var(--mut); }
.kc-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.kc-m label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; } .kc-m b { font-size: 18px; font-weight: 800; }
.kc-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.temp { font-variant-numeric: tabular-nums; font-weight: 600; } .temp.bad { color: #fff; background: var(--bad); padding: 2px 7px; border-radius: 6px; }
.mini-bar { height: 6px; background: #eee; border-radius: 4px; overflow: hidden; width: 70px; } .mini-bar i { display: block; height: 100%; background: var(--ink2); }

/* =================== STUDENTS =================== */
.al-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fffaf6; }
.al-head > .ic { width: 26px; height: 26px; color: #a1460a; } .al-head b { display: block; } .al-head small { display: block; max-width: 760px; }
.lines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 14px; align-items: start; }
.line-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.lc-h { display: flex; align-items: center; gap: 9px; padding: 10px; background: #fafafa; border-bottom: 1px solid var(--line); }
.lc-h > div:nth-child(2) { flex: 1; min-width: 0; } .lc-h b { display: block; font-size: 13px; } .lc-h small { color: var(--mut); font-size: 10.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-img { width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.sub-row { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid #f2f2f2; font-size: 12.5px; transition: opacity .2s, background .2s; }
.sub-row > div { min-width: 0; }
.sub-row.done { opacity: .5; background: var(--ok-l); } .sub-row.done b { text-decoration: line-through; }
.subw { display: flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 600; margin-top: 3px; } .subw .ic { width: 12px; height: 12px; }
.line-card .empty-s { margin: 10px; padding: 16px 8px; }

/* =================== INVENTORY =================== */
.inv-top { display: grid; grid-template-columns: 520px 1fr; gap: 16px; align-items: stretch; }
.ent-b { display: flex; align-items: center; gap: 20px; }
.ent-l { display: grid; gap: 8px; flex: 1; font-size: 13px; }
.ent-l > div { display: flex; align-items: center; gap: 8px; } .ent-l i { width: 11px; height: 11px; border-radius: 3px; } .ent-l b { margin-left: auto; font-variant-numeric: tabular-nums; }
.inv-k { align-content: stretch; } .inv-k .kpi { display: flex; flex-direction: column; justify-content: center; }
.oh { display: inline-block; min-width: 46px; padding: 3px 7px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; background: #f4f4f4; }
.oh i { font-style: normal; font-weight: 400; color: var(--mut); font-size: 11px; }
.oh.low { background: var(--warn-l); color: #8a5300; } .oh.zero { background: var(--bad); color: #fff; } .oh.zero i { color: #ffd6d6; }
.reord { font-size: 12px; font-weight: 600; color: var(--red); }

/* =================== CLAIMS =================== */
.claims-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.claims-top .kpi-row { grid-template-columns: 1fr; gap: 12px; }
.claims-top .kpi { padding: 12px 18px; } .claims-top .kpi b { font-size: 24px; }
.claim-bar { display: flex; align-items: center; gap: 16px; } .claim-bar .banner { flex: 1; }

/* staff */
.trn { display: flex; align-items: center; gap: 10px; min-width: 170px; } .trn small { white-space: nowrap; color: var(--mut); } .trn small b { color: var(--ink); }

/* scrollbars */
.view::-webkit-scrollbar, #nav::-webkit-scrollbar, .board::-webkit-scrollbar { width: 10px; height: 10px; }
.view::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 10px; border: 2px solid var(--bg); }
#nav::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 10px; }
.board::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 10px; }

@media (max-width: 1400px) {
  .gauges { grid-template-columns: repeat(3, 1fr); }
  .radar-hero { grid-template-columns: 1fr; }
  .site-strip, .lines { grid-template-columns: repeat(3, 1fr); }
  .mp-grid { grid-template-columns: 1fr; }
}
