/* =========================================================
   VENDING MACHINES — GLASS THEME v2
   ========================================================= */

:root {
    --glass-white: rgba(255,255,255,.92);
    --glass-muted: rgba(255,255,255,.68);
    --glass-panel: rgba(9,18,32,.13);
    --glass-panel-strong: rgba(9,18,32,.22);
    --glass-line: rgba(255,255,255,.22);
    --glass-line-soft: rgba(255,255,255,.12);
    --glass-shadow: 0 24px 70px rgba(0,0,0,.34);
}

/* --- photographic-style local mountain backdrop --- */

html,
body {
    min-height: 100%;
}

body {
    color: var(--glass-white) !important;
    background:
        linear-gradient(rgba(5,12,22,.20), rgba(8,10,18,.34)),
        url("img/bg.jpg") center center / cover fixed no-repeat !important;
}

/* dark glass tint + light bloom */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(255,255,255,.11), transparent 32%),
        linear-gradient(115deg, rgba(7,18,34,.18), rgba(38,10,28,.22));
}

/* --- navigation --- */

.navbar {
    background: rgba(5,12,23,.12) !important;
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 10px 35px rgba(0,0,0,.22) !important;
    backdrop-filter: blur(32px) saturate(175%);
    -webkit-backdrop-filter: blur(32px) saturate(175%);
}

.navbar .navbar-brand,
.navbar .text-white {
    color: #fff !important;
}

/* --- page heading --- */

