:root {
    --mk-navbar-height: 152px;
}

/* Minimum képernyőszélesség: 1024px (kisebb ablaknál vízszintes görgetés) */
html, body {
    min-width: 1024px;
    height: 100vh;
    /* Fix layout: csak a középső tartalom terület görgethető */
    overflow: hidden;
}

/* Tartalmi oszlop: ≤1100px → col-md-10 (10/12), >1100px → col-md-8 (8/12) */
@media (max-width: 1100px) {
    .tartalom-oszlop {
        width: 83.33333333%;
    }
    .tartalom-jobbra {
        width: 0;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }
}
@media (min-width: 1101px) {
    .tartalom-oszlop {
        width: 66.66666667%;
    }
    .tartalom-jobbra {
        width: 16.66666667%;
    }
}

/* Navigációs sáv és lábléc: fehér linkek (NE globális – a tartalom gombjait tönkreteszi) */
.navbar-inverse a:active,
.navbar-inverse a:hover,
.navbar-inverse a:focus,
.navbar-inverse a:visited,
.footer a:active,
.footer a:hover,
.footer a:focus,
.footer a:visited {
    color: white;
    text-decoration: none;
}

/* Globális: űrlap címkék legyenek félkövérek */
label,
.control-label {
    font-weight: 700;
}

/* Felírt gyógyszerek kapcsoló: ne fehéredjen el a szöveg */
.felirt-toggle a.btn,
.felirt-toggle a.btn:hover,
.felirt-toggle a.btn:focus,
.felirt-toggle a.btn:active,
.felirt-toggle a.btn:visited {
    color: #333 !important;
    text-decoration: none !important;
}

.keret{
    border-bottom: 1px solid black;
    max-height: 24px;
    min-height: 24px;
    white-space: nowrap; 
    
    overflow: hidden;
    text-overflow: clip;
    
}
/*naptárbejegyzések oszlopbeállítása*/
.oszlop{
    max-width: 100px;
    border: 1px solid black;
}

/*egérmutató*/
.egermutato_nyil{
    cursor: default;
}
.egermutato_foglal{
    cursor: pointer;
}

.kotelezoAdat{
    color: red;
}

/* Validációs hiba: mező kerete */
.input-error { border-color: #a94442; }
.help-block.text-danger { font-size: 12px; margin-top: 4px; }

/* Modal fejléc */
.modal-header {
    background: linear-gradient(135deg, rgb(0, 70, 102) 0%, rgb(0, 100, 145) 100%);
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: none;
}
.modal-header .modal-title {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}
.modal-header .close {
    color: #fff !important;
    opacity: 0.85;
    text-shadow: none;
    font-size: 28px;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: -2px;
}
.modal-header .close:hover,
.modal-header .close:focus {
    opacity: 1;
    color: #fff !important;
}
.modal-footer {
    background-color: #f9f9f9;

}
.foglalLista{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.foglalGombok{
    display: block;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    float: left;
}

.adatkikeret{
    border: 1px solid black;
}


.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


.navbar-inverse{
    background: linear-gradient(to bottom, #000000 0%, #000000 85%, #ffffff 100%);
    border-color: #000000;
    color: white;
}
.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover{
    
    background-color: #2a2a2a;
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017);
    
}

.navbar-inverse .navbar-brand{
    color: white;
}
.navbar-inverse .navbar-nav>li>a{
    color: white;
}

.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover{
    background-color: rgba(255, 255, 255, 0.12);
    border-color: transparent;
    color: white;
}

.activity-log-table code {
    font-size: 12px;
}
.activity-log-meta-pre {
    max-width: 320px;
    max-height: 200px;
    overflow: auto;
    font-size: 11px;
    margin: 6px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.activity-log-filters {
    margin-bottom: 16px;
}

.activity-log-map-panel {
    padding: 8px;
}

#activity-log-world-map {
    width: 100%;
    height: 480px;
}

.activity-log-map-heading {
    margin-bottom: 8px;
}

.activity-log-map-nav {
    margin-top: 18px;
}

.locale-switcher-menu {
    min-width: 160px;
}
.locale-switcher-form {
    margin: 0;
}
.locale-switcher-btn {
    display: flex;
    width: 100%;
    padding: 3px 20px;
    border: 0;
    background: transparent;
    color: #333;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.locale-switcher-btn:hover,
.locale-switcher-btn:focus {
    background-color: #f5f5f5;
    color: #262626;
    outline: none;
}
.locale-switcher-active {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 3px 20px;
    color: #777;
    cursor: default;
}
.locale-switcher-menu > li.active > .locale-switcher-active {
    background-color: #f5f5f5;
    font-weight: 600;
}

.szovegek{
    text-align: center;
    font-size: 20px;
}

.col-lg-2, #orvoski, #sugoki{
    margin-top: 30%
}           

.col-xs-12, #orvoski, #sugoki{
    margin-top: 0px;
}  
.col-sm-12, #orvoski, sugoki{
    margin-top: 0px;
}  


.footer{
    display: block;
    position: relative;    
    bottom: 0;
    width: inherit;
    /*height: 10%;*/
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(0, 70, 102);
    color: white;
    text-align: center;
    border-radius: 4px;
    
}

#adatokkiir_foglalas_1024{
        display: none;
    }
#orvoski_1024{
        display: none;
        text-align: center;
    }    

.udvozles{
    font-size: 28px;
}    
.footer_bal{
    text-align: left;
    width: 40%;
    position: relative;
    left: 10%;
    top: 0;
}
.footer_jobb{
    text-align: right;
    position: relative;
    
}

#btnBejelentkezes, #reg, #emailUjra{
    background-color: #2a2a2a;
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017);
}

