:root {
  /* Paleta PRAWDZIWEJ marki SG-GLOVES (2026-09-21) — kolory zmierzone bezpośrednio
     z logo i zrzutów ekranu sklepu (sg-gloves.pl): granat + złoto, BEZ koralu (poprzednia
     paleta appki była tylko przybliżeniem "na oko" ekranu logowania, nie prawdziwej marki —
     patrz commity z 2026-08-23/25). Granat #071a34 = kolor logo/nawigacji sklepu (próbka
     piksela z nagłówka sklepu), złoto #f4d36a = kolor WSZYSTKICH przycisków/odznak w
     sklepie ("Korzyści z konta", "Klient SMS", odznaki koszyka/ulubionych) — dokładna
     próbka piksela, nie przybliżenie. Złoto jest JASNE, więc wszędzie gdzie wcześniej
     koral był tłem z BIAŁYM tekstem, teraz złoto jest tłem z GRANATOWYM tekstem (biały
     tekst na złocie miałby fatalny kontrast) — granat przejął rolę "czytelny ciemny
     akcent na białym tle", którą wcześniej pełnił --sh-coral-dark. */
  --sh-navy: #071a34;
  --sh-navy-deep: #051122;
  --sh-gold: #f4d36a;
  --sh-gold-dark: #cfb35a;
  --sh-gold-tint: #fdf7e4;
  --sh-white: #ffffff;
  --sh-bg: #f6f7f8;
  --sh-border: #e8e9ec;
  --sh-text: #1a1a1a;
  --sh-text-muted: #7a7f87;
  --sh-danger: #c23b3b;
  --sh-success: #2f8f4e;
  --sh-radius: 16px;
  --sh-radius-pill: 999px;
  font-size: 16px;
}

:focus-visible {
  /* Granat, nie złoto — złoty pierścień 2px miałby za słaby kontrast na białym tle,
     żeby był widoczny dla klawiatury/screen readera. Złoto zostaje przy wypełnieniach
     (przyciski/odznaki), granat przy obwódkach/tekście na jasnym tle. */
  outline: 2px solid var(--sh-navy);
  outline-offset: 2px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--sh-bg);
  color: var(--sh-text);
}

/* ---------- Baner aktualizacji (nowa wersja service workera) ---------- */
.sh-update-banner {
  /* Celowo NIE sticky: appka ma już własny sticky header (top:0) — dwa sticky
     elementy z tym samym top:0 nachodziłyby na siebie przy scrollu. Baner scrolluje
     się razem ze stroną, co wystarcza (pokazuje się raz, użytkownik go od razu
     obsługuje albo zamyka). */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: var(--sh-gold);
  color: var(--sh-navy);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.sh-update-banner__actions { display: inline-flex; gap: 8px; }
.sh-update-banner__btn {
  /* Tło baneru jest teraz jasne (złoto), więc obwódka/tekst tego przycisku-widma
     muszą być granatowe, nie białe (białe na złocie byłoby niewidoczne). */
  border: 1px solid rgba(7, 26, 52, 0.45);
  background: transparent;
  color: var(--sh-navy);
  border-radius: var(--sh-radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.sh-update-banner__btn:hover { background: rgba(7, 26, 52, 0.08); }
.sh-update-banner__btn--primary {
  /* Odwrócone tło (granat) na jasnym złotym banerze — solidny, wyraźny CTA, dokładnie
     tak jak granatowe przyciski ("Strefa handlowca") obok złotych na prawdziwej stronie. */
  background: var(--sh-navy);
  color: var(--sh-white);
  border-color: var(--sh-navy);
}
.sh-update-banner__btn--primary:hover { background: var(--sh-navy-deep); }

/* ---------- Header / branding (biały, jak w app.sg-gloves.pl) ---------- */
.sh-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--sh-white);
  color: var(--sh-text);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sh-border);
}

