
.submenu {
    background-color: transparent !important;
    border-width: 0;
    border-bottom-width: 1px;
    padding-top: 5px;

    .nav-link {
        color: #0a53be !important;
        border: 0 !important;
        padding: 5px 10px;
        text-decoration: none;
        display: inline-block;
    }

    .nav-link.active {
        border: 0 !important;
        font-weight: bold;
    }
}

/* Jemná animácia */
.fade {
    transition: opacity 0.3s ease-in-out; /* Trvanie prechodu */
    opacity: 0; /* Skrytý stav */
}

.fade.show {
    opacity: 1; /* Viditeľný stav */
}

.hover-split {
    display: block;
    position: relative;
    overflow: hidden;
}

.hover-split img {
    transition: transform 0.5s ease-in-out;
}

.hover-split::before,
.hover-split::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-in-out;
}

.hover-split::before {
    left: 0;
    transform: translateX(0);
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0% 100%);
}

.hover-split::after {
    right: 0;
    transform: translateX(0);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
}

.hover-split:hover::before {
    transform: translateX(-10%);
}

.hover-split:hover::after {
    transform: translateX(10%);
}

/* Overlay, ktorý prekryje obrázok */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Polopriehľadná tmavá vrstva */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Plynulý prechod aj pre obrázok (voliteľné: na vyblednutie) */
.position-relative img {
    transition: filter 0.5s ease;
}

/* Pri hoveri nad kontajnerom zobraz overlay a vybledni obrázok */
.position-relative:hover .overlay {
    opacity: 1;
}

/* Pri hoveri aplikujeme filter na obrázok */
.position-relative:hover img {
    filter: brightness(50%);
}

/* Formulare */
.form-section {
    border: 1px solid #000;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

.form-section h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Wrapper pre input */
.editable-select-wrapper {
    position: relative;
    display: block; /* alebo block, podľa potreby */
}

/* Samotný input; pridaj si padding, aby sa text „nebil“ s ikonou */
.editable-select-wrapper .editable-select {
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Pseudo-element funguje nad wrapperom.
   Sem dáš buď Unicode znak, vlastný text alebo background-image. */
.editable-select-wrapper::after {
    content: "Ξ"; /* Môže byť aj "▼", špeciálny znak, emoji alebo text */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);

    /* Aby kliknutie prechádzalo cez ikonku do inputu */
    pointer-events: none;

    /* Upraviť podľa svojich predstáv */
    font-size: 1rem;
    color: #888;
}

h6 {
    font-weight: bold;
}

.form-section {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.remove-operation {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1;
}

.remove-reoperation {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1;
}

.bg-light-hover:hover {
    background-color: #f8f9fa; /* Bootstrap bg-light */
}

.bg-secondary-subtle-hover:hover {
    background-color: #dee2e6; /* trochu tmavšia */
}

.calendar-icon {
    max-width: 32px;
    max-height: 32px;
    cursor: pointer;

}

/* Disabled / readonly controls */
.form-control.is-disabled-field,
.form-select.is-disabled-field,
.form-control:disabled,
.form-select:disabled,
.form-control[readonly],
textarea.form-control:disabled,
textarea.form-control[readonly] {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.form-control.is-disabled-field:focus,
.form-select.is-disabled-field:focus,
.form-control:disabled:focus,
.form-select:disabled:focus,
.form-control[readonly]:focus,
textarea.form-control:disabled:focus,
textarea.form-control[readonly]:focus {
    border-color: #adb5bd;
    box-shadow: none;
}

.form-control:disabled::placeholder,
.form-control[readonly]::placeholder,
textarea.form-control:disabled::placeholder,
textarea.form-control[readonly]::placeholder {
    color: #6c757d;
}

/* Home dashboard */
.home-dashboard {
    position: relative;
    font-family: "Source Sans 3", "IBM Plex Sans", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at 8% 4%, rgba(44, 117, 255, 0.12), transparent 42%),
        radial-gradient(circle at 92% 18%, rgba(0, 147, 126, 0.11), transparent 38%),
        linear-gradient(160deg, #f8fbff 0%, #f4f8fa 45%, #ffffff 100%);
    border: 1px solid #dbe3eb;
    border-radius: 18px;
    padding: 1.5rem;
}

.home-dashboard__hero {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.home-dashboard__title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    letter-spacing: 0.02em;
    color: #132037;
}

.home-dashboard__subtitle {
    margin: 0.35rem 0 0;
    color: #4e6278;
}

.home-dashboard__user {
    text-align: right;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    min-width: 170px;
}

.home-dashboard__user-name {
    font-weight: 700;
    color: #12263d;
}

.home-dashboard__user-role {
    font-size: 0.9rem;
    color: #5e738b;
}

.home-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.home-dashboard__card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(11, 30, 56, 0.06);
    transform: translateY(0);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    opacity: 0;
    animation: home-card-enter 280ms ease forwards;
}

.home-dashboard__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(11, 30, 56, 0.11);
    border-color: #bfcfdf;
}

.home-dashboard__grid .home-dashboard__card:nth-child(1) { animation-delay: 20ms; }
.home-dashboard__grid .home-dashboard__card:nth-child(2) { animation-delay: 55ms; }
.home-dashboard__grid .home-dashboard__card:nth-child(3) { animation-delay: 90ms; }
.home-dashboard__grid .home-dashboard__card:nth-child(4) { animation-delay: 125ms; }
.home-dashboard__grid .home-dashboard__card:nth-child(5) { animation-delay: 160ms; }
.home-dashboard__grid .home-dashboard__card:nth-child(6) { animation-delay: 195ms; }

.home-dashboard__card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.home-dashboard__card-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #f4f8fc;
    padding: 6px;
}

