/* ===== Modern KH Theme (Project Partner) ===== */
:root {
    --primary: #375273; /* KH kék */
    --primary-600: #0099d1;
    --primary-700: #159ed5;
    --accent:#14B8A6;
    --accent-600:#0F766E;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --muted: #6b7280; /* szürkés szöveg */
    --text: #1f2937; /* fő szöveg */
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .06);
    --ring: 0 0 0 3px rgba(0, 174, 239, .2);
    --notify-size: 48px;      /* gomb méret (44 → 48 vagy 50) */
    --notify-gap: 14px;       /* mennyire legyen a nav alatt (px) */
    --notify-arrow: 10px;     /* a háromszög mérete (px) */
}

/* Alap */
html, body {
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-700);
}

/* Kártyák/panelek */
.panel, .card, .box, .content-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    padding: 12px !important;
}

.panel-title, .card-header {
    color: var(--primary-700);
    font-weight: 600;
}

/* ===== NAVBAR FIX + PILL STÍLUS ===== */

/* Háttér: letisztult kék gradient */
.main-navbar,
.navbar.main-navbar {
    background: linear-gradient(90deg, #6d8dad 0%, #365171 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    min-height: 56px; /* stabil magasság */
}

/* az alap bootstrap „open” szürkeséget kiütjük */
.main-navbar.navbar-default .navbar-nav > .open > a,
.main-navbar.navbar-default .navbar-nav > .open > a:hover,
.main-navbar.navbar-default .navbar-nav > .open > a:focus{
    background: transparent;
    color: #fff;
}

/* a panel maga */
.main-navbar .navbar-nav > li > .dropdown-menu{
    margin-top: 10px;
    padding: 8px;
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(2,8,20,.18);
    max-height: none !important;
    overflow: visible !important;
}

/* kis nyíl a panel tetején */
.main-navbar .navbar-nav > li > .dropdown-menu::before{
    content: "";
    position: absolute;
    top: -8px;
    left: 24px; /* ha jobbra igazítod a menüt, lentebb van ennek a párja */
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--surface) transparent;
    filter: drop-shadow(0 -1px 0 rgba(0,0,0,.08));
}

/* jobbra igazított (dropdown-menu-right) nyílpozíció */
.main-navbar .navbar-right > li > .dropdown-menu::before,
.main-navbar .navbar-nav > li > .dropdown-menu.dropdown-menu-right::before{
    left: auto;
    right: 24px;
}

/* sorok – ikon + szöveg egységesen */
.main-navbar .dropdown-menu > li > a{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
}
.main-navbar .dropdown-menu > li > a i{
    width: 18px;                 /* fix ikon-sáv, nem ugrál a szöveg */
    text-align: center;
    color: var(--primary-700);
    opacity: .95;
}

.dropdown-submenu{ position: relative; }
.dropdown-submenu > .dropdown-menu{
    display: none;         /* hover/clickre nyitjuk */
    position: absolute;
    top: 0;
    left: 100%;            /* jobbra nyíljon ki */
    margin-left: 6px;
    margin-top: -8px;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(2,8,20,.18);
}
.dropdown-submenu:hover > .dropdown-menu{ display: block; }  /* hover open desktopon */

/* ha balra kell nyitni (jobb szélen), adj osztályt: .dropstart */
.dropdown-submenu.dropstart > .dropdown-menu{
    left: auto; right: 100%; margin-left: 0; margin-right: 6px;
}

/* nyíl jelzés az olyan <a>-kon, amiknek van almenüjük */
.dropdown-submenu > a::after{
    content: "\f105";                /* FontAwesome chevron-right */
    font-family: FontAwesome;
    font-size: 14px;
    margin-left: auto;
    color: var(--muted);
    opacity: .9;
}