.page-title,
.page-subtitle {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* --- header/search strip --- */

.sticky-header {
    background: rgba(7,16,29,.045) !important;
    border-bottom: 1px solid var(--glass-line-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- glass cards --- */

.card,
.table-container {
    background: var(--glass-panel) !important;
    border: 1px solid var(--glass-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--glass-shadow) !important;
    color: #fff !important;
    backdrop-filter: blur(34px) saturate(175%);
    -webkit-backdrop-filter: blur(34px) saturate(175%);
}

.card-body {
    background: transparent !important;
}

.card-header {
    background: rgba(7,14,25,.16) !important;
    border-bottom: 1px solid var(--glass-line-soft) !important;
    color: #fff !important;
}

/* --- inputs --- */

.form-control,
.form-select {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-control::placeholder {
    color: rgba(255,255,255,.60) !important;
}

.form-control:focus,
.form-select:focus {
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(82,145,255,.95) !important;
    box-shadow: 0 0 0 .2rem rgba(47,124,255,.18) !important;
}

/* --- buttons --- */

.btn {
    border-radius: 10px !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
}

.btn-primary {
    background: rgba(47,124,255,.82) !important;
    border-color: rgba(150,195,255,.45) !important;
}

.btn-secondary {
    background: rgba(105,112,123,.52) !important;
    border-color: rgba(255,255,255,.20) !important;
}

.btn-success {
    background: rgba(25,160,95,.78) !important;
}

/* --- table: transparent glass, not solid navy --- */

.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #fff !important;
    color: #fff !important;
    background: transparent !important;
}

.table thead th,
.table-primary th,
.table-dark th {
    background: RGB(54,88,128) !important;
    color: #fff !important;
    border-color: var(--glass-line-soft) !important;
}

.table tbody td {
    background: rgba(255,255,255,.012) !important;
    color: rgba(255,255,255,.94) !important;
    border-color: rgba(255,255,255,.11) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(255,255,255,.006) !important;
}

.table-hover > tbody > tr:hover > * {
    background: rgba(93,153,255,.12) !important;
}

/* --- action icons: works even when Bootstrap Icons font is absent --- */

td.text-nowrap .bi,
td.text-center .bi {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-style: normal !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 1rem;
    line-height: 1;
}

td.text-nowrap .bi-pencil-square::before,
td.text-center .bi-pencil-square::before {
    content: "✏️" !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

td.text-nowrap .bi-trash::before,
td.text-center .bi-trash::before {
    content: "🗑️" !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

td.text-nowrap .bi-geo-alt::before,
td.text-center .bi-geo-alt::before {
    content: "📍" !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

td.text-nowrap .btn,
td.text-center .btn {
    min-width: 38px;
}

/* --- pagination --- */

.pagination .page-link {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.16) !important;
    backdrop-filter: blur(12px);
}

.pagination .active .page-link {
    background: rgba(47,124,255,.82) !important;
    border-color: rgba(130,180,255,.55) !important;
}

/* --- footer --- */

footer {
    color: rgba(255,255,255,.72) !important;
}


/* =========================================================
   v3 — FORM PAGES + USER ACTIONS
   ========================================================= */

/* Machine create/edit forms:
   keep the existing PHP/HTML untouched and turn the direct
   content form into the same glass surface as the rest. */
.container-fluid > form:not(.search-toolbar) {
    background: rgba(8, 17, 31, .24) !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.30) !important;
    backdrop-filter: blur(34px) saturate(175%);
    -webkit-backdrop-filter: blur(34px) saturate(175%);
    color: #fff !important;
}

.container-fluid > form:not(.search-toolbar) .form-label {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
}

.container-fluid > form:not(.search-toolbar) .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: .35rem;
}

.container-fluid > form:not(.search-toolbar) .mb-3 {
    margin-bottom: .8rem !important;
}

/* Do not let the page heading sit inside a white Bootstrap surface. */
.container-fluid > h3 {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.40);
}

/* User management action area */
.users-page td:last-child {
    white-space: normal !important;
    vertical-align: middle !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
}

.users-page td:last-child > form {
    vertical-align: middle;
}

.users-page td:last-child > form.d-inline-flex {
    gap: 4px !important;
    align-items: center !important;
}

.users-page td:last-child .form-select {
    width: 76px !important;
    min-width: 76px !important;
    padding: .25rem 1.55rem .25rem .45rem !important;
    font-size: .78rem !important;
}

.users-page td:last-child .btn {
    padding: .27rem .48rem !important;
    font-size: .78rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

.users-page td:last-child .btn-outline-secondary {
    min-width: 86px;
}

.users-page td:last-child .btn-outline-danger {
    min-width: 32px !important;
    width: 32px;
    padding-left: .25rem !important;
    padding-right: .25rem !important;
}

/* The user-management cards should also be transparent glass. */
.users-page .card {
    background: rgba(8,17,31,.22) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.users-page .card-header {
    background: rgba(7,14,25,.28) !important;
}

.users-page .password-form {
    max-width: 430px;
}

/* =========================================================
   MACHINE FORM — TRUE GLASS FINAL
   ========================================================= */

body:not(:has(.login-card)) form[method="post"]:has(.row) {
    width: 100% !important;
    margin: 0 0 22px 0 !important;
    padding: 28px !important;

    /* valódi áttetsző üveg */
    background: rgba(255,255,255,.10) !important;

    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 18px !important;

    box-shadow:
        0 20px 60px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.18) !important;

    backdrop-filter: blur(26px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(150%) !important;

    color: #fff !important;
}


/* Ne legyen még egy külön "doboz" a tartalom körül */
body:not(:has(.login-card)) form[method="post"]:has(.row) .row {
    background: transparent !important;
}


/* Címkék */
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-label {
    color: rgba(255,255,255,.90) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 5px rgba(0,0,0,.45);
}


/* Mezők — áttetsző üveg */
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-control,
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-select {

    min-height: 38px !important;

    color: #fff !important;

    background: rgba(255,255,255,.075) !important;

    border: 1px solid rgba(255,255,255,.24) !important;

    border-radius: 9px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 4px 12px rgba(0,0,0,.08) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}


/* Hover */
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-control:hover,
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-select:hover {
    background: rgba(255,255,255,.11) !important;
    border-color: rgba(255,255,255,.34) !important;
}


/* Fókusz */
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-control:focus,
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-select:focus {

    color: #fff !important;

    background: rgba(255,255,255,.14) !important;

    border-color: rgba(100,165,255,.85) !important;

    box-shadow:
        0 0 0 3px rgba(70,140,255,.16),
        inset 0 1px 0 rgba(255,255,255,.12) !important;
}


/* Select legördülő lista */
body:not(:has(.login-card)) form[method="post"]:has(.row) .form-select option {
    background: #fff !important;
    color: #111 !important;
}


/* Gombok */
body:not(:has(.login-card)) form[method="post"]:has(.row) .btn {
    border-radius: 10px !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.20) !important;
}


/* Mentés */
body:not(:has(.login-card)) form[method="post"]:has(.row) .btn-success {
    background: rgba(25,160,95,.78) !important;
    border: 1px solid rgba(170,255,210,.30) !important;
}


/* Mégse */
body:not(:has(.login-card)) form[method="post"]:has(.row) .btn-secondary {
    background: rgba(110,120,135,.38) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
}


/* Cím */
body:not(:has(.login-card)) > .container-fluid > h3 {
    color: #fff !important;
    margin: 0 0 12px 0 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* =========================================================
   MACHINES DASHBOARD — GLASS v5
   ========================================================= */

/* ---------------------------------------------------------
   1. A FEJLÉC MÖGÖTT NE LEGYEN KÜLÖN SÖTÉT PANEL
   --------------------------------------------------------- */

.sticky-header,
.sticky-header.bg-white,
.page-header,
.search-toolbar {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sticky-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}


/* ---------------------------------------------------------
   2. CÍM
   --------------------------------------------------------- */

.page-title {
    color: #fff !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.55) !important;
    margin-bottom: 2px !important;
}

.page-subtitle {
    color: rgba(255,255,255,.72) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.55) !important;
}


/* ---------------------------------------------------------
   3. KERESŐMEZŐ
   --------------------------------------------------------- */

.search-toolbar {
    padding: 4px 0 !important;
}

.search-toolbar .form-control,
.search-toolbar .form-select {
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 10px !important;
    min-height: 38px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 5px 18px rgba(0,0,0,.14) !important;
}

.search-toolbar .form-control {
    min-width: 225px;
}

.search-toolbar .form-control::placeholder {
    color: rgba(255,255,255,.62) !important;
}


/* ---------------------------------------------------------
   4. KERESŐ GOMBOK
   --------------------------------------------------------- */

.search-toolbar .btn {
    min-height: 38px;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

.search-toolbar .btn-primary {
    background: rgba(47,124,255,.78) !important;
    border-color: rgba(150,195,255,.45) !important;
}

.search-toolbar .btn-secondary {
    background: rgba(105,112,123,.48) !important;
    border-color: rgba(255,255,255,.20) !important;
}


/* ---------------------------------------------------------
   5. + ÚJ AUTOMATA
   --------------------------------------------------------- */

.search-toolbar .btn-success,
.search-toolbar .btn-primary.ms-auto {
    background: rgba(47,124,255,.78) !important;
    border: 1px solid rgba(150,195,255,.45) !important;
    min-width: 130px;
}


/* ---------------------------------------------------------
   6. A TÁBLÁZAT KÜLSŐ GLASS PANELJE
   --------------------------------------------------------- */

.sticky-header + .card,
.container-fluid > .card {
    background: rgba(7,17,31,.085) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 18px !important;

    box-shadow:
        0 22px 60px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.10) !important;

    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;

    overflow: hidden !important;
}


/* Bootstrap card belseje legyen teljesen átlátszó */

.card-body,
.table-responsive {
    background: transparent !important;
}


/* ---------------------------------------------------------
   7. TÁBLÁZAT — TÉNYLEGESEN ÁTTETSZŐ
   --------------------------------------------------------- */

#machinesTable {
    width: 100% !important;
    margin: 0 !important;

    table-layout: fixed !important;

    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
    --bs-table-color: #fff !important;

    background: transparent !important;
    color: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}


/* ---------------------------------------------------------
   8. OSZLOPSZÉLESSÉGEK
   --------------------------------------------------------- */

#machinesTable .col-inventory { width: 5%; }
#machinesTable .col-machine   { width: 10%; }
#machinesTable .col-company    { width: 11%; }
#machinesTable .col-zip        { width: 5%; }
#machinesTable .col-city       { width: 7%; }
#machinesTable .col-address    { width: 10%; }
#machinesTable .col-room       { width: 9%; }
#machinesTable .col-nav        { width: 7%; }
#machinesTable .col-afe        { width: 7%; }
#machinesTable .col-mode       { width: 7%; }
#machinesTable .col-per1       { width: 6%; }
#machinesTable .col-per2       { width: 6%; }
#machinesTable .col-cashless   { width: 6%; }
#machinesTable .col-action     { width: 8%; }


/* ---------------------------------------------------------
   9. FEJLÉC
   --------------------------------------------------------- */

#machinesTable thead th {
    background: rgba(8,18,32,.12) !important;

    color: rgba(255,255,255,.95) !important;

    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.18) !important;

    padding: 13px 10px !important;

    font-weight: 650 !important;

    white-space: nowrap !important;

    text-shadow: 0 1px 7px rgba(0,0,0,.5);
}


