/* ==========================================================================
   WATT HUB — SDÍLENÉ KOMPONENTNÍ TŘÍDY (wh-*)
   Sdíleno všemi portály přes _content/Energetika.SharedUI/css/wh-components.css
   Pravidlo: žádné hex — vše přes --wh-* / --mud-palette-* → auto light/dark.
   Nové třídy vždy s .mud-theme-dark variantou, pokud nejsou čistě tokenové.
   ========================================================================== */

/* --------------------------------------------------------------------------
   UTILITIES — Bootstrap-kompatibilni helpery pouzivane v markupu napric appkou
   (Bootstrap CSS se nenacita, MudBlazor text-center nedefinuje)
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.cursor-pointer { cursor: pointer; }

/* Pozicovani — MudBlazor 8 tyto utility nedefinuje, markup je ale pouziva.
   Bez nich absolutne pozicovane deti kotvi na vzdaleneho predka a unikaji
   z overflow:hidden klipu (zpusobuje horiz. overflow cele stranky). */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }
.position-static   { position: static !important; }

/* Tailwind/Bootstrap aliasy pouzite v markupu (frameworky se nenacitaji) */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }
.z-10 { z-index: 10 !important; }

/* Elipsa pro dlouhy text v chipu/badge — zabrani vnitrnimu overflowu karet
   na uzkych viewportech (napr. kontext chip v dashboard kartach) */