.menugomb{
    background-color: #2a2a2a;
    border-color: #000000;

    padding: 6px;
    margin: 1px;
    color: var(--mk-brand-gold, #d4a017);
    width: 100%;

    font-size: 14px;
    font-weight: 400;
    text-align: center;
    /*white-space: nowrap;*/
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    display: inline-block;
}

/* Bal menü: utoljára kattintott tétel = ugyanaz a világoskék kiemelés mint hover */
.balmenu-sidebar a.menugomb.balmenu-item-active {
    background: linear-gradient(135deg, #3a3a3a 0%, #000000 100%);
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017);
    text-decoration: none;
}

/* Gyógyszeradat modal gombjai – egységes szélesség */
/* Gyógyszeradat modal gombjai – egységes szélesség, hoverre se változzon */
.gyogyszeradat-gomb {
    display: inline-block;
    box-sizing: border-box;
}

.menugomb:hover{
    background-color: #3a3a3a;
    border-color: #000000;

    padding: 6px;
    margin: 1px;
    color: var(--mk-brand-gold, #d4a017);
    width: 100%;

    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    /*white-space: nowrap;*/
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    display: inline-block;
}

/* menugomb: kattintás/fókusz után se változzon a szövegszín (Bootstrap override) */
.menugomb:focus,
.menugomb:active,
.menugomb:visited,
button.menugomb:focus,
input[type="submit"].menugomb:focus,
input[type="button"].menugomb:focus {
    color: var(--mk-brand-gold, #d4a017) !important;
    text-decoration: none;
}

/* menugomb alapú gombok: hangsúlyosabb, 3D hatás */
button.menugomb,
input[type="submit"].menugomb,
input[type="button"].menugomb {
    position: relative;
    background: linear-gradient(to bottom, #4a4a4a 0%, #2a2a2a 52%, #1a1a1a 100%);
    border-top: 1px solid #666666;
    border-left: 1px solid #555555;
    border-right: 1px solid #444444;
    border-bottom: 1px solid #111111;
    color: var(--mk-brand-gold, #d4a017);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16),
        0 6px 0 #1a1a1a,
        0 10px 18px rgba(0, 0, 0, 0.34);
    transition: transform 0.05s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

button.menugomb::before,
input[type="submit"].menugomb::before,
input[type="button"].menugomb::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 2px;
    height: 42%;
    border-radius: 5px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    pointer-events: none;
}

button.menugomb:hover,
input[type="submit"].menugomb:hover,
input[type="button"].menugomb:hover {
    filter: brightness(1.04) saturate(1.05);
}

button.menugomb:active,
input[type="submit"].menugomb:active,
input[type="button"].menugomb:active {
    transform: translateY(5px);
    background: linear-gradient(to bottom, #333333 0%, #222222 65%, #1a1a1a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 0 #1a1a1a,
        0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Gyógyszerelés: felírás gomb szövege mindig fehér (kattintás után se feketedjen) */
#btnGyogyszerFeliras,
#btnGyogyszerFeliras:hover,
#btnGyogyszerFeliras:focus,
#btnGyogyszerFeliras:active {
    color: var(--mk-brand-gold, #d4a017) !important;
}

@media screen and (max-width: 1200px) {
    #orvoski_1024{
        display: block;
    text-align: center;
    }

/* Gyógyszeradat modal speciális gombjai – fix szélesség normál és hover állapotban is */
.menugomb.gyogyszeradat-gomb,
.menugomb.gyogyszeradat-gomb:hover {
    box-sizing: border-box;
    width: 150px !important;
    min-width: 150px !important;
}
    #orvoski_nagy{
         display: none;
    }
    #adatokkiir_nagy{
        width: 100%;
        text-align: center;
    }
    #adatokkiir_foglalas_nagy{
        display: none;
    }
    #adatokkiir_foglalas_1024{
        display: block;
        text-align: center;
        width: 100%;
    }

    .footer_bal{
        text-align: left;
        margin-left: 5%;
        position: relative;
        left: 0;
        width: 100%;
    }
    .footer_jobb{
         text-align: left;
         margin-left: 5%;
    }
}


/*.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid blue;
  border-bottom: 16px solid blue;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  position: fixed;
  top: 40%;
  left: 45%;
  margin-left: auto;
  margin-right: auto;

}
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}*/

.loader {
  font-size: 10px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  text-indent: -9999em;
  animation: mulShdSpin 1.1s infinite ease;
  transform: translateZ(0);
  
  
}
@keyframes mulShdSpin {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em  #004666, 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.2), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.2), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.2), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.5), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.7), 
        1.8em -1.8em 0 0em #ffffff, 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.2), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.2), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.2), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.5), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.7), 
        2.5em 0em 0 0em #ffffff, 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.2), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.2), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.2), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.5), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.7), 
        1.75em 1.75em 0 0em #ffffff, 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.2), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.2), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.5), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.7), 
        0em 2.5em 0 0em #ffffff, 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.2), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.2), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.2), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.5), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.7), 
        -1.8em 1.8em 0 0em #ffffff, 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.2), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.2), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.2), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.5), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.7), 
        -2.6em 0em 0 0em #ffffff, 
        -1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0, 70, 102, 0.2), 
        1.8em -1.8em 0 0em rgba(0, 70, 102, 0.2), 
        2.5em 0em 0 0em rgba(0, 70, 102, 0.2), 
        1.75em 1.75em 0 0em rgba(0, 70, 102, 0.2), 
        0em 2.5em 0 0em rgba(0, 70, 102, 0.2), 
        -1.8em 1.8em 0 0em rgba(0, 70, 102, 0.5), 
        -2.6em 0em 0 0em rgba(0, 70, 102, 0.7), 
        -1.8em -1.8em 0 0em #ffffff;
  }
}

#flash {
    animation-name: eltunes;
    animation-delay: 10s;
    animation-duration: 3s;
    animation-fill-mode: forwards;

}

@keyframes eltunes {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Állandó gyógyszerek táblázat: sor kiemelése egérrel */
#gyoTable tbody tr:hover {
    background-color: rgba(0, 70, 102, 0.12);
}

/* Gyógyszer felírás visszajelzés (AJAX): siker/hiba sor-színezés */
#gyoTable tbody tr.gyo-row-success {
    background-color: rgba(0, 200, 0, 0.18);
}
#gyoTable tbody tr.gyo-row-error {
    background-color: rgba(200, 0, 0, 0.18);
}
#gyoTable tbody tr.gyo-row-success:hover,
#gyoTable tbody tr.gyo-row-error:hover {
    background-color: rgba(0, 70, 102, 0.12);
}

/* Állandó gyógyszerek: egérmutató mindig nyíl, cellák függőleges középre igazítás */
#gyoTable,
#gyoTable th,
#gyoTable td {
    cursor: default;
    vertical-align: middle;
}

/* Felírt gyógyszerek táblázat: sor kiemelése egérrel */
#felirtGyoTable tbody tr:hover {
    background-color: rgba(0, 70, 102, 0.12);
}

/* Felírt gyógyszerek: egérmutató mindig nyíl, cellák függőleges középre igazítás */
#felirtGyoTable,
#felirtGyoTable th,
#felirtGyoTable td {
    cursor: default;
    vertical-align: middle;
}

