/* Bal oldali menüsáv és közös oldalkeret */

.hd-body {
    display: block;
    margin: 0;
}

.hd-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.hd-sidebar {
    background: var(--portal-sidebar);
    color: var(--portal-sidebar-text);
    flex-direction: column;
}

.hd-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 28px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -0.04em;
}

.hd-brand:hover {
    color: #ffffff;
}

.hd-brand svg,
.hd-brand-accent {
    color: var(--portal-accent);
}

.hd-sidebar-content {
    flex: 1;
}

.hd-sidebar-context {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 24px;
}

.hd-sidebar-context strong {
    font-size: 0.95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hd-sidebar-label {
    display: block;
    margin: 0 0 8px;
    color: #bbd1c2;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hd-sidebar-content>.hd-sidebar-label,
.hd-navigation>.hd-sidebar-label {
    padding: 0 12px;
}

.hd-navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hd-nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    color: #edf6ef;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-nav-link:hover {
    background: #254331;
    color: #ffffff;
}

.hd-nav-link.is-active {
    background: var(--portal-accent);
    color: #102015;
    font-weight: 700;
}

.hd-sidebar-divider {
    height: 1px;
    margin: 16px 12px;
    background: #3d5947;
}

.hd-account {
    margin-top: 32px;
    padding: 20px 10px 0;
    border-top: 1px solid #3d5947;
}

.hd-account-name {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hd-account form {
    margin: 0;
}

.hd-account-action {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #edf6ef;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.hd-account-action:hover {
    color: var(--portal-accent);
}

.hd-account-forget {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hd-account-help {
    margin: 8px 0 0;
    color: #bbd1c2;
    font-size: 0.72rem;
    line-height: 1.5;
}

.hd-workspace {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.hd-topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--portal-border);
    background: #ffffff;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.hd-topbar a {
    color: var(--portal-muted);
    text-decoration: none;
}

.hd-topbar a:hover {
    color: var(--portal-primary);
}

.hd-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    flex: 1;
}

.hd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 0.8rem;
}

.hd-footer a {
    color: var(--portal-muted);
}

.hd-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--portal-sidebar);
}

.hd-mobile-brand {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.hd-mobile-brand:hover {
    color: var(--portal-accent);
}

.hd-sidebar a:focus-visible,
.hd-sidebar button:focus-visible {
    outline-color: var(--portal-accent);
}

@media (min-width: 992px) {
    .hd-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1030;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
    }

    .hd-workspace {
        margin-left: 260px;
    }

    .hd-mobile-header {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .hd-sidebar.show {
        display: flex;
    }

    .hd-topbar,
    .hd-footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* A méregzöld téma közös beállításai */

:root {
    --portal-background: #f0f8f2;
    --portal-surface: #ffffff;
    --portal-header: #14251c;
    --portal-text: #17281e;
    --portal-muted: #596d61;
    --portal-border: #dce8df;

    --portal-primary: #12853d;
    --portal-primary-hover: #0b6a2e;
    --portal-accent: #79ec38;

    --portal-sidebar: #14251c;
    --portal-sidebar-text: #edf6ef;
    --portal-radius: 12px;

    --bs-body-color: var(--portal-text);
    --bs-body-bg: var(--portal-background);
    --bs-border-color: var(--portal-border);
    --bs-link-color: var(--portal-primary);
    --bs-link-hover-color: var(--portal-primary-hover);
    --bs-secondary-color: var(--portal-muted);
}

body {
    background: var(--portal-background);
    color: var(--portal-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--portal-text);
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--portal-primary);
    --bs-btn-border-color: var(--portal-primary);

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--portal-primary-hover);
    --bs-btn-hover-border-color: var(--portal-primary-hover);

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #085523;
    --bs-btn-active-border-color: #085523;

    --bs-btn-focus-shadow-rgb: 18, 133, 61;
}

.btn-outline-primary {
    --bs-btn-color: var(--portal-primary);
    --bs-btn-border-color: #80b991;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--portal-primary);
    --bs-btn-hover-border-color: var(--portal-primary);

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--portal-primary-hover);
    --bs-btn-active-border-color: var(--portal-primary-hover);

    --bs-btn-focus-shadow-rgb: 18, 133, 61;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 0.2rem rgb(18 133 61 / 15%);
}

.form-check-input:checked {
    background-color: var(--portal-primary);
    border-color: var(--portal-primary);
}

/* Főoldal – szervezetválasztó */

.hd-organizations {
    margin: 0 auto;
}

.hd-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
    padding: 36px;
    border: 1px solid #d4ebd9;
    border-radius: 14px;
    background: linear-gradient(120deg, #e0f7e5, #f1fcf3);
}

.hd-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #176832;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hd-welcome h1 {
    margin: 0 0 14px;
    color: #14251c;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.hd-welcome p {
    max-width: 650px;
    margin: 0;
    color: #506b59;
    line-height: 1.7;
}

.hd-welcome-icon {
    flex-shrink: 0;
    color: #95cfa2;
}

.hd-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hd-section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.hd-result-count {
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.hd-organization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-organization-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-organization-card:hover {
    border-color: #a8cfb2;
}

.hd-organization-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf8ee;
    color: #12853d;
}

.hd-organization-information {
    min-width: 0;
}

.hd-organization-information h3 {
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hd-organization-information p {
    margin: 0;
    color: var(--portal-muted);
}

.hd-organization-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    border-radius: 9px;
}

.hd-organization-button span {
    font-size: 1.2rem;
}

.hd-empty-state {
    padding: 40px 24px;
    border: 1px dashed #b5cdbd;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.hd-empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.hd-empty-state p {
    margin: 0;
    color: var(--portal-muted);
}

.hd-public-help {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #d4e7da;
    border-radius: 12px;
    background: #eaf5ed;
}

.hd-help-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1.5px solid #26763e;
    border-radius: 50%;
    color: #26763e;
    font-weight: 700;
}

.hd-public-help p {
    margin: 0;
    color: #405e49;
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .hd-welcome {
        padding: 26px 22px;
    }

    .hd-welcome-icon {
        display: none;
    }

    .hd-organization-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-organization-card {
        padding: 22px;
    }
}

/* Szervezeti belépőoldal */

.hd-join-page {
    max-width: 580px;
    margin: 12px auto 40px;
}

.hd-join-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--portal-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.hd-join-back:hover {
    color: var(--portal-primary);
}

.hd-join-card {
    padding: 40px;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgb(20 37 28 / 5%);
}

.hd-join-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: #eaf8ee;
    color: var(--portal-primary);
}

.hd-join-card>.hd-eyebrow {
    text-align: center;
}

.hd-join-card h1 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.hd-join-description {
    margin-bottom: 26px;
    color: var(--portal-muted);
    text-align: center;
    line-height: 1.7;
}

.hd-join-notice {
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid #cfe8d6;
    border-radius: 10px;
    background: #eff9f2;
    color: #285e39;
}

.hd-join-notice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.hd-join-notice p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.hd-join-input {
    min-height: 48px;
    border-color: #bfd2c5;
    border-radius: 9px;
}

.hd-join-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 600;
}

.hd-join-help {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .hd-join-card {
        padding: 28px 22px;
    }
}

/* Vendégoldali szobalista */

.hd-rooms-page {
    margin: 0 auto;
}

.hd-room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hd-room-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-room-card:hover {
    border-color: #a8cfb2;
}

.hd-room-card-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 18px;
}

.hd-room-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eaf8ee;
    color: var(--portal-primary);
}

.hd-room-card-heading h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-room-description {
    margin: 0 0 18px;
    color: var(--portal-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hd-room-community {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #edf8f0;
    color: #28673b;
    font-size: 0.75rem;
    line-height: 1.5;
}

.hd-room-community span {
    color: var(--portal-primary);
    font-size: 0.6rem;
}

.hd-room-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    border-radius: 9px;
}

.hd-room-open span {
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .hd-room-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-room-card {
        padding: 22px;
    }
}

/* Szoba kezdőlap */

.hd-room-home {
    margin: 0 auto;
}

.hd-room-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hd-action-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 155px;
    padding: 26px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--portal-text);
    text-decoration: none;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-action-card:hover {
    border-color: #95c7a2;
    background: #f8fdf9;
    color: var(--portal-text);
}