/* --- KH-narancs akcentus a sorokhoz --- */
.main-navbar .dropdown-menu > li > a{
    position: relative;
}
.main-navbar .dropdown-menu > li > a:hover,
.main-navbar .dropdown-menu > li.active > a{
    background: #f0faff;
    color: var(--primary-700);
    /* vékony narancs sáv bal oldalt */
    box-shadow: inset 3px 0 0 var(--accent);
}

/* nested menüben is maradjon látható minden */
.main-navbar .dropdown-menu,
.main-navbar .dropdown-menu .dropdown-menu{
    overflow-x: visible;
}

/* opcionális: egy hajszállal nagyobb sorköz a könnyebb kattintáshoz */
.main-navbar .dropdown-menu > li > a{ padding: 11px 12px; }

/* hover/active – finom kék háttér */
.main-navbar .dropdown-menu > li > a:hover,
.main-navbar .dropdown-menu > li.active > a{
    background: #f0faff;
    color: var(--primary-700);
}

/* elválasztó és szekciófejléc */
.main-navbar .dropdown-menu > .divider{
    height: 1px; margin: 6px 8px;
    background: #eef2f7;
}
.main-navbar .dropdown-header{
    padding: 8px 12px;
    font-weight: 800;
    color: var(--muted);
}

/* több oszlop (adj 'cols-2' vagy 'cols-3' osztályt az <ul class="dropdown-menu">-nak) */
.main-navbar .dropdown-menu.cols-2{
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px;
}
.main-navbar .dropdown-menu.cols-3{
    display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 8px;
}
.main-navbar .dropdown-menu.cols-2 > li,
.main-navbar .dropdown-menu.cols-3 > li{
    break-inside: avoid;
}

/* keskeny kijelzőn szélesebbre nyíljon ki */
@media (max-width: 992px){
    .main-navbar .navbar-nav > li > .dropdown-menu{
        left: 12px !important; right: 12px !important;
        min-width: unset; width: calc(100vw - 24px);
    }
    .main-navbar .navbar-nav > li > .dropdown-menu::before{
        left: 40px; right: auto;
    }
}

/* Kihúzzuk a bootstrap belső margóit, hogy középre álljon minden */
.main-navbar .container-fluid,
.main-navbar .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

.main-navbar .navbar-nav {
    margin: 0;
}

/* Linkek tipó + függőleges igazítás (nem csúszik) */
.main-navbar .nav > li > a {
    color: #fff !important;
    font-weight: 600;
    padding: 10px 14px; /* vízszintes ritmus */
    line-height: 36px; /* 56 (navbar) - 2*10 (padding) = 36 */
    height: 56px; /* teljes nav magasság */
    display: flex;
    align-items: center;
    gap: 8px; /* ikon + szöveg szebb */
    position: relative;
    border-radius: 9999px; /* pill forma */
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}

/* Ikon finom igazítás */
.main-navbar .nav > li > a i {
    font-size: 16px;
    opacity: .95;
}

/* Hover/aktív – pill háttér, nem border, így nem tolja el a szöveget */
.main-navbar .nav > li > a:hover {
    background: rgba(255, 255, 255, .12); /* halványabb háttér */
    box-shadow: inset 0 -2px 0 #14b8a6; /* vékony narancs vonal alul */
}

.main-navbar .nav > li.active > a,
.main-navbar .nav > li.open > a,
.main-navbar .nav > li > a:focus {
    background: rgba(255, 255, 255, .28) !important;
    box-shadow: inset 0 -3px 0 #0f766e;
    color: #fff !important;
}

/* Bootstrap „szürke aktív” felülírása minden állapotra */
.main-navbar.navbar-default .navbar-nav > .active > a,
.main-navbar.navbar-default .navbar-nav > .active > a:hover,
.main-navbar.navbar-default .navbar-nav > .active > a:focus,
.main-navbar.navbar-default .navbar-nav > .open > a,
.main-navbar.navbar-default .navbar-nav > .open > a:hover,
.main-navbar.navbar-default .navbar-nav > .open > a:focus {
    background: rgba(255, 255, 255, .28) !important;
    color: #fff !important;
}


