:root {
  --paper: #f4f3ec; --white: #fffef9; --ink: #202f2a; --muted: #65716a; --line: #dcded4;
  --green: #304f3e; --green-ink: #fff; --lime: #d4e494; --soft: #e8eddf;
  --warn: #8a5a00; --warn-bg: #f5ecd6; --danger: #8b2f2f; --danger-bg: #f5e1df; --ok: #2f6f4f;
  --arena: #b4532a; --radius: 16px; --shadow: 0 10px 34px #223a2814; --tap: 52px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none; -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151c19; --white: #1d2723; --ink: #eef1ea; --muted: #a2afa7; --line: #2f3d37; --soft: #26332d;
    --green: #8fbf9f; --green-ink: #0f1713; --lime: #3d5a38; --warn: #f0c36a; --warn-bg: #3b3115; --danger: #f2a09a; --danger-bg: #3d1f1d; --ok: #8fd0a6; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
body { min-height: 100vh; line-height: 1.45; padding: env(safe-area-inset-top) 0 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 20px; letter-spacing: -.01em; }
h3 { font-size: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
.boot { padding: 40px 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden, [hidden] { display: none !important; }

/* układ */
.shell { max-width: 980px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.topbar .brand { font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); font-size: 20px; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; line-height: 20px; }
.page-head { padding: 8px 0 16px; display: grid; gap: 6px; }
.page-head p { color: var(--muted); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--white); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px #00000010; }
.tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 56px; text-decoration: none; color: var(--muted); font-size: 12px; border-radius: 12px; }
.tabbar a span { font-size: 22px; line-height: 1; }
.tabbar a.on { color: var(--green); background: var(--soft); font-weight: 600; }

/* karty i przyciski */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; margin-bottom: 14px; }
.card.hero { padding: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.big-time { font-size: 38px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.btn { min-height: var(--tap); padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* formularze */
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-size: 17px; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid #598469; outline-offset: 2px; }
input[type=checkbox] { width: 24px; min-height: 24px; height: 24px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; }

/* znaczniki */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--ink); }
.badge.arena { background: var(--arena); color: #fff; }
.badge.loc { color: #fff; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.ok { background: var(--soft); color: var(--ok); }
.banner { padding: 14px 16px; border-radius: 14px; background: var(--soft); display: grid; gap: 4px; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.change { border: 2px solid var(--warn); background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; margin-bottom: 14px; }
.change h2 { font-size: 15px; letter-spacing: .05em; }
.change .was { text-decoration: line-through; opacity: .8; }
.change .now { font-size: 24px; font-weight: 700; }

/* grafik: lista dni (telefon) */
.daylist { display: grid; gap: 14px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day.today { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.day-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--soft); font-weight: 600; }
.shift { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; min-height: 60px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.shift .who { font-weight: 600; }
.shift .hours { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; white-space: nowrap; }
.shift .meta { color: var(--muted); font-size: 14px; }
.add-line { padding: 10px 16px; border-top: 1px dashed var(--line); }
.loc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; }
.table-only { display: none; }
@media (min-width: 900px) { .list-only { display: none; } .table-only { display: block; } }
.gridtable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gridtable th, .gridtable td { border: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: 14px; text-align: left; font-weight: 500; }
.gridtable thead th { background: var(--soft); }
.gridtable td.today, .gridtable th.today { background: var(--soft); }
.chip { display: block; width: 100%; text-align: left; background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 6px 8px; margin-bottom: 4px; font-size: 13px; }
.chip.arena { background: #f1d3c3; }
.chip.off { background: var(--soft); color: var(--muted); }
.chip.plus { background: none; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

/* przełącznik widoków i miesiąc */
.segmented { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; width: fit-content; }
.seg-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.seg-btn.on { background: var(--green); color: var(--green-ink); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 14px 0; }
.mhead { text-align: center; font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.mcell { min-height: 74px; display: grid; align-content: start; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; overflow: hidden; }
.mcell.other { opacity: .4; }
.mcell.today { border: 2px solid var(--green); }
.mnum { font-weight: 700; font-size: 14px; }
.mtag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--lime); border-radius: 6px; padding: 1px 5px; width: fit-content; }
.mtag.arena { background: #f1d3c3; } .mtag.off { background: var(--soft); color: var(--muted); }
.mhours { font-size: 11px; color: var(--muted); }
.mchips { display: none; }
@media (min-width: 900px) { .mcell { min-height: 112px; padding: 8px; } .mchips { display: grid; gap: 2px; } .mchip { font-size: 12px; background: var(--soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mchip.off { color: var(--muted); } }

/* arkusz miesiąca jak w Excelu: dni w wierszach, osoby w kolumnach */
/* jeden kontener przewijany w dół i w bok; nagłówek i kolumna dni są przyklejone w jego obrębie */
.sheet-wrap { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; max-height: calc(100vh - var(--topbar-h, 66px) - 84px); max-height: calc(100dvh - var(--topbar-h, 66px) - 84px); position: relative; }
.sheet-table { border-collapse: collapse; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.sheet-table th, .sheet-table td { border: 1px solid var(--line); padding: 5px 6px; text-align: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sheet-table.narrow th, .sheet-table.narrow td { padding: 10px 8px; font-size: 15px; min-width: 92px; }
.sheet-table.wide td, .sheet-table.wide th.sh-sub { min-width: 64px; }
.sheet-table.wide td.sh-h { min-width: 56px; }
.sheet-table .sh-day { text-align: left; background: var(--soft); position: sticky; left: 0; z-index: 1; min-width: 64px; }
/* nagłówek z imionami przyklejony pod górnym paskiem podczas przewijania w dół */
.sheet-table thead th { position: sticky; top: 0; z-index: 3; height: 31px; box-shadow: 0 1px 0 var(--line); }
.sheet-table thead th.sh-sub { top: 31px; z-index: 3; }
.sheet-table thead th.sh-day { z-index: 5; }
.sheet-table tfoot th, .sheet-table tfoot td { position: sticky; bottom: 0; z-index: 2; }
.sheet-table tfoot th:first-child { left: 0; z-index: 4; }
.sheet-table .sh-day a { display: inline-block; min-width: 26px; padding: 6px 4px; font-size: 15px; font-weight: 700; color: inherit; text-decoration: none; }
.sheet-table .sh-wd { color: var(--muted); font-size: 11px; }
.sheet-table .sh-name { font-weight: 700; color: #202f2a; }
.sheet-table .sh-sub { background: var(--soft); font-size: 11px; color: var(--muted); }
.sheet-table .sh-h { color: var(--muted); }
.sheet-table .sh-total { background: var(--soft); font-weight: 700; }
.sheet-table tfoot th { background: var(--soft); text-align: left; }
.sheet-table tr.weekend td, .sheet-table tr.weekend th.sh-day { background: #bfe9bc; }
.sheet-table tr.today td, .sheet-table tr.today th.sh-day { outline: 2px solid var(--green); outline-offset: -2px; }
.sheet-table td.arena { background: #f1d3c3; }
.sheet-table td.off { color: var(--muted); font-style: italic; }
.sheet-table td.clickable { cursor: pointer; }
.sheet-table td.clickable:hover { filter: brightness(.96); }
.pc0 { background: #efd9a8; } .pc1 { background: #e8a9a9; } .pc2 { background: #f3d2c2; } .pc3 { background: #cfc8e6; } .pc4 { background: #a9c9ee; } .pc5 { background: #b9e0b5; }
@media (prefers-color-scheme: dark) { .sheet-table tr.weekend td, .sheet-table tr.weekend th.sh-day { background: #2e5a31; } .sheet-table td.arena { background: #5a3322; } .sheet-table .sh-name { color: #202f2a; } }

.more-opts summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--green); font-weight: 600; }

/* historia / raporty */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td, .tbl th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos { color: var(--warn); font-weight: 600; } .neg { color: var(--danger); font-weight: 600; } .zero { color: var(--ok); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.summary div { background: var(--soft); border-radius: 14px; padding: 12px; }
.summary b { display: block; font-size: 22px; letter-spacing: -.02em; }
.progress { position: relative; height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; background: var(--green); }

/* arkusz / okno */
dialog { border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 60px #00000040; margin: auto auto 0; }
@media (min-width: 700px) { dialog { border-radius: 20px; margin: auto; } }
dialog::backdrop { background: #0008; }
.sheet { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; overflow: auto; max-height: 92vh; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.seg .times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirm { border: 2px solid var(--green); border-radius: var(--radius); padding: 16px; background: var(--white); display: grid; gap: 12px; }
.confirm .seg-line { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm .seg-line:last-of-type { border-bottom: 0; }
.confirm .total { font-size: 22px; font-weight: 700; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); max-width: min(92vw, 520px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; z-index: 50; box-shadow: var(--shadow); }
.mic { width: var(--tap); padding: 0; font-size: 22px; flex: none; }
.mic.rec { background: var(--danger); color: #fff; border-color: var(--danger); }
.login { max-width: 420px; margin: 0 auto; padding: 14vh 20px 40px; display: grid; gap: 16px; }
.login h1 { font-size: 30px; }

/* druk (karty pracy, raport) */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .topbar, .tabbar, .no-print, .toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-only { display: block; }
  .tbl td, .tbl th { font-size: 12px; }
  dialog { display: none; }
}

/* komputer: arkusz grafiku na całą szerokość, strona przewija się zwykłym kółkiem myszy;
   nagłówek z imionami przykleja się pod górnym paskiem (bez wewnętrznego pola przewijania) */
@media (min-width: 900px) {
  .shell.full { max-width: none; padding-left: 28px; padding-right: 28px; }
  .sheet-wrap { overflow: visible; max-height: none; overscroll-behavior: auto; }
  .sheet-table thead th { top: var(--topbar-h, 66px); }
  .sheet-table thead th.sh-sub { top: calc(var(--topbar-h, 66px) + 31px); }
  .sheet-table tfoot th, .sheet-table tfoot td { position: static; }
  .sheet-table.wide td, .sheet-table.wide th.sh-sub { min-width: 56px; }
  .sheet-table.wide { width: 100%; }
}

/* ===== strona logowania (wizytówka) ===== */
.landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: linear-gradient(135deg, #16231f 0%, #243d33 55%, #2f5a45 100%); color: #fff; }
.land-hero { padding: clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.land-brand { letter-spacing: .28em; font-size: 13px; color: #d4e494; font-weight: 600; }
.land-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 650; color: #fff; }
.land-sub { font-size: clamp(16px, 1.6vw, 19px); color: #c9d8cd; max-width: 520px; }
.land-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; max-width: 540px; }
.land-feats li { display: flex; gap: 14px; align-items: flex-start; }
.land-feats b { display: block; font-size: 16px; } .land-feats span { color: #aebfb3; font-size: 14px; }
.land-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #ffffff14; border: 1px solid #ffffff22; display: grid; place-items: center; color: #d4e494; }
.land-card { display: grid; place-items: center; padding: 28px; }
.land-form { width: min(420px, 100%); background: var(--paper); color: var(--ink); border-radius: 24px; padding: 30px 26px; display: grid; gap: 14px; box-shadow: 0 30px 80px #00000055; }
.land-form h2 { font-size: 26px; } .land-foot { color: #8fa597; font-size: 12px; margin-top: 18px; text-align: center; }
.land-card { grid-template-rows: auto auto; align-content: center; }
@media (max-width: 860px) { .landing { grid-template-columns: 1fr; } .land-hero { padding: 36px 22px 8px; } .land-feats { display: none; } .land-card { padding: 18px 16px 40px; } }

/* ===== ekran Start ===== */
.dash-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d3128 0%, #2f5a45 100%); color: #fff; border-radius: 22px; padding: 26px 24px; margin: 6px 0 16px; display: flex; justify-content: space-between; align-items: center; }
.dash-hello h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin: 4px 0 6px; }
.dash-hello p { color: #c9d8cd; }
.eyebrow.on-dark { color: #d4e494; }
.dash-sun { color: #d4e49455; flex: none; margin-left: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: var(--shadow); }
.kpi-ic { position: absolute; top: 14px; right: 14px; color: var(--green); background: var(--soft); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.kpi-l { font-size: 13px; color: var(--muted); } .kpi-v { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px; }
.kpi-s { font-size: 13px; color: var(--muted); }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn); } .kpi.warn .kpi-v { color: var(--warn); }
.dash-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.who-list { display: grid; gap: 4px; margin-top: 8px; }
.who-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .who-row:last-child { border-bottom: 0; }
.who-row > div { flex: 1; min-width: 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #202f2a; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.ws-day { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; background: var(--soft); text-decoration: none; color: inherit; }
.ws-day.today { outline: 2px solid var(--green); background: var(--white); }
.ws-wd { font-size: 12px; color: var(--muted); text-transform: uppercase; } .ws-n { font-size: 12px; color: var(--muted); }
.ws-bar { width: 22px; height: 54px; background: var(--white); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.ws-bar span { display: block; width: 100%; background: var(--green); border-radius: 8px 8px 0 0; min-height: 2px; }
.attention { border-color: var(--warn); background: var(--warn-bg); }
.section-title { margin: 8px 0 -2px; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--green); }
.tile > div { flex: 1; min-width: 0; } .tile b { display: block; } .tile span:not(.tile-ic):not(.tile-go) { font-size: 13px; color: var(--muted); }
.tile-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--green); display: grid; place-items: center; } .tile-go { color: var(--muted); }
.hero-card { background: linear-gradient(135deg, var(--white), var(--soft)); }

/* --- poprawki po audycie --- */
.period-label { display: inline-block; min-width: 150px; text-align: center; white-space: nowrap; }
input[type=checkbox], input[type=radio] { accent-color: var(--green, #2f6f4f); width: 18px; height: 18px; }
input[type=file] { font: inherit; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--white); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--green); color: var(--green-ink); cursor: pointer; }
.bell { display: grid; place-items: center; color: var(--ink, #1d2b24); }
.zero { color: var(--muted, #6b7a72); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .period-label { min-width: 0; flex: 1; }
}

.shift.arena { background: #f1d3c3; border-color: #e3b9a2; }
@media (prefers-color-scheme: dark) { .shift.arena { background: #5a3322; border-color: #7a4730; } }

a.brand { color: inherit; text-decoration: none; cursor: pointer; }

.top-right { display: flex; align-items: center; gap: 10px; }

.topbar .back-kitchen { margin-right: 10px; white-space: nowrap; }
.topbar .brand { flex: 1; }

a.kpi { display: block; }
a.kpi:hover { border-color: #9fb89f; box-shadow: 0 6px 18px #20372d14; }

/* edycja w komórce jak w Excelu */
.sheet-table.editable { outline: none; }
.sheet-table td[data-emp] { cursor: cell; user-select: none; }
.sheet-table td.sel { outline: 2px solid #1f6f4a; outline-offset: -2px; background-clip: padding-box; }
.sheet-table td.pending { background: #fff3c4; }
.sheet-table td.saving { opacity: .6; }
.sheet-table td .cell-input { width: 100%; min-width: 64px; height: 100%; min-height: 34px; box-sizing: border-box; border: 0; padding: 0 6px; font: inherit; text-align: center; background: #fff; color: var(--ink); outline: 2px solid #1f6f4a; outline-offset: -2px; border-radius: 0; }
.sheet-help summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.sheet-help p { margin: 4px 0 8px; line-height: 1.5; }

/* Odprawa: lista zamówień i lista na dziś (proste, duże pola do dotknięcia) */
.ord-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ord-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); }
.ord-list > .ord-row:first-child { border-top: 0; }
.ord-check { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #9fb89f; background: var(--white); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ord-check.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.ord-main { flex: 1; min-width: 0; }
.ord-text { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ord-row.closed .ord-text { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.ord-last { margin-top: 4px; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 6px 10px; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.ord-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ord-comments { margin-top: 8px; display: grid; gap: 8px; }
.ord-comment { background: var(--soft); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }
.ord-add { position: sticky; top: 56px; z-index: 4; }
.ord-closed > summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; color: var(--muted); }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.ord-day { font-size: 13px; text-transform: capitalize; color: var(--muted); margin: 12px 0 2px; letter-spacing: .03em; }

/* Wojsko */
.army-nums { display: flex; gap: 24px; }
.army-nums > div { display: flex; flex-direction: column; }
.army-nums b { font-size: 30px; line-height: 1.1; }
.army-menu { white-space: pre-line; margin-top: 6px; }
.army-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.army-thumb { position: relative; display: inline-block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--line); }
.army-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.army-x { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; }
.army-table { width: 100%; border-collapse: collapse; }
.army-table th, .army-table td { text-align: left; padding: 8px 4px; border-top: 1px solid var(--line); }
.army-table th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Prośby o wolne: fioletowe podkreślenie w arkuszu, nie zmienia kolorów weekendu ani Areny */
.sheet-table td.req { box-shadow: inset 0 0 0 2px #8b5cf6; background-image: repeating-linear-gradient(135deg, rgba(139,92,246,.22) 0 6px, transparent 6px 12px); }
.sheet-table td.req:empty::after { content: 'prosi o wolne'; font-size: 11px; color: #6d28d9; }
@media (prefers-color-scheme: dark) { .sheet-table td.req:empty::after { color: #c4b5fd; } }
.ord-closed { margin-top: 18px; }
.ord-closed-title { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.army-box { margin: 4px 0 10px; display: grid; gap: 8px; }
.army-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.army-row > b { flex: 1 1 100%; font-weight: 600; }
.army-mini { width: 96px; min-height: 44px; }
.army-pdf { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; color: var(--muted); }
.army-file { display: none; }
.army-dish { flex: 1 1 100%; min-height: 44px; }
.army-dish-line { font-weight: 600; }
textarea.army-dish { min-height: 88px; line-height: 1.4; resize: vertical; }
.army-dish-line { white-space: pre-line; }
.rep-person { border-top: 1px solid var(--line); padding: 8px 0; }
.rep-person > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rep-person .tbl { margin: 6px 0 4px; }

/* Tablet i szerokie ekrany: więcej miejsca na treść, cienki dolny pasek (ikona obok podpisu) */
@media (min-width: 700px) {
  .shell { max-width: 1280px; padding-left: 22px; padding-right: 22px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { padding: 3px 8px calc(3px + env(safe-area-inset-bottom)); }
  .tabbar a { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; font-size: 14px; }
  .tabbar a span { font-size: 18px; }
  .toast { bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Planer lunchy */
.lunch-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.lunch-list > .lunch-row:first-child { border-top: 0; }
.lunch-kind { flex: none; width: 58px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 14px; text-transform: uppercase; }
.lunch-kind.k-soup { color: #8a5a00; } .lunch-kind.k-vege { color: #2f6b3a; }
.lunch-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lunch-fields input { width: 100%; }
.lunch-en { font-size: 14px; color: var(--muted); font-style: italic; }
.lunch-today { outline: 2px solid var(--green); }
.lunch-print-page h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: 2px; }
.lunch-print-day { margin: 14px 0; break-inside: avoid; }
.lunch-print-day h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: 1.5px; border-bottom: 1px solid #999; padding-bottom: 3px; }
.lunch-print-item { margin: 3px 0; font-size: 14px; }
.lunch-item { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.lunch-today-list > .lunch-item:first-child { border-top: 0; }
.lunch-tag { flex: none; width: 62px; font-size: 11px; letter-spacing: .09em; font-weight: 700; color: var(--muted); }
.lunch-tag.t-soup { color: #8a5a00; } .lunch-tag.t-vege { color: #2f6b3a; }
.lunch-name { font-size: 17px; line-height: 1.35; font-weight: 500; }
.lunch-tomorrow { margin: 10px 0 0; padding: 9px 12px; background: var(--soft); border-radius: 10px; font-size: 14px; color: var(--muted); }

/* Wąski telefon (390 px): górny pasek mieści się w ekranie, bez ucinania przycisku Wyloguj */
@media (max-width: 460px) {
  .topbar { gap: 8px; }
  .topbar .brand { display: none; }
  .topbar .back-kitchen { margin-right: 0; font-size: 14px; padding: 0 12px; }
  .top-right { gap: 8px; margin-left: auto; }
}

/* Dziennik temperatur */
.temp-input { width: 100%; min-height: 48px; font-size: 20px; text-align: center; }
.temp-card.miss { box-shadow: inset 4px 0 0 #c9a24a; }
.temp-card .badge.warn, .temp-list li.bad b { color: #a3341d; }
.temp-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.temp-list li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.temp-alert { box-shadow: inset 4px 0 0 #a3341d; }
.temp-sheet h1 { font-size: 22px; margin: 0 0 4px; }
.temp-sheet .tbl tr.bad td { color: #a3341d; font-weight: 600; }
.temp-group { margin: 14px 0 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.tbl-wrap { overflow-x: auto; }

/* ---- Imprezy: obłożenie, lista, produkcja dnia, etykiety GN ---- */
.ev-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.ev-cell { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 5px; display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: inherit; background: var(--white); }
.ev-cell.empty { border: 0; background: none; }
.ev-cell.has { background: var(--soft); }
.ev-cell.over { background: var(--danger-bg); border-color: var(--danger); }
.ev-cell.short .ev-s { color: var(--warn); font-weight: 700; }
.ev-cell.today { outline: 2px solid var(--green); }
.ev-d { font-size: 12px; color: var(--muted); }
.ev-n { font-size: 18px; line-height: 1; }
.ev-g, .ev-s { font-size: 11px; }
.ev-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ev-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ev-nums { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ev-nums .no, .prod-ev .no { display: inline-block; min-width: 1.8em; text-align: center; background: var(--green); color: var(--green-ink); border-radius: 8px; padding: 0 6px; font-weight: 700; }
.prod-row { border-top: 1px solid var(--line); padding: 10px 0; }
.prod-total { font-weight: 700; }
.prod-ev { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.prod-ev .gn { color: var(--green); font-weight: 600; }
#labels-print { display: none; }
@media print {
  body.printing > *:not(#labels-print) { display: none !important; }
  body.printing #labels-print { display: block; }
  .lab-sheet { page-break-after: always; }
  .lab-sheet h2 { font-size: 20px; margin: 0 0 4px; }
  .lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .lab { border: 2px solid #000; border-radius: 6px; padding: 8px 10px; break-inside: avoid; }
  .lab-top { display: flex; justify-content: space-between; align-items: center; }
  .lab-no { display: inline-block; background: #000; color: #fff; border-radius: 6px; padding: 0 8px; font-size: 22px; font-weight: 800; }
  .lab-dish { font-size: 20px; font-weight: 800; margin: 4px 0; }
  .lab-gn { font-size: 16px; font-weight: 700; }
  .lab-ev { font-size: 12px; margin-top: 2px; }
}

.prod-ev .pot { display: inline-block; background: #2b5f8a; color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 700; }
.range-table { width: 100%; border-collapse: collapse; }
.range-table td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.range-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.range-table .amt { color: var(--green); }
@media print { .lab-hall { font-size: 20px; font-weight: 800; } .page-head, .range-table { color: #000; } .tabbar, .topbar, .no-print { display: none !important; } }

/* ===== System restauracji: menu boczne, Start właściciela, wesela, sale, panel klienta ===== */
:root { --accent: #c9a35a; --side: #15321f; --side-ink: #e9e3d3; --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1.display { font-size: 32px; }
.side { display: none; }
@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; gap: 16px; position: fixed; inset: 0 auto 0 0; width: 252px; overflow-y: auto; background: var(--side); color: var(--side-ink); padding: 20px 12px; z-index: 20; }
  .side + .shell { margin-left: 252px; max-width: 1240px; padding: 0 32px 48px; }
  .side ~ .tabbar { display: none; }
  .side + .shell .topbar .brand { visibility: hidden; }
}
.side-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; text-decoration: none; color: inherit; }
.side-brand b { display: block; font-family: var(--display); font-size: 17px; color: #fff; }
.side-brand small { color: #a9b8a8; font-size: 12px; }
.side-logo { width: 36px; height: 36px; border-radius: 9px; background: #f6f1e5; color: var(--side); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 21px; flex: none; }
.side-grp { display: grid; gap: 2px; }
.side-gl { font-size: 11px; letter-spacing: .08em; color: #a9b8a8; padding: 0 10px 4px; font-weight: 600; }
.side-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: 14px; min-height: 22px; }
.side-i:hover { background: #ffffff14; color: #fff; }
.side-i.on { background: #f6f1e5; color: var(--side); font-weight: 600; }
.side-demo { margin-top: auto; font-size: 12px; color: #a9b8a8; padding: 0 10px; }
.crumb { font-size: 14px; color: var(--muted); padding-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { margin: 0; gap: 6px; }
.kpi-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi-v { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.src { font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.src.sp { background: #dde8da; color: #15321f; }
.src.sd { background: #f1e2bf; color: #6e4a0e; }
.cols { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cols > .card { margin: 0; min-width: 0; }
.grow1 { flex: 1 1 340px; }
.grow2 { flex: 2 1 520px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.drow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-head + .drow, h2 + .drow { border-top: 0; }
.dic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dic.green { background: #dde8da; color: #15321f; } .dic.red { background: #fbe3d6; color: #8a3410; } .dic.gold { background: #f1e2bf; color: #6e4a0e; }
.dtx { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pipe.big { grid-auto-columns: minmax(220px, 1fr); }
.pipe-col { background: var(--soft); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pipe-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 0 4px; }
.pipe-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-size: 13px; }
.pipe-card span { color: var(--muted); font-size: 12px; }
.pipe-card.flag { border: 2px solid var(--accent); }
.pipe-card .flag-t { color: #8a5a00; font-weight: 600; }
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 8px; overflow-x: auto; }
.wday { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 120px; background: var(--white); }
.wday.today { border: 2px solid var(--green); }
.wd-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.pill { font-size: 12px; border-radius: 7px; padding: 5px 7px; line-height: 1.3; text-decoration: none; display: block; }
.pill.ev { background: var(--green); color: var(--green-ink); }
.pill.short { background: #fbe3d6; color: #8a3410; }
.wed-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
label.f.compact { min-width: 180px; }
label.f.compact select { min-height: 44px; font-size: 15px; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 6px; overflow-x: auto; }
.step { display: grid; gap: 4px; font-size: 12px; }
.step i { height: 6px; border-radius: 3px; background: var(--line); }
.step.ok i { background: var(--green); } .step.now i { background: var(--accent); }
.step span { color: var(--muted); }
.chat { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.msg { border-radius: 12px; padding: 10px 12px; max-width: 88%; display: grid; gap: 4px; font-size: 15px; }
.msg .who { font-size: 11px; color: var(--muted); }
.msg.them { background: var(--soft); justify-self: start; }
.msg.me { background: var(--green); color: var(--green-ink); justify-self: end; }
.msg.me .who { color: #c9d6cb; }
.msg.change { border: 2px solid var(--accent); background: var(--white); justify-self: stretch; max-width: none; }
.msg.sys { background: #fbf1dc; justify-self: stretch; max-width: none; font-size: 14px; }
.chat-send { display: flex; gap: 8px; align-items: flex-end; }
.chat-send textarea { min-height: 52px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 12px; justify-self: start; min-height: 24px; }
.menu-sec { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.menu-sec-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 8px 12px; font-size: 14px; min-height: 40px; }
.chip.on { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 600; }
.chip:disabled { opacity: 1; cursor: default; }
.money-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.money-row b { color: var(--ink); }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.progress { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 8px; background: var(--green); }
.tl-row { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; }
.tl-row b { width: 52px; flex: none; }
.tl-row .pin { color: #8a5a00; font-weight: 600; }
.tl-add { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; }
.grid3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.warn-t { color: #a4441a; }
.cred { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--soft); font-size: 17px; }
.inbox-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inbox-row.unread b { color: var(--green); }
.dot-badge { background: #c4522a; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
/* plan sali */
.plan-box { width: 100%; background: #f6f1e5; border: 1px dashed #bfb399; border-radius: 10px; overflow: hidden; touch-action: manipulation; }
.plan-box.edit { touch-action: none; }
.plan-box.mini { pointer-events: none; }
.plan-svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.plan-floor { fill: #f6f1e5; }
.plan-grid { stroke: #e3dac6; stroke-width: .03; }
.plan-fix rect { fill: #dde8da; stroke: #9fb59c; stroke-width: .06; }
.plan-fix.fix-dance rect { fill: none; stroke-dasharray: .3 .2; }
.plan-fix.fix-couple rect, .plan-fix.fix-cake rect { fill: #e8d3a4; stroke: #c9a35a; }
.plan-fix text { fill: #3b4a3f; }
.plan-table circle, .plan-table rect { fill: #fffdf8; stroke: #15321f; stroke-width: .08; }
.plan-table.part circle, .plan-table.part rect { fill: #fbf1dc; stroke: #c9a35a; }
.plan-table.full circle, .plan-table.full rect { fill: #dde8da; }
.plan-table.hl circle, .plan-table.hl rect, .plan-table.sel circle, .plan-table.sel rect, .plan-fix.sel rect { stroke: #c4522a; stroke-width: .14; }
.plan-table { cursor: pointer; }
.plan-label { font-weight: 700; fill: #15321f; }
.plan-count { fill: #4e5e52; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #15321f; background: #fffdf8; }
.lg.part::before { background: #fbf1dc; border-color: #c9a35a; } .lg.full::before { background: #dde8da; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.layout-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--white); }
/* panel klienta */
.client { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.client-head { background: var(--side); color: #f6f1e5; padding: 18px 18px 22px; display: grid; gap: 12px; border-radius: 0 0 20px 20px; }
.client-head h1 { font-family: var(--display); font-size: 30px; color: #fff; }
.client-sub { color: #d8d1be; font-size: 15px; }
.client-logo { width: 32px; height: 32px; border-radius: 8px; background: #f6f1e5; color: var(--side); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.client-brand { font-family: var(--display); font-size: 16px; }
.client-head .btn { background: transparent; color: #f6f1e5; border-color: #ffffff55; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.client-stat { background: #ffffff14; border-radius: 12px; padding: 10px 12px; display: grid; }
.client-stat b { font-family: var(--display); font-size: 24px; }
.client-stat span { font-size: 12px; color: #d8d1be; }
.client-main { padding: 16px; display: grid; gap: 0; }
.client-tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.client-tabs a { flex: 1; max-width: 112px; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; min-height: 52px; align-content: center; position: relative; }
.client-tabs a.on { color: var(--green); font-weight: 700; }
.client-tabs .dot-badge { position: absolute; top: 2px; right: 22%; }
.todo-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 0; min-height: 52px; }
.todo-row:first-of-type { border-top: 0; }
.todo-dot { width: 10px; height: 10px; border-radius: 50%; background: #2f5d8a; flex: none; }
.todo-dot.gold { background: var(--accent); } .todo-dot.late { background: #c4522a; }
.todo-txt { display: grid; } .todo-txt small { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px; min-height: 56px; }
.opt.on { border: 2px solid var(--green); background: #f3f7f1; }
.opt:disabled { cursor: default; }
.opt-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.opt.on .opt-mark { border: 6px solid var(--green); }
.opt-txt { display: grid; flex: 1; } .opt-txt small { color: var(--muted); }
.opt-extra { font-size: 13px; color: #8a5a00; font-weight: 600; }
.guest-add { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .guest-add { grid-template-columns: 2fr 1fr 1fr auto; } }
.guest-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.btn.ghost { background: transparent; }
.side-badge { margin-left: auto; background: var(--accent); color: #15321f; border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.chips .chip { width: auto; }
.msg.me .linkish { color: #c9d6cb; }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.plan-box.wide { min-width: 640px; }
@media (min-width: 900px) { .plan-box.wide { min-width: 0; } }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tbl-btn { display: grid; gap: 2px; justify-items: center; border: 2px solid #15321f; background: var(--white); border-radius: 12px; padding: 8px 4px; min-height: 52px; font-size: 13px; }
.tbl-btn.part { background: #fbf1dc; border-color: #c9a35a; } .tbl-btn.full { background: #dde8da; }
.tbl-btn span { color: var(--muted); font-size: 12px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 12px; max-width: 820px; }
.offer-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.offer-brand { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--green); }
.offer-sec ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.offer-sec li.chosen { color: var(--green); }
.offer-sum { border-top: 2px solid var(--green); padding-top: 8px; display: grid; gap: 6px; }
@media print {
  .side, .tabbar, .topbar, .no-print, #toast, #kbotHost { display: none !important; }
  .side + .shell { margin: 0 !important; padding: 0 !important; }
  body, html { background: #fff; }
  .offer { border: 0; padding: 0; max-width: none; }
}
.ev-line { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pipe, .week { align-items: start; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 24px; }
  .kpi-l .src { display: none; }
  h1.display { font-size: 26px; }
}
.menu-sec.skipped b { color: var(--muted); text-decoration: line-through; }
.chip-wrap { display: inline-flex; align-items: center; gap: 4px; }
.diet-box { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.ksheet { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; max-width: 900px; }
.ksheet-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.ksheet-tot { display: grid; gap: 2px; font-size: 15px; text-align: right; }
.ksheet-sec h2 { font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.ksheet-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(120px, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.ksheet-parts { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ksheet-sum { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ksheet-sum .hl { background: #eef59a; border-radius: 4px; padding: 0 6px; font-weight: 600; }
@media (max-width: 600px) { .ksheet { padding: 14px; } .ksheet-row { grid-template-columns: 1fr auto; } .ksheet-parts { grid-column: 1 / -1; order: 3; } }
@media print { .ksheet { border: 0; padding: 0; max-width: none; } .ksheet-row { break-inside: avoid; } }
.page-title { display: flex; flex-direction: column; min-width: 0; }
.page-title b { font-family: var(--display); font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title .pt-brand { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.page-title .pt-back { font-size: 14px; text-decoration: none; color: var(--muted); }
.page-title .pt-back:hover { color: var(--ink); }
.seg { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; margin: 0 0 14px; overflow-x: auto; }
.seg a { flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; display: flex; gap: 8px; justify-content: center; align-items: center; min-height: 24px; }
.seg a b { background: var(--white); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.seg a.on { background: var(--green); color: var(--green-ink); }
.seg a.on b { color: var(--ink); }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ev-date { width: 44px; flex: none; display: grid; justify-items: center; background: var(--soft); border-radius: 10px; padding: 4px 0; }
.ev-date b { font-size: 18px; line-height: 1.1; } .ev-date span { font-size: 11px; color: var(--muted); }
a.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.cal-nav { margin: 0 0 12px; align-items: center; }
.cal-month { min-width: 10em; text-align: center; font-size: 18px; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 6px; min-width: 770px; }
.cal-wd { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.cal-cell { min-height: 104px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 3px; align-content: start; background: var(--white); cursor: pointer; }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border: 2px solid var(--green); }
.cal-cell.sel { background: #fbf1dc; border-color: var(--accent); }
.cal-d { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-ev { display: block; font-size: 12px; line-height: 1.25; padding: 3px 5px; border-radius: 5px; background: var(--soft); border-left: 4px solid #999; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.st-inquiry, .cal-ev.st-offer { background: transparent; border: 1px dashed var(--line); border-left-width: 4px; color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-short { font-size: 11px; color: #a4441a; font-weight: 600; }
.day-ev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--white); }
.day-ev i { width: 10px; height: 36px; border-radius: 4px; flex: none; }
.notes-card { background: #fbf1dc; border-color: #e7cf97; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.quick-a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 52px; cursor: pointer; font-family: inherit; }
.quick-a.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.page-title .pt-name { font-size: 15px; letter-spacing: .02em; color: var(--muted); font-family: var(--display); }
@media (min-width: 1000px) { .page-title .pt-name { visibility: hidden; } }
.agenda-day { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; }
.agenda-h { font-weight: 700; text-decoration: none; color: var(--ink); }
.agenda-h.today { color: var(--green); }
.card > .ev-row:first-child, .card > .side-gl + .ev-row { border-top: 0; }

/* finanse: koszty kuchni, sali, wspólne i całość */
.pos, .pos b { color: var(--ok); }
.neg, .neg b { color: var(--danger); }
.fin-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fin-top > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--soft); }
.fin-top b { font-size: 24px; }
.fin3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fin-col { display: grid; align-content: start; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fin-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; }
.fin-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.fin-row > span:first-child { display: grid; gap: 1px; min-width: 0; }
.fin-row small { font-size: 12px; }
.fin-row small.est { font-style: italic; }
.fin-row b { white-space: nowrap; }
.fin-sum { font-weight: 700; }
.fin-lines summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.fin-table { display: grid; }
.ft-h, .ft-r { display: grid; grid-template-columns: minmax(180px, 2.2fr) repeat(6, minmax(70px, 1fr)); gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ft-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.ft-h span:not(:first-child), .ft-c { text-align: right; }
.ft-r { text-decoration: none; color: var(--ink); }
.ft-r:hover { background: var(--soft); }
.ft-name { display: grid; gap: 1px; min-width: 0; }
.ft-c { display: grid; font-variant-numeric: tabular-nums; }
.ft-tot { font-weight: 700; border-top: 2px solid var(--ink); }
.kpi.pos .kpi-v { color: var(--ok); } .kpi.neg .kpi-v { color: var(--danger); }
@media (max-width: 900px) {
  .fin3 { grid-template-columns: 1fr; }
  .ft-h { display: none; }
  .ft-r { grid-template-columns: 1fr 1fr 1fr; }
  .ft-name { grid-column: 1 / -1; }
  .ft-c { text-align: left; }
  .ft-c::before { content: attr(data-l); font-size: 11px; color: var(--muted); text-transform: uppercase; }
}
@media (max-width: 520px) { .fin-top { grid-template-columns: 1fr; } .fin-top b { font-size: 20px; } }
.ft-r.fc { opacity: .85; }
.fin-row > b { margin-left: auto; }

/* posty: podgląd jak na Facebooku */
.posts { display: grid; gap: 0; }
.post-card { grid-template-columns: minmax(0, 520px) minmax(200px, 1fr); align-items: start; gap: 18px; }
.post-side { display: grid; gap: 6px; align-content: start; }
.post-side .stack { margin-top: 8px; }
.fbpost { border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px 4px; }
.fb-head div { display: grid; }
.fb-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--side, var(--green)); color: var(--side-ink, #fff); font-weight: 700; }
.fb-body { padding: 6px 14px 12px; white-space: pre-line; font-size: 15px; margin: 0; }
.fb-img { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 4px; color: #fff; text-shadow: 0 1px 6px #0006; }
.fb-img span { font-size: 64px; } .fb-img small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.m-lunch { background: linear-gradient(135deg, #c98a3a, #7a4a1e); } .m-wedding { background: linear-gradient(135deg, #d9b8a0, #8c5a5a); }
.m-party { background: linear-gradient(135deg, #7a4e9c, #2b5f8a); } .m-hall { background: linear-gradient(135deg, #4f7a5a, #15321f); }
.m-communion { background: linear-gradient(135deg, #8fb3d9, #2b5f8a); } .m-xmas { background: linear-gradient(135deg, #2f6f4f, #8b2f2f); }
.m-photo { background: linear-gradient(135deg, #8a8a7a, #3d3d33); }
@media (max-width: 800px) { .post-card { grid-template-columns: 1fr; } }

/* poczta */
.mail-list { gap: 0; padding: 4px 0; }
.mail-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mail-row:first-child { border-top: 0; }
.mail-row:hover { background: var(--soft); }
.mail-row .mail-from, .mail-row .mail-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .mail-sub b { font-weight: 500; }
.mail-row.unread .mail-from, .mail-row.unread .mail-sub b { font-weight: 800; }
.mail-tags { display: flex; gap: 4px; }
.badge.k-inquiry { background: var(--warn-bg); color: var(--warn); }
.badge.k-supplier { background: var(--soft); color: var(--muted); }
.mail-tools { flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.suggest { border: 2px solid var(--warn); background: var(--warn-bg); }
.mail-thread { gap: 12px; }
.mail-msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.mail-msg.out { background: var(--soft); margin-left: 8%; }
.mail-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail-body { white-space: pre-line; }
@media (max-width: 700px) {
  .mail-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .mail-row .mail-sub { grid-column: 1 / -1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mail-tags { grid-column: 1 / -1; }
  .mail-when { grid-row: 1; grid-column: 2; }
}

/* strona WWW */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 170px; align-items: end; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; text-align: center; }
.bar > i.v { display: flex; align-items: flex-end; background: var(--soft); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar i.w { display: block; width: 100%; background: var(--green, var(--ok)); border-radius: 4px 4px 0 0; }
.bar small { font-size: 10px; color: var(--muted); height: 14px; }
.hours-row { display: grid; grid-template-columns: 130px 130px 16px 130px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.notice-prev { background: #15321F; color: #F6F1E5; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; }
.pz-row { display: grid; grid-template-columns: 1.1fr 2fr 90px auto auto; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .hours-row { grid-template-columns: 1fr 1fr auto 1fr; } .hours-row b { grid-column: 1 / -1; } .hours-row .check { grid-column: 1 / -1; }
  .pz-row { grid-template-columns: 1fr 80px; border-top: 1px solid var(--line); padding-top: 8px; } .pz-row input:nth-child(2) { grid-column: 1 / -1; }
}

/* rezerwacje */
.res-week .chip { display: inline-flex; gap: 2px; align-items: baseline; position: relative; }
.dot-warn { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; margin-left: 4px; }
.res-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.res-row .dtx { cursor: pointer; display: grid; }
.res-time { font-size: 18px; font-variant-numeric: tabular-nums; }
.res-acts { grid-column: 2 / -1; flex-wrap: wrap; gap: 6px; }
.res-row.st-cancelled, .res-row.st-no_show, .res-row.st-done { opacity: .55; }
.res-plan .plan-wrap { border-radius: 12px; overflow: hidden; }
.chip.busy { opacity: .45; text-decoration: line-through; }
.kpi.warn .kpi-v { color: var(--warn); }
.res-week { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.res-week .chip { flex: none; }
@media (max-width: 700px) { .kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } .kpis:has(> :nth-child(3):last-child) .kpi-v { font-size: 26px; } .kpi.oven { grid-column: 1 / -1; } }

/* zamówienia online: tablica pizzerii */
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; margin-bottom: 14px; }
.tk-col { background: var(--soft); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; min-height: 120px; }
.tk-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.tk-card.fresh { animation: tkpulse 1.2s ease-in-out 3; border-color: var(--warn); }
.tk-card.late { border-left: 5px solid var(--danger); }
@keyframes tkpulse { 50% { box-shadow: 0 0 0 6px var(--warn-bg); } }
.tk-top { display: flex; gap: 8px; align-items: center; }
.tk-no { font-size: 20px; } .tk-time { font-size: 20px; margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-items { margin: 0; padding-left: 0; list-style: none; font-size: 17px; display: grid; gap: 2px; }
.tk-items em { color: var(--danger); font-style: normal; font-weight: 600; }
.tk-note { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 6px 8px; margin: 0; font-weight: 600; }
.tk-foot { display: flex; gap: 8px; align-items: baseline; }
.kpi.oven { gap: 2px; } .oven-row { font-size: 15px; } .oven-row b { display: inline-block; min-width: 30px; }
.qty-row { display: grid; grid-template-columns: 1fr auto 28px auto; gap: 8px; align-items: center; } .qty-row b { text-align: center; }
@media (max-width: 1000px) { .tk-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tk-board { grid-template-columns: 1fr; } }
.tk-start { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); } .tk-start.warn { border: 2px solid var(--warn); background: var(--warn-bg); }
.tk-start > div { display: grid; gap: 2px; }

/* utarg */
.row.wrap { flex-wrap: wrap; }
.grid4 { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.banner.ok-b { background: var(--soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.hbar > i { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; display: block; }
.hbar > i b { display: block; height: 100%; background: var(--green, var(--ok)); border-radius: 6px; }
.hbar-v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rv-table { display: grid; }
.rv-h, .rv-r { display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(calc(var(--cols) - 1), minmax(80px, 1fr)); gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rv-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.rv-h span:not(:first-child), .rv-r .ft-c { text-align: right; }
.rv-r:hover { background: var(--soft); }
.rv-r.miss { background: var(--warn-bg); }
.rv-r.today { font-weight: 600; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
pre.code { background: var(--soft); border-radius: 10px; padding: 10px; font-size: 12px; overflow-x: auto; white-space: pre; }
.rv-photo img { max-width: 100%; max-height: 240px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 800px) {
  .rv-h { display: none; } .rv-r { grid-template-columns: 1fr 1fr 1fr; } .rv-r > span:first-child { grid-column: 1 / -1; font-weight: 700; }
  .rv-r .ft-c { text-align: left; display: grid; } .rv-r .ft-c::before { content: attr(data-l); font-size: 11px; color: var(--muted); }
  .hbar { grid-template-columns: 1fr auto; } .hbar > i { grid-column: 1 / -1; grid-row: 2; }
}

/* lista do zamówienia: dostawcy */
.ord-tools { flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sup-grp { margin-bottom: 14px; }
.sup-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 2px; border-bottom: 2px solid var(--line); }
.sup-head > div:first-child { display: grid; }
select.sup-sel { min-height: 34px; padding: 4px 8px; font-size: 13px; width: auto; max-width: 140px; border-radius: 10px; }
@media (max-width: 700px) { .ord-row { flex-wrap: wrap; } .ord-main { flex-basis: calc(100% - 60px); } .ord-actions { flex-basis: 100%; justify-content: flex-start; padding-left: 50px; } }

/* zakupy */
.fc-trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 170px; align-items: end; }
.fc-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; align-items: end; gap: 2px; }
.fc-bar > i { display: block; background: var(--green, var(--ok)); border-radius: 6px 6px 0 0; min-height: 2px; align-self: end; }
.fc-bar > i.hi { background: var(--warn); }
.pi-row { display: grid; grid-template-columns: 52px 1fr auto auto auto 100px; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line); }
.pi-row.unc { background: var(--warn-bg); }
.pi-row .dtx { display: grid; min-width: 0; } .pi-row .dtx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-net { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pi-row { grid-template-columns: 46px 1fr auto; } .pi-row select { grid-column: 2 / -1; max-width: none; } .pi-row .badge { grid-row: 1; grid-column: 3; } .pi-net { grid-column: 3; grid-row: 2; } }

/* strony zbiorcze (Kuchnia, Ustawienia) */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hub-tile { text-decoration: none; color: var(--ink); gap: 6px; align-content: start; transition: transform .12s; }
.hub-tile:hover { transform: translateY(-2px); }
.hub-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--green, var(--ok)); }
.msg-tabs { margin-bottom: 12px; }

.step b { white-space: normal; line-height: 1.2; }
