/* Auto-generated by bin/build_css.php — do not edit directly.
 * Edit the source files under src/View/Css/ instead, then re-run the script. */

:root {
    --cx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --cx-bg: #f2f4fb;
    --cx-surface: #ffffff;
    --cx-text: #1c2333;
    --cx-muted: #7c8494;
    --cx-border: #e7e9f2;

    --cx-primary: #8b2fef;
    --cx-primary-dark: #6f1cd1;
    --cx-primary-soft: #f2eafd;

    /* Bootstrap's own default link color is blue; override to match the brand purple. */
    --bs-link-color-rgb: 139, 47, 239;
    --bs-link-hover-color-rgb: 111, 28, 209;

    --cx-sidebar-from: #24123f;
    --cx-sidebar-to: #4a1c85;
    --cx-sidebar-text: #c6b7e0;
    --cx-sidebar-text-active: #ffffff;

    --cx-success: #1fa971;
    --cx-warning: #e2a13a;
    --cx-danger: #e0526a;

    --cx-radius: 14px;
    --cx-radius-sm: 10px;
    --cx-shadow: 0 8px 24px rgba(45, 24, 74, 0.06);
    --cx-shadow-lg: 0 20px 45px rgba(45, 24, 74, 0.16);
}

body {
    font-family: var(--cx-font);
    background: var(--cx-bg);
    color: var(--cx-text);
}

a {
    text-decoration: none;
}

.btn {
    border-radius: var(--cx-radius-sm);
}

.btn-primary {
    background: var(--cx-primary);
    border-color: var(--cx-primary);
    /* Bootstrap bakes its blue in as literal per-component custom
       properties (not var(--bs-primary)), so :active/:focus states need
       their own overrides here rather than a single :root variable. */
    --bs-btn-active-bg: var(--cx-primary-dark);
    --bs-btn-active-border-color: var(--cx-primary-dark);
    --bs-btn-focus-shadow-rgb: 139, 47, 239;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--cx-primary-dark);
    border-color: var(--cx-primary-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cx-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 47, 239, 0.15);
}

.page-link {
    color: var(--cx-primary);
}

.page-item.active .page-link {
    background: var(--cx-primary);
    border-color: var(--cx-primary);
}

/* Dropdown items (profile/logout menu etc.) flash Bootstrap's default blue
   on press — :active uses --bs-dropdown-link-active-bg, baked in as literal
   #0d6efd on .dropdown-menu itself. */
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--cx-primary);
}

.cx-shell {
    display: flex;
    min-height: 100vh;
}

.cx-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--cx-sidebar-from), var(--cx-sidebar-to));
    color: var(--cx-sidebar-text);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;

    /* Subtle scrollbar: hidden until you hover the sidebar or scroll it. */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

.cx-sidebar:hover {
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.cx-sidebar::-webkit-scrollbar {
    width: 8px;
}

.cx-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.cx-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cx-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
}

.cx-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

.cx-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 48, 0.45);
    z-index: 15;
}

.cx-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 8px 10px 24px;
    text-decoration: none;
}

.cx-sidebar__brand:hover {
    color: #fff;
    opacity: 0.9;
}

.cx-sidebar__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
}

