/* Ewidencja zużytych tonerów — recykling
 * Wersja: v0.6.2
 * Ostatnia zmiana: 2026-09-08
 * Zmiany v0.6.2:
 * - CHG: przycisk akcji: „Dodaj" (wprowadzanie), zielony „Zapisz" tylko przy
 *   edycji (klasa .is-edit).
 * Zmiany v0.6.1:
 * - FEATURE: przycisk aparatu przy polu kodu (skaner html5-qrcode).
 * Zmiany v0.6.0:
 * - CHG: tryb kompaktowy (mniejsze wysokości/paddingi, font-size bez zmian);
 *   filtr i dropdown druku w jednym rozmiarze.
 * Zmiany v0.5.7:
 * - CHG: węższe Info / uwagi; przycisk Zapisz na końcu tej linii (zielony).
 * Zmiany v0.5.6:
 * - CHG: linie sekcji — pastelowe odcienie (mocno zmniejszone nasycenie),
 *   blisko szarości tła pól, czytelny ciemny napis.
 * Zmiany v0.5.5:
 * - CHG: linie sekcji szare (jak tło pól), bez kolorów/ostrości.
 * Zmiany v0.5.4:
 * - FIX: wiersze sekcji miały jasne tło (zebra) + biały font → napis
 *   niewidoczny; tło wymuszone. Linie kolorowane wg statusu: szara/żółta/
 *   zielona (grp-0/1/2).
 * Zmiany v0.5.3:
 * - FIX: klasy kolumn nadpisywały kolor th (Lp./Info/Data wprowadzenia były
 *   szare) — nagłówki wszystkich kolumn są teraz białe (color #fff !important).
 * Zmiany v0.5.2:
 * - CHG: pole „Data odbioru" przed Status; ukrywane przez visibility
 *   (rezerwuje miejsce — bez skakania).
 * Zmiany v0.5.1:
 * - CHG: wszystkie nagłówki tabeli (kolumny, grupy, wydruk) — jasny font #fff.
 * Zmiany v0.5.0:
 * - FEATURE: chips statusu (nie / zgłoszony żółty / tak zielony), select
 *   Status i pole Data odbioru w formularzu.
 * Zmiany v0.4.0:
 * - FEATURE: kolumna „Data wydania"; grupy NIEWYDANE/WYDANE jak nagłówki
 *   (ten sam kolor fontu); pole daty wydania w formularzu.
 * Zmiany v0.3.7:
 * - CHG: ciemniejszy border pól input (widoczny na przyciemnionym tle).
 * Zmiany v0.3.6:
 * - CHG: tło pól input = kolor wiersza-grupy „Wydane" (--bg-tertiary).
 * Zmiany v0.3.5:
 * - CHG: „Wydany" w tabeli jako tekst tak/nie (bez checkboxa).
 * Zmiany v0.3.4:
 * - CHG: filtr przeniesiony do dolnej linii paska (przed „Zaznaczono: x").
 * Zmiany v0.3.3:
 * - CHG: Info / uwagi wypełnia całą linię; „Wydany" dosunięty do prawej.
 * Zmiany v0.3.2:
 * - CHG: węższe pole Info / uwagi + checkbox „Wydany" na końcu linii.
 * Zmiany v0.3.1:
 * - CHG: filtr tabeli przy lewej krawędzi, za nim przycisk „×" (kasowanie).
 * Zmiany v0.3.0:
 * - FEATURE: kolumny zaznaczenie/wydany, wiersze-grupy (Niewydane/Wydane),
 *   pasek „Wydaj zaznaczone" + Drukuj, style wydruku (@media print).
 * Zmiany v0.2.4:
 * - CHG: styl checkboxa „Zapamiętaj mnie" na ekranie logowania.
 * Zmiany v0.2.3:
 * - FIX: sticky nagłówek tabeli (usunięto overflow:hidden na .table-card i
 *   overflow-x:auto na .table-wrap, które łamały position:sticky — nagłówek
 *   „wskakiwał" w środek zamiast przyklejać się pod nagłówkiem strony).
 * Zmiany v0.2.2:
 * - FIX: atrybut hidden był nadpisywany przez .overlay{display:flex} — oba
 *   ekrany (logowanie / zmiana hasła) były widoczne nałożone; ekran zmiany
 *   hasła zawsze przykrywał logowanie. Dodano [hidden]{display:none!important}.
 * Zmiany v0.2.1:
 * - CHG: podpis konta (#pwdFor) na ekranie wymuszonej zmiany hasła.
 * Zmiany v0.2.0:
 * - CHG: szata graficzna jak katalog/opakowania (header granatowy #101775,
 *   tlo #f1f1fe, akcenty niebieskie, font Inter) — zamiast zielonej.
 * Poprzednio: v0.1.0
 */

