:root {
    /* Világos, enyhén kékes paletta */
    --bg-body: #e5f0ff;
    --bg-main: #edf2ff;
    --bg-card: #ffffff;
    --bg-card-soft: #f4f7ff;
    --accent: #228cc574;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --border-soft: rgba(148, 163, 184, 0.5);
    --text-main: #111827;
    --text-muted: #6b7280;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #eff3ff 0, #e5f0ff 45%, #dde7ff 100%);
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------- NAVBAR FELÜL ---------------- */

.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.95),
            rgba(239, 246, 255, 0.98)
    );
    border-bottom: 1px solid var(--border-soft);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 35%;

    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.app-nav-title {
    font-weight: 600;
    white-space: nowrap; /* Nem tör meg */
    font-size: 1.1rem; /* Kisebb betűméret */

}

.app-nav-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap; /* Nem tör meg */
}

.app-user {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------------- FŐ ELRENDEZÉS ---------------- */
/* Navbar alatt: bal oldalt menü, mellette tartalom */

.app-shell {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    padding-top: 56px; /* hely a fix navbar-nak */
}

/* ---------------- FŐ TARTALOM ---------------- */

.app-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 48px; /* opcionális extra felső sáv a tartalom felett */
}

.app-main {
    flex: 1;
    display: flex;
    /*justify-content: right;*/
    margin-left:5vw;
    margin-right:1vw;
    /*padding: 1.8rem 1.5rem 2rem;*/
}

.app-container {
    width: 100%;
    /*max-width: 94vw;*/
}

/* Glass card */

.glass-card {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(148, 163, 184, 0.22);
    padding: 1.25rem 1.1rem 1.6rem;
}

/* Oldalcím, akciók */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.page-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    width: 144px;
    height: 144px;
    flex-shrink: 0;
}

.page-logo-shell > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.page-logo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(148, 163, 184, 0.12));
    color: var(--accent);
    font-size: 4.8rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.page-logo-default svg,
.page-logo-shell svg,
.page-logo-shell img {
    width: 4.8rem;
    height: 4.8rem;
    max-width: 100%;
    max-height: 100%;
}

.page-logo-default .bi,
.page-logo-shell .bi {
    font-size: 4.8rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Üzenetek */

.flash-message {
    border-radius: 0.9rem;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.due-state-cell {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-width: 170px;
}

.due-state-cell__headline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.due-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.7rem 0.28rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.due-state-pill:hover,
.due-state-pill:focus {
    background: rgba(239, 246, 255, 0.98);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    text-decoration: none;
}

.due-state-pill__icon {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.due-state-cell__icon {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.due-state-cell__type {
    font-size: 0.92rem;
}

.due-state-cell__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.glass-card .irat-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.glass-card .irat-table-responsive .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
}

.glass-card .irat-table-responsive .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.glass-card .irat-table-responsive table.dataTable {
    width: 100% !important;
}

.glass-card .irat-table-responsive #iratTable td.text-nowrap,
.glass-card .irat-table-responsive #iratTable th:last-child,
.glass-card .irat-table-responsive #iratTable td:last-child {
    white-space: nowrap;
}

#iratTable {
    table-layout: fixed;
    width: 100% !important;
}

#iratTable th, #iratTable td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ---------------- FORM ELEMEK ---------------- */

.form-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    background-color: var(--bg-card-soft);
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-main);
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--accent-soft), 0 0 0 3px rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
    background-color: #ffffff;
}

/* Kötelező mezők: Bootstrap warning színű keret */
.form-control[required],
.form-select[required],
select.form-control[required],
textarea.form-control[required],
input.form-control[required] {
    border-color: #ffc107;
}

.form-control[required]:focus,
.form-select[required]:focus,
select.form-control[required]:focus,
textarea.form-control[required]:focus,
input.form-control[required]:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35), 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.invalid-feedback {
    display: block;
    font-size: 0.8rem;
}

.auth-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: min(68vh, 720px);
    padding: 1rem 0;
}