/* Jogviszony színek (Páciens adatok – betegkereso): csak whitelist osztálynevek */
.jogviszony {
    font-weight: bold;
}
.jogviszony-z { background-color: rgb(0, 255, 0); }
.jogviszony-p { background-color: rgb(255, 0, 0); }
.jogviszony-k { background-color: rgb(100, 255, 255); }
.jogviszony-n { background-color: rgb(255, 128, 0); }
.jogviszony-b { background-color: rgb(255, 128, 0); }
.jogviszony-s { background-color: rgb(255, 255, 0); }
.jogviszony-default { background-color: rgb(255, 255, 255); }

/* --- 8. Inline stílusok helyett: közös osztályok --- */

/* Elrejtett oszlop (id stb.) – táblázat th/td */
.hide-id-column { display: none; }

/* Margók / térközök */
.form-row-spaced { margin-top: 10px; }
.form-row-spaced-lg { margin-top: 15px; }
.mb-2 { margin-bottom: 2px; }
.mb-5 { margin-bottom: 5px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-15 { margin-bottom: 15px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.pt-3 { padding-top: 3px; }
.padding-top-6 { padding-top: 6px; }

/* Űrlap: inline input 80% széles */
.input-inline-80 { display: inline-block; width: 80%; }
.input-inline-80 input.form-control { display: inline-block; width: 80%; }

/* Számmezők (év, perc stb.): 60px, jobbra igazítva, number spinner elrejtve */
.input-number-60 {
    display: inline-block;
    width: 60px;
    text-align: right;
    -moz-appearance: textfield;
}
.input-number-60-mr { margin-right: 4px; }
.input-number-60-ml { margin-left: 4px; }

/* BNO mezők: max 90px, inline */
.bno-input { max-width: 90px; display: inline-block; }
.bno-input-mr { margin-right: 5px; }

/* BNO + szöveg sor: BNO 90px, többi calc(100% - 110px) */
.bno-row-input { display: inline-block; width: calc(100% - 110px); }

/* Textarea fix magasság */
.textarea-min-h-270 { min-height: 270px; }
.textarea-min-h-350 { min-height: 350px; }

/* Flex panel (beutaló/ellátás) */
.panel-flex { width: 100%; display: flex; flex-direction: column; }
.panel-body-flex { flex: 1; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.d-flex { display: flex; }

/* Sor fejléc (min-height + padding) */
.row-header { min-height: 40px; padding-top: 6px; }
.text-right-nowrap { white-space: nowrap; }

/* Select max szélesség */
.select-max-w-200 { max-width: 200px; }

/* Layout: tartalom szélesség 95% */
.content-width-95 { width: 95%; }
.margin-left-auto { margin-left: auto; }
.panel-body-padding { padding: 8px; }
.select-list-tall { width: 100%; height: 600px; padding: 4px; }
.select-list-full { width: 100%; height: 100%; padding: 4px; }
.btn-block-mt { margin-top: 8px; }

/* Felső menü: stabil 3 oszlopos arány (bal/közép/jobb). */
.felsomenu-col-1 { width: 25%; }
.felsomenu-col-2 { width: 50%; }
.felsomenu-col-3 { width: 25%; }
.felsomenu-brand { margin-right: 10px; margin-top: 10px; text-align: center; font-size: 20px; }
.felsomenu-nav-wrap { margin-top: 10px; padding-left: 0; text-align: center; }
.felsomenu-nav-text { color: white; font-size: 20px; display: inline-block; }

/* Bal menü: keret + fő tartalom görgetése; láblék (betegellátás gombok) lent */
.balmenu-sidebar {
    border-right: 1px solid var(--mk-border, #e2e8f0);
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.balmenu-sidebar-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.balmenu-sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 12px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.balmenu-sidebar-footer:empty {
    display: none;
    padding: 0;
    border: 0;
}

/* Betegellátás: két akciógomb a viewport aljára rögzítve (bal hasáb szélessége ~ col-md-2) */
.balmenu-sidebar:has(.ellatas-balmenu-actions) .balmenu-sidebar-body {
    padding-bottom: 145px;
}
.balmenu-sidebar-footer:has(.ellatas-balmenu-actions) {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 16.66666667%;
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding-left: 8px;
    padding-right: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid #000;
    background-color: #fff;
    z-index: 1025;
}
.ellatas-balmenu-actions__btn {
    margin-top: 8px;
}
.ellatas-balmenu-actions__btn:first-child {
    margin-top: 0;
}
.ellatas-balmenu-actions__btn--danger {
    background-color: #8b0000;
    border-color: #5a0000;
    color: #fff;
}
.ellatas-balmenu-actions__btn--danger:hover,
.ellatas-balmenu-actions__btn--danger:focus {
    background-color: #a40000;
    border-color: #3d0000;
    color: #fff;
}

/* Kijelentkezett főoldal: üdvözlés + középen bejelentkezés */
.guest-home-layout .felsomenu-col-3 {
    display: none !important;
}
.guest-home-layout .felsomenu-col-1 { width: 33.33333333%; }
.guest-home-layout .felsomenu-col-2 { width: 66.66666667%; }

.guest-home-layout .tartalom-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.guest-home-layout .balmenu-sidebar,
.guest-home-layout .tartalom-oszlop,
.guest-home-layout .tartalom-jobbra {
    float: none;
}

.guest-home-layout .tartalom-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px 48px;
    min-height: calc(100vh - 200px);
}
.guest-home-welcome {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}
.guest-home-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}
/* Vendég főoldal bejelentkezés: kék marad (ne legyen btn-success :focus zöld) */
.guest-home-actions a.guest-home-login-btn {
    width: auto;
    min-width: 200px;
    padding: 12px 24px;
    font-size: 18px;
    background-color: #2a2a2a;
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017);
    text-decoration: none;
}
.guest-home-actions a.guest-home-login-btn:visited {
    color: var(--mk-brand-gold, #d4a017);
    background-color: #2a2a2a;
    border-color: #000000;
}
.guest-home-actions a.guest-home-login-btn:hover,
.guest-home-actions a.guest-home-login-btn:focus,
.guest-home-actions a.guest-home-login-btn:active {
    color: var(--mk-brand-gold, #d4a017);
    background-color: #3a3a3a;
    border-color: #000000;
    text-decoration: none;
    outline: none;
    filter: brightness(1.06);
}
.guest-home-actions a.guest-home-login-btn:active {
    filter: brightness(0.96);
}

/* Home / layout */
.loader-hidden { display: none; }
.navbar-max-h {
    display: block;
    min-height: var(--mk-navbar-height);
    max-height: none;
}
.row-max-h-100 {
    max-height: 100px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}
.col-mt-10 { margin-top: 10px; }
.ml-auto { margin-left: auto; }

/* Fő oldal: csak a tartalom terület görgethető */
#fooldal {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.tartalom-row {
    /* Kitölti a #fooldal flex oszlopában a felső menü + betegkereső utáni maradék helyet */
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}
/* Bootstrap 3 float helyett: egyforma magas oszlopok, hogy a bal keret lefusson */
.tartalom-row > .balmenu-sidebar,
.tartalom-row > .tartalom-oszlop,
.tartalom-row > .tartalom-jobbra {
    float: none;
}
.tartalom-row > .balmenu-sidebar {
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
.tartalom-row > .tartalom-oszlop {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}
.tartalom-oszlop {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tartalom-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.tartalom-oszlop > .tartalom-scroll {
    /* Bootstrap col-md-* float-ja ne törje meg a flex scrollt */
    float: none;
    width: 100%;
}
/* Gyógyszerelés (állandó / felírt): csak a vízszintes csúszka kikapcsolva; a táblázat CSS-e változatlan */
.tartalom-scroll:has(#gyoTable),
.tartalom-scroll:has(#felirtGyoTable) {
    overflow-x: hidden;
}

/* Tartalmi űrlapok: a gombsor legyen mindig elérhető alul */
.tartalom-scroll form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.tartalom-scroll form > .row.form-row-spaced-lg:last-child {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    padding-top: 8px;
    margin-top: auto;
}

/* Ellátás oldal: fix px magasságok helyett rugalmas panel */
.ellatas-main-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.ellatas-main-panel > .panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
}
.ellatas-korabbak-panel {
    width: 100%;
    min-width: 140px;
    height: 480px;
}
.ellatas-korabbak-panel .panel-heading strong {
    white-space: nowrap;
    font-size: 13px;
}
.ellatas-korabbak-select {
    min-height: 240px;
    height: 346px !important;
}

/* Betegellátás oldal: tartalom + gombsor együtt kitölti a teljes magasságot */
.tartalom-scroll form.ellatas-form {
    height: 100%;
    min-height: 0;
}
.tartalom-scroll form.ellatas-form > .row:first-of-type {
    flex: 1 1 auto;
    min-height: 0;
}
.tartalom-scroll form.ellatas-form > .row:first-of-type > .col-md-12 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Külön ablakos popup nézet: teljes szélesség, oldalsávok nélkül */
.popup-layout .tartalom-oszlop {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100%;
}
.popup-layout .tartalom-row {
    height: auto;
    flex: 0 1 auto;
}

/* Betegkereso gomb (menü) */
/* Betegkereső: elsődleges, jól látható gomb */
.betegkereso-btn {
    color: var(--mk-brand-gold, #d4a017);
    background-color: #2a2a2a;
    border: 2px solid #000000;
    width: 94%;
    max-width: 280px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}
.betegkereso-btn:hover,
.betegkereso-btn:focus {
    color: var(--mk-brand-gold, #d4a017);
    background-color: #3a3a3a;
    border-color: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    outline: none;
}
.betegkereso-btn:active {
    color: var(--mk-brand-gold, #d4a017);
    background-color: #1a1a1a;
    border-color: #000000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.label-bold { font-weight: bold; }

/* Modál: betegkeresés */
.modal-dialog-betegkereses { min-width: 250px; max-height: 100px; }
.modal-content-betegkereses { max-height: 800px; min-width: 800px; overflow: auto; }
.modal-search-input { width: 80%; }

/* Modál: gyógyszerlista */
.modal-gyogyszer-outer { position: absolute; top: 10%; height: 80%; }
.modal-dialog-gyogyszer { min-width: 250px; height: 50%; width: 50%; }
.modal-content-gyogyszer { overflow: auto; }
.modal-gyogyszer-search { width: 80%; }

/* Gyógyszer hozzáadás */
.gyogyszer-row-pad { padding: 2px; }

.utasitas-napszaki-sorok {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.utasitas-napszaki-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.utasitas-napszaki-input {
    display: inline-block;
    width: 4.5ch;
    min-width: 4.5ch;
    max-width: 4.5ch;
    padding: 4px 4px;
    height: 30px;
    text-align: center;
    box-sizing: content-box;
    -moz-appearance: textfield;
    appearance: textfield;
}

.utasitas-napszaki-input::-webkit-outer-spin-button,
.utasitas-napszaki-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.utasitas-gyakorisag-sorok {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.utasitas-gyakorisag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.utasitas-gyakorisag-select {
    display: inline-block;
    width: auto;
    min-width: 7em;
    max-width: 10em;
    height: 30px;
    padding: 4px 8px;
}

.utasitas-gyakorisag-x {
    font-weight: 700;
    padding: 0 2px;
}

.utasitas-adagolasi-egyseg {
    font-weight: 700;
    white-space: nowrap;
}
.gyogyszer-label-lg { font-size: 20px; }
.gyogyszer-value-lg { font-size: 20px; font-weight: bold; }
.gyogyszer-block { margin: 10px; padding: 10px; }
.textarea-full { width: 100%; }
.gyogyszer-border-block { border: 1px solid black; margin: 10px; padding: 10px; }
.pb-10 { padding-bottom: 10px; }

/* Beutaló írás: fő blokk és „Korábbiak” oszlop azonos magasságra húzása */
.beutalo-main-row {
    display: flex;
    align-items: stretch;
}
.beutalo-main-row > [class*="col-"] {
    float: none;
    display: flex;
    flex-direction: column;
}
.beutalo-main-col {
    display: flex;
    flex-direction: column;
}
.beutalo-main-col .panel {
    height: 100%;
}
.beutalo-korabbak-col {
    display: flex;
    flex-direction: column;
}
.beutalo-korabbak-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.beutalo-korabbak-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.beutalo-korabbak-body {
    flex: 1 1 auto;
    padding: 4px;
}

/* EESZT gomb színe (balmenü) – whitelist */
.menugomb.eeszt-ok { color: white; background: green; }
.menugomb.eeszt-no { color: white; background: red; }

/* Bal menü: EESZT gomb színe kattintás után is maradjon (ne váltson menugomb hover/focus kékre) */
#eeszt.menugomb.eeszt-ok,
#eeszt.menugomb.eeszt-ok:hover,
#eeszt.menugomb.eeszt-ok:focus,
#eeszt.menugomb.eeszt-ok:active,
#eeszt.menugomb.eeszt-ok:visited {
    background: green !important;
    border-color: green !important;
    color: #fff !important;
    text-decoration: none !important;
}
#eeszt.menugomb.eeszt-no,
#eeszt.menugomb.eeszt-no:hover,
#eeszt.menugomb.eeszt-no:focus,
#eeszt.menugomb.eeszt-no:active,
#eeszt.menugomb.eeszt-no:visited {
    background: red !important;
    border-color: red !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Modál: általános (gyogyszeradat, BNO, EESZT) */
.modal-dialog-default { min-width: 250px; max-height: 200px; }
.modal-content-default { max-height: 800px; overflow: auto; }
.modal-dialog-eeszt { min-width: 250px; max-height: 100px; }

/* Beutaló 5000: laborvizsgálat kérőlap – papír formátum, vízszintes oszlopok */
#beutaloSzolg5000Modal.modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-dialog {
    width: auto;
    max-width: calc(100vw - 30px);
    max-height: none;
    margin: 0;
}
#beutaloSzolg5000Modal .modal-content-default {
    max-height: 92vh;
    width: fit-content;
    max-width: calc(100vw - 30px);
}
#beutaloSzolg5000Modal .beutalo-szolg5000-body {
    width: fit-content;
    max-width: 100%;
    max-height: calc(92vh - 130px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-subtitle {
    display: block;
    font-weight: normal;
    margin-top: 4px;
    color: #555;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-hint {
    margin: 0 0 8px;
    color: #444;
    font-size: 13px;
    flex-shrink: 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-toolbar {
    margin-bottom: 8px;
    flex-shrink: 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-toolbar .btn {
    margin-right: 6px;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-sheet-wrap {
    flex: 0 0 auto;
    overflow: auto;
    border: 1px solid #999;
    background: #fff;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-sheet {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: min-content;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-sor {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: min-content;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-sor-alt {
    border-top: 2px solid #999;
    margin-top: 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-oszlop {
    flex: 0 0 auto;
    width: 148px;
    border-right: 1px solid #bbb;
    display: flex;
    flex-direction: column;
    background: #fff;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-sor > .beutalo-szolg5000-oszlop:last-child,
#beutaloSzolg5000Modal .beutalo-szolg5000-sor > .beutalo-szolg5000-csoport:last-child {
    border-right: none;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-csoport {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #bbb;
    background: #fff;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-csoport-fej {
    font-weight: bold;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: #222;
    background: #dcdcdc;
    border-bottom: 1px solid #999;
    padding: 6px 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-csoport-oszlopok {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    align-items: stretch;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-oszlop-csoport {
    border-right: 1px solid #bbb;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-oszlop-csoport:last-child {
    border-right: none;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-oszlop-fej {
    font-weight: bold;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: #222;
    background: #dcdcdc;
    border-bottom: 1px solid #999;
    padding: 6px 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-oszlop-torzs {
    padding: 5px 6px 8px;
    flex: 1 1 auto;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-weight: normal;
    margin: 0 0 5px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.25;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-item input {
    flex: 0 0 auto;
    margin: 1px 0 0;
}
#beutaloSzolg5000Modal .beutalo-szolg5000-item span {
    flex: 1 1 auto;
    word-break: break-word;
}

/* EESZT receptek: szélesebb modal, hogy a lista elférjen */
#EESZTReceptekModal .modal-dialog.modal-dialog-eeszt {
    width: 92vw;
    max-width: 1400px;
}

#EESZTLekeresModal .modal-dialog.modal-dialog-eeszt {
    width: 92vw;
    max-width: 1400px;
}

#EESZTBeutalokModal .modal-dialog.modal-dialog-eeszt,
#EESZTEllatasokModal .modal-dialog.modal-dialog-eeszt {
    width: 92vw;
    max-width: 1400px;
}

#EESZTBeutalokModal .modal-content.modal-content-default {
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
}

#EESZTBeutalokModal .modal-body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Beutaló lista: a Bootstrap col float ne tágítsa szét a modált */
#EESZTBeutalokModal .eeszt-beutalo-lista-row {
    margin-left: 0;
    margin-right: 0;
}

#EESZTBeutalokModal .eeszt-beutalo-lista-col {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

#EESZTBeutalokModal .eeszt-beutalo-lista-outer,
#EESZTBeutalokModal #eeszt_beutalo_lista {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Görgető doboz: max. magasság → a vízszintes csúszka a látható ablak alján van, nem 193 sor alatt */
#EESZTBeutalokModal .eeszt-lista-hscroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: min(55vh, 480px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

#EESZTBeutalokModal .eeszt-lista-hscroll::-webkit-scrollbar {
    width: 12px;
    height: 14px;
}

#EESZTBeutalokModal .eeszt-lista-hscroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    border: 2px solid #f0f0f0;
}

#EESZTBeutalokModal .eeszt-lista-hscroll::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#EESZTBeutalokModal .eeszt-lista-hscroll {
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

#EESZTBeutalokModal .eeszt-lista-hscroll .eeszt-beutalo-lista-table {
    width: max-content !important;
    min-width: 2200px !important;
    max-width: none !important;
    margin-bottom: 0;
    table-layout: auto;
}

#EESZTBeutalokModal .eeszt-beutalo-lista-table th,
#EESZTBeutalokModal .eeszt-beutalo-lista-table td {
    vertical-align: top;
    white-space: nowrap;
}

#EESZTBeutalokModal .eeszt-beutalo-lista-table th.eeszt-beutalo-szoveg,
#EESZTBeutalokModal .eeszt-beutalo-lista-table td.eeszt-beutalo-szoveg {
    white-space: normal;
    min-width: 280px;
    max-width: 420px;
    word-break: break-word;
}

/* Bejelentkezés modál */
.modal-header-login { background-color: #b3b3b3; }
.modal-title-bejelentkezes { color: red; }
.login-label-col { margin-bottom: 5px; }
.login-submit-row { margin: 10px; }
.d-none { display: none; }
.d-block { display: block; }

/* Textarea fix magasság (gyogyszeradat modál) */
.textarea-h-200 { height: 200px; width: 100%; }

/* Üdvözlő dashboard (bejelentkezés után) */
.dashboard-layout .tartalom-row {
    min-height: calc(100vh - var(--mk-navbar-height, 112px));
}
.dashboard-main-col {
    width: 100% !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}
.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}
.dashboard-welcome-card {
    width: 100%;
    max-width: 520px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.dashboard-welcome-app {
    margin: 0 0 0.5rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
}
.dashboard-welcome-title {
    margin: 0 0 1rem;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}
.dashboard-welcome-lead {
    margin: 0 0 1.75rem;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}
.dashboard-welcome-meta {
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid #eee;
    text-align: left;
}
.dashboard-welcome-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 14px;
}
.dashboard-welcome-meta dt {
    margin: 0;
    font-weight: 600;
    color: #555;
}
.dashboard-welcome-meta dd {
    margin: 0;
    color: #333;
    text-align: right;
}

/* Bal oldali menü + beállítások */
.navbar-brand-link {
    color: #9d9d9d;
    text-decoration: none;
}
.navbar-brand-link:hover,
.navbar-brand-link:focus {
    color: #fff;
    text-decoration: none;
}
.balmenu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px 16px;
}
.balmenu-primary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.balmenu-section {
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.balmenu-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    background: #f0f0f0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.balmenu-section-toggle::-webkit-details-marker {
    display: none;
}
.balmenu-section-toggle::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
    color: #888;
    transition: transform 0.15s ease;
}
.balmenu-section:not([open]) .balmenu-section-toggle::after {
    transform: rotate(-90deg);
}
.balmenu-section-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px 10px;
}
.balmenu-link {
    display: block;
    padding: 10px 14px;
    border-radius: 4px;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}
.balmenu-link:hover {
    background: #e8e8e8;
    color: #111 !important;
    border-color: #d4d4d4;
}
.balmenu-link.is-active {
    background: linear-gradient(135deg, #3a3a3a 0%, #000000 100%);
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017) !important;
}
.balmenu-section-label {
    margin: 12px 8px 4px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
}
.balmenu-section-label:first-of-type {
    margin-top: 4px;
}
.balmenu-section-label--nested {
    margin-top: 0;
    margin-bottom: 6px;
}
.balmenu-admin-area {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}
.balmenu-admin-area > .balmenu-section-label {
    margin-top: 0;
    margin-bottom: 8px;
}
.app-layout .tartalom-row {
    align-items: stretch;
}
.app-layout .tartalom-row > .balmenu-sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 16.66666667%;
    width: 16.66666667%;
    max-width: 16.66666667%;
    min-height: 0;
    overflow: hidden;
}
.app-layout .balmenu-sidebar {
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    min-height: 0;
}
.app-layout .balmenu-sidebar-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.settings-page .page-heading { margin-top: 0; }

.boxes-page .page-heading { margin-top: 0; }
.boxes-page .boxes-subtitle { margin-bottom: 16px; }
.boxes-status-filter {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.boxes-toolbar { margin-bottom: 16px; }
.box-add-results,
.box-add-selected-user { margin-bottom: 12px; }
.box-add-results { max-height: 200px; overflow-y: auto; }
.box-add-user-list { margin-bottom: 0; }
.box-add-user-item { cursor: pointer; }
.box-add-user-item:hover { background-color: #f5f5f5; }
.box-add-selected-user-alert { margin-bottom: 0; }
.box-add-no-results { margin: 8px 0 0; }

.box-code-cell .box-kod { font-family: monospace; letter-spacing: 0.03em; }
.box-code-cell .box-id-hint { font-size: 12px; margin-left: 6px; }

.boxes-status-filter .btn.active {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017) !important;
}
.boxes-empty-alert { margin-top: 8px; }
.boxes-table-wrap { margin-bottom: 16px; }
.boxes-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}
.boxes-pagination-links { margin: 0; }
.boxes-page-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.boxes-page-jump-label { margin: 0; font-weight: normal; }
.boxes-page-jump-input {
    width: 80px;
}

.add-box-page .page-heading { margin-top: 0; }
.add-box-page .add-box-lead { margin-bottom: 16px; }
.add-box-panel { max-width: 560px; }
.add-box-form .help-block { margin-bottom: 0; }
.add-box-form .form-group { margin-bottom: 18px; }

.boxes-percent-cell {
    min-width: 160px;
}
.boxes-fill-meter {
    position: relative;
    min-width: 140px;
}
.boxes-fill-meter-track {
    position: relative;
    height: 26px;
    background: #e9ecef;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    overflow: hidden;
}
.boxes-fill-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgb(0, 143, 230) 0%, rgb(0, 110, 180) 100%);
    transition: width 0.2s ease;
}
.boxes-fill-meter-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    white-space: nowrap;
    text-shadow: 0 0 2px #fff, 0 0 4px #fff;
}
.settings-subtitle { margin-bottom: 24px; }
.settings-panel { margin-bottom: 24px; }
.settings-form { max-width: 420px; }
.twofa-setup-box { margin-bottom: 16px; }
.twofa-secret { word-break: break-all; }
.twofa-recovery-list { margin: 10px 0 0; padding-left: 20px; }

/* Vendég főoldal + auth oldalak */
.guest-home-actions .btn { margin: 0 6px 8px; }
.guest-home-alt-link { margin-top: 8px; font-size: 14px; }

/* Vendég webshop főoldal */
.guest-shop-layout .felsomenu-col-3 { display: none !important; }
.guest-shop-layout .felsomenu-col-1 { width: 25%; }
.guest-shop-layout .felsomenu-col-2 { width: 75%; }
.guest-shop-layout .tartalom-row { display: flex; flex-wrap: nowrap; }
.guest-shop-layout .balmenu-sidebar,
.guest-shop-layout .tartalom-oszlop,
.guest-shop-layout .tartalom-jobbra { float: none; }
.guest-shop-layout .balmenu-sidebar {
    flex: 0 0 16.66666667%;
    width: 16.66666667%;
    max-width: 16.66666667%;
    min-height: 0;
    background: #fff;
}
.guest-shop-layout .tartalom-oszlop {
    width: 83.33333333%;
    max-width: 83.33333333%;
    flex: 1 1 auto;
}
.guest-shop-layout .tartalom-scroll {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 24px 20px 48px;
    min-height: calc(100vh - 120px);
}
.guest-shop-brand { font-weight: 600; }
.navbar-brand-with-logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 8px;
    line-height: normal !important;
    overflow: visible;
    position: relative;
    text-align: left;
}
.navbar-brand-with-logo.navbar-brand--logo {
    gap: 0;
    padding: 0;
    height: var(--mk-navbar-height);
    min-height: var(--mk-navbar-height);
    align-items: center;
}
.navbar-brand--logo .navbar-brand-logo {
    height: var(--mk-navbar-height);
    width: auto;
    max-height: 100%;
}
.navbar-brand-logo {
    display: block;
    width: auto;
    height: 96px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}