.sh-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sh-header__logo {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.sh-header__names {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.sh-header__shopname {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--sh-text);
}

.sh-header__divider {
  width: 1px;
  height: 16px;
  background: var(--sh-border);
  flex-shrink: 0;
}

.sh-header__module {
  font-size: 13px;
  font-weight: 500;
  color: var(--sh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Na wąskich ekranach etykieta modułu i licznik ustępują miejsca marce i akcjom. */
@media (max-width: 380px) {
  .sh-header__divider,
  .sh-header__module {
    display: none;
  }
}

.sh-header__rep {
  font-size: 13px;
  color: var(--sh-text-muted);
  margin-right: 8px;
  display: none;
}

@media (min-width: 640px) {
  .sh-header__rep { display: inline; }
}

.sh-header__logout {
  background: var(--sh-gold-tint);
  border: none;
  color: var(--sh-navy);
  border-radius: var(--sh-radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
/* Hover przechodzi w pełny granat (nie złoto) — złoto jest już jasne w stanie
   domyślnym, więc "jaśniejszy" hover nie dałby wyraźnej informacji zwrotnej;
   granat + biały tekst to najmocniejszy dostępny kontrast w tej palecie. */
.sh-header__logout:hover { background: var(--sh-navy); color: var(--sh-white); }

/* ---------- Bottom nav (mobile-first, jak w PWA sklepu) ---------- */
/* .sh-nav to CAŁY stały pasek u dołu appki: rząd zakładek (.sh-nav__items,
   przewijany w poziomie) + wąski pasek numeru wersji (.sh-version-bar) pod
   spodem — oba w jednym stałym bloku, żeby numer wersji był ZAWSZE widoczny
   (nie tylko po przewinięciu treści na sam dół) i przesuwał się razem z
   zakładkami, zamiast być osobnym elementem, który trzeba by ręcznie
   synchronizować z wysokością paska nawigacji. */
.sh-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--sh-white);
  border-top: 1px solid var(--sh-border);
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Owija .sh-nav__items, żeby móc nałożyć strzałki przewijania + delikatne
   przygaszenie na krawędziach — na wąskich ekranach zakładek jest więcej niż
   się mieści, a sam ukryty pasek przewijania (patrz niżej) nie daje żadnej
   wskazówki, że jest czego szukać dalej. Widoczność strzałek/przygaszenia
   sterowana z JS (patrz updateNavScrollState() w app.js) na podstawie
   faktycznego overflow — na szerokich ekranach, gdzie wszystko się mieści,
   nic się nie pokazuje. */
.sh-nav__scroller {
  position: relative;
}
.sh-nav__scroller::before,
.sh-nav__scroller::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sh-nav__scroller::before { left: 0; background: linear-gradient(to right, var(--sh-white), transparent); }
.sh-nav__scroller::after { right: 0; background: linear-gradient(to left, var(--sh-white), transparent); }
.sh-nav__scroller.is-scrollable-left::before { opacity: 1; }
.sh-nav__scroller.is-scrollable-right::after { opacity: 1; }

.sh-nav__scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--sh-border);
  background: var(--sh-white);
  color: var(--sh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  z-index: 5;
}
.sh-nav__scroll-btn svg { width: 13px; height: 13px; }
.sh-nav__scroll-btn--left { left: 3px; }
.sh-nav__scroll-btn--right { right: 3px; }
.sh-nav__scroll-btn[hidden] { display: none; }

.sh-nav__items {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sh-nav__items::-webkit-scrollbar { display: none; }

.sh-version-bar {
  text-align: center;
  font-size: 10px;
  color: var(--sh-text-muted);
  padding: 0 0 5px;
}

.sh-nav__item {
  flex: 0 0 auto;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px 10px;
  font-size: 10.5px;
  color: #9aa0a8;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.sh-nav__item[hidden] { display: none; }

.sh-nav__item svg { width: 20px; height: 20px; }

.sh-nav__item.is-active {
  /* Tekst na białym pasku nawigacji — granat (nie złoto: złoty tekst na bieli
     jest nieczytelny). */
  color: var(--sh-navy);
  font-weight: 700;
}

/* ---------- Layout ---------- */
.sh-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 98px;
}

.sh-view { display: none; }
.sh-view.is-active { display: block; }

.sh-title {
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0 14px;
}

.sh-card {
  background: var(--sh-white);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
button.sh-card:hover,
a.sh-card:hover {
  /* Dekoracyjne podświetlenie (bez tekstu na tym kolorze) — złoto, żywsze niż
     granat, dobrze pasuje do roli "coś się dzieje pod kursorem". */
  border-color: var(--sh-gold);
  box-shadow: 0 4px 14px rgba(244, 211, 106, 0.3);
}

.sh-card__title { font-weight: 600; margin-bottom: 4px; }
.sh-card__meta { font-size: 13px; color: var(--sh-text-muted); }
.sh-card__owner { color: var(--sh-navy); font-weight: 600; }

.sh-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.sh-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--sh-radius-pill);
  background: #eef1f4;
  color: var(--sh-text-muted);
}
.sh-badge--success { background: #e6f4ea; color: var(--sh-success); }
.sh-badge--warn { background: #fdf3e2; color: #93690a; }
.sh-badge--info { background: #e8eef7; color: #2a5aa8; }

.sh-search {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--sh-radius);
  font-size: 14px;
  margin-bottom: 12px;
  background: var(--sh-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sh-search:focus {
  outline: none;
  background: var(--sh-white);
  /* Granatowa krawędź (precyzyjna, czytelna) + miękka złota poświata — połączenie
     obu barw marki na elementach formularza. */
  border-color: var(--sh-navy);
  box-shadow: 0 0 0 3px var(--sh-gold-tint);
}

/* ---------- Przyciski — w pełni zaokrąglone (pill), jak w app.sg-gloves.pl ---------- */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--sh-radius-pill);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--sh-gold);
  color: var(--sh-navy);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.sh-btn:hover { background: var(--sh-gold-dark); }
.sh-btn:active { transform: scale(0.98); }
.sh-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sh-btn--full { width: 100%; }
.sh-btn--ghost { background: var(--sh-gold-tint); color: var(--sh-navy); border: none; }
/* Jak przy .sh-header__logout wyżej — hover przechodzi w granat, nie w mocniejsze
   złoto, żeby dać wyraźny, ciemny stan "aktywny/wciśnięty". */
.sh-btn--ghost:hover { background: var(--sh-navy); color: var(--sh-white); }
.sh-btn--sm { padding: 8px 14px; font-size: 13px; }
.sh-btn--danger { background: var(--sh-danger); color: var(--sh-white); }
.sh-btn--danger:hover { background: #a32f2f; }
.sh-btn--danger-ghost { background: #fdeaea; color: var(--sh-danger); }
.sh-btn--danger-ghost:hover { background: var(--sh-danger); color: var(--sh-white); }
.sh-btn[hidden] { display: none !important; } /* .sh-btn { display:inline-flex } ma tę samą specyficzność co [hidden] i bez tego wygrywałby w kolejności kaskady, pokazując "ukryte" przyciski kreatora */

.sh-field { margin-bottom: 14px; }
.sh-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--sh-text); }
.sh-field input,
.sh-field select,
.sh-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--sh-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sh-field input:focus,
.sh-field select:focus,
.sh-field textarea:focus {
  outline: none;
  background: var(--sh-white);
  border-color: var(--sh-navy);
  box-shadow: 0 0 0 3px var(--sh-gold-tint);
}
.sh-field textarea { resize: vertical; min-height: 70px; }

/* ---------- Przełącznik zakresu (np. Moje / Wszystkie na liście ofert) ----------
   Wzorowany na przełączniku "E-mail / SMS" z ekranu logowania prawdziwej appki:
   szary tor + biała, uniesiona "pigułka" dla aktywnej opcji (bez koloru akcentu). */
.sh-segmented {
  display: inline-flex;
  background: var(--sh-bg);
  border: none;
  border-radius: var(--sh-radius-pill);
  padding: 3px;
  margin-bottom: 12px;
  gap: 2px;
}
.sh-segmented__btn {
  border: none;
  background: transparent;
  color: var(--sh-text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--sh-radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.sh-segmented__btn.is-active {
  background: var(--sh-white);
  color: var(--sh-text);
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.12);
}

/* ---------- Chipy filtrów (np. kategorie) — w pełni zaokrąglone, jak w sklepie ---------- */
.sh-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sh-chip-row::-webkit-scrollbar { display: none; }
.sh-chip {
  flex: 0 0 auto;
  border: 1px solid var(--sh-border);
  background: var(--sh-white);
  color: var(--sh-text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--sh-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.sh-chip.is-active { background: var(--sh-gold); border-color: var(--sh-gold); color: var(--sh-navy); }

.sh-error {
  background: #fdeaea;
  color: var(--sh-danger);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.sh-error.is-visible { display: block; }

.sh-empty { text-align: center; color: var(--sh-text-muted); padding: 30px 10px; font-size: 14px; }

/* ---------- Dashboard stats ---------- */
.sh-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.sh-stat {
  background: var(--sh-white);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 14px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.05);
}
.sh-stat__value { font-size: 22px; font-weight: 700; }
.sh-stat__label { font-size: 12px; color: var(--sh-text-muted); margin-top: 2px; }

.sh-progress {
  height: 8px;
  border-radius: var(--sh-radius-pill);
  background: #eceef0;
  overflow: hidden;
  margin: 8px 0 4px;
}
.sh-progress__bar { height: 100%; background: var(--sh-gold); }

/* ---------- Order builder ---------- */
.sh-order-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sh-border);
}
.sh-order-line:last-child { border-bottom: none; }
.sh-order-line__name { flex: 1; font-size: 13px; }
.sh-order-line__qty { width: 60px; padding: 6px; border: 1px solid var(--sh-border); border-radius: 8px; text-align: center; }

/* ---------- Login page (jasny motyw, jak ekran logowania app.sg-gloves.pl) ---------- */
.sh-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--sh-bg);
}

.sh-login__panel {
  background: var(--sh-white);
  border-radius: 20px;
  padding: 32px 26px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 30px rgba(26, 26, 26, 0.08);
}

.sh-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sh-login__logo { height: 48px; width: 48px; object-fit: contain; }

.sh-login__names {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-login__shopname { font-weight: 700; font-size: 17px; color: var(--sh-text); }
.sh-login__divider { width: 1px; height: 16px; background: var(--sh-border); }
.sh-login__module {
  font-size: 12px;
  font-weight: 600;
  color: var(--sh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sh-login__footer {
  text-align: center;
  font-size: 12px;
  color: var(--sh-text-muted);
  margin-top: 18px;
}

/* ---------- Offer / status badges ---------- */
.sh-badge--draft { background: #eef1f4; color: var(--sh-text-muted); }
.sh-badge--sent { background: #e8eef7; color: #2a5aa8; }
.sh-badge--accepted { background: #e6f4ea; color: var(--sh-success); }
.sh-badge--rejected { background: #fdeaea; color: var(--sh-danger); }
.sh-badge--expired { background: #f4f0e6; color: #8a6d1f; }

.sh-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sh-text);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-pill);
  margin: 4px 6px 0 0;
}
.sh-doc-link:hover { background: var(--sh-gold-tint); border-color: var(--sh-gold-tint); color: var(--sh-navy); }
/* .sh-doc-link użyty na <button> (przyciski "Pobierz przykładowy cennik" —
   patrz public/js/views/priceLists.js) zamiast na <a> (linki PDF ofert) —
   reset domyślnego wyglądu przycisku, żeby wyglądały identycznie. */
button.sh-doc-link { background: none; font: inherit; cursor: pointer; }
button.sh-doc-link:disabled { cursor: default; opacity: 0.6; }

.sh-line-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.sh-line-table th, .sh-line-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--sh-border); }
.sh-line-table th { color: var(--sh-text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; }
.sh-line-table td.num, .sh-line-table th.num { text-align: right; }

.sh-totals { margin-top: 10px; font-size: 13px; }
.sh-totals .sh-row { padding: 2px 0; }
.sh-totals .sh-row.grand { font-weight: 700; font-size: 15px; border-top: 1px solid var(--sh-border); margin-top: 6px; padding-top: 8px; }
.sh-totals .sh-row.grand span:last-child { color: var(--sh-navy); }

.sh-back {
  background: none;
  border: none;
  color: var(--sh-text-muted);
  font-size: 13px;
  padding: 0 0 12px;
  cursor: pointer;
}
.sh-back:hover { color: var(--sh-navy); }

.sh-thread-msg {
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  background: #f4f4f5;
}
.sh-thread-msg--out { background: var(--sh-gold-tint); }
.sh-thread-msg__meta { font-size: 11px; color: var(--sh-text-muted); margin-bottom: 4px; }

.sh-fit-score {
  /* Złoto + granat — dokładnie ten sam wzorzec co odznaki koszyka/ulubionych
     na prawdziwej stronie sklepu (zweryfikowane próbką piksela ze zrzutu ekranu). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sh-gold);
  color: var(--sh-navy);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sh-account-card { display: flex; align-items: center; gap: 12px; }
.sh-account-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sh-navy); color: var(--sh-white);
  /* Złota obwódka na granatowym kółku — gdyby zamiast tego była granatowa, byłaby
     niewidoczna na granatowym tle. */
  border: 2px solid var(--sh-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.sh-refresh-btn {
  background: none; border: none; color: var(--sh-text-muted);
  font-size: 12px; cursor: pointer; padding: 0;
}
.sh-refresh-btn:hover { color: var(--sh-navy); }

.sh-spinner {
  /* currentColor na obracającej się krawędzi zamiast twardo wpisanej bieli — ten
     spinner nie jest dziś użyty nigdzie w kodzie (sprawdzone), ale gdyby trafił na
     złote tło (.sh-btn), biały byłby niewidoczny; currentColor dziedziczy kolor
     tekstu miejsca, w którym się pojawi, więc działa poprawnie niezależnie od tła. */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  animation: sh-spin 0.7s linear infinite;
}
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* ---------- Kreator wieloetapowy (np. formularz "Nowa oferta") ----------
   Nawigacja krokami: przyciski "← Wstecz" / "Dalej →" plus strzałki klawiatury
   (patrz offers.js) — standardowy wzorzec wieloetapowych formularzy w apkach. */
.sh-wizard-steps {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 2px;
}
.sh-wizard-steps::-webkit-scrollbar { display: none; }
.sh-wizard-step {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sh-text-muted);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--sh-radius-pill);
  background: var(--sh-bg);
}
.sh-wizard-step em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sh-white);
  color: var(--sh-text-muted);
  font-size: 10px;
}
.sh-wizard-step.is-active {
  background: var(--sh-gold);
  color: var(--sh-navy);
}
/* Granatowe kółko z numerem na złotym tle aktywnego kroku — połączenie obu
   barw marki, dobry kontrast (jasne złoto na ciemnym granacie). */
.sh-wizard-step.is-active em { background: var(--sh-navy); color: var(--sh-gold); }

.sh-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.sh-wizard-nav .sh-btn { flex: 1; }
.sh-wizard-nav .sh-btn:only-child { flex: 1; }

/* ---------- Cenniki klientów: import pliku + mapowanie kolumn ----------
   Patrz public/js/views/priceLists.js. Selekty mapowania kolumn i wyszukiwarka
   produktu celowo używają natywnych elementów (<select>, <input>) zamiast
   przeciągania — to samo podejście co w prawdziwym module (views/js/pricelists.js)
   i najlepiej sprawdza się palcem na telefonie (duże, natywne cele dotyku, bez
   przypadkowych przeciągnięć podczas przewijania listy). */
.sh-price-toggle { all: unset; cursor: pointer; display: block; width: 100%; }
.sh-price-input {
  width: 64px;
  padding: 5px 6px;
  border: 1px solid var(--sh-border);
  border-radius: 8px;
  text-align: right;
  font: inherit;
}
.sh-price-input:disabled { background: var(--sh-bg); color: var(--sh-text-muted); }

.sh-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--sh-border);
  border-radius: var(--sh-radius);
  background: var(--sh-bg);
  cursor: pointer;
}
.sh-dropzone:hover, .sh-dropzone:focus-within { border-color: var(--sh-navy); background: var(--sh-white); }
.sh-dropzone__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sh-gold-tint);
  color: var(--sh-navy);
  font-size: 16px;
}
.sh-dropzone strong { display: block; font-size: 14px; }
.sh-dropzone small { display: block; color: var(--sh-text-muted); font-size: 12px; margin-top: 2px; }

.sh-mapfields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px 12px;
}

.sh-maprow {
  background: var(--sh-white);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 12px;
  margin-bottom: 10px;
}
.sh-maprow.is-matched { border-color: var(--sh-success); }
.sh-maprow__source { margin-bottom: 8px; }
.sh-maprow__source strong { display: block; font-size: 14px; margin: 2px 0; }
.sh-maprow__prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
.sh-maprow__prices label { font-size: 11px; font-weight: 600; color: var(--sh-text); }
.sh-maprow__prices input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 4px;
  border: 1px solid var(--sh-border);
  border-radius: 8px;
  text-align: center;
  font: inherit;
}