/* ---------------------------------------------------------
   10. SOROK
   --------------------------------------------------------- */

#machinesTable tbody tr {
    background: transparent !important;
}

#machinesTable tbody td {
    background: rgba(255,255,255,.006) !important;

    color: rgba(255,255,255,.92) !important;

    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;

    border-bottom: 1px solid rgba(255,255,255,.10) !important;

    padding: 10px 10px !important;

    vertical-align: middle !important;

    /* EZ AKADÁLYOZZA MEG A SZÖVEGEK ÖSSZEFOLYÁSÁT */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    line-height: 1.35 !important;
}


/* zebra effekt nagyon finoman */

#machinesTable tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.018) !important;
}


/* hover */

#machinesTable tbody tr:hover td {
    background: rgba(80,145,255,.10) !important;
}


/* ---------------------------------------------------------
   11. MŰVELET OSZLOP
   --------------------------------------------------------- */

#machinesTable th:last-child,
#machinesTable td:last-child {
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
}


/* ikon gombok */

#machinesTable td:last-child .btn {
    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;

    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 2px !important;

    border-radius: 10px !important;

    background: rgba(255,255,255,.025) !important;

    box-shadow:
        0 5px 15px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
}


/* ---------------------------------------------------------
   12. PAGINATION
   --------------------------------------------------------- */