.wh-ellipsis,
.wh-ellipsis .mud-chip-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.fade-in { animation: whFadeIn 0.3s ease; }
@keyframes whFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   FOCUS — jednotny viditelny focus indicator (klavesnice, WCAG 2.4.7)
   MudBlazor tlacitka/ikony nemaji vlastni focus ring; token --wh-primary
   je theme-aware (light #17658D / dark #7CD0F1).
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[role="tab"]:focus-visible,
[role="menuitem"]:focus-visible,
[tabindex]:focus-visible,
.mud-icon-button:focus-visible,
.mud-nav-link:focus-visible,
.mud-list-item:focus-visible,
.mud-chip:focus-visible,
.mud-tab:focus-visible {
    outline: 2px solid var(--wh-primary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   SHELL — AppBar (cisty panel, hairline, light/dark automaticky z palety)
   -------------------------------------------------------------------------- */
.wh-appbar {
    background: var(--mud-palette-appbar-background) !important;
    color: var(--mud-palette-appbar-text) !important;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.wh-appbar .mud-icon-button {
    color: var(--mud-palette-appbar-text) !important;
}

.wh-appbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

/* Brand lockup v guest appbaru — větrník + wordmark (text reaguje na téma) */
.wh-appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
}

.wh-appbar-brand-mark {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.wh-appbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wh-appbar-brand-text strong {
    color: var(--mud-palette-appbar-text);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.wh-appbar-brand-text small {
    color: var(--mud-palette-text-secondary);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Guest (marketing) top bar actions */
.wh-guest-nav-link {
    color: var(--mud-palette-text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--wh-radius-s);
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.wh-guest-nav-link:hover {
    color: var(--wh-bolt-sky);
    background: rgba(23, 101, 141, 0.08);
}

/* --------------------------------------------------------------------------
   SPECTRAL BUTTONS — funguji na svetlych i tmavych pozadich
   -------------------------------------------------------------------------- */
.wh-btn-bolt {
    background: linear-gradient(135deg, var(--wh-bolt-yellow) 0%, var(--wh-bolt-orange) 100%) !important;
    color: var(--wh-ink) !important;
    font-weight: 800 !important;
    border-radius: var(--wh-radius-pill) !important;
    text-transform: none !important;
    box-shadow: 0 6px 20px rgba(242, 148, 65, 0.35) !important;
    letter-spacing: 0.2px;
}

.wh-btn-bolt .mud-button-label,
.wh-btn-bolt span,
.wh-btn-bolt .mud-icon-root {
    color: var(--wh-ink) !important;
    fill: var(--wh-ink) !important;
}

.wh-btn-bolt:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-glow-energy), 0 10px 28px rgba(242, 148, 65, 0.4) !important;
}

.wh-btn-violet {
    background: linear-gradient(135deg, var(--wh-bolt-violet) 0%, var(--wh-bolt-violet-deep) 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: var(--wh-radius-pill) !important;
    text-transform: none !important;
    box-shadow: 0 6px 20px rgba(91, 45, 142, 0.35) !important;
}

.wh-btn-violet .mud-button-label,
.wh-btn-violet span,
.wh-btn-violet .mud-icon-root {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.wh-btn-violet:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-glow-ai), 0 10px 28px rgba(91, 45, 142, 0.45) !important;
}

.wh-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    font-weight: 700 !important;
    border-radius: var(--wh-radius-pill) !important;
    text-transform: none !important;
    backdrop-filter: blur(6px);
}

.wh-btn-ghost .mud-button-label,
.wh-btn-ghost span,
.wh-btn-ghost .mud-icon-root {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.wh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Ghost pro svetla pozadi */
.wh-btn-ghost-light {
    border: 1.5px solid var(--mud-palette-lines-inputs) !important;
    color: var(--mud-palette-text-primary) !important;
    background: var(--mud-palette-surface) !important;
    font-weight: 700 !important;
    border-radius: var(--wh-radius-pill) !important;
    text-transform: none !important;
}

.wh-btn-ghost-light:hover {
    border-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary) !important;
}

/* --------------------------------------------------------------------------
   SPECTRAL CHIPS / PILLS
   -------------------------------------------------------------------------- */
.wh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--wh-radius-pill);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wh-pill--energy {
    background: rgba(245, 217, 10, 0.14);
    border: 1px solid rgba(245, 217, 10, 0.45);
    color: var(--wh-bolt-yellow);
}

.wh-pill--data {
    background: rgba(79, 180, 229, 0.14);
    border: 1px solid rgba(79, 180, 229, 0.45);
    color: var(--wh-bolt-sky);
}

.wh-pill--save {
    background: rgba(166, 206, 57, 0.14);
    border: 1px solid rgba(166, 206, 57, 0.45);
    color: var(--wh-bolt-lime-deep);
}

.wh-pill--ai {
    background: rgba(139, 74, 158, 0.14);
    border: 1px solid rgba(139, 74, 158, 0.45);
    color: var(--wh-bolt-violet);
}

/* --------------------------------------------------------------------------
   WH-SECTION — vertikalni rytmus pro sekvenci panelu/banneru v jedne obrazovce.
   Zabrani „nalepeni" sekci na sebe: jednotna mezera ze skaly, zadne margin hacky.
   Pouziti: <div class="wh-section"> …panely… </div> (napr. snapshot/oblast,
   kde nelze pouzit MudStack).
   -------------------------------------------------------------------------- */
.wh-section {
    display: flex;
    flex-direction: column;
    gap: var(--wh-space-4);
}

/* --------------------------------------------------------------------------
   WH-PANEL — klidny obsahovy panel se semantickym akcentem.
   Zaklad: neutrálni surface + border + radius-l. Accent varianta prida jemny
   tint a levy pruh v barve modulu (violet=analyza, sky=spotreba, lime=uspora,
   orange=vyroba, amber=energie/upozorneni, red=riziko).
   Pouziti: <MudPaper Class="pa-4 wh-panel wh-panel--violet" Elevation="0">
   -------------------------------------------------------------------------- */
.wh-panel {
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-l);
}

.wh-panel--violet {
    background: color-mix(in srgb, var(--wh-bolt-violet) 4%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-violet);
}

.wh-panel--sky {
    background: color-mix(in srgb, var(--wh-bolt-sky) 5%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-sky);
}

.wh-panel--lime {
    background: color-mix(in srgb, var(--wh-bolt-lime) 7%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-lime);
}

.wh-panel--orange {
    background: color-mix(in srgb, var(--wh-bolt-orange) 5%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-orange);
}

.wh-panel--amber {
    background: color-mix(in srgb, var(--wh-bolt-yellow) 8%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-yellow);
}

.wh-panel--red {
    background: color-mix(in srgb, var(--wh-bolt-red) 4%, var(--wh-surface));
    border-left: 4px solid var(--wh-bolt-red);
}

/* Portalni akcent (--wh-primary): teal partner/admin/klient dle portalu */
.wh-panel--primary {
    background: color-mix(in srgb, var(--wh-primary) 5%, var(--wh-surface));
    border-left: 4px solid var(--wh-primary);
}

/* Dynamicky akcent: barva z --eru-st-accent-rgb (RGB trojice, napr. "139, 74, 158") */
.wh-panel--dyn {
    background: color-mix(in srgb, rgb(var(--eru-st-accent-rgb, 139, 74, 158)) 6%, var(--wh-surface));
    border-left: 4px solid rgb(var(--eru-st-accent-rgb, 139, 74, 158));
}

/* --------------------------------------------------------------------------
   WH-CARD — standardni povrch pro obsahove karty
   -------------------------------------------------------------------------- */
.wh-card {
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-m);
    box-shadow: var(--wh-shadow-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wh-card--hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-2);
}

.mud-theme-dark .wh-card {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .wh-card--hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   WH-EMPTY-STATE — jednotny prazdny stav (nahrazuje admin .empty-state)
   -------------------------------------------------------------------------- */
.wh-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.wh-empty-state-icon {
    font-size: 4rem !important;
    color: var(--wh-text-2);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.wh-empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wh-text);
    margin-bottom: 0.5rem;
}

.wh-empty-state-desc {
    font-size: 1rem;
    color: var(--wh-text-2);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   WH-SKELETON — loading placeholder (nahrazuje admin .skeleton)
   -------------------------------------------------------------------------- */
.wh-skeleton {
    background: linear-gradient(90deg,
        var(--wh-surface-alt) 25%,
        var(--wh-border) 50%,
        var(--wh-surface-alt) 75%);
    background-size: 200% 100%;
    animation: whSkeleton 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes whSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wh-skeleton-text  { height: 1rem; margin-bottom: 0.5rem; }
.wh-skeleton-title { height: 2rem; margin-bottom: 1rem; width: 60%; }
.wh-skeleton-card  { height: 150px; }
.wh-skeleton-table-row { height: 3rem; margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   WH-STAT-CARD — jednotna KPI/metrik karta (WhStatCard)
   -------------------------------------------------------------------------- */
.wh-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-m);
    box-shadow: var(--wh-shadow-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.wh-stat-card--clickable { cursor: pointer; }

.wh-stat-card--clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-2);
}

.wh-stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--wh-radius-m);
    color: #ffffff;
}

