/*
 * Shared visual system for every static role zone.
 * It follows the public EasyWay landing page: Inter typography, navy surfaces,
 * primary blue actions, restrained shadows and compact information density.
 */

:root {
    --zone-surface: #ffffff;
    --zone-background: #f5f8fd;
    --zone-border: #e1e8f5;
    --zone-text: #1d2636;
    --zone-muted: #637089;
    --zone-navy: #0e1e44;
    --zone-primary: #3563e9;
    --zone-primary-dark: #2f54c4;
    --zone-soft-blue: #ecf2ff;
    --zone-shadow: 0 10px 24px rgba(22, 42, 81, 0.08);
    --zone-shadow-raised: 0 16px 32px rgba(22, 42, 81, 0.14);
}

html,
body {
    min-height: 100%;
    background: var(--zone-background);
    color: var(--zone-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.app {
    display: grid !important;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 84% -12%, rgba(53, 99, 233, 0.11), transparent 30rem),
        linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
}

/* Control panel */
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(180deg, #0e1e44 0%, #122d62 100%);
    box-shadow: 8px 0 28px rgba(14, 30, 68, 0.14);
    color: #d9e5ff;
    z-index: 20;
}

.sidebar__header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(218, 231, 255, 0.14);
}

.sidebar__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.sidebar__logo-text {
    font-size: 1.22rem;
    letter-spacing: 0.2px;
}

.sidebar__logo-text--primary {
    color: #fff;
}

.sidebar__logo-text--secondary {
    color: #8fb4ff;
}

.sidebar__logo-badge {
    border-radius: 999px;
    padding: 0.26rem 0.52rem;
    background: rgba(143, 180, 255, 0.17);
    color: #dce9ff;
    font-size: 0.68rem;
    font-weight: 700;
}