.login-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 255, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.login-panel__intro {
    margin-bottom: 1.5rem;
}

.login-panel__intro--centered {
    text-align: center;
}

.login-panel--centered {
    max-width: 560px;
}

.login-logo-wrap {
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    padding: 0.8rem;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(79, 70, 229, 0.22));
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.login-logo {
    width: 100%;
    max-width: 72px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.2));
}

.login-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-panel__title {
    margin: 0.9rem 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
}

.login-panel__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form-row {
    display: grid;
    gap: 0.42rem;
}

.login-form-label {
    margin-bottom: 0;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="search"],
.login-form input[type="tel"],
.login-form input[type="url"],
.login-form input[type="number"] {
    width: 100%;
    min-height: 46px;
    background-color: var(--bg-card-soft);
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-main);
    padding: 0.72rem 0.9rem;
    font-size: 0.96rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="search"]:focus,
.login-form input[type="tel"]:focus,
.login-form input[type="url"]:focus,
.login-form input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 1px var(--accent-soft), 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-form-help {
    margin-top: -0.1rem;
}

.login-form-errors {
    color: #b91c1c;
}

.login-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.15rem;
}

.login-link {
    color: #1d4ed8;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.login-link:hover,
.login-link:focus {
    color: #1e40af;
    text-decoration: underline;
}

.login-alert {
    margin-bottom: 0;
    border-radius: 0.9rem;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
    padding-top: 0.6rem;
}

.login-actions--centered {
    justify-content: center;
}

.login-submit {
    min-width: 180px;
    min-height: 46px;
}

/* Új irat form – rács kiegyenesítése */

.row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Label + „+” gomb egy sorban, de minden mezőre ugyanaz */
.form-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.form-label-inline span {
    flex: 1;
}

/* Kis plusz gomb */
.form-addon-btn {
    padding-inline: 0.5rem;
    padding-block: 0.1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ---------------- GOMBOK ---------------- */

.btn-primary {
    border-radius: 999px;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    border: none;
    font-weight: 500;
    padding-inline: 1.4rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-outline-light {
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.9);
    color: var(--text-main);
    background-color: #ffffff;
}

.btn-outline-light:hover {
    background-color: var(--accent-soft);
    border-color: var(--accent);
}

/* DataTables gombok (Excel, PDF, Print) */

.dt-buttons .btn {
    background-color: #ffffff;
    border-color: rgba(148, 163, 184, 0.9);
    color: #111827;
}

.dt-buttons .btn:hover {
    background-color: #e5edff;
    border-color: #2563eb;
    color: #1d4ed8;
}

/* ---------------- TÁBLÁZATOK ---------------- */

.table {
    font-size: 0.9rem;
}

.table thead {
    background-color: #eef2ff;
}

/* ---------------- TABOK (LISTANÉZETEK) ---------------- */

.nav-tabs {
    border-bottom-color: rgba(148, 163, 184, 0.45);
}

.nav-tabs .nav-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid transparent;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
    transition: all 0.16s ease;
}

.nav-tabs .nav-link:hover {
    color: #1d4ed8;
    background-color: #e8efff;
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #0f172a;
    background-color: #ffffff;
    border-color: rgba(148, 163, 184, 0.55) rgba(148, 163, 184, 0.55) #ffffff;
    font-weight: 600;
}

/* ---------------- LÁBLÉC ---------------- */

.app-footer {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background-color: rgba(249, 250, 251, 0.9);
}

/* ---------------- MOBIL NÉZET ---------------- */

@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        /*width: 100%;*/
        /*min-width: 100%;*/
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }

    .app-main {
        padding: 1.2rem 0.9rem 1.5rem;
    }


    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-shell {
        min-height: auto;
        align-items: stretch;
    }

    .login-panel {
        padding: 1.15rem;
    }

    .login-logo-wrap {
        width: 90px;
        height: 90px;
        border-radius: 28px;
    }

    .login-meta {
        justify-content: center;
    }

    .login-actions {
        justify-content: stretch;
    }

    .login-submit {
        width: 100%;
    }
}