:root {
    --bg: #f1f1fe;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --surface: #ffffff;
    --border: #e9ecef;
    --border-hover: #dee2e6;
    --text: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --primary: #0143d0;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --header-bg: #101775;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fef2f2;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --row-hover: #f1f5f9;
    --row-selected: #dbeafe;
    --font-size-base: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 150ms cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font: 400 var(--font-size-base)/1.5 var(--font);
    min-height: 100vh;
}

.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ─── Nakładki (logowanie / wymuszona zmiana hasła) ──────────────────── */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1100px 600px at 50% -10%, #e0e7ff 0%, #eef2ff 45%, #f1f1fe 100%);
}

.login-card {
    width: min(420px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 34px 30px 26px;
    text-align: center;
}

.login-card h1 { margin: 10px 0 6px; font-size: 20px; font-weight: 700; color: var(--text); }
.login-card .sub { color: var(--text-muted); font-size: 13px; margin: 0 0 6px; line-height: 1.5; }
.login-card .sub .pwd-for { color: var(--primary); font-size: 13px; font-weight: 700; }

.brand {
    width: 56px; height: 56px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: 50%;
}

/* ─── Karty i pola ───────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--label, #374151); margin: 14px 0 4px; text-align: left; }
label .req { color: var(--danger); }

input {
    width: 100%;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: #000;
    background: var(--bg-tertiary);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input::placeholder { color: #888; font-family: inherit; }
input:focus {
    outline: none;
    background: var(--surface);
    border-color: #101775;
    box-shadow: 0 0 0 3px rgba(16,23,117,.18);
}

.login-card label.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
  cursor: pointer;
}
.login-card label.remember-row input { width: auto; margin: 0; }

.error { color: var(--danger); font-size: 13px; margin: 10px 0 0; text-align: left; }

/* ─── Przyciski ──────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn.primary { background: var(--primary-light); color: var(--primary); border-color: var(--primary-border); }
.btn.primary:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
#saveBtn.is-edit { background: var(--success); color: #fff; border-color: var(--success); }
#saveBtn.is-edit:hover:not(:disabled) { background: #15803d; border-color: #15803d; }
.btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--primary-border); }
.btn.secondary:hover:not(:disabled) { background: var(--primary-light); }
.btn.ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn.ghost:hover:not(:disabled) { background: var(--bg-secondary); color: var(--text); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #fecaca; }
.btn.danger:hover:not(:disabled) { background: var(--danger-light); }
.btn.block { width: 100%; margin-top: 18px; padding: 12px; font-size: 15px; }
.btn.small { padding: 4px 10px; font-size: 12px; }

/* ─── Nagłówek aplikacji (jak Opakowania: granatowy) ─────────────────── */

.app-header {
    position: sticky; top: 0; z-index: 500;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
}

.app-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: #fff; white-space: nowrap; }
.brand-sm {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    font-size: 17px;
}
.tag {
    font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: #fff; background: rgba(255,255,255,.14);
    padding: 2px 8px; border-radius: 999px;
    margin-left: 2px;
}

.user-box { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 13.5px; font-weight: 500; color: #fff; }

#logoutBtn { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
#logoutBtn:hover { background: rgba(255,255,255,.14); color: #fff; }

.container { max-width: 1400px; margin: 0 auto; padding: 20px 24px 60px; }

/* ─── Panel skanowania ───────────────────────────────────────────────── */

.scan-panel { padding: 18px 22px 16px; margin-bottom: 20px; }

.form-row { display: flex; gap: 16px; align-items: flex-end; }
.form-row + .form-row { margin-top: 8px; }

.field { display: flex; flex-direction: column; min-width: 0; }
.field label { margin: 0 0 5px; }
.grow { flex: 1 1 auto; }

.ean-row { align-items: flex-start; }
.ean-row .hint { display: block; color: var(--text-muted); font-size: 12px; margin-top: 5px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.qty-field { flex: 0 0 110px; }
.qty-field input { text-align: center; font-weight: 700; font-size: 16px; }

#eanInput {
    font-family: var(--font-mono);
    font-size: 20px; font-weight: 600; letter-spacing: 2px;
    color: #000;
    padding: 11px 14px;
}

.actions-row { margin-top: 12px; align-items: center; }

.info-row { align-items: flex-end; }
.info-field { flex: 1 1 auto; min-width: 260px; max-width: 560px; }
.form-actions-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-bottom: 2px;
}
.wyd-data-field { flex: 0 0 190px; }
.wyd-data-field.date-hidden { visibility: hidden; }
.status-field { flex: 0 0 160px; }
.field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: #000;
    font: inherit;
    font-size: 14px;
}
.field select:focus {
    outline: none;
    background: var(--surface);
    border-color: #101775;
    box-shadow: 0 0 0 3px rgba(16,23,117,.18);
}
.wyd-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.wyd-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}
#editingBadge { background: var(--warning-light); color: #b45309; border-color: #fcd34d; }