.card .pagination {
    background: transparent !important;
}

.pagination .page-link {
    color: rgba(255,255,255,.90) !important;

    background: rgba(255,255,255,.07) !important;

    border: 1px solid rgba(255,255,255,.16) !important;

    border-radius: 9px !important;

    margin: 0 2px;

    backdrop-filter: blur(10px);
}

.pagination .page-item.active .page-link {
    background: rgba(47,124,255,.78) !important;
    border-color: rgba(130,180,255,.55) !important;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255,255,255,.006) !important;
    color: rgba(255,255,255,.35) !important;
}


/* ---------------------------------------------------------
   13. TÁBLÁZAT ALSÓ VEZÉRLŐSORA
   --------------------------------------------------------- */

.card > .d-flex {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
}


/* ---------------------------------------------------------
   14. KESKENY KÉPERNYŐ
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    #machinesTable {
        min-width: 1350px !important;
    }

    .table-responsive {
        overflow-x: auto !important;
    }
}

/* =========================================================
   SELECT / OPTION — DARK GLASS THEME
   ========================================================= */

/* Minden legördülő lista elemei legyenek olvashatók */
.form-select option {
    color: #111 !important;
    background: #fff !important;
}

/* Felhasználók — jogosultság választó */
.users-page .form-select option {
    color: #111 !important;
    background: #fff !important;
}
/* =========================================================
   GLASS – TÉMAVÁLASZTÓ
   ========================================================= */