/* ---------- Komunikaty (Kierownik/Dyrektor -> Handlowiec) ---------- */

/* Licznik nieprzeczytanych na zakładce "Komunikaty" w dolnej nawigacji — złoto +
   granat, dokładnie jak odznaki liczników koszyka/ulubionych na prawdziwej
   stronie sklepu (zweryfikowane próbką piksela), żeby wyglądał jak "coś nowego
   czeka", nie jak zwykła etykieta. */
.sh-nav__item { position: relative; }
.sh-nav__badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--sh-radius-pill);
  background: var(--sh-gold);
  color: var(--sh-navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.sh-nav__badge[hidden] { display: none; }

/* Baner na górze appki (pod nagłówkiem, nad treścią widoku) z najnowszym
   nieprzeczytanym komunikatem — celowo NIE sticky, tak samo jak
   .sh-update-banner wyżej (appka ma już własny sticky header). */
.sh-announcement-banner {
  background: var(--sh-gold-tint);
  border-bottom: 1px solid var(--sh-gold);
}
.sh-announcement-banner__head {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.sh-announcement-banner__icon { font-size: 18px; flex: 0 0 auto; }
.sh-announcement-banner__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  color: var(--sh-navy);
}
.sh-announcement-banner__text strong { font-size: 13px; }
.sh-announcement-banner__text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-announcement-banner__toggle,
.sh-announcement-banner__dismiss {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--sh-navy);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
  font-family: inherit;
}
.sh-announcement-banner__dismiss { font-size: 15px; padding: 6px; }
.sh-announcement-banner__body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sh-text);
}

