:root {
    --mk-navbar-height: 152px;
    /* Teljes szélességű lábléc – a bal menü max-height ebből számol */
    --mk-footer-height: 56px;
}

/* Minimum képernyőszélesség: 1024px (kisebb ablaknál vízszintes görgetés) */
html, body {
    min-width: 1024px;
    height: 100vh;
    /* Függőleges: fix layout (középső tartalom görget); vízszintes: engedett */
    overflow-x: auto;
    overflow-y: 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;
    position: relative;
}
.balmenu-sidebar-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    /* Felső korlát a görgetéshez; bőven számol a lábléccel, hogy az utolsó pont ne csússzon alá */
    max-height: calc(100vh - var(--mk-navbar-height, 152px) - var(--mk-footer-height, 56px));
}
.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 / bal menü terület görgethető függőlegesen;
   vízszintes görgetés az oldal szintjén (html/body) maradhat.
   Fontos: a mobil shell (#fooldal.mobile-app) NEM kapja a 1024px min-widthet. */
#fooldal:not(.mobile-app) {
    height: 100vh;
    max-height: 100vh;
    min-width: 1024px;
    overflow-x: visible;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}
#fooldal:not(.mobile-app) > .menu {
    flex: 0 0 auto;
}
#fooldal:not(.mobile-app) > .site-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
#fooldal:not(.mobile-app) > .tartalom-row {
    /* Kitölti a #fooldal flex oszlopában a felső menü + lábléc utáni maradék helyet */
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    position: relative;
    z-index: 2;
}
.tartalom-row {
    flex: 1 1 0%;
    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;
    min-height: 0;
    max-height: 100%;
}
.tartalom-row > .balmenu-sidebar {
    align-self: stretch;
    flex: 0 0 16.66666667%;
    width: 16.66666667%;
    max-width: 16.66666667%;
    height: auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.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;
    overflow-x: 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 / regisztráció – fekete–arany (a .auth-modal felülírja) */
.modal-header-login { background-color: #000; }
.modal-title-bejelentkezes { color: var(--mk-brand-gold, #d4a017); }
.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: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    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-notify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.balmenu-link.is-active .balmenu-notify-badge {
    background: #fb7185;
    color: #111 !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;
}
.balmenu-admin-area > .balmenu-link--admin-top {
    display: block;
    margin-bottom: 8px;
}
.app-layout .tartalom-row {
    align-items: stretch;
}
.app-layout .tartalom-row > .balmenu-sidebar {
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
.app-layout .balmenu-sidebar-body {
    padding-bottom: 8px;
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - var(--mk-navbar-height, 152px) - var(--mk-footer-height, 56px));
}
.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; }
.settings-referral-panel .settings-form,
.settings-referral-panel .settings-referral-list { max-width: none; width: 100%; }
.settings-referral-list { margin-top: 24px; }
.settings-referral-list-title { font-size: 16px; margin: 0 0 12px; }
.settings-referral-table-wrap { margin-top: 0; }
.settings-referral-table { margin-bottom: 0; }
.settings-referral-table th:last-child,
.settings-referral-table td:last-child { white-space: nowrap; }
.settings-referral-status-badge { display: inline-block; font-size: 12px; font-weight: normal; vertical-align: middle; }
.users-referral-lookback-panel { margin-bottom: 24px; }
.users-referral-lookback-field { margin-bottom: 0; }
.users-referral-lookback-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.users-referral-lookback-row .form-control { width: auto; min-width: 5em; max-width: 8em; }
.users-referral-lookback-hint { margin: 12px 0 0; }
.settings-addresses-panel .settings-form { max-width: 640px; }
.settings-address-list { margin-bottom: 16px; }
.settings-address-item-head { margin-bottom: 6px; }
.settings-address-summary {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #f9f9f9;
    border: 0;
    font-size: 13px;
    white-space: pre-wrap;
}
.settings-address-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.settings-address-actions .inline-form { display: inline; margin: 0; }
.shop-checkout-address-section {
    margin: 20px 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.shop-checkout-address-title { margin: 0 0 12px; font-size: 18px; }
.shop-checkout-address-head { margin-bottom: 8px; }
.shop-checkout-address-head .shop-checkout-address-title { margin-bottom: 0; }
.shop-checkout-address-tools { margin-top: 2px; }
.settings-address-copy-toolbar { margin-bottom: 16px; }
.settings-address-copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.settings-address-copy-row select { min-width: 200px; }
.shop-address-save-checkbox { margin-top: 8px; }
.shop-address-selected-summary {
    margin-top: 0;
    margin-bottom: 12px;
    white-space: pre-wrap;
    font-size: 13px;
}
.shop-address-autosave-hint { margin-top: 4px; }
.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;
    max-height: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.guest-shop-layout .balmenu-sidebar-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - var(--mk-navbar-height, 152px) - var(--mk-footer-height, 56px));
}
.guest-shop-layout .tartalom-oszlop {
    width: 83.33333333%;
    max-width: 83.33333333%;
    flex: 1 1 auto;
    min-height: 0;
}
.guest-shop-layout .tartalom-scroll {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 24px 20px 48px;
    /* Ne feszítse szét a sort: a flex slot adja a magasságot */
    min-height: 0;
}
.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-redeem-country-filter {
    margin: 16px 0 0;
}
.shop-redeem-country-filter-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 16px;
    width: 100%;
}
.shop-redeem-country-filter-row > label {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    white-space: nowrap;
    flex: 0 0 auto;
}
.shop-redeem-country-filter-row > select.shop-redeem-country-select,
.shop-redeem-country-filter-row > select.form-control {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    min-width: 160px;
    max-width: 240px;
    flex: 0 0 auto;
    vertical-align: middle;
}
.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-product-card-footer .shop-card-add-form + .shop-card-add-form,
.shop-product-card-footer .shop-pay-btn-drops + .shop-card-add-form,
.shop-product-card-footer .shop-card-add-form + .shop-pay-btn-drops,
.shop-product-card-footer .shop-pay-btn-drops + .shop-pay-btn-drops {
    margin-top: 8px;
}
.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-redeem-drops-progress {
    margin: 12px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-redeem-drops-progress-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.shop-redeem-drops-progress-row.purchase-counter-row--purple {
    background: rgba(196, 155, 222, 0.1);
    border-color: rgba(196, 155, 222, 0.28);
}
.shop-redeem-drops-progress-row.purchase-counter-row--gold {
    background: rgba(212, 160, 23, 0.1);
    border-color: rgba(212, 160, 23, 0.28);
}
.shop-redeem-drops-progress .purchase-counter-drop {
    width: 18px;
    height: 24px;
}
.shop-redeem-drops-need {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.shop-redeem-pay-options {
    margin: 12px 0 8px;
}
.shop-redeem-pay-label {
    margin: 0 0 8px;
    font-weight: 600;
}
.shop-redeem-drops-form {
    margin-bottom: 8px;
}
.shop-pay-btn-drops {
    margin-right: 0;
    text-align: center;
}
.shop-pay-btn-drops[disabled],
.shop-pay-btn-drops:disabled {
    text-align: center;
}
.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-pickup-carrier-options { margin-bottom: 12px; }
.shop-pickup-carrier-option { margin-right: 16px; font-weight: 600; }
.shop-pickup-modal-body { padding: 0; }
.shop-pickup-frame {
    width: 100%;
    min-height: 70vh;
    border: 0;
    display: block;
}
/* Foxpost APT Finder: sidebar (kereső/szűrő) csak ≥1024px iframe-szélességnél kerül a térkép mellé */
.shop-foxpost-modal .modal-dialog.shop-foxpost-modal-dialog {
    width: auto;
    max-width: min(1280px, 98vw);
    margin: 12px auto;
}
.shop-foxpost-modal .shop-foxpost-frame {
    min-height: 78vh;
    height: 78vh;
}
@media (min-width: 768px) {
    .shop-foxpost-modal .modal-dialog.shop-foxpost-modal-dialog {
        width: min(1280px, 98vw);
    }
}
@media (max-width: 767px) {
    .shop-foxpost-modal .modal-dialog.shop-foxpost-modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    .shop-foxpost-modal .shop-foxpost-frame {
        min-height: calc(100vh - 56px);
        height: calc(100vh - 56px);
    }
}
.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; }
.statistics-admin-page .page-heading { margin-top: 0; }
.statistics-summary-table .statistics-metric-row.is-clickable { cursor: pointer; }
.statistics-summary-table .statistics-metric-row.is-clickable:hover,
.statistics-summary-table .statistics-metric-row.is-clickable:focus {
    background-color: #f5f5f5;
    outline: none;
}
.statistics-metric-summary { margin-bottom: 16px; }
.statistics-metric-summary-value { font-size: 18px; font-weight: 600; }
.statistics-metric-modal-dialog {
    width: auto;
    max-width: min(1180px, 96vw);
    margin: 20px auto;
}
@media (min-width: 768px) {
    .statistics-metric-modal-dialog {
        width: min(1180px, 96vw);
    }
}
.statistics-month-chart-wrap {
    position: relative;
    height: 340px;
}
.statistics-day-users-panel {
    border-left: 1px solid #eee;
    padding-left: 16px;
    min-height: 340px;
}
.statistics-day-users-title {
    margin-top: 0;
    margin-bottom: 8px;
}
.statistics-day-users-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}
.statistics-day-user-item {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}
.statistics-day-user-item:last-child {
    border-bottom: 0;
}
@media (max-width: 767px) {
    .statistics-day-users-panel {
        border-left: 0;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 16px;
        margin-top: 16px;
        min-height: 0;
    }
}
.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;
    /* Ne örökölje a thead uppercase / muted színét a selectek */
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
}
.my-list-filter-select { min-width: 120px; max-width: 100%; }
.my-list-table select.form-control,
.my-gift-edit-form select.form-control {
    color: #0f172a !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #0f172a;
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    height: 30px;
    padding: 4px 8px;
}
.my-list-table select.form-control option,
.my-gift-edit-form select.form-control option {
    color: #0f172a;
    background-color: #fff;
}
.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-section-header { margin-bottom: 4px; }
.daily-tasks-section-header .h4 { margin-top: 0; margin-bottom: 0; }
.daily-tasks-orders-pdf-wrap { margin: 0 0 8px; }
.daily-tasks-quick-links { margin-top: 24px; }
.daily-tasks-summary-section { margin-top: 0; }
.daily-tasks-summary-table { max-width: 640px; }
.daily-tasks-overview-section { margin-top: 0; margin-bottom: 8px; }
.daily-tasks-overview-cards { margin-top: 8px; }
.daily-tasks-overview-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.daily-tasks-overview-card:hover,
.daily-tasks-overview-card:focus {
    color: inherit;
    text-decoration: none;
    border-color: var(--mk-brand-purple, #c49bde);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.daily-tasks-overview-card-title {
    font-weight: 600;
    margin-bottom: 6px;
}
.daily-tasks-overview-card-count {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.daily-tasks-overview-breakdown {
    margin: 0 0 10px;
    padding: 0;
    font-size: 12px;
    color: #555;
}
.daily-tasks-overview-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    border-top: 1px solid #eee;
}
.daily-tasks-overview-breakdown li:first-child {
    border-top: 0;
}
.daily-tasks-overview-breakdown-count {
    font-weight: 700;
    color: #222;
}
.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; }
.daily-tasks-tracking-cell {
    min-width: 220px;
    max-width: 280px;
    vertical-align: top;
}
.daily-task-tracking-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.daily-tasks-tracking-input {
    width: 100%;
    min-width: 200px;
    font-size: 14px;
    height: 36px;
}
.daily-tasks-tracking-save {
    align-self: flex-start;
}
.daily-tasks-status-time {
    margin-top: 6px;
}
.daily-tasks-delivery-cell .daily-tasks-delivery-open {
    display: inline;
    padding: 0;
    white-space: normal;
    text-align: left;
    max-width: 100%;
    font-size: inherit;
    line-height: 1.35;
}
.daily-tasks-delivery-dl {
    margin: 0 0 16px;
}
.daily-tasks-delivery-dl dt {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    margin-top: 10px;
}
.daily-tasks-delivery-dl dt:first-child {
    margin-top: 0;
}
.daily-tasks-delivery-dl dd {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    word-break: break-word;
}
.daily-tasks-delivery-pre {
    margin: 0;
    padding: 12px 14px;
    background: #f7f7f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.45;
    max-height: 240px;
    overflow: auto;
    cursor: text;
    user-select: all;
}
#dailyTasksDeliveryModal {
    z-index: 1060;
}
#dailyTasksDeliveryModal.in ~ .modal-backdrop,
.modal-backdrop.daily-tasks-delivery-backdrop {
    z-index: 1055;
}
.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-fill-box-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 10px;
}
.shop-admin-fill-box-row .checkbox {
    margin: 0;
}
.shop-admin-fill-box-count {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-admin-fill-box-count .form-control {
    width: 88px;
    display: inline-block;
}
.shop-admin-product-group th {
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 2px solid #e5e7eb;
}
.shop-admin-product-block {
    margin-bottom: 28px;
}
.shop-admin-product-block-head {
    margin-bottom: 10px;
}
.shop-admin-product-block-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    line-height: 30px;
}
.shop-admin-product-block-actions {
    float: right;
}
.shop-admin-product-block-actions .shop-admin-sort-form {
    display: inline-block;
    margin: 0 0 0 6px;
    vertical-align: middle;
}
.shop-admin-sort-cell {
    width: 64px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}