.wh-stat-card-icon--primary { background: var(--wh-primary); }
.wh-stat-card-icon--energy  { background: var(--wh-bolt-orange); color: var(--wh-ink); }
.wh-stat-card-icon--data    { background: var(--wh-bolt-sky); }
.wh-stat-card-icon--save    { background: var(--wh-bolt-lime); color: var(--wh-ink); }
.wh-stat-card-icon--ai      { background: var(--wh-bolt-violet); }
.wh-stat-card-icon--warning { background: var(--wh-bolt-yellow); color: var(--wh-ink); }
.wh-stat-card-icon--error   { background: var(--wh-bolt-red); }
.wh-stat-card-icon--neutral { background: var(--wh-text-2); }

/* Filled — cela karta v akcentove barve (hero KPI, dashboard metriky) */
.wh-stat-card--filled { border: none; color: #ffffff; }
.wh-stat-card--filled .wh-stat-card-value,
.wh-stat-card--filled .wh-stat-card-unit,
.wh-stat-card--filled .wh-stat-card-label { color: #ffffff; }
.wh-stat-card--filled .wh-stat-card-label { opacity: 0.75; }
.wh-stat-card--filled .wh-stat-card-icon { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.wh-stat-card--filled .wh-stat-card-trend { color: rgba(255, 255, 255, 0.9); }

.wh-stat-card--filled.wh-stat-card--primary { background: linear-gradient(135deg, var(--wh-primary) 0%, var(--wh-primary) 100%); }
.wh-stat-card--filled.wh-stat-card--save    { background: linear-gradient(135deg, var(--wh-bolt-lime) 0%, var(--wh-bolt-lime-deep) 100%); }
.wh-stat-card--filled.wh-stat-card--ai      { background: linear-gradient(135deg, var(--wh-bolt-violet) 0%, var(--wh-bolt-violet-deep) 100%); }
.wh-stat-card--filled.wh-stat-card--data    { background: linear-gradient(135deg, var(--wh-bolt-sky) 0%, var(--wh-bolt-sky-deep) 100%); }
.wh-stat-card--filled.wh-stat-card--error   { background: var(--wh-bolt-red); }
.wh-stat-card--filled.wh-stat-card--neutral { background: var(--wh-text-2); }

/* Svetle akcenty → tmavy text */
.wh-stat-card--filled.wh-stat-card--energy,
.wh-stat-card--filled.wh-stat-card--warning { color: var(--wh-ink); }
.wh-stat-card--filled.wh-stat-card--energy { background: linear-gradient(135deg, var(--wh-bolt-yellow) 0%, var(--wh-bolt-orange) 100%); }
.wh-stat-card--filled.wh-stat-card--warning { background: var(--wh-bolt-yellow); }
.wh-stat-card--filled.wh-stat-card--energy .wh-stat-card-value,
.wh-stat-card--filled.wh-stat-card--energy .wh-stat-card-unit,
.wh-stat-card--filled.wh-stat-card--energy .wh-stat-card-label,
.wh-stat-card--filled.wh-stat-card--warning .wh-stat-card-value,
.wh-stat-card--filled.wh-stat-card--warning .wh-stat-card-unit,
.wh-stat-card--filled.wh-stat-card--warning .wh-stat-card-label { color: var(--wh-ink); }
.wh-stat-card--filled.wh-stat-card--energy .wh-stat-card-icon,
.wh-stat-card--filled.wh-stat-card--warning .wh-stat-card-icon {
    background: rgba(0, 0, 0, 0.12);
    color: var(--wh-ink);
}

.wh-stat-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wh-stat-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--wh-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wh-stat-card-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wh-text-2);
    margin-left: 0.25rem;
}

.wh-stat-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wh-text-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wh-stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.wh-stat-card-trend--up   { color: var(--wh-bolt-lime-deep); }
.wh-stat-card-trend--down { color: var(--wh-bolt-red); }
.wh-stat-card-trend--flat { color: var(--wh-text-2); }

.mud-theme-dark .wh-stat-card {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .wh-stat-card--clickable:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mud-theme-dark .wh-stat-card-trend--up { color: var(--wh-bolt-lime); }
.mud-theme-dark .wh-stat-card-trend--down { color: #FF6B61; }

/* --------------------------------------------------------------------------
   WH-STATUS — jednotny status badge (nahrazuje admin .status-badge)
   Barvy z palety → funguji light i dark.
   -------------------------------------------------------------------------- */
.wh-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.wh-status--pending  { background: rgba(242, 148, 65, 0.15); color: var(--wh-bolt-orange); }
.wh-status--approved { background: rgba(166, 206, 57, 0.15); color: var(--wh-bolt-lime-deep); }
.wh-status--rejected { background: rgba(230, 51, 41, 0.15);  color: var(--wh-bolt-red); }
.wh-status--active   { background: rgba(79, 180, 229, 0.15); color: var(--wh-bolt-sky); }

.mud-theme-dark .wh-status--pending  { color: #FBBF24; }
.mud-theme-dark .wh-status--approved { color: #A6CE39; }
.mud-theme-dark .wh-status--rejected { color: #FF6B61; }
.mud-theme-dark .wh-status--active   { color: #6FC4EC; }

/* --------------------------------------------------------------------------
   WH-PAGE-HEADER — jednotna halavicka stranky
   -------------------------------------------------------------------------- */
.wh-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.wh-page-header-main { min-width: 0; }

.wh-page-header-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wh-text-2);
    margin-bottom: 0.25rem;
}

.wh-page-header-back {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.wh-page-header-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wh-text);
    margin-bottom: 0.5rem;
}

.wh-page-header-desc {
    font-size: 1rem;
    color: var(--wh-text-2);
}

.wh-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .wh-page-header-title { font-size: 1.5rem; }
    .wh-page-header-actions { width: 100%; }
}

/* Tónované varianty — neutrální povrch, tón nese jen levý akcentový pruh
   a eyebrow. Plný barevný banner nepoužíváme: záhlaví pracovní stránky
   je kompaktní a klidné. */
.wh-page-header[class*="wh-page-header--"] {
    border-radius: var(--wh-radius-l);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--wh-shadow-1);
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-left: 4px solid var(--wh-header-accent, var(--wh-bolt-sky));
}

/* --- akcentové pruhy dle tónu --- */
.wh-page-header--consumer   { --wh-header-accent: var(--wh-bolt-sky); }
.wh-page-header--analysis   { --wh-header-accent: var(--wh-bolt-violet); }
.wh-page-header--municipal  { --wh-header-accent: var(--wh-bolt-sky-deep); }
.wh-page-header--finance    { --wh-header-accent: var(--wh-bolt-yellow-deep); }
.wh-page-header--community  { --wh-header-accent: var(--wh-bolt-lime-deep); }
.wh-page-header--solar      { --wh-header-accent: var(--wh-bolt-orange); }

.wh-page-header[class*="wh-page-header--"] .wh-page-header-eyebrow {
    color: var(--wh-header-accent);
}
.wh-page-header[class*="wh-page-header--"] .wh-page-header-back { color: var(--wh-text); }

/* --------------------------------------------------------------------------
   WH-KPI-ROW — rada KPI karet (WhStatCard), responzivni mrizka
   -------------------------------------------------------------------------- */
.wh-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 600px) {
    .wh-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   WH-ASSET — "elektromer" karta pro OM / plyn / FVE.
   Hlavicka = displej (identita + EAN + stav), telo = metriky, paticka = akce.
   Ton displeje = typ mereni: interval (15min/EDC), tdo (profil), vn (VN/VVN).
   -------------------------------------------------------------------------- */
.wh-asset {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-m);
    box-shadow: var(--wh-shadow-1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wh-asset:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-2);
}

.mud-theme-dark .wh-asset { box-shadow: none; border-color: rgba(255, 255, 255, 0.08); }
.mud-theme-dark .wh-asset:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

/* Displej — barevny ton podle typu mereni */
.wh-asset-display {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wh-border);
    color: #ffffff;
}