.cx-sidebar__brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cx-sidebar__footer {
    margin: 12px 10px 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.cx-sidebar__footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.cx-sidebar__footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.cx-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cx-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    background: var(--cx-surface);
    border-bottom: 1px solid var(--cx-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cx-topbar__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    /* A hosszú oldalcím inkább levágódjon, mint hogy kitolja a sávból a
       nyelvválasztót és a profilt. */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cx-topbar__toggle {
    border: none;
    background: none;
    font-size: 1.4rem;
    color: var(--cx-text);
}

.cx-content {
    padding: 28px;
    flex: 1;
}

@media (max-width: 991.98px) {
    .cx-sidebar {
        position: fixed;
        left: -280px;
        z-index: 20;
        transition: left 0.2s ease;
        box-shadow: var(--cx-shadow-lg);
    }

    .cx-sidebar.is-open {
        left: 0;
    }

    .cx-backdrop.is-visible {
        display: block;
    }
}

/* Telefonon a menü ikon + cím + nyelv + profil nem fér ki egy 64px-es sávba,
   ezért a nyelvválasztóból csak a földgömb ikon marad (a kód és a lenyíló
   nyilacska elrejtve). A profil-pill lásd components/user-pill.css. */
@media (max-width: 575.98px) {
    .cx-lang-btn__code {
        display: none;
    }

    .cx-lang-btn.dropdown-toggle::after {
        display: none;
    }
}

/* Global refined scrollbar for the rest of the app (light surfaces). */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 132, 148, 0.35) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(124, 132, 148, 0.28);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 132, 148, 0.5);
    background-clip: content-box;
}

/* The sidebar keeps its own (light-on-dark) rules above. */
.cx-sidebar {
    scrollbar-color: transparent transparent;
}

.cx-card {
    background: var(--cx-surface);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow);
    margin-bottom: 24px;
    /* Clip inner content (tables, pagination footers) to the card's rounded
       corners so the last table row's bottom corners aren't square. */
    overflow: hidden;
}

.cx-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--cx-border);
}

.cx-card__header h2 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0;
}

.cx-card__body {
    padding: 22px;
}

.cx-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cx-surface);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow);
    padding: 18px 20px;
    height: 100%;
    position: relative;
}

/*
 * Az egész kártyát kattinthatóvá tevő, átfedő link. Külön elemként fedi a
 * kártyát, nem pedig körbezárja — így a kártyán belüli saját linkek (pl. a
 * lejárt összeg) nem kerülnek linkbe linkként, ami érvénytelen HTML lenne.
 */
.cx-stat__link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

/* A kártyán belüli valódi linkek az átfedés fölé kerülnek. */
.cx-stat a:not(.cx-stat__link) {
    position: relative;
    z-index: 2;
}

.cx-stat:has(.cx-stat__link) {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cx-stat:has(.cx-stat__link:hover) {
    border-color: var(--cx-primary);
    box-shadow: 0 6px 18px rgba(79, 91, 213, 0.16);
    transform: translateY(-1px);
}

.cx-stat__link:focus-visible {
    outline: 2px solid var(--cx-primary);
    outline-offset: 2px;
}

.cx-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--cx-primary);
    flex-shrink: 0;
}

.cx-stat--warning .cx-stat__icon { background: var(--cx-warning); }
.cx-stat--danger .cx-stat__icon { background: var(--cx-danger); }
.cx-stat--success .cx-stat__icon { background: var(--cx-success); }

.cx-stat__label {
    color: var(--cx-muted);
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.cx-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
}

.cx-timeline-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cx-primary-soft);
    color: var(--cx-primary);
    font-size: 1rem;
}

.cx-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cx-nav__group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(183, 188, 224, 0.55);
    padding: 16px 10px 6px;
}

.cx-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--cx-radius-sm);
    color: var(--cx-sidebar-text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.cx-nav__link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.cx-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--cx-sidebar-text-active);
}

.cx-nav__link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cx-sidebar-text-active);
}

.cx-table thead th {
    color: var(--cx-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    border-bottom-width: 1px;
    padding: 8px 16px;
    white-space: nowrap;
}

.cx-table td {
    padding: 7px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.cx-table tbody tr:hover {
    background: var(--cx-primary-soft);
}

/* Small square thumbnail in list rows */
.cx-row-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cx-primary-soft);
    color: var(--cx-muted);
    border: 1px solid var(--cx-border);
}

.cx-row-thumb--empty {
    font-size: 1rem;
}

/* Product image tiles on the edit form */
.cx-product-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--cx-radius-sm);
    overflow: hidden;
    border: 2px solid var(--cx-border);
    background: var(--cx-primary-soft);
}