/* Formularz wysyłki (rola manager/director) na ekranie "Komunikaty". */
.sh-audience-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.sh-audience-toggle__option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sh-audience-toggle__option:has(input:checked) {
  border-color: var(--sh-gold);
  background: var(--sh-gold-tint);
  color: var(--sh-navy);
}

.sh-recipient-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.sh-recipient-list[hidden] { display: none; }
.sh-recipient-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--sh-border);
}
.sh-recipient-list__item:last-child { border-bottom: none; }
.sh-recipient-list__item input { width: 18px; height: 18px; flex: 0 0 auto; }

/* Lista/inbox komunikatów (wszystkie role) — <details> rozwijane dotykiem,
   ten sam wzorzec co komunikaty w panelu Sales Hub w sklepie (dashboard.tpl). */
.sh-announcement {
  background: var(--sh-white);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.sh-announcement.is-unread { border-color: var(--sh-gold); }
.sh-announcement__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.sh-announcement__summary::-webkit-details-marker { display: none; }
.sh-announcement__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: transparent;
}
.is-unread .sh-announcement__status { background: var(--sh-gold); }
.sh-announcement__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-announcement__text strong { font-size: 14px; }
.sh-announcement__text small { font-size: 12px; color: var(--sh-text-muted); }
.sh-announcement__toggle { font-size: 12px; font-weight: 700; color: var(--sh-navy); flex: 0 0 auto; }
.sh-announcement[open] .sh-announcement__toggle { display: none; }
.sh-announcement__body {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}