/* Akta / Irat típus / Prioritás sor elrendezése */

.field-with-add {
    display: flex;
    align-items: flex-end; /* label felül, input + gomb egy vonalban alul */
    gap: 0.35rem;
}

.field-main {
    flex: 1; /* a mező kitölti a rendelkezésre álló szélességet */
    display: flex;
    flex-direction: column; /* label felül, input alatta */
}

/* Kis plusz gomb, szorosan az input mellett */
.field-add-btn {
    padding-inline: 0.5rem;
    padding-block: 0.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Mobilon a + gomb lejjebb is mehet, hogy ne legyen túl szűk */
@media (max-width: 768px) {
    .field-with-add {
        align-items: stretch;
    }
}

/* ---------------- OLDALSÓ SÁV ---------------- */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background-color: #20232a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    transition: width 0.2s ease;
    z-index: 1000;
}

.sidebar-collapsed {
    width: 60px;
}

/* Fejléc */

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2c313c;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.sidebar-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Navigáció */

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

/* Alap linkek – FONTOS: itt marad a flex, de az ikonblokkot külön kezeljük */

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0;
    cursor: pointer;
    background: none;
}

.sidebar-link:hover {
    background-color: cornflowerblue;
    color: #ffffff;
}

.sidebar-link.active {
    background-color: #3b82f6;
    color: #ffffff;
}


/* Ikon */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
    flex-shrink: 0;
    text-align: center;
}

/* Ikon mindig ugyanoda kerül */
.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-width: 2rem;
    margin-right: 0.35rem;
    flex-shrink: 0;
    text-align: center;
}

.sidebar-icon img,
.sidebar-icon svg,
.sidebar-icon-wrap img,
.sidebar-icon-wrap svg {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 auto;
}

/* Szöveg */

/* Szöveg – ne toljuk feleslegesen jobbra, mert az ikon-wrap már adja a helyet */
.sidebar-text {
    white-space: nowrap;
    margin-left: 0; /* EDDIG 0.35rem volt – vedd vissza 0-ra */
}

/* Összecsukott állapotban rejtsük a szöveget, csak ikon maradjon */