.shop-admin-drag-handle {
    cursor: grab;
    color: #9ca3af;
    font-size: 14px;
    user-select: none;
}
.shop-admin-product-row.is-draggable {
    cursor: grab;
}
.shop-admin-product-row.is-dragging {
    opacity: 0.55;
    background: #eff6ff;
}
.shop-admin-product-row.is-drag-over {
    outline: 2px dashed #93c5fd;
}
.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: 0;
    overflow: hidden;
    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-prelaunch-form {
    min-width: 260px;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}
.users-prelaunch-form .checkbox { margin-top: 0; }
.users-prelaunch-form .help-block { margin-bottom: 10px; }
.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;
}

/* Fogadó főoldal (vendég) */
.welcome-layout .tartalom-row {
    display: flex;
    flex-wrap: nowrap;
}
.welcome-layout .balmenu-sidebar,
.welcome-layout .tartalom-jobbra {
    display: none !important;
}
.welcome-layout .tartalom-oszlop {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    float: none;
    margin-left: 0 !important;
}
.welcome-layout .tartalom-scroll {
    padding: 0;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
.welcome-layout .welcome-page {
    flex: 1 0 auto;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}
.welcome-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--mk-navbar-height, 112px));
    padding: 40px 24px 56px;
    text-align: center;
    overflow-x: hidden;
    overflow-y: visible;
    background: #fff;
}
.welcome-page--has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--welcome-bg-image);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: var(--welcome-opacity, 0.4);
    pointer-events: none;
}
.welcome-page-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 24px;
}
.welcome-brand {
    margin: 0 0 10px;
    line-height: 1.15;
}
.welcome-brand-valora,
.welcome-brand-tagline {
    background: var(--mk-brand-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.welcome-brand-valora {
    font-family: var(--mk-font-brand, "Great Vibes", cursive);
    font-size: clamp(42px, 7vw, 63px);
    font-weight: 400;
    line-height: 1.2;
}
.welcome-brand-tagline {
    font-family: var(--mk-font, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(14px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-left: 8px;
    position: relative;
    top: -4px;
}
.welcome-title {
    margin: 0 0 16px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}
.welcome-body {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}
.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.welcome-actions .btn {
    min-width: 160px;
}
.app-layout .tartalom-scroll:has(.welcome-member-shell),
.app-layout .tartalom-scroll:has(.welcome-page) {
    display: flex;
    flex-direction: column;
}
.app-layout .tartalom-scroll:has(.welcome-member-shell) {
    /* A hírfolyam a hero alatt van: a tartalom magassága szerint görgessen. */
    overflow-y: auto;
    min-height: 0;
}
.app-layout .welcome-member-shell {
    display: flex;
    flex-direction: column;
    /* Ne zsugorodjon a viewportba — különben a hírfolyam levágódik és nem görgethető. */
    flex: 0 0 auto;
    width: 100%;
    min-height: 100%;
}
.app-layout .welcome-member-shell .welcome-page {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    min-height: min(52vh, 480px);
    height: auto;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}
.app-layout .welcome-page {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}
.app-layout .welcome-page--has-bg::before {
    background-size: cover;
}
.welcome-news-feed {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    box-sizing: border-box;
    scroll-margin-top: 12px;
}
.welcome-news-feed-heading {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}
.welcome-news-feed-empty {
    margin: 0;
}
.welcome-news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.welcome-news-item-header {
    margin-bottom: 12px;
}
.welcome-news-item-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}
.welcome-news-item-date {
    display: block;
    font-size: 13px;
    color: #64748b;
}
.welcome-news-item-media {
    margin: 0 0 12px;
}
.welcome-news-item-media img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}
.welcome-news-item-body {
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
}
.system-settings-welcome-preview {
    margin: 0 0 12px;
}
.system-settings-welcome-preview-img {
    display: block;
    max-width: 280px;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    object-fit: cover;
}
.system-settings-opacity-value {
    margin-left: 8px;
    font-weight: 600;
    color: #334155;
}
.system-settings-opacity-range {
    padding: 0;
    height: 28px;
    box-shadow: none;
}
.system-settings-welcome-preview-actions {
    margin: 8px 0 0;
}
.settings-welcome-back {
    margin: -4px 0 18px;
}

.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-member-banner {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.prelaunch-member-banner-title {
    margin: 0 0 10px;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 600;
}
.prelaunch-member-banner-body {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}
.prelaunch-member-banner-countdown {
    margin-top: 18px;
}
.prelaunch-member-banner .prelaunch-countdown-row {
    justify-content: flex-start;
    margin: 0;
}
.prelaunch-member-banner .prelaunch-countdown-value {
    font-size: clamp(28px, 6vw, 40px);
}
.prelaunch-member-banner .prelaunch-countdown-label {
    font-size: 12px;
}
.prelaunch-member-banner .prelaunch-countdown-sep {
    font-size: clamp(24px, 5vw, 36px);
}
.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-sim-panel { margin-top: 28px; }
.system-settings-sim-form .form-control { max-width: 200px; }
.system-settings-limits-table { margin-bottom: 0; }
.email-templates-admin-page .email-templates-lead { margin-bottom: 16px; }
.email-templates-picker .panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-end;
}
.email-templates-picker .form-group { margin-bottom: 0; }
.email-templates-picker .panel-footer { border-top: 1px solid #ddd; background: #fafafa; }
.email-templates-status { margin-left: auto; align-self: center; }
.email-templates-editor-form .panel-body { max-width: 900px; }
.email-templates-placeholders { margin-top: 8px; margin-bottom: 16px; }
.email-templates-placeholder-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 8px;
}
.email-templates-placeholder-list code { font-size: 12px; }
.email-placeholder-desc { color: #555; }
.email-templates-actions { margin-top: 8px; }
.email-template-editor { width: 100%; }
.newsletter-admin-page .newsletter-admin-lead { margin-bottom: 16px; }
.newsletter-admin-header { margin-bottom: 8px; }
.newsletter-campaigns-table th { white-space: nowrap; }
.newsletter-edit-page .newsletter-edit-header { margin-bottom: 12px; }
.newsletter-recipients-panel { margin-bottom: 20px; }
.newsletter-recipient-count { margin: 12px 0 0; }
.newsletter-filters-placeholder,
.newsletter-filters {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.newsletter-filter-role-list { margin-bottom: 8px; }
.newsletter-filter-user-results { margin-top: 8px; }
.newsletter-filter-user-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.newsletter-filter-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    text-align: left;
}
.newsletter-filter-user-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    opacity: 0.85;
}
.newsletter-filter-user-remove:hover { opacity: 1; }
.newsletter-filter-rules li { margin-bottom: 6px; }
.newsletter-placeholders { margin-top: 8px; margin-bottom: 16px; }
.newsletter-placeholder-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 6px;
}
.newsletter-placeholder-list code { font-size: 12px; }
.newsletter-actions { margin-top: 8px; }
.newsletter-editor { width: 100%; }
.shop-admin-withdrawal-filters { margin-top: 8px; margin-bottom: 16px; }
.shop-admin-withdrawal-cell { min-width: 140px; }
.shop-admin-orders-list { margin-top: 8px; }
.shop-admin-order-card { margin-bottom: 14px; }
.shop-admin-order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
}
.shop-admin-order-card-statuses {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 18px;
}
.shop-admin-order-status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.shop-admin-order-status-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #777;
}
.shop-admin-order-status-fulfillment .shop-order-fulfillment-form,
.shop-admin-order-status-fulfillment .form-control { max-width: 200px; margin: 0; }
.shop-admin-order-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}
.shop-admin-order-number { font-size: 13px; }
.shop-admin-order-date { font-size: 12px; }
.shop-admin-order-card-total { font-size: 16px; font-weight: 600; white-space: nowrap; }
.shop-admin-order-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    background: #fafafa;
}
.shop-admin-order-card-body { padding-top: 14px; padding-bottom: 8px; }
.shop-admin-order-block { margin-bottom: 14px; }
.shop-admin-order-block-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #777;
}
.shop-admin-order-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
.shop-admin-order-items {
    margin: 8px 0 0;
    padding: 0;
    font-size: 12px;
    color: #666;
}
.shop-admin-order-items li { margin-bottom: 2px; }
.shop-admin-order-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
}
.shop-admin-order-fulfillment,
.shop-admin-order-withdrawal { margin-top: 0; }
.shop-admin-order-fulfillment .shop-order-fulfillment-form,
.shop-admin-order-fulfillment .form-control { max-width: 220px; }
.shop-order-shipment-form { margin-top: 8px; }
.shop-admin-order-delivery { font-size: 13px; word-break: break-word; }
.shop-admin-order-withdrawal-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.shop-withdrawal-waiver { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.my-purchases-withdrawal-cell { min-width: 120px; }
.shop-admin-refund-filters { margin-top: 8px; margin-bottom: 16px; }
.shop-admin-withdrawal-refunds-table th { white-space: nowrap; }
.system-settings-limit-qty { width: 90px; }
.system-settings-limit-window { min-width: 140px; }

.gift-selection-lead { margin-bottom: 12px; font-size: 16px; }
.gift-selection-remaining { margin-bottom: 12px; }
.gift-selection-milestone-lead { margin: 0 0 12px; font-size: 14px; color: #555; }
.gift-selection-box { margin-bottom: 0; min-height: 0; }
.gift-selection-box-heading { margin: 0 0 12px; font-size: 15px; }
.gift-selection-modal .modal-dialog.gift-selection-dialog {
    width: min(960px, 96vw);
    margin: 20px auto;
}
.gift-selection-modal .modal-content {
    height: min(860px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
}
.gift-selection-modal .modal-header {
    flex: 0 0 auto;
}
.gift-selection-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.gift-selection-modal .modal-body > .gift-selection-box {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.gift-selection-modal .gift-selection-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.gift-selection-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.gift-selection-chooser {
    flex: 0 0 280px;
    max-width: 320px;
    min-width: 220px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.gift-selection-products {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    overflow-y: auto;
}
.gift-selection-product {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    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; flex-shrink: 0; }
.gift-selection-product-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gift-selection-product-desc { font-size: 12px; line-height: 1.35; }
.gift-selection-preview {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}
.gift-selection-preview-image-wrap {
    position: relative;
    flex: 0 0 360px;
    height: 360px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
}
.gift-selection-preview-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gift-selection-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
    pointer-events: none;
}
.gift-selection-preview-placeholder[hidden] {
    display: none !important;
}
.gift-selection-preview-image[hidden] {
    display: none !important;
}
.gift-selection-preview-meta {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gift-selection-preview-type {
    flex: 0 0 auto;
    margin: 0 0 4px;
    font-size: 13px;
    min-height: 1.2em;
}
.gift-selection-preview-name {
    flex: 0 0 auto;
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
    min-height: 1.25em;
}
.gift-selection-preview-short {
    flex: 0 0 auto;
    margin: 0 0 10px;
    color: #555;
    font-size: 15px;
    min-height: 1.4em;
}
.gift-selection-preview-desc {
    flex: 1 1 auto;
    min-height: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    overflow-y: auto;
}
@media (max-width: 767px) {
    .gift-selection-modal .modal-content {
        height: calc(100vh - 20px);
    }
    .gift-selection-layout { flex-direction: column; }
    .gift-selection-chooser {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        max-height: 34%;
    }
    .gift-selection-preview {
        flex: 1 1 auto;
    }
    .gift-selection-preview-image-wrap {
        flex: 0 0 220px;
        height: 220px;
    }
}
.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; }