.wh-asset--interval .wh-asset-display {
    background: linear-gradient(135deg, #2E7FB8 0%, #1E5B85 100%);
}

.wh-asset--tdo .wh-asset-display {
    background: linear-gradient(135deg, #4A5B6E 0%, #35414F 100%);
}

.wh-asset--vn .wh-asset-display {
    background: linear-gradient(135deg, #7A3D94 0%, #5B2D70 100%);
}

/* solar = vyrobna FVE, oranzova bolt (vyroba) */
.wh-asset--solar .wh-asset-display {
    background: linear-gradient(135deg, var(--wh-bolt-orange) 0%, color-mix(in srgb, var(--wh-bolt-orange) 70%, #000) 100%);
}

.wh-asset--locked .wh-asset-display {
    background: var(--wh-surface-alt);
    color: var(--wh-text-2);
}

.wh-asset--locked {
    border-color: rgba(230, 51, 41, 0.35);
    opacity: 0.85;
}

.wh-asset-display .wh-asset-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.wh-asset-display .wh-asset-sub {
    font-size: 0.8rem;
    opacity: 0.85;
}

.wh-asset-display .wh-asset-ean {
    font-family: "Consolas", "Roboto Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.wh-asset-display .wh-asset-meta {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

.wh-asset-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.wh-asset-actions {
    padding: 0.75rem 1.25rem;
    background: var(--wh-surface-alt);
    border-top: 1px solid var(--wh-border);
}

/* Chips uvnitr displeje — vzdy svetle na barevnem podkladu */
.wh-asset-display .mud-chip { font-weight: 700; }
.wh-asset--interval .wh-asset-display .mud-chip,
.wh-asset--tdo .wh-asset-display .mud-chip,
.wh-asset--vn .wh-asset-display .mud-chip,
.wh-asset--solar .wh-asset-display .mud-chip {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* Legenda k tonom displeje */
.wh-meter-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--wh-text-2);
}

.wh-meter-legend .wh-meter-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}

.wh-meter-legend .wh-meter-dot--interval { background: #2E7FB8; }
.wh-meter-legend .wh-meter-dot--tdo { background: #4A5B6E; }
.wh-meter-legend .wh-meter-dot--vn { background: #7A3D94; }
.wh-meter-legend .wh-meter-dot--locked { background: var(--wh-bolt-red); }

/* --------------------------------------------------------------------------
   WH-DIALOG — jednotna kostra dialogu (komponenta WhDialog)
   Hlavicka: ikonovy chip + titulek + zavrit. Obsah a akce s jednotnym paddingem.
   -------------------------------------------------------------------------- */
.wh-dialog {
    border-radius: 20px;
    overflow: hidden;
}

.wh-dialog .mud-dialog-title {
    padding: 0;
}

.wh-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.wh-dialog-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wh-dialog-icon-color, var(--mud-palette-primary));
    background: color-mix(in srgb, var(--wh-dialog-icon-color, var(--mud-palette-primary)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--wh-dialog-icon-color, var(--mud-palette-primary)) 25%, transparent);
}

.wh-dialog-icon .mud-icon-root {
    font-size: 1.35rem;
}

.wh-dialog-header-text {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.wh-dialog-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--mud-palette-text-primary);
}

.wh-dialog-subtitle {
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
    line-height: 1.45;
}

.wh-dialog-close {
    flex: none;
    margin-top: 2px;
}

/* MudDialog si pri Options.CloseButton=true rendruje vlastni X primo v
   .mud-dialog-title (sourozence TitleContent) — skryjeme ho, zaviraci tlacitko
   resi standardizovane .wh-dialog-close uvnitr wh-dialog-header. */
.wh-dialog .mud-dialog-title > .mud-icon-button {
    display: none;
}

.wh-dialog .mud-dialog-content {
    padding: 20px 24px;
}

.wh-dialog .mud-dialog-actions {
    padding: 12px 24px 20px;
    gap: 8px;
}

/* Dialog bez akci — prazdny kontejner schovat */
.wh-dialog .mud-dialog-actions:not(:has(> *)) {
    display: none;
    padding: 0;
}

.wh-dialog .mud-dialog-actions .mud-button-root {
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .wh-dialog-header { padding: 16px 16px 12px; }
    .wh-dialog .mud-dialog-content { padding: 16px; }
    .wh-dialog .mud-dialog-actions { padding: 8px 16px 16px; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — mobil/tablet vrstva pro sdilene komponenty
   Drawer overlay resi MudBlazor (DrawerVariant.Responsive → temporary <960px).
   -------------------------------------------------------------------------- */

/* Scrollovatelny kontejner pro tabulky na mobilu */
.wh-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .wh-stat-card {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .wh-stat-card-icon {
        width: 40px;
        height: 40px;
    }

    .wh-stat-card-value { font-size: 1.25rem; }

    .wh-empty-state { padding: 2rem 1rem; }
    .wh-empty-state-icon { font-size: 3rem !important; }
    .wh-empty-state-title { font-size: 1.25rem; }
}

/* Dotykove cile min. 44x44 px (WCAG 2.5.5) — hrube pointery (mobil/tablet) */
@media (pointer: coarse) {
    .mud-icon-button {
        min-width: 44px;
        min-height: 44px;
    }

    .wh-guest-nav-link { padding: 10px 14px; }
    .wh-status { padding: 6px 12px; }
}

/* --------------------------------------------------------------------------
   PRISTUPNOST — reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .wh-skeleton,
    .wh-card,
    .wh-stat-card,
    .wh-btn-bolt,
    .wh-btn-violet,
    .wh-btn-ghost,
    .wh-btn-ghost-light {
        animation: none !important;
        transition: none !important;
    }

    .wh-card--hover:hover,
    .wh-btn-bolt:hover,
    .wh-btn-violet:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   AUTH SCENE — prihlaseni / registrace / obnova hesla (vsechny portaly)
   Portalova identita = --wh-primary / --wh-bolt-* tokeny daneho portalu.
   -------------------------------------------------------------------------- */

.wh-auth-scene {
    /* portalova identita — prepisovatelne v portal theme css */
    --wh-auth-glow: rgba(79, 180, 229, 0.30);
    --wh-auth-accent: linear-gradient(90deg, var(--wh-bolt-yellow) 0%, var(--wh-bolt-sky) 50%, var(--wh-bolt-lime) 100%);
    --wh-auth-grid-dot: rgba(23, 38, 60, 0.10);
    --wh-auth-fg: #22354E;

    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(79, 180, 229, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #F6F7FB 0%, #EDF2F8 100%);
}

.mud-theme-dark .wh-auth-scene {
    --wh-auth-grid-dot: rgba(244, 247, 252, 0.14);
    --wh-auth-glow: rgba(79, 180, 229, 0.35);
    --wh-auth-fg: var(--wh-night-text);

    background:
        radial-gradient(120% 90% at 15% 0%, var(--wh-night-3) 0%, transparent 55%),
        radial-gradient(100% 80% at 85% 100%, rgba(46, 134, 193, 0.22) 0%, transparent 50%),
        linear-gradient(160deg, var(--wh-night) 0%, var(--wh-night-2) 55%, var(--wh-night-3) 100%);
}

/* jemna mrizka (hvezdna sestava) nad pozadim */
.wh-auth-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(var(--wh-auth-grid-dot) 1px, transparent 1.4px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
}

.wh-auth-scene > * {
    position: relative;
    z-index: 1;
}

/* spektralni polygon za kartou — stejny motiv jako .wh-lp-network-hub::before
   na landingu (barvy blesku z loga, bez fialove) */
.wh-auth-stage {
    position: relative;
    isolation: isolate;
}

.wh-auth-stage::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    clip-path: polygon(50% 0, 100% 26%, 90% 80%, 48% 100%, 0 70%, 8% 22%);
    background: conic-gradient(from 20deg,
        color-mix(in srgb, var(--wh-bolt-yellow) 15%, transparent),
        color-mix(in srgb, var(--wh-bolt-orange) 10%, transparent),
        color-mix(in srgb, var(--wh-bolt-sky) 12%, transparent),
        color-mix(in srgb, var(--wh-bolt-lime) 12%, transparent),
        color-mix(in srgb, var(--wh-bolt-yellow) 15%, transparent));
}

/* slim topbar */
.wh-auth-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
}

.wh-auth-topbar .wh-guest-nav-link,
.wh-auth-topbar a {
    color: var(--wh-auth-fg, var(--wh-night-text));
    opacity: 0.85;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity .15s ease, background .15s ease;
}

.wh-auth-topbar a:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--wh-auth-fg, #F4F7FC) 8%, transparent);
}

/* prepinac svetly/tmavy rezim v auth topbaru */
.wh-auth-theme-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--wh-auth-fg, #F4F7FC) 16%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--wh-auth-fg, #F4F7FC) 6%, transparent);
    color: var(--wh-auth-fg, var(--wh-night-text));
    cursor: pointer;
    transition: background .15s ease;
}

.wh-auth-theme-toggle:hover {
    background: color-mix(in srgb, var(--wh-auth-fg, #F4F7FC) 12%, transparent);
}

.wh-auth-theme-toggle:focus-visible {
    outline: 2px solid var(--wh-bolt-sky);
    outline-offset: 2px;
}

.wh-auth-topbar a:focus-visible {
    outline: 2px solid var(--wh-bolt-sky);
    outline-offset: 2px;
    opacity: 1;
}

/* logo ve svetle pilulce — barevne logo je citelne na nocni obloze */
.wh-auth-logo-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 20px rgba(13, 10, 26, 0.35);
}

.wh-auth-logo-chip img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* karta — VZDY SVETLA na nocni obloze (design koncept: svetelny panel).
   Prepnuti cele MudBlazor palety na light uvnitr karty, at jsou inputy
   a texty citelne i kdyz ma uzivatel zapnuty dark mode. */
.wh-auth-card {
    /* light paleta pro vse uvnitr karty — wh-* aliasy i mud-* styly */
    --mud-palette-surface: #FFFFFF;
    --mud-palette-background: #FFFFFF;
    --mud-palette-background-grey: #F5F5F5;
    --mud-palette-text-primary: rgba(0, 0, 0, 0.87);
    --mud-palette-text-secondary: rgba(0, 0, 0, 0.60);
    --mud-palette-action-default: rgba(0, 0, 0, 0.54);
    --mud-palette-lines-inputs: rgba(0, 0, 0, 0.42);
    --mud-palette-lines-default: rgba(0, 0, 0, 0.42);
    --mud-palette-divider: rgba(0, 0, 0, 0.12);
    --mud-palette-divider-light: rgba(0, 0, 0, 0.06);
    --mud-palette-action-default-hover: rgba(0, 0, 0, 0.04);

    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    color: rgba(0, 0, 0, 0.87);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 24px 80px -12px var(--wh-auth-glow, rgba(79, 180, 229, 0.30)),
        0 4px 16px rgba(13, 10, 26, 0.25);
    backdrop-filter: blur(12px);
}

/* portalovy akcentovy prouzek na horni hrane karty */
.wh-auth-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--wh-auth-accent, linear-gradient(90deg, var(--wh-bolt-yellow) 0%, var(--wh-bolt-sky) 50%, var(--wh-bolt-lime) 100%));
    pointer-events: none;
}

.mud-theme-dark .wh-auth-card {
    border-color: rgba(244, 247, 252, 0.10);
    box-shadow:
        0 24px 80px -12px var(--wh-auth-glow, rgba(79, 180, 229, 0.35)),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

/* typografie uvnitr karty — karta ma vzdy light paletu */
.wh-auth-title {
    color: var(--mud-palette-text-primary);
    font-weight: 800 !important;
    text-wrap: balance;
}

.wh-auth-subtitle {
    color: var(--mud-palette-text-secondary);
}

/* brand panel registrace (text na nocni obloze) */
.wh-auth-brand {
    color: var(--wh-night-text);
    padding: 32px 40px;
}

.wh-auth-brand .wh-auth-brand-title {
    color: var(--wh-night-text);
    font-weight: 800;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem) !important;
    line-height: 1.2 !important;
}

.wh-auth-brand .wh-auth-brand-sub {
    color: rgba(244, 242, 250, 0.72);
    line-height: 1.65;
}

/* lime check chip — benefit bod */
.wh-auth-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(244, 242, 250, 0.06);
    border: 1px solid rgba(244, 242, 250, 0.10);
    color: var(--wh-night-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.wh-auth-chip .mud-icon-root {
    color: var(--wh-bolt-lime);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* zaoblene inputy */
.wh-auth-input .mud-input-outlined-border {
    border-radius: 14px;
}

/* Autofill prohlizece: Chrome/Firefox prelejou pole svou modrou/zlutou
   vyplni, ktera boji s tematem. background-color nelze primo prepsat,
   proto standardni trik: velky inset box-shadow + text-fill-color.
   Uvnitr .wh-auth-card paleta prepsana na svetlou -> pole zustane bile. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill,
input:autofill,
select:autofill,
textarea:autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary) !important;
    caret-color: var(--mud-palette-text-primary) !important;
    transition: background-color 600000s 0s;
}

/* pilot/motto pilulka pod titulkem auth karty */
.wh-auth-pilot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    border-radius: 999px;
    background: rgba(79, 180, 229, 0.10);
    border: 1px solid rgba(79, 180, 229, 0.28);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--wh-bolt-sky-deep);
}

.wh-auth-pilot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wh-bolt-lime-deep);
    flex-shrink: 0;
}

