: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%;
}
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */:root.mode-dark:not(.in-pracownia) { --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: var(--kbot-h, 0px); 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); }
a.seg-btn { display: inline-flex; align-items: center; justify-content: center; }   /* zakładki-linki (Odprawa) wyrównane jak przyciski */
@media (max-width: 600px) { .segmented { max-width: 100%; flex-wrap: wrap; } .seg-btn { padding: 0 12px; } }   /* zakładki nie wychodzą poza ekran telefonu */
.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; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e5a31; } html.mode-dark:not(.in-pracownia) .sheet-table td.arena { background: #5a3322; } html.mode-dark:not(.in-pracownia) .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%; }
  /* za szeroki arkusz (wiele osób): przewijanie w bok we własnym polu, nagłówek przyklejony w polu */
  .sheet-wrap.scrollx { overflow: auto; max-height: calc(100dvh - var(--topbar-h, 66px) - 24px); overscroll-behavior-x: contain; }
  .sheet-wrap.scrollx .sheet-table thead th { top: 0; }
  .sheet-wrap.scrollx .sheet-table thead th.sh-sub { top: 31px; }
  .sheet-wrap.scrollx .sheet-table tfoot th, .sheet-wrap.scrollx .sheet-table tfoot td { position: sticky; }
}

/* ===== 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; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .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; }
.va-pill { display: inline-flex; align-items: center; border-radius: 99px; background: #ffe7c2; border: 1px solid #e9a94b; overflow: hidden; max-width: 46vw; }
.va-pill button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: #6b3d00; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.va-who { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.va-back { border-left: 1px solid #e9a94b !important; background: #6b3d00 !important; color: #fff !important; }
.fb-fab { position: fixed; left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9; height: 44px; padding: 0 14px; border-radius: 22px; background: #fff4d6; color: #6b4a00; border: 1px solid #e9c46a; box-shadow: 0 6px 20px #00000026; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (min-width: 900px) { .fb-fab { bottom: 24px; left: auto; right: 84px; } }
.fb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-thumb { position: relative; display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-bar { position: fixed; left: max(16px, calc(50% - 220px)); right: max(16px, calc(50% - 220px)); bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 99px; background: #7a1f1f; color: #fff; box-shadow: 0 6px 20px #00000040; font-size: 14px; }
.live-bar.off { background: #555; }
.live-bar button { border: 0; border-radius: 99px; background: #fff; color: #7a1f1f; font: inherit; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.live-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.live-bar > b { flex: 1 1 auto; }
.live-bar button { flex: 0 0 auto; }
.live-txt small { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px #ff4d4d55; flex: 0 0 auto; }
.va-row.live { border-color: #c0392b; }
@media (min-width: 900px) { .live-bar { bottom: 24px; } }
.va-open { white-space: nowrap; }
.va-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.va-row { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.va-row small { color: var(--muted); }
.va-row.on { border-color: var(--green); }
.readonly-pill { font-size: 12px; font-weight: 700; background: #fff4d6; color: #7a5600; border: 1px solid #f0d58a; border-radius: 99px; padding: 5px 10px; white-space: nowrap; }

.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; }
.ord-row.army-line { flex-direction: row; flex-wrap: nowrap; align-items: center; }
.army-line .ord-main { flex: 1 1 auto; min-width: 0; }
.army-was-box { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
.army-was { width: 76px; font-size: 1.2rem; font-weight: 700; text-align: center; padding: 8px 4px; }
.army-was-st { min-height: 1em; font-size: .75rem; }
.up-day { display: block; text-decoration: none; color: inherit; padding: 12px 0; border-top: 1px solid var(--line); }
.up-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.up-head b { font-size: 1.1rem; }
.up-all { color: var(--muted); font-size: .9rem; }
.up-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 10px; border-radius: 8px; }
.up-row.lunch { background: var(--soft); }
.up-what { display: flex; flex-direction: column; min-width: 0; }
.up-what small { color: var(--muted); }
.up-n { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.up-lunch { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--green); color: var(--green-ink); font-weight: 600; }
.up-lunch b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.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; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .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-meta { flex: 1 1 100%; margin-top: -6px; font-size: 14px; color: var(--muted); }
.army-day { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.army-day:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.army-sum { font-weight: 700; color: var(--green); }
.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: var(--kbot-h, 0px) 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; }

/* Grafik w ramce Pracowni: jedna nawigacja (menu Pracowni), bez powtórzonego powitania i nagłówka */
html.in-pracownia .dash-hero { display: none; }
html.in-pracownia .topbar .brand { display: none; }
html.in-pracownia .topbar { justify-content: flex-end; padding: 6px 0 0; }
/* w Pracowni zawsze jasny motyw jak Pracownia i jedno menu (dolny pasek Pracowni), także na telefonie */
html.in-pracownia { color-scheme: light; }
html.in-pracownia .tabbar { display: none; }
html.in-pracownia .shell { padding-bottom: 28px; }
/* Przepisywanie kartki temperatur: tabela dni × sprzęt */
.tsheet th, .tsheet td { padding: 4px 6px; vertical-align: top; }
.tsheet thead th { font-size: 13px; min-width: 84px; }
.tsheet tbody th { white-space: nowrap; font-weight: 600; text-align: left; }
.tsheet .tsheet-in { width: 76px; min-height: 40px; text-align: center; font-size: 16px; padding: 6px; }
.tsheet .tsheet-who { width: 130px; min-height: 40px; font-size: 14px; padding: 6px; }
.tsheet .tsheet-act { width: 170px; margin-top: 4px; font-size: 13px; padding: 4px 6px; }
.tsheet td.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet td.tsheet-have { color: #5b6b5e; font-size: 14px; text-align: center; vertical-align: middle; }
.tsheet tr.tsheet-day > * { border-top: 2px solid #c9d2c6; }
/* zwykły pasek pod tabelą (28.10: przyklejony „wisiał” na tablecie, a tabela przewijała się pod nim) */
.tsheet-bar { padding: 10px 0; }

.tsheet-daycard { padding: 12px 14px; }
.tsheet-daycard h3 { margin: 0 0 6px; font-size: 16px; }
.tsheet-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tsheet-row .tsheet-cell { display: grid; justify-items: end; gap: 4px; }
.tsheet-row .tsheet-in { width: 88px; min-height: 44px; text-align: center; font-size: 17px; }
.tsheet-row .tsheet-act { width: 150px; font-size: 14px; }
.tsheet-row .tsheet-cell.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet-row .tsheet-have { color: #5b6b5e; font-weight: 600; }
.tsheet .tsheet-cell.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet-why { color: #a3341d; font-size: 12px; font-weight: 600; max-width: 170px; margin-top: 3px; }
.tsheet-row .tsheet-why { text-align: right; }

.tag-casual { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #f1d3c3; color: var(--ink); font-size: 12px; font-weight: 600; vertical-align: middle; }

/* Menu ze zdjęciami: karty dań (ekran i wydruk) */
.dish-card.ok { border-left: 4px solid var(--accent, #2f6b4f); }
.dish-status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #f6e3c8; color: #6b4a12; white-space: nowrap; }
.dish-status.ok { background: #dcefdc; color: #1f5a2e; }
.dish-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; margin: 10px 0; align-items: start; }
.dish-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #eee; }
.dish-nophoto { display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; }
.dish-block h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.dish-block ul { margin: 0 0 10px; padding-left: 18px; }
.dish-block p { margin: 0 0 6px; }
.dish-edit-photo img { max-width: 100%; max-height: 260px; border-radius: 10px; }
.dish-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.dish-cand { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line, #ddd); border-radius: 10px; background: var(--surface, #fff); text-align: left; font: inherit; font-size: 12px; cursor: pointer; color: inherit; }
.dish-cand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.dish-cand.recipe { justify-content: center; min-height: 48px; }
@media (max-width: 640px) { .dish-body { grid-template-columns: 1fr; } }
@media print {
  .dish-print-head h1 { margin: 0; font-size: 20px; }
  .dish-print-card { break-inside: avoid; page-break-inside: avoid; border-top: 1px solid #999; padding-top: 10px; margin-top: 12px; }
  .dish-print-card h2 { margin: 0 0 6px; font-size: 18px; }
  .dish-print .dish-body { grid-template-columns: 6.5cm 1fr; }
  .dish-print .dish-photo { aspect-ratio: auto; max-height: 6cm; object-fit: cover; }
}
.dish-block li.dish-sub { list-style: none; margin-left: -18px; font-weight: 700; margin-top: 4px; }
.dish-block p.dish-sub { font-weight: 700; margin-top: 6px; }

/* Ankieta po imprezach */
.norms-intro p { margin: 6px 0 0; }
.norms-group { border-top: 1px solid var(--line, #ddd); margin-top: 10px; padding-top: 8px; }
.norms-group h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #666); }
.norms-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.norms-row.col { flex-direction: column; align-items: stretch; }
.norms-row.sub { padding-left: 14px; }
.norms-label { flex: 1 1 220px; min-width: 0; }
.norms-input { display: flex; align-items: center; gap: 6px; }
.norms-num { width: 96px !important; }
.norms-known { color: #1f5a2e; font-weight: 600; }
.norms-split { padding: 6px 0; }

/* Kucharze — kontakty */
.contact-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.norms-dish { padding: 8px 0 6px; border-bottom: 1px dashed var(--line, #ddd); }
.norms-dish > b { display: block; margin-bottom: 2px; }
.norms-row.main .norms-label { font-weight: 600; }
.norms-row:not(.col) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.norms-row:not(.col) .norms-label { flex: none; }
.norms-input { justify-content: flex-end; min-width: 150px; }
.norms-input .small { min-width: 58px; }

.change-list { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.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-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 6px; }   /* zawija się zamiast uciekać za ekran (tablet) */
.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; }
.plan-table.blocked circle, .plan-table.blocked rect { fill: #e7e4dc; stroke: #9a9688; stroke-dasharray: .2 .12; }
.plan-table.blocked .plan-label { fill: #8a877c; }
.plan-x { stroke: #9a9688; stroke-width: .06; }
.plan-table.marked circle, .plan-table.marked rect { stroke: #c9a35a; stroke-width: .14; }
.plan-zone { fill: #7a6a4a; font-style: italic; }
.plan-fix.fix-garden rect { fill: #e4efd9; stroke: #8fb07a; stroke-dasharray: .25 .15; }
.plan-fix.fix-mezzanine rect { fill: #efe7d6; stroke: #b9a77f; stroke-dasharray: .25 .15; }
.plan-fix.fix-chairs rect { fill: #f3ead6; stroke: #b9a77f; }
.plan-fix.fix-stage rect, .plan-fix.fix-dj rect { fill: #e9dfcb; stroke: #8a6d2b; }
.lg.blocked::before { background: #e7e4dc; border-color: #9a9688; border-style: dashed; }
.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); }
.quick-a.pin { border-color: var(--green); border-width: 2px; }
.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; }

/* ---------- Bilety i wydarzenia ---------- */
.tk-list { display: grid; gap: 12px; }
.tk-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.tk-card:hover { border-color: var(--green); }
.tk-card h2 { margin: 4px 0 2px; }
.tk-date { display: grid; place-items: center; height: 64px; border-radius: 14px; background: var(--side, #15321f); color: #f6f1e5; line-height: 1.05; }
.tk-date b { font-size: 26px; } .tk-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tk-card.k-bal .tk-date { background: #5b2a4e; } .tk-card.k-koncert .tk-date { background: #20324f; } .tk-card.k-kolacja .tk-date { background: #6b4a1e; }
.tk-body { min-width: 0; display: grid; gap: 2px; }
.tk-meter { display: grid; gap: 4px; margin-top: 6px; }
.tk-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--accent, #c9a35a); border-radius: 99px; }
.tk-type { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-type:last-child { border-bottom: 0; }
.tk-tabs { flex-wrap: wrap; margin: 6px 0 14px; }
.tk-tabs .seg-btn { text-decoration: none; }
.tk-tables { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tk-tables .card.hl { outline: 3px solid var(--accent, #c9a35a); }
.tk-task { justify-content: flex-start; }
.tk-task.done { color: var(--muted); text-decoration: line-through; }
.link-x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 8px; }
.tk-sched { justify-content: flex-start; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tk-sched b { min-width: 52px; }
.tk-settle { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 6px 0 12px; max-width: 420px; }
.tk-settle .tk-res { border-top: 1px solid var(--line); padding-top: 6px; font-size: 18px; }
.tk-settle b.neg { color: var(--danger); }
.tk-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.cu-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); justify-self: center; }
.cu-dot.ok { background: var(--ok); } .cu-dot.off { background: var(--danger); }
a.kpi { text-decoration: none; color: inherit; } a.kpi.on { outline: 2px solid var(--green); }
/* skaner */
.scan-card { display: grid; gap: 12px; position: relative; }
.scan-cam { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; }
@media (min-width: 700px) { .scan-cam { aspect-ratio: 4 / 3; } }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 14%; border: 3px solid #ffffffcc; border-radius: 18px; box-shadow: 0 0 0 999px #00000055; pointer-events: none; }
.scan-res { display: none; position: absolute; left: 16px; right: 16px; top: 16px; padding: 18px; border-radius: 16px; text-align: center; color: #fff; z-index: 3; font-size: 18px; }
.scan-res.show { display: grid; gap: 4px; }
.scan-res b { font-size: 24px; letter-spacing: .02em; }
.scan-res.ok { background: #1f7a3a; } .scan-res.bad { background: #b3261e; }
.scan-count { font-size: 22px; }
@media print { .tk-tabs, .crumb { display: none !important; } .tk-tables .card { break-inside: avoid; box-shadow: none; } }
.tk-filter { margin: 4px 0 12px; align-items: center; }
.tk-filter .chip, .chips a.chip { width: auto; display: inline-flex; align-items: center; margin: 0; text-decoration: none; color: inherit; }
.chips a.chip.on { color: var(--green-ink); }

/* Kreator „Start lokalu” */
.wiz-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.wiz-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); font-size: 14px; }
.wiz-step i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-style: normal; font-weight: 700; font-size: 13px; }
.wiz-step.ok i { background: var(--green); color: var(--green-ink); }
.wiz-step.on { border-color: var(--green); font-weight: 700; }
.wiz-row { justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-row input[type=color] { width: 44px; min-width: 44px; padding: 2px; }
.wiz-row input[type=text] { flex: 1 1 200px; }
.wiz-nav { justify-content: space-between; margin-top: 16px; }
.wiz-mods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wiz-mod { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wiz-mod span { display: grid; gap: 2px; }
.wiz-ready { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wiz-ready li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.wiz-ready li > span { flex: 1; }
.wiz-ready li.wz-ok b { color: var(--green); } .wiz-ready li.wz-no b { color: var(--danger, #a3341d); } .wiz-ready li.wz-opt b { color: var(--muted); }

/* Motyw „wilk” (marka Probatum, 17.10.2026): czerń, kość i czerwień zamiast zieleni; zielony zostaje tylko jako „OK”.
   Włącza go lokal w tenant.json: brand.theme.preset = "wilk" (np. Arena i Bistro). */
html.theme-wilk { --paper: #f5f2ef; --ink: #1c1717; --muted: #665e5b; --line: #dcd8d6; --soft: #e9e5e3;
  --green: #d4161b; --green-ink: #fff; --lime: #f6d9d7; --shadow: 0 10px 34px #1f1a1a14; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.theme-wilk.mode-dark:not(.in-pracownia) { --paper: #110e0e; --white: #1d1919; --ink: #f0edeb; --muted: #aea6a2; --line: #2b2525; --soft: #1e1919;
    --green: #ff6b62; --green-ink: #0d0b0b; --lime: #322929; }
  html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e2626; }

html.theme-wilk .sheet-table .sh-name, html.theme-wilk .avatar { color: #1c1717; }
html.theme-wilk .sheet-table tr.weekend td, html.theme-wilk .sheet-table tr.weekend th.sh-day { background: #d8d0cd; }
html.theme-wilk .landing { background: linear-gradient(135deg, #151212 0%, #2a1d1d 55%, #a90f13 100%); }
html.theme-wilk .land-brand, html.theme-wilk .land-ic, html.theme-wilk .eyebrow.on-dark { color: #f6d9d7; }
html.theme-wilk .dash-sun { color: #f6d9d755; }
html.theme-wilk { --accent: #d4161b; --side: #151212; --side-ink: #ece6e3; }
html.theme-wilk .side-brand small, html.theme-wilk .side-gl, html.theme-wilk .side-demo { color: #a89d99; }
html.theme-wilk .side-i.on, html.theme-wilk .side-logo { background: #f5f2ef; }
html.theme-wilk .side-badge { color: #fff; }
html.theme-wilk .src.sp, html.theme-wilk .dic.green { background: #e9e4e2; color: #151212; }
html.theme-wilk .m-hall { background: linear-gradient(135deg, #5a4a46, #151212); }
.side-logo-img { object-fit: contain; padding: 3px; box-sizing: border-box; background: #f6f1e5; }
/* Reguły z kolorem na sztywno: wartości ze starego Grafiku Areny (wygenerowane 18.10.2026) */
html.theme-wilk input:focus-visible, html.theme-wilk select:focus-visible, html.theme-wilk textarea:focus-visible, html.theme-wilk .btn:focus-visible, html.theme-wilk a:focus-visible { outline: 3px solid #7c6961; }
html.theme-wilk .sheet-table tr.weekend td, html.theme-wilk .sheet-table tr.weekend th.sh-day { background: #d8d0cd; }
html.theme-wilk .pc5 { background: #d1c8c4; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e2626; }

html.theme-wilk .land-brand { color: #F6D9D7; }
html.theme-wilk .land-sub { color: #d6cecb; }
html.theme-wilk .land-feats span { color: #bcb4b1; }
html.theme-wilk .land-ic { color: #F6D9D7; }
html.theme-wilk .land-foot { color: #a29792; }
html.theme-wilk .dash-hero { background: linear-gradient(135deg, #1b1616 0%, #A90F13 100%); }
html.theme-wilk .dash-hello p { color: #d6cecb; }
html.theme-wilk .eyebrow.on-dark { color: #F6D9D7; }
html.theme-wilk .dash-sun { color: #F6D9D755; }
html.theme-wilk input[type=checkbox], html.theme-wilk input[type=radio] { accent-color: var(--green, #2F6F4F); }
html.theme-wilk .bell { color: var(--ink, #191414); }
html.theme-wilk a.kpi:hover { border-color: #b4a8a3; box-shadow: 0 6px 18px #1e181814; }
html.theme-wilk .sheet-table td.sel { outline: 2px solid #302828; }
html.theme-wilk .sheet-table td .cell-input { outline: 2px solid #302828; }
html.theme-wilk .ord-check { border: 2px solid #b4a8a3; }
html.theme-wilk .lunch-kind.k-vege { color: #352b2b; }
html.theme-wilk .lunch-tag.t-vege { color: #352b2b; }
html.theme-wilk .tsheet tr.tsheet-day > * { border-top: 2px solid #d0cac8; }
html.theme-wilk .dish-card.ok { border-left: 4px solid var(--accent, #352b2b); }
html.theme-wilk .dish-status.ok { background: #e9e4e2; color: #292222; }
html.theme-wilk .norms-known { color: #292222; }
html.theme-wilk .plan-fix rect { fill: #e5dfdd; stroke: #b1a5a0; }
html.theme-wilk .plan-fix.fix-couple rect, html.theme-wilk .plan-fix.fix-cake rect { stroke: #D4161B; }
html.theme-wilk .plan-fix text { fill: #2d2525; }
html.theme-wilk .plan-table circle, html.theme-wilk .plan-table rect { stroke: #151212; }
html.theme-wilk .plan-table.part circle, html.theme-wilk .plan-table.part rect { stroke: #D4161B; }
html.theme-wilk .plan-table.full circle, html.theme-wilk .plan-table.full rect { fill: #e5dfdd; }
html.theme-wilk .plan-label { fill: #151212; }
html.theme-wilk .plan-table.marked circle, html.theme-wilk .plan-table.marked rect { stroke: #D4161B; }
html.theme-wilk .plan-fix.fix-garden rect { fill: #e7e3e1; stroke: #a29088; }
html.theme-wilk .lg::before { border: 2px solid #151212; }
html.theme-wilk .lg.part::before { border-color: #D4161B; } html.theme-wilk .lg.full::before { background: #e5dfdd; }
html.theme-wilk .tbl-btn { border: 2px solid #151212; }
html.theme-wilk .tbl-btn.part { border-color: #D4161B; } html.theme-wilk .tbl-btn.full { background: #e5dfdd; }
html.theme-wilk .tk-date { background: var(--side, #151212); }
html.theme-wilk .tk-bar i { background: var(--accent, #D4161B); }
html.theme-wilk .tk-tables .card.hl { outline: 3px solid var(--accent, #D4161B); }
html.theme-wilk .scan-res.ok { background: #342b2b; }

/* Czat zespołu (18.10.2026) */
.tchat { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tchat-list { display: grid; gap: 2px; padding: 8px; max-height: 70vh; overflow-y: auto; }
.tchat-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.tchat-item:hover { background: var(--soft); } .tchat-item.on { background: var(--lime); }
.tchat-item .dtx { min-width: 0; flex: 1; display: grid; } .tchat-item .dtx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchat-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.tchat-item .side-badge { margin-left: 0; }
.avatar.grp { background: var(--green); color: var(--green-ink); }
.tchat-thread { display: grid; gap: 10px; }
.tchat-log { max-height: 58vh; min-height: 280px; }
.tchat-back { display: none; }
@media (max-width: 760px) {
  .tchat { grid-template-columns: 1fr; }
  .tchat.has-thread .tchat-list, .tchat:not(.has-thread) .tchat-empty { display: none; }
  .tchat.has-thread .tchat-back { display: inline-flex; }
  .tchat-log { max-height: 60vh; }
}

/* Zwykłe wpisy w kalendarzu (18.10.2026): niebieskoszary pasek, odróżnia się od imprez */
.cal-ev.cal-note { background: #e6ecf3; border-left-color: #4a6a8a; color: #22384d; }
.day-ev i.note-dot { background: #4a6a8a; }
.cal-ev.cal-army { background: #e8efdc; border-left-color: #5b7a2e; color: #2c3d12; font-weight: 600; }
.cal-ev.cal-lunch { background: #fbefd9; border-left-color: #c98a1b; color: #55380a; }
.day-ev i.army-dot { background: #5b7a2e; }
.day-ev i.lunch-dot { background: #c98a1b; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .cal-ev.cal-note { background: #1f2a35; color: #c9d6e3; }

.side-custom { background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; margin-top: 8px; opacity: .75; }
.side-custom:hover { opacity: 1; }
/* Karta imprezy: oryginał zamówienia w podglądzie (jak w starej Pracowni) */
.kitchen-ev .pdf-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 8px; }
.kitchen-ev details > summary { cursor: pointer; font-weight: 600; margin-top: 6px; }

/* Karta imprezy: klocki w dwóch kolumnach bez dziur (18.10.2026) */
.ev-cols { display: block; columns: 2 400px; column-gap: 14px; }
.ev-cols > .card { display: inline-block; width: 100%; margin: 0 0 14px; break-inside: avoid; vertical-align: top; }
.ev-cols .chat-off { padding-top: 14px; padding-bottom: 14px; }
.ev-cols textarea { max-height: 50vh; }
/* Notatnik imprezy (18.10) */
.notepad-card .ev-notepad { width: 100%; min-height: 110px; resize: vertical; font: inherit; line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #ddd); background: var(--card, #fff); color: inherit; }
.notepad-card .card-head { align-items: baseline; }
/* Załączniki w czacie zespołu (18.10) */
.tc-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tc-img img { display: block; max-width: min(260px, 60vw); max-height: 220px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.tc-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.75); color: #151212; text-decoration: none; max-width: 260px; }
.tc-ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #d4161b; color: #fff; font-size: 11px; font-weight: 800; }
.tc-fn { display: grid; min-width: 0; } .tc-fn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-fn small { font-size: 11px; opacity: .7; }
.tc-pending { display: flex; flex-wrap: wrap; gap: 6px; } .tc-pending:empty { display: none; }
.tc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; max-width: 100%; }
.tc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-chip button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; padding: 2px 4px; }
.tc-attach { flex: none; font-size: 20px; min-width: 48px; align-self: stretch; }
/* Przepisy kuchni (18.10) */
.rc-add { font-size: 16px; padding: 12px 18px; }
.rc-search { width: 100%; max-width: 420px; margin-bottom: 12px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rc-tile { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; color: inherit; text-decoration: none; margin: 0; }
.rc-tile img, .rc-noimg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--soft); display: grid; place-items: center; font-size: 34px; }
.rc-tx { display: grid; gap: 3px; min-width: 0; } .rc-tx b { font-size: 16px; } .rc-tx span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-editor { display: grid; gap: 12px; }
.rc-pad { width: 100%; min-height: 50vh; resize: vertical; font: inherit; font-size: 17px; line-height: 1.6; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line, #ddd); background: #fffdf8; color: #151212;
  background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(0,0,0,.06) calc(1.6em - 1px) 1.6em); background-attachment: local; background-position: 0 16px; }
.rc-save { font-size: 17px; padding: 12px 28px; }
.rc-card { display: grid; gap: 18px; }
.rc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rc-photos:empty { display: none; }
.rc-ph { position: relative; margin: 0; } .rc-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.rc-ph.main { grid-column: span 2; grid-row: span 2; }
.rc-phdel { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }
.rc-media { display: grid; gap: 10px; }
.rc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.rc-cols h2 { font-size: 18px; margin: 0 0 8px; }
.rc-ing { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.rc-ing li { padding: 8px 0; border-bottom: 1px solid var(--line, #eee); font-size: 16px; }
.rc-ing b { color: #d4161b; }
.rc-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: krok; display: grid; gap: 10px; }
.rc-steps li { counter-increment: krok; display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; }
.rc-steps li::before { content: counter(krok); width: 30px; height: 30px; border-radius: 50%; background: #151212; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.rc-raw summary { cursor: pointer; color: var(--muted, #777); }
.rc-actions { gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .rc-cols { grid-template-columns: 1fr; } .rc-ph.main { grid-column: span 2; } .rc-pad { min-height: 55vh; } }
@media print { .rc-card { box-shadow: none; border: 0; } .rc-raw { display: none; } }
/* Pasek nowej wiadomości (18.10) */
.chat-alert { position: fixed; top: calc(var(--kbot-h, 0px) + env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 2147483003; width: min(720px, calc(100vw - 24px));
  display: flex; align-items: stretch; background: #d4161b; color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: chatAlertIn .25s ease-out; }
.chat-alert-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 16px; color: #fff; text-decoration: none; min-width: 0; }
.chat-alert-ico { font-size: 24px; }
.chat-alert-tx { display: grid; min-width: 0; } .chat-alert-tx b { font-size: 15px; } .chat-alert-tx span { font-size: 14px; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-alert-open { margin-left: auto; background: #fff; color: #d4161b; font-weight: 800; border-radius: 10px; padding: 8px 14px; font-size: 14px; flex: none; }
.chat-alert-x { border: 0; background: none; color: #fff; font-size: 26px; padding: 0 16px; cursor: pointer; }
@keyframes chatAlertIn { from { transform: translate(-50%, -30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
/* Obsada na górze karty imprezy (18.10) */
.crew-card { display: grid; gap: 10px; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.crew-row { display: grid; gap: 6px; }
.crew-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; }
.crew-ok { color: #2f7d32; } .crew-short { color: #d4161b; }
.crew-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--soft, #f3f0ea); font-size: 14px; }
.crew-chip span { color: var(--muted, #777); font-size: 12px; }
@media (max-width: 700px) { .chat-alert-tx span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .chat-alert-open { padding: 8px 10px; } }
.rc-tabs { margin-bottom: 12px; }
.rc-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rc-mode { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--white, #fff); border: 1px solid var(--line, #e5e0d8); }
.rc-mode .row { flex-wrap: nowrap; gap: 8px; }
.rc-url { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #ddd); }
.rc-info { padding: 10px 14px; border-radius: 12px; background: var(--soft, #f3f0ea); margin: 0 0 12px; }
.rc-info.ok { background: #e8f5e9; color: #1b5e20; } .rc-info.warn { background: #fff3e0; color: #8a4b00; }
/* Kalendarz na telefonie: cały miesiąc w kratkę (18.10) */
.cal-views { margin: 0 0 10px; }
.cal-grid.mini { grid-template-columns: repeat(7, 1fr); min-width: 0; gap: 4px; }
.cal-grid.mini .cal-cell { min-height: 52px; padding: 4px 2px; justify-items: center; gap: 4px; font: inherit; color: inherit; }
.cal-grid.mini .cal-d { font-size: 14px; color: var(--ink); }
.cal-grid.mini .cal-cell.short { box-shadow: inset 0 -3px 0 #c2410c; }
.mini-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; align-items: center; }
.mini-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.mini-dots i.mini-note { background: #4a6a8a; }
.mini-dots i.mini-army { background: #5b7a2e; }
.mini-dots i.mini-lunch { background: #c98a1b; }
.mini-dots i.mini-open { opacity: .45; }
.mini-dots b { font-size: 10px; color: var(--muted); }
.cal-mini-card { padding: 10px 8px; }
/* Kolor aplikacji wybierany przez każdą osobę (18.10): zielony = dawny wygląd (bez motywu wilka), dalej niebieski, fioletowy, grafitowy */
html.accent-niebieski { --green: #1d4ed8; --green-ink: #fff; --lime: #dbe7ff; --soft: #e7edf7; --accent: #1d4ed8; --side: #0f1f3d; --side-ink: #e6ecf7; }
html.accent-fioletowy { --green: #6d28d9; --green-ink: #fff; --lime: #ede4fb; --soft: #efe9f8; --accent: #6d28d9; --side: #1e1033; --side-ink: #efe8fb; }
html.accent-grafit { --green: #334155; --green-ink: #fff; --lime: #e2e8f0; --soft: #e9edf2; --accent: #334155; --side: #111827; --side-ink: #e5e7eb; }
html.accent-niebieski.mode-dark:not(.in-pracownia) { --green: #7aa2ff; --green-ink: #0b1020; --lime: #1e2a4a; --soft: #1b2233; }
html.accent-fioletowy.mode-dark:not(.in-pracownia) { --green: #b39dff; --green-ink: #140a26; --lime: #2b1f45; --soft: #221a33; }
html.accent-grafit.mode-dark:not(.in-pracownia) { --green: #cbd5e1; --green-ink: #0f172a; --lime: #273142; --soft: #1e2532; }
html.accent-niebieski .side-i.on, html.accent-fioletowy .side-i.on, html.accent-grafit .side-i.on { background: #fff; color: var(--ink); }
/* wybór wyglądu na koncie */
.look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.look-opt { border: 2px solid var(--line); background: var(--white); color: var(--ink); border-radius: 12px; padding: 10px 14px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.look-opt.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.look-opt i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 1px solid #0002; }
/* Przepisy w układzie starej aplikacji Receptury (18.10) — kolory z motywu (--green = akcent, --lime = tło akcentu) */
.rc-search { width: 100%; max-width: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 16px; margin: 0 0 12px; }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rc-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 1px 3px #0000000d; min-height: 64px; }
.rc-tile:active { background: var(--lime); }
.rc-emo { font-size: 26px; line-height: 1; }
.rc-tname { font-weight: 600; font-size: 15px; }
.rc-tcount { color: var(--muted); font-size: 13px; font-weight: 600; background: var(--soft); border-radius: 999px; padding: 2px 9px; }
.rc-sec { margin: 0 0 16px; }
.rc-sec h3 { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 6px 2px; }
.rc-group, .rc-block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px #0000000d; }
.rc-block { padding: 6px 14px; }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rc-row:last-child { border-bottom: 0; } .rc-row:active { background: var(--lime); }
.rc-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; font-size: 22px; flex: none; overflow: hidden; }
.rc-ico img { width: 100%; height: 100%; object-fit: cover; }
.rc-rtx { flex: 1; min-width: 0; display: grid; } .rc-rtx b { font-size: 16px; font-weight: 600; } .rc-rtx small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-chev { color: var(--muted); font-size: 20px; flex: none; }
.rc-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.rc-back { color: var(--green); font-weight: 600; text-decoration: none; font-size: 16px; padding: 6px 0; }
.rc-bartitle { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 14px; }
.rc-close { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 20px; padding: 4px 8px; }
.rc-tyt { font-size: 28px; margin: 2px 0 4px; }
.rc-podtyt { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.rc-katznak { border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.rc-katznak b { color: var(--ink); }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rc-chips button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.rc-chips button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 600; }
.rc-foto { margin-bottom: 14px; display: grid; gap: 8px; }
.rc-foto > a img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; display: block; }
.rc-thumbs { display: flex; gap: 6px; overflow-x: auto; } .rc-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.rc-foto-dodaj { width: 100%; padding: 26px 14px; border: 2px dashed var(--line); border-radius: 16px; background: var(--white); color: var(--muted); font-size: 16px; font-weight: 600; cursor: pointer; }
.rc-foto-zmien { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.rc-porcje { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.rc-lab { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.rc-ster { display: flex; align-items: center; justify-content: center; gap: 16px; }
.rc-ster button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); font-size: 26px; cursor: pointer; color: var(--ink); }
.rc-licz { text-align: center; min-width: 110px; } .rc-licz b { display: block; font-size: 36px; line-height: 1; } .rc-licz span { color: var(--muted); font-size: 14px; }
.rc-skroty { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.rc-skroty button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; }
.rc-skroty button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }
.rc-note { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.rc-baza { display: grid; gap: 8px; } .rc-baza .row { gap: 8px; flex-wrap: nowrap; }
.rc-baseinput { width: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; text-align: center; }
.rc-akcje { display: flex; gap: 8px; margin-bottom: 16px; }
.rc-big { flex: 1; text-align: center; border: 0; border-radius: 14px; padding: 14px 10px; font-size: 16px; font-weight: 700; background: var(--green); color: var(--green-ink); cursor: pointer; text-decoration: none; }
.rc-big:first-child { flex: 2; }
.rc-big.alt { background: var(--lime); color: var(--green); }
.rc-skl { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rc-skl:last-child { border-bottom: 0; }
.rc-il { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.rc-nz { font-size: 16px; } .rc-nz small { display: block; color: var(--muted); font-size: 12px; }
.rc-skl.stale .rc-il { color: var(--muted); }
.rc-kroki { margin: 0; padding: 4px 0; list-style: none; counter-reset: krok; display: grid; }
.rc-kroki li { counter-increment: krok; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.rc-kroki li:last-child { border-bottom: 0; }
.rc-kroki li::before { content: counter(krok); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.rc-podanie { margin: 8px 0; padding-left: 20px; }
.rc-usun { border: 0; background: none; color: #b3261e; padding: 10px 0; font-size: 14px; cursor: pointer; }
/* tryb Ugotuj */
.rc-gotuj { position: fixed; inset: 0; z-index: 2147483004; background: var(--paper); display: grid; grid-template-rows: auto auto 1fr auto; padding: env(safe-area-inset-top) 16px calc(16px + env(safe-area-inset-bottom)); }
.gt-gora { display: flex; align-items: center; gap: 12px; padding: 12px 0; } .gt-gora button { border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: var(--ink); }
.gt-nazwa { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gt-porcje { color: var(--muted); font-size: 14px; }
.gt-pasek { display: flex; gap: 4px; margin-bottom: 14px; } .gt-pasek span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .gt-pasek .zrobione { background: var(--lime); } .gt-pasek .akt { background: var(--green); }
.gt-tresc { overflow-y: auto; } .gt-tresc h2 { font-size: 26px; margin-bottom: 14px; }
.gt-tekst { font-size: 24px; line-height: 1.5; }
.gt-skl { display: grid; } .gt-poz { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; } .gt-il { font-weight: 700; color: var(--green); }
.gt-dol { display: flex; align-items: center; gap: 10px; padding-top: 12px; } .gt-dol button { flex: 1; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 700; color: var(--ink); }
.gt-dol button.glowny { background: var(--green); color: var(--green-ink); border-color: var(--green); } .gt-dol button:disabled { opacity: .4; } .gt-licznik { color: var(--muted); font-size: 14px; }
@media print { .rc-gotuj, .rc-akcje, .rc-porcje .rc-ster button { display: none !important; } }
/* iPhone: pola daty/godziny mają własną szerokość i rozpychały okno wpisu poza ekran (18.10: „kalendarz lata”) */
dialog { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
.sheet { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.sheet > *, .sheet label, .sheet .f, .grid2 > *, .grid3 > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
.rc-katalog { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
/* Checklisty imprez w panelu (18.10) */
.ck-prog { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ck-bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; } .ck-bar i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.ck-list { display: grid; }
.ck-h { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; } .ck-h1 { font-size: 15px; color: var(--ink); } .ck-h3, .ck-h4 { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.ck-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 16px; cursor: pointer; }
.ck-item input { width: 24px; height: 24px; min-height: 24px; margin-top: 1px; }
.ck-item.done span { color: var(--muted); text-decoration: line-through; }
.ck-add { gap: 8px; flex-wrap: nowrap; } .ck-add input { flex: 1; }
/* Okno od dołu (18.10, „czemu zniknęło menu dolne?”): nagłówek z „Zamknij” i przyciski zawsze widoczne, przewija się tylko środek */
.sheet { padding-top: 0; padding-bottom: 0; max-height: 92vh; max-height: 92dvh; }
.sheet-head { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.sheet-actions { position: sticky; bottom: 0; z-index: 3; background: var(--paper); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }
.sheet > :not(.sheet-head):not(.sheet-actions):last-child { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 700px) { .sheet-actions .primary { order: -1; flex-basis: 100%; } .sheet-actions .btn { flex: 1; } }
/* Własne kafelki przepisów (18.10) */
.rc-tile.own { border-color: var(--green); }
.rc-tname small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.rc-newtile { border: 2px dashed var(--line); background: transparent; text-align: left; font: inherit; cursor: pointer; grid-template-columns: auto 1fr; }
.rc-newtile small { grid-column: 2; font-size: 12px; }
.rc-emojis button { font-size: 22px; padding: 6px 10px; }
.rc-pick { display: grid; max-height: 55vh; overflow-y: auto; }
.rc-pick small { font-size: 12px; }
.rc-colactions { gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.rc-rm { border: 0; background: var(--soft); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; flex: none; cursor: pointer; }
.rc-tilebtn { width: 100%; border: 1px dashed var(--green); background: transparent; color: var(--green); border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 700; margin: -6px 0 16px; cursor: pointer; }
/* Start: „Dziś w kuchni” — zadania dnia z odhaczaniem */
.dc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dc-task { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--card, #fff); }
.dc-task.done { opacity: .6; } .dc-task.done .dc-title span { text-decoration: line-through; }
.dc-check { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #7a8a63; background: transparent; font-size: 22px; line-height: 1; color: #fff; cursor: pointer; }
.dc-check.on { background: #5b7a2e; border-color: #5b7a2e; }
.dc-body { min-width: 0; flex: 1; } .dc-title { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 1.02rem; }
.dc-time { font-variant-numeric: tabular-nums; min-width: 3.2em; } .dc-head { margin-top: 3px; } .dc-who:empty { display: none; }
.dc-sec { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line, #ddd); display: flex; flex-direction: column; gap: 2px; }

/* Biuro i sala */
.row.done .hp-text { text-decoration: line-through; opacity: .6; }
.section-title { margin: 16px 0 6px; }
.dc-struck span { text-decoration: line-through; opacity: .55; }

/* Auta firmowe */
.veh-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.veh-kind { flex: 1; min-height: var(--tap); }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.veh-slot { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 12px; background: var(--soft); overflow: hidden; cursor: pointer; text-align: center; }
.veh-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veh-slot .veh-ic { color: var(--muted); }
.veh-slot .veh-l { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: 12px; font-weight: 600; background: #000a; color: #fff; }
.veh-slot:not(.done) .veh-l { background: none; color: var(--ink); }
.veh-slot.done { border: 2px solid var(--ok); }
.veh-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.veh-th { border: 0; padding: 0; background: none; width: 84px; text-align: center; font-size: 11px; color: var(--muted); }
.veh-th img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.veh-big { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; }
.veh-thumbs.big .veh-th, .veh-thumbs.big .veh-th img { width: 140px; } .veh-thumbs.big .veh-th img { height: 105px; }
@media print { .side, .tabbar, .topbar, .no-print, .page-head .btn { display: none !important; } .shell { margin: 0 !important; max-width: none !important; padding: 0 !important; } .veh-rep { break-inside: avoid; } }

/* karta pracy: cała na jednej kartce A4, podpisy nie rozcinają się na dwie strony */
@media print {
  @page { size: A4; margin: 14mm; }
  .wc-card h1 { font-size: 22px; } .wc-card .eyebrow { font-size: 11px; margin: 0 0 2px; }
  .wc-card .tbl th, .wc-card .tbl td { padding: 1.5px 5px; font-size: 9.5px; line-height: 1.25; border-bottom: 1px solid #bbb; }   /* pełny miesiąc na 1 stronie A4 (28.10.2026) */
  @page { size: A4; margin: 12mm; }
  .wc-card .tbl tr { break-inside: avoid; } .wc-card .tbl thead { display: table-header-group; }
  .wc-sign { gap: 56px; margin-top: 12px; break-inside: avoid; page-break-inside: avoid; } .wc-sig img { max-height: 50px; } .wc-sig-empty { height: 40px; }
  .wc-sig-label { border-top: 1px solid #000; font-size: 11px; }
  .wc-card p.small { break-before: avoid; margin-top: 14px; }
}

/* Odbijanie czasu pracy */
.punch-hero { display: grid; gap: 10px; }
.punch-big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.punch-btn { min-height: 64px; font-size: 20px; font-weight: 700; width: 100%; }
.punch-btn.alt { background: var(--soft); }
.tk-start.ok { border-left: 6px solid var(--ok); } .tk-start.warn { border-left: 6px solid var(--warn); }
.kiosk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kiosk-tile { display: grid; gap: 4px; justify-items: center; padding: 18px 8px; min-height: 92px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); font-size: 18px; }
.kiosk-tile span { font-size: 13px; color: var(--muted); } .kiosk-tile.in { border-color: var(--ok); background: var(--soft); }
.pin-dots { text-align: center; font-size: 32px; letter-spacing: .3em; min-height: 44px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pin-pad .btn { min-height: 64px; font-size: 24px; }

.veh-filters select { width: auto; min-width: 180px; }

/* umowy: tekst dokumentu, druk umowy i rozliczenia osobno */
.ct-body { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.55; }
.ct-sign { white-space: pre-line; }
.ct-bill { margin-top: 12px; }
@media print {
  body.print-doc .ct-bill, body.print-bill .ct-doc { display: none !important; }
  .ct-body { font-size: 12.5pt; }
  .ct-doc, .ct-bill { padding: 0 !important; }
}
/* obsada imprezy: miejsca i telefony */
.crew-place { margin-top: 6px; }
.crew-place > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5d6b60); }
.crew-tel { text-decoration: none; }
.crew-ctl input, .crew-ctl select { width: auto; min-width: 0; flex: 0 1 auto; }
.crew-ctl input[type="time"], .crew-ctl .time-in { width: 100px; }
.crew-ctl select { max-width: 210px; }

/* Licznik czasu pracy w górnym pasku, pływający czat, dziennik odbić, tagi miejsc (wzór: inEwi) */
.clock-pill { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 6px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); min-height: 44px; }
.clock-pill .cp-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.clock-pill .cp-ic::after { content: ''; border-left: 11px solid var(--green-ink, #fff); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.clock-pill.on .cp-ic { background: var(--danger); }
.clock-pill.on .cp-ic::after { border: 0; width: 12px; height: 12px; margin: 0; border-radius: 2px; background: #fff; }
.clock-pill.brk .cp-ic { background: #e0a21a; }
.clock-pill span { display: grid; line-height: 1.1; }
.clock-pill small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.clock-pill .cp-time { white-space: nowrap; }
.clock-pill .cp-time { font-size: 17px; font-variant-numeric: tabular-nums; }
.clock-pill.on .cp-time { color: var(--danger); }
@media (max-width: 460px) { .clock-pill small:not(.cp-pay) { display: none; } .clock-pill { padding-right: 12px; } }
.ev-month { max-width: 220px; }
.chat-fab { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 20px #00000026; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.chat-fab 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; text-align: center; }
@media (min-width: 900px) { .chat-fab { bottom: 24px; } }
@media print { .chat-fab, .clock-pill { display: none !important; } }
.ev-row { flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-at { min-width: 96px; font-variant-numeric: tabular-nums; }
.ev-pill { display: inline-block; min-width: 56px; text-align: center; padding: 3px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; border: 1px solid; }
.ev-pill.start { color: #1d7a3a; background: #e3f5e8; border-color: #8fd0a3; }
.ev-pill.stop { color: #b3263e; background: #fbe3e7; border-color: #ec9aa8; }
.loc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 13px; }
.loc-tag i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Statusy dni (miesiąc osoba × dzień) */
.st-wrap { display: flex; padding: 8px; }
.st-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.st-names { flex: none; min-width: 0 !important; box-shadow: 4px 0 6px -4px rgba(0,0,0,.18); position: relative; z-index: 1; }
.st-table { border-collapse: separate; border-spacing: 2px; font-size: 12px; min-width: 100%; }
.st-table th, .st-table td { padding: 0; text-align: center; height: 30px; }
.st-name { background: var(--white); text-align: left !important; padding: 0 10px 0 4px !important; white-space: nowrap; font-weight: 600; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.st-day { min-width: 28px; font-weight: 600; color: var(--muted); }
.st-day.we { color: #b3563a; } .st-day.today { color: var(--green); text-decoration: underline; }
.st-td { height: 30px; }
.st-sum { padding: 0 8px !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-cell { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #1d2b24; padding: 0 2px; }
.st-cell.ok { background: #3ec64f; } .st-cell.short { background: #fcc419; } .st-cell.over { background: #a99bff; }
.st-cell.absent { background: #fa7a72; color: #fff; } .st-cell.vacation { background: #cfd4d8; border-radius: 13px; } .st-cell.sick { background: #cfd4d8; border-radius: 3px; }
.st-cell.planned { background: repeating-linear-gradient(135deg, #eee 0 5px, #fff 5px 9px); border: 1px solid var(--line); color: var(--muted); }
.st-cell.offplan { background: #fff; border: 2px solid #fa7a72; color: #c0392b; }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 0 0 10px; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend .st-cell { min-width: 16px; height: 16px; border-radius: 5px; }
.rq-who { font-weight: 700; }

.st-cell.assumed { opacity: .5; }

/* Czas pracy i grafik: przycisk na górze strony głównej i strona zbiorcza */
.work-cta { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 14px; border-radius: 18px; background: var(--green); color: var(--green-ink, #fff); text-decoration: none; box-shadow: 0 6px 18px #00000022; }
.work-cta .work-ic { width: 46px; height: 46px; border-radius: 14px; background: #ffffff26; display: grid; place-items: center; flex: none; }
.work-cta .work-tx { display: grid; flex: 1; min-width: 0; } .work-cta b { font-size: 18px; } .work-cta small { opacity: .85; font-size: 13px; }
.work-cta.pos-cta { min-height: 96px; padding: 18px 22px; background: #c9a35a; color: #15321f; }
.work-cta.pos-cta .work-ic { width: 62px; height: 62px; background: #15321f; color: #fff; }
.work-cta.pos-cta b { font-size: 30px; } .work-cta.pos-cta small { font-size: 16px; opacity: 1; }
.work-cta .work-go { font-size: 28px; opacity: .8; }
.work-h { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.work-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; color: var(--ink); min-height: 72px; }
.work-tile .work-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.work-tile .work-tx { display: grid; flex: 1; min-width: 0; } .work-tile small { color: var(--muted); font-size: 13px; }

.hideable { display: grid; gap: 2px; } .hideable > .card, .hideable > .tk-start { margin-bottom: 0; }
.hide-x { justify-self: end; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 4px 8px; cursor: pointer; text-decoration: underline; }
.hide-bar { width: 100%; text-align: left; background: none; border: 1px dashed var(--line, #d8d2c4); border-radius: 12px; color: var(--muted); font: inherit; font-size: 14px; padding: 10px 14px; cursor: pointer; }
/* Strona nigdy nie przesuwa się w bok (zbyt szeroki wiersz nie wypycha całego ekranu poza telefon) */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
main, .shell, .stack, .card { min-width: 0; max-width: 100%; }
.seg { max-width: 100%; }
.drow > * { min-width: 0; }
.dc-done > summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }
.clock-pill .cp-pay { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-sub { display: grid; gap: 1px; margin: 1px 0 6px 18px; padding-left: 10px; border-left: 1px solid #ffffff26; }
.side-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-size: 13px; }
.side-s:hover { background: #ffffff14; color: #fff; }
.side-s.on { background: #ffffff1f; color: #fff; font-weight: 600; }
.st-click { cursor: pointer; }
.st-click:hover, .st-click:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.work-more { margin-top: 18px; }
.work-more > summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.work-more[open] > summary { margin-bottom: 8px; }
.st-cell.has-note { position: relative; }
.st-cell.has-note::after { content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #d92c18); border: 1px solid #fff; }
/* Rozstaw obsługi: kratki osoba × miejsce, duże pola do dotykania */
.pg-table th, .pg-table td { height: 46px; }
.pg-table thead th { height: 52px; }
.pg-col { min-width: 64px; max-width: 90px; padding: 0 4px !important; font-size: 12px; font-weight: 700; white-space: normal; line-height: 1.15; }
.pg-box { width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); font-size: 20px; font-weight: 800; color: #fff; cursor: pointer; }
.pg-box.on { background: var(--green); border-color: var(--green); color: var(--green-ink, #fff); }
.pg-table .st-name.muted { color: var(--muted); font-weight: 500; }
.my-place { flex-basis: 100%; padding: 10px 14px; border-radius: 12px; background: var(--green); color: var(--green-ink, #fff); }
.my-place span { display: block; opacity: .85; } .my-place b { font-size: 20px; }
.pg-sheet { min-width: 0; max-width: 100%; }
.pg-sheet > * { min-width: 0; max-width: 100%; }
.pg-wrap { width: 100%; box-sizing: border-box; }
.pg-sheet input[type=time] { width: 8.5em; }
/* Rozstaw obsługi na komputerze: szerokie okno, widać więcej kolumn */
@media (min-width: 900px) { dialog:has(.pg-sheet) { width: min(1100px, 96vw); } }
/* obecność na imprezie */
.crew-presence { margin: 6px 0 10px; }
.crew-presence .crew-chips { margin-top: 6px; }
.crew-chip.crew-miss { background: #fde8e8; } .crew-chip.crew-in { background: #e6f2e6; }
/* Wycena: menu do klikania i gotowa oferta */
.q-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.q-chips::-webkit-scrollbar { display: none; }
.q-chip { flex: none; border: 1px solid var(--line); background: var(--white); color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.q-chip.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.q-cat-list { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.q-cat-sec { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 2px; }
.q-cat-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.q-cat-name { min-width: 0; flex: 1 1 0; }
.q-cat-row .btn { flex: none; }
.q-off-rows { display: grid; gap: 8px; margin-top: 6px; }
.q-off-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; border-bottom: 1px dotted var(--line); padding-bottom: 6px; break-inside: avoid; }
.q-off-name { min-width: 0; flex: 1 1 0; }
.q-off-name ul { margin: 4px 0 0; padding-left: 18px; }
.q-off-price { text-align: right; flex: none; max-width: 45%; }
/* Rozstaw obsługi: plan sali z kelnerami */
.pg-plan .plan-svg { max-height: 62vh; }
.pg-plan-whole .plan-svg { max-height: 85vh; }
.pg-plan-whole .plan-zoom { max-height: none; }
.pg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
/* Plan z podkładem i powiększeniem (hala Areny) */
.plan-bg { pointer-events: none; }
.plan-zoom { overflow: auto; max-height: 70vh; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }   /* szczypanie obsługuje plan.js (zoomBox) */
.plan-zoom.edit { touch-action: pan-x pan-y; }
.plan-zoom.edit [data-kind] { touch-action: none; }
.plan-zoom-in { width: 100%; margin: 0 auto; }
.plan-zoom .plan-svg { max-height: none; }
.plan-zoom-bar { gap: 8px; align-items: center; }
.plan-svg .plan-fix.fix-bemary rect { fill: #f3d9b1; stroke: #b9822f; }
.plan-svg .plan-fix.fix-live rect { fill: #f6c4b5; stroke: #c0533a; }
.plan-svg .plan-fix.fix-wydawka rect { fill: #cfe3f3; stroke: #3f78a8; }
.plan-svg .plan-fix.fix-zmywak rect { fill: #d9e8e4; stroke: #4f8579; }
.plan-svg .plan-table.vip circle, .plan-svg .plan-table.vip rect { fill: #fbefc9; stroke: #b8902c; stroke-width: .14; }
.plan-svg .plan-fix.fix-sweets rect { fill: #f7d3e4; stroke: #b5577f; }
.plan-svg .plan-fix.fix-cold rect { fill: #d6ecf2; stroke: #3d8aa1; }
.plan-svg .plan-fix.fix-hot rect { fill: #f8d8b8; stroke: #c06a2b; }
/* Układ sali imprezy: ekran na całą stronę */
.ep-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ep-main { display: grid; gap: 12px; }
@media (min-width: 1200px) { .ep-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.ep-box { height: calc(100dvh - 300px); min-height: 380px; max-height: none; overflow: auto; touch-action: none; }
.ep-box .plan-svg { max-height: none; }
.ep-side { display: grid; gap: 10px; }
.ep-sum { font-variant-numeric: tabular-nums; }
.ep-presets { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1199px) { .ep-box { height: 60dvh; min-height: 320px; } }
.plan-svg .plan-fix.fix-carpet rect { fill: #c62828; stroke: #8e1c1c; }
.plan-svg .plan-fix.fix-carpet text, .plan-svg .plan-fix.fix-backstage text { fill: #fff; }
.plan-svg .plan-fix.fix-backstage rect { fill: #2f2f2f; stroke: #111; }
.plan-svg .plan-fix.fix-stage rect { fill: #9a9a9a; stroke: #555; }
/* Strefy sali (jak na planie gali 2024, inne odcienie): stoły w środku, bufety dookoła, zaplecze na zewnątrz */
.plan-zone-area { pointer-events: none; }
.plan-zone-area.sel { pointer-events: auto; cursor: move; }
.plan-zone-area ellipse, .plan-zone-area rect { stroke: none; }
.plan-svg .plan-zone-area.zone-back ellipse, .plan-svg .plan-zone-area.zone-back rect { fill: rgba(176, 160, 196, .38); }
.plan-svg .plan-zone-area.zone-buffet ellipse, .plan-svg .plan-zone-area.zone-buffet rect { fill: rgba(190, 214, 178, .55); }
.plan-svg .plan-zone-area.zone-tables ellipse, .plan-svg .plan-zone-area.zone-tables rect { fill: rgba(170, 198, 222, .6); }
.plan-zone-area.sel ellipse, .plan-zone-area.sel rect { stroke: #c4522a; stroke-width: .25; stroke-dasharray: .6 .4; }
.plan-zone-area text { fill: #4b5560; opacity: .8; }
.plan-svg .plan-fix.fix-waiters rect { fill: #e0d4f5; stroke: #7a5cb0; }
/* „To Twoje” na planie: kelner/kucharz widzi swoje stoły i stanowiska */
.plan-svg .plan-table.mine circle, .plan-svg .plan-table.mine rect, .plan-svg .plan-fix.mine rect { stroke: #e0301e; stroke-width: .3; fill: #ffe08a; }
@media (prefers-reduced-motion: no-preference) { .plan-svg .mine { animation: plan-pulse 1.4s ease-in-out infinite; } }
@keyframes plan-pulse { 50% { opacity: .55; } }
.fl-list { display: grid; gap: 8px; }
.fl-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.fl-row .btn { min-height: 48px; }
.fl-person { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.fl-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.fl-big .btn, .fl-big a.btn { min-height: 52px; font-size: 17px; justify-content: center; text-align: center; }
.fl-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.my-plan-legend { display: flex; flex-wrap: wrap; gap: 6px; }
/* Wiadomość do zespołu (telefon): duże wiersze z ptaszkiem, przycisk wysyłki przyklejony do dołu okna */
.fl-top { margin: 4px 0 12px; }
.fl-top .btn { width: 100%; min-height: 52px; font-size: 17px; }
.fl-top .fl-mute .btn { width: auto; min-height: 0; font-size: inherit; }
.fl-pick { display: grid; gap: 6px; max-height: 42vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.fl-pick-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.fl-pick-row.on { border-color: var(--green); background: var(--soft); }
.fl-pick-row input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--green); }
.fl-pick-txt { display: grid; gap: 2px; min-width: 0; }
.fl-nopush { color: #b3261e; }
.fl-bc .q-chip { min-height: 40px; }
.fl-bc .q-chip:disabled { opacity: .45; }
.sheet:has(.fl-bc) .sheet-actions { position: sticky; bottom: 0; background: var(--paper); padding-block: 10px; }
.fl-bc + .sheet-actions .btn, .sheet:has(.fl-bc) .sheet-actions .btn { width: 100%; min-height: 52px; font-size: 17px; }
.fl-pick-row .fl-call { margin-left: auto; flex: none; align-self: center; }
/* Samouczek: jasno podświetlona zakładka u góry każdego ekranu */
.tut-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #ffe27a; color: #3a2c00; font-weight: 700; text-decoration: none; border: 2px solid #f1c232; white-space: nowrap; }
.tut-pill.on { background: #f1c232; }
.tut-pill svg { flex: none; }
@media (max-width: 560px) { .tut-pill { padding: 8px 10px; } .tut-pill span, .va-open .va-t { display: none; } }   /* telefon: same ikony, żeby pasek nie rozpychał strony (25.10) */
.side-i[data-r="samouczek"] { background: #ffe27a; color: #3a2c00; font-weight: 700; }
.tut-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tut-ch { display: grid; gap: 10px; scroll-margin-top: 80px; }
.tut-ch h2 { margin: 0; }
.tut-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.tut-tip { background: #fff4d6; color: #5a4300; padding: 10px 12px; border-radius: 10px; margin: 0; }
.tut-fig { margin: 4px 0 0; display: grid; justify-items: center; gap: 6px; }
.tut-phone { width: min(260px, 78vw); border: 7px solid #1d2723; border-radius: 28px; overflow: hidden; background: #fff; }
.tut-phone img { display: block; width: 100%; height: auto; }
/* Telefon: górny pasek z Samouczkiem, zegarem pracy i dzwonkiem musi się zmieścić. Wylogowanie jest w Więcej → Konto. */
@media (max-width: 560px) {
  .top-right > button.btn.small[aria-label="Wyloguj z konta"] { display: none; }
  .topbar > :first-child { min-width: 0; flex: 1 1 auto; }
  .page-title .pt-back { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 12px; }
  .page-title b { font-size: 18px; }
  .top-right { gap: 6px; flex: none; }
  .clock-pill { gap: 6px; padding: 3px 10px 3px 4px; min-height: 40px; }
  .clock-pill .cp-ic { width: 28px; height: 28px; }
  .clock-pill .cp-time { font-size: 15px; }
  .top-right .bell { width: 40px; height: 40px; }
  .page-title { min-width: 0; overflow: hidden; }
  .va-pill { max-width: 38vw; }
  .va-pill .va-who { overflow: hidden; text-overflow: ellipsis; }
}

/* grafik imprezy jako tabela: osoby × dni (25.10) */
.eg-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.eg-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.eg-table th, .eg-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.eg-table thead th { position: sticky; top: 0; background: var(--white); font-weight: 700; font-size: 13px; }
.eg-table tbody th { white-space: normal; min-width: 120px; max-width: 200px; font-weight: 600; position: sticky; left: 0; background: var(--white); z-index: 1; }
.eg-cell { min-width: 150px; }
.eg-cell > * { vertical-align: middle; }
@media (min-width: 900px) { dialog:has(.eg-wrap) { width: min(1100px, 96vw); } }
.eg-cell input[type="checkbox"] { width: 22px; height: 22px; }
.eg-cell.on { background: var(--soft); }
.eg-times { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.eg-times input.time-in { width: 64px; padding: 6px; min-height: 0; height: 38px; font-size: 15px; }
.eg-table tbody td, .eg-table tbody th { vertical-align: middle; }
.eg-sum { font-weight: 700; }

/* Ludzie: lista zwarta + karta osoby (25.10) */
.pp-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.pp-row:first-child { border-top: 0; }
.pp-row.off { opacity: .55; }
.pp-who { flex: 1 1 auto; min-width: 0; }
.pp-sec { padding: 8px 14px; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.pp-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pp-act { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; min-height: var(--tap); }
.pp-act:hover { border-color: var(--green); }
.eg-day small { display: block; font-weight: 500; font-size: 11px; }
.eg-table thead th.eg-day.ev { background: var(--soft); }

/* Produkcja: strefy wydawki, dni osoby, podział na strefy (25.10) */
.pd-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pd-zone { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.pd-zone > input, .pd-zone > select { grid-column: 1; min-width: 0; }
.pd-zone > .army-x { grid-column: 2; grid-row: 1; }
.pd-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.pd-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.pd-day small { color: var(--muted); font-size: 12px; }
.pd-day.ev { border-color: var(--green); }
.pd-day.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.pd-day.on small { color: var(--green-ink); opacity: .85; }
.pd-split { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }
.pd-col { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.eg-table select { max-width: 160px; }
/* Drużyny w Produkcji dnia (25.10, uproszczone) */
.pd-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.pd-team { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; }
.pd-team-head { display: flex; gap: 6px; align-items: center; }
.pd-zname { flex: 1; min-width: 0; font-weight: 700; }
.pd-mem { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--line); }
.pd-mem > span, .pd-mem > b { flex: 1; min-width: 0; }
.pd-mem select { max-width: 150px; }
.pd-mem.lead { border-top: 0; }
.pd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
/* Układ sali na pełnym ekranie (25.10) */
.ep-stage.full { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.ep-stage.full .ep-tools { flex: none; }
.ep-stage.full .ep-main { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.ep-stage.full .ep-box { height: 100%; min-height: 0; }
.ep-stage.full .ep-side { overflow: auto; max-height: 100%; }
@media (max-width: 1199px) { .ep-stage.full .ep-main { grid-template-rows: minmax(0, 1fr) auto; } .ep-stage.full .ep-side { max-height: 30dvh; } }
body.ep-full-on .fb-fab, body.ep-full-on .chat-fab, body.ep-full-on .tabbar { display: none; }
body.ep-full-on { overflow: hidden; }
body.ep-full-on .side, body.ep-full-on .topbar, body.ep-full-on #kbotHost, body.ep-full-on .hint-card, body.ep-full-on .help-fab { display: none !important; }
body > .ep-stage.full { z-index: 2147483000; }

/* Czas pracy KP i eksport do płac (25.10) */
.payroll-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.payroll-box p { flex-basis: 100%; margin: 4px 0 0; }
/* Dostępność, wolne zmiany i zamiany (25.10) */
.sheet-table td.av-no { box-shadow: inset 3px 0 0 #dc2626; }
.sheet-table td.av-no:empty::after { content: 'nie może'; font-size: 11px; color: #b91c1c; }
.sheet-table td.av-yes { box-shadow: inset 3px 0 0 #16a34a; }
.sheet-table td.av-yes:empty::after { content: 'może'; font-size: 11px; color: var(--green-ink); }
.shift.av-no { border-left: 3px solid #dc2626; }
.shift.av-yes { border-left: 3px solid #16a34a; }
.sm-warn { color: #92400e; background: #fef3c7; border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
.sm-av-row { border-bottom: 1px solid var(--line); padding: 6px 0; }
html.mode-dark:not(.in-pracownia) .sm-warn { color: #fde68a; background: rgba(146, 64, 14, .35); }
html.mode-dark:not(.in-pracownia) .sheet-table td.av-no:empty::after { color: #fca5a5; }
/* Asystent zastępstw (25.10) */
.cover-reasons { flex-wrap: wrap; gap: 6px; }
.cover-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.cover-card.open { border-color: var(--danger); }
.cover-list { display: flex; flex-direction: column; }
.cover-cand { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.cover-cand > .dtx { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.cover-cand.yes > .small { color: var(--green); font-weight: 700; }
.cover-cand.no { opacity: .6; }
.cover-ask { border-color: var(--green); }
/* potwierdzanie godzin na zleceniu i napiwki (25.10) */
.hc-card.hc-todo { border: 2px solid var(--green); }
.hc-banner { text-decoration: none; margin-bottom: 10px; }
.hc-alert { font-weight: 700; margin: 0 0 12px; }
.tbl tr.hc-below td { background: var(--danger-bg); }
.hc-doc h2 { margin: 0 0 4px; }
.hc-sign { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.tip-shares { display: flex; flex-wrap: wrap; gap: 6px; }
@media print { .hc-doc { box-shadow: none; border: 0; } .tbl tr.hc-below td { background: none; } }
/* Koszty pracy: miejsca, imprezy, % utargu (25.10) */
.lc-person { margin: 6px 0 6px 14px; }
.lc-person > summary { cursor: pointer; padding: 4px 0; }
.lc-home.lc-alert { border-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger); }
.lc-event .summary b { font-size: 1.15em; }
@media print { .lc-print details > summary { list-style: none; } .lc-print details { break-inside: avoid; } }

/* Czat: grupy i kanały firmy (25.10) */
.tchat-side { display: grid; gap: 10px; min-width: 0; }
.tchat-new { display: flex; gap: 8px; flex-wrap: wrap; }
.tchat-new .btn { flex: 1 1 auto; min-height: 52px; font-size: 16px; }
.tchat-item { min-height: 64px; }
.tchat-item .avatar { width: 46px; height: 46px; font-size: 20px; }
.tchat-item.new .dtx b { font-weight: 800; } .tchat-item.new .dtx .muted { color: var(--ink); }
.tchat-sect { padding: 10px 8px 2px; text-transform: uppercase; letter-spacing: .04em; }
.tc-tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tc-tag.grp { background: transparent; padding-left: 0; }
.side-badge.tc-at { background: var(--danger); color: #fff; }
.side-badge.tc-mutedb { background: var(--line); color: var(--muted); }
.tc-head { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.tc-head .tc-htx { flex: 1; min-width: 0; display: grid; } .tc-head h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tools { display: flex; gap: 6px; flex: none; } .tc-tool { min-width: 48px; min-height: 48px; font-size: 18px; }
.tc-pin { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--soft); }
.tc-pin[hidden] { display: none; }
.tc-pin-tx { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.tc-pin-tx > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tchat-log .msg { cursor: pointer; }
.msg.tc-me-at { box-shadow: inset 4px 0 0 var(--danger); }
.tc-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-r { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.8); color: #151212; }
.tc-r.mine { outline: 2px solid var(--green); }
.tc-seen { text-align: right; margin: -4px 4px 4px; }
.tc-sugg { display: flex; gap: 6px; overflow-x: auto; } .tc-sugg:empty { display: none; }
.tc-ro { text-align: center; padding: 10px; }
.tc-form { display: grid; gap: 12px; }
.tc-emojis, .tc-colors, .tc-react-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-emo { min-width: 48px; min-height: 48px; font-size: 24px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.tc-emo.on { border-color: var(--green); background: var(--soft); }
.tc-col { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.tc-col.on { border-color: var(--ink); }
.tc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tc-pick { display: grid; gap: 10px; }
.tc-people { display: grid; gap: 2px; max-height: 40vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tc-person, .tc-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.tc-person:hover { background: var(--soft); }
.tc-person input, .tc-switch input { width: 22px; height: 22px; flex: none; }
.tc-members { display: grid; gap: 2px; }
.tc-mrow { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--line); }
.tc-mrow > span:first-child { flex: 1; min-width: 0; }
.tc-actions { display: grid; gap: 8px; }
.tc-actions .btn.big { min-height: 52px; justify-content: flex-start; font-size: 16px; }
.tchat-private { text-align: center; justify-items: center; padding: 32px 16px; }
.tc-lock { font-size: 48px; }
@media (max-width: 760px) {
  .tchat.has-thread .tchat-side { display: none; }
  .tchat-list { max-height: none; padding: 4px; }
  .tchat-item { padding: 10px 8px; }
}
/* Nieobecności, urlopy, kalkulator (25.10) */
.abs-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 12px; }
.abs-actions .btn, .abs-chips .btn { min-height: 52px; font-size: 1.05rem; }
@media (min-width: 640px) { .abs-actions { grid-template-columns: repeat(3, 1fr); } }
.abs-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.abs-tiles { display: flex; flex-direction: column; gap: 8px; }
.abs-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; width: 100%; padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.abs-tile .dtx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.abs-tile.off { opacity: .55; }
.abs-count { flex: none; font-weight: 700; color: var(--green-ink); font-size: .9rem; }
.abs-big { font-size: 2rem; font-weight: 800; margin: 0; }
.abs-checks { display: flex; flex-direction: column; gap: 2px; }
.abs-late { color: var(--danger); font-weight: 600; }
.lv-card .lv-head, .lv-month .lv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-left { display: flex; flex-direction: column; gap: 2px; }
.lv-big { font-size: 2.2rem; line-height: 1.1; }
.lv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-stat { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.lv-warn { margin: 0; }
.lv-cnts { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.lv-cnt { display: flex; justify-content: space-between; gap: 8px; }
.lv-req, .lv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.lv-req .dtx, .lv-row .dtx { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.lv-row.st-pending b::after, .lv-row.st-proposed b::after { content: ' ?'; color: var(--muted); }
.lv-row.st-on_demand .muted { color: var(--danger); }
.lv-company { padding: 6px 10px; border-radius: 8px; background: var(--soft); font-size: .9rem; }
.lv-min { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; }
.lv-period { align-items: flex-end; }
.rq-ctx { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.rq-warn { color: var(--danger); font-weight: 600; }
.rq-acts { gap: 8px; flex-wrap: wrap; }
.rq-acts .btn { min-height: 48px; }
/* Pomoc i podpowiedzi przy pierwszym wejściu (25.10) */
.fb-fab { display: inline-flex; align-items: center; gap: 6px; }
.fb-fab .fb-q { font-size: 18px; font-weight: 800; line-height: 1; }
@media (max-width: 899px) {
  .fb-fab { left: auto; right: 20px; bottom: calc(148px + env(safe-area-inset-bottom)); width: 42px; height: 42px; padding: 0; border-radius: 50%; justify-content: center; }
  .fb-fab .fb-t { display: none; }
}
.help-big { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.help-big b { display: block; font-size: 17px; }
.help-big small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.help-big:active { background: var(--soft); }
.help-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 22px; font-weight: 800; }
.hint-card { border: 2px solid #f1c232; background: #fffbea; color: #2d2a1f; display: grid; gap: 8px; }
.hint-card p, .hint-card ul { margin: 0; }
.hint-where { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hint-where small { color: #6b5a1f; }
.hint-where b { font-size: 18px; }
.hint-pts { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.hint-card .muted { color: #6b5a1f; }
.hint-card .btn.hint-show { border-color: #e9c46a; background: #ffe27a; color: #3a2c00; }
.hint-pts li { font-size: 15px; line-height: 1.35; }
.hint-acts { gap: 8px; flex-wrap: nowrap; }
.hint-acts .btn { flex: 1 1 0; padding: 0 12px; }
@media (min-width: 700px) { .hint-acts .btn { flex: 0 0 auto; } .hint-acts { justify-content: flex-start; } }
.hint-later { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #6b5a1f; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.hint-news { display: flex; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #fffbea; border: 1px solid #f1c232; color: #2d2a1f; font-size: 14px; }
.hint-news span { flex: 1; min-width: 0; }
.hint-x { flex: none; width: 40px; height: 40px; border: 0; background: transparent; font-size: 22px; color: #6b5a1f; cursor: pointer; }
.page-head.has-hq { position: relative; padding-right: 48px; }
.hint-q { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #f1c232; background: var(--white); color: #6b4a00; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; flex: none; }
.page-head.has-hq > .hint-q { position: absolute; top: 2px; right: 0; }
.hint-on { outline: 3px solid #f1c232 !important; outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 9px #f1c23240 !important; }
.hint-tip { position: fixed; z-index: 60; padding: 12px 14px; border-radius: 14px; background: #2d2a1f; color: #fff; box-shadow: 0 10px 30px #0005; display: grid; gap: 6px; }
.hint-tip p { margin: 0; font-size: 15px; }
.hint-tip .muted { color: #e9d9a6; }
.hint-tip .btn { min-height: 44px; }
.hint-tip::before { content: ''; position: absolute; left: 50%; top: -8px; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #2d2a1f; }
.hint-tip.up::before { top: auto; bottom: -8px; border-bottom: 0; border-top: 8px solid #2d2a1f; }
.tut-hint { border-top: 1px solid var(--line); padding: 8px 0; }
.tut-hint > summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.tut-hint .btn { margin-top: 8px; }
@media print { .fb-fab, .hint-card, .hint-news, .hint-q, .hint-tip { display: none !important; } }
/* Kartoteka pracownika (25.10) */
.rc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.rc-tab { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.rc-tab.on { background: var(--green); border-color: var(--green); color: var(--white); }
.rc-body { min-width: 0; }
.rc-add { width: 100%; }
.rc-part h2 { font-size: 1.05em; margin: 0 0 6px; }
.rc-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 10px 12px; margin-top: 6px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.rc-item:disabled { cursor: default; opacity: 1; }
.rc-item.warn { border-color: var(--danger); }
.rc-alert { border-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger); }
.rc-hint { background: var(--soft); border-radius: 10px; padding: 8px 10px; margin: 0; }
.rc-pick { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rc-pick .btn { width: 100%; }
.rc-pending { display: flex; flex-direction: column; gap: 4px; }
.rc-pf { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.rc-files { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-img img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.rc-file { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.rc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.rc-ev { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rc-ev:first-child { border-top: 0; }
.rc-date { flex: 0 0 92px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.rc-what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.rc-ev.k-sick .rc-what b, .rc-ev.k-partD .rc-what b { color: var(--danger); }
.rc-mhead { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rc-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.rc-line > span:first-child { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
@media print { .rc-tabs, .rc-add, .rc-protocol .btn { display: none; } .rc-protocol { box-shadow: none; border: 0; } }
/* raporty w wariantach, szybka edycja, grafik szefa na telefonie, zamiany (25.10) */
.rep-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tap-row { cursor: pointer; }
.tap-row:hover td, .tap-row:hover { background: var(--soft); }
.tap-row .tap-hours, .drow.tap-row b { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.rep-pcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--white); display: grid; gap: 8px; }
.rep-pc-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rep-pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.rep-pc-stats span { background: var(--soft); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.rep-pc-stats small { display: block; color: var(--muted); font-size: 12px; }
.rep-pc-stats b { font-size: 17px; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-chips .q-chip { min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
.rep-filter > summary { cursor: pointer; padding: 6px 0; min-height: 40px; }
.rep-filter .rep-chips { margin-top: 6px; }
.rep-mine th, .rep-mine td { white-space: nowrap; }
.tbl-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.payroll-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-fix { border: 0; background: none; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.shift-box { border-top: 1px solid var(--line); }
.shift-box > .shift { border-top: 0; }
.shift-fix { display: block; width: 100%; text-align: left; border: 0; background: var(--soft); color: var(--green); font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.shift-fact { padding: 0 16px 10px; }
.shift { -webkit-touch-callout: none; user-select: none; }
.copy-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.copy-day { display: grid; gap: 2px; justify-items: center; border-radius: 12px; min-height: 52px; white-space: normal; }
.copy-day small { font-weight: 400; font-size: 12px; opacity: .8; }
.live-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-cands { gap: 6px; }
.sm-cands details summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 700px) { .rep-head h1 { font-size: 24px; } }
/* Telefon najpierw: Start z wielkim przyciskiem Odbij, kafle, decyzje szefa, mój grafik w kartach (25.10) */
.ph { display: grid; gap: 6px; padding: 14px; margin-bottom: 12px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 76px; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--green); color: var(--green-ink, #fff); font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; }
.ph.on .ph-btn { background: var(--danger); color: #fff; }
.ph.brk .ph-btn { background: var(--warn, #b7791f); color: #fff; }
.ph-btn:disabled { opacity: .7; }
.ph-ic { display: grid; place-items: center; }
.ph-st { font-size: 18px; font-weight: 700; text-align: center; margin-top: 4px; }
.ph-plan { color: var(--muted); text-align: center; font-size: 15px; }
.ph-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ph-sub { min-height: 48px; flex: 1 1 0; min-width: 0; font-size: 16px; }
.ph-more { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; color: var(--muted); font-size: 14px; }
.ph-abs { display: flex; gap: 8px; margin-bottom: 4px; }
.ph.ph-mini { padding: 6px; border-radius: 16px; }
.ph-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 8px 6px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ph-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent); }
.ph-bar-tx { display: grid; flex: 1; min-width: 0; }
.ph-bar-tx b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-bar-tx .ph-st { font-size: 14px; font-weight: 500; text-align: left; margin: 0; color: var(--muted); }
.ph-bar-go { flex: none; padding: 10px 14px; border-radius: 12px; background: var(--danger); color: #fff; font-weight: 800; font-size: 15px; }
.st-emp, .st-boss { gap: 12px; }
.st-head h1 { margin-bottom: 4px; }
.bt { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.bt-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--green); display: grid; place-items: center; }
.bt-tx { flex: 1; min-width: 0; display: grid; gap: 2px; } .bt-tx b { font-size: 19px; } .bt-tx small { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.bt-go { color: var(--muted); font-size: 26px; }
.dc h2 { margin: 0 0 8px; }
.dc-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); } .dc-row:first-child { border-top: 0; }
.dc-tx { display: grid; gap: 2px; min-width: 0; } .dc-tx small { color: var(--muted); overflow-wrap: anywhere; }
.dc-act { display: flex; gap: 8px; flex-wrap: wrap; } .dc-act .btn { min-height: 48px; flex: 1 1 120px; display: inline-flex; align-items: center; justify-content: center; }
.wn-head { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; min-height: 48px; } .wn-head h2 { margin: 0; }
.wn-list { display: grid; gap: 8px; margin-top: 6px; } .wn-row { display: flex; gap: 10px; align-items: center; } .wn-row small { display: block; }
.wn-alarm { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg, #fff4e0); display: grid; gap: 4px; }
.my-sum { font-size: 18px; font-weight: 700; color: var(--ink); }
.my-week { display: grid; gap: 10px; margin-bottom: 16px; }
.my-day { padding: 14px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 4px; }
.my-day.today { border: 2px solid var(--green); } .my-day.past { opacity: .6; } .my-day:not(.work) { padding: 10px 16px; }
.my-dh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.my-t { font-size: 22px; font-weight: 800; } .my-p { color: var(--muted); font-size: 15px; }
.my-drop { min-height: 48px; margin-top: 6px; justify-self: start; }
.my-team { min-height: 48px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
@media (max-width: 700px) { .tabbar a { min-height: 52px; } }
/* Zasady pracy, role, podgląd „Jako…” (25.10) */
.wr-card > h2, .wr-card > summary { margin: 0 0 10px; }
.wr-card > summary { cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; font-size: 1.05em; }
.wr-card > summary::-webkit-details-marker { display: none; }
.wr-card > summary::after { content: '›'; margin-left: auto; font-size: 1.4em; color: var(--muted); transition: transform .15s; }
.wr-card[open] > summary::after { transform: rotate(90deg); }
.wr-q { margin: 14px 0 6px; font-weight: 700; }
.wr-opts { display: grid; gap: 8px; }
.wr-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; min-height: 48px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.wr-opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.wr-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.wr-opt:has(input:checked), .wr-pick.on { border-color: var(--green); background: var(--soft); box-shadow: inset 0 0 0 1px var(--green); }
.wr-chips { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.wr-chips .wr-opt { align-items: center; padding: 10px 12px; gap: 8px; }
.wr-ex { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px dashed var(--green); }
.wr-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.wr-ex-grid label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-ex-grid input { width: 100%; box-sizing: border-box; min-height: 44px; }
.wr-ex-out { margin: 4px 0 0; font-weight: 700; color: var(--green-ink); }
@media (min-width: 700px) { .wr-ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wr-prog { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.wr-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wr-prog i.on { background: var(--green); }
.wr-prog small { flex: none; margin-left: 6px; color: var(--muted); }
.wr-nav { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 24px; }
.wr-nav .btn { min-height: 48px; min-width: 120px; }
.wr-role { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--white); }
.wr-role p { margin: 2px 0 8px; }
.wr-cap { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.wr-cap input { width: 22px; height: 22px; accent-color: var(--green); }
.wr-cap.off { color: var(--muted); }
.wr-cap em { font-style: normal; font-weight: 700; }
.wr-sup { margin: 10px 0; }
.wr-sup > b { display: block; margin-bottom: 6px; }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px; background: #ffe7c2; color: #6b3d00; border-bottom: 2px solid #e9a94b; }
.preview-bar .btn { margin-left: auto; }
/* linki (a.btn) tylko przenoszą, więc działają w podglądzie (29.10.2026: „Raport do faktury” w podglądzie Patrycji nic nie robił); zapisy blokuje api.js */
body.preview-mode main button.btn.primary:not(.va-keep), body.preview-mode dialog button.btn.primary:not(.va-keep), body.preview-mode main button[type="submit"] { opacity: .45; pointer-events: none; }
/* Branża i moduły, uprawnienia i badania, projekty wg klienta (25.10) */
.mod-list { display: grid; gap: 14px; }
.mod-grp { display: grid; gap: 8px; }
.mod-gl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.mod-row.on { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.mod-t { display: grid; gap: 2px; min-width: 0; }
.mod-t small { color: var(--muted); font-size: 13px; line-height: 1.35; }
input.mod-sw { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 52px; min-width: 52px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
input.mod-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
input.mod-sw:checked { background: var(--green); }
input.mod-sw:checked::after { transform: translateX(22px); }
.mod-lock { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.wiz-inds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 10px 0; }
.wiz-ind { display: grid; gap: 4px; text-align: left; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.wiz-ind small { color: var(--muted); font-size: 13px; }
.wiz-ind.on { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.wiz-now { display: none; margin: 0 0 10px; font-weight: 700; }
@media (max-width: 700px) {
  .wiz-steps { flex-wrap: nowrap; gap: 4px; }
  .wiz-step { padding: 4px; } .wiz-step span { display: none; }
  .wiz-now { display: block; }
  .wiz-nav .btn { min-height: 48px; }
}
.ql-add { min-height: 52px; margin: 0 0 14px; }
.ql-h { margin: 18px 0 8px; }
.ql-list { display: grid; gap: 8px; }
.ql-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ql-card.warn { box-shadow: inset 4px 0 0 var(--warn); }
.ql-card.bad { box-shadow: inset 4px 0 0 var(--danger); }
.ql-t { display: grid; gap: 2px; min-width: 0; }
.ql-t b, .ql-when { overflow-wrap: anywhere; }
.ql-when { font-size: 14px; color: var(--muted); }
.ql-who { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ql-st { flex: 0 0 auto; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.ql-st.warn { background: var(--warn-bg); color: var(--warn); } .ql-st.bad { background: var(--danger-bg); color: var(--danger); }
.ql-emp > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; }
.ql-emp .ql-list { margin-top: 8px; }
.ql-file { max-width: 100%; }
.lc-clients { margin: 12px 0; }
.lc-cl-sum { display: grid; text-align: right; flex: 0 0 auto; }
.lc-cl-sum small { color: var(--muted); }

/* Miejsce pracy duże i czytelne (26.10) */
.ph-place { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); text-align: center; }
.ph-place-l { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ph-place b { font-size: 26px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.ph-change { width: 100%; min-height: 56px; font-size: 19px; font-weight: 700; border: 2px solid var(--ink); border-radius: 14px; }
.ph-place-pick { gap: 6px; }
.ph-place-pick select { min-height: 60px; font-size: 22px; font-weight: 700; }

/* Pełny ekran sali na telefonie (26.10, Piotr: „tak wygląda pełny ekran na telefonie — tragedia”): narzędzia w jednym przewijanym pasku, sala na resztę ekranu */
@media (max-width: 899px) {
  .ep-stage.full { padding: calc(6px + env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .ep-stage.full .ep-tools { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 6px !important; }
  .ep-stage.full .ep-tools::-webkit-scrollbar { display: none; }
  .ep-stage.full .ep-tools > * { flex: none; white-space: nowrap; }
  .ep-stage.full .ep-tools .btn { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .ep-stage.full .ep-main { gap: 6px; grid-template-rows: minmax(0, 1fr) auto; }
  .ep-stage.full .ep-side { max-height: 34dvh; padding: 10px; }
  .ep-stage.full .ep-side .ep-help { display: none; }
  .ep-stage.full .ep-side .ep-tools { margin-bottom: 0 !important; }
}

/* Kto i kiedy (26.10): strzałki i data w jednym wierszu */
.act-nav { flex-wrap: nowrap; margin-bottom: 12px; }
.act-nav input { flex: 1; min-width: 0; width: auto; }

/* Goście przy rezerwacjach (26.10): VIP, alergie, wizyty, nie przyszli, zadatek */
.g-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.g-tag { font-size: 12px; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.g-tag.ok { background: var(--green); color: var(--green-ink); }
.g-tag.warn { background: #fbe3d6; color: #8a3410; }
.rz-ck { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.rz-ck input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; }

.alg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.lunch-alg { display: block; text-align: left; background: none; border: 0; padding: 2px 0; color: var(--accent, #8a4a1f); cursor: pointer; font: inherit; }
.lunch-alg.muted { color: var(--muted, #888); }
.lunch-print-alg { font-size: 0.85em; color: #555; }
/* podpis palcem na całym ekranie */
.sp-wrap { position: fixed; inset: 0; z-index: 2000; background: #fff; color: #111; display: flex; flex-direction: column; gap: 10px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.sp-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sp-top b { font-size: 18px; }
.sp-name { flex: 1 1 220px; min-height: 44px; font-size: 17px; padding: 8px 10px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: #111; }
.sp-area { position: relative; flex: 1; border: 2px dashed #c9cfc2; border-radius: 12px; background: #fcfcfa; overflow: hidden; }
.sp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sp-line { position: absolute; left: 6%; right: 6%; bottom: 28%; border-bottom: 1.5px solid #999; pointer-events: none; }
.sp-ph { position: absolute; left: 0; right: 0; bottom: calc(28% + 10px); text-align: center; color: #aaa; font-size: 20px; pointer-events: none; }
.sp-wrap.signed .sp-ph { display: none; }
.sp-hint { margin: 0; font-size: 13px; color: #555; }
.sp-bar { display: flex; gap: 10px; justify-content: flex-end; }
.sp-bar .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
body.sp-open { overflow: hidden; }
.sig-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sig-item { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 4px 8px; background: #fff; }
.sig-item img { height: 36px; max-width: 140px; }
.sp-msg { margin: 0; font-size: 15px; font-weight: 600; color: #a3341d; }
/* tabela miesiąca: zapisane pomiary do poprawki (szef kuchni) */
.tsheet td.tsheet-cell.tsheet-have .tsheet-in { background: #f3f6f1; }
.tsheet td.tsheet-cell.tsheet-have.edited .tsheet-in, .tsheet-row .tsheet-cell.tsheet-have.edited .tsheet-in { background: #fff6d6; border-color: #c99a1a; }
/* alert „wpisz temperatury” dla osób na zmianie */
.card.temp-due { border: 2px solid #a3341d; background: #fbeee9; }
.card.temp-due h2 { color: #a3341d; margin: 0; }
.card.temp-sign { border: 2px solid #c99a1a; background: #fff8e1; }
.card.temp-sign h2 { margin: 0; }
/* duży wybór lokalizacji w dzienniku temperatur */
.loc-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.loc-tab { flex: 1 1 160px; min-height: 64px; font-size: 22px; font-weight: 700; border-radius: 14px; border: 2px solid var(--line, #c9cfc4); background: var(--card, #fff); color: inherit; cursor: pointer; }
.loc-tab.on { background: #a3341d; border-color: #a3341d; color: #fff; }
.card.collect-sign { border: 2px solid #20372d; }

/* podpisy karty pracy: widoczne na ekranie i na wydruku */
.wc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.wc-sig { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-sig img { max-height: 90px; max-width: 100%; object-fit: contain; align-self: flex-start; }
.wc-sig-empty { height: 70px; }
.wc-sig-label { border-top: 1px solid currentColor; padding-top: 4px; font-size: 13px; }
@media (max-width: 600px) { .wc-sign { grid-template-columns: 1fr; } }

/* Auto-grafik (27.10.2026) */
.auto-day { display: grid; gap: 4px; }
.auto-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.auto-fn { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); }
.fn-grid { border-collapse: collapse; font-size: 14px; }
.fn-grid th, .fn-grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.fn-grid th:first-child, .fn-grid td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); }
.fn-grid thead th { position: sticky; top: 0; background: var(--white); z-index: 1; }
/* Magazyn (27.10.2026) */
.st-list { display: flex; flex-direction: column; gap: 6px; }
/* działy surowców (27.10.2026): filtr i nagłówki grup */
.st-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.st-cat { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); color: var(--ink); font-size: 14px; cursor: pointer; }
.st-cat.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.haccp-list { display: flex; flex-direction: column; }
.haccp-r { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.haccp-r-m { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.haccp-r-m input { width: 20px; height: 20px; }
.haccp-r-act { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.haccp-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.haccp-m { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.st-cat-h { margin: 16px 0 6px; font-size: 15px; color: var(--muted); font-weight: 700; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: inherit; cursor: pointer; }
.st-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-main b { overflow-wrap: anywhere; }
.st-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.st-chg { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 1px 6px; }
.st-chg.up { background: #f6d5cc; color: #8a2a12; }
.st-chg.down { background: #d8ecd0; color: #275c1c; }
.st-warn { color: #a3341d; font-weight: 600; }
.st-rises { margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.st-rise { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 6px 0; color: inherit; cursor: pointer; }
.st-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.st-big b { font-size: 22px; }
.st-lines { display: flex; flex-direction: column; gap: 4px; }
.st-line { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.st-line.bad { border-color: #d9a08f; background: #fbeee9; }
.st-line > div:first-child { min-width: 0; }
.st-prod { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; max-width: 45%; font-size: 14px; }
.st-edit { display: flex; flex-direction: column; gap: 8px; }
.st-erow { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 4px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.st-erow > input:first-child { grid-column: 1 / -1; }
.st-erow input { min-width: 0; }
@media (min-width: 700px) { .st-erow { grid-template-columns: 3fr 1fr 1fr 1.2fr 1.2fr 0.8fr auto; } .st-erow > input:first-child { grid-column: auto; } }
.st-fc { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 1px 6px; }
.st-fc.ok { background: #d8ecd0; color: #275c1c; }
.st-fc.mid { background: #f3e5bf; color: #6b4e00; }
.st-fc.hi { background: #f6d5cc; color: #8a2a12; }
.rc-koszt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; text-align: left; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: inherit; cursor: pointer; }
.rc-koszt b { font-size: 20px; }
html.mode-dark .st-chg.up, html.mode-dark .st-fc.hi { background: #5a2416; color: #ffd6c9; }
html.mode-dark .st-chg.down, html.mode-dark .st-fc.ok { background: #1f4019; color: #d4f0c8; }
html.mode-dark .st-fc.mid { background: #4a3a10; color: #f6e2a8; }
html.mode-dark .st-line.bad { background: #3d211a; border-color: #7a3c2c; }
/* Rezerwacje bez prowizji (27.10.2026): udostępnianie i alergie dla kuchni */
.share-step { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.share-step > .btn { justify-self: start; }
.share-code { width: 100%; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; min-width: 0; }
.share-qr { width: 200px; max-width: 100%; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.share-qr svg { display: block; width: 100%; height: auto; }
.res-alg { border-left: 4px solid #c9682d; }

/* alergeny pod daniem na karcie „Dziś w kuchni” */
.dc-dish-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-alg { display: block; text-align: left; background: none; border: 0; padding: 0 0 2px; font: inherit; font-size: 12.5px; color: var(--red, #b3261e); font-weight: 600; cursor: pointer; }
.dc-alg.guess { color: var(--muted); font-weight: 500; font-style: italic; }
.dc-struck .dc-alg { text-decoration: none; }

/* ===== audyt UX 27.10.2026 ===== */
/* „Twoje najbliższe zmiany”: miejsce i „Nie przyjdę” w osobnym wierszu na telefonie (nachodziły na dzień i godziny) */
.my-shifts .who-row { flex-wrap: wrap; }
.my-shifts .who-row > span.row { flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .my-shifts .who-row > span.row { width: 100%; padding-left: 52px; justify-content: flex-start; } }
/* karta pracy i importy utargu: bez wychodzenia poza ekran */
.wc-wrap { max-width: 100%; overflow-x: auto; }
.wc-head { border-bottom: 1.5px solid #20372d; padding-bottom: 6px; margin-bottom: 10px; }
.wc-venue { font-size: 22px; font-weight: 700; color: #20372d; }
:root[data-theme="dark"] .wc-venue { color: #9fc7b3; }
.wc-venue-d { font-size: 12px; color: var(--muted, #555); }
.wc-foot { margin-top: 18px; padding-top: 6px; border-top: 1px solid #cfcabd; font-size: 11px; color: #777; }
@media print { .wc-wrap { overflow: visible; } }
.fin-row > span:first-child { overflow-wrap: anywhere; }
/* dolny pasek: etykieta w jednej linii */
.tabbar a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* podpis pomiarów na Starcie: jedna linia */
.temp-sign-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-weight: 600; cursor: pointer; border: 2px solid #c99a1a; background: #fff8e1; color: #3a2e05; min-height: 52px; }
/* uwagi do grafiku: jeden zwinięty pasek nad tabelą */
.sched-notes > summary { cursor: pointer; }
/* tryb ciemny: karty z jasnym tłem na sztywno */
html.mode-dark:not(.in-pracownia) .card.temp-sign, html.mode-dark:not(.in-pracownia) .temp-sign-line { background: #2e2614; border-color: #8a6a12; color: var(--ink); }
html.mode-dark:not(.in-pracownia) .cal-cell.sel { background: #3a3220; color: var(--ink); }
html.mode-dark:not(.in-pracownia) .hint-card, html.mode-dark:not(.in-pracownia) .hint-news { background: #2e2614; border-color: #8a6a12; color: #f3e6c4; }
html.mode-dark:not(.in-pracownia) .hint-q { background: var(--white); color: #f1c232; border-color: #f1c232; }
html.mode-dark:not(.in-pracownia) .badge.warn { background: #4a3a10; color: #fde68a; }
html.mode-dark:not(.in-pracownia) .badge.danger { background: #4a1f1d; color: #fecaca; }

/* Food cost imprezy (27.10.2026): pola ilości i ceny, braki na czerwono */
.cc-sum .cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cc-sum .cc-kpis > div, .cc-foot > div, .cc-pieces { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-sum .cc-kpis b { font-size: 22px; line-height: 1.2; }
input.cc-in { width: 5.2em; min-width: 0; flex: 0 0 auto; text-align: right; padding: 8px 10px; min-height: 42px; }
input.cc-in.cc-bad { border-color: var(--red, #b3261e); }
input.cc-in.cc-saving { opacity: .6; }
select.cc-unit { width: auto; flex: 0 0 auto; min-height: 42px; padding: 6px 8px; font-size: 15px; }
.cc-pricebox, .cc-qty, .cc-l-price, .cc-l-cost { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.cc-u { color: var(--muted); }
.cc-lines-h { padding-bottom: 4px; }
.cc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.cc-l-name { flex: 1 1 13em; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cc-name { font-weight: 600; }
.cc-l-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cc-cost { min-width: 5.5em; white-space: nowrap; }
.cc-miss .cc-cost, .cc-ing-row.cc-miss .cc-ing-n b { color: var(--red, #b3261e); }
.cc-ing-row.cc-miss input.cc-in, .cc-line.cc-miss input.cc-in:placeholder-shown { border-color: var(--red, #b3261e); }
.cc-x { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 2px 0; flex: none; }
.cc-ing { display: flex; flex-direction: column; }
.cc-ing-row { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cc-ing-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 14em; }
.cc-take { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cc-head h3 { margin: 0; }
.cc-flag { color: var(--red, #b3261e); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cc-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 6px; align-items: end; padding-top: 10px; border-top: 2px solid var(--line); }
.cc-pieces input.cc-in { width: 6.5em; }
.cc-sec { margin: 18px 0 6px; }
.cc-red { color: var(--red, #b3261e); }
.cc-part { margin: 0 0 6px 14px; padding: 4px 0 4px 12px; border-left: 3px solid var(--line); }
.cc-part > summary { cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 2px 0 6px; }
.cc-sub { border-top-style: dashed; }
.cc-yield { display: flex; align-items: center; gap: 6px; padding: 8px 0; }
.cc-add { background: none; border: 0; padding: 6px 0; color: var(--green); font: inherit; font-size: 13.5px; cursor: pointer; }
.cc-head-r { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.cc-head-r b { font-size: 20px; }
.cc-menu { margin-top: 10px; }
.cc-evcard .cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 8px; }
.cc-evcard .cc-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.cc-evcard .cc-kpis b { font-size: 20px; }
.cc-sec-row td { font-weight: 700; background: var(--soft, #f3f0e8); }
.cc-evcard tr.cc-go { cursor: pointer; }
.cc-evcard tr.cc-go a { color: inherit; text-decoration: none; }
.cc-evcard tr.cc-go a::after { content: ' ›'; color: var(--muted); }
.cc-evcard tr.cc-go:hover td, .cc-evcard tr.cc-go:active td { background: var(--soft, #f3f0e8); }
/* food cost przy przepisie na liście: mały, nie przeszkadza */
.rc-fc { flex: none; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.rc-fc.miss { color: var(--red, #b3261e); border-color: color-mix(in srgb, var(--red, #b3261e) 35%, transparent); }
/* składanie dania w jednym oknie */
.cc-comp { display: flex; flex-direction: column; gap: 8px; }
.cc-comp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cc-comp-row > input[list] { flex: 1 1 12em; min-width: 0; width: auto; }
.cc-comp-hint { flex-basis: 100%; }
.cc-ingsec > summary { cursor: pointer; }
.cc-ingsec[open] > summary { margin-bottom: 8px; }
.cc-seclabel { margin: 14px 2px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Na sali: strefy z koordynatorami (27.10.2026) */
.fl-zonebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 0; }
.fl-zone { padding: 10px 12px; }
.fl-assign { border-top: 1px solid var(--line); padding-top: 10px; }
/* czat zespołu na górze obok Samouczka (27.10.2026) */
.tut-pill.chat-pill { position: relative; background: var(--white, #fff); color: var(--ink); border-color: var(--line); }
.tut-pill.chat-pill.on { background: var(--soft, #f3f0e8); }
.chat-pill-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #b3261e); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@media (max-width: 600px) { .tut-pill.chat-pill > span { display: none; } .tut-pill.chat-pill { padding: 8px; } }

/* 🖨 karta dania (PDF) w tabeli na karcie imprezy */
.cc-evcard tr.cc-go a.cc-print { text-decoration: none; font-size: 18px; padding: 4px 6px; }
.cc-evcard tr.cc-go a.cc-print::after { content: none; }

/* podpowiedzi surowca z Magazynu w kalkulacji, jak w Google (zamiast listy przeglądarki) */
.cc-ac { position: relative; display: block; flex: 1 1 200px; min-width: 0; }
.cc-ac > input { width: 100%; }
.cc-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #00000022; overflow: hidden; }
.cc-sugg:empty { display: none; }
.cc-sugg-b { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 14px; font-size: 16px; min-height: 44px; color: var(--ink); font-weight: 400; }
.cc-sugg-b:first-child { border-top: 0; }
.cc-sugg-b b { font-weight: 700; }
.cc-sugg-q { padding: 8px 14px 2px; font-size: 13px; color: var(--muted); }
.cc-sugg-b.on, .cc-sugg-b:hover { background: var(--soft); }

/* opis wykonania dania w kalkulacji + dyktowanie */
.cc-method { display: grid; gap: 6px; margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.cc-steps { margin: 0; padding-left: 20px; font-size: 14px; }
.dict-btn.on { background: #a3341d; color: #fff; border-color: #a3341d; }

/* Grafik na cały ekran (schedule.js fullScreen) */
body.gr-full .side, body.gr-full .topbar, body.gr-full .tabbar, body.gr-full .fb-fab, body.gr-full .chat-fab, body.gr-full #kbotHost, body.gr-full .hint-card { display: none !important; }
body.gr-full .shell, body.gr-full .side + .shell { margin-left: 0 !important; max-width: none !important; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)) !important; }

/* cały ekran: sama tabela dopasowana do szerokości ekranu, przewijanie tylko w dół (Piotr 28.10.2026) */
body.gr-full { --topbar-h: 52px; }
.gr-fullbar { position: sticky; top: 0; z-index: 30; height: 52px; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; background: var(--paper); border-bottom: 1px solid var(--line); margin: 0 calc(-1 * max(12px, env(safe-area-inset-left))) 0; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
body.gr-full .sheet-wrap { overflow: visible !important; max-height: none !important; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
body.gr-full .sheet-table.wide { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
body.gr-full .sheet-table.wide th, body.gr-full .sheet-table.wide td { min-width: 0 !important; padding: 5px 1px; font-size: clamp(10px, 1.05vw, 14px); overflow: hidden; text-overflow: ellipsis; }
body.gr-full .sheet-table.wide th.sh-day { width: 4.6em; text-overflow: clip; }
body.gr-full .sheet-table.wide th.sh-name { white-space: normal; overflow: visible; height: auto; line-height: 1.15; padding: 4px 2px; font-size: clamp(10px, 1vw, 13px); }
body.gr-full .sheet-table thead { position: sticky; top: 52px; z-index: 6; }
body.gr-full .sheet-table thead th { position: static; }
body.gr-full .sheet-table tfoot th, body.gr-full .sheet-table tfoot td { position: static; }
body.gr-full .list-only { display: none !important; }
body.gr-full .table-only { display: block !important; }

/* kolumny obsady Bistro w arkuszu grafiku */
.sheet-table .sh-loc { background: #eef3ea; font-weight: 700; color: #20372d; }
html.theme-wilk .sheet-table .sh-loc { background: #efe9e7; color: #1c1717; }
body.gr-full .sheet-table.wide thead tr:first-child th.sh-loc { width: 6.4em; }
body.gr-full .sheet-table.wide td.sh-loc { text-overflow: clip; }

.sheet-table .sh-clear { display: block; margin: 2px auto 0; border: 0; background: none; color: var(--danger, #a3341d); font-size: 11px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
body.gr-full .sheet-table .sh-clear { font-size: 10px; }

/* tryb „Prośba o wolne” w arkuszu */
.sheet-table td.req-pick { background: #c4b5fd !important; box-shadow: inset 0 0 0 2px #6d28d9; }
.pick-bar { position: sticky; top: var(--topbar-h, 0px); z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin: 8px 0; background: #ede9fe; color: #3b0764; border: 1px solid #c4b5fd; border-radius: 12px; font-weight: 600; }
.gr-fullbar > * { flex: none; }
body.gr-full .pick-bar { top: 52px; margin: 0; border-radius: 0; }

/* Kto co widzi (28.10.2026) */
.acc-matrix th.acc-th { font-size: 11.5px; font-weight: 600; min-width: 92px; max-width: 120px; white-space: normal; vertical-align: bottom; }
.acc-matrix td.acc-cell { text-align: center; }
.acc-matrix td.acc-cell input { width: 20px; height: 20px; }
.acc-matrix td.acc-own { background: color-mix(in srgb, var(--accent, #2f6f4f) 12%, transparent); font-weight: 700; }
.acc-matrix td:first-child, .acc-matrix th:first-child { position: sticky; left: 0; background: var(--card, #fff); z-index: 1; }
/* nagłówek tabel uprawnień stoi w miejscu przy przewijaniu (28.10.2026, Piotr: „górny pasek uprawnień trzeba zablokować”) */
.acc-wrap { max-height: 72vh; overflow: auto; }
.acc-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--card, #fff); box-shadow: 0 1px 0 var(--line, #ddd); }
.acc-matrix thead th:first-child { z-index: 3; }
/* 29.10.2026: kuchnia dziś zwinięta (Start właściciela / biura) */
.dc-compact > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.dc-compact > summary::-webkit-details-marker { display: none; }
.dc-compact > summary::after { content: 'pokaż ›'; margin-left: auto; color: var(--muted, #777); font-size: .85em; }
.dc-compact[open] > summary::after { content: 'zwiń'; }
.dc-compact[open] > summary { margin-bottom: 10px; }
/* 29.10.2026: sprawy zespołu (Start szefowej i „Moje sprawy”) */
.tt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tt-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line, #e3ded3); border-radius: 12px; min-width: 0; }
.tt-head { display: flex; gap: 8px; align-items: center; }
.tt-head small { display: block; }
.tt-sys { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-bottom: 1px dashed var(--line, #e3ded3); }
.tt-line { font-size: .85em; color: inherit; text-decoration: none; }
.tt-line:hover { text-decoration: underline; }
.tt-line.warn { color: var(--neg, #b3261e); font-weight: 600; }
.tt-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; width: 100%; text-align: left; background: var(--card, #fff); border: 1px solid var(--line, #e3ded3); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.tt-row.budget { border-left: 4px solid #c99a2e; }
.tt-row.fresh { border-left: 4px solid var(--accent, #20372d); }
.tt-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-tx small { overflow-wrap: anywhere; }
.tt-st { flex: none; font-size: .75em; padding: 2px 8px; border-radius: 999px; background: #ece8df; color: #333; white-space: nowrap; }
.tt-doing { background: #dbe9ff; color: #1d3f7a; } .tt-waiting { background: #fff0c2; color: #6b4e00; } .tt-done, .tt-approved { background: #dcefdc; color: #1f5a1f; } .tt-rejected, .tt-cancelled { background: #f6d9d6; color: #7a1f17; }
.tt-budgets { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 10px; border-radius: 12px; background: #fbf4e2; }
.tt-add { align-self: flex-start; margin-top: 4px; }
.tt-log { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow: auto; }
.tt-area-edit .row { flex-wrap: wrap; gap: 6px; }
/* 29.10.2026: Zadania jak Trello */
.zad { display: flex; flex-direction: column; gap: 12px; }
.zad-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.zad-bar .row { gap: 6px; flex-wrap: wrap; }
.zad-bar .chip { width: auto; display: inline-flex; align-items: center; margin: 0; }
.chip { border: 1px solid var(--line, #d8d2c4); background: var(--card, #fff); color: inherit; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .9em; cursor: pointer; }
.chip.on { background: var(--accent, #20372d); border-color: var(--accent, #20372d); color: #fff; }
.zb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.zcol { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(32, 55, 45, .06); min-height: 120px; min-width: 0; }
.zcol.over { outline: 2px dashed var(--accent, #20372d); }
.zcol-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 2px 4px; }
.zcol-empty { padding: 8px 2px; }
.zcol-add { align-self: flex-start; }
.zc { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; background: var(--card, #fff); border: 1px solid var(--line, #e3ded3); box-shadow: 0 1px 2px rgba(0,0,0,.06); cursor: grab; }
.zc:hover { border-color: var(--accent, #20372d); }
.zc.drag { opacity: .5; }
.zc.late { border-left: 4px solid var(--neg, #b3261e); }
.zc.fresh { border-left: 4px solid var(--accent, #20372d); }
.zc-t { overflow-wrap: anywhere; }
.zc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .8em; color: var(--muted, #6b665c); }
.zc-who { background: #ece8df; color: #333; border-radius: 999px; padding: 1px 8px; }
.zc-last { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tt-bar { height: 5px; border-radius: 3px; background: #e6e1d6; overflow: hidden; }
.tt-bar > span { display: block; height: 100%; background: #3d7a4e; }
.tt-steps { display: flex; flex-direction: column; gap: 6px; }
.tt-step { display: flex; gap: 8px; align-items: center; }
.tt-step.done span { text-decoration: line-through; color: var(--muted, #6b665c); }
.tt-step .tt-x { margin-left: auto; border: 0; background: none; font-size: 1.1em; cursor: pointer; color: var(--muted, #6b665c); }
.tt-note { white-space: pre-wrap; }
/* 29.10.2026: najważniejsza impreza (PKB) i wojsko w złotówkach */
.fc { border-top: 4px solid #c99a2e; }
.fc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fc-head h2 { margin: 2px 0; }
.fc-count { text-align: center; min-width: 72px; padding: 6px 10px; border-radius: 12px; background: #fbf4e2; }
.fc-count b { display: block; font-size: 2em; line-height: 1; }
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.fc-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #e3ded3); min-width: 0; }
.fc-stat b { font-size: 1.25em; }
.fc-stat.warn { border-color: #e2b4ad; background: #fdf1ef; }
.fc-link { position: relative; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; background: var(--white, #fff); transition: box-shadow .15s, transform .15s; }
.fc-link.warn { background: #fdf1ef; }
.fc-link:hover, .fc-link:focus-visible { box-shadow: 0 4px 14px rgba(0, 0, 0, .1); transform: translateY(-1px); }
.fc-go { position: absolute; top: 6px; right: 10px; font-size: 20px; color: var(--muted); }
.fm-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fm-row.ok { color: #2f6b4f; }
.fm-tx { display: grid; gap: 2px; min-width: 0; }
.fm-in input { flex: 1 1 120px; min-width: 0; }
.fm-in select { flex: 0 1 140px; }
.fc-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.am-top { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; margin: 6px 0 10px; }
.am-big { font-size: 2em; font-weight: 700; line-height: 1.1; }
.am-legend { display: flex; flex-direction: column; gap: 3px; font-size: .9em; }
.am-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.am-chart { width: 100%; height: auto; display: block; }
.am-ax { font-size: 10px; fill: var(--muted, #6b665c); }
.am-base { stroke: var(--line, #d8d2c4); }
.am-months { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; overflow-x: auto; }
.am-m { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; font-size: .8em; }
.am-m.cur b { color: #2f6b4f; }
.am-mbar { width: 26px; height: 60px; display: flex; align-items: flex-end; background: #f1ede4; border-radius: 4px; overflow: hidden; }
.am-mbar span { width: 100%; background: #2f6b4f; }
.tt-mine.tt-alert { border: 2px solid var(--neg, #b3261e); box-shadow: 0 0 0 4px rgba(179, 38, 30, .08); }
.tt-mine.tt-alert h2 { color: var(--neg, #b3261e); }
.tt-pop { display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--accent, #20372d); }
/* 29.10.2026: wilk Probatum w lewym górnym rogu = powrót na Start */
.page-title:has(.pt-wolf) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.page-title .pt-wolf { grid-row: span 2; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, #e3ded3); }
.page-title .pt-wolf:active { transform: scale(.94); }
.page-title .pt-wolf img { width: 32px; height: 32px; object-fit: contain; }
.page-title .pt-wolf ~ * { grid-column: 2; }
@media (max-width: 999px) { .page-title .pt-wolf + .pt-name { display: none; } }
@media (min-width: 1000px) { .side + .shell .page-title .pt-wolf { display: none; } .side + .shell .page-title:has(.pt-wolf) { display: flex; } }
.am-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.am-nav b { min-width: 9em; text-align: center; font-size: 1.1em; text-transform: capitalize; }
.am-nav .btn { min-width: 44px; font-size: 1.3em; line-height: 1; }
button.am-m { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px; border-radius: 8px; }
button.am-m.cur { background: rgba(47, 107, 79, .1); }
/* 29.10.2026: „Wrzuć plik” */
.sd-pill { gap: 6px; }
@media (max-width: 700px) { .sd-pill span { display: none; } }
.sd-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #e3ded3); background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; }
.sd-opt:hover { border-color: var(--accent, #20372d); }
.sd-prev { max-height: 220px; width: auto; max-width: 100%; border-radius: 10px; object-fit: contain; align-self: center; }
.sd-veil { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: rgba(32, 55, 45, .55); color: #fff; font-size: 1.4em; pointer-events: none; }
/* 29.10.2026: Rentowność */
.rent-tbl td.num, .rent-tbl th.num { text-align: right; white-space: nowrap; }
.rent-tbl .pos { color: #2f6b4f; } .rent-tbl .neg, .rent .neg { color: var(--neg, #b3261e); }
.rent-bar { display: block; height: 4px; margin-top: 3px; background: #ece8df; border-radius: 2px; overflow: hidden; }
.rent-bar span { display: block; height: 100%; margin-left: auto; background: #3d7a4e; } .rent-bar span.neg { background: var(--neg, #b3261e); }
.rent-total td { border-top: 2px solid var(--line, #d8d2c4); }
.rent-fixed td { color: var(--muted, #6b665c); }
.rent-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.rent-dept { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-left: 4px solid #3d7a4e; }
.rent-dept.warn { border-left-color: #c99a2e; } .rent-dept.over { border-left-color: var(--neg, #b3261e); }
.rent-big { font-size: 1.4em; font-weight: 700; }
.rent-gaps { display: flex; flex-direction: column; gap: 4px; background: #fdf6e8; }
.rent-gaps a { color: inherit; }
/* 29.10.2026, Piotr: „nie za dużo tego u góry?” — na telefonie u góry tylko wilk, 📎, Odbij i dzwonek; Samouczek, Czat i „Jako…” w „Więcej” */
@media (max-width: 700px) {
  .topbar a.tut-pill[href="#/samouczek"], .topbar .va-open, .topbar .chat-pill:not(:has(.chat-pill-n)) { display: none; }
  .topbar .page-title .pt-wolf { flex: none; }
  .topbar .top-right { gap: 8px; }
}
@media (min-width: 701px) { .more-phone { display: none; } }

/* grafiki zespołów i grafik imprez (29.10.2026) */
.team-chips { gap: 6px; margin: 0 0 10px; align-items: center; }
.sh-cell.has-ev, td.has-ev { box-shadow: inset 0 -3px 0 #c99a2e; }
td.has-ev-clash { box-shadow: inset 0 -3px 0 #b3261e; background: #fdf1ef; }
.eg-month td.eg-cell { vertical-align: top; min-width: 120px; }
.egc-ev { display: grid; gap: 1px; text-decoration: none; color: inherit; padding: 4px 6px; border-radius: 8px; background: rgba(201, 154, 46, .14); margin-bottom: 3px; }
.egc-ev small { font-size: 11px; color: var(--muted); }
.busy-note { display: block; font-size: 11px; color: var(--muted); padding: 1px 6px; }
.busy-note.clash { color: #b3261e; font-weight: 700; }
.eg-day small { display: block; font-weight: 400; font-size: 11px; }
.kt-row { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fm-hits { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-hit { text-align: left; white-space: normal; }

/* koszty imprezy dla szefowej (29.10.2026) */
.ec-sec { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.ec-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ec-sum { margin-left: auto; }
.ec-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ec-row > span:first-child { min-width: 0; }
.ec-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.ec-part { display: block; min-width: 3px; }
.ec-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.ec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ec-kitchen { background: #2f6b4f; } .ec-floor { background: #5a8fb8; } .ec-decor { background: #c27ba0; } .ec-general { background: #9a8f7a; } .ec-profit { background: #d9c27a; }
.ec-c-food { background: #2f6b4f; } .ec-c-cooks { background: #7aa874; } .ec-c-waiters { background: #5a8fb8; } .ec-c-decor { background: #c27ba0; } .ec-c-drinks { background: #d9a441; } .ec-c-other { background: #b98b5e; } .ec-c-general { background: #9a8f7a; }
.ec-cats td:first-child { white-space: nowrap; }
.zc { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.zc.drag { opacity: .35; }
.zc-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); opacity: .95; }
/* Drużyny na kolację (29.10.2026) */
.tm-board { grid-auto-columns: minmax(210px, 1fr); }
.tm-col select { margin-top: 4px; font-size: 14px; }
.tm-card { cursor: grab; }
.tm-card.open { cursor: default; border-color: var(--accent, #20372d); }
.tm-edit { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line, #e3ded3); gap: 8px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #ece8df; font-size: 13px; }
.tm-x { border: 0; background: none; cursor: pointer; font-size: 12px; padding: 2px 4px; color: inherit; }
.tm-course { padding: 6px 0; border-top: 1px solid var(--line, #e3ded3); }
.tm-todo { border-left: 4px solid #c9a35a; }
.btn.tm-taken:not(.primary) { opacity: .45; text-decoration: line-through; }
dialog:has(.tm-board) { width: min(1400px, 100vw); }
.tm-h { align-items: center; }
.tm-h > b { flex: 1; min-width: 0; }
.tm-hbtn { display: inline-flex; gap: 2px; }
.tm-hbtn .btn { min-height: 28px; padding: 0 8px; font-size: 13px; border-color: transparent; background: none; }
/* dymek dnia na wykresie wojska (29.10.2026) */
.am-wrap { position: relative; }
.am-hit { cursor: pointer; }
.am-hit.on { fill: rgba(32, 55, 45, .08); }
.am-tip { position: absolute; top: 4px; transform: translateX(-50%); width: min(300px, 92%); z-index: 3; background: var(--card, #fff); border: 1px solid var(--line, #e3ded3); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; pointer-events: none; }
.am-th { display: flex; justify-content: space-between; gap: 8px; }
.am-tr { display: grid; grid-template-columns: 10px auto; column-gap: 6px; align-items: center; }
.am-tr i { width: 10px; height: 10px; border-radius: 2px; }
.am-tr span { grid-column: 2; color: var(--muted, #6b665c); }
.am-tip[hidden] { display: none; }
/* tablica zadań na Starcie (29.10.2026) */
.zad-home { min-width: 0; max-width: 100%; overflow: hidden; }
.zad-home .zad-bar, .zad-home .zad-bar > * { flex-wrap: wrap; min-width: 0; }
.zad-home .zb { max-width: 100%; }
.zad-home { grid-template-columns: minmax(0, 1fr); } .zad-home > *, .zad-home .zad > * { min-width: 0; } .zad-home .card-head { flex-wrap: wrap; }
/* 29.10.2026, Piotr: „czemu po prawej mam 1/4 monitora pustą? mógłbym mieć cały grafik bez przesuwania paskiem” — szerokie tabele na całą szerokość */
@media (min-width: 1000px) {
  body[data-route="schedule"] .side + .shell, body[data-route="eventgrid"] .side + .shell, body[data-route="zadania"] .side + .shell { max-width: none; }
}
/* Start dopasowany do osoby (30.10.2026): „Do zrobienia dziś”, karty w slotach, Dostosuj Start */
.start-slot:empty { display: none; }
.start-slot { display: grid; gap: 12px; min-width: 0; }
.todo-card .drow.todo-p1 b { color: var(--ink, inherit); }
.todo-card .drow .row { flex-wrap: wrap; gap: 6px; }
.start-tune { justify-content: center; margin: 8px 0 24px; }
.tune-row { flex-wrap: nowrap; padding: 6px 0; border-top: 1px solid var(--line); }
.tune-row:first-child { border-top: 0; }
/* PKB na pierwszym miejscu (30.10.2026): kafelek najważniejszej imprezy wyróżniony, działy z osobą prowadzącą */
.fc.fc-hero { border: 2px solid #c99a2e; border-top-width: 6px; background: linear-gradient(180deg, #fbf4e2 0, var(--white) 140px); box-shadow: 0 12px 34px #c99a2e33; }
.fc-hero .fc-head h2 { font-size: 1.6em; }
.fc-hero .fc-count { background: #c99a2e; color: #fff; }
.fc-hero .fc-count small { color: #fff; }
.fc-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.fc-dept { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; min-width: 0; background: var(--white); }
.fc-dept.mine { border: 2px solid var(--green); }
.fc-dh { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-dh .fc-st { margin-left: auto; font-size: .8em; padding: 2px 8px; border-radius: 999px; }
.fc-st.ok { background: var(--soft); color: var(--ok); } .fc-st.warn { background: var(--warn-bg); color: var(--warn); }
.fc-mine { font-size: .75em; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green); color: var(--green-ink); }
.fc-dept ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: .92em; }
.fc-dept li.warn { color: var(--warn); font-weight: 600; }
.fc-dept .row { flex-wrap: wrap; gap: 6px; }
html.mode-dark:not(.in-pracownia) .fc.fc-hero { background: linear-gradient(180deg, #3a3222 0, var(--white) 140px); }
/* kalkulacja w skrócie dla zarządu (30.10.2026): danie · food cost % · Rozwiń */
.cc-brief { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-top: 6px; flex-wrap: wrap; }
.cc-brief-n { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.cc-brief-fc { display: grid; text-align: right; min-width: 70px; }
.cc-brief-fc b { font-size: 1.25em; }
.cc-brief + .cc-dish:not([hidden]) { margin-top: 6px; border-color: var(--green); }
details.fc-dept > summary.fc-dh { cursor: pointer; list-style: none; }
details.fc-dept > summary.fc-dh::-webkit-details-marker { display: none; }
details.fc-dept > summary.fc-dh::after { content: '▾'; color: var(--muted); margin-left: 4px; }
details.fc-dept[open] > summary.fc-dh::after { content: '▴'; }
details.fc-dept:not([open]) { padding-block: 8px; }
.fc-depts { align-items: start; }

/* Posty i rolki (30.10.2026) */
.ct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ct-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.ct-thumb { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.ct-body { display: grid; gap: 6px; min-width: 0; }
.ct-cap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.ct-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ct-file { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.ct-file img, .ct-file video { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.ct-empty { display: grid; place-items: center; min-height: 80px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.warn-text { color: var(--warn); }
/* Zaproszenia (30.10.2026) */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.inv-card { margin: 0; }
.inv-qr { width: 200px; max-width: 100%; background: #fff; border-radius: 10px; padding: 6px; }
.inv-qr svg { display: block; width: 100%; height: auto; }
.inv-url { word-break: break-all; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); user-select: all; }
/* Start z klocków (30.10.2026, Piotr: „ułożenie ekranu głównego z klocków jak w Organizerze”): siatka 6 kolumn, mały 2, średni 3, duży 6 */
.blk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 8px; }
.blk-grid > .blk, .blk-grid > :not(.blk) { grid-column: span 6; }
.blk-grid > .blk[data-size="m"] { grid-column: span 3; }
.blk-grid > .blk[data-size="s"] { grid-column: span 2; }
.blk-grid > .blk > .card, .blk-grid > .blk > section { margin: 0; }
.blk-grid > .blk .quick { margin-bottom: 0; }
@media (max-width: 760px) {
  .blk-grid > .blk[data-size="m"] { grid-column: span 6; }
  .blk-grid > .blk[data-size="s"] { grid-column: span 3; }
}
@media (max-width: 420px) { .blk-grid > .blk[data-size="s"] { grid-column: span 6; } }
.blk-grid.editing > .blk { outline: 2px dashed var(--line); outline-offset: 4px; border-radius: var(--radius); padding: 2px; background: var(--paper); }
.blk-grid.editing > .blk.blk-drag { opacity: .55; outline-color: var(--green); }
.blk-grid.editing > .blk > :not(.blk-bar) { pointer-events: none; }
.blk-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; min-width: 0; flex-wrap: wrap; }
.blk-name { flex: 1 1 9em; min-width: 0; font-size: 14px; }
.blk-tools { margin-left: auto; }
.blk-grip { cursor: grab; touch-action: none; font-size: 20px; line-height: 1; padding: 6px 4px; color: var(--muted); user-select: none; }
.blk-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.blk-sz { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.blk-sz.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.blk-sz.blk-x { color: var(--danger); }
.blk-empty { margin: 6px 4px; }
.blk-edit { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; gap: 8px; padding: 12px; margin-bottom: 14px; background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.blk-edit-t { display: grid; gap: 2px; }
.blk-edit .row { flex-wrap: wrap; gap: 6px; }
.blk-gal { align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.blk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.blk-pick .check { display: flex; align-items: center; gap: 6px; }
.blk-note textarea { width: 100%; min-height: 90px; box-sizing: border-box; }
.blk-open { gap: 6px; }
@media (max-width: 760px) { .blk-edit { position: static; } .blk-edit .btn.small { min-height: 40px; } }
/* załączniki zadań (30.10.2026) */
.tt-files { display: grid; gap: 6px; }
.tt-file { align-items: center; gap: 8px; flex-wrap: nowrap; }
.tt-file a { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Funkcja imprezy (06.11.2026) */
.rs-nav { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.rs-nav a { white-space: nowrap; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; background: var(--white); }
.rs-sched { display: grid; gap: 0; }
.rs-srow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.rs-srow.now { background: var(--warn-bg); border-left: 4px solid var(--accent); }
.rs-st { display: grid; align-content: start; gap: 2px; }
.rs-st b { font-variant-numeric: tabular-nums; }
.rs-task { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; font-size: 15px; }
.rs-task > span:first-child { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 12px; font-weight: 700; color: #fff; }
.rs-k { background: #8a3b2e; } .rs-s { background: #20372d; } .rs-b { background: #6b4b8a; }
.rs-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rs-cols > .card { margin: 0; }
.rs-station ul, .rs-zone ul { margin: 6px 0 0; padding-left: 18px; }
.rs-zone { display: grid; gap: 4px; }
.rs-mine { border: 2px solid var(--accent); }
.rs-menu h3 { margin: 10px 0 2px; font-size: 15px; color: var(--green); }
.rs-menu div { font-size: 15px; padding: 1px 0; }
.rs-check { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: start; font-size: 15px; padding: 4px 0; }
.rs-check input { width: 22px; height: 22px; }
.rs-check > span.small { grid-column: 2; }
.rs-plan { width: 100%; max-width: 900px; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.rs-note { background: var(--soft); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.rs-ed-row { margin: 0; }
.rs-ed-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rs-w-s { grid-column: span 1; } .rs-w-m { grid-column: span 2; } .rs-w-l { grid-column: span 6; }
.rs-ed-grid textarea, .rs-ed-grid input { width: 100%; }
.rs-dmg-form .f { min-width: 0; }
@media (max-width: 760px) { .rs-ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rs-w-s { grid-column: span 1; } .rs-w-m, .rs-w-l { grid-column: span 2; } .rs-srow { grid-template-columns: 70px 1fr; gap: 8px; } }
.rs-guide { border: 2px solid var(--accent); background: var(--warn-bg); }
.rs-guide.rs-ready { border-color: var(--ok); background: var(--soft); }
.rs-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.rs-steps li { font-size: 15px; } .rs-steps li > span { display: block; margin-bottom: 4px; }
.rs-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-todo li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.rs-todo li.ok { color: var(--muted); }
.rs-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); font-size: 13px; font-weight: 700; }
.rs-todo li.ok .rs-dot { background: var(--ok); border-color: var(--ok); color: var(--white); }
.rs-course { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 15px; padding: 4px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .rs-course { grid-template-columns: 1fr; gap: 2px; } }
.plan-svg .plan-chair { fill: var(--white); stroke: var(--muted); stroke-width: .06; }

/* Karta imprezy po audycie (06.11.2026): zakładki, kafelki, „Więcej” */
.wed-actions { align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.wed-tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 2px solid var(--line); margin: 4px 0 14px; position: sticky; top: 0; z-index: 4; background: var(--paper); }
.wed-tab { border: 0; background: none; padding: 12px 14px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; cursor: pointer; min-height: 48px; }
.wed-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.wed-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.wed-tile { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; color: inherit; cursor: pointer; }
.wed-tile small { color: var(--muted); font-size: 13px; } .wed-tile b { font-size: 22px; } .wed-tile span { font-size: 13px; color: var(--muted); }
.wed-more { position: relative; }
.wed-more > summary { list-style: none; } .wed-more > summary::-webkit-details-marker { display: none; }
.wed-more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 6px; padding: 10px; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.wed-more-list .btn { justify-content: flex-start; width: 100%; }
.crew-day > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.crew-tel2 { text-decoration: none; margin-left: 4px; }
.crew-card .crew-chip { font-size: 14px; }
@media (max-width: 760px) { .wed-more-list { right: auto; left: 0; } }
.wed-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.wed-two > .card { margin: 0; }
/* Rozstaw obsługi na cały ekran (06.11.2026) */
dialog:has(.pg-sheet) { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; }
dialog:has(.pg-sheet) .sheet { min-height: 100%; }
dialog:has(.pg-sheet) .pg-plan .plan-zoom { max-height: calc(100vh - 230px); height: calc(100vh - 230px); }
dialog:has(.pg-sheet) .pg-plan .plan-svg { max-height: none; }
.rs-lead { font-size: 15px; }
.prod-who { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.prod-who-chip { display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; }
.prod-who select { max-width: 220px; }
.plan-svg .plan-group-g { pointer-events: none; }
.plan-svg .plan-group { stroke: none; }
.plan-svg .plan-group-label { font-weight: 700; fill: #2b2b2b; }
/* Funkcja imprezy po audycie (06.11.2026): punkt po punkcie */
.rs-list { display: grid; gap: 0; }
.rs-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rs-row-main { min-width: 0; }
.rs-pen { border: 1px solid var(--line); background: var(--white); border-radius: 10px; width: 40px; height: 40px; font-size: 16px; cursor: pointer; color: var(--ink); }
.rs-pen:hover { border-color: var(--accent); }
.rs-form { display: grid; gap: 10px; padding: 12px; margin: 6px 0; border: 2px solid var(--accent); border-radius: 12px; background: var(--white); }
.rs-list > .btn { justify-self: start; margin-top: 8px; }
.rs-row .rs-srow { border-bottom: 0; padding: 0; }
.rs-role { display: grid; grid-template-columns: minmax(90px, 140px) 1fr minmax(120px, 200px); gap: 8px; align-items: baseline; }
.rs-role > :nth-child(4) { grid-column: 2 / -1; }
.rs-room, .rs-rent { display: grid; gap: 2px; }
.rs-ul { margin: 2px 0 0; padding-left: 18px; }
.rs-sec { display: grid; gap: 6px; margin: 0; }
.rs-dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-dish { display: grid; gap: 4px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rs-dish-name { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.rs-dish-name .rs-pen { width: 32px; height: 32px; font-size: 14px; flex: none; }
.rs-who { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rs-who-sel { max-width: 200px; font-size: 14px; padding: 4px 8px; }
.rs-place { border: 1px dashed var(--muted); background: none; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.rs-recon { border: 2px solid var(--accent); background: var(--warn-bg); }
.rs-recon-g { padding: 8px 0; border-top: 1px solid var(--line); }
.rs-recon-i { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; font-size: 15px; }
.rs-plan-live .plan-zoom { max-height: 70vh; height: 60vh; }
@media (max-width: 760px) { .rs-role { grid-template-columns: 1fr; } .rs-recon-i { grid-template-columns: 1fr; } }
.rs-recon-g > summary { cursor: pointer; padding: 6px 0; } .rs-recon-g[open] > summary { margin-bottom: 6px; }
.tm-card.tm-leader { background: var(--warn-bg); border: 2px solid var(--accent); }
.tm-leader-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-bottom: 4px; }
.tm-hint { background: var(--soft); border-radius: 8px; padding: 6px 8px; margin: 6px 0 0; }
.tm-lead { width: 100%; margin: 4px 0 6px; }
#rs-menu .rs-cols { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); align-items: start; }
.rs-sec > .btn, .rs-sec .row + .btn { justify-self: start; }
.rs-sec { align-content: start; }
.rs-dish { grid-template-columns: 1fr; }
.rs-dish-name > span:first-child { flex: 1; }
@media (max-width: 760px) { #rs-menu .rs-cols { grid-template-columns: 1fr; } }
/* Wyjście z okna zawsze na widoku (06.11.2026): duży przycisk powrotu z nazwą miejsca */
.sheet-head-back { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 6; background: var(--paper); padding: 10px 0; }
.sheet-head-back h2 { margin: 0; font-size: 18px; }
.sheet-back { min-height: 48px; font-size: 16px; }
.pg-how { margin: 0; padding-left: 22px; display: grid; gap: 2px; font-size: 15px; }

/* POS waiter */
body[data-route="pos"] .fb-fab, body[data-route="pos"] .chat-fab { display: none; }   /* przyciski „Pomoc” i czat zasłaniały sumę i przyciski wysyłania */
@media (min-width: 1000px) { body[data-route="pos"] .side + .shell { max-width: none; padding: 0 20px 24px; } }
.pos-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pos-head h1 { font-size: 28px; }
.pos-net { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 12px; }
.pos-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pos-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 2px solid var(--line); }
.pos-board { display: grid; gap: 20px; }
.pos-zone h2 { margin-bottom: 10px; }
.pos-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pos-tile { min-height: 120px; padding: 12px 14px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--white); text-align: left; display: flex; flex-direction: column; gap: 4px; justify-content: space-between; }
.pos-tile:active { transform: scale(.98); }
.pos-t-no { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pos-t-st { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pos-t-sub { display: flex; flex-direction: column; font-size: 14px; gap: 1px; opacity: .85; }
.pos-t-sub b { font-size: 18px; opacity: 1; }
.pos-st-free { background: var(--white); border-color: var(--line); color: var(--ink); }
.pos-st-open { background: var(--soft); border-color: var(--green); color: var(--ink); }
.pos-st-kitchen { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.pos-st-ready { background: var(--lime); border-color: var(--ok); color: var(--ink); box-shadow: 0 0 0 3px #2f6f4f33; }
.pos-st-pay { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.pos-st-reserved { background: var(--paper); border: 2px dashed var(--muted); color: var(--muted); }
.pos-big { min-height: 56px; font-size: 17px; }
.pos-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pos-stepper .btn { min-width: 64px; font-size: 26px; }
.pos-guests-n { font-size: 40px; min-width: 56px; text-align: center; }
.pos-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-quick .btn { min-width: 56px; }
.pos-chipbtn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 700; }
.pos-chipbtn.big { min-height: 52px; padding: 0 20px; font-size: 16px; }
.pos-chipbtn.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.pos-req { color: var(--danger); font-weight: 700; }

.pos-check { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.pos-menu { display: grid; gap: 10px; min-width: 0; }
.pos-menu input[type=search] { width: 100%; min-height: 52px; font-size: 17px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); }
.pos-seats, .pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; align-items: center; scrollbar-width: thin; }
.pos-seats > *, .pos-cats > * { flex: none; }
.pos-seat-l { font-weight: 700; color: var(--muted); }
.pos-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pos-dish { position: relative; }
.pos-dish-main { width: 100%; min-height: 104px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); padding: 12px 14px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.pos-dish-main:active:not(:disabled) { background: var(--soft); border-color: var(--green); }
.pos-dish-main:disabled { opacity: .6; }
.pos-d-name { font-weight: 700; font-size: 16px; line-height: 1.2; padding-right: 36px; }
.pos-d-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pos-tag { font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ok); padding: 2px 8px; border-radius: 999px; }
.pos-d-count { position: absolute; right: 8px; bottom: 8px; background: var(--green); color: var(--green-ink); border-radius: 999px; min-width: 32px; text-align: center; padding: 2px 8px; font-weight: 800; }
.pos-dish-more { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; font-size: 22px; font-weight: 800; color: var(--muted); }
.pos-dish-more:active { background: var(--soft); }

.pos-bill { position: sticky; top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); grid-template-rows: auto minmax(0, 1fr) auto; }
.pos-lines { overflow-y: auto; display: grid; gap: 12px; align-content: start; min-height: 120px; }
.pos-sec { display: grid; gap: 8px; }
.pos-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pos-sec-draft h3 { color: var(--warn); }
.pos-empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.pos-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; background: var(--paper); }
.pos-row-draft { background: var(--white); border-color: var(--warn); border-left-width: 6px; }
.pos-row-sent { border-left: 6px solid var(--warn); }
.pos-row-served { border-left: 6px solid var(--ok); }
.pos-row-void { opacity: .65; text-decoration: line-through; }
.pos-row-void .pos-r-sub, .pos-row-void .pos-r-note { text-decoration: none; }
.pos-row-failed { border: 2px solid var(--danger); background: var(--danger-bg); }
.pos-r-top { display: flex; justify-content: space-between; gap: 8px; }
.pos-r-name { font-size: 16px; }
.pos-r-price { font-weight: 700; white-space: nowrap; }
.pos-r-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pos-badge { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pos-ls-draft { background: var(--warn-bg); color: var(--warn); }
.pos-ls-sent { background: var(--warn); color: #fff; }
.pos-ls-served { background: var(--ok); color: #fff; }
.pos-ls-void { background: var(--danger-bg); color: var(--danger); }
.pos-ls-sending { background: var(--soft); color: var(--muted); }
.pos-ls-failed { background: var(--danger); color: #fff; }
.pos-seatno { font-size: 13px; font-weight: 700; }
.pos-r-mods { font-size: 14px; font-weight: 600; }
.pos-r-note { font-size: 14px; font-style: italic; color: var(--muted); }
.pos-r-ctl { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pos-step { min-width: 52px; font-size: 22px; }
.pos-foot { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.pos-foot.busy { opacity: .7; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.pos-total b { font-size: 28px; }
.pos-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-actions > .row { grid-column: 1 / -1; }
.pos-actions .row { gap: 8px; }
.pos-actions .row .btn { flex: 1; }
.pos-more > summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.pos-more[open] > summary { margin-bottom: 8px; }
.pos-actions .pos-big { font-size: 15px; padding: 0 8px; }
.pos-itemsheet { min-width: min(520px, 86vw); }
.btn.busy { opacity: .6; }

@media (max-width: 860px) {
  .pos-check { grid-template-columns: minmax(0, 1fr); }
  .pos-bill { position: static; max-height: none; }
  .pos-foot { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--white); padding-bottom: 8px; }
  .pos-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
/* POS kitchen: wydawka (#/pos/expo), historia (#/pos/history), podgląd bonu. Klasy .pos-k-*; ekran wydawki zawsze ciemny, tekst min. 24 px */
.pos-k { --k-bg: #0f1512; --k-card: #1a2420; --k-card2: #222f29; --k-ink: #f1f4ee; --k-mut: #aab7ae; --k-line: #34443c; --k-yel: #f2c230; --k-yel-ink: #231c00; --k-grn: #3fae6e; --k-grn-ink: #04210f; --k-red: #e8746a; --k-fs: clamp(15px, 1.5vw, 24px); font-size: var(--k-fs); line-height: 1.25; }
.pos-k-dark { position: fixed; inset: 0; z-index: 40; background: var(--k-bg); color: var(--k-ink); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.pos-k-dark .muted, .pos-k-dark .small { color: var(--k-mut); font-size: var(--k-fs); }
.pos-k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--k-line); background: var(--k-card2); color: var(--k-ink); font: inherit; font-size: var(--k-fs); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation; }
.pos-k-btn:active { transform: translateY(1px); }
.pos-k-btn.sq { padding: 0; min-width: 56px; }
.pos-k-btn.go { background: var(--k-grn); border-color: var(--k-grn); color: var(--k-grn-ink); }
.pos-k-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: #0b100d; border-bottom: 2px solid var(--k-line); }
.pos-k-grp { display: inline-flex; gap: 4px; }
.pos-k-sp { flex: 1; }
.pos-k-count { font-size: calc(var(--k-fs) * 1.2); padding: 0 6px; }
.pos-k-conn { color: var(--k-red); font-weight: 700; }
.pos-k-title { font-size: calc(var(--k-fs) * 1.25); margin: 0 8px 0 0; }
.pos-k-hint-r { color: var(--k-mut); }
.pos-k-mid { display: grid; grid-template-columns: 1fr clamp(240px, 24vw, 340px); min-height: 0; }
.pos-k-board { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; align-items: start; padding: 14px; overflow-y: auto; min-height: 0; }
.pos-k-col { min-width: 0; display: block; }
.pos-k-empty, .pos-k-hint { color: var(--k-mut); padding: 20px 6px; }

.pos-k-card { margin: 0 0 14px; padding: 12px 14px 14px; border-radius: 14px; background: var(--k-card); border: 4px solid var(--k-line); display: block; cursor: pointer; -webkit-user-select: none; user-select: none; }
.pos-k-card.sel { border-color: var(--k-grn); box-shadow: 0 0 0 3px #3fae6e55; }
.pos-k-card.addon { border-style: dashed; }
.pos-k-chead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pos-k-tbl { font-size: calc(var(--k-fs) * 1.35); letter-spacing: -.01em; }
.pos-k-tag { font-size: var(--k-fs); font-weight: 800; padding: 1px 10px; border-radius: 8px; }
.pos-k-tag.call { background: var(--k-grn); color: var(--k-grn-ink); margin-left: auto; }
.pos-k-tag.st { background: var(--k-card2); color: var(--k-mut); border: 2px solid var(--k-line); }
.pos-k-tag.add { background: #7b5cd6; color: #fff; }
.pos-k-who { color: var(--k-mut); margin: 2px 0 8px; }
.pos-k-earlier { color: var(--k-mut); margin: 0 0 8px; }
.pos-k-earlier summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
.pos-k-course { margin: 0 0 8px; }
.pos-k-course.done .pos-k-line { opacity: .55; }
.pos-k-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--k-yel); color: var(--k-yel-ink); font: inherit; font-size: var(--k-fs); font-weight: 800; letter-spacing: .02em; cursor: pointer; touch-action: manipulation; }
.pos-k-bar-r { font-weight: 700; font-size: var(--k-fs); }
.pos-k-bar.done { background: var(--k-grn); color: var(--k-grn-ink); cursor: default; opacity: 1; }
.pos-k-bar.teraz { animation: pos-k-blink 1.2s ease-in-out infinite; outline: 4px solid #fff; background: #ff9f1c; }
.pos-k-bar.teraz .pos-k-bar-r { font-size: calc(var(--k-fs) * 1.2); }
@keyframes pos-k-blink { 50% { filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .pos-k-bar.teraz { animation: none; } }
.pos-k-line { padding: 6px 2px 2px; }
.pos-k-line-main { display: flex; align-items: baseline; gap: 8px; }
.pos-k-line-main b { min-width: 2.2em; }
.pos-k-name { flex: 1; font-weight: 700; }
.pos-k-age { color: var(--k-mut); font-size: var(--k-fs); margin-left: auto; white-space: nowrap; }
.pos-k-age.mid { color: var(--k-yel); } .pos-k-age.late { color: var(--k-red); font-weight: 800; }
.pos-k-note { margin: 0 0 0 2.2em; color: var(--k-mut); font-style: italic; }
.pos-k-note.hl { color: var(--k-yel-ink); background: var(--k-yel); font-style: normal; font-weight: 800; border-radius: 6px; padding: 0 8px; display: inline-block; }
.pos-k-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--k-line); color: var(--k-mut); }
.pos-k-side { background: #0b100d; border-left: 2px solid var(--k-line); padding: 12px 14px; overflow-y: auto; min-height: 0; }
.pos-k-side-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--k-mut); }
.pos-k-side-h b { color: var(--k-ink); font-size: calc(var(--k-fs) * 1.2); }
.pos-k-sum section { margin-bottom: 14px; }
.pos-k-sum h3 { margin: 0 0 4px; padding: 4px 10px; background: var(--k-card2); border-radius: 8px; font-size: var(--k-fs); color: var(--k-yel); text-transform: uppercase; letter-spacing: .04em; }
.pos-k-sumrow { display: flex; gap: 10px; padding: 3px 4px; border-bottom: 1px solid var(--k-line); }
.pos-k-sumrow b { min-width: 2.2em; color: var(--k-grn); }
.pos-k-bottom { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: #0b100d; border-top: 2px solid var(--k-line); min-height: 76px; }
.pos-k-tbtn { min-width: 84px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 3px solid var(--k-line); background: var(--k-card2); color: var(--k-ink); font: inherit; font-size: var(--k-fs); font-weight: 800; cursor: pointer; touch-action: manipulation; }
.pos-k-tbtn.sel { background: var(--k-grn); border-color: var(--k-grn); color: var(--k-grn-ink); }
.pos-k-tbtn small { font-size: var(--k-fs); font-weight: 600; }
.pos-k-undo { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 22px; border-radius: 16px; background: #fff; color: #10201a; font-size: var(--k-fs); font-weight: 700; box-shadow: 0 8px 30px #000a; }
.pos-k-undo[hidden] { display: none; }
.pos-k-undo-btn { background: #10201a; color: #fff; border-color: #10201a; }
/* historia */
.pos-k-hist:not(.pos-k-dark) { max-width: 1240px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; --k-bg: var(--paper); --k-card: var(--white); --k-card2: var(--soft); --k-ink: var(--ink); --k-mut: var(--muted); --k-line: var(--line); }
.pos-k-hist:not(.pos-k-dark) .pos-k-top { background: var(--soft); }
.pos-k-hist:not(.pos-k-dark) .pos-k-btn { background: var(--white); }
.pos-k-hist:not(.pos-k-dark) .pos-k-note.hl { background: #f5d36a; }
.pos-k-search { flex: 1; min-width: 220px; max-width: 520px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--k-line); background: var(--k-card2); color: var(--k-ink); font-size: var(--k-fs); }
.pos-k-hbody { display: grid; grid-template-columns: minmax(300px, 40%) 1fr; min-height: 0; overflow: hidden; }
.pos-k-hist:not(.pos-k-dark) .pos-k-hbody { min-height: 540px; }
.pos-k-hlist { overflow-y: auto; padding: 10px; border-right: 2px solid var(--k-line); display: flex; flex-direction: column; gap: 8px; align-content: start; }
.pos-k-hrow { display: block; text-align: left; width: 100%; padding: 10px 14px; min-height: 64px; border-radius: 12px; border: 3px solid var(--k-line); background: var(--k-card); color: var(--k-ink); font: inherit; font-size: var(--k-fs); cursor: pointer; }
.pos-k-hrow.on { border-color: var(--k-grn); }
.pos-k-hrow-h { display: flex; align-items: center; gap: 8px; }
.pos-k-hrow-s { color: var(--k-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-k-hcard { overflow-y: auto; padding: 14px 18px; color: var(--k-ink); }
.pos-k-hc-head { display: flex; align-items: center; gap: 10px; }
.pos-k-h3 { margin: 16px 0 6px; font-size: var(--k-fs); text-transform: uppercase; letter-spacing: .05em; color: var(--k-mut); }
.pos-k-hc-bar { display: inline-block; background: var(--k-yel); color: var(--k-yel-ink); font-weight: 800; padding: 2px 12px; border-radius: 8px; margin: 6px 0 2px; }
.pos-k-orig { padding: 4px 0 6px; border-bottom: 1px solid var(--k-line); }
.pos-k-seat { color: var(--k-mut); }
.pos-k-note.void { color: var(--k-red); font-style: normal; font-weight: 700; }
.pos-k-tl-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--k-line); }
.pos-k-tl-row em { color: var(--k-mut); }
.pos-k-hc-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pos-k-readonly { --k-ink: var(--ink); --k-mut: var(--muted); --k-line: var(--line); --k-yel: #f5d36a; --k-yel-ink: #231c00; font-size: var(--k-fs); }
/* bon papierowy */
.pos-k-slip-wrap { display: grid; gap: 12px; justify-items: center; }
.pos-k-slips { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: flex-start; }
.pos-k-slip { width: min(360px, 100%); background: #fff; color: #111; padding: 18px 20px 16px; font-family: "Courier New", ui-monospace, monospace; box-shadow: 0 4px 22px #0003; border-radius: 4px; }
.pos-k-sl-station { text-align: center; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #444; }
.pos-k-sl-title { text-align: center; font-size: 64px; font-weight: 900; line-height: 1.05; margin: 4px 0 8px; font-family: Inter, system-ui, sans-serif; }
.pos-k-sl-addon { text-align: center; font-weight: 900; font-size: 20px; border: 3px solid #111; margin: 0 0 8px; padding: 2px; }
.pos-k-sl-bar { background: #111; color: #fff; font-weight: 900; text-align: center; font-size: 20px; padding: 3px 0; margin: 10px 0 6px; letter-spacing: .06em; }
.pos-k-sl-main { font-size: 22px; font-weight: 700; }
.pos-k-sl-note { margin-left: 2.1em; font-size: 18px; }
.pos-k-sl-note.hl { font-weight: 900; background: #111; color: #fff; display: inline-block; padding: 0 6px; }
.pos-k-sl { margin-bottom: 6px; }
.pos-k-sl-sum { border-top: 3px solid #111; margin-top: 12px; padding-top: 6px; font-size: var(--k-fs); font-weight: 900; }
.pos-k-sl-foot { margin-top: 10px; font-size: 13px; color: #444; text-align: center; }
@media (max-width: 900px) { .pos-k-mid { grid-template-columns: 1fr; } .pos-k-side { display: none; } .pos-k-hbody { grid-template-columns: 1fr; } }

.pos-k-bar { flex-wrap: wrap; padding: 6px 12px; } .pos-k-bar > * { white-space: nowrap; }
.pos-k-line-main { gap: 6px; } .pos-k-name { min-width: 0; overflow-wrap: anywhere; } .pos-k-age { flex: none; font-size: .8em; }
.pos-k-card { padding: 10px 10px 12px; } .pos-k-foot { flex-wrap: wrap; } .pos-k-bottom { min-height: 0; }
.pos-k-top { gap: 6px; padding: 8px 10px; }
@media (min-width: 821px) { .pos-board { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 36px; } .pos-zone { flex: 0 1 auto; } .pos-zone .pos-tiles { grid-template-columns: repeat(var(--n, 4), 150px); } }
/* POS shell: kasa na cały ekran, układ telefonu i tabletu (07.11.2026) */
body.pos-only .side, body.pos-only .tabbar, body.pos-only .topbar { display: none !important; }
.pos-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pos-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 12px; background: #15321f; color: #f6f1e5; }
.pos-exit { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.pos-exit span:first-child { font-size: 30px; line-height: 1; }
.pos-top-title { font-size: 22px; flex: 1; }
.pos-top-user { font-size: 16px; opacity: .85; }
.pos-view { flex: 1; max-width: none; margin: 0; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.pos-tabs { display: none; }
.pos-check { grid-template-columns: minmax(0, 1fr) 460px; }
@media (min-width: 1500px) { .pos-check { grid-template-columns: minmax(0, 1fr) 560px; } }
@media (max-width: 820px) {
  .pos-view { padding: 8px 10px calc(150px + env(safe-area-inset-bottom)); }
  .pos-check { grid-template-columns: minmax(0, 1fr); }
  .pos-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; top: 60px; z-index: 20; background: #f3eee2; padding: 6px 0 8px; }
  .pos-tab { min-height: 56px; border-radius: 14px; border: 2px solid #15321f; background: #fff; color: #15321f; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .pos-tab[aria-selected="true"] { background: #15321f; color: #fff; }
  .pos-tab-n { background: #c9a35a; color: #15321f; border-radius: 14px; padding: 2px 11px; font-size: 17px; }
  .pos-check[data-tab="menu"] .pos-bill > h2, .pos-check[data-tab="menu"] .pos-lines { display: none; }
  .pos-check[data-tab="bill"] .pos-menu { display: none; }
  .pos-bill { position: static; max-height: none; border: 0; padding: 0; background: transparent; }
  .pos-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 2px solid #15321f; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 6px; }
  .pos-foot .pos-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pos-foot .pos-actions .row { grid-column: 1 / -1; }
  .pos-head h1 { font-size: 24px; }
  .pos-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .pos-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-tiles > * { min-height: 104px; } }
body.pos-only .hint-news, body.pos-only .hint-tip, body.pos-only .hint-pill, body.pos-only .fb-fab, body.pos-only .chat-fab { display: none !important; }   /* kasa: nic nie zasłania ekranu */

.pos-seat-hint { font-size: 14px; white-space: nowrap; }

/* POS: karta „Dziś” na wydawce, bar, widok szefa (07.11.2026) */
.pos-k-expo { grid-template-rows: auto auto 1fr auto; }
.pos-k-day { background: #0b100d; border-bottom: 2px solid var(--k-line); padding: 6px 12px; min-height: 0; }
.pos-k-dayrow { display: flex; align-items: center; gap: 10px; }
.pos-k-dayrow .pos-k-btn { min-height: 40px; padding: 0 12px; }
.pos-k-chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 2px 0; scrollbar-width: thin; }
.pos-k-res { flex: none; display: inline-flex; align-items: baseline; gap: 2px; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 2px solid var(--k-line); background: var(--k-card); color: var(--k-ink); font: inherit; font-size: calc(var(--k-fs) * .85); cursor: pointer; white-space: nowrap; }
.pos-k-res small { color: var(--k-mut); font-size: .85em; }
.pos-k-res.imp { border-color: #7b5cd6; }
.pos-k-res.imp .pos-k-resn { color: #c9b8ff; font-weight: 700; }
.pos-k-res.ev { border-style: dashed; }
.pos-k-res.soon { background: var(--k-yel); border-color: var(--k-yel); color: var(--k-yel-ink); animation: pos-k-blink 1.6s ease-in-out infinite; }
.pos-k-res.soon small { color: var(--k-yel-ink); }
.pos-k-daysum.soon { color: var(--k-yel); font-weight: 800; }
.pos-k-resnote { font-size: 20px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pos-k-res.soon { animation: none; } }
.pos-k-card.fresh { border-color: #4aa3ff; box-shadow: 0 0 0 4px #4aa3ff66; animation: pos-k-blink 1s ease-in-out 3; }
.pos-k-barcard .pos-k-bar-go { margin-top: 10px; min-height: 64px; background: var(--k-grn); color: var(--k-grn-ink); font-size: calc(var(--k-fs) * 1.2); }
.pos-k-bar-age { margin-left: auto; color: var(--k-mut); }
.pos-k-scope.bar { background: #2f5d8a; border-color: #2f5d8a; color: #fff; }
.pos-mg { max-width: 1100px; margin: 0 auto; }
.pos-mg-views { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 18px; }
.pos-mg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pos-mg-tile { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.pos-mg-tile b { font-size: 28px; }
.pos-mg-list { display: grid; gap: 8px; }
.pos-mg-row { display: grid; grid-template-columns: 90px 1.4fr .7fr 1fr 1fr 120px; gap: 10px; align-items: center; padding: 12px 14px; background: var(--white); border: 2px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; font-size: 17px; }
.pos-mg-row > b:last-child { text-align: right; }
.pos-mg-kitchen { color: #8a5a00; font-weight: 700; }
@media (max-width: 700px) { .pos-mg-row { grid-template-columns: 70px 1fr 100px; } .pos-mg-row > :nth-child(3), .pos-mg-row > :nth-child(4), .pos-mg-row > :nth-child(5) { display: none; } }
/* POS: dostępność dań (limit, koniec, przerwa) i okno kuchni „Dostępność” */
.pos-dish.off .pos-dish-main { background: #e6e3da; border-style: dashed; color: #7c8579; opacity: 1; }
.pos-dish.off .pos-d-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.pos-d-status { font-weight: 800; font-size: 14px; color: #8a3b12; background: #fbe6d4; border-radius: 8px; padding: 1px 8px; align-self: flex-start; }
.pos-dish.off .pos-d-status { color: #fff; background: #8a3b12; }
.pos-d-status.low { color: #7a4a00; background: #f7e2a6; }
.pos-av-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.pos-av-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); text-align: left; width: 100%; font: inherit; font-size: 18px; }
.pos-av-row b { flex: 1; }
.pos-av-pill { font-weight: 800; font-size: 15px; border-radius: 8px; padding: 2px 10px; background: var(--soft); }
.pos-av-pill.bad { background: #8a3b12; color: #fff; } .pos-av-pill.low { background: #f7e2a6; color: #7a4a00; }
.pos-av-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-av-quick .btn { min-height: 52px; min-width: 64px; font-size: 20px; }
.pos-av-sec { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.pos-av-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
/* POS blok B: czas realizacji, czat, zmiana kelnera, raport dnia */
.pos-late { border-color: #b3261e !important; box-shadow: 0 0 0 3px #b3261e44; }
.pos-late-tag { background: #b3261e; color: #fff; border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.pos-eta-tag, .pos-eta { font-size: 13px; }
.pos-eta-line { font-size: 14px; margin: 4px 0 6px; color: var(--muted); } .pos-eta-line.late { color: #b3261e; font-weight: 700; }
.pos-chatbtn.has-new, .pos-k-chat.has-new { background: #c9a35a !important; color: #15321f !important; font-weight: 800; }
.pos-k-chat { margin-left: 8px; position: relative; } .pos-k-badge { margin-left: 6px; background: #e8746a; color: #fff; border-radius: 12px; padding: 0 8px; font-size: .8em; }
.pos-chat-list { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.pos-chat-msg { padding: 6px 10px; border-radius: 10px; background: var(--soft, #efe8d8); } .pos-chat-msg small { color: var(--muted); display: block; }
.pos-chat-kitchen { background: #fde7b0; } .pos-chat-system { background: #dfe9e0; font-style: italic; }
.pos-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; } .pos-chat-row { display: flex; gap: 8px; align-items: center; } .pos-chat-in { flex: 1; min-height: 44px; }
.pos-prep-row { align-items: center; gap: 8px; } .pos-prep-n { flex: 1; } .pos-prep-row input { width: 80px; }
.pos-shift-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pos-shift-card { background: var(--white, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; } .pos-shift-card b { font-size: 24px; }
.pos-shift-open { display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--white, #fff); color: inherit; text-decoration: none; }
.pos-report-t { width: 100%; border-collapse: collapse; } .pos-report-t th, .pos-report-t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
/* wydawka: pasek „Dziś” dodał wiersz, więc układ w kolumnie zamiast siatki 3-wierszowej */
.pos-k-dark { display: flex; flex-direction: column; }
.pos-k-dark > .pos-k-mid { flex: 1 1 auto; min-height: 0; }
.pos-k-dark > .pos-k-top, .pos-k-dark > .pos-k-day, .pos-k-dark > .pos-k-bottom { flex: none; max-width: 100%; }
.pos-k-dayrow { overflow-x: auto; scrollbar-width: none; }
.pos-k-mid, .pos-k-board { min-width: 0; }
/* PIN kelnera */
.pos-pin { position: fixed; inset: 0; z-index: 200; background: rgba(21, 50, 31, .96); display: grid; place-items: center; padding: 16px; }
.pos-pin-box { width: min(360px, 100%); text-align: center; color: #f6f1e5; }
.pos-pin-box h2 { font-size: 30px; margin: 0 0 4px; } .pos-pin-box .muted { color: #cfd8cd; }
.pos-pin-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 8px; }
.pos-pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #f6f1e5; } .pos-pin-dots span.on { background: #c9a35a; border-color: #c9a35a; }
.pos-pin-msg { min-height: 24px; color: #ffb4a8; font-weight: 700; margin: 0 0 8px; }
.pos-pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pos-pin-key { min-height: 78px; border-radius: 18px; border: 0; background: #f6f1e5; color: #15321f; font-size: 34px; font-weight: 800; touch-action: manipulation; }
.pos-pin-key:active { background: #c9a35a; }
.pos-waiter-chip { background: rgba(255,255,255,.16); border: 0; color: #fff; border-radius: 12px; min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 700; }
/* wydawka: bloczki w rzędach, liczba kolumn dopasowana do szerokości ekranu (telefon 1, tablet 2–3, monitor 5–7) */
.pos-k-board { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pos-k-board.fixed { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.pos-k-board > .pos-k-card { margin: 0; }
@media (min-width: 1700px) { .pos-k-expo { --k-fs: 20px; } .pos-k-board { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (min-width: 2300px) { .pos-k-board { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); } }
@media (max-width: 640px) { .pos-k-board { grid-template-columns: minmax(0, 1fr); } }

.pos-k-line.kid .pos-k-name { color: #ffd166; } .pos-k-line.kid .pos-k-name::before { content: '👶 '; }
.pos-bill-kid { background: #ffd166; color: #3a2a00; border-radius: 8px; padding: 0 8px; font-weight: 800; font-size: 13px; }

/* wydanie części dań */
.pos-k-partcard { border-color: #4a90d9; }
.pos-k-bar-static { background: #3b4a42; color: var(--k-ink); cursor: default; }
.pos-k-partrow { display: block; width: 100%; text-align: left; background: transparent; border: 2px solid transparent; border-radius: 10px; color: inherit; font: inherit; padding: 6px 6px 4px; margin: 2px 0; min-height: 48px; }
.pos-k-partrow.on { border-color: var(--k-grn); background: #3fae6e26; }
.pos-k-partrow.gone { opacity: .45; }
.pos-k-check { width: 1.2em; font-size: 1.15em; color: var(--k-grn); }
.pos-k-btn.go.off { opacity: .55; }

.pos-calls { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(560px, calc(100% - 24px)); }
.pos-call { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #c9a35a; color: #15321f; border-radius: 14px; padding: 12px 14px; font-size: 18px; box-shadow: 0 8px 30px #0006; animation: pos-k-blink 1.2s ease-in-out 3; }
.pos-call.mine { background: #ff9f1c; outline: 3px solid #fff; }
.pos-call-ok { margin-left: auto; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: #15321f; color: #fff; font-size: 18px; font-weight: 800; }
.pos-k-partrow.gone { display: none; }
/* czat: pole wiadomości na całą szerokość, pod nim stolik i Wyślij */
.pos-chat-row { flex-wrap: wrap; }
.pos-chat-row .pos-chat-in { order: -1; flex: 1 1 100%; min-height: 56px; font-size: 18px; padding: 0 14px; border: 2px solid var(--line, #cfc6ae); border-radius: 12px; background: #fff; color: #1b2a20; }
.pos-chat-row select { flex: 1 1 auto; min-height: 52px; font-size: 16px; }
.pos-chat-row .btn { min-height: 52px; padding: 0 28px; font-size: 18px; }

.pos-tile.pos-mine { box-shadow: 0 0 0 4px #c9a35a; }

.pos-k-res.late { background: #7a1f1f; border-color: #d24; color: #fff; }
.pos-k-res.late small { color: #ffd0d0; }
.pos-k-late { color: #b3261e; font-weight: 800; font-size: 20px; }

.pos-res-tag { display: block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: #7b5cd6; color: #fff; font-weight: 800; font-size: .8em; }
.pos-res-tag.late { background: #b3261e; }
.pos-res-name { font-size: 22px; font-weight: 800; }
.pos-res-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line, #ddd); font-size: 18px; }
.pos-res-row.late b { color: #b3261e; }

.pos-pickrow { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 18px; }
.pos-pickrow input { width: 24px; height: 24px; }
.pos-tipin { min-height: 48px; width: 9em; font-size: 18px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--line, #bbb); }

.pos-carta-row { text-align: left; cursor: pointer; width: 100%; font: inherit; }
.pos-carta-row.off { opacity: .55; }
.pos-carta-grp { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line, #ccc); border-radius: 10px; }

.pos-mg-row.pos-carta-st { display: flex; flex-wrap: wrap; gap: 12px; }
.pos-mg-row.pos-carta-st > span { flex: 1; }

.pos-party { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line, #ddd); font-size: 18px; }

/* druk bonu (drukarka termiczna 80 mm albo zwykła): tylko okienko z bonami */
@media print {
  body.printing-slip > *:not(dialog) { display: none !important; }
  body.printing-slip dialog { position: static; border: 0; background: #fff; box-shadow: none; width: 80mm; max-width: 80mm; padding: 0; margin: 0; }
  body.printing-slip dialog .sheet-head, body.printing-slip dialog .sheet-actions, body.printing-slip dialog .muted { display: none !important; }
  body.printing-slip .pos-k-slip { color: #000; background: #fff; border: 0; break-after: page; width: 80mm; }
}

.pos-k-cancel { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #8a1c1c; color: #fff; font-size: calc(var(--k-fs) * .95); }
.pos-k-cancel b { background: #fff; color: #8a1c1c; padding: 2px 10px; border-radius: 8px; }
.pos-k-cancel .pos-k-btn { margin-left: auto; }
/* przyciski bloczka (Wołaj, Część, Cały stolik) zawsze mieszczą się w karcie: zawijają się i są węższe */
.pos-k-foot { flex-wrap: wrap; }
.pos-k-grp { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.pos-k-grp .pos-k-btn { min-height: 44px; padding: 0 12px; flex: 1 1 auto; }
/* szerokie ekrany (wydawka na monitorze): węższe bloczki, żeby w dwóch rzędach było 10-14 bloczków */
@media (min-width: 1700px) { .pos-k-expo { --k-fs: 17px; } .pos-k-board { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (min-width: 2200px) { .pos-k-expo { --k-fs: 19px; } .pos-k-board { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
/* dolny pasek stolików: jeden rząd, przewijany w bok (przy 15+ rachunkach nie zjada wysokości ekranu) */
.pos-k-bottom { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: thin; }
.pos-k-bottom > .pos-k-tbtn { flex: none; }

/* ekran PIN konta wspólnego (sala, bar): główny ekran dla wszystkich, duży i czytelny z daleka */
.pos-pin.kiosk { background: #10241a; }
.pos-pin.kiosk .pos-pin-box { width: min(560px, 100%); }
.pos-pin-brand { margin: 0 0 4px; font-family: 'Libre Baskerville', Georgia, serif; font-size: 34px; color: #f1d894; }
.pos-pin-clock { margin: 0 0 28px; font-size: 22px; color: #b7c4b8; text-transform: capitalize; }
.pos-pin.kiosk h2 { font-size: 64px; margin: 0 0 6px; line-height: 1.05; }
.pos-pin.kiosk .muted { font-size: 26px; }
.pos-pin.kiosk .pos-pin-dots span { width: 30px; height: 30px; }
.pos-pin.kiosk .pos-pin-pad { gap: 16px; }
.pos-pin.kiosk .pos-pin-key { min-height: 104px; font-size: 48px; border-radius: 22px; }
.pos-pin-out { margin-top: 26px; background: none; border: 0; color: #8fa595; font-size: 18px; text-decoration: underline; cursor: pointer; }
body.pos-only .pos-top .pos-exit + .pos-top-title { margin-left: 0; }
@media (max-height: 820px) { .pos-pin.kiosk h2 { font-size: 44px; } .pos-pin.kiosk .pos-pin-key { min-height: 72px; font-size: 36px; } .pos-pin-clock { margin-bottom: 12px; } }

.pos-t-no.long { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }

.pos-who-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 16px; margin: 0 0 12px; border-radius: 14px; background: #fff4d6; border: 2px solid #c9a35a; font-size: 22px; }
.pos-who-strip .btn { min-height: 52px; }

/* ekran „Kasa i wydawka”: duże przyciski miejsc pracy */
.pos-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pos-hub-grid.big { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pos-hub-tile { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 120px; padding: 20px 24px; border-radius: 20px; background: #fffdf8; border: 3px solid var(--line, #cfc6ae); color: #15321f; text-decoration: none; }
.pos-hub-tile b { font-size: 30px; } .pos-hub-tile small { font-size: 18px; color: #55655a; }
.pos-hub-grid.big .pos-hub-tile { min-height: 200px; }
.pos-hub-grid.big .pos-hub-tile b { font-size: 44px; }
.pos-hub-tile.sala { background: #2f6b43; border-color: #2f6b43; color: #fff; } .pos-hub-tile.sala small { color: #d5e8d8; }
.pos-hub-tile.kuchnia { background: #15321f; border-color: #15321f; color: #f6f1e5; } .pos-hub-tile.kuchnia small { color: #b7c4b8; }
.pos-hub-tile.bar { background: #c9a35a; border-color: #c9a35a; color: #231c00; } .pos-hub-tile.bar small { color: #3b2f0c; }

/* numerki: lista kelnera i duży ekran odbioru */
.pos-hub-tile.numerki { background: #7b5cd6; border-color: #7b5cd6; color: #fff; } .pos-hub-tile.numerki small { color: #e6ddff; }
.pos-q-new { min-height: 84px; font-size: 28px; }
.pos-q-col h2 { margin: 8px 0; }
.pos-q-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pos-q-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 110px; min-height: 110px; padding: 8px 14px; border-radius: 20px; border: 4px solid var(--line, #cfc6ae); background: #fffdf8; font: inherit; cursor: pointer; }
.pos-q-chip b { font-size: 48px; line-height: 1; } .pos-q-chip small { font-size: 16px; color: #55655a; }
.pos-q-chip.ready { background: #2f6b43; border-color: #2f6b43; color: #fff; } .pos-q-chip.ready small { color: #d5e8d8; }
.pos-q-chip.prep { background: #fff4d6; border-color: #c9a35a; }
.pos-q-chip.draft { opacity: .75; border-style: dashed; }
body.pos-odbior-on .pos-top { display: none; }
.pos-odbior { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: 3fr 1fr; background: #10241a; color: #f6f1e5; padding: 3vh 4vw; gap: 2vh; }
.pos-odb-ready h1 { margin: 0 0 1vh; font-size: 7vh; color: #f1d894; text-transform: uppercase; letter-spacing: .08em; }
.pos-odb-prep h2 { margin: 0 0 1vh; font-size: 4vh; color: #b7c4b8; font-weight: 500; }
.pos-odb-nums { display: flex; flex-wrap: wrap; gap: 2vw; align-items: center; }
.pos-odb-nums.big .pos-odb-n { font-size: 24vh; font-weight: 800; line-height: 1; color: #fff; background: #2f6b43; border-radius: 4vh; padding: 1vh 3vw; }
.pos-odb-nums:not(.big) .pos-odb-n { font-size: 8vh; font-weight: 700; color: #f6f1e5; background: #193426; border-radius: 2vh; padding: .5vh 1.6vw; }
.pos-odb-empty { font-size: 10vh; color: #4b6455; }

/* sprzedaż lunchów: ekran kelnera i sumy na wydawce */
.pos-lunch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pos-lunch-grid.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pos-lunch-tile { position: relative; }
.pos-lunch-add { width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 22px; border: 4px solid var(--line, #cfc6ae); background: #fffdf8; font: inherit; cursor: pointer; touch-action: manipulation; position: relative; }
.pos-lunch-add b { font-size: 36px; line-height: 1.1; } .pos-lunch-add small { font-size: 20px; color: #55655a; }
.pos-lunch-tile.extra .pos-lunch-add { min-height: 96px; } .pos-lunch-tile.extra .pos-lunch-add b { font-size: 26px; }
.pos-lunch-tile.on .pos-lunch-add { background: #2f6b43; border-color: #2f6b43; color: #fff; } .pos-lunch-tile.on small { color: #d5e8d8; }
.pos-lunch-n { position: absolute; top: 8px; right: 12px; min-width: 52px; height: 52px; border-radius: 26px; background: #f1d894; color: #231c00; font-size: 30px; font-weight: 800; display: grid; place-items: center; }
.pos-lunch-minus { position: absolute; bottom: 8px; right: 8px; width: 56px; height: 56px; border-radius: 28px; border: 3px solid #fff; background: #b3261e; color: #fff; font-size: 32px; font-weight: 800; }
.pos-lunch-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: #10241a; color: #f6f1e5; font-size: 26px; }
.pos-lunch-send { min-height: 72px; font-size: 26px; }
.pos-lunch-ready { padding: 10px 16px; border-radius: 14px; background: #2f6b43; color: #fff; font-size: 28px; font-weight: 800; margin: 0; }
.pos-lunch-no { font-size: 140px; font-weight: 800; text-align: center; margin: 0; line-height: 1; color: #15321f; }
.pos-k-lunch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 20px; border-radius: 16px; background: #f2c230; color: #231c00; font-size: calc(var(--k-fs) * 1.5); }
.pos-k-lunch > b { font-size: calc(var(--k-fs) * .9); letter-spacing: .06em; }
.pos-k-lunch-i em { font-style: normal; font-weight: 900; font-size: calc(var(--k-fs) * 2.4); }
.pos-k-lunch-i.extra { opacity: .8; font-size: calc(var(--k-fs) * 1.1); } .pos-k-lunch-i.extra em { font-size: calc(var(--k-fs) * 1.6); }

.pos-lunch-minus { right: auto; left: 8px; }
.pos-lunch-bar .pos-lunch-send { background: #f2c230; border-color: #f2c230; color: #231c00; }
.pos-lunch-bar .pos-lunch-send:disabled { background: #3b4a41; border-color: #3b4a41; color: #8fa595; }
.pos-menu-cols { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 24px; align-items: start; } @media (max-width: 800px) { .pos-menu-cols { grid-template-columns: 1fr; } }
.pos-menu-row { display: flex; gap: 8px; align-items: center; } .pos-menu-row .pos-menu-name { flex: 1 1 auto; width: auto; min-width: 0; min-height: 48px; font-size: 18px; } .pos-menu-row .pos-menu-price { flex: 0 0 96px; width: 96px; min-height: 48px; font-size: 18px; text-align: right; } .pos-menu-extra { display: flex; align-items: center; gap: 4px; white-space: nowrap; } .pos-menu-extra input { width: 22px; height: 22px; min-height: 0; flex: none; }
.pos-menu .page-head .btn { width: auto; }
.pos-menu-frame { border: 2px dashed var(--line, #cfc6ae); border-radius: 16px; padding: 12px; } .pos-menu-frame.dark { background: #10241a; }
.pos-menu-frame .pos-lunch-add { min-height: 90px; cursor: default; } .pos-menu-frame .pos-lunch-add b { font-size: 24px; } .pos-menu-frame .pos-lunch-tile.extra .pos-lunch-add { min-height: 64px; } .pos-menu-frame .pos-lunch-tile.extra .pos-lunch-add b { font-size: 18px; }