.vm-theme-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    padding: 3px 8px;
    height: 34px;
    border:
        1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    background:
        rgba(255,255,255,.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 4px 14px rgba(0,0,0,.15);
    backdrop-filter:
        blur(14px)
        saturate(140%);
    -webkit-backdrop-filter:
        blur(14px)
        saturate(140%);
}


.vm-theme-icon {
    font-size: 15px;
    line-height: 1;
    opacity: .95;
}


.vm-theme-selector select {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    outline: 0 !important;
    color: #fff !important;
    background-color:
        transparent !important;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    padding:
        3px 24px 3px 3px;
    min-width: 82px;
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            rgba(255,255,255,.9) 50%
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,.9) 50%,
            transparent 50%
        );
    background-position:
        calc(100% - 11px) 50%,
        calc(100% - 6px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat:
        no-repeat;
}

.vm-theme-selector select:focus {

    outline: none !important;

    box-shadow: none !important;
}


.vm-theme-selector select option {

    background:
        #17263d !important;

    color:
        #ffffff !important;
}


/* =========================================================
   GLASS – MŰVELET GOMBOK
   Ugyanaz a normális méret, mint az ICE-ben.
   ========================================================= */

.table td:last-child .btn,
.table td.text-center .btn {

    min-width: 38px;

    min-height: 34px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    vertical-align: middle;

    border-radius: 10px;
}
/* =========================================================
   GLASS — AUTOMATA ADATLAP FELIRATOK
   ========================================================= */

.card .text-muted,
.card .small,
.card-body .text-muted,
.card-body .small,
.card-header .text-muted {
    color: rgba(220, 230, 240, .78) !important;
}

.card-body {
    color: #f0f6fc !important;
}

.card-body .fw-semibold,
.card-body .fs-5 {
    color: #f0f6fc !important;
}

/* =========================================================
   GLASS ULTRA — EXTRA ÜVEG HATÁS
   ========================================================= */

.navbar {
    background: rgba(5,12,23,.12) !important;
    backdrop-filter: blur(32px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(175%) !important;
}

.sticky-header {
    background: rgba(7,16,29,.045) !important;
}

.sticky-header + .card,
.container-fluid > .card {
    background: rgba(7,17,31,.085) !important;
    border-color: rgba(255,255,255,.27) !important;
    box-shadow:
        0 24px 65px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.14) !important;
    backdrop-filter: blur(36px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(175%) !important;
}

#machinesTable thead th {
    background: rgba(8,18,32,.12) !important;
    border-bottom-color: rgba(255,255,255,.22) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
}

#machinesTable tbody td {
    background: rgba(255,255,255,.012) !important;
    border-bottom-color: rgba(255,255,255,.085) !important;
}

#machinesTable tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.006) !important;
}

#machinesTable tbody tr:hover td {
    background: rgba(100,160,255,.085) !important;
}

.search-toolbar .form-control,
.search-toolbar .form-select {
    background: rgba(255,255,255,.055) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

#machinesTable td:last-child .btn {
    background: rgba(255,255,255,.025) !important;
    border-color: rgba(255,255,255,.24) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}


/* =========================================================
   GLASS ULTRA v2 — LÁTVÁNYOSAN ÁTTETSZŐ FELÜLETEK
   ========================================================= */

/* Fő táblázat-kártya */
.container-fluid > .card,
.sticky-header + .card,
#machinesTable,
#machinesTable .table-responsive {
    background: transparent !important;
}

/* A külső üvegfelület legyen nagyon áttetsző */
.container-fluid > .card,
.sticky-header + .card {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    box-shadow:
        0 20px 60px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -1px 0 rgba(255,255,255,.06) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
}

