/* ============================================================
   Breakpointy (audit V N4, 21.08.2026)
   Kanonické prahy pre NOVÝ kód:
     768px  — mobil (hlavný layout, + min-width: 769px komplement)
     860px  — kompakt (landing sekcie, užšie tabuľky)
     1200px — úzky desktop (orezanie širokých stĺpcov)
     1400px — len vývojárske nástroje (group-switcher a pod.)
   Existujúce odchýlky (820, 900, 1100) sú ponechané ZÁMERNE: každá
   viaže konkrétny prvok na šírku, pri ktorej reálne pretiekol
   (module-title @900, group-switcher @820, sim-select @1100) —
   prečíslovanie by menilo správanie bez vizuálneho overenia.
   Nový breakpoint pridávaj LEN z kanonického zoznamu.
   ============================================================ */
/* Volmet.online - Main Styles with Dark Mode */
:root {
    /* Light mode (default) */
    --color0: #092c40;
    --color1: #0e4463;
    --color2: #df122a;
    --color2-hover: #c9051c;
    --color3: #12a6df;
    --color3-hover: #0794cc;
    /* Audit IV U1 — #12a6df má s bielym textom kontrast 2,78:1 a padá na WCAG AA
       (potreba 4,5:1). Svetlý odtieň ostáva pre okraje a akcenty, kde kontrast
       netreba; všade, kde nesie biely text alebo je to odkaz, sa použije tento. */
    --color3-strong: #0a7099;        /* 5,54:1 s bielym textom */
    --color3-strong-hover: #09638a;  /* 6,64:1 */
    --link-color: #0a7099;           /* odkaz na svetlom pozadí */

    /* Sémantická vrstva (Audit IV U3). Značkové --colorN hovoria, AKÁ je
       farba; tieto hovoria, ČO znamená. Predtým bola primárnou farbou
       červená --color2 a stavové farby neexistovali, takže chybu ani
       deštruktívnu akciu nešlo vizuálne odlíšiť od bežného potvrdenia. */
    --danger: #c9051c;          --danger-fg: #fff;    /* 6,0:1 s bielym */
    --danger-hover: #a30417;
    --success: #0f7b3d;         --success-fg: #fff;   /* 4,9:1 */
    --warning: #9a6700;         --warning-fg: #fff;   /* 4,8:1 */
    --info: var(--color3-strong); --info-fg: #fff;

    /* Pozadie primárneho tlačidla je ZÁMERNE mimo tém. --color1 sa v tmavom
       režime mení na svetlomodrú #12a6df a biely text na nej má 2,78:1 —
       tá istá chyba, ktorú U1 opravovalo inde. Kontrast je vlastnosť dvojice
       farieb, nie témy stránky, takže táto hodnota ostáva rovnaká v oboch. */
    --btn-primary-bg: #0e4463;        /* 10,4:1 s bielym textom */
    --btn-primary-bg-hover: #092c40;  /* 14,5:1 */
    /* Audit 14.08.: zelené CTA mali biely text na --accent-green (2,54:1) —
       tmavšia zelená mimo tém, rovnaká logika ako --btn-primary-bg. */
    --btn-success-bg: #157347;        /* 4,9:1 s bielym textom */
    --color4: #252525;
    --white: #fff;
    --bg-color: #e8edf3;        /* 1.34.5 (MS 17.10.): kontrast — biele karty sa odlíšia od pozadia (predtým #f5f7fa, 1,07:1) */
    --bg-card: #fff;
    --border-color: #b9c3cf;    /* predtým #e0e0e0 — okraje kariet a riadkov boli takmer neviditeľné */
    --text-color: #1a1f26;
    --text-muted: #4a5563;      /* 7,6:1 na bielom, 6,4:1 na --bg-color (predtým #666, 5,7:1) */
    --shadow: 0 1px 2px rgba(9,44,64,0.12), 0 2px 10px rgba(9,44,64,0.14);
    --radius: 0.3rem;
    --sidebar-width: 240px;
    --input-bg: #fff;

    /* Accent colors - use for UI elements */
    --accent-blue: #12a6df;
    --accent-blue-hover: #0794cc;
    --accent-blue-light: #e3f4fc;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-green-light: #d1fae5;
    --accent-amber: #f59e0b;
    /* audit 14.08.: --accent-orange sa používal v app.js 3×, ale nikde nebol
       definovaný — zvýraznenie neuhradenej sumy sa ticho neaplikovalo */
    --accent-orange: #c2410c;
    --accent-amber-light: #fef3c7;

    /* Secondary backgrounds */
    --bg-secondary: #e3e9f0;
    --bg-hover: #d8e1eb;

    /* Značka (redizajn 27.11.2026). Jeden zdroj pre landing aj portál.
       Akcent je modrá z loga (#009ad8), stmavená pre text/obrysy. */
    --brand: #0e4463;                 /* 10,4:1 s bielym */
    --brand-ink: #092c40;
    --accent: #0a7099;                /* 5,5:1 na bielej — odkazy, obrysy */
    --accent-bright: #12a6df;         /* len dekor, nie text */
    --accent-magenta: #c63d97;        /* z loga — len dekor */
    --brand-gradient: linear-gradient(90deg, #0e4463 0%, #009ad8 55%, #c63d97 100%);
    --heading-color: #0e4463;         /* 10,4:1 na bielej, 8,8:1 na --bg-color */
    --nav-active-bg: #e7ecef;         /* 10 % značky na bielej */
    --nav-active-fg: #0e4463;         /* 8,7:1 na --nav-active-bg */
    --focus-ring: #0a7099;            /* 5,5:1 na bielej (≥ 3:1 pre UI) */
    --surface-raised: #ffffff;
    --shadow-sm: 0 1px 2px rgba(9, 44, 64, 0.08);
    --shadow-lg: 0 1px 2px rgba(9, 44, 64, 0.06), 0 12px 32px -8px rgba(9, 44, 64, 0.22);
    --radius-lg: 0.75rem;
    --skeleton-a: #e3e9f0;
    --skeleton-b: #f1f5f9;
}

/* Dark mode */
[data-theme="dark"] {
    --color0: #0a1929;
    --color1: #12a6df;
    --accent-orange: #fb923c;   /* svetlejšia pre tmavé pozadie (audit 14.08.) */
    /* Na tmavom pozadí prechádza aj svetlý odtieň (6,37:1), takže odkazy si
       ponechajú značkovú modrú. --color3-strong ostáva tmavý aj tu — nesie
       biely text, a to je vlastnosť dvojice farieb, nie témy stránky. */
    --link-color: #12a6df;
    --color4: #e0e0e0;
    --white: #1a2332;
    --bg-color: #0a1929;
    --bg-card: #1a2332;
    --border-color: #2d3748;
    --text-color: #e0e0e0;
    --text-muted: #a0aec0;
    --shadow: 0 0 0.5rem rgba(0,0,0,0.4);
    --input-bg: #2d3748;

    /* Dark mode accent colors */
    --accent-blue: #38bdf8;
    --accent-blue-hover: #0ea5e9;
    --accent-blue-light: #1e3a5f;
    --accent-green: #34d399;
    --accent-green-hover: #10b981;
    --accent-green-light: #1e3a3a;
    --accent-amber: #fbbf24;
    --accent-amber-light: #3d2e0a;

    /* Secondary backgrounds */
    --bg-secondary: #1a2332;
    --bg-hover: #2d3748;

    /* Značka v tmavej téme (27.11.2026) */
    --accent: #38bdf8;                /* 7,4:1 na #1a2332 */
    --heading-color: #e6edf5;
    --nav-active-bg: #19384e;         /* 16 % #12a6df na #1a2332 */
    --nav-active-fg: #7fd0f0;         /* 7,1:1 */
    --focus-ring: #38bdf8;
    --surface-raised: #222d3f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
    --skeleton-a: #243044;
    --skeleton-b: #2d3a50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color1);
}

::-webkit-scrollbar-corner {
    background: var(--bg-color);
}

/* Firefox scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-color);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7em 1.4em;
    border: none;
    border-radius: var(--radius);
    font-size: 1em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: var(--shadow);
}

.btn:hover {
    box-shadow: none;
}

/* Audit IV (U3): primárna akcia je značková tmavomodrá, nie červená.
   Predtým bola --btn-primary červená #df122a a hlavičkové „Sign In" modré,
   takže tá istá akcia mala na jednej obrazovke dve farby. Červená sa navyše
   v UI číta ako „pozor / zmazať", čo je presný opak potvrdzovacieho tlačidla;
   pre tie je teraz --danger. Kontrast bieleho textu: 10,4:1. */
.btn-primary,
.btn-login {
    background: var(--btn-primary-bg);
    color: #fff;
}

.btn-primary:hover,
.btn-login:hover {
    background: var(--btn-primary-bg-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.btn-danger {
    background: var(--danger);
    color: var(--danger-fg);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-large {
    padding: 1em 2em;
    font-size: 1.1em;
}

.btn-full {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    scroll-behavior: smooth;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.8rem;
    transition: background 0.3s ease-in-out;
}

.header.scroll {
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 rgba(14, 68, 99, 0.08), 0 4px 16px rgba(14, 68, 99, 0.06);
}

[data-theme="dark"] .header.scroll {
    background: rgba(26,35,50,0.97);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Audit 14.08.: header sedí nad SVETLÝM hero v oboch témach — kým nemá
   pozadie (.scroll), prepínač jazyka musí byť tmavý literál, inak je
   v dark téme (svetlý --text-color) na bielom hero neviditeľný. */
.landing-page .header:not(.scroll) .lang-current {
    color: #0e4463;
    border-color: rgba(14, 68, 99, 0.35);
}
/* V dark téme má scrollnutý header tmavé pozadie — tmavomodré logo na ňom
   nevidno (len ružový swoosh). Zosvetlenie cez filter. */
[data-theme="dark"] .landing-page .header.scroll .logo img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 5rem;
    background: url('/images/background-top.jpg') no-repeat center top,
                url('/images/background-bottom.jpg') no-repeat center bottom;
    /* Audit V (N3): WebP je o 79 % menší (25,6+21,3 kB -> 5,6+4,7 kB). JPG
       riadok vyššie ostáva ako fallback — prehliadač bez `image-set()` túto
       deklaráciu ignoruje a použije ho. */
    background-image: image-set(
        url('/images/background-top.webp') type('image/webp'),
        url('/images/background-top.jpg') type('image/jpeg')),
        image-set(
        url('/images/background-bottom.webp') type('image/webp'),
        url('/images/background-bottom.jpg') type('image/jpeg'));
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
}

.hero-logo-link {
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-logo {
    height: 100px;
    width: auto;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    /* Pozadie landingu su obrazky, ktore sa s temou NEMENIA (su vzdy svetle).
       Keby nadpis bral --color1, v tmavom rezime by to bola svetlomodra na
       svetlom podklade — 2,6:1. Drzime tmavu navy nezavisle od temy. */
    color: #0e4463;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* Footer */
.footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.footer a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.15s;
}

.footer a:hover {
    color: var(--color3-strong-hover);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: var(--bg-color);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.login-branding {
    background: linear-gradient(135deg, #092c40 0%, #0e4463 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    width: fit-content;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
}

.btn-back svg {
    width: 20px;
    height: 20px;
}

.branding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-large img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Login Panel */
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-card);
}

.login-panel h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1em;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color3);
    box-shadow: 0 0 0 3px rgba(18, 166, 223, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1em;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color3);
    box-shadow: 0 0 0 3px rgba(18, 166, 223, 0.1);
}

.form-group .form-hint {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-control {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1em;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color3);
    box-shadow: 0 0 0 3px rgba(18, 166, 223, 0.1);
}

/* Wizard styles */
.wizard-view {
    background: var(--bg-color);
}

/* Compact wizard form styles */
.wizard-view .form-group {
    gap: 4px;
    margin-bottom: 12px;
}

.wizard-view .form-group:last-child {
    margin-bottom: 0;
}

.wizard-view .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.wizard-view .form-control,
.wizard-view .form-group input,
.wizard-view .form-group select,
.wizard-view .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.wizard-view .form-hint {
    font-size: 0.75rem;
    margin-top: 2px;
}

.wizard-view textarea {
    resize: vertical;
    min-height: 50px;
}

.wizard-step-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wizard-step-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-align: center;
    flex: 1;
}

.wizard-step-label.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.wizard-step-label.completed {
    color: var(--accent-green);
}

/* Calendar widget */
.calendar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    font-size: 1.2em;
}

.calendar-header span {
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-header {
    font-size: 0.75em;
    color: var(--text-muted);
    padding: 8px 0;
    font-weight: 600;
}

.calendar-day {
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.calendar-day:hover {
    background: var(--bg-hover);
}

.calendar-day.selected {
    background: var(--accent-blue);
    color: white;
}

.calendar-day.today {
    border: 2px solid var(--accent-blue);
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
}

[data-theme="dark"] .error-message {
    background: #7f1d1d;
    color: #fecaca;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard */
.dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-dashboard {
    height: 36px;
    width: auto;
}

/* 1.34.7 (MS 17.10.2026): logo vycentrované nad ľavým panelom. Lišta má ľavé
   odsadenie 24 px, takže logo začínalo pri okraji a jeho stred bol vľavo od
   stredu panela. Odkaz s logom má šírku panela a začína na jeho ľavom okraji.
   Len keď má panel plnú šírku (pod 769 px sa zúži na 60 px). */
@media (min-width: 769px) {
    .dashboard-header .header-left > .logo {
        flex: 0 0 var(--sidebar-width);
        width: var(--sidebar-width);
        margin-left: -24px;
        display: flex;
        justify-content: center;
    }
}

[data-theme="dark"] .logo-dashboard {
    filter: brightness(0) invert(1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-group {
    background: var(--color1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* User privilege badges (admin / developer) — visual warning that user sees cross-tenant data */
.user-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-badge {
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

.user-badge--admin {
    background: #f59e0b;
    color: #ffffff;
}

[data-theme="dark"] .user-badge--admin {
    background: #b45309;
    color: #fef3c7;
}

.user-badge--dev {
    background: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .user-badge--dev {
    background: #1d4ed8;
    color: #dbeafe;
}

/* Group Switcher (Dev only) */
.group-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fef3c7;
    border-radius: var(--radius);
    border: 1px dashed #f59e0b;
}

[data-theme="dark"] .group-switcher {
    background: #78350f;
    border-color: #d97706;
}

.switcher-label {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
}

[data-theme="dark"] .switcher-label {
    color: #fcd34d;
}

.group-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #d97706;
    background: var(--bg-card);
    color: #92400e;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

[data-theme="dark"] .group-btn {
    color: #fcd34d;
}

.group-btn:hover {
    background: #fef3c7;
}

[data-theme="dark"] .group-btn:hover {
    background: #92400e;
}

.group-btn.active {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}

/* Globálny unread badge na položke menu (audit 14.08.) */
.nav-badge {
    margin-left: auto;
    background: #b3261e;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 99px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
}

.nav-item:hover {
    background: var(--bg-color);
}

.nav-item.active {
    background: var(--color1);
    color: #fff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    padding: 24px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.content-header h1 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--color1);
}

.content-body {
    flex: 1;
    padding: 32px;
    background: var(--bg-color);
    /* 08.08.2026: bolo `overflow: hidden`. Shell má pevnú výšku a počítalo
       sa s tým, že si každý pohľad rieši rolovanie sám (tabuľky a chat majú
       vlastné `overflow: auto`). Dokumentový pohľad — detail dopravy — sa
       tým ale OREZAL: pri 720 px okna bolo 903 px obsahu (tabuľka zásielok
       a celý chat) neviditeľných a NEDOSIAHNUTEĽNÝCH, lebo neskroloval ani
       obsah, ani stránka. Záviselo to čisto od výšky monitora, takže na
       vysokom displeji sa chyba nikdy neukázala.
       `auto` nechá vnútorné skrolery fungovať (rodič má stále definitívnu
       výšku z flexu), len prestane obsah zahadzovať. */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Placeholder Content */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--border-color);
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.placeholder-content h2 {
    font-size: 1.5em;
    color: var(--color1);
    margin-bottom: 8px;
}

.placeholder-content p {
    font-size: 1em;
}



/* Responsive */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-branding {
        display: none;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-logo {
        height: 70px;
    }

    .header {
        padding: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .sidebar {
        width: 60px;
    }

    .nav-text {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .group-switcher {
        display: none;
    }
}

/* Header scroll effect */
@media (min-width: 769px) {
    .header.scroll .logo img {
        height: 40px;
    }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    flex-shrink: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--color1);
}

.tab-btn.active {
    color: var(--color1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color1);
}

.tab-btn .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.tab-btn.active .badge {
    background: var(--color1);
    color: #fff;
}

/* Data Table */
.data-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: auto;
    flex: 1;
    min-height: 0;
}

/* Sticky header */
.data-table.sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--bg-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td {
    color: var(--text-color);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-waiting {
    background: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .status-waiting {
    background: #78350f;
    color: #fcd34d;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

[data-theme="dark"] .status-active {
    background: #1e3a5f;
    color: #93c5fd;
}

.status-open {
    /* Audit 14.08.: #dc2626 na #fee2e2 = 3,95:1 pri 12px bold — pod AA */
    background: #fee2e2;
    color: #b3261e;
}

[data-theme="dark"] .status-open {
    background: #7f1d1d;
    color: #fecaca;
}

.status-closed {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .status-closed {
    background: #064e3b;
    color: #6ee7b7;
}

/* Table actions */
.table-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--color1);
    border-color: var(--color1);
    color: #fff;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color3);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* MRN/Invoice link style */
.mrn-link,
.inv-link {
    color: var(--link-color);
    font-weight: 600;
    cursor: pointer;
}

.mrn-link:hover,
.inv-link:hover {
    text-decoration: underline;
}

/* Country badge */
.country-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Text utilities */
.text-muted {
    color: var(--text-muted);
}

/* VDD Export View */
.vdd-export-view {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state .loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    flex-shrink: 0;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: auto;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: var(--color3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* Detail grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.detail-section {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 16px;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color1);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.detail-row strong {
    color: var(--text-color);
}

/* Items table wrapper */
.items-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 12px;
}

.items-table {
    font-size: 12px;
}

.items-table th,
.items-table td {
    padding: 8px 10px;
}

/* Badge warning */
.badge-warning {
    /* Audit 14.08.: biela na #f59e0b = 2,15:1 — token --warning (4,8:1) */
    background: var(--warning, #9a6700);
    color: var(--warning-fg, #fff);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.text-warning {
    color: var(--warning, #9a6700);   /* audit 14.08.: #f59e0b na bielej 2,15:1 */
}

/* Responsive table */
.data-table-wrapper {
    overflow-x: auto;
}

.data-table th,
.data-table td {
    white-space: nowrap;
}

/* Detail View */
.detail-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.detail-header h2 {
    flex: 1;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--color1);
    margin: 0;
}

.detail-actions {
    display: flex;
    gap: 8px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-back:hover {
    background: var(--bg-color);
    border-color: var(--color1);
    color: var(--color1);
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.detail-items-section {
    margin-top: 24px;
}

.detail-items-section h3 {
    margin-bottom: 12px;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
}

.detail-items-section .items-table-wrapper {
    max-height: 400px;
    overflow: auto;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color2);
}

.text-success {
    color: #22c55e;
}

.text-warning {
    color: var(--warning, #9a6700);   /* audit 14.08.: #f59e0b na bielej 2,15:1 */
}

/* Pending row highlight */
.pending-row {
    background: #fef3c7;
}

[data-theme="dark"] .pending-row {
    background: #78350f;
}

.pending-row:hover {
    background: #fde68a;
}

[data-theme="dark"] .pending-row:hover {
    background: #92400e;
}

/* Loading inline indicator */
.loading-inline {
    color: var(--text-muted);
    font-style: italic;
}

/* Small loading state */
.loading-state.small {
    padding: 20px;
}

.loading-state.small .loader {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.loading-state.small p {
    font-size: 13px;
}

/* Detail info bar */
.detail-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.detail-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.detail-info-bar .info-item span {
    color: var(--text-muted);
}

.detail-info-bar .info-item strong {
    color: var(--text-color);
}

/* Detail tabs */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

.detail-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-tab-btn:hover {
    color: var(--color1);
}

.detail-tab-btn.active {
    color: var(--color1);
}

.detail-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color1);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.tab-badge.loaded {
    background: var(--color1);
    color: #fff;
}

/* Detail tab content */
.detail-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* PDF preview */
.pdf-preview {
    flex: 1;
    display: flex;
    min-height: 0;
    margin-bottom: 8px;
}

.pdf-preview iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 280px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

/* VDD preview */
.vdd-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 8px;
}

.vdd-preview .vdd-info {
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.vdd-preview iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 320px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

/* T2 preview in VDD detail */
.t2-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.t2-preview-section .t2-info {
    flex-shrink: 0;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

/* HS stats bar */
.hs-stats-bar {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin: 16px 0;
}

.hs-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.hs-stats-bar .stat-item span {
    color: var(--text-muted);
}

/* HS table wrapper */
.hs-table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
}

/* Sticky columns for VDD table */
.data-table.sticky-cols th:nth-child(1),
.data-table.sticky-cols td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--bg-card);
}

.data-table.sticky-cols th:nth-child(2),
.data-table.sticky-cols td:nth-child(2) {
    position: sticky;
    left: 140px;
    z-index: 5;
    background: var(--bg-card);
}

.data-table.sticky-cols thead th:nth-child(1),
.data-table.sticky-cols thead th:nth-child(2) {
    z-index: 15;
    background: var(--bg-color);
}

.data-table.sticky-cols td:nth-child(1)::after,
.data-table.sticky-cols td:nth-child(2)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.data-table.sticky-cols td {
    position: relative;
}

/* Sortable column headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px !important;
}

.sortable:hover {
    color: var(--color1);
}

.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    opacity: 0.5;
}

.sortable.asc::after {
    border-top: none;
    border-bottom: 5px solid var(--color1);
    opacity: 1;
}

.sortable.desc::after {
    border-top: 5px solid var(--color1);
    opacity: 1;
}

/* Dashboard stats grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stats-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.stats-card.clickable {
    cursor: pointer;
}

.stats-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-row .label {
    color: var(--text-muted);
    font-size: 14px;
}

.stats-row .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color1);
}

.stats-row .value.waiting {
    color: #f59e0b;
}

.stats-row .value.open {
    color: #dc2626;
}

.stats-row .value.closed {
    color: #22c55e;
}

/* Dohledy styles */
.dohledy-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.dohledy-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.dohledy-stat {
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.dohledy-stat:hover {
    transform: translateY(-2px);
}

.dohledy-stat.active {
    border: 2px solid var(--color1);
}

.dohledy-stat .count {
    font-size: 24px;
    font-weight: 700;
    color: var(--color1);
}

.dohledy-stat .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dohledy-stat.open .count {
    color: #f59e0b;
}

.dohledy-stat.answered .count {
    color: #3b82f6;
}

.dohledy-stat.closed .count {
    color: #22c55e;
}

/* Dohled form */
.dohled-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.dohled-form h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color1);
}

.dohled-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.dohled-form select,
.dohled-form textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
}

.dohled-form textarea {
    min-height: 80px;
    resize: vertical;
}

.dohled-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Dohled list */
.dohled-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dohled-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border-left: 4px solid var(--border-color);
}

.dohled-item.open {
    border-left-color: #f59e0b;
}

.dohled-item.answered {
    border-left-color: #3b82f6;
}

.dohled-item.closed {
    border-left-color: #22c55e;
}

.dohled-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.dohled-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.dohled-item-text {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.dohled-item-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.dohled-responses {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.dohled-response {
    background: var(--bg-color);
    padding: 10px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 13px;
}

.dohled-response:last-child {
    margin-bottom: 0;
}

/* Verification tab */
.verification-section {
    padding: 16px;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.verification-status.success {
    background: #d1fae5;
    border: 1px solid #22c55e;
}

.verification-status.error {
    background: #fee2e2;
    border: 1px solid #dc2626;
}

.verification-status.pending {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

[data-theme="dark"] .verification-status.success {
    background: #064e3b;
}

[data-theme="dark"] .verification-status.error {
    background: #7f1d1d;
}

[data-theme="dark"] .verification-status.pending {
    background: #78350f;
}

.verification-icon {
    width: 32px;
    height: 32px;
}

.verification-details {
    flex: 1;
}

.verification-btn {
    margin-top: 16px;
}

/* Hide content header for certain views */
.content-header.hidden {
    display: none;
}

/* Customer Portal Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-open {
    background: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .badge-open {
    background: #78350f;
    color: #fcd34d;
}

.badge-closed {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .badge-closed {
    background: #064e3b;
    color: #6ee7b7;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .badge-cancelled {
    background: #7f1d1d;
    color: #fca5a5;
}

.badge-active {
    background: #dbeafe;
    color: #1e40af;
}

[data-theme="dark"] .badge-active {
    background: #1e3a8a;
    color: #93c5fd;
}

/* Customer Portal Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.875rem;
}

.info-row span {
    color: var(--text-muted);
}

/* Customer Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Customer Portal - Additional Styles */
/* PDF Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.pdf-modal {
    width: 900px;
    height: 85vh;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.125rem;
}

.modal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f0f0f0;
}

[data-theme="dark"] .pdf-iframe {
    background: #1a1a1a;
}

/* Sortable Headers */
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.data-table th.sortable:hover {
    background: var(--bg-hover);
}

.sort-icon {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.5;
}

.sort-icon.sort-active {
    opacity: 1;
    color: var(--accent-blue);
}

/* Detail View Styles */
.detail-view {
    padding: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.detail-header-actions {
    display: flex;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.detail-card h4 {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.875rem;
}

.detail-row span {
    color: var(--text-muted);
}

.detail-section {
    margin-top: 24px;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.detail-totals {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    max-width: 300px;
    margin-left: auto;
}

.detail-totals .detail-row {
    padding: 4px 0;
}

.detail-totals .detail-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.125rem;
}

/* Country Badge */
.country-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    /* 21.08.2026: --text-secondary v projekte NEEXISTUJE (jediný výskyt) —
       farba sa ticho dedila. Správny token je --text-muted. */
    color: var(--text-muted);
}

/* Warning Row */
.row-warning {
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .row-warning {
    background: rgba(239, 68, 68, 0.15);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

/* Customer View */
.customer-view {
    padding: 0;
}

/* Data Table Wrapper with vertical scroll */
.data-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.data-table.sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

/* Order detail items table */
.detail-section-table {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.detail-section-table h4 {
    flex-shrink: 0;
}

.order-items-table {
    flex: 1;
    min-height: 200px;
    max-height: calc(100vh - 380px);
}

.order-items-table tbody tr:last-child td {
    padding-bottom: 16px;
}

/* Ensure detail view has proper scroll behavior */
.detail-view .detail-header {
    flex-shrink: 0;
}

.detail-view .detail-grid {
    flex-shrink: 0;
}

.detail-view .detail-section-table {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================
   Language Switcher
   ============================ */

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 6px 10px;
    color: var(--text-color);
    font-family: 'Rubik', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-current:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.lang-flag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: var(--bg-hover);
}

.lang-option.active {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-weight: 600;
}

.lang-code {
    display: inline-block;
    width: 24px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.lang-option.active .lang-code {
    color: var(--accent-blue);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    /* Audit 14.08.: pozadie hero sú obrázky, ktoré sa s témou NEMENIA (vždy
       svetlé) — tmavý --text-muted (#a0aec0) mal na bielej ~2,1:1. Tmavá
       navy-sivá nezávislá od témy, rovnaký dôvod ako .hero-content h1. */
    color: #45566b;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .hero-subtitle {
    color: #45566b;
}

/* Responsive: mobile lang switcher */
@media (max-width: 768px) {
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

/* ============================================================
   Accessibility (WCAG 2.1 AA) — appended 2026-05-26
   ============================================================ */

/* Skip link — invisible until focused. Lets keyboard users bypass nav. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1.25rem;
    background: var(--btn-primary-bg, #0e4463);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 var(--radius, 0.3rem) 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 3px solid var(--color2, #df122a);
    outline-offset: 2px;
}

/* Visually hidden text that screen readers still announce. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Global keyboard focus indicator. Uses :focus-visible so mouse clicks do
   not show a ring, but Tab navigation always shows a clear 3px outline. */
:focus-visible {
    outline: 3px solid var(--accent-blue, #12a6df);
    outline-offset: 2px;
    border-radius: 2px;
}
/* Override the prior `outline: none` on inputs/textareas/selects so
   keyboard users still see focus. (Mouse interaction keeps the original
   styling because :focus-visible doesn't trigger.) */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.form-control:focus-visible,
.search-input:focus-visible {
    outline: 3px solid var(--accent-blue, #12a6df);
    outline-offset: 1px;
}

/* Respect users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* High-contrast hint for form errors (announced by role=alert already) */
.error-message {
    border-left: 4px solid var(--color2, #df122a);
    padding-left: 0.75rem;
}


.btn.has-unread {
    background: #df122a;
    color: #fff;
    font-weight: 600;
}
.btn.has-unread:hover { background: #b50f23; }

/* ============================================================
   Chat panel (Phase 2, dark-mode aware v1.11.2)
   Used in carrier order detail + operator inbox. Uses the app-wide
   theme variables (--bg-card / --bg-secondary / --text-color / etc.)
   so it inherits the [data-theme="dark"] toggle automatically.
   ============================================================ */
.chat-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    max-height: 540px;
}
.chat-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 8px 8px 0 0;
}
.chat-panel-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.chat-status { font-size: 12px; color: var(--text-muted); }
.chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
    max-height: 380px;
    background: var(--bg-card);
}
.chat-empty { text-align: center; color: var(--text-muted); padding: 32px 16px; font-size: 14px; }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; }
.chat-msg-self { justify-content: flex-end; }
.chat-msg-other { justify-content: flex-start; }
.chat-msg-system { justify-content: center; }
.chat-bubble {
    position: relative;
    max-width: 72%;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-color);
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.chat-msg-self .chat-bubble {
    background: var(--color3-strong);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-other .chat-bubble {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}
.chat-msg-system .chat-bubble {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    font-size: 12px;
    text-align: center;
    max-width: 100%;
}
.chat-meta {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}
.chat-msg-self .chat-meta { color: rgba(255,255,255,0.85); }
.chat-body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.chat-atts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-att {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.20);
    color: inherit !important;
    text-decoration: none;
    font-size: 12px;
}
.chat-msg-other .chat-att {
    background: var(--bg-hover);
    color: var(--text-color) !important;
}
.chat-att:hover { filter: brightness(1.1); }
.chat-att-size { opacity: 0.7; font-size: 11px; }
.chat-toggle {
    position: absolute;
    top: 4px; right: -28px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}
.chat-msg-self .chat-toggle { right: auto; left: -28px; color: rgba(255,255,255,0.7); }
.chat-toggle:hover { color: var(--accent-blue); }
.chat-mt-badge { font-style: italic; opacity: 0.85; }
.chat-composer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
}
.chat-composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
    background: var(--bg-card);
    color: var(--text-color);
}
.chat-composer textarea:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: -1px;
    border-color: var(--accent-blue);
}
.chat-composer-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 8px;
}
.chat-att-btn {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
}
.chat-att-btn:hover { background: var(--bg-hover); }
.chat-att-list { flex: 1; font-size: 12px; color: var(--text-muted); }
.chat-att-pending {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Inbox view */
.chat-inbox-view { padding: 8px 0; color: var(--text-color); }
.chat-inbox-list { display: flex; flex-direction: column; gap: 8px; }
.chat-inbox-row {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.12s ease;
}
.chat-inbox-row:hover { background: var(--bg-hover); }
.chat-inbox-line1 { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.chat-inbox-meta { color: var(--text-muted); font-size: 12px; }
.chat-inbox-preview { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.chat-unread-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* --- Toast (Audit IV U4) -------------------------------------------------
   Nahrádza 16× natívny alert(). Ten blokoval vlákno, vyzeral ako systémový
   dialóg mimo dizajnu aplikácie a jeho text bol natvrdo po česky mimo i18n.
   Popri tom bolo 37× console.error, kde používateľ nevidel vôbec nič. */
.toast-stack {
    position: fixed;
    /* Pod hlavičkou (tá je fixed, výška ~1.8rem padding + obsah) — inak
       toast prekryje prihlasovacie tlačidlo, teda hlavnú akciu stránky. */
    top: 6rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(28rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    color: #fff;
    font-size: 0.95em;
    line-height: 1.4;
    pointer-events: auto;
    animation: toast-in 0.18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(1rem); }
    to   { opacity: 1; transform: none; }
}

.toast-error   { background: var(--danger);  color: var(--danger-fg); }
.toast-success { background: var(--success); color: var(--success-fg); }
.toast-warning { background: var(--warning); color: var(--warning-fg); }
.toast-info    { background: var(--info);    color: var(--info-fg); }

.toast-text { flex: 1; }

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
    opacity: 0.85;
}

.toast-close:hover { opacity: 1; }

.toast-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* --- Obnova hesla (Audit IV U6) ------------------------------------------ */
.login-forgot {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.9em;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover { color: var(--color3-strong-hover); }

.link-button:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.form-hint {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Prihlásenie QR kódom (v1.32.0) ---------------------------------------
   QR je VŽDY na bielom s tichou zónou — aj v tmavej téme. Tmavé moduly na
   tmavom pozadí mnohé čítačky neprečítajú. */
.qr-login-offer[hidden],
.qr-login[hidden],
.qr-login [hidden] { display: none !important; }

.qr-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.85em;
}
.qr-login-divider::before,
.qr-login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(127, 127, 127, 0.35);
}

.btn-qr {
    background: transparent;
    color: var(--color1);
    border: 1px solid currentColor;
}
.btn-qr:hover { background: rgba(127, 127, 127, 0.1); }
.btn-qr:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; }

.qr-login { text-align: center; }
.qr-login-title {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color1);
}
.qr-frame {
    display: inline-block;
    background: #fff;
    padding: 16px;              /* tichá zóna navyše k okraju z Nexumu */
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    margin: 0.4rem auto 1rem;
    line-height: 0;
}
.qr-frame img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    background: #fff;
    image-rendering: pixelated;
}
.qr-pick { margin: 0 0 0.25rem; font-size: 0.95em; }
.qr-num {
    font-size: 2.6em;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.4rem;
    color: var(--color1);
}
.qr-warn {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0.9rem;
}
.qr-state { min-height: 1.5em; margin-bottom: 0.9rem; font-size: 0.95em; }
.qr-state.ok { color: #2e7d32; }
.qr-state.err { color: #b71c1c; }
[data-theme="dark"] .qr-state.ok { color: #a5d6a7; }
[data-theme="dark"] .qr-state.err { color: #ef9a9a; }
.login-back { margin-top: 0.9rem; font-size: 0.9em; text-align: center; }

/* ═══ Farby sekcií → farby značky (redizajn 27.11.2026, audit 26.11. bod 5) ═══
   Do v1.48 mala každá sekcia vlastnú farbu celého rámu (dodávatelia zelená,
   dopravcovia hnedá…), takže prihlásený portál pôsobil ako iný produkt než
   titulka v tmavomodrej značke. Rám (aktívna položka menu, nadpisy, pruh
   lišty) je teraz VŽDY značkový; sekciu rozlišuje text odznaku a malá
   farebná bodka v ňom (farba nie je jediný signál — WCAG 1.4.1).

   --section      pozadie s bielym textom: svetlá #0e4463 (10,4:1),
                  tmavá #0a7099 (5,5:1) — na tmavom podklade viditeľnejšia
   --section-line čiary, obrysy fokusu, ukazovatele: svetlá #0a7099
                  (5,5:1 na bielej), tmavá #38bdf8 (7,4:1 na #1a2332)
   --section-dot  len bodka v odznaku sekcie (dekor, nie nositeľ významu) */
#dashboard {
    --section: var(--brand);
    --section-fg: #fff;
    --section-line: var(--accent);
    --section-dot: var(--accent-bright);
}
[data-theme="dark"] #dashboard {
    --section: #0a7099;
    --section-line: #38bdf8;
}

#dashboard[data-section="volmet"]    { --section-dot: #12a6df; }
#dashboard[data-section="clients"]   { --section-dot: #0f6f95; }
#dashboard[data-section="supplier"]  { --section-dot: #10b981; }
#dashboard[data-section="carrier"]   { --section-dot: #f59e0b; }
#dashboard[data-section="customs"]   { --section-dot: #a855f7; }
#dashboard[data-section="warehouse"] { --section-dot: #f97316; }

/* Tenký pruh na vrchu hlavičky — prechod farieb z loga (tmavomodrá →
   modrá → purpurová). Dekor, nenesie text. */
#dashboard .dashboard-header {
    border-top: 0;
    position: relative;
    background: var(--bg-card);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}
#dashboard .dashboard-header::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--brand-gradient);
}

/* Odznak sekcie a názov modulu v hornej lište (drobčeková navigácia) */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--nav-active-bg);
    color: var(--nav-active-fg);
    padding: 3px 10px 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.section-badge:empty { display: none; }
.section-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--section-dot, var(--accent-bright));
    flex: 0 0 auto;
}

.module-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 12px;
    margin-left: 2px;
    border-left: 1px solid var(--border-color);
}
.module-title:empty { display: none; }

@media (max-width: 900px) {
    /* Na úzkych displejoch ustúpi názov modulu — odznak sekcie ostáva,
       lebo bez neho by sa stratil kontext. */
    .module-title { display: none; }
}

/* Aktívna položka navigácie: jemný tón značky + značkový text a pruh
   vľavo (vzor Linear/Stripe) — nie plná farebná dlaždica. */
#dashboard .nav-item.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-fg);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--section-line);
}

#dashboard .content-header {
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

#dashboard .content-header h1 {
    color: var(--heading-color);
}

/* Prepínač skupín: zablokované sekcie zošednuté, aby admin nekliknutím
   neskončil v prázdnej sekcii. */
.group-btn.section-blocked {
    opacity: 0.45;
    cursor: not-allowed;
}

.group-btn.section-blocked:hover {
    background: inherit;
}

/* --- Prepínač sekcií: celé názvy + výber dodávateľa (04.08.2026) --------
   Tlačidlá mali skratky (VM, CLI, SUP…), ktoré si nikto nepamätal. Celé
   názvy sú širšie, preto sa pruh môže zalomiť a na úzkych displejoch
   skryje. */
.group-switcher {
    flex-wrap: wrap;
    max-width: 100%;
}

.group-btn {
    white-space: nowrap;
}

.switcher-sep {
    width: 1px;
    align-self: stretch;
    background: #d97706;
    opacity: 0.5;
    margin: 0 2px;
}

.sim-supplier-select {
    max-width: 15rem;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    background: var(--bg-card);
    border: 1px solid #d97706;
    border-radius: var(--radius);
    cursor: pointer;
}

[data-theme="dark"] .sim-supplier-select {
    color: #fcd34d;
}

.sim-supplier-select:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 1px;
}

/* Beží simulácia — pruh musí kričať, aby si vývojár nepomýlil cudzí
   pohľad so svojím. */
.group-switcher.simulating {
    background: #fed7aa;
    box-shadow: inset 0 0 0 2px #c2410c;
}

[data-theme="dark"] .group-switcher.simulating {
    background: #7c2d12;
    box-shadow: inset 0 0 0 2px #fb923c;
}

@media (max-width: 1100px) {
    .sim-supplier-select { max-width: 9rem; }
}

@media (max-width: 820px) {
    .group-switcher { display: none !important; }
}

/* --- Hlavička: miesto pre celé názvy sekcií (04.08.2026) -----------------
   Po zámene skratiek (VM, CLI…) za celé názvy prestala hlavička stíhať:
   meno používateľa sa lámalo na dva riadky. Ľavá časť sa smie zmenšovať,
   pravá nie — logout a odznaky musia zostať celé. */
.dashboard-header {
    gap: 16px;
}

.header-left {
    min-width: 0;          /* bez toho flex položku nezmenší pod jej obsah */
    flex: 1 1 auto;
    gap: 16px;
}

.user-menu {
    flex: 0 0 auto;
    min-width: 0;
}

#userName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

.module-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

@media (max-width: 1400px) {
    /* Prepínač je vývojársky nástroj — pri nedostatku miesta ustúpi ako
       prvý, nie meno používateľa alebo odhlásenie. */
    .group-switcher { max-width: 26rem; }
    .sim-supplier-select { max-width: 11rem; }
}

/* --- Modul dodávateľov (04.08.2026) -------------------------------------- */
.view-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
}

.view-count {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
}

.stav-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}

/* Stavy nesú biely text, takže hodnoty musia držať 4,5:1 nezávisle od témy. */
.stav-new       { background: #4b5563; }  /*  7,6:1 */
.stav-confirmed { background: var(--section); }
.stav-sent      { background: #0f6f95; }  /*  5,6:1 */
.stav-closed    { background: #0d6634; }  /*  7,1:1 */
.stav-unpaid    { background: var(--warning); }
/* 08.08.2026: `.stav-waiting` sa používala v sekcii dopravcu, ale nikdy
   nebola definovaná — základné `.stav-badge` dáva biely text a bez pozadia
   bol odznak „K potvrzení" biely na bielom (kontrast 1,00). */
.stav-waiting   { background: var(--warning); }  /*  4,8:1 */
/* 13.09.2026 (v1.31.0): rozhodnutie operátora o faktúre nahranej dodávateľom */
.stav-accepted  { background: #0d6634; }  /*  7,1:1 */
.stav-rejected  { background: #b91c1c; }  /*  6,4:1 */
.sup-note-text  { width: 100%; box-sizing: border-box; min-height: 90px; margin-top: 6px; }

/* --- Detail objednávky dodávateľa (04.08.2026) --------------------------- */
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: var(--bg-hover); }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 12px 24px;
    margin-bottom: 20px;
}

.detail-field { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 0.8em; color: var(--text-muted); }
.detail-value { font-weight: 600; }

/* GP panel — odlíšený, aby bolo zrejmé, že ide o stav CELEJ skupiny,
   nie tejto jednej objednávky. */
.gp-panel {
    border-left: 4px solid var(--section-line);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
}

.gp-panel h3 { margin: 0 0 4px; font-size: 1.05em; }
.gp-panel .detail-grid { margin-bottom: 0; }

.stav-gp      { background: #6b21a8; }  /* 8,7:1 — GP má vlastnú farbu, aby
                                           sa nezamieňal so stavom */
.stav-regular { background: #4b5563; }

.data-table tfoot td {
    border-top: 2px solid var(--border-color);
    padding-top: 10px;
}

/* --- Filtre modulu dodávateľov (04.08.2026) ------------------------------ */
.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.filter-btn {
    padding: 5px 14px;
    font-size: 0.88em;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
}

.filter-btn:hover { background: var(--bg-hover); }

.filter-btn.active {
    background: var(--section);
    border-color: var(--section);
    color: #fff;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--section-line);
    outline-offset: 2px;
}

.pagination button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Nedodaný riadok — dodávateľ musí na prvý pohľad vidieť, čo ešte visí. */
.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--warning); }

/* --- Vyhľadávanie v module dodávateľov (04.08.2026) ---------------------- */
.search-row {
    margin: 0 0 12px;
    /* Hľadanie a export sú jedna dvojica — export pracuje s filtrom, ktorý
       je vedľa neho. `flex` ich drží v riadku a `wrap` ich na úzkom okne
       zalomí namiesto pretečenia. */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-input {
    width: 100%;
    max-width: 28rem;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.95em;
    color: var(--text-color);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.search-input:focus-visible {
    outline: 2px solid var(--section-line);
    outline-offset: 1px;
    border-color: var(--section-line);
}


/* Náhľad PDF vložený doprostred dlhšej stránky (detail faktúry dodávateľa).
   Samotné .pdf-preview je písané pre flex rodiča na celú výšku okna
   (`flex:1` + `min-height: calc(100vh - 280px)`). V bežnom toku to pretečie
   a prekryje obsah pod sebou — v detaile faktúry zmizol nadpis „Položky"
   aj hlavička tabuľky. Tento variant má vlastnú, ohraničenú výšku. */
.pdf-preview.pdf-preview-inline {
    display: block;
    /* #contentBody je flex kontajner a základné pravidlo dáva `flex: 1`.
       Bez `flex: 0 0 auto` flexbox náhľad zmrští na ~52 px a `height`
       sa vôbec neuplatní. */
    flex: 0 0 auto;
    height: 70vh;
    min-height: 420px;
    margin: 0 0 24px;
}

.pdf-preview.pdf-preview-inline iframe {
    height: 100%;
    min-height: 0;
}


/* ===========================================================================
   Titulná stránka — sekcie pod heroom (redizajn 08.08.2026, audit V)
   Pôvodná titulka bola logo + jedna veta + tlačidlo; ako vizitka voči
   klientom nedávala odpoveď na „čo to rieši" ani „pre koho to je".
   =========================================================================== */

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    color: #0e4463;                 /* rovnaký dôvod ako .hero-content h1 —
                                       pozadie hero je vždy svetlé */
    border: 2px solid rgba(14, 68, 99, 0.35);
}
.btn-ghost:hover {
    background: rgba(14, 68, 99, 0.08);
    border-color: rgba(14, 68, 99, 0.6);
}

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e4463;
    opacity: 0.55;
    border-radius: 50%;
    transition: opacity 0.2s, transform 0.2s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll svg { width: 1.5rem; height: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
    .hero-scroll { animation: lp-bob 2.4s ease-in-out infinite; }
    @keyframes lp-bob {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50%      { transform: translateX(-50%) translateY(0.35rem); }
    }
}

.lp-section {
    scroll-margin-top: 5rem;   /* hlavička je fixed — bez toho skok na kotvu
                                  schová nadpis pod ňu */
    padding: 5rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-color);
}
.lp-section--alt { background: var(--bg-secondary); }

.lp-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.lp-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.75rem;
    color: var(--text-color);
    line-height: 1.2;
}

.lp-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 42rem;
    margin: 0 auto 3rem;
}
.lp-section h2 + .lp-cards,
.lp-section h2 + .lp-steps,
.lp-section h2 + .lp-why { margin-top: 3rem; }

/* --- karty „pre koho" --- */
/* Flex, nie grid: kariet je päť, takže posledný riadok je neúplný —
   `justify-content: center` ho vycentruje pod prvé tri. Pri gride by
   ostali dve karty zarovnané doľava a pôsobilo by to ako chyba. */
.lp-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.lp-cards > .lp-card {
    flex: 1 1 17rem;
    max-width: 22rem;
}

.lp-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.75rem;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.lp-section--alt .lp-card { background: var(--bg-card); }
.lp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 2rem rgba(9, 44, 64, 0.12);
    border-color: var(--color3-strong);
}
@media (prefers-reduced-motion: reduce) {
    .lp-card:hover { transform: none; }
}

.lp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.6rem;
    background: var(--accent-blue-light);
    color: var(--color3-strong);
    margin-bottom: 1.25rem;
}
.lp-card__icon svg { width: 1.6rem; height: 1.6rem; }

.lp-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-color);
}

.lp-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-amber-light);
    color: var(--warning);
}
.lp-card--soon { opacity: 0.92; }

.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.lp-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.7rem;
    height: 0.4rem;
    border-left: 2px solid var(--color3-strong);
    border-bottom: 2px solid var(--color3-strong);
    transform: rotate(-45deg);
}

/* --- kroky „ako to funguje" --- */
.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    counter-reset: lp;
}
.lp-step { text-align: center; }
.lp-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--btn-primary-bg);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.lp-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}
.lp-step p { margin: 0; color: var(--text-muted); line-height: 1.55; }