.sidebar.sidebar-collapsed .sidebar-text,
.sidebar.sidebar-collapsed .sidebar-title {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-caret {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-item.has-submenu {
    position: relative;
}

.sidebar.sidebar-collapsed .sidebar-item.has-submenu .sidebar-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    min-width: 220px;
    margin: 0;
    padding: 0.25rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background-color: #2b3039;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    max-height: min(26rem, calc(100vh - 2rem));
    overflow-y: auto;
    overflow-x: visible;
    transform: translateX(6px);
    pointer-events: none;
}

.sidebar.sidebar-collapsed .sidebar-item.has-submenu.open .sidebar-submenu,
.sidebar.sidebar-collapsed .sidebar-item.has-submenu:hover > .sidebar-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.sidebar.sidebar-collapsed .sidebar-submenu .sidebar-link {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    justify-content: flex-start;
    border-radius: 0;
}

.sidebar.sidebar-collapsed .sidebar-submenu .sidebar-text {
    display: inline-block !important;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

/* Lenyíló menü */

.sidebar-item {
    display: flex;
    flex-direction: column;
}

/* Gombként működő „link” a főmenüben */

.sidebar-toggle-btn {
    width: 100%;
    background: none;
    border: none;
    /*    padding: 0;*/
    text-align: left;
}

/* Almenü linkek */

/*.sidebar-submenu .sidebar-link {*/
/*  padding-left: 2.5rem;*/
/*}*/

.sidebar-submenu .sidebar-link {
    width: 100%;
    padding: 0.5rem 0.6rem;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    border-radius: 0.3rem;
}

.sidebar-submenu .sidebar-link .sidebar-icon {
    width: 2rem;
    min-width: 2rem;
    margin: 0 0.4rem 0 0;
    flex-shrink: 0;
    justify-content: center;
}

.sidebar-submenu .sidebar-link .sidebar-text {
    margin-left: 0;
}

.submenu-link {
    font-size: 0.9rem;
}

/* Alcímek az almenüben (nem kattintható) */

.sidebar-subsection-label {
    /*  padding: 0.25rem 2.5rem 0.25rem 2.5rem;*/
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: transparent;
}

/* Caret – ikon mellett, az icon-wrap-en belül */
.sidebar-caret {
    display: inline-block;
    font-size: 0.7rem;
}

.sidebar-submenu .sidebar-caret,
.sidebar-submenu .sidebar-text::after {
    display: none !important;
    content: none !important;
}

.sidebar-item.has-submenu > .sidebar-link .sidebar-caret {
    display: inline-block;
}

/* Submenü – ugyanabban az oszlopban, világos háttérrel, dobozban */
.sidebar-item.has-submenu {
    position: relative; /* anchor a submenu-nek, de block flow-t használunk */
}


.sidebar-item.has-submenu .sidebar-submenu {
    display: flex;
    flex-direction: column;
    margin-left: 0; /* maradjon a főmenü szövegével egy oszlopban */
    background-color: #2b3039; /* világosabb sötét szürke */
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0.6rem 0 0.6rem;
    padding: 0 0.2rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-2px);
    pointer-events: none;
    transition: max-height 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 500ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 500ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 500ms ease;
}

/* Nyitva: normál block flow – lefelé tol mindent */
.sidebar-item.has-submenu.open .sidebar-submenu {
    border-color: #374151;
    margin: 0.15rem 0.6rem 0.35rem 0.6rem;
    padding: 0.2rem;
    max-height: min(26rem, calc(100vh - 4.5rem));
    overflow-y: auto;
    overflow-x: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sidebar-submenu .submenu-link {
    padding-left: 0;
    padding-right: 0.6rem;
    border-radius: 0;
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
}

.sidebar-submenu .submenu-link .sidebar-text {
    margin-left: 0;
}


/* Lábléc / felhasználó blokk */

.sidebar-profile-actions {
    border-top: 1px solid #2c313c;
    padding: 0.35rem 0;
}

.sidebar-profile-actions .sidebar-link {
    margin: 0 0.6rem;
    border-radius: 0.3rem;
}

.sidebar-footer {
    border-top: 1px solid #2c313c;
    padding: 0.5rem 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.sidebar-user-icon {
    margin-right: 0.5rem;
}


.sidebar-link,
.sidebar-toggle-btn {
    display: flex;
    align-items: center; /* ikon + szöveg függőlegesen középen */
    gap: 0.5rem; /* ikon és szöveg közti távolság */
}

.sidebar-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
}

/* Magát az ikont is kezelheted blokként*/
.sidebar-icon {
    display: inline-block;
    font-size: 1.2rem;
}

.glass-card-hover {
    transition: all 0.3s ease;
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.search-form input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
}

.help-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.help-content h2, .help-content h3 {
    color: var(--accent);
    margin-top: 2rem;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 24px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.2) 0%, transparent 50%);
    animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-20px) scale(1.02);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-icon svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.8));
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #1645a3, var(--accent));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(34, 140, 197, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.95rem 2.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.hero-image img {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }
}

.btn-glossy-steel {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    overflow: hidden;

    color: #eef4ff;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid rgba(160, 190, 230, 0.35);
    border-radius: .85rem;

    background: linear-gradient(180deg,
    #6f89a8 0%,
    #56708f 16%,
    #42586f 48%,
    #a6c2d5 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(17, 25, 35, 0.35),
    0 10px 24px rgba(36, 58, 87, 0.28),
    0 3px 8px rgba(10, 18, 28, 0.22);

    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition: transform .18s ease,
    box-shadow .22s ease,
    filter .22s ease,
    border-color .22s ease,
    background .22s ease;
}

/* Felső glossy réteg */
.btn-glossy-steel::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 52%;
    border-radius: .78rem .78rem 1rem 1rem;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.30) 0%,
            rgba(255, 255, 255, 0.14) 42%,
            rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
}