.sidebar__toggle {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(218, 231, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.25s ease;
}

.sidebar__toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

/*
 * The menu trigger lives inside the light top bar, so it needs the light
 * surface treatment instead of the navy panel one.
 */
.main-header__menu-btn {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--zone-border);
    border-radius: 10px;
    background: #fff;
    color: var(--zone-navy);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.main-header__menu-btn:hover {
    border-color: #b9cbf5;
    background: var(--zone-soft-blue);
    color: var(--zone-primary-dark);
}

.sidebar__nav {
    flex: 1;
    padding: 18px 12px;
}

.sidebar__nav::before {
    content: "KONTROLNÝ PANEL";
    display: block;
    padding: 0 10px 9px;
    color: #9cb6e8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.sidebar__list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar__link {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #c9d7f4;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar__link:hover {
    transform: translateX(2px);
    border-color: rgba(156, 190, 255, 0.18);
    background: rgba(110, 151, 233, 0.18);
    color: #fff;
}

.sidebar__link--active {
    border-color: rgba(143, 180, 255, 0.28);
    background: linear-gradient(135deg, #315dcc 0%, #4077ed 100%);
    box-shadow: 0 7px 16px rgba(4, 15, 43, 0.24);
    color: #fff;
}

.sidebar__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
}

.sidebar__badge {
    min-width: 20px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
}

.sidebar__divider {
    height: 1px;
    margin: 8px 10px;
    background: rgba(218, 231, 255, 0.14);
}

.sidebar__footer {
    padding: 14px;
    border-top: 1px solid rgba(218, 231, 255, 0.14);
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.sidebar__user-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 10px;
    background: #3563e9;
}

.sidebar__user-name,
.sidebar__user-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar__user-name {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.sidebar__user-email {
    margin-top: 2px;
    color: #a9bee7;
    font-size: 0.68rem;
}

.sidebar__logout {
    width: 100%;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(218, 231, 255, 0.18);
    border-radius: 9px;
    background: transparent;
    color: #dce8ff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 921px) {
    .app:has(.sidebar--collapsed) {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .sidebar.sidebar--collapsed .sidebar__header {
        justify-content: center;
        padding: 0 10px;
    }

    .sidebar.sidebar--collapsed .sidebar__logo,
    .sidebar.sidebar--collapsed .sidebar__nav::before,
    .sidebar.sidebar--collapsed .sidebar__label,
    .sidebar.sidebar--collapsed .sidebar__badge,
    .sidebar.sidebar--collapsed .sidebar__user-info,
    .sidebar.sidebar--collapsed .sidebar__logout {
        display: none;
    }

    .sidebar.sidebar--collapsed .sidebar__link {
        justify-content: center;
        padding: 0;
    }

    .sidebar.sidebar--collapsed .sidebar__footer {
        display: grid;
        place-items: center;
    }
}

/*
 * ── Control panel on the right ────────────────────────────────────────────
 * Same panel, mirrored. `grid-column: 1` pins it into the second track while
 * the markup order (content first, panel last) stays semantic for screen
 * readers and for the Signature link that global-modes.js appends.
 */
.app--panel-right {
    grid-template-columns: minmax(0, 1fr) 264px;
}

.app--panel-right .main-content {
    grid-column: 1;
    grid-row: 1;
}

.app--panel-right .sidebar {
    grid-column: 2;
    grid-row: 1;
    box-shadow: -8px 0 28px rgba(14, 30, 68, 0.14);
}

/* The panel toggle points outwards, so it flips with the panel state. */
.app--panel-right .sidebar__toggle::before {
    content: "\25C0"; /* ◀ */
}

.app--panel-right .sidebar__toggle > span {
    display: none;
}

@media (min-width: 921px) {
    .app--panel-right:has(.sidebar--collapsed) {
        grid-template-columns: minmax(0, 1fr) 76px;
    }
}

/* Dim layer behind the panel while it covers the page on small screens. */
.app__backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(10, 20, 44, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.main-content {
    min-width: 0;
    padding: 18px;
    background: transparent;
}

.main-header {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: flex;
    width: min(1140px, 100%);
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 10px 16px;
    border: 1px solid var(--zone-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--zone-shadow);
    backdrop-filter: blur(12px);
}

.main-header__left,
.main-header__right,
.main-header__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header__left {
    gap: 12px;
    min-width: 0;
}

.main-header__right {
    margin-left: auto;
}

.main-header__heading {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.main-header__eyebrow {
    color: #7a8db8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.main-content .main-header__title {
    margin: 0;
    color: var(--zone-navy);
    font-size: clamp(1.05rem, 0.6vw + 0.85rem, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.main-header__welcome,
.main-header__user-name,
.main-header__status {
    color: var(--zone-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Identity chip: avatar + name stacked over role, right aligned. */
.main-header__user-info {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: right;
}

.main-header__user-name {
    overflow: hidden;
    color: var(--zone-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header__user-role {
    color: var(--zone-muted);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.main-header__divider {
    width: 1px;
    height: 26px;
    background: var(--zone-border);
}

.main-header__notification {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--zone-border);
    border-radius: 10px;
    background: #fff;
    color: var(--zone-navy);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.main-header__notification:hover {
    border-color: #b9cbf5;
    background: var(--zone-soft-blue);
}

.main-header__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    padding: 1px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e75163;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.3;
}

.main-header__user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 2px solid #d7e3fb;
    border-radius: 10px;
    object-fit: cover;
}

.dashboard-content,
.page-content {
    width: min(1140px, 100%);
    margin: 0 auto;
}

.dashboard-content {
    display: grid;
    gap: 14px;
}

/*
 * Content typography: compact enough for operational panels while preserving
 * clear hierarchy and comfortable scanning of every body section.
 */
.main-content {
    font-size: 0.875rem;
    line-height: 1.55;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    color: var(--zone-navy);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.main-content h1 {
    margin: 0;
    font-size: clamp(1.2rem, 1vw + 0.9rem, 1.55rem);
}

.main-content h2 {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
}

.main-content h3 {
    margin: 0 0 0.5rem;
    font-size: 0.94rem;
}

.main-content h4,
.main-content h5,
.main-content h6 {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
}

.main-content p {
    max-width: 76ch;
    margin: 0 0 0.75rem;
    color: var(--zone-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.main-content p:last-child {
    margin-bottom: 0;
}

.main-content strong,
.main-content b {
    color: var(--zone-text);
    font-weight: 750;
}

.main-content small,
.main-content .text-muted,
.main-content .text-secondary,
.main-content .form-text,
.main-content .helper-text,
.main-content .description,
.main-content .card-description,
.main-content .item-description {
    color: var(--zone-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

.main-content a:not(.btn) {
    color: var(--zone-primary);
    font-weight: 650;
    text-underline-offset: 3px;
}

.main-content a:not(.btn):hover {
    color: var(--zone-primary-dark);
}

/*
 * Link resets for chrome components. They need the extra `.main-content`
 * prefix because the rule above outranks a single-class component selector.
 */
.main-content .main-header__right a.main-header__user,
.main-content .zone-footer__nav .zone-footer__link,
.main-content .zone-footer__brand .zone-footer__logo {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.main-content .main-header__right a.main-header__user:hover,
.main-content .zone-footer__brand .zone-footer__logo:hover {
    color: inherit;
}

.main-content .zone-footer__brand .zone-footer__logo,
.main-content .zone-footer__brand .zone-footer__logo:hover {
    color: var(--zone-navy);
}

.main-content .zone-footer__nav .zone-footer__link {
    color: var(--zone-muted);
    font-weight: 650;
}

.main-content .zone-footer__nav .zone-footer__link:hover {
    color: var(--zone-primary-dark);
}

.main-content :is(ul, ol) {
    display: grid;
    gap: 0.38rem;
    margin: 0.65rem 0;
    padding-left: 1.25rem;
    color: var(--zone-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.main-content li::marker {
    color: var(--zone-primary);
}

.main-content :is(label, .form-label, .field-label) {
    display: inline-block;
    margin-bottom: 0.36rem;
    color: var(--zone-text);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.main-content :is(input, select, textarea) {
    min-height: 36px;
    border: 1px solid var(--zone-border);
    border-radius: 9px;
    background: #fff;
    color: var(--zone-text);
    font: inherit;
    font-size: 0.8rem;
    line-height: 1.4;
}

.main-content textarea {
    min-height: 92px;
    padding: 0.65rem 0.75rem;
    resize: vertical;
}

.main-content :is(input, select) {
    padding: 0.45rem 0.65rem;
}

.main-content :is(input, select, textarea):focus {
    border-color: #8fadf8;
    outline: 3px solid rgba(53, 99, 233, 0.13);
    outline-offset: 1px;
}

.main-content :is(.form-group, .form-row, .field-group, .settings-group) {
    margin-bottom: 0.9rem;
}

.main-content :is(.info-row, .detail-row, .activity-item, .list-item, .timeline-item) {
    gap: 0.7rem;
    padding-block: 0.7rem;
}

.main-content :is(.info-label, .detail-label, .activity-time, .list-item__meta, .meta-text) {
    color: var(--zone-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.main-content :is(.info-value, .detail-value, .activity-title, .list-item__title) {
    color: var(--zone-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

/* ============================================================
 * PAGE HEADING + DASHBOARD SECTIONS
 * Shared by every zone index / dashboard page.
 * ============================================================ */

.dashboard-section {
    display: grid;
    gap: 12px;
}

.dashboard-section__head {
    display: grid;
    gap: 3px;
}

.main-content .dashboard-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--zone-navy);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.main-content .dashboard-section__description {
    max-width: 78ch;
    margin: 0;
    color: var(--zone-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Small coloured rule that marks a section without shouting. */
.main-content .dashboard-section__title::before {
    content: "";
    width: 3px;
    height: 0.95em;
    flex: 0 0 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--zone-primary) 0%, #7ea2f6 100%);
}

.page-heading {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--zone-border);
    border-radius: var(--zone-radius, 14px);
    background: linear-gradient(135deg, #0e1e44 0%, #1c3f8f 100%);
    box-shadow: var(--zone-shadow-raised);
    color: #dbe6ff;
}

.page-heading__eyebrow {
    color: #9cb6e8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-content .page-heading__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 0.9vw + 0.85rem, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.main-content .page-heading__lead {
    max-width: 74ch;
    margin: 0;
    color: #c3d3f5;
    font-size: 0.82rem;
    line-height: 1.65;
}

/* Tlačidlo ukážkovej simulácie živých dát v štatistikách.
   Hodnoty sa uložia pod email prihláseného používateľa a po
   obnovení stránky sa načítajú späť (easyway-zone-state). */
.stats-simulate {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe6ff;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.stats-simulate:hover,
.stats-simulate:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
    outline: none;
}

.stats-simulate:active {
    transform: translateY(1px);
}

.zone-state--active {
    transition: color 0.2s ease;
}

.stats-grid,
.status-grid,
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.stat-card,
.status-card,
.sa-stat-card,
.dashboard-card,
.form-card,
.table-container,
.chart-card,
.sa-table-wrapper,
.sa-audit-log,
.sa-settings-card {
    border: 1px solid var(--zone-border);
    border-radius: 14px;
    background: var(--zone-surface);
    box-shadow: var(--zone-shadow);
}

.stat-card,
.status-card,
.sa-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.status-card:hover {
    transform: translateY(-2px);
    border-color: #cfdcf6;
    box-shadow: var(--zone-shadow-raised);
}

.stat-card__icon,
.status-card__icon,
.sa-stat-card .stat-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--zone-soft-blue);
    font-size: 1.05rem;
    line-height: 1;
}

.stat-card__content,
.status-card__content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stat-card__value,
.status-card__value,
.sa-stat-card .stat-value {
    color: var(--zone-navy);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.stat-card__label,
.status-card__label,
.sa-stat-card .stat-label {
    color: var(--zone-muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Trend line under a stat value. */
.stat-card__change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.5;
}

.stat-card__change--up {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.stat-card__change--down {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.sa-stat-card .stat-change {
    color: var(--zone-muted);
    font-size: 0.76rem;
}

.table-container,
.chart-card,
.dashboard-card {
    color: var(--zone-muted);
    font-size: 0.76rem;
}

.dashboard-card,
.chart-card,
.form-card,
.table-container,
.sa-table-wrapper,
.sa-audit-log,
.sa-settings-card {
    padding: 16px;
}

.dashboard-card h2,
.dashboard-card h3,
.chart-card h2,
.chart-card h3,
.table-container h2,
.table-container h3,
.form-card h2,
.form-card h3 {
    margin-top: 0;
    color: var(--zone-navy);
    font-size: 1rem;
}

/* ============================================================
 * CARD HEADER / BODY
 * ============================================================ */

.dashboard-card__header,
.chart-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zone-border);
}

.dashboard-card__heading,
.chart-card__heading {
    display: grid;
    flex: 1 1 240px;
    gap: 3px;
    min-width: 0;
}

.main-content .dashboard-card__title,
.main-content .chart-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--zone-navy);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.main-content .dashboard-card__subtitle,
.main-content .chart-card__subtitle {
    margin: 0;
    color: var(--zone-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.dashboard-card__actions,
.chart-card__actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-card__body,
.chart-card__body {
    min-width: 0;
}

/* ============================================================
 * QUICK ACTIONS
 * ============================================================ */

.quick-actions,
.sa-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.quick-action,
.sa-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--zone-border);
    border-radius: 11px;
    background: #fff;
    color: var(--zone-text);
    font: inherit;
    font-size: 0.79rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.quick-action:hover,
.sa-quick-action:hover {
    transform: translateY(-2px);
    border-color: #b9cbf5;
    background: var(--zone-soft-blue);
    box-shadow: 0 8px 18px rgba(39, 74, 153, 0.14);
}

.quick-action__icon,
.sa-quick-action .action-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--zone-soft-blue);
    font-size: 0.95rem;
    line-height: 1;
}

.quick-action__label,
.sa-quick-action .action-label {
    min-width: 0;
}

/* ============================================================
 * ACTIVITY FEED
 * ============================================================ */

.activity-list,
.sa-activity-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-item {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--zone-border);
}

.activity-list > .activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item__time,
.activity-time {
    flex: 0 0 auto;
    color: var(--zone-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.activity-item__text,
.activity-title {
    min-width: 0;
    color: var(--zone-muted);
    font-size: 0.79rem;
    line-height: 1.55;
    text-align: right;
}

.activity-item__text strong,
.activity-item__text b {
    color: var(--zone-text);
    font-weight: 700;
}

.btn,
button.btn {
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 9px;
    font-size: 0.76rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--zone-primary) 0%, var(--zone-primary-dark) 100%);
    box-shadow: 0 8px 18px rgba(53, 99, 233, 0.22);
}

table {
    font-size: 0.76rem;
    line-height: 1.45;
}

th,
td {
    padding: 9px 10px !important;
}

th {
    color: #40506f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    color: var(--zone-muted);
    vertical-align: middle;
}

td strong,
td b {
    color: var(--zone-text);
}

.zone-footer {
    width: min(1140px, 100%);
    margin: auto auto 0;
    padding: 18px 0 4px;
    border-top: 1px solid var(--zone-border);
    background: transparent;
}

.zone-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--zone-muted);
    font-size: 0.74rem;
    line-height: 1.6;
}

.zone-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zone-footer__logo {
    display: inline-flex;
    align-items: baseline;
    color: var(--zone-navy);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.zone-footer__logo-accent {
    color: var(--zone-primary);
}

.zone-footer__tagline {
    overflow: hidden;
    color: var(--zone-muted);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zone-footer__bottom {
    color: var(--zone-muted);
    font-size: 0.72rem;
}

.zone-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.zone-footer__link {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.zone-footer__link:hover {
    border-color: var(--zone-border);
    background: var(--zone-soft-blue);
}

/* ============================================================
 * DEV MODE BADGE (injected by global-modes.js)
 * ============================================================ */

.easyway-dev-indicator {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    padding: 7px 14px;
    border-radius: 999px;
    background: #0e1e44;
    box-shadow: 0 10px 24px rgba(14, 30, 68, 0.28);
    color: #dbe6ff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

@media (max-width: 920px) {
    .app {
        display: block !important;
    }

    .sidebar {
        position: fixed;
        width: 264px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.sidebar--collapsed {
        transform: translateX(0);
    }

    .main-content {
        padding: 14px;
    }

    /* Mirrored drawer: it slides in from the right edge. */
    .app--panel-right .sidebar {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }

    .app--panel-right .sidebar.sidebar--collapsed {
        transform: translateX(100%);
    }

    .app--panel-right .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .app--panel-right .sidebar__toggle::before {
        content: "\25B6"; /* ▶ */
    }

    .app--panel-right .sidebar.sidebar--open .sidebar__toggle::before {
        content: "\25C0"; /* ◀ */
    }

    .app--panel-right .sidebar.sidebar--open ~ .app__backdrop,
    .app__backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    body.panel-open {
        overflow: hidden;
    }
}

@media (max-width: 620px) {
    .main-header {
        top: 6px;
        padding: 9px 11px;
    }

    .main-header__welcome,
    .main-header__user-name,
    .main-header__search,
    .main-header__status {
        display: none;
    }

    .main-header__divider,
    .main-header__user-info {
        display: none;
    }

    .stats-grid,
    .status-grid,
    .sa-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card,
    .status-card,
    .sa-stat-card {
        min-height: 84px;
        padding: 12px;
    }

    .page-heading {
        padding: 16px;
    }

    .quick-actions,
    .sa-quick-actions {
        grid-template-columns: 1fr;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .activity-item__text,
    .activity-title {
        text-align: left;
    }

    .zone-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .stats-grid,
    .status-grid,
    .sa-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * PUBLIC SITE HEADER
 * Presne ten istý vizuál ako verejná landing stránka
 * (public/zones/index.html + assets/css/pages/index.css).
 * Všetky pravidlá sú scopované triedou .site-header, takže
 * sa ostatné zónové stránky nemenia.
 * ============================================================ */

.site-header {
    --site-header-h: 74px;
    --site-border: #e5e9f2;
    --site-text: #1d2636;
    --site-muted: #637089;
    --site-primary: #3563e9;
    --site-primary-2: #2f54c4;

    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease;
}

.site-header--scrolled {
    box-shadow: 0 10px 28px rgba(21, 36, 72, 0.14);
}

.site-nav {
    display: flex;
    width: min(1140px, calc(100% - 2.5rem));
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
}

.site-header .nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--site-text);
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.site-header .nav__logo-text {
    font-size: 1.3rem;
}

.site-header .nav__logo-text--primary {
    color: #0e1e44;
}

.site-header .nav__logo-text--secondary {
    color: var(--site-primary);
}

.site-header .nav__logo-badge {
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #304ecc 0%, #396ff8 100%);
    color: #fff;
    font-size: 0.74rem;
}

.site-header .nav__list {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .nav__link {
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    color: var(--site-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header .nav__link:hover {
    background-color: #ecf2ff;
    color: var(--site-primary);
}

.site-header .nav__item--auth {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* Tlačidlo v hlavičke musí vyzerať ako na landing stránke, preto
   je scopované (0,2,0) a prebije všeobecné .btn zónovej témy. */
.site-header .btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-header .btn--primary {
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-2) 100%);
    box-shadow: 0 10px 24px rgba(53, 99, 233, 0.28);
    color: #fff;
}

.site-header .btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.site-header .nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.site-header .nav__toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: #263045;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header .nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header .nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header .nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
    .site-header .nav__toggle {
        display: inline-flex;
    }

    .site-header .nav__list {
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.9rem;
        border: 1px solid var(--site-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 34px rgba(14, 30, 66, 0.16);
    }

    .site-header .nav__list--open {
        display: flex;
    }

    .site-header .nav__item--auth {
        margin-top: 0.3rem;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
 * LAYOUT POD VEREJNOU HLAVIČKOU
 * Dashboard sa posunie pod hlavičku a bočný panel sa zastaví
 * pod ňou namiesto pod viewport.
 * ============================================================ */

.app--with-site-header {
    --site-header-h: 74px;
    min-height: calc(100vh - var(--site-header-h));
}

.app--with-site-header .sidebar {
    top: var(--site-header-h);
    height: calc(100vh - var(--site-header-h));
}

.app--with-site-header .main-header {
    top: calc(var(--site-header-h) + 12px);
}

/* ============================================================
 * PÄTIČKA – VYcentrovaná
 * Logo s tagline hore, copyright pod ním.
 * ============================================================ */

.zone-footer--centered {
    padding: 22px 0 14px;
    text-align: center;
}

.zone-footer--centered .zone-footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zone-footer--centered .zone-footer__brand {
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.zone-footer--centered .zone-footer__logo {
    font-size: 1.05rem;
}

.zone-footer--centered .zone-footer__tagline {
    overflow: visible;
    font-size: 0.8rem;
    white-space: normal;
}

.zone-footer--centered .zone-footer__bottom {
    font-size: 0.74rem;
}
