/*
  Centrala wygląda jak standardowy Tabler (kolory, promienie i komponenty z dema). Tu są tylko: krój Lato z księgi znaku,
  logo i kilka drobnych uzupełnień, których Tabler nie ma. Kolor główny zmienia jedna zmienna (--tblr-primary).
*/

@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("vendor/lato/lato-latin-ext-400-normal.4bde07f991ba.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("vendor/lato/lato-latin-400-normal.e1b3b5908c9c.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("vendor/lato/lato-latin-ext-700-normal.a48b0f049358.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("vendor/lato/lato-latin-700-normal.de69cf9e514d.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url("vendor/lato/lato-latin-ext-900-normal.4b5f220a1274.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url("vendor/lato/lato-latin-900-normal.1c6c65523675.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --tblr-font-sans-serif: "Lato", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }

/* Logo z pliku księgi znaku, obok nazwa aplikacji */
.navbar-brand-image { height: 1.75rem; width: auto; }
.login-logo { height: 2.75rem; width: auto; }
.brand-suffix { margin-left: 0.6rem; padding-left: 0.6rem; border-left: 1px solid var(--tblr-border-color); color: var(--tblr-secondary); font-weight: 400; font-size: 0.9rem; }

/* Liczby w tabelach: do prawej, równe cyfry */
.num, .table thead th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tabele django-tables2: nagłówki sortowania w kolorze nagłówka, strzałka przy aktywnej kolumnie */
.table thead th a { color: inherit; text-decoration: none; }
.table thead th.asc a::after { content: " \2191"; }
.table thead th.desc a::after { content: " \2193"; }

/* Formularze crispy: gwiazdka pola wymaganego jak w Tablerze, grupy pól z nagłówkiem */
.asteriskField { color: var(--tblr-danger); margin-left: 0.25rem; }
.card-body fieldset > legend { font-size: 1rem; font-weight: 600; margin: 0.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--tblr-border-color); }

/* Prosty wykres słupkowy na pulpicie (bez dodatkowej biblioteki) */
.bars { display: flex; align-items: flex-end; gap: 0.35rem; height: 9rem; }
.bars .bar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bars .bar .track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bars .bar span { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--tblr-primary); }
.bars .bar.weekend span { opacity: 0.5; }
.bars .bar small { margin-top: 0.35rem; color: var(--tblr-secondary); font-size: 0.7rem; }

/* Formularze magazynowe na telefonie: duże pola dotyku */
.touch .form-control, .touch .form-select, .touch .btn { min-height: 3rem; font-size: 1.05rem; }
.touch .qty-input { max-width: 7rem; text-align: center; font-weight: 700; }
.sticky-actions { position: sticky; bottom: 0; background: var(--tblr-bg-surface); border-top: 1px solid var(--tblr-border-color); padding: 0.75rem 1rem; z-index: 5; }