/* Táblázat fejléce — ne legyen sötét tömb */
#machinesTable thead,
#machinesTable thead tr,
#machinesTable thead th {
    background: rgba(255,255,255,.055) !important;
    color: rgba(255,255,255,.96) !important;
}

#machinesTable thead th {
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255,255,255,.24) !important;
}

/* Sorok — a háttérkép látszódjon át */
#machinesTable tbody,
#machinesTable tbody tr {
    background: transparent !important;
}

#machinesTable tbody td {
    background: rgba(255,255,255,.018) !important;
    color: rgba(255,255,255,.94) !important;
    border-bottom: 1px solid rgba(255,255,255,.085) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

#machinesTable tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.010) !important;
}

#machinesTable tbody tr:hover td {
    background: rgba(255,255,255,.075) !important;
}

/* Kereső és felső vezérlők */
.search-toolbar .form-control,
.search-toolbar .form-select,
.search-toolbar .btn {
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    backdrop-filter: blur(18px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
}

/* =========================================================
   MŰVELETI GOMBOK — VALÓDI GLASS
   ========================================================= */

#machinesTable td:last-child .btn,
#machinesTable td:last-child a.btn,
#machinesTable td:last-child button.btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;

    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 10px !important;

    box-shadow:
        0 6px 18px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.20) !important;

    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease !important;
}

/* Színes keretek megmaradnak, de az alapfelület üveges */
#machinesTable td:last-child .btn-outline-warning {
    color: #ffd45a !important;
    border-color: rgba(255,193,7,.72) !important;
    background: rgba(255,193,7,.055) !important;
}

#machinesTable td:last-child .btn-outline-danger {
    color: #ff7184 !important;
    border-color: rgba(255,70,95,.72) !important;
    background: rgba(255,70,95,.045) !important;
}

#machinesTable td:last-child .btn-outline-primary {
    color: #72b7ff !important;
    border-color: rgba(60,145,255,.72) !important;
    background: rgba(60,145,255,.045) !important;
}

#machinesTable td:last-child .btn:hover {
    transform: translateY(-1px) !important;
    background: rgba(255,255,255,.16) !important;
    box-shadow:
        0 9px 24px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.30) !important;
}

/* Felső navigáció gombjai */
.navbar .btn,
.vm-theme-selector {
    background: rgba(255,255,255,.055) !important;
    backdrop-filter: blur(18px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(175%) !important;
    box-shadow:
        0 5px 18px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}


/* =========================================================
   GLASS ULTRA v3 — EGYSÉGES GOMBOK + HOVER
   ========================================================= */

/* Minden általános gomb egységes üvegfelületet kap */
.btn,
button,
a.btn {
    background: rgba(255,255,255,.075) !important;
    color: rgba(255,255,255,.95) !important;

    border: 1px solid rgba(255,255,255,.30) !important;
    border-radius: 10px !important;

    box-shadow:
        0 5px 16px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -1px 0 rgba(0,0,0,.08) !important;

    backdrop-filter: blur(16px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(175%) !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease !important;
}

/* Hover — valódi üveg kiemelés */
.btn:hover,
button:hover,
a.btn:hover {
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;

    border-color: rgba(255,255,255,.52) !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -1px 0 rgba(255,255,255,.06) !important;

    transform: translateY(-1px) !important;
}

/* Kattintás */
.btn:active,
button:active,
a.btn:active {
    transform: translateY(0) scale(.98) !important;
    background: rgba(255,255,255,.20) !important;
}

/* =========================================================
   KERESŐ / RESET / ÚJ AUTOMATA
   ========================================================= */

.search-toolbar .btn,
.search-toolbar button,
.search-toolbar a.btn {
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
}

/* Kék Új automata se legyen tömör kék */
.search-toolbar .btn-primary,
.search-toolbar .btn-primary:hover {
    background: rgba(55,135,255,.18) !important;
    border-color: rgba(100,175,255,.52) !important;
    color: #fff !important;
}

/* Keresés */
.search-toolbar .btn-info,
.search-toolbar .btn-info:hover {
    background: rgba(60,155,255,.14) !important;
    border-color: rgba(90,180,255,.48) !important;
    color: #fff !important;
}

/* Reset */
.search-toolbar .btn-secondary,
.search-toolbar .btn-secondary:hover {
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
    color: #fff !important;
}

/* =========================================================
   NAVBAR GOMBOK
   ========================================================= */

.navbar .btn,
.navbar a.btn,
.navbar button {
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
}

.navbar .btn:hover,
.navbar a.btn:hover,
.navbar button:hover {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.52) !important;
}

/* =========================================================
   MŰVELETI GOMBOK
   ========================================================= */

#machinesTable td:last-child .btn,
#machinesTable td:last-child a.btn,
#machinesTable td:last-child button.btn {
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.34) !important;
    backdrop-filter: blur(16px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(175%) !important;
}