/* Átfutó csillanás */
.btn-glossy-steel::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -42%;
    width: 28%;
    height: 160%;
    transform: rotate(20deg);
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.06) 35%,
            rgba(210, 235, 255, 0.70) 50%,
            rgba(255, 255, 255, 0.10) 65%,
            rgba(255, 255, 255, 0) 100%
    );
    opacity: .8;
    pointer-events: none;
    transition: left .65s ease, opacity .2s ease;
}

.btn-glossy-steel:hover,
.btn-glossy-steel:focus {
    color: #f7fbff;
    border-color: rgba(176, 214, 255, 0.55);
    background: linear-gradient(180deg,
    #7f9bbd 0%,
    #6281a6 18%,
    #4a657e 52%,
    #4e7aa3 100%);
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(17, 25, 35, 0.28),
    0 14px 28px rgba(46, 79, 117, 0.34),
    0 0 0 1px rgba(151, 203, 255, 0.08);
}

.btn-glossy-steel:hover::after,
.btn-glossy-steel:focus::after {
    left: 118%;
}

.btn-glossy-steel:active {
    transform: translateY(1px) scale(.985);
    filter: brightness(.98);
    box-shadow: inset 0 2px 6px rgba(11, 20, 31, 0.30),
    0 5px 12px rgba(36, 58, 87, 0.22);
}

.btn-glossy-steel:disabled,
.btn-glossy-steel.disabled {
    opacity: .6;
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(.15);
}

.btn-glossy-warning {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    overflow: hidden;

    color: #3b2500;
    font-weight: 700;
    border: 1px solid #c98a00;
    border-radius: .75rem;

    background: linear-gradient(180deg, #ffe98a 0%, #ffd24d 38%, #ffbc1f 62%, #f39a00 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -2px 4px rgba(163, 87, 0, .28),
    0 6px 14px rgba(255, 179, 0, .28),
    0 2px 4px rgba(0, 0, 0, .12);

    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

/* Felső csillogó réteg */
.btn-glossy-warning::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 48%;
    border-radius: .7rem .7rem 1rem 1rem;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .75) 0%,
            rgba(255, 255, 255, .32) 45%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* Mozgó fénycsík */
.btn-glossy-warning::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 30%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .18) 40%,
            rgba(255, 255, 255, .75) 50%,
            rgba(255, 255, 255, .18) 60%,
            rgba(255, 255, 255, 0) 100%
    );
    opacity: .65;
    transition: left .55s ease, opacity .25s ease;
    pointer-events: none;
}

.btn-glossy-warning:hover,
.btn-glossy-warning:focus {
    color: #2f1d00;
    border-color: #b77700;
    transform: translateY(-1px);
    filter: saturate(1.06) brightness(1.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 4px rgba(163, 87, 0, .24),
    0 10px 22px rgba(255, 179, 0, .34),
    0 3px 8px rgba(0, 0, 0, .14);
}

.btn-glossy-warning:hover::after,
.btn-glossy-warning:focus::after {
    left: 115%;
}

.btn-glossy-warning:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 5px rgba(163, 87, 0, .28),
    0 3px 8px rgba(255, 179, 0, .2);
}

.btn-glossy-warning:disabled,
.btn-glossy-warning.disabled {
    opacity: .65;
    filter: grayscale(.15);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-glossy-danger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    overflow: hidden;

    color: #fff5f5;
    font-weight: 700;
    border: 1px solid #b91c1c;
    border-radius: .75rem;

    background: linear-gradient(180deg, #fca5a5 0%, #f87171 36%, #dc2626 65%, #991b1b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 4px rgba(127, 29, 29, .28),
    0 8px 18px rgba(220, 38, 38, .26),
    0 2px 4px rgba(0, 0, 0, .12);

    text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    transition: transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

/* Felső csillogó réteg */
.btn-glossy-danger::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 48%;
    border-radius: .7rem .7rem 1rem 1rem;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .72) 0%,
            rgba(255, 255, 255, .28) 45%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* Mozgó fénycsík */
.btn-glossy-danger::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 30%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .18) 40%,
            rgba(255, 255, 255, .75) 50%,
            rgba(255, 255, 255, .18) 60%,
            rgba(255, 255, 255, 0) 100%
    );
    opacity: .65;
    transition: left .55s ease, opacity .25s ease;
    pointer-events: none;
}