.cx-product-thumb.is-primary {
    border-color: var(--cx-primary);
}

.cx-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cx-product-thumb__actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

.cx-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cx-primary-soft);
    border: none;
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    color: var(--cx-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.cx-user-pill__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cx-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Telefonon csak a monogram marad, hogy a topbar tartalma kiférjen; a név a
   lenyíló menüből és az aria-label-ből továbbra is elérhető. */
@media (max-width: 575.98px) {
    .cx-user-pill {
        gap: 0;
        padding: 6px;
    }

    .cx-user-pill__name,
    .cx-user-pill__caret {
        display: none;
    }
}

/* Bemásolható parancs/kódrészlet a felületen (pl. crontab sor). */
.cx-code-block {
    background: #1c2333;
    color: #e7e9f2;
    padding: 10px 12px;
    border-radius: var(--cx-radius-sm);
    overflow-x: auto;
    margin: 0;
}

.cx-code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.78rem;
    white-space: pre;
}

.cx-auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #7f22e6 0%, #24123f 55%, #150c26 100%);
    position: relative;
    overflow: hidden;
}

.cx-auth-decor {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.06), transparent 45%);
}

.cx-auth-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.cx-auth-card {
    background: var(--cx-surface);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow-lg);
    padding: 40px 36px;
    width: 100%;
}

.cx-auth-footer {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.cx-auth-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.cx-auth-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.cx-auth-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.cx-auth-card__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
}

.cx-auth-card__brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cx-auth-card__subtitle {
    color: var(--cx-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* Language switcher in the card's top-right corner. Built on <details> rather
   than a Bootstrap dropdown, because the login page loads Bootstrap's CSS but
   not its JS — this way the menu opens without any JavaScript. */
.cx-auth-lang {
    position: absolute;
    top: 16px;
    right: 16px;
}

.cx-auth-lang__toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-sm);
    color: var(--cx-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.cx-auth-lang__toggle::-webkit-details-marker,
.cx-auth-lang__toggle::marker {
    display: none;
    content: "";
}

.cx-auth-lang__toggle:hover,
.cx-auth-lang[open] .cx-auth-lang__toggle {
    color: var(--cx-primary);
    border-color: var(--cx-primary);
}

.cx-auth-lang__toggle:focus-visible {
    outline: 2px solid var(--cx-primary);
    outline-offset: 2px;
}

.cx-auth-lang__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    min-width: 136px;
    padding: 4px;
    background: var(--cx-surface);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-sm);
    box-shadow: var(--cx-shadow-lg);
}

.cx-auth-lang__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.86rem;
    color: var(--cx-text);
    text-decoration: none;
    white-space: nowrap;
}

.cx-auth-lang__item:hover {
    background: var(--cx-bg);
    color: var(--cx-text);
}

.cx-auth-lang__item.is-active {
    color: var(--cx-primary);
    font-weight: 600;
}

.markdown-body h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cx-border);
}

.markdown-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 14px;
}

.markdown-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 10px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
    margin: 0 0 14px;
    line-height: 1.65;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 22px;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--cx-border);
    margin: 28px 0;
}

.markdown-body code {
    background: var(--cx-primary-soft);
    color: var(--cx-primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.markdown-body pre {
    background: #1c2333;
    color: #e7e9f2;
    padding: 16px 18px;
    border-radius: var(--cx-radius-sm);
    overflow-x: auto;
    margin: 0 0 14px;
}

.markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.85rem;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 0.9rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--cx-border);
    padding: 7px 12px;
    text-align: left;
}

.markdown-body th {
    background: var(--cx-primary-soft);
    font-weight: 600;
}

.markdown-body a {
    color: var(--cx-primary);
}

.markdown-body blockquote {
    border-left: 3px solid var(--cx-border);
    margin: 0 0 14px;
    padding: 4px 16px;
    color: var(--cx-muted);
}