.home-dashboard__card-icon--fallback {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #396ea8;
}

.home-dashboard__card-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.home-dashboard__card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #355d87;
    background: #edf3fa;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.home-dashboard__card-title {
    margin: 0;
    font-size: 1.02rem;
    color: #12263d;
}

.home-dashboard__card-text {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #5a7088;
}

@keyframes home-card-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .home-dashboard {
        padding: 1rem;
        border-radius: 14px;
    }

    .home-dashboard__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-dashboard__user {
        text-align: left;
        min-width: 0;
        width: 100%;
    }
}

.patients-page__panel {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 5px 16px rgba(11, 29, 49, 0.05);
}

.patients-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.patients-page__subtitle {
    color: #58708a;
}

.patients-page__meta {
    border: 1px solid #d1dfed;
    border-radius: 999px;
    background: #f3f8fd;
    color: #325777;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

.patients-list__filters {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #f9fcff;
    padding: 0.85rem;
}

.patients-list__table-wrap {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#patients-table {
    min-width: 920px;
}

#patients-table thead th {
    white-space: nowrap;
    background: #edf4fb;
    color: #1d3652;
}

#patients-table tbody tr[hidden] {
    display: none;
}

.patients-row--odd {
    background: #f8fbff;
}

.patients-row--even {
    background: #ffffff;
}

.patients-filter-summary {
    color: #4b647e;
    font-size: 0.9rem;
    font-weight: 700;
    padding-top: 0.4rem;
}

.patients-diagnosis-link {
    color: #1e5f9b;
    font-weight: 600;
}

.patients-diagnosis-link:hover {
    color: #164a78;
}

.patients-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.58rem;
    font-size: 0.79rem;
    font-weight: 700;
}

.patients-status-badge--active {
    color: #13663a;
    background: #dbf2e6;
    border: 1px solid #b8e2cc;
}

.patients-status-badge--inactive {
    color: #8a4c11;
    background: #ffecd8;
    border: 1px solid #f4d2ad;
}

.patients-status-badge--unknown {
    color: #556a80;
    background: #eaf0f7;
    border: 1px solid #d0dce8;
}

.patients-edit-link {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #2f679f;
    background: #edf4fb;
    transition: background-color 140ms ease, color 140ms ease;
}

.patients-edit-link:hover {
    color: #1c4f82;
    background: #deebf8;
}

.patients-edit-icon {
    width: 15px;
    height: 15px;
    display: block;
}

.users-page__panel {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 5px 16px rgba(11, 29, 49, 0.05);
}

.users-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.users-page__title {
    color: #142a44;
}

.users-page__subtitle {
    color: #5b738c;
}

.users-page__meta {
    color: #365a7b;
    font-size: 0.9rem;
    font-weight: 700;
}

.users-page__table-wrap {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
}

.users-table thead th {
    white-space: nowrap;
}

.users-table__name {
    font-weight: 700;
    color: #1a3553;
}

.users-table__email {
    color: #305f90;
    text-decoration: none;
}