/* ─── Obszar podpowiedzi lookup ──────────────────────────────────────── */

.lookup {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius);
    font-size: 13px;
}
.lookup .lookup-msg { color: var(--text-muted); }
.lookup .lookup-ok  { color: var(--primary); font-weight: 600; }
.lookup ul { list-style: none; margin: 8px 0 0; padding: 0; }
.lookup li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.lookup li .suggest { font-weight: 600; color: var(--text); }
.lookup li .src { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup li a { color: var(--text-muted); font-size: 12px; text-decoration: none; flex-shrink: 0; }
.lookup .use-btn {
    margin-left: auto; flex-shrink: 0;
    border: 1px solid var(--primary-border);
    background: var(--surface); color: var(--primary);
    border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 500; cursor: pointer;
    font-family: var(--font);
}
.lookup .use-btn:hover { background: var(--primary-light); }

/* ─── Tabela ─────────────────────────────────────────────────────────── */

.table-card { padding: 0; }

.table-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}
.table-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.filter-group-left { display: flex; align-items: center; gap: 6px; margin-right: 10px; }
#filterInput { width: 260px; padding: 6px 10px; font-size: 13px; }
#filterClearBtn { padding: 4px 10px; font-size: 15px; line-height: 1; }
.bulk-left { gap: 10px; }

.table-wrap { overflow: visible; }

.toner-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 900px; }

.toner-table thead th {
    position: sticky; top: 64px; z-index: 20;
    background: #101775;
    color: #fff;
    text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    padding: 7px 10px;
    border-right: 1px solid rgba(255,255,255,.14);
    border-bottom: 2px solid #000;
}
.toner-table thead th:last-child { border-right: none; }

.toner-table tbody td { padding: 6px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: middle; }
.toner-table tbody td:last-child { border-right: none; }
.toner-table tbody tr:nth-child(even) td { background: var(--bg-secondary); }
.toner-table tbody tr:hover td { background: var(--row-hover); }
.toner-table tbody tr.is-editing td { background: var(--row-selected); }
.toner-table tbody tr.is-editing td:first-child { box-shadow: inset 3px 0 0 var(--header-bg); }

.toner-table .mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .4px; color: #000; }
.toner-table .dim { color: var(--text-muted); font-style: italic; }
.toner-table .nowrap { white-space: nowrap; }
.toner-table .col-lp   { width: 48px; text-align: center; color: var(--text-muted); font-size: 12px; }
.toner-table .col-ean  { width: 150px; }
.toner-table .col-nazwa { min-width: 210px; }
.toner-table .col-info { min-width: 150px; color: var(--text-secondary); }
.toner-table .col-szt  { width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.toner-table .col-data { width: 142px; white-space: nowrap; color: var(--text-secondary); }
.toner-table .col-osoba { width: 170px; }
.toner-table .col-akcje { width: 132px; text-align: right; white-space: nowrap; }

.row-actions { display: inline-flex; gap: 6px; }
.toner-table tbody button {
    border: 1px solid var(--border); background: var(--surface);
    border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer;
    color: var(--text-secondary); font-family: var(--font);
    transition: all var(--transition);
}
.toner-table tbody button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.toner-table tbody button.del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }

.toner-table .empty-row td { text-align: center; color: var(--text-muted); padding: 26px; border-right: none; }

/* ─── Toasty ─────────────────────────────────────────────────────────── */

#toastBox { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--text);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toast-in .18s ease-out;
    max-width: 380px;
}
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Scrollbar ──────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 760px) {
    .header-inner { padding: 0 14px; }
    .app-title { font-size: 15px; }
    .tag { display: none; }
    .form-row { flex-direction: column; align-items: stretch; }
    .qty-field { flex: none; }
    .qty-field input { text-align: left; width: 110px; }
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .filter-group-left { width: 100%; }
    #filterInput { width: 100%; }
  .table-wrap { overflow-x: auto; }
}

/* ─── v0.3.0: zaznaczenia / wydany / grupy / druk ─────────────────────── */