/* ============ NOTIFICATION BELL – DROP-IN ============ */

/* A <li> amiben a csengő van */
.notification-li { position: relative; }

/* Ikon konténer – a navbar magasságához igazítva */
.notification-icon-container{
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: var(--notify-size);
    height: var(--notify-size);
    border-radius: 9999px;
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
    margin: 0; cursor: pointer;
}
.notification-icon-container:hover{ background: rgba(255,255,255,.14); }
.notification-icon-container:active{ transform: translateY(1px); }

/* A harang ikon */
.notification-icon i{
    color: #fff; line-height: 1;
    text-shadow: 0 1px 0 rgba(0,0,0,.15);
    font-size: 20px;
}

/* Badge (piros kör) a számmal */
.notification-count{
    position: absolute; top: 4px; right: 4px;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: #ef4444; color: #fff; font-weight: 700; font-size: 12px;
    border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.2);
}

/* ===== DROPDOWN PANEL ===== */
.notification-dropdown{
    position: absolute;
    top: calc(100% + var(--notify-gap)) !important;
    right: 0 !important;
    width: 360px; max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(2,8,20,.16);
    z-index: 9999;

    /* animált megjelenítés */
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    padding: 0;
}
.notification-dropdown.show{
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-delay: 0s;
}

/* Nyíl a tetején */
.notification-dropdown::before{
    content: ""; position: absolute; top: calc(var(--notify-arrow) * -1); right: 18px;
    border-width: var(--notify-arrow); border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -1px 0 rgba(0,0,0,.08));
}

/* Fejléc */
.notify-header{
    margin: 0; padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.notify-header span{ color: #0f2740; font-weight: 800; }

/* Lista konténer */
#notificationList{
    margin: 0; padding: 0; background: #fff;
    max-height: 360px; overflow: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Dátum-sáv (a te .notification-date .head-date) */
#notificationList .notification-date{ margin:0; padding:0; }
#notificationList .notification-date .head-date{
    margin: 0;
    padding: 8px 16px;
    font-size: 12px; color: #6b7280;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

/* Értesítés elem (a te .notification-box) */
#notificationList .notification-box{
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
    background: transparent;         /* ne legyen belső kártya-hatás */
    border: none; border-top: 1px solid #f1f5f9;
    border-radius: 0; box-shadow: none;
    cursor: pointer;
    transition: background .12s ease;
}
#notificationList .notification-box:first-child{ border-top: none; }
#notificationList .notification-box:hover{ background: #f8fafc; }

/* Olvasatlan kiemelés (opcionális) */
#notificationList .notification-box.notification-highlight{
    background: rgba(0,174,239,.06);
}

/* Szövegek */
#notificationList .notification-title{ font-weight: 600; color: #0f2740; }
#notificationList .notification-created{ margin-top: 4px; font-size: 12px; color: #6b7280; }

/* Jobb oldali kék jelző pötty (a te .circle) */
#notificationList .notification-box .circle{
    margin-left: auto; align-self: center;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary, #00aeef);
    box-shadow: 0 0 0 2px #fff;
}

/* Üres állapot szöveg */
#notificationList:empty::before{
    content: "Nincs új értesítés";
    display: block; padding: 16px; color: #6b7280; text-align: center;
}

/* Diszkrét görgetősáv (WebKit) */
#notificationList::-webkit-scrollbar{ width: 8px; }
#notificationList::-webkit-scrollbar-thumb{ background: #e5e7eb; border-radius: 9999px; }
#notificationList::-webkit-scrollbar-thumb:hover{ background: #d1d5db; }

/* Mobilon keskenyebb panel */
@media (max-width: 768px){
    .notification-icon-container{ width: 40px; height: 40px; }
    .notification-dropdown{ width: 320px; }
}