/* --- „prečo" --- */
.lp-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 2rem 3rem;
}
.lp-why__item { display: flex; gap: 1rem; align-items: flex-start; }
.lp-why__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--accent-blue-light);
    color: var(--color3-strong);
}
.lp-why__icon svg { width: 1.35rem; height: 1.35rem; }
.lp-why__item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.15rem 0 0.35rem;
    color: var(--text-color);
}
.lp-why__item p { margin: 0; color: var(--text-muted); line-height: 1.55; }

/* --- Brand Force --- */
.lp-bf {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(135deg, #092c40 0%, #0e4463 100%);
    color: #fff;
}
.lp-bf__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.lp-bf__text { flex: 1 1 auto; }

.lp-bf__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7fd0f0;              /* 7,3:1 na #092c40 */
    margin: 0 0 0.65rem;
}
.lp-bf h2 {
    text-align: left;
    color: #fff;
    margin-bottom: 1rem;
}
.lp-bf__body {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 44rem;
    margin: 0 0 1.75rem;
}

.btn-bf {
    display: inline-block;
    background: #fff;
    color: #092c40;
    font-weight: 700;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.btn-bf:hover { background: #e7f4fb; transform: translateY(-1px); }

.footer-contact {
    color: var(--text-muted);
    margin: 0 0 0.4rem;
}

@media (max-width: 860px) {
    .lp-section { padding: 3.5rem 1.25rem; }
    .lp-bf__inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .hero { padding: 5rem 1.25rem 4rem; }
}


/* ===========================================================================
   Sekcia dopravcu (08.08.2026)
   Zoznam mal 9 stĺpcov v ~976 px plochy, takže hlavná akcia — otvorenie
   detailu — bola dosiahnuteľná až po horizontálnom scrolle. Riešením nie je
   širší wrapper, ale menej stĺpcov a klikateľný riadok.
   =========================================================================== */

/* ⚑ `.detail-grid` definuje aj detail dodávateľa (r. ~3304) s
   `minmax(11rem, 1fr)` — to sedí jeho drobným `.detail-field` dvojiciam,
   ale karty dopravcu tým spadli na 176 px a text sa lámal po slabikách.
   Rovnaký názov triedy pre dva rôzne komponenty; scopujeme svoj. */
.carrier-detail-view .detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.25rem;
}

/* ⚑ Rovnaká flex pasca o úroveň vyššie: `.carrier-detail-view` je priame
   dieťa `.content-body` (flex kontajner). Bez `min-width: 0` sa roztiahne
   na šírku najširšieho potomka, a `max-width: 100%` na skroleri sa potom
   počíta z tej roztiahnutej šírky — takže tabuľka pretečie aj tak.
   Platí pre celý obsah, nielen dopravcu, preto všeobecné pravidlo. */
/* ⚑ V STĹPCOVOM flexe nestačí `min-width: 0` — dieťa sa aj tak roztiahne
   na min-content šírku svojho obsahu (široká tabuľka) a pretečie von.
   Až `max-width: 100%` ho udrží v ploche; vnútorné `.table-scroll` potom
   tabuľku odroluje, namiesto aby ju vytlačilo mimo obrazovku. */
.content-body > * { min-width: 0; max-width: 100%; }

/* Vodorovný skroler pre tabuľky, ktoré sa zúžiť nedajú (zásielky v detaile
   dopravy majú 8 stĺpcov vrátane adresy príjemcu). `.content-body` orezáva
   vodorovne, takže bez tohto by pravý okraj zmizol. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
    /* ⚑ `.content-body` je flex kontajner a flex položka má implicitne
       `min-width: auto`, takže sa NEZMENŠÍ pod šírku svojho obsahu — skroler
       by namiesto rolovania rástol a tabuľka by pretiekla von. Pri 400 px
       plochy sa takto roztiahla na 2369 px. `min-width: 0` to vypne. */
    min-width: 0;
    max-width: 100%;
}
.table-scroll > .data-table { min-width: 44rem; }