#machinesTable td:last-child .btn:hover,
#machinesTable td:last-child a.btn:hover,
#machinesTable td:last-child button.btn:hover {
    background: rgba(255,255,255,.17) !important;
    border-color: rgba(255,255,255,.55) !important;
}

/* Színes funkciók csak a keretben maradjanak */
#machinesTable .btn-outline-warning:hover {
    background: rgba(255,193,7,.14) !important;
}

#machinesTable .btn-outline-danger:hover {
    background: rgba(255,70,95,.13) !important;
}

#machinesTable .btn-outline-primary:hover {
    background: rgba(60,145,255,.14) !important;
}


/* =========================================================
   GLASS ULTRA v4 — TÉMAVÁLASZTÓ GLASS HÁTTÉR
   ========================================================= */

/* A témaválasztó mező */
.vm-theme-selector select,
#vm-theme-select {
    appearance: auto !important;
    -webkit-appearance: auto !important;

    background: rgba(18, 30, 48, .72) !important;
    color: rgba(255,255,255,.96) !important;

    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 8px !important;

    backdrop-filter: blur(18px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(170%) !important;

    box-shadow:
        0 6px 20px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* A lenyíló lista háttere — ne legyen fehér */
.vm-theme-selector select option,
#vm-theme-select option {
    background: #18263a !important;
    color: #ffffff !important;
}

/* Kijelölt téma */
.vm-theme-selector select option:checked,
#vm-theme-select option:checked {
    background: #2b72d6 !important;
    color: #ffffff !important;
}

/* Hover / fókusz */
.vm-theme-selector select:hover,
#vm-theme-select:hover {
    background: rgba(35, 52, 75, .82) !important;
    border-color: rgba(255,255,255,.52) !important;
}

.vm-theme-selector select:focus,
#vm-theme-select:focus {
    outline: none !important;
    border-color: rgba(120,190,255,.70) !important;
    box-shadow:
        0 0 0 2px rgba(80,160,255,.18),
        0 8px 22px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* =========================================================
   GLASS — EGYSÉGES VEZÉRLŐK
   A háttér, kártya és TÁBLÁZAT eredeti témastílusa megmarad.
   Csak a gombokat és a témaválasztót egységesítjük.
   ========================================================= */

/* MINDEN gomb az aktuális téma egyetlen gombfelületét használja */
body .btn,
body button.btn,
body a.btn,
body input[type="button"],
body input[type="submit"],
body .vm-theme-btn {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 6px 18px rgba(0,0,0,.20) !important;
    backdrop-filter: blur(14px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%) !important;
    transition: background .18s ease,border-color .18s ease,
                box-shadow .18s ease,transform .12s ease,color .18s ease !important;
}

/* Bootstrap színosztályok teljes semlegesítése */
body .btn-primary,
body .btn-secondary,
body .btn-success,
body .btn-danger,
body .btn-warning,
body .btn-info,
body .btn-light,
body .btn-dark,
body .btn-outline-primary,
body .btn-outline-secondary,
body .btn-outline-success,
body .btn-outline-danger,
body .btn-outline-warning,
body .btn-outline-info,
body .btn-outline-light,
body .btn-outline-dark {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
}