.main-navbar .navbar-right > li.notification-li{
    position: relative;
    display: flex; align-items: center;
}

/* ring animáció a harangra */
@keyframes bell-ring {
    0%   { transform: rotate(0); }
    12%  { transform: rotate(18deg); }
    24%  { transform: rotate(-14deg); }
    36%  { transform: rotate(10deg); }
    48%  { transform: rotate(-7deg); }
    60%  { transform: rotate(4deg); }
    72%  { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}
.notification-icon i { transition: transform .15s ease; transform-origin: 50% 8%; }
.notification-icon.ringing i { animation: bell-ring .8s ease-in-out; }

/* kis hullám/ripple a gomb körül */
@keyframes bell-ping {
    0%   { transform: scale(1);   opacity: .35; box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
    100% { transform: scale(1.6); opacity: 0;   box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
.notification-icon-container::after{
    content:""; position:absolute; inset:0; margin:auto;
    width:44px; height:44px; border-radius:9999px; pointer-events:none;
    opacity:0;
}
.notification-icon-container.ringing::after{ animation: bell-ping .6s ease-out; }

/* a piros badge „bump” */
@keyframes count-bump {
    0% { transform: scale(1); }
    40%{ transform: scale(1.25); }
    100%{ transform: scale(1); }
}
.notification-count.bump { animation: count-bump .35s cubic-bezier(.34,1.56,.64,1); }

.main-navbar .navbar-right > li > a,
.notification-icon-container{
    align-self: center;
}

/* ==== MODERN DROPDOWN STYLING ==== */

/* Panel */
.notification-dropdown {
    background: var(--c-bg, #fff);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
    overflow: hidden;
}

/* Fejléc */
.notify-header {
    padding: 12px 16px;
    background: var(--c-bg, #fff);
    border-bottom: 1px solid #f1f5f9;
}
.notify-header span {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f2740;
}

/* Lista */
#notificationList {
    max-height: 360px;
    overflow-y: auto;
    background: var(--c-bg, #fff);
}

/* Dátum sor */
#notificationList .notification-date .head-date {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 6px 16px;
    font-size: 12px;
    color: #6b7280;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Értesítés elem */
#notificationList .notification-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}
#notificationList .notification-box:hover {
    background: #f9fafb;
}
#notificationList .notification-box.notification-highlight {
    background: rgba(0, 174, 239, .08);
}

/* Szövegek */
#notificationList .notification-title {
    font-weight: 600;
    color: #0f2740;
}
#notificationList .notification-created {
    font-size: 12px;
    color: #6b7280;
}

/* Görgetősáv szebb */
#notificationList::-webkit-scrollbar {
    width: 6px;
}
#notificationList::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 9999px;
}
#notificationList::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}




/* Jobb oldali ikonok/nyelvválasztó magasságra igazítása */
.main-navbar .navbar-right > li > a {
    height: 56px;
    line-height: 36px;
}

/* Bal oldali sidebar */
.left-sidebar {
    background: linear-gradient(180deg, #4a6787 0%, #192635 100%);
    transition: background .3s ease;
}

.left-sidebar li a, .left-sidebar i {
    color: #e9f5fb;
}

.left-sidebar li a {
    transition: all .2s ease;
}

.left-sidebar li a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: var(--radius);
}

/* Sidebar listaelemek */
.left-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-sidebar li a {
    display: flex;              /* ikon + szöveg egy sorban */
    align-items: center;        /* középre igazítás */
    gap: 10px;                  /* ikon és szöveg közti térköz */
    padding: 10px 15px;
    color: #e9f5fb;
    text-decoration: none;
    transition: all .2s ease;
}

.left-sidebar li a i {
    font-size: 16px;            /* ikon méret */
    flex-shrink: 0;             /* ne torzuljon az ikon */
}

.left-sidebar li a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: var(--radius);
}

