:root{font-family:system-ui,sans-serif;color:#17212b;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}header{background:#d3ebd9;color:#17212b;border-bottom:1px solid #b3d6bd;padding:18px max(20px,calc((100% - 1400px)/2));display:flex;justify-content:space-between;align-items:center}h1{margin:0;font-size:24px}header p{margin:3px 0 0;color:#4a6355}header a{color:inherit}nav,main{max-width:1400px;margin:auto;padding:16px 20px}nav{padding-bottom:0}button{border:1px solid #a9b8c6;border-radius:6px;padding:9px 12px;background:#f0f4f7;font-weight:650;cursor:pointer;color:#17212b;box-shadow:0 1px 0 rgba(23,33,43,.16)}button:hover{filter:brightness(.94)}button:disabled{cursor:default;filter:none}.primary{background:#19764b;color:#fff;border-color:#19764b}.userbadge{background:#ffffffb0;color:#17212b;border-color:#a6cdb2}.userbadge:hover{background:#fff}a.userbadge{display:inline-block;border:1px solid #a6cdb2;border-radius:6px;padding:9px 12px;font-weight:650;text-decoration:none}.danger{background:#a93434;color:#fff;border-color:#a93434}.warn{background:#c47516;color:#fff;border-color:#c47516}.grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px}.column{background:#e8edf1;border-radius:8px;padding:12px;min-height:250px}.column h2{font-size:14px;margin:0 0 10px;text-transform:uppercase}.card,.panel,.modal-box{background:#fff;border-radius:7px;padding:13px;margin-bottom:10px;box-shadow:0 1px 2px #0001}.card h3{margin:0 0 6px;font-size:16px}.muted,small{color:#60707d}.bad{color:#a93434;font-weight:700}.good{color:#19764b;font-weight:700}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.space{justify-content:space-between}.panel{max-width:1050px}.panel-wide{max-width:1400px}.file-drop{border:2px dashed #bfcbd4;border-radius:8px;padding:22px;text-align:center;margin:12px 0}.file-drop:hover{border-color:#19764b}.file-drop input[type=file]{max-width:340px;margin:0 auto}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin:12px 0}label{display:grid;gap:4px;font-size:13px;font-weight:650}input,select,textarea{width:100%;padding:8px;border:1px solid #bfcbd4;border-radius:5px;font:inherit}textarea{min-height:60px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;margin:12px 0}th,td{padding:8px;border-bottom:1px solid #dce3e8;text-align:left;font-size:14px}th{background:#f2f5f7}.modal{position:fixed;inset:0;background:#0008;display:grid;place-items:center;padding:20px;overflow:auto;z-index:2}.modal-box{width:min(1100px,100%);max-height:95vh;max-height:calc(100dvh - 40px);overflow:auto;margin:auto}.notice{padding:14px;background:#e5f5ec;border-radius:7px}.notice.bad{background:#fbe9e9}.dxf-preview{margin-top:6px;width:120px;border:1px solid #dce3e8;border-radius:4px;background:#fff}.dxf-preview svg{display:block;width:100%;height:auto}.dxf-preview-sm{width:40px;height:40px}.dxf-preview-sm svg{display:block;width:100%;height:100%}.dxf-preview-click{margin-top:10px;width:64px;height:64px;border:1px solid #dce3e8;border-radius:4px;background:#fff;cursor:pointer}.dxf-preview-click svg{display:block;width:100%;height:100%}.dxf-preview-click:hover{border-color:#19764b}.dxf-preview-lg{width:min(320px,80vw);border:1px solid #dce3e8;border-radius:4px;background:#fff;margin:0 auto}.dxf-preview-lg svg{display:block;width:100%;height:auto}.pin-pad{display:grid;grid-template-columns:repeat(3,64px);gap:10px;margin:10px 0}.pin-pad button{font-size:20px;padding:16px 0}.pin-display{font-size:28px;letter-spacing:8px;min-height:36px}.hidden,.printOnly{display:none}@media(max-width:850px){.modal{padding:8px}.modal-box{max-height:calc(100dvh - 16px);padding-bottom:28px}.grid{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}header{align-items:flex-start;gap:12px;flex-wrap:wrap}.table-wrap table{width:100%}.table-wrap tr:first-child{display:none}.table-wrap tr{display:block;border:1px solid #dce3e8;border-radius:7px;margin-bottom:10px;padding:4px 8px;background:#fff}.table-wrap td{display:flex;align-items:center;gap:8px;border-bottom:1px solid #eef2f5;padding:7px 0;font-size:14px}.table-wrap td:last-child{border-bottom:none}.table-wrap td[data-label]::before{content:attr(data-label);flex:0 0 42%;font-weight:650;color:#60707d;font-size:13px}.table-wrap td>input,.table-wrap td>select{flex:1;width:auto;min-width:0}}@media print{body>*:not(#printArea):not(:has(#printArea)){display:none!important}#printArea{display:block!important}#printArea .no-print{display:none}.printOnly{display:inline}.modal:has(#printArea){position:static;display:block;place-items:normal;padding:0;background:none;overflow:visible}.modal:has(#printArea) .modal-box{width:auto;max-height:none;overflow:visible;box-shadow:none;padding:0;margin:0;background:#fff}}
/* Panel operatora: każdy przycisk akcji pod zleceniem ma własny kolor (łatwiej rozróżnić na hali). */
.opb{background:var(--c);color:#fff;border-color:var(--c)}
.opb:hover{background:var(--c);filter:brightness(.88)}
.op-start{--c:#1f8f4e}
.op-pause{--c:#e0a100;color:#1b1b1b}
.op-resume{--c:#0e8a8a}
.op-progress{--c:#2b6cd4}
.op-finish{--c:#5b3fb0}
.op-problem{--c:#c62828}
.op-scrap{--c:#e8710a}.op-bend{--c:#2f6f9f}
.op-material{--c:#7a5230}
.op-time{--c:#475569}
.photos{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.photo{position:relative}.photo img{width:84px;height:84px;object-fit:cover;border-radius:6px;border:1px solid #dce3e8;display:block}.photo button{position:absolute;top:2px;right:2px;padding:0 7px;line-height:20px;border-radius:50%}.photo-add{display:inline-grid;place-items:center;width:84px;height:84px;border:2px dashed #bfcbd4;border-radius:6px;cursor:pointer;font-size:12px;text-align:center}.photo-add:hover{border-color:#19764b}fieldset.intake-item{border:1px solid #dce3e8;min-width:0}.st-przyjete{color:#60707d;font-weight:700}.st-w_trakcie{color:#c47516;font-weight:700}.st-gotowe{color:#19764b;font-weight:700}.st-wydane{color:#5146b8;font-weight:700}.warn-text{color:#c47516}
.btnlink{display:inline-block;border:1px solid #cbd5df;border-radius:6px;padding:9px 12px;font-weight:650;text-decoration:none;color:#17212b;background:#fff}.btnlink:hover{background:#edf2f5}
@media print{.wz-off{display:none!important}}
.wz-off{opacity:.45}
.grid3{grid-template-columns:repeat(3,minmax(220px,1fr));align-items:start}.new-menu .nm{font-size:16px;font-weight:700}.column.attention{min-height:0;margin-bottom:14px;border:2px solid #c47516}.attention-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}

.new-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.new-menu button{display:grid;gap:4px;text-align:left;padding:16px}.new-menu small{font-weight:400}
.file-btn{display:inline-block;border:1px solid #cbd5df;border-radius:6px;padding:9px 12px;font-weight:650;cursor:pointer}.file-btn input{display:none}
@media(max-width:850px){.grid3{grid-template-columns:1fr}.column{min-height:0}nav{display:flex;flex-wrap:wrap;gap:6px}}
.prio{display:inline-block;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:700}.prio-pilne{background:#a93434;color:#fff}.prio-wazne{background:#c47516;color:#fff}.prio-kiedys{background:#60707d;color:#fff}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:8px 0 16px}.stat{display:grid;gap:4px;padding:12px;border:1px solid #dce3e8;border-radius:8px}.stat b{font-size:22px}.stat-link{cursor:pointer}.stat-link:hover{border-color:#19764b}
:root{--series-1:#2a78d6;--series-2:#eb6834;--chart-grid:#dce3e8;--chart-axis:#60707d}.chart{width:100%;height:auto;max-height:260px;display:block}.chart .bar-galv{fill:var(--series-1)}.chart .bar-cut{fill:var(--series-2)}.chart .grid{stroke:var(--chart-grid);stroke-width:1}.chart .axis{fill:var(--chart-axis);font-size:11px}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;margin:6px 0}.legend span{display:inline-flex;align-items:center;gap:6px}.sw{display:inline-block;width:12px;height:12px;border-radius:3px}.sw-galv{background:var(--series-1)}.sw-cut{background:var(--series-2)}
/* Pole „Klient”: zielone = klient z bazy, pomarańczowe = przy zapisie powstanie nowy (client-field.js). */
input.cf-ok{border-color:#19764b;box-shadow:0 0 0 2px #19764b40;background:#f1faf4}input.cf-new{border-color:#c47516;box-shadow:0 0 0 2px #c4751640;background:#fff8ec}.cf-hint{font-weight:650;font-size:13px}.cf-hint:empty{display:none}.form-grid:has(.cf-hint)>label{align-content:start}.cf-hint.cf-ok{color:#19764b}.cf-hint.cf-new{color:#a15f0d}.cf-hint a{color:inherit}.cf-add{justify-self:start;padding:5px 10px;font-size:13px}.cf-add[hidden]{display:none}
/* Droga towaru (steps.js): Przyjęte → W trakcie → Gotowe → Wydane — kreski na listach, nazwy w oknie przyjęcia. */
.steps{display:inline-flex;gap:3px;vertical-align:middle}.steps i{display:block;width:20px;height:7px;border-radius:4px;background:#dce3e8;font-style:normal}.steps i.done{background:#8fcfaa}.steps i.now{background:#19764b}.steps.named{gap:4px;flex-wrap:wrap}.steps.named i{width:auto;height:auto;padding:3px 9px;font-size:12px;font-weight:650;color:#60707d;background:#eef2f5}.steps.named i.done{background:#d3ebd9;color:#19764b}.steps.named i.now{background:#19764b;color:#fff}
/* Kolory przycisków według rodzaju czynności (2026-10-07): zielony .primary = zapis i dodawanie, niebieski = wejście dalej,
   fioletowy = wydanie towaru, pomarańczowy = liczenie i poprawki, bordowy = druk, czerwony .danger = usuwanie i cofanie. */
.b-open{background:#1f6fb5;color:#fff;border-color:#1f6fb5}.b-issue{background:#5146b8;color:#fff;border-color:#5146b8}.b-calc{background:#c47516;color:#fff;border-color:#c47516}.b-print{background:#8c3257;color:#fff;border-color:#8c3257}.b-calc.ghost{background:#fdf3e3;color:#8a4f08}
/* Etap pozycji jako przycisk: każdy etap w swoim kolorze, bieżący wypełniony */
.stg{background:transparent;border-width:2px;box-shadow:none}.stg-przyjete{border-color:#60707d;color:#60707d}.stg-przyjete.on{background:#60707d;color:#fff}.stg-w_trakcie{border-color:#c47516;color:#c47516}.stg-w_trakcie.on{background:#c47516;color:#fff}.stg-gotowe{border-color:#19764b;color:#19764b}.stg-gotowe.on{background:#19764b;color:#fff}.stg-wydane{border-color:#5146b8;color:#5146b8}.stg-wydane.on{background:#5146b8;color:#fff}
/* Kolorowa etykieta pokrycia (kolor z coat-color.js) */
.coat{display:inline-block;padding:1px 9px;margin:1px 0;border-radius:999px;font-size:.92em;font-weight:650;border:1px solid rgba(0,0,0,.14);white-space:nowrap}
/* Biuro: większe przyciski w tabelach i oknach — łatwiej trafić */
.office .table-wrap button,.office .modal-box button{padding:11px 15px;min-height:42px;white-space:nowrap}.office .modal-box .photo button{padding:0 7px;min-height:0}
/* Etap towaru jako etykieta — prostokątna, bo okrągłe są pokrycia (.coat). Wyjątek :not(.st): w start.html .st to wiersz z kreskami etapów. */
.st-przyjete:not(.st),.st-w_trakcie:not(.st),.st-gotowe:not(.st),.st-wydane:not(.st){display:inline-block;padding:1px 9px;border-radius:5px;font-size:.9em;white-space:nowrap}
.st-przyjete:not(.st){background:#e9edf1;color:#46535f}.st-w_trakcie:not(.st){background:#fbe6c8;color:#7a4508}.st-gotowe:not(.st){background:#d3f0df;color:#0f4d30}.st-wydane:not(.st){background:#e4e1fa;color:#3a308f}
/* „PILNE” przy kliencie na listach (galwanizernia, cięcie) — czerwona etykieta zamiast czerwonego napisu */
td[data-label="Klient"] .bad{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.82em;background:#a93434;color:#fff}
/* Faktury, zestawienie klienta: pasek przy nagłówku sekcji — fioletowy „wydane”, szary „jeszcze nie wydane” */
#invBody h3{border-left:7px solid #8b98a5;padding:5px 0 5px 11px}#invBody h3:first-of-type{border-left-color:#5146b8}
/* Wybrana zakładka / przełącznik w biurze: stalowa. Zieleń .primary zostaje dla „zapisz / dodaj”.
   ponytail: lista zakładek po atrybutach — nowa zakładka = dopisać ją tutaj i w theme-dark.css, inaczej będzie zielona.
   Panel operatora (bez klasy .office) celowo poza tą regułą. */
.office :is([data-arctab],.quote-tab,.machine-tab,[data-settab],[data-qmode],.geom-tab,[data-qtab],[data-itab],[data-invtab],[data-invgroup],[data-ttab],[data-tkind],[data-qfilter]).primary{background:#213b54;border-color:#213b54;color:#fff}
/* Telefon: komórka „Pozycje” (etykiety pokryć i etapów, kilka linii) jako zwykły blok pod swoim podpisem.
   W układzie flex etykiety stawały w jednym rzędzie i wypychały kartę poza ekran (od wprowadzenia etykiet pokryć 7.10). */
@media(max-width:850px){.table-wrap td[data-label="Pozycje"]{display:block}.table-wrap td[data-label="Pozycje"]::before{display:block;margin-bottom:4px}}
/* Fokus z klawiatury i skanera (R09): wyraźny obrys także na kolorowych przyciskach. Dotyk i mysz go nie pokazują (:focus-visible). */
:focus-visible{outline:3px solid #1f6fb5;outline-offset:2px}
/* Faktury: „Zmień cenę” w wierszu to zwykła, mała czynność pomocnicza — nie ostrzeżenie (stąd neutralny kolor, nie pomarańczowy). */
.b-edit,.office .table-wrap button.b-edit{padding:4px 10px;min-height:0;font-size:12px;font-weight:600}
/* Lista cięcia (Laser i woda → LISTA): stan zlecenia w kolorach ustalonych z właścicielem 2026-11-10 — przyjęte czerwone, w trakcie żółte, gotowe zielone. Tylko tu; etykiety galwaniki bez zmian. */
.queue-list .st-przyjete:not(.st){background:#f2b3b3;color:#7a1212}.queue-list .st-w_trakcie:not(.st){background:#fde47a;color:#4f3c00}.queue-list .st-gotowe:not(.st){background:#cdeedb;color:#0f4d30}

/* Pusta wycena cięcia (2026-11-12): wiersz bez pozycji wyróżniony pomarańczowym paskiem i etykietą. */
.quote-empty td{background:#fff1e0}.quote-empty td:first-child{box-shadow:inset 5px 0 0 #ff5a00}.quote-empty-pill{display:inline-block;padding:2px 9px;border-radius:5px;background:#ff5a00;color:#fff;font-weight:700;font-size:.9em;white-space:nowrap}.quote-empty-note{background:#ffe3c7;color:#7a2d00;font-weight:650}

/* Lista zleceń „Laser i woda” (2026-11-12): nagłówek, filtry stanu, pasek koloru z lewej, etapy jako etykiety, pasek sugestii materiału. */
.queue-head h2{margin:0}.queue-head h2 small{font-weight:500;font-size:.7em}
.queue-tools{flex-wrap:wrap}.queue-tools #queueSearch{flex:1 1 240px;min-width:0}.queue-filters{gap:6px}
.queue-filter{white-space:nowrap}.queue-filter-warn:not(.primary){border-color:#e0a3a3;background:#fdf0f0;color:#8f2323}
.queue-hint{background:#e3effa;color:#14466f;font-weight:600}
.qnum{font-family:ui-monospace,Consolas,monospace;font-size:.92em;color:#60707d}
.qstages{display:flex;flex-wrap:wrap;gap:4px}
.qstages span{display:inline-block;padding:1px 9px;border-radius:5px;font-size:.9em;font-weight:700;white-space:nowrap}
.qstages .st-gotowe{background:#cdeedb;color:#0f4d30}.qstages .st-w_trakcie{background:#fde47a;color:#4f3c00}.qstages .st-czeka{background:#e4e8ec;color:#3b4a56}
.qrow td:first-child{box-shadow:inset 10px 0 0 var(--stripe,#9aa7b2);padding-left:16px}
.qrow-uwaga{--stripe:#8f1d1d}.qrow-todo{--stripe:#d98a8a}.qrow-production{--stripe:#e0b000}.qrow-ready{--stripe:#19764b}

/* Lista wycen cięcia (2026-11-12): sekcje „Do policzenia” i „Czeka na klienta”, pasek koloru, etykiety, wybór kolejności. */
.quote-tools{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.quote-tools #quoteSearch{flex:1 1 240px;min-width:0}.quote-sort-l{font-size:13px;color:#60707d}
.quote-sec{margin:14px 0}.quote-sec-h{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;margin-bottom:6px}.quote-sec-h h3{margin:0}
.qs-ok{--stripe:#19764b}.qs-mute{--stripe:#9aa7b2}.qs-warn{--stripe:#c47516}.qs-bad{--stripe:#a93434}
.qtag{display:inline-block;padding:2px 9px;border-radius:5px;font-size:.88em;font-weight:700;white-space:nowrap}
.qtag-ok{background:#cdeedb;color:#0f4d30}.qtag-mute{background:#e4e8ec;color:#3b4a56}.qtag-warn{background:#fde3bf;color:#7a4306}.qtag-bad{background:#f5c8c8;color:#7a1212}
.qicon{width:42px;padding:0;text-align:center}
@media (max-width:850px){.qtag{white-space:normal}}
.office button,.office select{font-family:inherit}
.office button:disabled{opacity:.55;cursor:not-allowed}
.danger.ghost{background:#fdf0f0;color:#8f2323;border-color:#a93434}
.office input[type=checkbox]{width:22px;height:22px;min-width:22px;accent-color:#19764b;cursor:pointer}
.new-menu small{white-space:normal}.new-menu button{border-left:6px solid #19764b}.office .modal-box .new-menu button{white-space:normal}
@media(max-width:850px){.table-wrap tr.qrow{border-left:10px solid var(--stripe,#9aa7b2)}.table-wrap tr.qrow td:first-child{box-shadow:none}.table-wrap tr.quote-empty{border-left:5px solid #ff5a00}.table-wrap tr.quote-empty td:first-child{box-shadow:none}}
.office nav button{background:transparent;box-shadow:none;border:0;border-bottom:3px solid transparent;border-radius:0;min-height:40px}
.office nav button.primary{background:transparent;color:#17212b;font-weight:800;border-bottom-color:#213b54}
@media(max-width:850px){.office header p{display:none}.office header h1{font-size:18px}.office header .row{flex-wrap:nowrap;gap:6px}.office header .row>*{padding:8px 9px;font-size:13px;white-space:nowrap}.office nav{display:flex;flex-wrap:nowrap;overflow-x:auto}.office nav button{flex:0 0 auto}}
.help{margin:8px 0}.help summary{display:inline-block;cursor:pointer;padding:5px 10px;border:1px solid #a9b8c6;border-radius:6px;background:#f0f4f7;font-weight:650;font-size:13px;color:#17212b}.help[open] summary{margin-bottom:6px}
@media(max-width:850px){.queue-head h2{font-size:18px;flex:1 1 100%}.queue-head>.row{flex:1 1 100%;flex-wrap:nowrap;gap:6px}.queue-head>.row button{flex:1 1 0;min-width:0;padding:8px 6px;font-size:12px;min-height:40px}.queue-tools{gap:8px}.queue-tools #queueSearch{flex:1 1 100%}.queue-filters{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto}.queue-filter{flex:0 0 auto;padding:8px 10px}.queue-tools #queueSort{flex:1 1 0!important;min-width:0}.queue-list td[data-label="Klient · numer"]::before{display:none}}
.wz-print{display:none}.wz-card{border:1px solid #dce3e8;border-radius:10px;margin:12px 0;overflow:hidden}.wz-card-head{padding:10px 14px;border-bottom:1px solid #eef2f5;background:#f7f9fa}.wz-card-head h3{margin:0;font-size:15px}.wz-card-body{padding:4px 14px 10px}.wz-card-body table{margin:8px 0}.wz-card-body p{margin:6px 0}
.wz-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.wz-fields textarea{min-height:44px}
.wz-foot{position:sticky;bottom:-13px;display:flex;gap:12px;align-items:center;justify-content:space-between;margin:12px -13px -13px;padding:10px 13px;background:var(--panel,#fff);border-top:1px solid var(--border,#dce3e8);z-index:1}.wz-foot-msg{flex:1;min-width:0}.wz-foot-msg p{margin:0;font-weight:650}#wzError{color:#a93434}#wzError:empty{display:none}.wz-foot .b-issue{flex:0 0 auto;min-width:130px}
@media(max-width:850px){.wz-fields{grid-template-columns:1fr}.wz-foot{margin-bottom:-28px;bottom:-28px}}
@media print{.wz-print{display:block}.wz-card{border:0;margin:0}.wz-card-head{background:none;border:0;padding:0}.wz-card-body{padding:0}}
/* Odnośniki w roli małych szarych przycisków (Pełny system, Ekran hali) — nadal <a>, nawigacja działa bez JS. */
a.btn-a{border:1px solid #a9b8c6;border-radius:6px;padding:6px 11px;background:#f0f4f7;font-weight:650;font-size:13px;cursor:pointer;color:#17212b;box-shadow:0 1px 0 rgba(23,33,43,.16);text-decoration:none;white-space:nowrap}
a.btn-a:not(.hidden){display:inline-block}
a.btn-a:hover{border-color:#6f8396}
/* Faktury, wiersze zestawienia: wszystkie przyciski jednakowo małe, kolory spokojne (obrys). Biuro ma trochę większe. */
.inv-btns button,.office .table-wrap .inv-btns button{padding:4px 10px;min-height:28px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:none}
.office .table-wrap .inv-btns button{padding:6px 12px;min-height:34px;font-size:13px}
.inv-btns button.b-open{background:#eaf2fb;color:#1f6fb5;border-color:#1f6fb5}
.inv-btns button.b-issue{background:#f0edfc;color:#5146b8;border-color:#5146b8}
.inv-btns button.b-calc,.inv-btns button.b-edit{background:#fdf3e3;color:#8a4f08;border-color:#c47516}
/* Nagłówek „Laser i woda” (qh-…): tytuł + akcje, linia, wyszukiwarka, filtry i widok jako grupy segmentowe. Zwykłe litery — decyzja właściciela tylko dla tego nagłówka. */
.qh{display:flex;flex-direction:column;gap:18px;padding:20px 24px;margin-bottom:12px;background:var(--panel,#fff);border:1px solid var(--border,#dce3e8);border-radius:12px}
.qh-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px}
.qh-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;min-width:0}
.qh-title h2{margin:0;font-size:30px;font-weight:800;line-height:1.15}
.qh-count{font-size:16px;color:#4f5f6c}
.qh-actions{display:flex;flex-wrap:wrap;gap:12px}
.qh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:10px;font-size:14px;font-weight:800;text-transform:none;white-space:nowrap;box-shadow:none}
.qh-btn svg,.qh-search svg{flex:0 0 auto}
.qh-archive{background:transparent;color:#1f6fb5;border:1.5px solid #1f6fb5}
.qh-new{background:#19764b;color:#fff;border:1.5px solid #19764b}
.qh-line{width:100%;height:1px;margin:0;border:0;background:var(--border,#dce3e8)}
.qh-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.qh-search{position:relative;display:flex;align-items:center;flex:1 1 280px;min-width:240px;color:#4f5f6c}
.qh-search svg{position:absolute;left:14px;pointer-events:none}
.qh-search input{height:44px;padding:0 14px 0 42px;border-radius:10px;background:#fff;border:1px solid #a9b8c6;font-size:14px}
.qh-select{width:auto;height:44px;padding:0 12px;border-radius:10px;background:#fff;border:1px solid #a9b8c6;font-size:14px;font-weight:650;flex:0 0 auto}
.qh-right{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-left:auto}
.qh-seg{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:#fff;border:1px solid #a9b8c6;max-width:100%;overflow-x:auto}
.qh-seg button{height:36px;padding:0 14px;border-radius:9px;border:0;background:transparent;box-shadow:none;color:#4f5f6c;font-size:14px;font-weight:700;white-space:nowrap;flex:0 0 auto}
.qh-seg button:hover{filter:none;background:#eaf0f5}
.qh-seg button.qh-on,.qh-seg button.qh-on:hover{background:#213b54;color:#fff}
.qh-n{margin-left:4px;opacity:.85}
.qh-dot{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#d32f2f;vertical-align:middle}
.qh-search input:focus-visible,.qh-select:focus-visible,.qh-btn:focus-visible,.qh-seg button:focus-visible{outline:2px solid #1f6fb5;outline-offset:2px}
@media(max-width:850px){.qh{padding:16px}.qh-title h2{font-size:24px}.qh-actions{flex:1 1 100%}.qh-btn{flex:1 1 0;min-width:0;padding:0 10px;white-space:normal;line-height:1.2}.qh-search{flex:1 1 100%;min-width:0}.qh-filters{flex:1 1 100%;flex-wrap:wrap;overflow:visible}.qh-right{flex:1 1 100%;margin-left:0}.qh-select{flex:1 1 0;min-width:0}}
/* Ustawienia — szkielet wspólny (etap 1) i klocki na etapy 2–3: .st-card, .st-field, .st-cell, .st-switch, .st-btn, .st-savebar, .st-chip */
.st-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}
.st-nav{background:var(--panel,#fff);border:1px solid var(--border,#dce3e8);border-radius:14px;padding:8px 10px 14px;box-shadow:0 1px 2px #0001}
.st-nav-title{margin:0;padding:14px 12px 4px;font-size:22px;font-weight:800}
.st-nav-group{padding:14px 12px 6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#566574}
.st-nav-item{display:flex;align-items:center;width:100%;height:42px;padding:0 12px;border:0;border-radius:9px;background:transparent;box-shadow:none;color:#17212b;font-size:15px;font-weight:600;text-align:left}
.st-nav-item:hover{filter:none;background:#eaf0f5}
.st-nav-item.st-nav-on,.st-nav-item.st-nav-on:hover{background:#213b54;color:#fff;font-weight:700}
.st-nav-item:focus-visible,.st-btn:focus-visible,.st-switch:focus-visible{outline:2px solid #1f6fb5;outline-offset:2px}
.st-main{min-width:0;display:flex;flex-direction:column;gap:20px}
.st-main>.notice{margin:0}
.st-head{padding:6px 0 0}.st-head h2{margin:0;font-size:28px;font-weight:800}.st-head p{margin:6px 0 0;max-width:820px;font-size:15px;line-height:1.5;color:#566574}
.st-body{min-width:0}
.st-card{display:flex;flex-direction:column;gap:18px;margin:0 0 20px;padding:22px 24px;background:var(--panel,#fff);border:1px solid var(--border,#dce3e8);border-radius:14px;box-shadow:0 1px 2px #0001}
.st-card-head h3{margin:0;font-size:18px;font-weight:750}.st-card-head p{margin:4px 0 0;font-size:13px;color:#566574}
.st-field{display:flex;flex-direction:column;gap:6px}.st-label{font-size:13px;font-weight:650}.st-hint{font-size:12px;color:#566574}
.st-input,.st-cell{display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:0 12px;height:42px;border-radius:9px;background:#fff;border:1px solid #7c8b99}
.st-cell{height:38px;padding:0 10px;border-radius:8px;gap:6px}
.st-input:focus-within,.st-cell:focus-within{outline:2px solid #1f6fb5;outline-offset:1px}
.st-input input,.st-input select,.st-cell input{flex:1;width:auto;min-width:0;height:100%;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:inherit;font-size:15px}
.st-cell input{width:100%;font-size:14px;text-align:right}
.st-unit{color:#566574;font-size:13px;white-space:nowrap}
.st-switch{position:relative;flex:0 0 auto;width:44px;height:24px;padding:0;border-radius:12px;border:1px solid #7c8b99;background:#e6ebef;box-shadow:none}
.st-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#566574;transition:left .15s}
.st-switch[aria-checked=true]{background:#19764b;border-color:#19764b}
.st-switch[aria-checked=true]::after{left:23px;background:#fff}
.st-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:10px;box-shadow:none;font-size:14px;font-weight:700;white-space:nowrap}
.st-add{background:transparent;color:#19764b;border-color:#19764b}
.st-ghost{background:transparent;color:#2d3d4b;border-color:#7c8b99}
.st-danger{background:transparent;color:#a93434;border-color:#a93434}
.st-savebar{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:14px 20px;border-radius:12px;background:var(--panel,#fff);border:1px solid #7c8b99;box-shadow:0 -2px 8px #0002;z-index:1}
.st-savebar>span{font-size:14px;color:#566574}.st-savebar>div{display:flex;flex-wrap:wrap;gap:10px}
.st-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#e8edf1;color:#3f4e5b}
.st-chip.ok{background:#e5f5ec;color:#0f5c38}.st-chip.warn{background:#fdf0dc;color:#7a4300}.st-chip.bad{background:#fbe9e9;color:#8f1d1d}.st-chip.neutral{background:#e8edf1;color:#3f4e5b}
@media(max-width:850px){.st-layout{grid-template-columns:minmax(0,1fr);gap:16px}.st-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.st-nav-title,.st-nav-group{grid-column:1/-1}.st-nav-item{height:44px;font-size:14px}.st-head h2{font-size:24px}.st-card{padding:18px}}

/* Ustawienia — etap 2: Cennik cięcia, Cennik galwaniczny, Firma i warunki, Operatorzy */
.st-field.hidden{display:none}
.st-cell select{flex:1;width:auto;min-width:0;height:100%;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:inherit;font-size:14px}
.st-cell.left input{text-align:left}
.st-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.st-top h3{margin:0;font-size:18px;font-weight:750}.st-top p{margin:4px 0 0;max-width:760px;font-size:13px;line-height:1.5;color:#566574}
.st-sw{display:flex;align-items:center;gap:10px;flex:0 0 auto;font-size:14px;font-weight:650}
.st-fields{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.st-fields>.st-field{flex:0 1 230px}.st-fields>.st-field.wide{flex:1 1 320px;max-width:520px}
.st-seg{display:inline-flex;gap:4px;padding:4px;border-radius:11px;background:#e6ebef;border:1px solid #7c8b99}
.st-seg button{height:36px;padding:0 16px;border:0;border-radius:8px;background:transparent;box-shadow:none;font-size:14px;font-weight:700;color:#2d3d4b}
.st-seg button[aria-pressed=true]{background:#213b54;color:#fff}
.st-split{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
.st-split>.st-card{margin:0}
.st-mats{display:flex;flex-direction:column;gap:8px}
.st-mat{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:48px;padding:0 14px;border-radius:10px;background:transparent;box-shadow:none;border:1px solid #a9b8c6;color:#17212b;text-align:left;font-size:15px;font-weight:700}
.st-mat small{font-size:13px;font-weight:500;color:#566574}
.st-mat[aria-pressed=true]{background:#213b54;border-color:#213b54;color:#fff}.st-mat[aria-pressed=true] small{color:#dbe6f0}
.st-sep{height:1px;background:var(--border,#dce3e8)}
.st-sub{font-size:15px;font-weight:700}
.st-col{display:flex;flex-direction:column;gap:12px;min-width:0}.st-col h4{margin:0;font-size:15px}.st-col>.st-hint{margin:-6px 0 0}
.st-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.st-example{padding:14px 16px;border-radius:10px;background:#eef3f7;border:1px solid var(--border,#dce3e8);font-size:14px;line-height:1.6}
.st-table{width:100%;border-collapse:collapse}
.st-table .st-hint{display:block;margin-top:2px;text-align:right}
.st-pin,.st-rate{display:flex;align-items:center;gap:8px}.st-togs{display:flex;flex-wrap:nowrap;gap:6px}
.st-tog{height:34px;padding:0 12px;border-radius:999px;background:transparent;box-shadow:none;border:1px solid #7c8b99;color:#2d3d4b;font-size:13px;font-weight:700}
.st-tog[aria-pressed=true]{background:#213b54;border-color:#213b54;color:#fff}.st-tog[aria-pressed=true]::before{content:"✓ "}
.st-acts{display:flex;flex-direction:column;gap:10px}.st-act{display:flex;align-items:center;gap:10px}.st-act .st-cell{flex:1}
.st-body .table-wrap button.st-switch,.st-body .table-wrap button.st-tog{min-height:0;padding:0}.st-body .table-wrap button.st-tog{padding:0 12px;height:34px}.st-body .table-wrap button.st-switch{width:44px;height:24px}
.st-body>.st-hint{margin:0 0 14px}
@media(min-width:851px){.st-table th{padding:6px 5px;text-align:left;font-size:12px;font-weight:700;color:#566574;white-space:nowrap}.st-table th.num{text-align:right}.st-table td{padding:6px 5px;border-top:1px solid var(--border,#dce3e8);vertical-align:middle}.st-table .st-cell{min-width:56px}.st-table .st-btn{height:36px;padding:0 10px}.st-table td:last-child{text-align:right}.st-table .st-pin .st-cell{flex:1}.st-table .st-rate{justify-content:flex-end}.st-table .st-rate .st-cell{flex:0 0 96px}}
@media(max-width:850px){.st-split,.st-cols{grid-template-columns:minmax(0,1fr)}.st-fields>.st-field,.st-fields>.st-field.wide{flex:1 1 100%;max-width:none}.st-top{flex-wrap:wrap}.table-wrap td>.st-cell,.table-wrap td>.st-rate,.table-wrap td>.st-pin,.table-wrap td>.st-togs{flex:1;min-width:0}.table-wrap td>.st-rate .st-cell,.table-wrap td>.st-pin .st-cell{flex:1}.table-wrap .st-btn{width:100%}.st-act .st-btn{width:auto}.st-seg button{height:42px}.st-card .st-btn{white-space:normal;height:auto;min-height:42px;padding-top:8px;padding-bottom:8px;max-width:100%}}
/* Ustawienia — etap 3: Konta, Drukarka, AI, Kopia zapasowa */
.st-btn[hidden]{display:none}
a.st-btn{border:1px solid #7c8b99;text-decoration:none;box-sizing:border-box}
a.st-btn.st-ghost{color:#2d3d4b}
.st-file{border:1px solid #a93434;cursor:pointer;box-sizing:border-box}.st-file input{display:none}
.st-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 14px;border-radius:10px;background:#eef3f7;border:1px solid var(--border,#dce3e8);font-size:14px;line-height:1.5}
.st-banner.bad{background:#fdf0dc;border-color:#d9a24a;color:#5a3600}
.st-narrow{max-width:420px}
.st-stephead{display:flex;gap:14px;align-items:flex-start}
.st-num{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#213b54;color:#fff;font-size:15px;font-weight:800}
.st-how{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}.st-how li{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5}.st-how .st-num{width:26px;height:26px;font-size:13px}
.st-code{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:9px;border:1px solid #7c8b99;background:#fff;color:inherit;font-family:ui-monospace,Consolas,monospace;font-size:13px;resize:vertical}
.st-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.st-role{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:10px;background:#eef3f7;border:1px solid var(--border,#dce3e8)}.st-role span{font-size:13px;line-height:1.5;color:#566574}
.st-zone{border-color:#a93434}.st-zone .st-top h3{color:#a93434}
.st-zone-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}.st-zone-item p{margin:2px 0 0;max-width:640px;font-size:13px;line-height:1.5}
.st-card .st-sep{margin:2px 0}
@media(max-width:850px){.st-zone-item .st-btn{width:100%}.st-narrow{max-width:none}}
.st-card>p.muted{margin:0;font-size:14px}
.st-table.st-thick th,.st-table.st-thick th.num{text-align:center}.st-table.st-thick td input{text-align:center}
