:root { --ok: #137333; --ok-bg: #e6f4ea; --bad: #b3261e; --bad-bg: #fce8e6; --warn: #8a5300; --warn-bg: #fef7e0; --ink: #1f1f1f; --muted: #5f6368; --line: #dadce0; --brand: #0b57d0; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #f8f9fa; font-size: 16px; }
header.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
header.bar .title { font-weight: 700; flex: 1; }
header.bar nav a { margin-right: 12px; color: var(--brand); text-decoration: none; font-weight: 600; }
header.bar nav a.active { text-decoration: underline; }
main { padding: 14px; max-width: 1200px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
button, .btn { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { padding: 12px 14px; border-radius: 8px; margin: 10px 0; font-weight: 600; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #eef; }
.pill.critical { background: var(--bad-bg); color: var(--bad); }
.pill.warning { background: var(--warn-bg); color: var(--warn); }
.checks label { display: inline-flex; gap: 6px; font-weight: 400; margin-right: 14px; }
.checks input { width: auto; }
/* Zebra TC58e: duze cele dotyku, jeden wiodacy element */
body.zebra main { max-width: 640px; padding: 10px; }
body.zebra button { padding: 16px; font-size: 18px; width: 100%; margin: 6px 0; }
body.zebra .big { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
body.zebra .flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 5; }
body.zebra .flash.ok { background: rgba(19,115,51,.35); opacity: 1; }
body.zebra .flash.bad { background: rgba(179,38,30,.45); opacity: 1; }
.unit { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.unit.next { background: #e8f0fe; font-weight: 700; }
.unit.picked { color: var(--muted); text-decoration: line-through; }
.queue { position: fixed; bottom: 0; left: 0; right: 0; background: var(--warn-bg); color: var(--warn); padding: 8px 12px; font-weight: 600; text-align: center; }
/* druk */
.sheet { background: #fff; padding: 20px; }
.poster { page-break-after: always; text-align: center; padding: 40px 10px; }
.poster h1 { font-size: 48px; margin: 0 0 20px; }
.poster svg, .sheet svg { max-width: 100%; height: auto; }
@media print { header.bar, .no-print { display: none !important; } body { background: #fff; } main { padding: 0; max-width: none; } .card { border: 0; } }
.sheet .big, .poster .big { font-size: 28px; font-weight: 800; letter-spacing: 1px; }