.users-table__email:hover {
    color: #1c466f;
    text-decoration: underline;
}

.users-role-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.62rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.users-role-badge--admin {
    color: #7b1728;
    background: #f8dce2;
    border: 1px solid #ebb4c0;
}

.users-role-badge--editor {
    color: #7f4f07;
    background: #ffecc9;
    border: 1px solid #f3d495;
}

.users-role-badge--reader {
    color: #1d5678;
    background: #dff0fb;
    border: 1px solid #b8dff2;
}

.users-card-preferences {
    padding: 1rem 1.05rem;
    border: 1px solid #d6e2ee;
    border-radius: 16px;
    background: rgba(248, 252, 255, 0.94);
}

.users-card-preferences__title {
    margin-bottom: 0.35rem;
    color: #183f67;
}

.users-card-preferences__hint {
    color: #5e7690;
    font-size: 0.93rem;
}

.users-card-preferences__group + .users-card-preferences__group {
    margin-top: 1rem;
}

.users-card-preferences__group-title {
    margin-bottom: 0.55rem;
    color: #224c77;
    font-weight: 700;
}

.users-card-preferences__grid {
    display: grid;
    gap: 0.7rem;
}

.users-card-preferences__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d7e4f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.users-card-preferences__item input[type="checkbox"] {
    margin-top: 0.2rem;
}

.users-card-preferences__item-body {
    display: grid;
    gap: 0.15rem;
}

.users-card-preferences__item-title {
    color: #173f66;
    font-weight: 700;
}

.users-card-preferences__item-link,
.users-card-preferences__item-roles {
    color: #67809a;
    font-size: 0.88rem;
}

.users-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #1f5f9a;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border: 1px solid #c6daed;
    border-radius: 8px;
    background: #eff6fd;
}

.users-edit-link:hover {
    color: #184e80;
    border-color: #b5d0e8;
    background: #e0eefb;
}

.users-edit-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.logs-admin__panel {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 5px 16px rgba(11, 29, 49, 0.05);
}

.logs-admin__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.logs-admin__subtitle {
    color: #5b738c;
}

.logs-admin__meta {
    color: #365a7b;
    font-size: 0.9rem;
    font-weight: 700;
}

.logs-admin__filters {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #f9fcff;
    padding: 0.85rem;
}

.logs-admin__filter-actions {
    display: flex;
    gap: 0.55rem;
}

.logs-admin__table-wrap {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
}

.logs-admin__table {
    min-width: 1120px;
}

.logs-admin__table thead th {
    white-space: nowrap;
}

.logs-admin__message-cell {
    white-space: normal;
    min-width: 420px;
    color: #213a55;
}

.logs-level {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.58rem;
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: lowercase;
}

.logs-level--info,
.logs-level--notice {
    color: #1e5f8d;
    background: #dff1ff;
    border: 1px solid #b9dbf2;
}

.logs-level--warning {
    color: #845312;
    background: #fff0d8;
    border: 1px solid #f0d1a3;
}

.logs-level--error,
.logs-level--critical,
.logs-level--alert,
.logs-level--emergency {
    color: #812438;
    background: #f9e0e6;
    border: 1px solid #edbcc8;
}

@media (max-width: 768px) {
    .patients-page__header,
    .users-page__header,
    .logs-admin__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .patients-page__meta {
        align-self: flex-start;
    }

    .users-page__create-btn {
        width: 100%;
    }

    .users-card-preferences__item {
        padding: 0.75rem 0.8rem;
    }

    .logs-admin__filter-actions {
        flex-direction: column;
    }
}

.stats-dashboard {
    padding-bottom: 1rem;
}