/* Aktív menüpont a bal oldali sávban */
.left-sidebar .mnuItem.active > a {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
}
.left-sidebar .mnuItem.active > a i {
    color: #fff;
}


/* Breadcrumb */
.breadcrumb {
    background: transparent;
    border: none;
    padding-left: 0;
    margin-bottom: .75rem;
}

.breadcrumb li, .breadcrumb a {
    color: var(--muted)
}

.breadcrumb li a:hover {
    color: var(--primary-700)
}

/* Gombok */
.btn, .dt-button {
    /*border-radius: calc(var(--radius) - 2px);*/
    border: 1px solid transparent;
    font-weight: 600;
    transition: all .2s ease;

    border-radius: 15px !important;
}

.btn-success, .btn-case, .btn-primary, .dt-button.buttons-colvis {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-success:hover, .btn-case:hover, .btn-primary:hover, .dt-button.buttons-colvis:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: #FFFFFF;
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-warning:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
}

.btn:hover, .dt-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* Tabok */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end; /* az alsó éleket egy szintre hozza */
}

.nav-tabs > li {
    list-style: none;
}

.nav-tabs > li > a {
    display: block;
    padding: .6rem 1rem;         /* maradhat */
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border: none;

    /* Lényeg: mindig ugyanakkora alsó “vonal”, csak átlátszó */
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;          /* hogy a 1px tabs-kerethez simuljon */
}

.nav-tabs > li > a:hover,
.nav-tabs > li.active > a {
    color: var(--primary-700);
    background: transparent;
    border-bottom-color: var(--primary);  /* csak a szín vált */
}

/* űrlapok */
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"],
textarea, select, .select2-container .select2-selection {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .55rem .7rem;
    color: var(--text);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.select2-container .select2-choice {
    border-radius: 20px !important;
}

.form-control {
    border-radius: 20px !important;
}

.input-group.date .form-control {
    border-radius: 20px !important;
}

input:focus, textarea:focus, select:focus,
.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.2rem;
}

.select2-container--default .select2-selection--single {
    height: 2.4rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Címkék/mezőcímek */
label {
    font-weight: 600;
    color: #334155
}

/* DataTables */
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc {
    padding: 10px 30px 10px 10px !important;
}

.mainTable > tbody > tr > td, .mainTable tbody a .mainTable > tfoot > tr > td, .mainTable > tfoot > tr > td {
    padding: 10px 30px 10px 10px !important;
}

table.dataTable thead th {
    background: #f3f7fb;
    color: #0f2740;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    padding: .6rem 1rem;
}

table.dataTable tbody tr:hover {
    background: #f9fcff
}

table.dataTable tbody td {
    border-top: 1px solid var(--border)
}

table.dataTable tbody tr.selected, table.dataTable tbody tr.selected td {
    background: rgba(0, 174, 239, .08) !important;
}

.dataTables_filter input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .4rem .6rem;
}

.dt-button-collection {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow) !important;
}

.dt-button-collection .dt-button {
    background: #f7fafc !important;
    color: #111 !important;
    border: 1px solid var(--border) !important;
    margin: .25rem !important;
}

.dt-button-collection .dt-button.active,
.dt-button-collection .dt-button:focus,
.dt-button-collection .dt-button:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Státusz pöttyök */
.dot {
    display: inline-block;
    width: 15px; /* nagyobb méret */
    height: 15px;
    border-radius: 50%;
    margin-right: .5rem;
    vertical-align: middle;
    box-shadow: 0 0 3px rgba(0, 0, 0, .2); /* finom árnyék */
    border: 2px solid #fff; /* fehér keret, hogy kiemelkedjen */
}

.dot-new {
    background: var(--primary)
}

.dot-closed {
    background: #ef4444
}

.dot-inprogress {
    background: #06b6d4
}

.dot-rejected {
    background: #f59e0b
}

.dot-complaint {
    background: #8b5cf6
}

.dot-default {
    background: #9ca3af
}