.carrier-orders { width: 100%; table-layout: auto; }
/* 06.11.2026 (MS): údaje dopravcu o niečo väčšie (dashboard aj Transports) — 14 → 15.5 px, hlavička 12 → 13 px */
.carrier-orders td { font-size: 15.5px; }
.carrier-orders th { font-size: 13px; }
.carrier-orders .carrier-invs { font-variant-numeric: tabular-nums; white-space: normal; max-width: 16rem; }
.carrier-invs .carrier-inv { white-space: nowrap; }
/* 06.11.2026 (MS): balenie zásielky z packing managementu — v zozname pod nákladom, v detaile pod zásielkou */
.carrier-orders .cargo-pack { white-space: normal; max-width: 16rem; margin-left: auto; }
.carrier-orders .cargo-pack .nw { white-space: nowrap; }
/* 06.11.2026 (MS): colný stav a MRN pri zásielke */
.carrier-customs { white-space: normal; line-height: 1.9; }
.carrier-customs .status-badge, .ship-customs .status-badge { padding: 1px 8px; font-size: 11px; }
.data-table tr.ship-packing:has(+ tr.ship-customs) td { border-bottom: none; }
.carrier-mrn { font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; }
.data-table tr.ship-packing td { border-top: none; padding-top: 0; color: var(--text-muted); font-size: 0.9em; white-space: normal; }

