/* Adapted from Membria AdminLayout: full-width 56px header, 248px sidebar,
   72px tablet rail, 24/28px content inset, phone navigation drawer. */
.eo-shell {
    display: grid;
    grid-template-columns: var(--eo-content-inset) minmax(0, 1fr);
    grid-template-rows: var(--mb-header-height) minmax(0, 1fr);
    min-height: 100dvh;
}
.eo-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: var(--mb-space-4);
    min-width: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--mb-border);
    background: var(--mb-surface);
}
.eo-brand { display: inline-flex; align-items: center; gap: var(--mb-space-2); min-width: calc(var(--mb-sidebar-width) - 40px); color: var(--mb-text); font-size: 17px; white-space: nowrap; }
.eo-brand:hover { text-decoration: none; }
.eo-brand strong { font-weight: 600; }
.eo-brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--mb-radius); background: var(--mb-primary-soft); color: var(--mb-primary); }
.eo-company { font-size: var(--mb-fs-sm); color: var(--mb-text-2); }
.eo-account { display: flex; align-items: center; gap: var(--mb-space-3); margin-left: auto; min-width: 0; }
.eo-account-name { display: flex; flex-direction: column; min-width: 0; text-align: right; font-size: var(--mb-fs-sm); }
.eo-account-name strong { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.eo-account-name span { font-size: 11px; color: var(--mb-text-2); }
.eo-menu-toggle { display: none; }
.eo-sidebar {
    position: sticky;
    top: var(--mb-header-height);
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    height: calc(100dvh - var(--mb-header-height));
    min-width: 0;
    padding: var(--mb-space-3) 10px;
    overflow: auto;
    border-right: 1px solid var(--mb-border);
    background: var(--mb-surface);
    scrollbar-width: thin;
}
.eo-nav-list { display: flex; flex-direction: column; gap: 2px; }
.eo-nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: var(--mb-radius); color: var(--mb-text-2); font-size: var(--mb-fs-sm); font-weight: 500; }
.eo-nav-link:hover { background: var(--mb-surface-2); color: var(--mb-text); text-decoration: none; }
.eo-nav-link.active { background: var(--mb-primary-soft); color: var(--mb-primary); }
.eo-nav-separator { height: 1px; margin: var(--mb-space-4) var(--mb-space-3) var(--mb-space-3); background: var(--mb-border); }
.eo-nav-label { padding: 0 12px; margin-bottom: var(--mb-space-1); color: var(--mb-text-2); font-size: var(--mb-fs-xs); }
.eo-sidebar-foot { display: flex; flex-direction: column; gap: var(--mb-space-1); padding: var(--mb-space-4) var(--mb-space-3) 0; margin-top: auto; color: var(--mb-text-2); font-size: 11px; }
.main-content { grid-row: 2; grid-column: 2; min-width: 0; padding: 24px 28px 40px; outline: none; }
.eo-environment { display: flex; align-items: center; flex: 0 0 auto; }
.eo-environment-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--mb-text-2); cursor: pointer; }
.eo-environment-label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--mb-border); border-radius: var(--mb-radius-pill); font-size: var(--mb-fs-xs); font-weight: 500; line-height: 18px; white-space: nowrap; }
.eo-environment-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mb-warning-text); }
.eo-environment-badge:hover .eo-environment-label { border-color: var(--mb-text-2); color: var(--mb-text); }
.eo-environment-badge:focus-visible { outline: 2px solid var(--mb-primary); outline-offset: 2px; border-radius: var(--mb-radius); }
/* A régi környezetellenőrzések szövege és a gomb hozzáférhető magyarázata megmarad, tartalmi sáv nélkül. */
.demo-banner { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eo-environment-information { position: fixed; inset: calc(var(--mb-header-height) + 8px) 20px auto auto; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - var(--mb-header-height) - 24px); margin: 0; padding: var(--mb-space-4); overflow: auto; border: 1px solid var(--mb-border); border-radius: var(--mb-radius); background: var(--mb-surface); color: var(--mb-text); box-shadow: var(--mb-shadow-float); }
.eo-environment-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--mb-space-3); }
.eo-environment-heading h2 { margin: 0; font-size: var(--mb-fs-sm); font-weight: 600; }
.eo-environment-heading .icon-button { flex: 0 0 44px; }
.eo-environment-information p { margin: var(--mb-space-2) 0 0; font-size: var(--mb-fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.eo-mobile-menu { width: min(86vw, 320px); height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0; padding: var(--mb-space-3); border: 0; background: var(--mb-surface); color: var(--mb-text); box-shadow: var(--mb-shadow-float); }
.eo-mobile-menu::backdrop { background: var(--mb-scrim); }
.eo-mobile-menu > header { display: flex; align-items: center; justify-content: space-between; gap: var(--mb-space-2); margin-bottom: var(--mb-space-3); padding: 0 var(--mb-space-1) var(--mb-space-2) var(--mb-space-3); border-bottom: 1px solid var(--mb-border); }
.eo-mobile-menu h2 { font-size: var(--mb-fs-md); }

@media (min-width: 768px) and (max-width: 1099.98px) {
    .eo-brand { min-width: auto; }
    .eo-company { display: none; }
    .eo-sidebar .eo-nav-link { justify-content: center; padding: 10px; }
    .eo-sidebar .eo-nav-link > span, .eo-sidebar .eo-nav-label, .eo-sidebar-foot { display: none; }
    .eo-sidebar .eo-nav-separator { margin-inline: 2px; }
}
@media (max-width: 767.98px) {
    .eo-shell { grid-template-columns: minmax(0, 1fr); }
    .eo-header { gap: var(--mb-space-2); padding-inline: var(--mb-space-3); }
    .eo-menu-toggle { display: inline-flex; }
    .eo-brand { min-width: 0; font-size: 15px; gap: 6px; }
    .eo-brand-mark, .eo-company, .eo-sidebar { display: none; }
    .eo-account { gap: var(--mb-space-1); }
    .eo-account-name { max-width: clamp(0px, calc(100vw - 350px), 120px); font-size: var(--mb-fs-xs); }
    .eo-account-name span { display: none; }
    .main-content { grid-column: 1; padding: var(--mb-space-4) var(--mb-space-4) var(--mb-space-6); }
    .eo-environment-information { right: 16px; }
}
@media (max-width: 430px) {
    .eo-account-name { display: none; }
}