/* Hover mindenhol ugyanaz */
body .btn:hover,
body button.btn:hover,
body a.btn:hover,
body input[type="button"]:hover,
body input[type="submit"]:hover,
body .vm-theme-btn:hover,
body .btn-primary:hover,
body .btn-secondary:hover,
body .btn-success:hover,
body .btn-danger:hover,
body .btn-warning:hover,
body .btn-info:hover,
body .btn-light:hover,
body .btn-dark:hover,
body .btn-outline-primary:hover,
body .btn-outline-secondary:hover,
body .btn-outline-success:hover,
body .btn-outline-danger:hover,
body .btn-outline-warning:hover,
body .btn-outline-info:hover,
body .btn-outline-light:hover,
body .btn-outline-dark:hover {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.52) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 8px 22px rgba(0,0,0,.26) !important;
    transform: translateY(-1px) !important;
}

body .btn:active,
body button.btn:active,
body a.btn:active,
body .vm-theme-btn:active {
    background: rgba(255,255,255,.20) !important;
    transform: translateY(0) scale(.98) !important;
}

body .btn:focus-visible,
body button.btn:focus-visible,
body a.btn:focus-visible,
body .vm-theme-btn:focus-visible {
    outline: none !important;
    border-color: rgba(120,190,255,.70) !important;
    box-shadow: 0 0 0 3px rgba(80,160,255,.16),0 7px 20px rgba(0,0,0,.20) !important;
}

body .btn:disabled,
body .btn.disabled,
body button:disabled {
    opacity: .42 !important;
    transform: none !important;
}

/* Fejléc + keresősáv */
body .navbar .btn,
body .navbar a.btn,
body .navbar button.btn,
body .navbar .vm-theme-btn {
    min-height: 34px !important;
}

body .search-toolbar .btn,
body .search-toolbar .vm-theme-btn {
    min-height: 38px !important;
}

/* Mentés / Mégse / Edit / Create: nincs több zöld vagy kék Bootstrap-gomb */
body form .btn-success,
body form .btn-primary,
body form .btn-secondary,
body form .btn-danger,
body form .btn-warning,
body form .btn-info {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
}

body form .btn-success:hover,
body form .btn-primary:hover,
body form .btn-secondary:hover,
body form .btn-danger:hover,
body form .btn-warning:hover,
body form .btn-info:hover {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.52) !important;
}

/* Táblázat műveleti ikonok */
body #machinesTable td:last-child .btn,
body #machinesTable td.text-center .btn,
body #machinesTable td.text-nowrap .btn {
    background: rgba(255,255,255,.075) !important;
    color: rgba(255,255,255,.96) !important;
    border-color: rgba(255,255,255,.30) !important;
}

body #machinesTable td:last-child .btn:hover,
body #machinesTable td.text-center .btn:hover,
body #machinesTable td.text-nowrap .btn:hover {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.52) !important;
}

/* Lapozás */
body .pagination .page-link {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.30) !important;
    border-radius: 9px !important;
}

body .pagination .page-link:hover {
    color: rgba(255,255,255,.96) !important;
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.52) !important;
}

/* Témaválasztó: minden témában azonos méret és forma */
body #themeSelector {
    color: rgba(255,255,255,.96) !important;
    background-color: rgba(18,30,48,.78) !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    border-radius: 9px !important;
    min-height: 34px !important;
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 5px 18px rgba(0,0,0,.18) !important;
}

body #themeSelector:focus {
    color: rgba(255,255,255,.96) !important;
    background-color: rgba(18,30,48,.78) !important;
    border-color: rgba(255,255,255,.52) !important;
    box-shadow: 0 0 0 3px rgba(80,160,255,.14) !important;
}

body #themeSelector option {
    background: #18263a !important;
    color: rgba(255,255,255,.96) !important;
}