/* Alsó „Windows – Chrome” / infó sáv */
.site-footer .s-footer-bottom,
#app-bottom-bar, .bottom-info {
    background: var(--surface);
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* Kis kártyacímek a szekciókhoz (pl. „Ügy”, „Alap adatok”) */
.section-title, .legend, .fieldset-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #0f2740;
    font-weight: 700;
    letter-spacing: .2px;
}

.section-title::before {
    content: "";
    width: .5rem;
    height: 1.1rem;
    background: var(--accent);
    border-radius: 2px;
}

/* Select mezők */
input[type="text"], input[type="date"], select, .select2-container .select2-selection {
    height: 33px; /* egységes magasság */
    line-height: 1.4;
    padding: .4rem .6rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px; /* kb. height-2px */
}

.select2-container--default .select2-selection--single {
    height: 38px;
}

label.required::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* ===== Kontraszt-biztos, visszafogott nav-pill ===== */

/* Alap: fehér felirat + enyhe fehér tint, színes kontúr */
.main-navbar .topMenu > li{ --c:#22c55e; } /* default, ha nincs ID */

.main-navbar .topMenu > li > a{
    display:inline-flex; align-items:center; gap:8px;
    height:56px; padding:0 14px; border-radius:12px;
    /* a halvány fehér háttér segít elválni a teal navbartól */
    background: rgba(255,255,255,.08); /* halvány fehéres alap */
    /* kontúr a saját színnel */
    border: 1.6px solid color-mix(in srgb, var(--c) 65%, transparent);
    /* felirat/ikon fehér – ez adja a biztos kontrasztot */
    color:#fff !important;
    box-shadow:none; text-shadow:0 1px 0 rgba(0,0,0,.18);
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.main-navbar .topMenu > li > a i,
.main-navbar .topMenu > li > a .caret{ color:inherit !important; }

/* Hover/active: picit erősebb, de még visszafogott tint */
.main-navbar .topMenu > li > a:hover{
    background: color-mix(in srgb, var(--c) 18%, transparent); /* 12% -> 18% */
    border-color: color-mix(in srgb, var(--c) 80%, transparent);
}
.main-navbar .topMenu > li.active > a,
.main-navbar .topMenu > li.open > a{
    background: color-mix(in srgb, var(--c) 24%, transparent); /* 16% -> 24% */
    border-color: color-mix(in srgb, var(--c) 85%, transparent);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 22%, transparent);
}

/* Fókuszgyűrű billentyűs navigációhoz */
.main-navbar .topMenu > li > a:focus-visible{
    outline:none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent);
}

/* --- Jól látszó, „meleg” paletta a teal háttéren --- */
/* (állítsd az ID-kat a tényleges menüidre) */
#menuOpener     { --c: #f62417; } /* Menü – amber 500 */
#mnuAllCases    { --c: #ff0000; } /* Főoldal – sky 400 */
#mnuCases20     { --c:#10b981; } /* Feladatok – emerald 500 */
#mnuTorzsadatok { --c:#fb923c; } /* Törzsadatok – orange 400 */
#daily          { --c:#60a5fa; } /* Statisztikák – blue 400 */
#mnuRendszer    { --c:#a78bfa; } /* Rendszer – violet 400 */


:root{
    --nav-gap: 14px;     /* 10–16 közé állíthatod */
    --pill-px: 16px;     /* vízszintes belső margó a pillben */
    --pill-h: 56px;      /* magasság – maradhat */
}

.main-navbar #collapse-6 .topMenu{
    display:flex;
    align-items:center;
    gap: var(--nav-gap);
    flex-wrap: wrap;     /* ha szűk a hely, sortöréssel sem ütköznek */
}
.main-navbar .topMenu > li{ float:none; }  /* Bootstrap float kiütése */
.main-navbar .topMenu > li > a{
    height: var(--pill-h);
    padding: 0 var(--pill-px);
}