.btn-glossy-danger:hover,
.btn-glossy-danger:focus {
    color: #fff;
    border-color: #991b1b;
    transform: translateY(-1px);
    filter: saturate(1.06) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72),
    inset 0 -2px 4px rgba(127, 29, 29, .22),
    0 10px 22px rgba(220, 38, 38, .3),
    0 3px 8px rgba(0, 0, 0, .12);
}

.btn-glossy-danger:hover::after,
.btn-glossy-danger:focus::after {
    left: 115%;
}

.btn-glossy-danger:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 5px rgba(127, 29, 29, .28),
    0 3px 8px rgba(220, 38, 38, .2);
}

.btn-glossy-danger:disabled,
.btn-glossy-danger.disabled {
    opacity: .65;
    filter: grayscale(.15);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-glossy-success {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    overflow: hidden;

    color: #f0fdf4;
    font-weight: 700;
    border: 1px solid #15803d;
    border-radius: .75rem;

    background: linear-gradient(180deg, #86efac 0%, #4ade80 36%, #22c55e 65%, #166534 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 4px rgba(20, 83, 45, .28),
    0 8px 18px rgba(34, 197, 94, .25),
    0 2px 4px rgba(0, 0, 0, .12);

    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    transition: transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

/* Felső csillogó réteg */
.btn-glossy-success::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 48%;
    border-radius: .7rem .7rem 1rem 1rem;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .72) 0%,
            rgba(255, 255, 255, .28) 45%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* Mozgó fénycsík */
.btn-glossy-success::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 30%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .18) 40%,
            rgba(255, 255, 255, .75) 50%,
            rgba(255, 255, 255, .18) 60%,
            rgba(255, 255, 255, 0) 100%
    );
    opacity: .65;
    transition: left .55s ease, opacity .25s ease;
    pointer-events: none;
}

.btn-glossy-success:hover,
.btn-glossy-success:focus {
    color: #fff;
    border-color: #166534;
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 4px rgba(20, 83, 45, .22),
    0 10px 22px rgba(34, 197, 94, .3),
    0 3px 8px rgba(0, 0, 0, .12);
}

.btn-glossy-success:hover::after,
.btn-glossy-success:focus::after {
    left: 115%;
}

.btn-glossy-success:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 5px rgba(20, 83, 45, .28),
    0 3px 8px rgba(34, 197, 94, .2);
}

.btn-glossy-success:disabled,
.btn-glossy-success.disabled {
    opacity: .65;
    filter: grayscale(.15);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-glossy-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    overflow: hidden;

    color: #eff6ff;
    font-weight: 700;
    border: 1px solid #2563eb;
    border-radius: .75rem;

    background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 36%, #3b82f6 65%, #1d4ed8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 4px rgba(30, 64, 175, .28),
    0 8px 18px rgba(59, 130, 246, .26),
    0 2px 4px rgba(0, 0, 0, .12);

    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    transition: transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

/* Felső csillogó réteg */
.btn-glossy-info::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 48%;
    border-radius: .7rem .7rem 1rem 1rem;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .72) 0%,
            rgba(255, 255, 255, .28) 45%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* Mozgó fénycsík */
.btn-glossy-info::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 30%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .18) 40%,
            rgba(255, 255, 255, .75) 50%,
            rgba(255, 255, 255, .18) 60%,
            rgba(255, 255, 255, 0) 100%
    );
    opacity: .65;
    transition: left .55s ease, opacity .25s ease;
    pointer-events: none;
}