.carrier-orders .row-clickable { cursor: pointer; transition: background 0.12s; }
.carrier-orders .row-clickable:hover,
.carrier-orders .row-clickable:focus-visible {
    background: var(--bg-hover);
    outline: none;
}
.carrier-orders .row-clickable:focus-visible {
    box-shadow: inset 0 0 0 2px var(--color3-strong);
}

/* Miesto vykládky býva celá adresa príjemcu („DEMİRHANLAR GLOBAL METAL —
   Sarıgazi Mahallesi Atatürk Cad. …"). Bez orezania roztiahne tabuľku a
   stĺpec Náklad aj šípka detailu vypadnú z obrazovky — teda presne to, čo
   sa opravovalo. Celý text ostáva v `title` a v detaile. */
.carrier-orders .route-arrow { color: var(--text-muted); }
.carrier-orders td:nth-child(4) {
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.carrier-orders .route-from,
.carrier-orders .route-to { white-space: nowrap; }

@media (max-width: 1200px) {
    .carrier-orders td:nth-child(4) { max-width: 18rem; }
}

.carrier-orders .cargo-cell { text-align: right; white-space: nowrap; }
.carrier-orders .cargo-sub {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted);
}

.carrier-orders .row-action { text-align: right; white-space: nowrap; }
.carrier-orders .row-chevron {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
}
.carrier-orders .row-clickable:hover .row-chevron { color: var(--color3-strong); }
.carrier-orders .chat-dot {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--accent-amber-light);
    color: var(--warning);
    font-size: 0.8em;
    font-weight: 700;
}