/* autofill fix — dark-aware (nahrazuje duplikovane <style> bloky) */
.wh-auth-scene input:-webkit-autofill,
.wh-auth-scene input:-webkit-autofill:hover,
.wh-auth-scene input:-webkit-autofill:focus,
.wh-auth-scene input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--wh-surface) inset !important;
    box-shadow: 0 0 0 30px var(--wh-surface) inset !important;
    -webkit-text-fill-color: var(--wh-text) !important;
}

.wh-auth-scene .mud-input-root input::selection {
    background: transparent;
}

@media (max-width: 959.98px) {
    .wh-auth-topbar { padding: 12px 16px; }
    .wh-auth-brand { padding: 20px 24px; }
}

/* --------------------------------------------------------------------------
   UPLOAD — WhUploadZone / WhFileQueue / WhBusySnack
   Jednotna zpetna vazba pro nahravani souboru napric portaly.
   Jen tokeny (--wh-* / --mud-palette-*) — light/dark automaticky.
   -------------------------------------------------------------------------- */

/* -- Drop zona -- */
.wh-upload-zone {
    border: 2px dashed var(--mud-palette-divider);
    border-radius: 16px;
    background: var(--wh-surface);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.wh-upload-zone:hover {
    border-color: var(--wh-bolt-sky-deep);
    background: color-mix(in srgb, var(--wh-bolt-sky) 6%, var(--wh-surface));
}
.wh-upload-zone.drag-over {
    border-color: var(--wh-bolt-sky-deep);
    border-style: solid;
    background: color-mix(in srgb, var(--wh-bolt-sky) 14%, var(--wh-surface));
    transform: scale(1.01);
}
.wh-upload-zone--disabled {
    opacity: .55;
    pointer-events: none;
}
.wh-upload-zone .wh-upload-zone-input {
    display: none;
}
.wh-upload-zone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    cursor: pointer;
    text-align: center;
}
.wh-upload-zone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--wh-bolt-sky) 14%, transparent);
    color: var(--wh-bolt-sky-deep);
    transition: transform .2s ease;
}
.wh-upload-zone.drag-over .wh-upload-zone-icon {
    transform: scale(1.12);
}
.wh-upload-zone-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--wh-text);
}
.wh-upload-zone-subtitle {
    font-size: .875rem;
    color: var(--wh-text-2);
}
.wh-upload-zone-browse {
    margin-top: 10px;
}
.wh-upload-zone-hint {
    padding: 0 12px 12px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-align: center;
    color: var(--wh-text-2);
}