.navbar-brand-with-logo.navbar-brand--text {
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    justify-content: center;
    text-align: center;
}
.navbar-brand-text-wrap {
    display: block;
    overflow: visible;
    flex-shrink: 0;
    margin-left: 0;
    padding: 2px 0 4px;
    text-align: center;
}
.navbar-brand--text .navbar-brand-text-wrap {
    margin-left: 0;
}
.navbar-brand-text {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    padding: 8px 0 12px;
}
.navbar-brand-text-valora,
.navbar-brand-text-tagline {
    background: var(--mk-brand-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.navbar-brand-text-valora {
    font-family: var(--mk-font-brand);
    font-size: 63px;
    font-weight: 400;
    line-height: 1.5;
}
.navbar-brand-text-tagline {
    font-family: var(--mk-font);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-left: 10px;
    position: relative;
    top: -6px;
}
.guest-shop-categories { margin-left: 12px; }
.guest-shop-auth .btn-link { padding-top: 30px; padding-bottom: 30px; }

.shop-home { max-width: 1100px; margin: 0 auto; width: 100%; }
.shop-hero { margin-bottom: 24px; }
.shop-hero-title { margin-top: 0; font-size: 28px; }
.shop-hero-lead { margin-bottom: 0; max-width: 640px; }
.shop-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.shop-category-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    background: #fff;
}
.shop-category-link:hover,
.shop-category-link:focus { text-decoration: none; background: #e8e8e8; color: #111; border-color: #d4d4d4; }
.shop-category-link.is-active {
    background: linear-gradient(135deg, #3a3a3a 0%, #000000 100%);
    border-color: #000000;
    color: var(--mk-brand-gold, #d4a017);
}
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.shop-product-card { margin-bottom: 0; overflow: hidden; }
.shop-product-image {
    height: 160px;
    background: linear-gradient(135deg, #eef4fb 0%, #dce9f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-product-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(0, 143, 230, 0.15);
}
.shop-product-img { max-height: 140px; max-width: 90%; object-fit: contain; }
.shop-product-image--physical { background: linear-gradient(135deg, #f7f0e8 0%, #eadfce 100%); }
.shop-product-image--digital { background: linear-gradient(135deg, #eef4fb 0%, #dce9f7 100%); }
.shop-product-image--digital .shop-product-placeholder { background: rgba(0, 143, 230, 0.2); }
.shop-product-image--physical .shop-product-placeholder { background: rgba(160, 120, 80, 0.2); }
.shop-product-type { margin: 0 0 8px; }
.shop-product-category { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.shop-product-name { margin: 0 0 8px; font-size: 18px; }
.shop-product-short { margin-bottom: 12px; color: #555; }
.shop-product-price { margin: 0; font-size: 20px; font-weight: 600; color: rgb(0, 100, 160); }
.shop-empty { margin-top: 8px; }
.shop-page { max-width: 960px; margin: 0 auto; width: 100%; }
.shop-page-title { margin-top: 0; margin-bottom: 20px; font-size: 28px; }
.shop-back-link { margin-bottom: 16px; }
.guest-shop-cart-link { position: relative; }
.guest-shop-cart-badge { background: rgb(0, 143, 230); margin-left: 4px; }
.shop-product-card-link { display: block; color: inherit; text-decoration: none; }
.shop-product-card-link:hover,
.shop-product-card-link:focus { color: inherit; text-decoration: none; }
.shop-product-card-footer { padding: 10px 15px; background: #fafafa; border-top: 1px solid #eee; }
.shop-card-add-form { margin: 0; }
.shop-product-detail-card { overflow: hidden; }
.shop-product-detail-image {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.shop-product-detail-img { max-width: 100%; max-height: 260px; object-fit: contain; }
.shop-product-detail-title { margin-top: 0; font-size: 26px; }
.shop-product-detail-short { margin-bottom: 16px; }
.shop-product-detail-price { font-size: 24px; font-weight: 600; color: rgb(0, 100, 160); }
.shop-qty-row { margin-top: 16px; }
.shop-qty-input { width: 72px; margin-right: 8px; }
.shop-cart-table .shop-qty-input { width: 64px; }
.shop-cart-summary { margin-top: 20px; }
.shop-cart-total { margin: 8px 0; font-size: 18px; }
.shop-payment-note { margin-bottom: 20px; }
.shop-payment-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.shop-pay-btn { min-width: 200px; }
.shop-pay-btn-paypal { background: #ffc439; border-color: #f0b400; color: #111; }
.shop-pay-btn-paypal:hover,
.shop-pay-btn-paypal:focus { background: #f5bb2a; border-color: #e0aa00; color: #111; }
.shop-checkout-form .panel-body { padding: 24px; }
.shop-checkout-total-row { font-size: 16px; }
.shop-pickup-section { margin-top: 8px; }
.shop-pickup-btn { margin-bottom: 12px; }
.shop-pickup-summary { margin-top: 12px; margin-bottom: 0; }
.shop-pickup-summary-text { margin: 8px 0 0; }
.shop-dgw-container { min-height: 0; }
.shop-order-success-box { margin-top: 12px; }
.shop-order-success-title { margin: 0; font-size: 22px; }
.shop-order-dl dt { width: 140px; float: left; clear: left; }
.shop-order-dl dd { margin-left: 160px; margin-bottom: 8px; }
.shop-admin-page .page-heading { margin-top: 0; }
.my-purchases-page .page-heading,
.my-gifts-page .page-heading { margin-top: 0; }
.my-purchases-order-items { margin-bottom: 0; font-size: 13px; }
.my-list-date-filters { margin-bottom: 16px; }
.my-list-filter-clear { text-align: left; padding-left: 0; }
.my-list-table .my-list-filter-row th {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    padding: 6px 8px;
}
.my-list-filter-select { min-width: 120px; max-width: 100%; }
.my-list-empty-cell { padding: 24px 12px !important; }
.betelt-gift-form .betelt-gift-selected-at,
.my-gift-edit-form .my-gift-selected-at { display: block; margin-top: 4px; }
.my-gift-edit-form { max-width: 280px; }
.my-gift-edit-form .btn { margin-top: 6px; }
.daily-tasks-page .page-heading { margin-top: 0; }
.daily-tasks-date-form { margin-bottom: 20px; }
.daily-tasks-section { margin-top: 28px; }
.daily-tasks-section .badge { margin-left: 6px; font-size: 12px; }
.daily-tasks-quick-links { margin-top: 24px; }
.daily-tasks-summary-section { margin-top: 0; }
.daily-tasks-summary-table { max-width: 640px; }
.daily-task-status-form { min-width: 160px; margin: 0; }
.daily-task-actions { white-space: nowrap; }
.daily-task-actions .btn,
.daily-task-actions form { display: inline-block; vertical-align: middle; margin-left: 4px; }
.daily-task-toggle-form { margin: 0; }
.daily-task-row--done { opacity: 0.72; }
.daily-task-done-badge { margin-left: 6px; font-size: 10px; vertical-align: middle; }
.daily-tasks-ajax-flash { margin: 12px 0 16px; }
.daily-tasks-bulk-bar { margin-bottom: 12px; }
.daily-tasks-bulk-bar .panel-body { padding: 10px 15px; }
.daily-tasks-bulk-selected-count { margin-left: 8px; }
.daily-tasks-bulk-toggle-group .btn { margin-right: 6px; }
.daily-tasks-bulk-actions .form-group { margin-bottom: 0; }
.daily-tasks-col-select { width: 36px; text-align: center; vertical-align: middle; }
.daily-tasks-col-select input[type="checkbox"] { margin: 0; }
.penzugy-page .page-heading { margin-top: 0; }
.penzugy-values-panel,
.penzugy-filter-panel { margin-bottom: 20px; }
.penzugy-summary-row { margin-bottom: 24px; }
.penzugy-summary-card .panel-body { padding: 14px 16px; }
.penzugy-summary-label { font-size: 12px; color: #777; margin-bottom: 4px; }
.penzugy-summary-value { font-size: 18px; font-weight: 600; }
.penzugy-values-table { max-width: 720px; }
.penzugy-rows-section { margin-top: 8px; }
.shop-admin-heading { margin-bottom: 20px; }
.shop-admin-back { margin-bottom: 12px; }
.shop-admin-form .panel-body { padding: 24px; }
.shop-admin-delete-form { margin-top: 16px; }
.shop-admin-image-preview {
    margin-bottom: 12px;
}
.shop-admin-image-preview-img {
    display: block;
    max-width: 280px;
    max-height: 200px;
    width: auto;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.shop-admin-image-remove {
    margin-top: 8px;
}
.auth-page {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-page-card {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.auth-page-title { margin-top: 0; font-size: 26px; }
.auth-page-lead { margin-bottom: 1.5rem; }
.auth-page-footer { margin-top: 1.25rem; margin-bottom: 0; text-align: center; }

.users-page .page-heading { margin-top: 0; }
.users-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.users-subtitle { margin-bottom: 16px; }
.users-back-link { margin-bottom: 12px; }
.users-profile-dl { margin-bottom: 0; }
.users-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.users-role-form label { margin-right: 8px; }
.users-boxes-heading { margin-top: 28px; }
.users-box-filters { margin-bottom: 16px; }
.users-box-filters .form-group { margin-bottom: 0; }

.betelt-box-page .page-heading { margin-top: 0; }
.betelt-box-subtitle { margin-bottom: 16px; }
.betelt-box-filters { margin-bottom: 16px; }
.betelt-box-filters .form-group { margin-bottom: 0; }
.betelt-status-form { margin: 0; min-width: 160px; }
.betelt-status-form select { width: 100%; }

.box-transfer-results { max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.box-transfer-user-list { margin-bottom: 0; }
.box-transfer-user-item { cursor: pointer; }
.box-transfer-user-item:hover,
.box-transfer-user-item.active { background-color: #f5f5f5; }
.box-transfer-user-item.active { border-color: #337ab7; }
.box-transfer-current { margin-bottom: 16px; }
.box-transfer-no-results { margin: 8px 0 0; }

/* Előregisztráció: teljes oldal, nincs oldalsó menü hely */
.prelaunch-layout .tartalom-row {
    display: flex;
    flex-wrap: nowrap;
}
.prelaunch-layout .balmenu-sidebar,
.prelaunch-layout .tartalom-jobbra {
    display: none !important;
}
.prelaunch-layout .tartalom-oszlop {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    float: none;
}
.prelaunch-layout .tartalom-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--mk-navbar-height, 112px));
    padding: 32px 20px 48px;
}
.prelaunch-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.prelaunch-title {
    margin: 0 0 16px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
}
.prelaunch-lead {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.prelaunch-countdown-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.15em;
    margin: 32px 0 40px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.prelaunch-countdown-segment {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2em;
    flex-shrink: 0;
}
.prelaunch-countdown-value {
    font-size: clamp(40px, 10vw, 72px);
    font-weight: 700;
    line-height: 1;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
}
.prelaunch-countdown-label {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 500;
    color: #666;
}
.prelaunch-countdown-sep {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 300;
    line-height: 1;
    color: #cbd5e0;
    padding: 0 0.1em;
    flex-shrink: 0;
}
.prelaunch-soon {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 600;
    margin: 32px 0 40px;
}
.prelaunch-hint {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.prelaunch-brand { color: #333; cursor: default; }
.prelaunch-brand:hover,
.prelaunch-brand:focus {
    color: #333;
    background: transparent !important;
}
.prelaunch-purchase-disabled { pointer-events: none; opacity: 0.85; }

.service-mode-page {
    max-width: 640px;
    margin: 48px auto 32px;
}
.service-mode-card .panel-body { padding: 40px 32px; }
.service-mode-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 600;
}
.service-mode-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-mode-auth { margin-top: 20px; }

.system-settings-page .panel { margin-bottom: 20px; }
.system-settings-lead { margin-bottom: 24px; }
.system-settings-form .checkbox { margin-top: 0; }
.system-settings-limits-table { margin-bottom: 0; }
.system-settings-limit-qty { width: 90px; }
.system-settings-limit-window { min-width: 140px; }

.gift-selection-lead { margin-bottom: 20px; font-size: 16px; }
.gift-selection-milestone-lead { margin: 0 0 14px; font-size: 14px; color: #555; }
.gift-selection-box { margin-bottom: 16px; }
.gift-selection-box:last-child { margin-bottom: 0; }
.gift-selection-products { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.gift-selection-product {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}
.gift-selection-product:has(input:checked) { border-color: #337ab7; background: #f5f9fc; }
.gift-selection-product input { margin-top: 3px; }
.gift-selection-product-body { display: flex; flex-direction: column; gap: 4px; }
.gift-selection-product-desc { font-size: 13px; }
.shop-admin-channels { margin-top: 16px; padding-top: 8px; border-top: 1px solid #eee; }
.shop-admin-channels legend { font-size: 15px; border: 0; margin-bottom: 8px; }