.hd-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 58px;
    border-radius: 12px;
    background: #eaf8ee;
    color: var(--portal-primary);
}

.hd-action-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hd-action-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hd-action-content strong {
    font-size: 1.1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hd-action-content>span {
    color: var(--portal-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.hd-action-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf8ee;
    color: var(--portal-primary);
    font-size: 1.3rem;
}

.hd-action-primary {
    border-color: #087334;
    background: linear-gradient(120deg, #075d2a, #12853d);
    color: #ffffff;
}

.hd-action-primary:hover {
    border-color: #064d22;
    background: #096b30;
    color: #ffffff;
}

.hd-action-primary .hd-action-content>span {
    color: #e0f3e5;
}

.hd-action-primary .hd-action-icon,
.hd-action-primary .hd-action-arrow {
    background: rgb(255 255 255 / 13%);
    color: #ffffff;
}

/* Beküldés visszaigazolása és követési kód */

.hd-ticket-success {
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid #b8ddc2;
    border-radius: 12px;
    background: #ffffff;
}

.hd-ticket-success h2 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.hd-success-ticket-id {
    color: var(--portal-muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.hd-tracking-code-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d4e7da;
    border-radius: 10px;
    background: #f0f8f2;
}

.hd-tracking-code-box code {
    flex: 1;
    align-self: center;
    min-width: 0;
    color: #185c2e;
    overflow-wrap: anywhere;
}

.hd-tracking-code-box button {
    flex-shrink: 0;
}

.hd-tracking-warning {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: 9px;
    background: #fff7e6;
    color: #775016;
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .hd-room-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-action-card {
        min-height: 130px;
        gap: 14px;
        padding: 22px 18px;
    }

    .hd-ticket-success {
        padding: 22px 18px;
    }
}

/* Hibajegy feladása és közös űrlapszakaszok */

.hd-create-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-create-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 24px;
}

.hd-form-panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-form-panel-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.hd-form-panel-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.hd-form-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf8ee;
    color: var(--portal-primary);
    font-size: 0.9rem;
    font-weight: 750;
}

.hd-form-description {
    margin-bottom: 22px;
    color: var(--portal-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.hd-form-panel .form-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.hd-form-panel .form-control,
.hd-form-panel .form-select {
    min-height: 46px;
    border-color: #bfd2c5;
    border-radius: 9px;
}

.hd-form-panel textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.hd-form-panel .form-text {
    color: var(--portal-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.hd-form-panel .field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
}

.hd-community-panel {
    margin-bottom: 24px;
    border-color: #c9e3d1;
    background: #fbfefc;
}

.hd-community-panel .form-check-label {
    font-size: 0.9rem;
    line-height: 1.7;
}

.hd-optional-label {
    padding: 4px 9px;
    border-radius: 6px;
    background: #edf3ef;
    color: #526c5b;
    font-size: 0.72rem;
}

.hd-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.hd-form-actions .btn {
    padding: 11px 20px;
    border-radius: 9px;
}

.hd-form-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 1199.98px) {
    .hd-create-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hd-form-panel {
        padding: 22px 18px;
    }

    .hd-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* Saját hibajegyek */

.hd-mine-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-my-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hd-my-ticket {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-my-ticket-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}

.hd-my-ticket-title {
    min-width: 0;
}

.hd-ticket-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hd-ticket-badges .badge {
    padding: 7px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.hd-my-ticket-title h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-my-ticket-time {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.8rem;
}

.hd-my-ticket-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 9px;
}

.hd-my-ticket-details {
    border-top: 1px solid var(--portal-border);
}

.hd-my-ticket-details summary {
    padding: 15px 26px;
    color: #3d654a;
    background: #f8fcf9;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.hd-my-ticket-details summary:hover {
    background: #edf7f0;
}

.hd-my-ticket-details-body {
    padding: 24px 26px;
}

.hd-ticket-data {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px 20px;
    margin: 0 0 24px;
    font-size: 0.9rem;
}

.hd-ticket-data dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.hd-ticket-data dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.hd-my-ticket-details-body h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.hd-ticket-text {
    color: var(--portal-text);
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 30px 0 10px;
}

.hd-pagination>span {
    color: var(--portal-muted);
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .hd-my-ticket-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 22px;
    }

    .hd-my-ticket-details summary {
        padding: 15px 22px;
    }

    .hd-my-ticket-details-body {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .hd-ticket-data {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .hd-ticket-data dd {
        margin-bottom: 12px;
    }
}

/* Hibajegy részletes nézete */

.hd-detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-detail-page .hd-welcome h1 {
    overflow-wrap: anywhere;
}

.hd-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.hd-detail-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
}

.hd-detail-description {
    padding-top: 22px;
    border-top: 1px solid var(--portal-border);
}

.hd-detail-description h3 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.hd-detail-empty {
    padding: 20px;
    border: 1px solid #d9eadd;
    border-radius: 10px;
    background: #f3faf5;
}

.hd-detail-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #355e42;
    font-size: 0.9rem;
}

.hd-detail-empty p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.hd-reply-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hd-reply {
    padding: 18px;
    border: 1px solid #d9eadd;
    border-left: 3px solid var(--portal-primary);
    border-radius: 9px;
    background: #f5fbf7;
}

.hd-reply-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hd-reply-heading strong {
    color: #27613a;
    font-size: 0.85rem;
}

.hd-reply-heading time {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

.hd-history-empty {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.hd-status-history {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-status-history li {
    position: relative;
    margin-left: 7px;
    padding: 0 0 24px 24px;
    border-left: 2px solid #d9eadd;
}

.hd-status-history li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.hd-status-history li::before {
    position: absolute;
    top: 5px;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--portal-primary);
    content: "";
}

.hd-status-transition {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.hd-status-history time {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

@media (max-width: 1199.98px) {
    .hd-detail-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hibajegy követése kóddal */

.hd-track-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-track-search {
    margin-bottom: 32px;
}

.hd-track-input-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.hd-track-input-row .form-control {
    flex: 1;
    min-width: 0;
}

.hd-track-input-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 18px;
    padding: 12px 20px;
    border-radius: 9px;
}

.hd-track-help {
    margin: 14px 0 0;
    color: var(--portal-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.hd-track-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.hd-track-result-heading>div {
    min-width: 0;
}

.hd-track-result-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .hd-track-input-row {
        flex-direction: column;
    }
}

/* Közösségi hibajegyek listája */

.hd-community-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-community-notice {
    margin-bottom: 28px;
    padding: 20px 24px;
    border: 1px solid #cfe5d5;
    border-radius: 12px;
    background: #eaf5ed;
}

.hd-community-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #285e39;
    font-size: 0.9rem;
}

.hd-community-notice p {
    margin: 0;
    color: #496653;
    font-size: 0.85rem;
    line-height: 1.7;
}

.hd-community-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-community-ticket {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-community-ticket-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.hd-community-ticket-heading h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-community-ticket-heading .badge {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.hd-community-published {
    margin-bottom: 20px;
    color: var(--portal-muted);
    font-size: 0.8rem;
}

.hd-community-ticket-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
}

.hd-community-ticket-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 16px;
    border-radius: 9px;
}

@media (max-width: 575.98px) {
    .hd-community-ticket {
        padding: 22px;
    }

    .hd-community-ticket-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .hd-community-ticket-footer .btn {
        width: 100%;
    }

    .hd-community-notice {
        padding: 20px;
    }
}

/* Közösségi hibajegy és hozzászólások */

.hd-community-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-community-detail .hd-welcome h1 {
    overflow-wrap: anywhere;
}

.hd-community-description,
.hd-community-comment-form {
    margin-bottom: 28px;
}

.hd-comment-privacy {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #d4e7da;
    border-radius: 9px;
    background: #eff8f2;
    color: #42644d;
    font-size: 0.8rem;
    line-height: 1.7;
}

.hd-community-comments {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hd-community-comment {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-comment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hd-comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hd-comment-author strong {
    min-width: 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hd-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf5ed;
    color: #397449;
}

.hd-comment-heading time {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .hd-community-comment {
        padding: 20px;
    }

    .hd-comment-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* Üzemeltetői belépés */

.hd-staff-login-page .form-label {
    color: var(--portal-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.hd-staff-login-page .field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
}

.hd-staff-guest-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #d4e7da;
    border-radius: 10px;
    background: #f0f8f2;
    text-align: center;
}

.hd-staff-guest-link strong {
    color: #355e42;
    font-size: 0.85rem;
}

.hd-staff-guest-link a {
    color: var(--portal-primary);
    font-size: 0.8rem;
    line-height: 1.7;
    text-underline-offset: 3px;
}

.hd-staff-guest-link a:hover {
    color: var(--portal-primary-hover);
}

/* Üzemeltetői és szervezeti operátori kezdőlap */

.hd-staff-home {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-staff-role {
    padding: 6px 12px;
    border: 1px solid #cce2d3;
    border-radius: 7px;
    background: #eaf5ed;
    color: #326342;
    font-size: 0.75rem;
    font-weight: 600;
}

.hd-staff-home-notice {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #cfe5d5;
    border-radius: 12px;
    background: #eaf5ed;
}

.hd-staff-home-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #285e39;
    font-size: 0.9rem;
}

.hd-staff-home-notice p {
    margin: 0;
    color: #496653;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Üzemeltetői hibajegylista */

.hd-ticket-filters {
    margin-bottom: 28px;
    background: #f7fcf8;
}

.hd-ticket-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hd-ticket-filter-grid>div {
    min-width: 0;
}

.hd-ticket-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hd-ticket-list-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
}

.hd-ticket-title-link {
    display: block;
    color: #176832;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hd-ticket-title-link:hover {
    color: #0b5125;
    text-decoration: underline;
}

@media (max-width: 1199.98px) {
    .hd-ticket-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hd-ticket-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-ticket-filter-actions {
        flex-direction: column;
    }
}

/* Hibajegycím-hivatkozás keskeny nézetben */

@media (max-width: 1199.98px) {

    .hd-ticket-title-link {
        font-size: 1.05rem;
        line-height: 1.5;
    }

}

/* Üzemeltetői hibajegykezelés */

.hd-manage-page {
    max-width: 1400px;
    margin: 0 auto;
}

.hd-manage-page .hd-welcome h1 {
    overflow-wrap: anywhere;
}

.hd-manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
        "report editor"
        "replies history"
        "replies moderation";
    align-items: start;
    gap: 24px;
}

.hd-manage-report {
    grid-area: report;
}

.hd-manage-editor {
    grid-area: editor;
    border-color: #b8d9c2;
}

.hd-manage-replies {
    grid-area: replies;
}

.hd-manage-history {
    grid-area: history;
}

.hd-manage-moderation {
    grid-area: moderation;
    background: #f8fcf9;
}

.hd-manage-save {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 600;
}

.hd-transition-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--portal-border);
}

.hd-transition-help summary {
    color: #42644d;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.hd-transition-help ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--portal-muted);
    font-size: 0.8rem;
    line-height: 1.9;
}

.hd-history-operator {
    margin-bottom: 4px;
    color: var(--portal-muted);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.hd-manage-page .hd-reply-heading strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .hd-manage-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "report"
            "editor"
            "replies"
            "history"
            "moderation";
    }
}

/* Közösségi moderálás */

.hd-moderation-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-moderation-ticket-context {
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
}

.hd-moderation-ticket-context h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hd-moderation-visibility {
    margin-bottom: 32px;
}

.hd-moderation-warning {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #ead6a8;
    border-radius: 10px;
    background: #fff7e6;
    color: #775016;
}

.hd-moderation-warning strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.hd-moderation-warning p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
}

.hd-moderation-comments {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-moderation-comment {
    border-left: 3px solid #7ab68b;
}

.hd-moderation-comment.is-hidden {
    border-left-color: #87978d;
    background: #f5f7f5;
}

.hd-moderation-comment .hd-comment-heading {
    margin-bottom: 10px;
}

.hd-moderation-comment .badge {
    max-width: 100%;
    padding: 7px 10px;
    white-space: normal;
    line-height: 1.5;
}

.hd-moderation-comment-time {
    margin-bottom: 20px;
    color: var(--portal-muted);
    font-size: 0.75rem;
}

.hd-moderation-comment-actions {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--portal-border);
}

.hd-moderation-data {
    grid-template-columns: 190px minmax(0, 1fr);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .hd-moderation-data {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-moderation-page .btn-outline-danger {
        width: 100%;
        white-space: normal;
    }
}

/* Üzemeltetői áttekintés */

.hd-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.hd-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.hd-dashboard-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-top: 4px solid var(--stat-color);
    border-radius: 12px;
    background: var(--stat-background);
    color: var(--portal-text);
    text-decoration: none;
}

.hd-dashboard-stat:hover {
    color: var(--portal-text);
    box-shadow: 0 5px 18px rgb(20 37 28 / 9%);
}

.hd-dashboard-stat h3 {
    margin: 0 0 14px;
    color: var(--stat-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.hd-dashboard-stat-value {
    display: block;
    margin-bottom: 20px;
    color: var(--portal-text);
    font-size: 2.4rem;
    font-weight: 750;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.hd-dashboard-stat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: var(--stat-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.hd-stat-new {
    --stat-color: #276046;
    --stat-background: #edf8f1;
}

.hd-stat-progress {
    --stat-color: #80520e;
    --stat-background: #fff8e9;
}

.hd-stat-resolved {
    --stat-color: #176b33;
    --stat-background: #e7f7ec;
}

.hd-stat-closed {
    --stat-color: #536259;
    --stat-background: #f0f3f1;
}

.hd-dashboard-list-action {
    display: flex;
    justify-content: flex-end;
    margin: 24px 0 36px;
}

.hd-dashboard-waiting-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hd-dashboard-waiting-heading>div {
    min-width: 0;
}

.hd-dashboard-waiting-heading h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.hd-dashboard-waiting-heading p {
    max-width: 750px;
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.hd-dashboard-waiting-count {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid #ead6a8;
    border-radius: 8px;
    background: #fff7e6;
    color: #775016;
    font-size: 0.8rem;
    font-weight: 600;
}

.hd-dashboard-room {
    margin: 0 0 8px;
    color: var(--portal-muted);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .hd-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-dashboard-waiting-heading {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .hd-dashboard-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-dashboard-list-action .btn {
        width: 100%;
    }
}

/* Szervezeti szobakezelés */

.hd-admin-rooms {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-admin-room-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-admin-room-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.hd-admin-room-heading h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-admin-community-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 6px;
    background: #edf3ef;
    color: #44634e;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.hd-admin-room-data {
    grid-template-columns: 145px minmax(0, 1fr);
    margin-top: 12px;
    font-size: 0.85rem;
}

.hd-admin-room-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--portal-border);
}

.hd-admin-room-actions .btn {
    padding: 10px 14px;
    border-radius: 9px;
}

/* Szobatörlés megerősítő ablaka */

.hd-room-delete-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgb(20 37 28 / 20%);
}

.hd-room-delete-modal .modal-header {
    padding: 22px 24px;
    border-bottom-color: var(--portal-border);
    background: #f3faf5;
}

.hd-room-delete-modal .modal-body {
    padding: 24px;
}

.hd-room-delete-modal .modal-footer {
    gap: 10px;
    padding: 18px 24px;
    border-top-color: var(--portal-border);
}

.hd-delete-room-name {
    margin-bottom: 22px;
    color: var(--portal-text);
    font-size: 1.1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .hd-admin-room-card {
        padding: 22px;
    }

    .hd-admin-room-data {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-admin-room-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hd-room-delete-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .hd-room-delete-modal .modal-footer>*,
    .hd-room-delete-modal .modal-footer form .btn {
        width: 100%;
        margin: 0;
    }
}

/* Közös adminisztrációs űrlapok */

.hd-admin-form-page {
    max-width: 850px;
    margin: 0 auto;
}

.hd-admin-form-page .hd-welcome {
    padding: 30px;
}

.hd-admin-form-page .hd-welcome h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    overflow-wrap: anywhere;
}

.hd-setting-panel {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid #cfe5d5;
    border-radius: 10px;
    background: #f0f8f2;
}

.hd-setting-panel .form-check {
    margin-bottom: 0;
}

.hd-setting-panel .form-check-label {
    color: #285e39;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.hd-setting-panel>p {
    margin: 12px 0 0;
    color: #496653;
    font-size: 0.82rem;
    line-height: 1.8;
}

.hd-admin-form-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--portal-border);
}

@media (max-width: 575.98px) {
    .hd-admin-form-page .hd-welcome {
        padding: 24px 22px;
    }

    .hd-setting-panel {
        padding: 18px;
    }
}

/* Szerkesztőűrlapok kiegészítő elemei */

.hd-welcome .hd-edit-room-name {
    margin-bottom: 12px;
    color: #285e39;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.hd-readonly-value {
    padding: 15px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    background: #f2f6f3;
    overflow-wrap: anywhere;
}

.hd-readonly-value code {
    color: #365b42;
    font-size: 0.9rem;
}

.hd-setting-notice {
    padding: 18px 20px;
    border: 1px solid #cfe5d5;
    border-radius: 10px;
    background: #f5fbf7;
}

.hd-setting-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #355e42;
    font-size: 0.85rem;
}

.hd-setting-notice p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Szervezeti felhasználókezelés */

.hd-admin-users {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-user-access-notice {
    margin-bottom: 28px;
}

.hd-admin-user-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-admin-user-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-admin-user-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.hd-admin-user-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.hd-admin-user-identity h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hd-user-role {
    padding: 7px 11px;
    border: 1px solid #d0e4d6;
    border-radius: 7px;
    background: #edf7f0;
    color: #355e42;
    font-size: 0.75rem;
    font-weight: 600;
}

.hd-admin-user-card .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
}

.hd-admin-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--portal-border);
}

.hd-admin-user-actions form {
    margin: 0;
    min-width: 0;
}

.hd-admin-user-actions .btn {
    padding: 10px 14px;
    border-radius: 9px;
    white-space: normal;
}

.hd-user-protected {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 0.8rem;
}

/* Felhasználó törlésének megerősítése */

.hd-user-delete-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgb(20 37 28 / 20%);
}

.hd-user-delete-modal .modal-header {
    padding: 22px 24px;
    border-bottom-color: var(--portal-border);
    background: #f3faf5;
}

.hd-user-delete-modal .modal-body {
    padding: 24px;
}

.hd-user-delete-modal .modal-footer {
    gap: 10px;
    padding: 18px 24px;
    border-top-color: var(--portal-border);
}

@media (max-width: 575.98px) {
    .hd-admin-user-card {
        padding: 22px;
    }

    .hd-admin-user-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hd-admin-user-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hd-admin-user-actions form .btn {
        width: 100%;
    }

    .hd-user-delete-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .hd-user-delete-modal .modal-footer>*,
    .hd-user-delete-modal .modal-footer form .btn {
        width: 100%;
        margin: 0;
    }
}

/* Adminisztrációs napló */

.hd-audit-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-audit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-audit-entry {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--portal-border);
    border-left: 4px solid #72ae84;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgb(20 37 28 / 3%);
}

.hd-audit-entry-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 14px;
}

.hd-audit-entry-heading h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hd-audit-entry-heading time {
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.hd-audit-actor {
    margin-bottom: 22px;
    color: var(--portal-muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.hd-audit-actor strong {
    color: #355e42;
}

.hd-audit-details {
    padding: 18px;
    border: 1px solid #e0ece4;
    border-radius: 9px;
    background: #f5faf7;
}

.hd-audit-details h4 {
    margin: 0 0 12px;
    color: #496653;
    font-size: 0.8rem;
    font-weight: 600;
}

.hd-audit-target {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--portal-border);
    font-size: 0.75rem;
}

.hd-audit-target dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.hd-audit-target dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.hd-audit-target code {
    color: #496653;
}

@media (max-width: 575.98px) {
    .hd-audit-entry {
        padding: 22px 18px;
    }

    .hd-audit-entry-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hd-audit-target {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Rendszeradminisztrátori kezdőlap */

.hd-system-home {
    max-width: 1400px;
    margin: 0 auto;
}

.hd-system-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hd-system-toolbar .btn {
    padding: 11px 18px;
    border-radius: 9px;
}

.hd-system-organization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.hd-system-organization-grid .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
}

.hd-system-organization-data {
    grid-template-columns: 155px minmax(0, 1fr);
    margin-top: 12px;
    font-size: 0.82rem;
}

.hd-system-organization-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--portal-border);
}

.hd-system-organization-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hd-system-organization-delete {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
}

.hd-system-organization-delete .btn {
    padding: 10px 14px;
    border-radius: 9px;
}

@media (max-width: 1199.98px) {
    .hd-system-organization-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hd-system-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hd-system-organization-data {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-system-organization-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-system-organization-delete .btn {
        width: 100%;
    }

    #confirmDeleteOrganization {
        white-space: normal;
    }
}

/* Központi adminisztrációs napló */

.hd-central-audit-filters {
    margin-bottom: 32px;
    background: #f7fcf8;
}

.hd-audit-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.hd-audit-filter-grid>div {
    min-width: 0;
}

.hd-audit-filter-grid .form-control,
.hd-audit-filter-grid .form-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.hd-audit-organization {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hd-audit-organization strong {
    min-width: 0;
    color: #355e42;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hd-audit-organization .badge {
    padding: 6px 9px;
    font-weight: 500;
    white-space: normal;
}

@media (max-width: 767.98px) {
    .hd-audit-filter-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

/* Adatvédelmi technikai ismertető */

.hd-privacy-page {
    max-width: 950px;
}

.hd-privacy-page .hd-form-panel>p {
    margin-bottom: 18px;
    color: #496653;
    font-size: 0.95rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.hd-privacy-page .hd-form-panel>p:last-child {
    margin-bottom: 0;
}

.hd-privacy-page .hd-form-panel-heading h2 {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {

    .hd-admin-room-actions>form,
    .hd-admin-room-actions>form .btn {
        width: 100%;
    }
}

/* Munkamenet lejárati figyelmeztetés */

.hd-session-countdown {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #ead6a8;
    border-radius: 9px;
    background: #fff7e6;
    color: #775016;
    line-height: 1.7;
}

.hd-session-countdown strong {
    font-size: 1.15rem;
}

/* Munkamenet állapota a bal oldali menüben */

.hd-session-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 14px 12px;
    border: 1px solid #3b6248;
    border-radius: 10px;
    background: #203d2b;
    color: #a8edb7;
}

.hd-session-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hd-session-indicator-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.hd-session-caption {
    color: #c2d8c9;
    font-size: 0.65rem;
    line-height: 1.5;
}

#staffSessionRemaining {
    color: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.hd-session-indicator.is-warning {
    border-color: #8d7135;
    background: #44391f;
    color: #ffda85;
}

.hd-session-indicator.is-warning .hd-session-caption {
    color: #f1dfb3;
}

.hd-session-indicator.is-expired {
    border-color: #85504a;
    background: #472b28;
    color: #ffc0b6;
}

.hd-session-indicator.is-expired .hd-session-caption {
    color: #f0ccc6;
}

/* Valós idejű hibajegyértesítések */

.hd-ticket-notifications {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hd-ticket-notice {
    flex-shrink: 0;
    padding: 20px;
    border: 1px solid #dce8de;
    border-left: 5px solid #12853d;
    border-radius: 14px;
    background: #fff;
    color: #193b27;
    box-shadow: 0 12px 36px rgb(20 37 28 / 18%);
    overflow-wrap: anywhere;
    animation: hd-ticket-notice-enter 180ms ease-out;
}

.hd-ticket-notice.is-urgent {
    border-left-color: #bd3030;
}

.hd-ticket-notice-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hd-ticket-notice-label {
    color: #12853d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hd-ticket-notice-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f0f6f1;
    color: #395c45;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.hd-ticket-notice-close:hover {
    background: #e1eee4;
}

.hd-ticket-notice-close:focus-visible {
    outline: 3px solid #12853d;
    outline-offset: 3px;
}

.hd-ticket-notice-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.hd-ticket-notice-meta {
    margin: 0 0 16px;
    color: #586c5f;
    font-size: .85rem;
    line-height: 1.7;
}

.hd-ticket-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@keyframes hd-ticket-notice-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .hd-ticket-notifications {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: auto;
        left: 50%;
        width: min(420px, calc(100vw - 24px));
        transform: translateX(-50%);
        max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    }

    .hd-ticket-notice {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-ticket-notice {
        animation: none;
    }
}

/* Közös, görgetéskor is elérhető navigáció */

:root {
    --hd-page-header-height: 56px;
}

html {
    scroll-padding-top: calc(var(--hd-page-header-height) + 16px);
}

.hd-page-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    flex-shrink: 0;
    background: var(--portal-background);
    box-shadow: 0 2px 8px rgb(20 37 28 / 4%);
}

.hd-page-header .hd-topbar {
    min-height: 56px;
    padding: 12px 24px;
    overflow-wrap: anywhere;
}

.hd-page-navigation {
    padding: 0 24px 10px;
    border-bottom: 1px solid var(--portal-border);
    background: var(--portal-background);
}

.hd-page-navigation[hidden] {
    display: none;
}

.hd-page-navigation .hd-join-back {
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 8px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-main {
    padding: 24px;
}

.hd-footer {
    padding: 12px 24px;
}

/* A főoldal jobban kihasználja a rendelkezésre álló helyet. */

.hd-organizations {
    max-width: none;
}

.hd-organizations .hd-welcome {
    gap: 20px;
    margin-bottom: 22px;
    padding: 24px;
}

.hd-organizations .hd-welcome h1 {
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
}

.hd-organizations .hd-welcome p {
    max-width: 760px;
    line-height: 1.55;
}

.hd-organizations .hd-welcome-icon {
    width: 80px;
    height: 80px;
}

.hd-organization-grid {
    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.hd-organization-card {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 16px;
    min-width: 0;
    padding: 20px;
}

.hd-organization-icon {
    width: 48px;
    height: 48px;
}

.hd-organization-information h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.hd-organization-information p {
    font-size: .875rem;
    line-height: 1.5;
}

.hd-organization-button {
    align-self: end;
    min-height: 44px;
    margin-top: 0;
    padding: 10px 14px;
    gap: 10px;
}

.hd-organization-button span {
    flex-shrink: 0;
}

.hd-organizations .hd-section-heading {
    margin-bottom: 14px;
}

.hd-organizations .hd-public-help {
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
}

.hd-organizations .hd-public-help p {
    font-size: .85rem;
    line-height: 1.5;
}

/* Mobilon a menü a látható fejléc alatt nyílik meg. */

@media (max-width: 991.98px) {
    .hd-page-header .hd-mobile-header {
        min-height: 64px;
        padding: 10px 16px;
    }

    .hd-mobile-header button {
        min-height: 44px;
    }

    .hd-page-header .hd-topbar {
        min-height: 42px;
        padding: 8px 16px;
        gap: 8px;
    }

    .hd-page-navigation {
        padding: 0 16px 6px;
    }

    .hd-sidebar {
        position: fixed;
        inset: var(--hd-page-header-height) 0 0;
        z-index: 1030;
        max-height: calc(100dvh - var(--hd-page-header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 12px 24px rgb(20 37 28 / 15%);
    }

    .hd-sidebar.collapsing {
        transition: none;
    }

    .hd-main {
        padding: 20px 16px;
    }

    .hd-footer {
        padding: 12px 16px;
    }
}

/* Alacsonyabb laptopkijelzőn tömörebb főoldal. */

@media (min-width: 992px) and (max-height: 800px) {
    .hd-organizations .hd-welcome {
        margin-bottom: 18px;
        padding: 20px;
    }

    .hd-organizations .hd-welcome h1 {
        font-size: 1.9rem;
    }

    .hd-organizations .hd-eyebrow {
        margin-bottom: 8px;
    }

    .hd-organizations .hd-welcome-icon {
        width: 64px;
        height: 64px;
    }

    .hd-organizations .hd-organization-card {
        gap: 12px;
        padding: 18px;
    }

    .hd-organizations .hd-public-help {
        margin-top: 16px;
        padding: 12px 14px;
    }
}

@media (max-width: 575.98px) {
    .hd-organization-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-organizations .hd-welcome {
        padding: 20px;
    }
}

/* Szervezetkártyák: biztonságos tördelés kisebb ablakban */

.hd-organizations .hd-organization-grid {
    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, 300px), 1fr));
    align-items: stretch;
    gap: 16px;
}

.hd-organizations .hd-organization-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    height: auto;
    padding: 20px;
}

.hd-organization-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.hd-organization-heading .hd-organization-icon {
    flex: 0 0 48px;
}

.hd-organization-heading .hd-organization-information {
    flex: 1;
    min-width: 0;
}

.hd-organization-heading h3 {
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.hd-organization-heading p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.hd-organizations .hd-organization-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 14px;
    text-align: left;
}

.hd-organizations .hd-organization-button-label {
    flex: 1;
    min-width: 0;
    font-size: .9rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Vendégoldali szobaválasztó: rugalmas, kompakt elrendezés */

.hd-rooms-page {
    max-width: none;
    min-width: 0;
}

.hd-rooms-page .hd-welcome {
    gap: 20px;
    margin-bottom: 22px;
    padding: 24px;
}

.hd-rooms-page .hd-welcome>div {
    min-width: 0;
}

.hd-rooms-page .hd-welcome h1 {
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    overflow-wrap: anywhere;
}

.hd-rooms-page .hd-welcome p {
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.55;
}

.hd-rooms-page .hd-welcome-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.hd-rooms-page .hd-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hd-rooms-page .hd-room-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
    gap: 16px;
}

.hd-rooms-page .hd-room-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    height: auto;
    padding: 20px;
}

.hd-rooms-page .hd-room-card-heading {
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    margin-bottom: 0;
}

.hd-rooms-page .hd-room-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.hd-rooms-page .hd-room-card-heading h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hd-rooms-page .hd-room-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.hd-rooms-page .hd-room-community {
    align-self: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 6px 10px;
    overflow-wrap: anywhere;
}

.hd-rooms-page .hd-room-community span {
    flex-shrink: 0;
}

.hd-rooms-page .hd-room-open {
    align-self: stretch;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hd-rooms-page .hd-room-open span {
    flex-shrink: 0;
}

@media (min-width: 992px) and (max-height: 800px) {
    .hd-rooms-page .hd-welcome {
        margin-bottom: 18px;
        padding: 20px;
    }

    .hd-rooms-page .hd-eyebrow {
        margin-bottom: 8px;
    }

    .hd-rooms-page .hd-welcome-icon {
        width: 64px;
        height: 64px;
    }

    .hd-rooms-page .hd-room-card {
        gap: 14px;
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .hd-rooms-page .hd-welcome {
        padding: 20px;
    }

    .hd-rooms-page .hd-welcome-icon {
        display: none;
    }

    .hd-rooms-page .hd-room-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Kompakt szervezeti vendégbelépés */

.hd-organization-login {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.hd-organization-login .hd-join-card {
    padding: 24px;
}

.hd-organization-login .hd-join-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
}

.hd-organization-login .hd-join-icon svg {
    width: 28px;
    height: 28px;
}

.hd-organization-login .hd-eyebrow {
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.hd-organization-login h1 {
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    line-height: 1.25;
}

.hd-organization-login .hd-join-description {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hd-organization-login .hd-join-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
}

.hd-organization-login .hd-join-notice strong {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.hd-organization-login .hd-join-notice p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.hd-organization-login form .mb-4 {
    margin-bottom: 16px !important;
}

.hd-organization-login .form-label {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.hd-organization-login .hd-join-input {
    min-height: 44px;
    font-size: 1rem;
}

.hd-organization-login .hd-join-submit {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.hd-organization-login .hd-join-help {
    margin-top: 16px;
    padding-top: 12px;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .hd-organization-login .hd-join-card {
        padding: 20px;
    }
}

@media (min-width: 992px) and (max-height: 800px) {
    .hd-organization-login .hd-join-card {
        padding: 20px;
    }

    .hd-organization-login .hd-join-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
}

/* Szoba kezdőlap: kompakt, reszponzív elrendezés */

.hd-room-home {
    max-width: none;
    min-width: 0;
}

.hd-room-home .hd-welcome {
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
}

.hd-room-home .hd-welcome>div {
    min-width: 0;
}

.hd-room-home .hd-eyebrow {
    margin-bottom: 8px;
}

.hd-room-home .hd-welcome h1 {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hd-room-home .hd-welcome p {
    max-width: 800px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.hd-room-home .hd-welcome-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.hd-room-home .hd-section-heading {
    margin-bottom: 14px;
}

.hd-room-home .hd-room-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hd-room-home .hd-action-card {
    gap: 14px;
    min-width: 0;
    min-height: 112px;
    padding: 20px;
}

.hd-room-home .hd-action-icon {
    width: 44px;
    height: 48px;
}

.hd-room-home .hd-action-icon svg {
    width: 26px;
    height: 26px;
}

.hd-room-home .hd-action-content {
    gap: 6px;
}

.hd-room-home .hd-action-content strong {
    font-size: 1rem;
    line-height: 1.35;
}

.hd-room-home .hd-action-content>span {
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hd-room-home .hd-action-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
}

@media (min-width: 992px) and (max-height: 800px) {
    .hd-room-home .hd-welcome {
        margin-bottom: 16px;
        padding: 20px;
    }

    .hd-room-home .hd-welcome-icon {
        width: 56px;
        height: 56px;
    }

    .hd-room-home .hd-action-card {
        min-height: 100px;
        padding: 16px 18px;
    }

    .hd-room-home .hd-room-actions {
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .hd-room-home .hd-room-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hd-room-home .hd-action-card {
        min-height: 96px;
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .hd-room-home .hd-welcome {
        padding: 20px;
    }

    .hd-room-home .hd-welcome-icon {
        display: none;
    }
}

/* Kompakt oldalsó menü */

.hd-sidebar {
    box-sizing: border-box;
    padding: 16px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hd-sidebar .hd-brand {
    flex-shrink: 0;
    padding: 4px 8px 18px;
}

.hd-sidebar .hd-sidebar-content {
    flex: 1 0 auto;
    min-width: 0;
}

.hd-sidebar .hd-sidebar-context {
    gap: 4px;
    padding-bottom: 14px;
}

.hd-sidebar .hd-sidebar-label {
    margin-bottom: 6px;
}

.hd-sidebar .hd-navigation {
    gap: 3px;
}

.hd-sidebar .hd-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
}

.hd-sidebar .hd-sidebar-divider {
    flex-shrink: 0;
    margin: 8px 12px;
}

.hd-sidebar .hd-account {
    flex-shrink: 0;
    margin-top: 18px;
    padding-top: 14px;
}

.hd-sidebar .hd-account-name {
    margin-bottom: 6px;
}

.hd-sidebar .hd-account-action {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-sidebar .hd-account-help {
    margin-top: 6px;
    line-height: 1.4;
}

.hd-sidebar .hd-session-indicator {
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
}

/* Alacsonyabb ablakban még kisebb térközök */

@media (max-height: 800px) {
    .hd-sidebar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hd-sidebar .hd-brand {
        padding-bottom: 12px;
    }

    .hd-sidebar .hd-sidebar-context {
        padding-bottom: 10px;
    }

    .hd-sidebar .hd-navigation {
        gap: 0;
    }

    .hd-sidebar .hd-sidebar-label {
        margin-bottom: 4px;
    }

    .hd-sidebar .hd-sidebar-divider {
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .hd-sidebar .hd-account {
        margin-top: 12px;
        padding-top: 10px;
    }

    .hd-sidebar .hd-session-indicator {
        margin: 8px 0;
        padding: 8px 10px;
    }
}

/* Kompakt üzemeltetői belépés */

.hd-staff-login-page {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.hd-staff-login-page .hd-join-card {
    padding: 24px;
}

.hd-staff-login-page .hd-join-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 14px;
}

.hd-staff-login-page .hd-join-icon svg {
    width: 28px;
    height: 28px;
}

.hd-staff-login-page .hd-eyebrow {
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.hd-staff-login-page h1 {
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    line-height: 1.25;
}

.hd-staff-login-page .hd-join-description {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hd-staff-login-page .form-label {
    margin-bottom: 6px;
}

.hd-staff-login-page .hd-join-input {
    min-height: 44px;
    font-size: 1rem;
}

.hd-staff-login-page form .mb-3,
.hd-staff-login-page form .mb-4 {
    margin-bottom: 12px !important;
}

.hd-staff-login-page .hd-join-submit {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.hd-staff-login-page .hd-join-help {
    margin-top: 14px;
    padding-top: 12px;
    line-height: 1.5;
}

.hd-staff-login-page .hd-staff-guest-link {
    gap: 4px;
    margin-top: 12px;
    padding: 10px 12px;
}

.hd-staff-login-page .hd-staff-guest-link a {
    line-height: 1.5;
}

@media (min-width: 992px) and (max-height: 800px) {
    .hd-staff-login-page .hd-join-card {
        padding: 20px;
    }

    .hd-staff-login-page .hd-join-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .hd-staff-login-page .hd-join-description {
        margin-bottom: 12px;
    }
}

@media (max-width: 575.98px) {
    .hd-staff-login-page .hd-join-card {
        padding: 20px;
    }
}

/* Lenyitható kereső- és szűrőpanelek */

.hd-form-panel.hd-filter-disclosure {
    min-width: 0;
    margin-bottom: 24px;
    padding: 0;
}

.hd-filter-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 56px;
    padding: 16px 20px;
    border-radius: inherit;
    cursor: pointer;
    list-style: none;
}

.hd-filter-summary::-webkit-details-marker {
    display: none;
}

.hd-filter-summary::marker {
    content: "";
}

.hd-filter-summary h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--portal-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-filter-summary:hover {
    background: #eaf6ee;
}

.hd-filter-summary:focus-visible {
    outline: 3px solid var(--portal-primary);
    outline-offset: 3px;
}

.hd-filter-active {
    padding: 4px 9px;
    border-radius: 6px;
    background: #e0f2e5;
    color: #216638;
    font-size: 0.75rem;
    font-weight: 600;
}

.hd-filter-chevron {
    flex-shrink: 0;
    color: var(--portal-primary);
    font-size: 1.3rem;
    line-height: 1;
}

.hd-filter-disclosure[open]>.hd-filter-summary {
    border-bottom: 1px solid var(--portal-border);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.hd-filter-disclosure[open] .hd-filter-chevron {
    transform: rotate(180deg);
}

.hd-filter-body {
    min-width: 0;
    padding: 20px;
}

.hd-filter-body>form {
    margin: 0;
}

@media (max-width: 575.98px) {
    .hd-filter-summary {
        gap: 8px;
        padding: 14px 16px;
    }

    .hd-filter-body {
        padding: 16px;
    }
}

/* Tömörebb hibajegy- és közösségi oldalak */

.hd-operator-tickets,
.hd-community-page,
.hd-community-detail {
    max-width: none;
    min-width: 0;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-welcome {
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-welcome>div {
    min-width: 0;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-welcome .hd-eyebrow {
    margin-bottom: 6px;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-welcome h1 {
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-welcome p {
    max-width: 900px;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hd-community-page .hd-welcome-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

:is(.hd-operator-tickets, .hd-community-page, .hd-community-detail) .hd-section-heading {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.hd-operator-tickets .hd-filter-disclosure {
    margin-bottom: 16px;
}

/* Közösségi lista */

.hd-community-notice.hd-community-info {
    margin-bottom: 16px;
    padding: 0;
}

.hd-community-info .hd-filter-summary>strong {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.hd-community-info>p {
    padding: 0 20px 16px;
}

.hd-community-info[open] .hd-filter-chevron {
    transform: rotate(180deg);
}

.hd-community-page .hd-community-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hd-community-page .hd-community-ticket {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.hd-community-page .hd-community-ticket-heading {
    margin: 0;
    gap: 12px;
}

.hd-community-page .hd-community-ticket-heading h3 {
    font-size: 1rem;
}

.hd-community-page .hd-community-published {
    margin: 0;
    font-size: 0.75rem;
}

.hd-community-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.5;
}

.hd-community-page .hd-community-ticket-footer {
    margin-top: auto;
    padding-top: 12px;
}

.hd-community-ticket-footer .btn {
    min-height: 44px;
    font-size: 0.85rem;
    white-space: normal;
}

/* Egy közösségi jegy részletei */

.hd-community-detail .hd-community-description {
    margin-bottom: 16px;
    padding: 18px;
}

.hd-community-detail .hd-form-panel-heading {
    margin-bottom: 10px;
}

.hd-community-detail .hd-form-panel-heading h2 {
    font-size: 1rem;
}

.hd-community-detail .hd-community-comment-form {
    margin-bottom: 16px;
}

.hd-community-detail .hd-form-description {
    margin-bottom: 12px;
}

.hd-community-detail .hd-community-comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.hd-community-detail .hd-comment-privacy {
    margin-bottom: 12px;
    padding: 10px 12px;
    line-height: 1.5;
}

.hd-community-detail .hd-community-comments {
    gap: 12px;
}

.hd-community-detail .hd-community-comment {
    padding: 16px;
}

.hd-community-detail .hd-comment-heading {
    gap: 10px;
    margin-bottom: 10px;
}

.hd-community-detail .hd-comment-avatar {
    width: 32px;
    height: 32px;
}

@media (max-width: 767.98px) {
    .hd-community-page .hd-community-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hd-community-page .hd-welcome-icon {
        display: none;
    }
}

/* Egységes, kompakt jelszómódosító oldalak */

.hd-admin-form-page.hd-password-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.hd-password-page .hd-welcome {
    margin-bottom: 16px;
    padding: 18px 22px;
}

.hd-password-page .hd-welcome>div {
    min-width: 0;
}

.hd-password-page .hd-welcome .hd-eyebrow {
    margin-bottom: 6px;
}

.hd-password-page .hd-welcome h1 {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 2.3vw, 1.85rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hd-password-page .hd-welcome p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hd-password-page .hd-welcome .hd-edit-room-name {
    margin-bottom: 6px;
}

.hd-password-page>.hd-form-panel {
    padding: 20px;
}

.hd-password-context,
.hd-password-page .hd-form-panel>form {
    min-width: 0;
}

.hd-password-page .hd-form-panel-heading {
    margin-bottom: 12px;
}

.hd-password-page .hd-form-panel-heading h2 {
    font-size: 1rem;
    line-height: 1.4;
}

.hd-password-page .hd-setting-notice,
.hd-password-page .hd-moderation-warning,
.hd-password-page .hd-detail-empty {
    padding: 12px 14px;
}

.hd-password-page .hd-setting-notice strong {
    margin-bottom: 6px;
}

.hd-password-page .hd-setting-notice p,
.hd-password-page .hd-moderation-warning p {
    line-height: 1.5;
}

.hd-password-page .hd-form-description {
    margin-bottom: 12px;
    line-height: 1.5;
}

.hd-password-page .mb-4 {
    margin-bottom: 14px !important;
}

.hd-password-page .form-label {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.hd-password-page .form-control {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 1rem;
}

.hd-password-page .form-text {
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.hd-password-page .hd-form-actions {
    gap: 10px;
    margin-top: 16px;
    padding-top: 0;
}

.hd-password-page .hd-form-actions .btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.85rem;
    white-space: normal;
}

/* Laptop és nagy monitor: tájékoztató és űrlap egymás mellett. */

@media (min-width: 1100px) {
    .hd-password-page>.hd-form-panel {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: start;
        gap: 24px;
    }

    .hd-password-context {
        padding-right: 24px;
        border-right: 1px solid var(--portal-border);
    }

    .hd-password-page .hd-form-panel>form {
        margin: 0;
    }
}

/* Kisebb kijelzőn egymás alá rendezett tartalom. */

@media (max-width: 1099.98px) {
    .hd-password-context {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {

    .hd-password-page .hd-welcome,
    .hd-password-page>.hd-form-panel {
        padding: 18px;
    }
}

/* Reszponzív üzemeltetői hibajegylista */

.hd-operator-tickets {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hd-ticket-page-heading {
    margin-bottom: 20px;
}

.hd-ticket-page-heading .hd-eyebrow {
    margin-bottom: 6px;
}

.hd-ticket-page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.hd-ticket-page-heading p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hd-inbox-list {
    margin: 0;
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
    list-style: none;
}

.hd-inbox-list>li+li {
    border-top: 1px solid var(--portal-border);
}

.hd-inbox-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(150px, 190px) minmax(220px, 260px);
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 16px 18px;
    border-left: 4px solid transparent;
}

.hd-inbox-row:hover {
    background: #f5fbf7;
}

.hd-inbox-row-urgent {
    border-left-color: #c43c3c;
}

.hd-inbox-main {
    min-width: 0;
}

.hd-inbox-main h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.hd-inbox-main h3 a {
    color: #176832;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hd-inbox-main h3 a:hover {
    text-decoration: underline;
}

.hd-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--portal-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.hd-inbox-meta>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hd-inbox-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hd-inbox-badge {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hd-inbox-state-new {
    background: #e8efff;
    color: #2453a6;
}

.hd-inbox-state-progress {
    background: #fff1ce;
    color: #795700;
}

.hd-inbox-state-resolved {
    background: #e2f4e8;
    color: #216638;
}

.hd-inbox-state-closed {
    background: #edf0ee;
    color: #526158;
}

.hd-inbox-priority-normal {
    background: #f2f5f3;
    color: #526158;
}

.hd-inbox-priority-high {
    background: #fff0d8;
    color: #865400;
}

.hd-inbox-priority-urgent {
    background: #fde8e8;
    color: #a52828;
}

.hd-inbox-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.hd-inbox-date {
    min-width: 0;
    color: var(--portal-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.hd-inbox-date-label {
    display: block;
    font-size: 0.7rem;
}

.hd-inbox-open {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 0.8rem;
}

/* Kisebb laptopablak és tablet */

@media (max-width: 1199.98px) {
    .hd-inbox-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 16px;
    }

    .hd-inbox-main {
        grid-column: 1;
        grid-row: 1;
    }

    .hd-inbox-labels {
        grid-column: 1;
        grid-row: 2;
    }

    .hd-inbox-end {
        grid-column: 2;
        grid-row: 1 / 3;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .hd-inbox-date {
        text-align: right;
    }
}

/* Telefon */

@media (max-width: 767.98px) {
    .hd-inbox-list {
        display: grid;
        gap: 12px;
        border: 0;
        background: transparent;
    }

    .hd-inbox-list>li+li {
        border-top: 0;
    }

    .hd-inbox-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--portal-border);
        border-left: 4px solid transparent;
        border-radius: 12px;
        background: #ffffff;
    }

    .hd-inbox-row-urgent {
        border-left-color: #c43c3c;
    }

    .hd-inbox-main,
    .hd-inbox-labels,
    .hd-inbox-end {
        grid-column: 1;
        grid-row: auto;
    }

    .hd-inbox-end {
        flex-direction: row;
        align-items: center;
        padding-top: 12px;
        border-top: 1px solid var(--portal-border);
    }

    .hd-inbox-date {
        text-align: left;
    }
}

/* Kompaktabb hibajegylista laptopon és nagy monitoron */

@media (min-width: 1200px) {
    .hd-operator-tickets .hd-ticket-page-heading {
        margin-bottom: 12px;
    }

    .hd-ticket-page-heading .hd-eyebrow {
        margin-bottom: 4px;
    }

    .hd-ticket-page-heading h1 {
        margin-bottom: 6px;
        font-size: 1.7rem;
    }

    .hd-operator-tickets .hd-filter-disclosure {
        margin-bottom: 12px;
    }

    .hd-operator-tickets .hd-filter-summary {
        min-height: 48px;
        padding: 12px 16px;
    }

    .hd-operator-tickets .hd-section-heading {
        margin-bottom: 12px;
    }

    .hd-operator-tickets .hd-section-heading>.btn {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hd-operator-tickets .hd-inbox-row {
        gap: 16px;
        padding: 9px 16px;
    }

    .hd-inbox-main h3 {
        margin-bottom: 4px;
        font-size: 0.95rem;
    }

    .hd-inbox-meta {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hd-operator-tickets .hd-pagination {
        gap: 12px;
        margin-top: 14px;
        margin-bottom: 0;
    }

    .hd-operator-tickets .hd-pagination .btn {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Üzemeltetői belső feladatok */

.hd-operator-tasks {
    max-width: 1280px;
    min-width: 0;
    margin: 0 auto;
}

.hd-task-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hd-task-heading .hd-ticket-page-heading {
    min-width: 0;
    margin-bottom: 0;
}

.hd-task-heading>.btn {
    flex-shrink: 0;
    min-height: 44px;
}

.hd-operator-tasks .hd-filter-disclosure {
    margin-bottom: 16px;
}

.hd-operator-tasks .hd-inbox-main h3 {
    color: #176832;
    overflow-wrap: anywhere;
}

.hd-task-details {
    grid-column: 1 / -1;
    min-width: 0;
}

.hd-task-details>summary {
    width: fit-content;
    max-width: 100%;
    padding: 8px 0;
    color: var(--portal-primary);
    font-size: 0.8rem;
    line-height: 1.5;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.hd-task-details>summary:focus-visible {
    outline: 3px solid var(--portal-primary);
    outline-offset: 3px;
}

.hd-task-details-body {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: #f5fbf7;
}

.hd-task-status-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hd-task-status-form>div {
    flex: 1 1 200px;
    min-width: 0;
}

.hd-task-status-form .btn,
.hd-task-status-form .form-select {
    min-height: 44px;
}

.hd-task-create-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hd-task-create-page .hd-form-panel {
    padding: 22px;
}

.hd-task-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.hd-task-fields>div {
    min-width: 0;
}

.hd-task-create-page .form-control,
.hd-task-create-page .form-select {
    min-height: 44px;
}

.hd-task-help {
    color: var(--portal-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .hd-task-heading {
        flex-direction: column;
    }

    .hd-task-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-task-create-page .hd-form-panel {
        padding: 18px;
    }

    .hd-task-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .hd-task-status-form>div {
        flex: initial;
    }
}

/* Belső feladatok állapotváltási előzményei */

.hd-task-history-page {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto;
}

.hd-task-history-summary {
    margin-bottom: 20px;
    padding: 20px;
}

.hd-task-history-data {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0;
    font-size: 0.9rem;
}

.hd-task-history-data dt {
    color: var(--portal-muted);
    font-weight: 600;
}

.hd-task-history-data dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.hd-task-history-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-task-history-entry {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--portal-border);
    border-left: 4px solid var(--portal-primary);
    border-radius: 10px;
    background: #ffffff;
}

.hd-task-history-top,
.hd-task-history-states {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hd-task-history-top {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hd-task-history-top time {
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.hd-task-history-entry p {
    margin: 0;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.hd-task-history-link {
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 0.85rem;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .hd-task-history-data {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .hd-task-history-data dd {
        margin-bottom: 10px;
    }

    .hd-task-history-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .hd-task-history-summary,
    .hd-task-history-entry {
        padding: 16px;
    }
}

/* Szervezeti üzemeltetői statisztika */

.hd-statistics-page {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin: 0 auto;
}

.hd-statistics-period {
    margin: 16px 0;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.hd-statistics-totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.hd-statistics-totals article {
    padding: 18px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
}

.hd-statistics-totals span {
    display: block;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.hd-statistics-totals strong {
    display: block;
    margin-top: 6px;
    color: var(--portal-primary);
    font-size: 1.8rem;
    line-height: 1.2;
}

.hd-performance-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.85rem;
}

.hd-performance-table th,
.hd-performance-table td {
    padding: 14px 12px;
    border: 1px solid var(--portal-border);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.hd-performance-table thead th {
    background: #eaf5ed;
    color: #355e42;
}

.hd-performance-table small {
    display: block;
    margin-top: 5px;
    color: var(--portal-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.hd-statistics-average {
    margin: 16px 0 8px;
    font-size: 0.9rem;
}

.hd-statistics-page>section {
    margin-top: 24px;
}

.hd-ticket-timings {
    display: grid;
    gap: 14px;
}

.hd-ticket-timing {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
}

.hd-ticket-timing-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.hd-ticket-timing-heading h3 {
    min-width: 0;
    margin: 0;
    color: #176832;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.hd-ticket-timing-heading>span {
    color: var(--portal-muted);
    font-size: 0.8rem;
}

.hd-ticket-timing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 14px 0 0;
}

.hd-ticket-timing-grid>div {
    min-width: 0;
}

.hd-ticket-timing-grid dt {
    margin-bottom: 6px;
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.hd-ticket-timing-grid dd {
    margin: 0;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.hd-ticket-timing-grid small {
    display: block;
    margin-top: 4px;
    color: var(--portal-muted);
    font-size: 0.75rem;
}

@media (max-width: 1199.98px) {

    .hd-performance-table,
    .hd-performance-table tbody {
        display: block;
    }

    .hd-performance-table {
        background: transparent;
    }

    .hd-performance-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .hd-performance-table tbody {
        display: grid;
        gap: 14px;
    }

    .hd-performance-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--portal-border);
        border-radius: 12px;
        background: #ffffff;
    }

    .hd-performance-table tbody th,
    .hd-performance-table tbody td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .hd-performance-table tbody th {
        grid-column: 1 / -1;
        color: #176832;
        font-size: 1rem;
    }

    .hd-performance-table td[data-label]::before {
        display: block;
        margin-bottom: 5px;
        color: var(--portal-muted);
        font-size: 0.75rem;
        content: attr(data-label);
    }

    .hd-performance-table tbody td:last-child {
        grid-column: 1 / -1;
    }

    .hd-ticket-timing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hd-statistics-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hd-statistics-totals article {
        padding: 14px;
    }

    .hd-ticket-timing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

/* Feladat szerkesztése és törlése */

.hd-task-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #edcccc;
    border-radius: 12px;
    background: #fffafa;
}

.hd-task-danger-zone>div {
    flex: 1 1 250px;
    min-width: 0;
}

.hd-task-danger-zone h2 {
    margin: 0 0 6px;
    color: #922f2f;
    font-size: 1rem;
}

.hd-task-danger-zone p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hd-task-danger-zone .btn {
    min-height: 44px;
}

#deleteTaskModal .modal-content {
    border-radius: 14px;
}

#deleteTaskModal .modal-footer .btn {
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .hd-task-danger-zone {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .hd-task-danger-zone>div {
        flex: initial;
    }
}