.btn-glossy-info:hover,
.btn-glossy-info:focus {
    color: #fff;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 4px rgba(30, 64, 175, .22),
    0 10px 22px rgba(59, 130, 246, .3),
    0 3px 8px rgba(0, 0, 0, .12);
}

.btn-glossy-info:hover::after,
.btn-glossy-info:focus::after {
    left: 115%;
}

.btn-glossy-info:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 5px rgba(30, 64, 175, .28),
    0 3px 8px rgba(59, 130, 246, .2);
}

.btn-glossy-info:disabled,
.btn-glossy-info.disabled {
    opacity: .65;
    filter: grayscale(.15);
    box-shadow: none;
    cursor: not-allowed;
}

/* Access badge actions on detail pages */
.access-users {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: flex-start;
}

.access-users > .access-user-badge,
.access-users > .text-muted {
    margin: 0;
}

.access-user-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: .35rem;
    padding: .25rem .55rem;
    border-radius: .7rem;
    border: 1px solid rgba(160, 190, 230, 0.35);
    background: linear-gradient(180deg, #6f89a8 0%, #56708f 16%, #42586f 48%, #4e7aa3 100%);
    color: #eef4ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(17, 25, 35, 0.35), 0 4px 10px rgba(36, 58, 87, 0.22);
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.access-user-badge.is-blocked {
    border-color: rgba(255, 140, 140, 0.55);
    background: linear-gradient(180deg, #b94141 0%, #983737 50%, #7f2f2f 100%);
    color: #fff;
}

.access-user-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.access-action-form {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.access-action-form input[type="hidden"] {
    display: none !important;
}

.access-remove-btn,
.access-restore-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 176, 176, 0.7);
    border-radius: .32rem;
    background: linear-gradient(180deg, #e35a5a 0%, #cc4545 52%, #a73434 100%);
    color: white;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 5px rgba(120, 24, 24, 0.28);
}

.access-remove-btn:hover,
.access-restore-btn:hover {
    background: linear-gradient(180deg, #ed6868 0%, #d65050 52%, #b03a3a 100%);
    filter: saturate(1.04);
}

.access-user-badge.is-blocked .access-remove-btn:hover,
.access-user-badge.is-blocked .access-restore-btn:hover {
    background: linear-gradient(180deg, #ed6868 0%, #d65050 52%, #b03a3a 100%);
}

.entry-card {
    border-radius: 0.1rem;
    overflow: hidden;
    min-height: 2rem;
}

.entry-main {
    cursor: pointer;
    padding-right: 0.15rem;
    line-height: 1.15;
}

.entry-actions {
    top: 2px;
    right: 2px;
}

.action-stack-compact {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.action-form {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.action-form + .action-form {
    margin-top: -1px;
}

.action-btn-3xs {
    --bs-btn-padding-y: 0.08rem;
    --bs-btn-padding-x: 0.16rem;
    --bs-btn-font-size: 0.55rem;
    --bs-btn-line-height: 1;
    --bs-btn-border-width: 1px;

    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
}

.action-stack-compact .action-form:first-child .action-btn-3xs {
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
}

.action-stack-compact .action-form:last-child .action-btn-3xs {
    border-bottom-left-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

.action-btn-3xs i {
    font-size: 0.56rem;
    line-height: 1;
    display: block;
}

.summary-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.summary-card-link:hover .summary-card-box,
.summary-card-link:focus .summary-card-box {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.12);
}

.summary-card-box {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.calendar-entry-info {
    background-color: #e7f3ff;
    border: 1px solid #9ec5fe;
    color: #084298;
}

.calendar-entry-info a {
    color: inherit;
}

.calendar-entry-due {
    background-color: #eaf7ef;
    border: 1px solid #b8e0c8;
    color: #0f5132;
}

.calendar-entry-overdue {
    background-color: #fff4e0;
    border: 1px solid #ffe3a3;
    color: #664d03;
}

.calendar-entry-due a,
.calendar-entry-overdue a {
    color: inherit;
}

.calendar-day-shell {
    background-color: #f8f9fa;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day-shell.weekend {
    background-color: #eceff3;
}