/* -- Fronta souboru -- */
.wh-file-queue-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}
.wh-file-queue-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--wh-text);
}
.wh-file-queue-list {
    overflow-y: auto;
    padding-right: 4px;
}
.wh-file-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-divider);
    background: var(--wh-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.wh-file-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}
.wh-file-item--error {
    border-left: 3px solid var(--wh-bolt-red);
}
.wh-file-item--success {
    border-left: 3px solid var(--wh-bolt-lime-deep);
}
.wh-file-item-icon {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--wh-surface-alt);
    color: var(--wh-text-2);
}
.wh-file-item-icon--uploading { background: color-mix(in srgb, var(--wh-bolt-sky) 14%, transparent); color: var(--wh-bolt-sky-deep); }
.wh-file-item-icon--analyzed  { background: color-mix(in srgb, var(--wh-bolt-yellow) 20%, transparent); color: var(--wh-bolt-yellow-deep); }
.wh-file-item-icon--success   { background: color-mix(in srgb, var(--wh-bolt-lime) 18%, transparent); color: var(--wh-bolt-lime-deep); }
.wh-file-item-icon--error     { background: color-mix(in srgb, var(--wh-bolt-red) 14%, transparent); color: var(--wh-bolt-red); }
.wh-file-item-body {
    flex: 1;
    min-width: 0;
}
.wh-file-item-name {
    font-weight: 600;
    font-size: .875rem;
    color: var(--wh-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wh-file-item-meta {
    font-size: .75rem;
    color: var(--wh-text-2);
}
.wh-file-item-rows {
    margin-left: 4px;
    font-weight: 700;
    color: var(--wh-bolt-lime-deep);
}
.wh-file-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* -- Busy snackbar (persistentni stav operace) -- */
.wh-busy-snack {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.wh-busy-snack .wh-busy-snack-spinner {
    flex-shrink: 0;
}
.wh-busy-snack-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .wh-upload-zone,
    .wh-upload-zone-icon,
    .wh-file-item {
        transition: none;
    }
    .wh-upload-zone.drag-over {
        transform: none;
    }
}