.stats-filters {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.stats-filter-summary {
    color: #56708a;
    font-size: 0.88rem;
    min-height: 1.2rem;
}

.stats-kpi-card {
    height: 100%;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.stats-kpi-label {
    color: #516980;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.stats-kpi-value {
    color: #12263d;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.stats-chart-card {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 0.9rem 0.6rem;
    min-height: 320px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.stats-chart-title {
    margin: 0 0 0.55rem;
    font-size: 0.98rem;
    color: #1b334c;
}

.stats-chart-card canvas {
    width: 100% !important;
    height: 260px !important;
}

@media (max-width: 768px) {
    .stats-chart-card {
        min-height: 290px;
    }

    .stats-chart-card canvas {
        height: 230px !important;
    }
}

/* Global UI refresh (keeps existing home-dashboard styles) */
:root {
    --app-font: "IBM Plex Sans", "Source Sans 3", "Trebuchet MS", sans-serif;
    --app-bg-1: #f4f7fb;
    --app-bg-2: #eff4fa;
    --app-text: #12263d;
    --app-muted: #60768f;
    --app-line: #d9e3ee;
    --app-primary: #2563a6;
    --app-primary-strong: #184f87;
    --app-surface: #ffffff;
    --app-surface-alt: #f8fbff;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--app-font);
    color: var(--app-text);
    background:
        radial-gradient(circle at 2% 0%, rgba(37, 99, 166, 0.09), transparent 24%),
        radial-gradient(circle at 97% 12%, rgba(18, 145, 117, 0.08), transparent 26%),
        linear-gradient(180deg, var(--app-bg-1) 0%, var(--app-bg-2) 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #122944;
}

a {
    color: #1f66ad;
}

a:hover {
    color: #164f88;
}

.app-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1320px;
    margin-bottom: 1.35rem;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #c6d6e7;
    background:
        linear-gradient(115deg, #2a639d 0%, #1e4f80 56%, #183f67 100%);
    box-shadow: 0 10px 22px rgba(9, 27, 49, 0.22);
}

.app-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-header__brand {
    flex-shrink: 0;
    text-decoration: none;
}

.app-header__logo {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 4px 12px rgba(7, 18, 33, 0.28);
}

.app-header__title {
    margin: 0;
    flex: 1;
    color: #f6fafe;
    font-size: clamp(1.22rem, 1.8vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 0 rgba(4, 14, 26, 0.28);
}

.app-header__title-link {
    color: inherit;
    text-decoration: none;
}

.app-header__title-link:hover,
.app-header__title-link:focus {
    color: #ffffff;
    text-decoration: none;
}

.app-header__logout {
    color: #eaf2fa;
    border: 1px solid rgba(233, 243, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.app-header__logout:hover {
    color: #fff;
    border-color: rgba(243, 248, 255, 0.75);
    background: rgba(255, 255, 255, 0.2);
}

.app-breadcrumbs-wrap {
    margin: 0.25rem auto 1rem;
    max-width: 1320px;
}

.app-breadcrumbs {
    margin: 0;
}

.app-breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.app-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.app-breadcrumbs__item + .app-breadcrumbs__item::before {
    content: "›";
    color: #8aa1bb;
    margin-right: 0.2rem;
}

.app-breadcrumbs__link {
    text-decoration: none;
    color: #1f5f9f;
    border: 1px solid #d5e3f1;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 0.23rem 0.62rem;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.app-breadcrumbs__link:hover {
    color: #154c81;
    border-color: #b7cfe8;
    background: #ffffff;
}

.app-breadcrumbs__item--active {
    color: #fff;
    border: 1px solid #2b6aa9;
    background: linear-gradient(145deg, #2f70b2 0%, #245b91 100%);
    border-radius: 999px;
    padding: 0.24rem 0.68rem;
    box-shadow: 0 5px 12px rgba(22, 69, 115, 0.22);
}

.app-footer {
    margin-top: auto;
    border-top: 1px solid #d6e2ee;
    background: #f3f8fd;
}

.app-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    color: #4f6780;
    font-size: 0.9rem;
}

.app-footer a {
    color: #1c5e9f;
}

.page-nav-controls {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.page-nav-controls__button {
    width: 2.9rem;
    height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bcd0e4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1c5e9f;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(18, 56, 90, 0.16);
    backdrop-filter: blur(6px);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.page-nav-controls__button:hover,
.page-nav-controls__button:focus {
    color: #123f68;
    border-color: #8fb0d2;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(18, 56, 90, 0.22);
}

.page-nav-controls__icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.page-nav-controls__button i {
    font-size: 1.1rem;
    line-height: 1;
}

.page-nav-controls__button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.35rem);
    box-shadow: none;
}

.help-page__panel {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid #d1dfec;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(239, 246, 252, 0.98) 100%);
    box-shadow: 0 20px 36px rgba(28, 67, 102, 0.08);
}

.help-page__header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d7e3ef;
}

.help-page__title {
    color: #173f66;
}

.help-page__subtitle {
    color: #5b7590;
}

.help-page__content {
    color: #20384e;
    line-height: 1.7;
}

.help-page__content h2,
.help-page__content h3,
.help-page__content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    color: #173f66;
}

.help-page__content h2 {
    font-size: 1.35rem;
    padding-top: 0.2rem;
}

.help-page__content h3 {
    font-size: 1.1rem;
}

.help-page__content p,
.help-page__content ul,
.help-page__content ol {
    margin-bottom: 0.9rem;
}

.help-page__content ul,
.help-page__content ol {
    padding-left: 1.3rem;
}

.help-page__content code {
    padding: 0.12rem 0.38rem;
    border-radius: 6px;
    background: #eaf2fa;
    color: #15456e;
}

.login-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 13rem);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
}

.login-shell__intro,
.login-card {
    border: 1px solid #d3e0ec;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(23, 66, 101, 0.1);
}

.login-shell__intro {
    padding: 2rem 2rem 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(54, 119, 181, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(248, 252, 255, 0.98) 0%, rgba(230, 240, 249, 0.98) 100%);
}

.login-shell__eyebrow {
    margin-bottom: 0.65rem;
    color: #53718f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-shell__title {
    color: #143a60;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.login-shell__lead {
    max-width: 38rem;
    color: #44627f;
    font-size: 1.02rem;
}

.login-shell__facts {
    display: grid;
    gap: 0.9rem;
}

.login-shell__fact {
    display: grid;
    gap: 0.22rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(161, 188, 214, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.login-shell__fact strong {
    color: #173f66;
    font-size: 0.95rem;
}

.login-shell__fact span {
    color: #58718a;
    font-size: 0.92rem;
}

.login-card {
    padding: 1.7rem 1.55rem 1.45rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.login-card__header {
    margin-bottom: 1.2rem;
}

.login-card__title {
    margin-bottom: 0.3rem;
    color: #173f66;
    font-size: 1.45rem;
}

.login-card__subtitle {
    color: #627d98;
}

.login-card__submit {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.login-card__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.15rem 0 1rem;
    color: #7c92a8;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-card__divider::before,
.login-card__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8e4ef;
}

.login-card__hint {
    margin-top: 0.85rem;
    color: #72879d;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .help-page__panel {
        padding: 1rem;
        border-radius: 14px;
    }

    .page-nav-controls {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .page-nav-controls__button {
        width: 2.65rem;
        height: 2.65rem;
    }

    .login-page {
        min-height: auto;
        padding-top: 0.25rem;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-shell__intro,
    .login-card {
        border-radius: 18px;
        padding: 1.2rem;
    }
}

.card,
.offcanvas,
.modal-content,
.table-responsive,
.accordion-item {
    border-color: var(--app-line);
    border-radius: 12px;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary {
    border-color: #225e9b;
    background: linear-gradient(145deg, #2e6baa 0%, #25588c 100%);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #1f5389;
    background: linear-gradient(145deg, #255f98 0%, #1f4f7e 100%);
}

.btn-outline-primary {
    color: #245f9b;
    border-color: #9fbbd8;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #173f66;
    border-color: #86a8cb;
    background-color: #e7f0fa;
}

.developer-panel-trigger {
    position: fixed;
    right: 1rem;
    top: 5.5rem;
    z-index: 1095;
    box-shadow: 0 14px 28px rgba(21, 66, 108, 0.22);
    border-color: #1f5389;
    padding: 0.6rem 0.95rem;
}

.developer-panel {
    width: min(88vw, 1120px) !important;
    background:
        radial-gradient(circle at top right, rgba(74, 137, 196, 0.1), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fa 100%);
}

.developer-panel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(247, 251, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #d4e2ef;
}

.developer-panel__eyebrow {
    color: #5d7894;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.developer-panel__title {
    margin: 0.15rem 0 0;
    color: #163c61;
    font-size: 1.3rem;
}

.developer-panel__body {
    display: grid;
    gap: 1rem;
}

.developer-panel__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.developer-panel__summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #cdddeb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(32, 74, 114, 0.08);
}

.developer-panel__summary-chip--highlight {
    border-color: #9fbddb;
    background: linear-gradient(180deg, rgba(235, 244, 252, 0.98) 0%, rgba(221, 235, 248, 0.98) 100%);
}

.developer-panel__summary-label {
    color: #183f65;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.developer-panel__summary-meta,
.developer-panel__section-meta {
    color: #5b7590;
    font-size: 0.84rem;
    font-weight: 600;
}

.developer-panel__summary-meta--timer {
    color: #173f66;
    font-family: "IBM Plex Mono", "Source Code Pro", monospace;
    font-size: 0.92rem;
    font-weight: 700;
}

.developer-panel__action {
    margin-left: 0.2rem;
    border-color: #173f66;
    color: #173f66;
    font-weight: 700;
}

.developer-panel__action:hover,
.developer-panel__action:focus {
    background: #173f66;
    border-color: #173f66;
    color: #fff;
}

.developer-panel__tabs {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 0;
}

.developer-panel__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 12rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #cddceb !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.78);
    color: #26486a;
    box-shadow: 0 8px 20px rgba(28, 70, 108, 0.06);
}

.developer-panel__tab:hover,
.developer-panel__tab:focus {
    color: #163d63;
    background: rgba(255, 255, 255, 0.95);
    border-color: #aac2dc !important;
}

.developer-panel__tab.active {
    color: #fff;
    border-color: #245b91 !important;
    background: linear-gradient(145deg, #2f70b2 0%, #245b91 100%);
    box-shadow: 0 14px 28px rgba(21, 66, 108, 0.16);
}

.developer-panel__tab-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.developer-panel__tab-meta {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.8;
}

.developer-panel__tab-content {
    min-height: 0;
}

.developer-panel__section {
    overflow: hidden;
    border: 1px solid #d0deeb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(26, 71, 110, 0.08);
}

.developer-panel__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #dce7f1;
    background: linear-gradient(180deg, rgba(244, 249, 253, 0.95) 0%, rgba(235, 244, 251, 0.95) 100%);
}

.developer-panel__section-title {
    margin: 0;
    color: #173f66;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.developer-panel__dump {
    margin: 0;
    padding: 1rem;
    height: min(68vh, calc(100vh - 19rem));
    overflow: auto;
    background: #f8fbfe;
    color: #16344d;
    font-size: 0.81rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.developer-panel__dump code {
    color: inherit;
}

@media (max-width: 767.98px) {
    .developer-panel {
        width: 100vw !important;
        border-radius: 0;
    }

    .developer-panel-trigger {
        right: 0.75rem;
        top: 4.9rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.88rem;
    }

    .developer-panel__tab {
        min-width: 10.25rem;
    }

    .developer-panel__section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .developer-panel__dump {
        height: calc(100vh - 20rem);
    }
}

.form-label {
    color: #2a425d;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-hint {
    margin: -0.05rem 0 0.45rem;
    color: #6e8298;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.35;
}

.form-control,
.form-select,
.input-group-text {
    border-color: #c8d8e8;
    background-color: #fff;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #8fb3d9;
    box-shadow: 0 0 0 0.2rem rgba(42, 103, 171, 0.18);
}

.form-section {
    border-color: #d4e0ec;
    background: linear-gradient(180deg, #f9fcff 0%, #f3f8fd 100%);
    border-radius: 12px;
}

.table {
    --bs-table-bg: #fff;
    --bs-table-striped-bg: #f7fbff;
    --bs-table-hover-bg: #edf5fd;
    border-color: #d9e4ef;
}

.table > :not(caption) > * > * {
    border-bottom-color: #dbe6f1;
}

.table thead th {
    background: #e8f0fa;
    color: #1d3652;
    font-weight: 700;
}

.alert {
    border-radius: 11px;
    border-width: 1px;
}

.alert-warning {
    color: #654e10;
    background: #fff6da;
    border-color: #f0dfa5;
}

.alert-danger {
    color: #6d1f30;
    background: #fbe6eb;
    border-color: #efbcc9;
}

.alert-success {
    color: #18553b;
    background: #e7f7ef;
    border-color: #b5dfca;
}

.alert-info {
    color: #1d4f74;
    background: #e8f4fb;
    border-color: #bdddf0;
}

@media (max-width: 768px) {
    .app-header__inner {
        min-height: 68px;
        padding: 0.55rem 0.8rem;
        gap: 0.7rem;
    }

    .app-header__logo {
        width: 56px;
        height: 44px;
    }

    .app-header__title {
        font-size: 1.07rem;
    }

    .app-breadcrumbs-wrap {
        margin-bottom: 0.8rem;
    }
}