/* --- potvrdenie dopravy --- */
.detail-card--form { grid-column: 1 / -1; }

.form-hint { color: var(--text-muted); margin: 0 0 1rem; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field > span { font-size: 0.85em; font-weight: 600; color: var(--text-muted); }
.form-field input {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
}
.form-field input:focus-visible {
    outline: 2px solid var(--color3-strong);
    outline-offset: 1px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.form-msg { color: var(--text-muted); font-size: 0.9em; }
.form-msg--error { color: var(--danger); font-weight: 600; }

/* Nakládkový kód sa diktuje telefonicky a prepisuje na vrátnici, preto
   monospace a veľké písmo — musí sa dať prečítať z odstupu. */
.loading-code {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: var(--accent-blue-light);
}
.loading-code__label { font-size: 0.85em; font-weight: 600; color: var(--text-muted); }
.loading-code__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.9rem;
    letter-spacing: 0.18em;
    color: var(--color3-strong);
}
.loading-code__hint { font-size: 0.85em; color: var(--text-muted); }

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.alert-warning {
    background: var(--accent-amber-light);
    color: var(--warning);
    border: 1px solid currentColor;
}
.alert-danger {   /* 06.11.2026: neplatný deň nakládky dopravcu */
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
    border: 1px solid currentColor;
}

/* --- dashboard dopravcu --- */
.stats-card--attention { border-left: 4px solid var(--warning); }
.stats-big {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0.35rem 0 0.25rem;
    color: var(--text-color);
}
.stats-big.waiting { color: var(--warning); }
.stats-note { color: var(--text-muted); font-size: 0.9em; margin: 0; }

@media (max-width: 860px) {
    .carrier-orders .cargo-sub { display: none; }
    .loading-code__value { font-size: 1.5rem; }
}

/* v1.27.0: hlavička inboxu s filtrom dopravcu */
.chat-inbox-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chat-inbox-filter { font-size: 0.875rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.chat-inbox-filter select { padding: 4px 8px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--input-bg); color: var(--text-color); max-width: 16rem; }
.chat-inbox-carrier { color: var(--text-muted); font-size: 0.875rem; margin-left: 0.5rem; }

/* v1.30.0: nápoveda sekcií + úvodný sprievodca dopravcu */
.help-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-color); font-weight: 700; font-size: 1rem; cursor: pointer; }
.help-toggle:hover { background: var(--bg-hover); }
.help-overlay { position: fixed; inset: 0; background: rgba(10, 20, 30, 0.55); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 1rem; }
.help-panel { background: var(--bg-card); color: var(--text-color); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 1.5rem 1.75rem; }
.help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.help-head h2 { margin: 0; font-size: 1.1rem; color: var(--text-muted); }
.help-panel h3 { margin: 0.25rem 0 0.75rem; }
.help-close { border: 0; background: none; color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.help-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.help-list li { margin: 0.35rem 0; line-height: 1.45; }
.help-intro-btn { margin-top: 0.25rem; }
.intro-panel h2 { margin: 0.5rem 0 0.75rem; }
.intro-progress { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.6rem; }
.intro-dots { display: inline-flex; gap: 6px; }
.intro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
.intro-dot.active { background: var(--btn-primary-bg); }
.intro-nav { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.intro-spacer { flex: 1; }
.btn-primary-solid { background: var(--btn-primary-bg); color: #fff; border: 0; }
.btn-primary-solid:hover { background: var(--btn-primary-bg-hover); }

/* --- Hlavička na telefóne (v1.34.2, E2E test 03.10.2026) -------------------
   Pri šírke telefónu sa pravá časť hlavičky (jazyk, nápoveda, téma, sekcia,
   meno, Zmena hesla, Odhlásiť) nezmestila: tlačidlo Odhlásiť bolo mimo
   obrazovky (x ≈ 520 px pri šírke 390 px) a jazyk sa prekrýval s logom.
   Pravá časť ide na vlastný riadok a smie sa zalomiť; meno a názov modulu
   ustúpia (názov modulu je aj v nadpise stránky). */
@media (max-width: 640px) {
    .dashboard-header {
        flex-wrap: wrap;
        padding: 8px 12px;
        row-gap: 8px;
    }
    .dashboard-header .user-menu {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    #userName,
    .dashboard-header .module-title {
        display: none;
    }
    .dashboard-header .user-menu .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* 04.11.2026 (MS) — dopravca: kód, filtre zoznamu, stránkovanie, schéma etáp prepravy */
.carrier-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px}
.carrier-code{padding:4px 12px;border-radius:999px;background:var(--primary-light,#e8f0fe);color:var(--primary,#1a56db);font-size:13px}
.carrier-code strong{font-size:15px;letter-spacing:.06em}
.carrier-seg{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.carrier-seg__i{border:1px solid var(--border,#d5dbe1);background:var(--bg-card,#fff);color:inherit;border-radius:999px;padding:4px 12px;font-size:13px;cursor:pointer}
.carrier-seg__i.is-active{background:var(--primary,#1a56db);border-color:var(--primary,#1a56db);color:#fff}
.carrier-seg__n{display:inline-block;min-width:18px;padding:0 6px;margin-left:4px;border-radius:999px;background:rgba(0,0,0,.08);font-size:11px;font-weight:700}
.carrier-seg__i.is-active .carrier-seg__n{background:rgba(255,255,255,.25)}
/* 27.11.2026 (MS): hľadanie dopravcu — bolo natívne (biele v tmavej téme, cez celú šírku). Jeden pás ovládačov
   rovnakej výšky z premenných témy; pole rastie najviac na 34rem, výbery vedľa neho, na mobile pod sebou. */
.carrier-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:4px 0 14px}
.carrier-filters__search{position:relative;flex:1 1 20rem;max-width:34rem;min-width:0;display:block}
.carrier-filters__search svg{position:absolute;left:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
.carrier-filters__q,.carrier-filters__sel{
    box-sizing:border-box;height:40px;font:inherit;font-size:14px;color:var(--text-color);
    background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:0.5rem;
    transition:border-color .15s,box-shadow .15s}
.carrier-filters__q{width:100%;padding:0 12px 0 40px}
.carrier-filters__q::placeholder{color:var(--text-muted);opacity:1}
.carrier-filters__q::-webkit-search-cancel-button{cursor:pointer}
.carrier-filters__sel{
    flex:0 0 auto;min-width:11rem;padding:0 36px 0 12px;cursor:pointer;
    -webkit-appearance:none;appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8794' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.carrier-filters__sel option{background:var(--bg-card);color:var(--text-color)}
[data-theme="dark"] .carrier-filters__q,[data-theme="dark"] .carrier-filters__sel{border-color:#4a5870}
.carrier-filters__q:hover,.carrier-filters__sel:hover{border-color:var(--text-muted)}
.carrier-filters__q:focus-visible,.carrier-filters__sel:focus-visible{outline:none;border-color:var(--color3,#12a6df);box-shadow:0 0 0 3px rgba(18,166,223,.25)}
@media (max-width:640px){
    .carrier-filters__search{flex-basis:100%;max-width:none}
    .carrier-filters__sel{flex:1 1 0;min-width:0}
}
.carrier-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0}
.tpl{display:flex;align-items:flex-start;margin:6px 0}
.tpl-s{flex:1;position:relative;text-align:center;min-width:64px;font-size:12px}
.tpl-s:not(:last-child)::after{content:"";position:absolute;top:12px;left:calc(50% + 14px);right:calc(-50% + 14px);height:3px;background:#d5dbe1}
.tpl-s.tpl-done:not(:last-child)::after{background:#27ae60}
.tpl-dot{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:2px solid #c3cbd3;background:var(--bg-card,#fff);color:#fff;font-weight:700;font-size:13px}
.tpl-done .tpl-dot{background:#27ae60;border-color:#27ae60}
.tpl-current .tpl-dot{background:#2980b9;border-color:#2980b9;box-shadow:0 0 0 4px rgba(41,128,185,.2)}
.tpl-warn .tpl-dot{background:#e67e22;border-color:#e67e22}
.tpl-l{display:block;font-weight:600;margin-top:4px}
.tpl-t{display:block;opacity:.7}
.tpl-m{display:block;color:#d35400;font-size:11px}
.tpl-mini{margin:4px 0 0;min-width:110px}
.tpl-mini .tpl-s{min-width:0}
.tpl-mini .tpl-dot{width:14px;height:14px;font-size:9px;border-width:2px}
.tpl-mini .tpl-s:not(:last-child)::after{top:6px;left:calc(50% + 8px);right:calc(-50% + 8px);height:2px}
@media (max-width:640px){.tpl:not(.tpl-mini) .tpl-l{font-size:10px}.tpl:not(.tpl-mini) .tpl-t,.tpl:not(.tpl-mini) .tpl-m{display:none}}

/* Dokumenty dopravcu (05.11.2026, MS): drag & drop, náhľad, deaktivované riadky */
.cd-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    margin: 12px 0 4px;
    padding: 16px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.cd-drop:hover,
.cd-drop:focus-within,
.cd-drop--over {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}
.cd-drop--busy {
    opacity: .6;
    pointer-events: none;
}
.cd-drop-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.cd-inactive td {
    opacity: .6;
}
.cd-inactive td a {
    text-decoration: line-through;
}
.cd-img-preview {
    margin: 0 0 24px;
    text-align: center;
}
.cd-img-preview img {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Podpora volmet.online (v1.40.0, MS 05.11.2026): FAQ, nápoveda, požiadavky */
.support-intro { margin: 0 0 16px; color: var(--text-muted); }
.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
.support-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.support-block h3 { margin: 0 0 12px; }
.support-faq { border-top: 1px solid var(--border-color); padding: 10px 0; }
.support-faq:first-of-type { border-top: 0; }
.support-faq summary { cursor: pointer; font-weight: 600; }
.support-faq p { margin: 8px 0 0; }
.support-form { display: grid; gap: 12px; }
.support-form label { display: grid; gap: 4px; }
.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text-color);
    font: inherit;
}
.support-state {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--info-fg);
    background: var(--info);
}
.support-state-in_progress { background: var(--warning); color: var(--warning-fg); }
.support-state-resolved { background: var(--success); color: var(--success-fg); }

/* =========================================================================
   Modul dodávateľov v1.42.0 (audit UI/UX 06.11.2026)
   Prehľad (KPI + grafy), spoločný zoznam s nástrojovou lištou, nahrávanie
   dokladov (faktúry s ETA, cenníky, špeciálne ponuky). Farby len z tokenov,
   tmavý režim cez tie isté tokeny + vlastný odtieň grafu.
   ========================================================================= */
:root { --sup-chart: #0a7099; --sup-chart-hover: #12a6df; --sup-grid: #dfe5ec; }
[data-theme="dark"] { --sup-chart: #38bdf8; --sup-chart-hover: #7dd3fc; --sup-grid: #2d3748; }

.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sup-table td { vertical-align: top; }
.sup-table td.sup-wrap { max-width: 28rem; white-space: normal; overflow-wrap: anywhere; }
.sup-table .row-clickable:focus-visible { outline: 2px solid var(--section-line); outline-offset: -2px; }
.sup-sub { font-size: 0.82em; color: var(--text-muted); margin-top: 2px; }
.sup-hint { color: var(--text-muted); margin: -4px 0 16px; max-width: 60rem; }
.sup-pdf-mark {
    display: inline-block; font-size: 0.68em; font-weight: 700; letter-spacing: 0.04em;
    padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-color);
    color: var(--text-muted); vertical-align: middle;
}

/* Zoradenie kliknutím na hlavičku — tlačidlo kvôli klávesnici */
.sup-sort {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
    font: inherit; color: inherit; font-weight: inherit;
}
.sup-sort:focus-visible { outline: 2px solid var(--section-line); outline-offset: 2px; border-radius: 2px; }
.sup-sort-ind { font-size: 0.75em; opacity: 0.45; }
.sup-sort.active .sup-sort-ind { opacity: 1; color: var(--section-line); }
th.num .sup-sort { flex-direction: row-reverse; }

/* Nástrojová lišta zoznamu */
.sup-toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 0 0 12px; }
.sup-toolbar .search-input { flex: 1 1 16rem; max-width: 26rem; margin: 0; }
.sup-toolbar-spacer { flex: 1 1 auto; }
.sup-date { display: flex; flex-direction: column; gap: 2px; font-size: 0.8em; color: var(--text-muted); }
.sup-date input, .sup-form-grid input, .sup-form-grid select, .sup-form-grid textarea, .sup-eta-edit input {
    font: inherit; font-size: 0.95rem; color: var(--text-color); background: var(--input-bg);
    border: 1px solid var(--border-color); border-radius: var(--radius); padding: 6px 8px;
}
.sup-date input:focus-visible, .sup-form-grid :is(input, select, textarea):focus-visible, .sup-eta-edit input:focus-visible {
    outline: 2px solid var(--section-line); outline-offset: 1px;
}
.sup-export { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sup-list-body.sup-busy { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
.sup-list-host { margin-top: 28px; }
.sup-detail-head { flex-wrap: wrap; margin-top: 14px; }
.sup-section-head { margin-top: 24px; flex-wrap: wrap; }
.sup-section-head h3 { margin: 0; }
.btn-link {
    background: none; border: none; padding: 2px 0; color: var(--link-color); cursor: pointer;
    font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.btn-link:hover { color: var(--color3-hover); }

/* Súhrn za celý filter */
.sup-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.sup-summary-item {
    display: flex; flex-direction: column; gap: 2px; min-width: 10rem;
    padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); border-left: 3px solid var(--section-line);
}
.sup-summary-item span { font-size: 0.8em; color: var(--text-muted); }
.sup-summary-item strong { font-size: 1.1em; font-variant-numeric: tabular-nums; }

/* Stránkovanie */
.sup-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.sup-pager .pagination-info { margin-right: auto; color: var(--text-muted); font-size: 0.9em; }
.sup-pager-page { padding: 0 8px; font-variant-numeric: tabular-nums; }

.sup-ro-banner {
    margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius);
    background: var(--accent-blue-light); border-left: 4px solid var(--info); color: var(--text-color);
}

/* --- Prehľad ------------------------------------------------------------- */
.sup-dash-head { flex-wrap: wrap; align-items: center; }
.sup-dash-head .btn { white-space: nowrap; }
.sup-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 12px; margin: 0 0 20px; }
.sup-kpi {
    display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
    padding: 14px 16px; background: var(--bg-card); color: var(--text-color);
    border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow);
    font: inherit;
}
.sup-kpi:hover { border-color: var(--section-line); }
.sup-kpi:focus-visible { outline: 2px solid var(--section-line); outline-offset: 2px; }
.sup-kpi-label { font-size: 0.82em; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.sup-kpi-value { font-size: 1.55em; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sup-kpi-sub { font-size: 0.85em; color: var(--text-muted); }
.sup-kpi--warn { border-left: 4px solid var(--danger); }
.sup-kpi--warn .sup-kpi-label { color: var(--danger); }
[data-theme="dark"] .sup-kpi--warn .sup-kpi-label { color: #fca5a5; }

.sup-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 12px; margin: 0 0 20px; }
.sup-chart {
    margin: 0; padding: 12px 14px 6px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    /* 26.11.2026: kotva pre absolútny .sr-only blok hodnôt grafu — bez nej unikol z posuvného
       .content-body a natiahol celé okno (prázdna plocha pod portálom) */
    position: relative;
}
.sup-chart figcaption { font-weight: 600; font-size: 0.92em; margin-bottom: 4px; }
.sup-chart-svg { width: 100%; height: auto; display: block; }
.sup-chart .sup-bar { fill: var(--sup-chart); }
.sup-chart .sup-hit { fill: transparent; }
.sup-chart .sup-bar-g:hover .sup-bar { fill: var(--sup-chart-hover); }
.sup-chart .sup-bar-g:hover .sup-hit { fill: var(--bg-hover); opacity: 0.5; }
.sup-chart .sup-grid { stroke: var(--sup-grid); stroke-width: 1; }
.sup-chart .sup-baseline { stroke: var(--border-color); stroke-width: 1; }
.sup-chart .sup-axis { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.sup-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 12px; }
.sup-panel {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 12px 14px; overflow-x: auto;
}
.sup-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sup-panel-head h3 { margin: 0; font-size: 1em; }
.sup-compact th, .sup-compact td { padding: 6px 8px; font-size: 0.9em; }
.sup-panel .empty-state { padding: 16px 0; }

/* --- Nahrávanie dokladov ------------------------------------------------- */
.sup-upload-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 16px; max-width: 56rem; box-shadow: var(--shadow);
}
.sup-dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 22px 16px; border: 2px dashed var(--border-color); border-radius: var(--radius);
    color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.sup-dropzone:hover, .sup-dropzone.is-over { border-color: var(--section-line); background: var(--bg-hover); }
.sup-dropzone:focus-within { outline: 2px solid var(--section-line); outline-offset: 2px; }
.sup-dropzone.is-invalid { border-color: var(--danger); }
.sup-drop-title { font-weight: 600; color: var(--text-color); overflow-wrap: anywhere; }
.sup-drop-hint { font-size: 0.85em; }
.sup-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px 16px; margin-top: 14px; }
.sup-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88em; font-weight: 600; }
.sup-form-grid .form-hint { font-weight: 400; color: var(--text-muted); font-size: 0.9em; }
.sup-form-grid .sup-span2 { grid-column: 1 / -1; }
.sup-progress { height: 6px; margin-top: 14px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.sup-progress-bar { height: 100%; width: 0; background: var(--section); transition: width 0.2s; }
.sup-form-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

.sup-eta-edit { display: flex; flex-direction: column; gap: 6px; min-width: 12rem; }
.sup-eta-btns { display: flex; gap: 6px; }

@media (max-width: 640px) {
    .sup-toolbar .search-input { max-width: none; flex-basis: 100%; }
    .sup-toolbar-spacer { display: none; }
    .sup-kpi-value { font-size: 1.3em; }
    .sup-charts, .sup-panels { grid-template-columns: 1fr; }
}
.btn.btn-link, .btn.btn-link:hover { background: none; border: none; box-shadow: none; padding: 2px 0; }
.sup-table a { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }

/* --- Tabuľky dodávateľa: výrazná fixovaná hlavička + filtre (MS 06.11.2026) ---
   „Tabuľky sú nevýrazné, nemajú filtre, hlavička nie je fixovaná.“
   Hlavička je značková tmavomodrá (biely text 10,4:1, mimo tém — rovnako ako
   primárne tlačidlo), riadok filtrov pod ňou o odtieň svetlejší. Obe sú
   `sticky` v rámci zoznamu, ktorý sa posúva vo vlastnom okne. */
:root { --sup-th-bg: #0e4463; --sup-th-filter-bg: #1b5878; --sup-zebra: #f4f7fa; --sup-th-h: 41px; }
[data-theme="dark"] { --sup-th-bg: #0e4463; --sup-th-filter-bg: #15405a; --sup-zebra: #1f2a3a; }

.sup-list-body .data-table-wrapper {
    max-height: calc(100vh - 260px); min-height: 12rem; overflow: auto;
    border: 1px solid var(--border-color);
}
.sup-list-host .sup-list-body .data-table-wrapper { max-height: 70vh; }
.data-table.sup-table { border-collapse: separate; border-spacing: 0; }
.data-table.sup-table thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--sup-th-bg); color: #fff; border-bottom: 0;
    font-size: 12px; letter-spacing: 0.04em; padding-top: 12px; padding-bottom: 12px;
}
.data-table.sup-table thead .sup-sort-ind { opacity: 0.7; }
.data-table.sup-table thead .sup-sort.active .sup-sort-ind { opacity: 1; color: #fff; }
.data-table.sup-table thead .sup-sort:focus-visible { outline-color: #fff; }
.data-table.sup-table thead tr.sup-filter-row th {
    top: var(--sup-th-h); z-index: 2; background: var(--sup-th-filter-bg);
    padding: 6px 8px; text-transform: none; letter-spacing: 0;
}
.sup-col-filter {
    width: 100%; min-width: 6rem; box-sizing: border-box; font: inherit; font-size: 13px;
    padding: 5px 8px; border-radius: 4px; border: 1px solid transparent;
    background: rgba(255,255,255,0.95); color: #1a1f26;
}
.sup-col-filter::placeholder { color: #5b6573; }
/* 26.11.2026 (audit Glance): v tmavej téme bol filter v hlavičke tabuľky biely */
[data-theme="dark"] .sup-col-filter { background: rgba(15, 23, 42, 0.55); color: #e5e7eb; border-color: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .sup-col-filter::placeholder { color: #9aa4b2; }
.sup-col-filter:focus-visible { outline: 2px solid #12a6df; outline-offset: 0; }
.data-table.sup-table tbody tr:nth-child(even) td { background: var(--sup-zebra); }
.data-table.sup-table tbody tr.row-clickable:hover td { background: var(--bg-hover); }
.data-table.sup-table tbody td { border-bottom: 1px solid var(--border-color); }
.sup-empty-row td { text-align: center; color: var(--text-muted); padding: 28px 16px; white-space: normal; }
/* kompaktné tabuľky v prehľade — hlavička rovnako farebná, nie sticky */
.data-table.sup-compact thead th { position: static; padding-top: 8px; padding-bottom: 8px; }

/* Neaktívny formulár (konto len na čítanie) — drag & drop viditeľný, no vypnutý */
.sup-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sup-upload-card.is-disabled { opacity: 0.6; }
.sup-upload-card.is-disabled .sup-dropzone { cursor: not-allowed; }
.sup-upload-card.is-disabled .sup-dropzone:hover { border-color: var(--border-color); background: none; }

/* v1.45.0 (MS 06.11.2026): odhlásenie pri nečinnosti — upozornenie minútu vopred a oznam na úvodnej stránke */
.idle-warn { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.45); padding: 16px; }
.idle-warn__box { background: var(--bg-primary, #fff); color: var(--text-color, #1f2937); border-radius: 12px;
    max-width: 26rem; width: 100%; padding: 22px 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); text-align: center; }
.idle-warn__box h3 { margin: 0 0 8px; }
.idle-warn__box p { margin: 0 0 16px; font-size: 15px; }
.idle-notice { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 10000; display: flex;
    gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px;
    background: #FFF7E6; color: #7A4B00; border: 1px solid #F2C46D; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); font-size: 15px; }
.idle-notice button { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }

/* 19.11.2026 (MS): smer dopravy dopravcu — export (VOLMET → klient) / import (dodávateľ → VOLMET).
   Pruh vľavo v riadku ako .row-warn (inset 3px na prvej bunke) + štítok; farby zhodné s IS (Transports). */
tr.dir-export, .dir-legend .dir-export, .dir-badge.dir-export { --dir-c: #1565C0; }
tr.dir-import, .dir-legend .dir-import, .dir-badge.dir-import { --dir-c: #00897B; }
tr.dir-export > td:first-child, tr.dir-import > td:first-child { box-shadow: inset 3px 0 0 var(--dir-c); }
.status-badge.dir-badge { padding: 1px 8px; font-size: 11px; background: var(--dir-c); color: #fff; vertical-align: middle; }
.dir-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: 12px; color: var(--text-muted); }
.dir-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dir-legend i { display: inline-block; width: 3px; height: 16px; border-radius: 1px; background: var(--dir-c); }

/* TB#494 (26.11.2026): rozpis colli v detaile dopravy (formát mailu Prepared) */
.carrier-colli { margin: 0 0 .5rem; }
.carrier-colli > summary { cursor: pointer; padding: .25rem 0; }
.carrier-colli__list { font-variant-numeric: tabular-nums; font-size: .9rem; line-height: 1.6;
    padding: .25rem 0 .25rem 1rem; max-height: 24rem; overflow-y: auto; }

/* ===========================================================================
   REDIZAJN 27.11.2026 (audit v Glance 26.11.) — úroveň B2B špičky
   Zámerne na konci súboru: prebíja staršie pravidlá bez ich presúvania
   (súbežné zmeny iných vetiev sa tak zlúčia bez konfliktov). Farby len cez
   tokeny z :root / [data-theme="dark"] (--brand, --accent, --heading-color…).
   =========================================================================== */

/* --- Základ: typografia, fokus, tlačidlá -------------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.form-control:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 1px;
}

.btn {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    letter-spacing: 0.005em;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary:hover, .btn-login:hover { background: var(--btn-primary-bg-hover); }

.theme-toggle, .help-toggle, .lang-current {
    height: 36px;
    border-radius: 0.5rem;
}
.theme-toggle { width: 36px; padding: 0; }
.lang-current { padding: 0 10px; }
.lang-current:hover { border-color: var(--accent); color: var(--accent); }
.lang-dropdown, .account-menu {
    border-radius: 0.6rem;
    box-shadow: var(--shadow-lg);
    padding: 4px;
}
.lang-option { border-radius: 0.4rem; }
.lang-option.active { background: var(--nav-active-bg); color: var(--nav-active-fg); }

/* --- Titulka: rolovanie a hlavička (bod 4) ------------------------------
   html/body majú overflow: hidden kvôli portálu — titulka roluje sama.
   Hlavička je sticky (v toku, nič neprekrýva) a po posunutí dostane plné
   pozadie s tieňom v oboch témach. */
.landing-page {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
}
.login-page {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
}
.landing-page > * { flex-shrink: 0; }   /* flex stĺpec s pevnou výškou by sekcie stláčal */
.landing-page .header {
    position: sticky;
    top: 0;
    padding: 0.9rem 1.5rem;
    background: color-mix(in srgb, var(--hero-bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.landing-page .header.scroll {
    background: var(--bg-card);
    border-bottom-color: var(--border-color);
    box-shadow: 0 6px 24px -12px rgba(9, 44, 64, 0.35);
}
[data-theme="dark"] .landing-page .header.scroll {
    background: #111c2b;
    box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.7);
}
.landing-page .header .logo img,
.landing-page .header.scroll .logo img { height: 40px; }
.landing-page .header:not(.scroll) .lang-current {
    color: var(--text-color);
    border-color: var(--border-color);
}
[data-theme="dark"] .landing-page .header .logo img,
[data-theme="dark"] .lp-footer__logo {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* --- Hero (bod 1) ------------------------------------------------------- */
:root { --hero-bg: #f6f9fc; }
[data-theme="dark"] { --hero-bg: #0b1726; }

.hero {
    min-height: auto;
    padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(18, 166, 223, 0.14), transparent 60%),
        radial-gradient(40rem 26rem at -10% 110%, rgba(198, 61, 151, 0.08), transparent 60%),
        var(--hero-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.hero::before {          /* jemná mriežka — technický, nie „templátový“ podklad */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(14, 68, 99, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 68, 99, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
    pointer-events: none;
}
[data-theme="dark"] .hero::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
.hero-inner {
    position: relative;
    width: 100%;
    max-width: 76rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero-copy { text-align: left; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.3rem 0.8rem 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.hero-eyebrow__dot, .lp-kicker__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: 0 0 0 3px rgba(18, 166, 223, 0.18);
}
.hero-copy h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}
.hero .hero-subtitle,
[data-theme="dark"] .hero .hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.6;
    max-width: 34rem;
    margin: 0 0 2rem;
    letter-spacing: 0;
}
.hero .hero-actions { justify-content: flex-start; gap: 0.75rem; }
.btn-large { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-ghost,
[data-theme="dark"] .btn-ghost {
    color: var(--heading-color);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--accent); }
.hero-trust {
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    max-width: 34rem;
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 500;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.hero-scroll { color: var(--text-muted); }

/* --- Sekcie titulky ------------------------------------------------------ */
.lp-section { padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; }
.lp-wrap { max-width: 72rem; }
.lp-section h2 {
    color: var(--heading-color);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.lp-lead { margin-bottom: 2.5rem; }
.lp-kicker {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.lp-cards { gap: 1.25rem; }
.lp-cards > .lp-card { flex: 1 1 22rem; max-width: 34rem; }
.lp-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.lp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.lp-card h3 { color: var(--heading-color); }
.lp-card__icon, .lp-why__icon {
    background: var(--nav-active-bg);
    color: var(--nav-active-fg);
}
.lp-list li::before { border-color: var(--accent); }

/* Pripravované skupiny — oddelený, tichší pás s výzvou (bod 1) */

.lp-step__num { background: var(--brand); box-shadow: 0 0 0 6px var(--nav-active-bg); }
[data-theme="dark"] .lp-step__num { background: #0a7099; }

/* --- Brand Force: prémiový pás (bod 1) ----------------------------------- */
.lp-bf {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgba(0, 154, 216, 0.22), transparent 60%),
        radial-gradient(30rem 20rem at 0% 100%, rgba(198, 61, 151, 0.16), transparent 60%),
        linear-gradient(135deg, #071f2e 0%, #0b3550 100%);
    overflow: hidden;
}
.lp-bf::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: var(--brand-gradient); opacity: 0.7;
}
.lp-bf__inner { align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.lp-bf h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.lp-bf__body { color: rgba(255, 255, 255, 0.82); }   /* 11:1 na #0b3550 */
.btn-bf {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-radius: 0.5rem; padding: 0.8rem 1.4rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.btn-bf svg { width: 18px; height: 18px; transition: transform 0.15s; }
.btn-bf:hover svg { transform: translateX(3px); }
.lp-bf__card {
    flex: 0 0 22rem;
    max-width: 100%;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lp-bf__logo { display: block; width: 150px; height: auto; margin: 0 0 1.25rem; }
.lp-bf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.lp-bf__list li {
    position: relative; padding-left: 1.6rem;
    color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; line-height: 1.45;
}
.lp-bf__list li::before {
    content: ""; position: absolute; left: 0; top: 0.4em;
    width: 0.65rem; height: 0.38rem;
    border-left: 2px solid #7fd0f0; border-bottom: 2px solid #7fd0f0;
    transform: rotate(-45deg);
}

/* --- Pätička (bod 2) ----------------------------------------------------- */
.lp-footer {
    padding: 2.5rem 1.5rem 1.75rem;
    text-align: left;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}
.lp-footer__inner {
    max-width: 72rem; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem;
}
.lp-footer__brand { display: flex; align-items: center; gap: 1rem; min-width: 0; flex-wrap: wrap; }
.lp-footer__logo { height: 28px; width: auto; }
.lp-footer .footer-contact { margin: 0; font-size: 0.9rem; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.lp-footer__links a, .lp-footer__btn {
    color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 0.92rem;
    background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.lp-footer__links a:hover, .lp-footer__btn:hover { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.lp-footer__legal {
    max-width: 72rem; margin: 1.5rem auto 0; padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem; color: var(--text-muted);
}
.lp-footer__legal a { color: var(--text-muted); text-decoration: none; }
.lp-footer__legal a:hover { color: var(--link-color); text-decoration: underline; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-copy { text-align: left; }
    .lp-bf__card { flex-basis: auto; width: 100%; }
}
@media (max-width: 768px) {
    .landing-page .header { padding: 0.7rem 1rem; }
    .landing-page .header .logo img, .landing-page .header.scroll .logo img { height: 32px; }
    .landing-page .nav { gap: 8px; }
    .hero { padding: 2.5rem 1rem 3.5rem; }
    .hero-scroll { display: none; }
    .lp-section { padding: 3rem 1rem; }
    .lp-card { padding: 1.5rem; }
    .lp-cards > .lp-card { flex-basis: 100%; }
    .lp-why { grid-template-columns: minmax(0, 1fr); }
    .lp-bf { padding: 3rem 1rem; }
    .lp-footer { padding: 2rem 1rem 1.5rem; }
}
@media (max-width: 420px) {
    .hero-trust { grid-template-columns: minmax(0, 1fr); }
    .landing-page .btn-login { padding: 0.55em 0.9em; }
}

/* --- Prihlásenie --------------------------------------------------------- */
.login-branding {
    background:
        radial-gradient(36rem 22rem at 100% 0%, rgba(0, 154, 216, 0.25), transparent 60%),
        radial-gradient(30rem 20rem at 0% 100%, rgba(198, 61, 151, 0.18), transparent 60%),
        linear-gradient(135deg, #071f2e 0%, #0e4463 100%);
}
.login-panel h1 { color: var(--heading-color); letter-spacing: -0.015em; }
.form-group input, .form-control { border-radius: 0.5rem; }

/* --- Portál: hlavička, menu účtu, zásuvka (body 5, 7, 11) ----------------- */
#dashboard .dashboard-header { padding: 10px 20px; min-height: 60px; }
.header-context { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.user-menu { gap: 8px; }
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--border-color); border-radius: 0.5rem;
    background: var(--bg-card); color: var(--text-color); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.account { position: relative; }
.account-trigger {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 8px 0 4px;
    border: 1px solid transparent; border-radius: 0.6rem;
    background: transparent; color: var(--text-color);
    font: inherit; cursor: pointer; text-align: left;
    max-width: 18rem;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: var(--bg-hover); border-color: var(--border-color); }
.account-avatar {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;           /* 10,4:1 */
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
[data-theme="dark"] .account-avatar { background: #0a7099; }   /* 5,5:1 */
.account-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#userName { font-size: 13.5px; font-weight: 600; max-width: 12rem; }
.account-company {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem;
}
.account-company:empty { display: none; }
.account-chev { color: var(--text-muted); flex: 0 0 auto; transition: transform 0.15s; }
.account-trigger[aria-expanded="true"] .account-chev { transform: rotate(180deg); }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 15rem; z-index: 1100;
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.account-menu[hidden] { display: none; }
.account-menu__head { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border-color); margin-bottom: 4px; }
.account-menu__head strong { font-size: 14px; color: var(--text-color); overflow-wrap: anywhere; }
.account-menu__head span { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.account-menu__head span:empty { display: none; }
.account-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border: 0; border-radius: 0.4rem;
    background: transparent; color: var(--text-color);
    font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.account-item svg { width: 16px; height: 16px; color: var(--text-muted); flex: 0 0 auto; }
.account-item:hover, .account-item:focus-visible { background: var(--bg-hover); outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.account-item:hover { box-shadow: none; }
.account-sep { height: 1px; background: var(--border-color); margin: 4px 6px; }

/* Bočný panel */
.sidebar { padding: 16px 0; }
.sidebar-nav { gap: 2px; padding: 0 10px; }
.nav-item { padding: 9px 12px; border-radius: 0.5rem; color: var(--text-muted); }
.nav-item:hover { background: var(--bg-hover); color: var(--text-color); }
.nav-icon { width: 18px; height: 18px; }
.nav-text { font-size: 14px; }

/* Hlavička obsahu: jeden nadpis + počet (bod 6) */
.content-header { padding: 20px 32px 18px; }
.content-header h1 {
    font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em;
    color: var(--heading-color); line-height: 1.25;
    display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}
.title-count {
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    padding: 1px 9px; border-radius: 999px; background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-variant-numeric: tabular-nums; letter-spacing: 0;
    position: relative; top: -2px;
}
.content-body { padding: 28px 32px; }
.view-header h2, .view-header h3 { color: var(--heading-color); letter-spacing: -0.01em; }

/* Mobil: zásuvka namiesto 60 px lišty, kompaktná hlavička */
@media (max-width: 768px) {
    #dashboard .dashboard-header { padding: 8px 12px; gap: 8px; min-height: 56px; }
    /* hlavička v jednom riadku: zmena hesla a odhlásenie sú v menu účtu,
       takže zalamovanie z v1.34 (≤ 640 px) už netreba */
    #dashboard .dashboard-header { flex-wrap: nowrap; }
    #dashboard .dashboard-header .user-menu { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
    .header-left { min-width: 0; }
    .header-context { min-width: 0; overflow: hidden; }
    .nav-toggle { display: inline-flex; }
    .header-left { gap: 8px; }
    .dashboard-header .header-left > .logo { flex: 0 0 auto; width: auto; margin: 0; }
    .logo-dashboard { height: 28px; }
    .user-menu .theme-toggle { display: none; }          /* je v menu účtu */
    .account-text, .account-chev { display: none; }
    .account-trigger { padding: 0 4px; }
    .user-badges { display: none; }

    .dashboard-layout { position: relative; }
    .sidebar,
    #dashboard .sidebar {
        position: fixed; z-index: 1200;
        top: 0; bottom: 0; left: 0;
        width: min(82vw, 18rem);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.22s ease, visibility 0s linear 0.22s;
        box-shadow: var(--shadow-lg);
        padding-top: 20px;
    }
    .sidebar.is-open,
    #dashboard .sidebar.is-open {
        transform: none; visibility: visible;
        transition: transform 0.22s ease, visibility 0s;
    }
    .nav-text { display: inline; }
    .nav-item { justify-content: flex-start; padding: 11px 12px; }
    .sidebar-backdrop {
        position: fixed; inset: 0; z-index: 1150;
        background: rgba(7, 20, 32, 0.45);
    }
    .sidebar-backdrop[hidden] { display: none; }
    .content-header { padding: 16px; }
    .content-header h1 { font-size: 1.2rem; }
    .content-body { padding: 16px; }
}
@media (max-width: 480px) {
    .section-badge { display: none; }
    .user-menu .lang-current { padding: 0 8px; }
}
@media (min-width: 769px) {
    .sidebar-backdrop { display: none !important; }
}

/* --- KPI karty bez sirôt (bod 9) ------------------------------------------
   Päť kariet: ≥ 1400 px jeden rad; medzi 3 + 2 (6-stĺpcová mriežka, karty
   v poslednom neúplnom rade sa roztiahnu); ≤ 768 px 2 + 2 + 1 cez celú šírku;
   ≤ 420 px jeden stĺpec. Platí pre ľubovoľný počet kariet. */
.sup-kpis { gap: 12px; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.sup-kpi { border-radius: 0.6rem; box-shadow: var(--shadow-sm); padding: 16px 18px; min-width: 0; }
.sup-kpi-value { overflow-wrap: anywhere; }
.sup-kpi:hover { box-shadow: var(--shadow-lg); }
@media (min-width: 769px) and (max-width: 1399px) {
    .sup-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row; }
    .sup-kpi { grid-column: span 2; }
    .sup-kpi:nth-child(3n+1):nth-last-child(2),
    .sup-kpi:nth-child(3n+2):nth-last-child(1) { grid-column: span 3; }
    .sup-kpi:nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .sup-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
    .sup-kpi:nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .sup-kpis { grid-template-columns: minmax(0, 1fr); }
}

/* --- Stavy: kostra, prázdno, načítavanie (bod 11) ------------------------ */
.skeleton { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.sk-line {
    display: block; height: 12px; border-radius: 6px;
    background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 50%, var(--skeleton-a) 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.4s ease-in-out infinite;
}
@keyframes sk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; } }
.sk-lg { height: 22px; }
.sk-w10 { width: 10%; } .sk-w15 { width: 15%; } .sk-w20 { width: 20%; } .sk-w30 { width: 30%; }
.sk-w40 { width: 40%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }
.sk-toolbar { display: flex; gap: 10px; }
.sk-input { width: min(22rem, 60%); height: 36px; border-radius: 0.5rem; }
.sk-btn { width: 6rem; height: 36px; border-radius: 0.5rem; }
.sk-table { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.6rem; overflow: hidden; }
.sk-row { display: flex; gap: 24px; padding: 14px 16px; border-top: 1px solid var(--border-color); }
.sk-row:first-child { border-top: 0; background: var(--bg-secondary); }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 12px; }
.sk-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.6rem; }
.sk-block { height: 14rem; border-radius: 0.6rem; background: var(--bg-card); border: 1px solid var(--border-color); }

.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 48px 20px;
    border: 1px dashed var(--border-color); border-radius: 0.6rem;
    background: var(--bg-card);
}
.empty-state p { margin: 0; max-width: 32rem; }
.empty-state__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-secondary); color: var(--text-muted);
}
.empty-state__icon svg { width: 22px; height: 22px; margin: 0; opacity: 1; }
.loading-state .loader { border-top-color: var(--accent); }
.placeholder-content h2 { color: var(--heading-color); }
.placeholder-icon { color: var(--text-muted); opacity: 0.5; width: 64px; height: 64px; }

/* --- Dátumové pole vo formáte portálu (bod 8) ----------------------------- */
.df { position: relative; display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle; }
.df > .df-text { padding-right: 2.4rem !important; min-width: 9.5rem; font-variant-numeric: tabular-nums; }
.df > .df-text[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.df-btn {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    width: 2.1rem; height: calc(100% - 4px); max-height: 2.2rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 0.35rem; background: transparent;
    color: var(--text-muted); cursor: pointer; z-index: 2;
}
.df-btn:hover { color: var(--accent); background: var(--bg-hover); }
.df-btn svg { width: 16px; height: 16px; }
.df-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* natívne pole ostáva vykreslené (showPicker), ale neviditeľné pod tlačidlom */
.df > .df-native {
    position: absolute !important; right: 2px; bottom: 0;
    width: 2.1rem !important; min-width: 0 !important; height: 100% !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important;
    opacity: 0; pointer-events: none; z-index: 1;
}
/* dotyk: ťuk na ikonu trafí priamo natívne pole → systémový výber dátumu */
@media (pointer: coarse) {
    .df > .df-native { pointer-events: auto; z-index: 3; }
}
.landing-page .header-inner { max-width: 76rem; }
/* Tmavá téma: primárne tlačidlo svetlejšia modrá značky (biely text 5,5:1),
   tmavomodré #0e4463 na tmavom podklade zanikalo. */
[data-theme="dark"] { --btn-primary-bg: #0a7099; --btn-primary-bg-hover: #09638a; }
.lp-footer__btn { line-height: inherit; }
.login-page { background: var(--bg-card); }
.login-branding .btn-back {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}
.login-branding .btn-back:hover { background: rgba(255, 255, 255, 0.16); }
.branding-tagline {
    margin: 1.75rem 0 0;
    max-width: 22rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);   /* > 9:1 na #0b3550 */
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 500;
}
.placeholder-content p + p { margin-top: 1rem; }

/* --- Hlavička úvodnej stránky: väčšie logo Volmet, výrazné „Prihlásiť“ (MS 27.11.2026) --- */
.landing-page .header .logo img,
.landing-page .header.scroll .logo img { height: 52px; }
.landing-page .header .btn-login {
    display: inline-flex; align-items: center; gap: 0.5em;
    padding: 0.7em 1.35em;
    font-size: 1.02rem; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0e4463 0%, #0a6a96 100%);   /* biely text 6,0–10,4:1; hover 7,0:1+ */
    box-shadow: 0 8px 20px -8px rgba(10, 106, 150, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.landing-page .header .btn-login svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.landing-page .header .btn-login:hover {
    background: linear-gradient(135deg, #0b3a55 0%, #085f88 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(10, 106, 150, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.landing-page .header .btn-login:focus-visible { outline: 3px solid #12a6df; outline-offset: 2px; }
[data-theme="dark"] .landing-page .header .btn-login {
    background: linear-gradient(135deg, #0a6a96 0%, #0b7cae 100%);   /* biely text 4,7–6,0:1 */
    box-shadow: 0 8px 22px -8px rgba(18, 166, 223, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
[data-theme="dark"] .landing-page .header .btn-login:hover {
    background: linear-gradient(135deg, #0a73a3 0%, #0b78aa 100%);   /* 4,9–5,3:1 */
}
@media (prefers-reduced-motion: reduce) {
    .landing-page .header .btn-login, .landing-page .header .btn-login:hover { transition: none; transform: none; }
}
@media (max-width: 768px) {
    .landing-page .header .logo img,
    .landing-page .header.scroll .logo img { height: 44px; }
}
@media (max-width: 420px) {
    .landing-page .header .logo img,
    .landing-page .header.scroll .logo img { height: 38px; }
    .landing-page .header .btn-login { padding: 0.6em 0.95em; font-size: 0.95rem; }
    .landing-page .header .btn-login svg { display: none; }
}

/* --- B2B komunikácia: štyri skupiny partnerov v mriežke (MS 27.11.2026) --- */
.lp-cards--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.lp-cards--4 > .lp-card { max-width: none; padding: 1.75rem 1.5rem; }
@media (max-width: 1100px) { .lp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .lp-cards--4 { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================================
   Vizuálny jazyk volmet.net (MS 27.11.2026): röntgenové auto v hero, šikmé
   svetlé pruhy v pozadí, modrý pás s dielmi so „zrezaným“ okrajom.
   ========================================================================= */
.hero {
    background:
        url("/images/hero-streaks.webp?v=20261127f") no-repeat center top / max(2000px, 100%) auto,
        linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f4f6f8 100%);
}
.hero::before { display: none; }
[data-theme="dark"] .hero {
    background:
        repeating-linear-gradient(-14deg, transparent 0 90px, rgba(255, 255, 255, 0.025) 90px 180px),
        radial-gradient(60rem 30rem at 80% 10%, rgba(18, 166, 223, 0.16), transparent 60%),
        linear-gradient(180deg, #0d1b2c 0%, #0b1726 100%);
}
.hero-visual { position: relative; min-width: 0; }
.hero-visual picture { display: block; }
.hero-car {
    display: block;
    width: min(64vw, 1050px);
    max-width: none;
    height: auto;
    margin: 0 0 -1.5rem -2rem;          /* auto presahuje vpravo k okraju ako na volmet.net */
    filter: drop-shadow(0 30px 30px rgba(9, 44, 64, 0.12));
}
[data-theme="dark"] .hero-visual::before {   /* svetlo za sklenenou karosériou v tme */
    content: "";
    position: absolute;
    inset: 12% -10% 0 10%;
    background: radial-gradient(closest-side, rgba(170, 210, 235, 0.22), transparent);
    filter: blur(20px);
}
[data-theme="dark"] .hero-car { position: relative; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.5)) brightness(0.96); }
@media (max-width: 860px) {
    .hero-car { width: 118%; margin: 0.5rem -18% -1rem 0; }
}

/* Pás „Ako to funguje“: modrý podklad s dielmi a zrezaným okrajom (ako volmet.net) */
#lp-ako {
    --zrez: 26px;
    position: relative;
    isolation: isolate;
    padding-top: calc(clamp(3.5rem, 7vw, 6rem) + var(--zrez));
    padding-bottom: calc(clamp(3.5rem, 7vw, 6rem) + var(--zrez));
    background: var(--bg-card);          /* rohy mimo zrezu = farba susedných sekcií */
    border: 0;
}
#lp-ako::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 44, 64, 0.88) 0%, rgba(9, 44, 64, 0.55) 55%, rgba(9, 44, 64, 0.75) 100%),
        url("/images/band-parts.webp?v=20261127f") center / cover no-repeat,
        #0e4463;
    -webkit-clip-path: polygon(0 0, 48% 0, calc(48% + var(--zrez)) var(--zrez), 100% var(--zrez), 100% calc(100% - var(--zrez)), calc(48% + var(--zrez)) calc(100% - var(--zrez)), 48% 100%, 0 100%);
    clip-path: polygon(0 0, 48% 0, calc(48% + var(--zrez)) var(--zrez), 100% var(--zrez), 100% calc(100% - var(--zrez)), calc(48% + var(--zrez)) calc(100% - var(--zrez)), 48% 100%, 0 100%);
}
[data-theme="dark"] #lp-ako::before {
    background:
        linear-gradient(90deg, rgba(4, 18, 30, 0.92) 0%, rgba(4, 18, 30, 0.7) 55%, rgba(4, 18, 30, 0.85) 100%),
        url("/images/band-parts.webp?v=20261127f") center / cover no-repeat,
        #08263a;
}
#lp-ako h2 { color: #fff; }
#lp-ako .lp-step h3 { color: #fff; }
#lp-ako .lp-step p { color: rgba(255, 255, 255, 0.86); }
#lp-ako .lp-step__num,
[data-theme="dark"] #lp-ako .lp-step__num {
    background: #fff;
    color: #0e4463;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}
@media (max-width: 768px) {
    #lp-ako { --zrez: 16px; padding-top: calc(3rem + 16px); padding-bottom: calc(3rem + 16px); }
}