.toner-table .col-sel { width: 34px; text-align: center; }
.toner-table .col-wyd { width: 96px; text-align: center; }
.toner-table .col-wdata { width: 96px; text-align: center; white-space: nowrap; }
.toner-table .status-0 { color: var(--text-muted); }
.toner-table .status-1 {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
.toner-table .status-2 { color: var(--success); font-weight: 700; }
.toner-table .col-akcje { width: 128px; }

.toner-table input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
    vertical-align: middle;
}

.toner-table tbody tr.group-hdr td {
    background: var(--bg-tertiary) !important; /* szary jak tło pól */
    color: #374151 !important;
    border-right: none;
    border-bottom: 1px solid var(--border-hover);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 7px 12px;
}
/* Pastelowe odcienie statusów (nieostre, blisko tła pól). */
.toner-table tbody tr.group-hdr.grp-0 td { background: #e7ebef !important; }
.toner-table tbody tr.group-hdr.grp-1 td { background: #fdecc8 !important; }
.toner-table tbody tr.group-hdr.grp-2 td { background: #daf0e4 !important; }

/* Nagłówki WSZYSTKICH kolumn: biały font (klasy kolumn nadpisywały kolor na th). */
.toner-table thead th { color: #fff !important; }

.bulk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 18px;
    border-bottom: 1px solid var(--border);
}
.bulk-left, .bulk-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.print-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
}
#printScope {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
}

/* ─── Druk ────────────────────────────────────────────────────────────── */

#printArea { display: none; }

@media print {
    body.printing .app-header,
    body.printing .scan-panel,
    body.printing .table-card,
    body.printing #loginOverlay,
    body.printing #pwdOverlay { display: none !important; }
    body.printing #printArea { display: block !important; }
    #printArea { font-family: var(--font); }
    #printArea h2 { margin: 0 0 2px; font-size: 15px; }
    #printArea .print-meta { color: #333; font-size: 11px; margin-bottom: 10px; }
    #printArea table { width: 100%; border-collapse: collapse; }
    #printArea th, #printArea td {
        border: 1px solid #888;
        padding: 3px 6px;
        text-align: left;
        font-size: 10.5px;
        vertical-align: top;
    }
    #printArea th { background: var(--header-bg); color: #fff; }
}

/* ─── v0.6.0: tryb kompaktowy (wysokości, bez zmiany font-size) ───────── */

.header-inner { height: 52px; padding: 0 20px; }
.container { padding: 12px 20px 40px; }
.scan-panel { padding: 12px 16px 10px; margin-bottom: 12px; }

.form-row { gap: 10px; }
.form-row + .form-row { margin-top: 4px; }
.field label { margin: 0 0 3px; }
.ean-row .hint { margin-top: 3px; }

input { padding: 6px 10px; font-size: 14px; }
#eanInput { padding: 8px 12px; font-size: 20px; }
.field select { padding: 6px 10px; font-size: 14px; }
.qty-field input { padding: 6px 8px; }

.bulk-row { padding: 5px 16px; }
#filterInput { padding: 3px 8px; font-size: 13px; width: 220px; }
#printScope { padding: 4px 8px; font-size: 13px; }
.bulk-row .btn { padding: 4px 10px; font-size: 12px; }
#odbiorDate { padding: 3px 6px; font-size: 13px; }

.table-toolbar { padding: 8px 16px; }
.toner-table thead th { padding: 4px 8px; top: 52px; }
.toner-table tbody td { padding: 3px 8px; }
.toner-table tr.group-hdr td { padding: 3px 10px; }
.toner-table .row-actions button { padding: 2px 7px; }
.form-actions-line .btn { padding: 6px 14px; }
.form-actions-line #saveBtn { padding: 6px 18px; }



/* ─── v0.6.1: skaner aparatu ─────────────────────────────────────────── */

.code-input-line { display: flex; gap: 6px; }
.code-input-line #eanInput { flex: 1 1 auto; min-width: 0; }
.scan-cam {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: var(--bg-tertiary);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.scan-cam:hover { background: var(--surface); border-color: #101775; }

.cam-card { width: min(560px, calc(100vw - 32px)); padding: 22px 24px; text-align: center; }
.cam-card h2 { margin: 0 0 4px; font-size: 18px; }
.cam-card .cam-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 12px; }
#qrReader { width: 100%; max-width: 420px; margin: 0 auto 14px; border-radius: 8px; overflow: hidden; }
#qrReader video { border-radius: 8px; }
.cam-actions { display: flex; justify-content: center; gap: 8px; }
