:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;

  --black: #0b0f14;
  --orange: #ff7a00;
  --orange-2: #ff9a3d;

  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;

  --focus: rgba(255,122,0,.35);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body{
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fff 65%, #fafafa 100%);
}

/* Layout */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .4px;
}
.brand-badge{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.22);
}
.userbar{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.userbar a{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.35);
}
.userbar a:hover{border-bottom-color: rgba(255,255,255,.8)}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

h1,h2,h3{margin: 0 0 12px}
h2{font-size: 20px}
p{margin: 10px 0; color: var(--muted)}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.card{
  grid-column: span 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration:none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
  min-height: 90px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,122,0,.45);
}
.card .card-title{font-weight: 800}
.card .card-dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,122,0,.15);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 2px 10px;
  cursor:pointer;
  font-weight: 700;
  text-decoration:none;
  user-select:none;
}
.btn-primary{
  background: var(--orange);
  color: #111;
}
.btn-primary:hover{background: var(--orange-2)}
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{border-color: rgba(255,122,0,.45)}

/* Forms */
.form{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
label{display:block; font-size: 13px; color: var(--muted); margin: 12px 0 6px}
input, select, textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,122,0,.55);
  box-shadow: 0 0 0 4px var(--focus);
}
.row{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap: 12px;
  align-items: start; /* ne húzza fel a magas textarea a többit */ /* [web:217] */
}
.col-6{grid-column: span 6}
.col-12{grid-column: span 12}

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#fff;
  table-layout: fixed;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 14px;
}
.table th{
  background: #fafafa;
  font-size: 13px;
  color: #111;
}
.table tr:hover td{background:#fff7ef}
.table td{
  overflow: hidden;
}
.table td:last-child{
  width: 140px;
  white-space: nowrap;
}
.table td:last-child .btn{
  font-size: 12px;
  padding: 6px 8px;
  margin: 0 2px;
}
.table td:last-child .btn + .btn{
  margin-left: 0;
}

/* Login */
.login-wrap{
  min-height: 100vh;
  display:grid;
  place-items:center;
  padding: 16px;
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(255,122,0,.16), transparent 60%),
    radial-gradient(900px 450px at 80% 0%, rgba(0,0,0,.14), transparent 55%),
    #fff;
}
.login-box{
  width: min(440px, 100%);
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.login-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}
.login-title{
  font-weight: 900;
  font-size: 18px;
}
.error{
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  color: #991b1b;
}

@media (max-width: 1024px){
  .card{grid-column: span 4;}
}
@media (max-width: 720px){
  .card{grid-column: span 6;}
  .col-6{grid-column: span 12;}
}

/* Mobile-first finomhangolás */
:root{
  --radius: 16px;
}

.cards{
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 520px){
  .container{padding: 14px 12px 34px;}
  h2{font-size: 18px}

  .topbar-inner{padding: 12px 12px;}
  .userbar{gap:12px}
  .userbar a{padding: 10px 8px; border-bottom: none}

  .cards{gap: 12px;}
  .card{
    grid-column: span 12;
    min-height: 86px;
    padding: 16px;
  }

  .row{grid-template-columns: repeat(12, 1fr);}
  .col-6, .col-12{grid-column: span 12;}
}

@media (min-width: 521px) and (max-width: 900px){
  .card{grid-column: span 6;}
}

@media (min-width: 901px){
  .card{grid-column: span 3;}
}

/* Desktop top navigation */
.topnav{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.topnav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
}
.topnav a:hover{
  border-color: rgba(255,122,0,.35);
  background: #fff7ef;
}
.topnav a[aria-current="page"]{
  background: var(--orange);
  color: #111;
}

@media (max-width: 720px){
  .topnav{display:none;}
}

/* Topbar extras: breadcrumb + icons + dropdowns + toast */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.breadcrumb a{color: rgba(255,255,255,.9); text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{opacity:.45}
.breadcrumb [aria-current="page"]{color: var(--orange); font-weight:800;}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.iconbtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.iconbtn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.iconbtn:active{ transform: translateY(1px); }
.iconbtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,122,0,.35);
}

.badge{
  position:absolute;
  transform: translate(12px, -12px);
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 2px solid var(--black);
}

.dropdown{
  position: relative;
}
.dropdown-menu{
  position:absolute;
  right: 0;
  top: 52px;
  width: 320px;
  max-width: calc(100vw - 24px);
  background:#fff;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  overflow:hidden;
  display:none;
  z-index: 60;
}
.dropdown-menu.open{display:block;}
.dropdown-menu .hd{
  padding: 10px 12px;
  background:#fafafa;
  border-bottom: 1px solid var(--line);
  font-weight: 1000;
  overflow: hidden;
}
.dropdown-menu .item{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow: hidden;
  background: #fff;
}
.dropdown-menu .item:last-child{border-bottom:none;}
.dropdown-menu .item:hover{background: #fff7ef;}
.dropdown-menu .muted{
  color: var(--muted);
  font-size: 12px;
  margin-top:4px;
  word-break: break-word;
}

/* Toast (flash) */
.toast-wrap{
  position: fixed;
  top: 76px;
  right: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  z-index: 200;
}
.toast{
  width: min(420px, calc(100vw - 28px));
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.toast.success{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.08);
}
.toast .t-title{font-weight: 900;}
.toast .t-msg{color: #14532d; font-size: 13px; margin-top:2px}
.toast .t-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.7);
  cursor:pointer;
}

@media (max-width: 720px){
  .topbar-inner{flex-wrap: wrap;}
  .breadcrumb{width:100%; margin-left:0; order: 3;}
}

/* Topbar menu next to logo */
.topbar-left{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 260px;
}

/* Details-es topmenu (több menü) */
.topmenu{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-left: 2px;
}

.topmenu a,
.topmenu-link{
  position: relative;
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  white-space:nowrap;
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .15px;
  border: 1px solid transparent;
  transition: color .12s ease, background .12s ease;
}

.topmenu a:hover,
.topmenu-link:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.96);
}

.topmenu a::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .14s ease, opacity .14s ease;
  opacity: .9;
}

.topmenu a:hover::after{
  transform: scaleX(.45);
  opacity: .75;
}

.topmenu a[aria-current="page"]{
  color: #fff;
  background: transparent;
}
.topmenu a[aria-current="page"]::after{
  transform: scaleX(1);
  opacity: 1;
}

.topmenu a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,122,0,.35);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.topmenu-more{ position:relative; }
.topmenu-more > summary{ list-style:none; cursor:pointer; }
.topmenu-more > summary::-webkit-details-marker{ display:none; }

.topmenu-more[open] .topmenu-more-menu{ display:block; }

.topmenu-more-menu{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background:#fff;
  color:#111;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.topmenu-more-menu a,
.topmenu-more-item,
.topmenu-more-menu a:link,
.topmenu-more-menu a:visited{
  display:block;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration:none;
  white-space: nowrap;
  color:#111 !important;
}

.topmenu-more-menu a:hover,
.topmenu-more-item:hover{
  background: rgba(0,0,0,.06);
}

@media (max-width: 720px){
  .topmenu{display:none;}
}

/* Mobile hamburger + panel */
.ham{ display:none; }

.ham-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}

.mobilepanel{
  position: fixed;
  inset: 0;
  z-index: 120;
  display:none;
}
.mobilepanel.open{display:block;}

.mobilepanel-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

.mobilepanel-drawer{
  position:absolute;
  top:0; left:0;
  height:100%;
  width: min(340px, 92vw);
  background: #0b0f14;
  color:#fff;
  border-right: 1px solid rgba(255,255,255,.10);
  padding: 12px;
  transform: translateX(-102%);
  transition: transform .16s ease;
}
.mobilepanel.open .mobilepanel-drawer{transform: translateX(0);}

.mobilepanel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}

.mobilepanel-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 800;
}
.mobilepanel-nav a:hover{background: rgba(255,255,255,.08);}
.mobilepanel-nav a[aria-current="page"]{
  background: rgba(255,122,0,.16);
  outline: 1px solid rgba(255,122,0,.35);
}

@media (max-width: 720px){
  .ham{display:block;}
}

/* Breadcrumb bar under topbar */
.crumbbar{
  background:#fff;
  border-bottom: 1px solid var(--line);
}
.crumbbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbbar .breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: var(--muted);
  margin-left: 0;
}
.crumbbar .breadcrumb a{color: #111; text-decoration:none}
.crumbbar .breadcrumb a:hover{text-decoration:underline}
.crumbbar .breadcrumb .sep{opacity:.45}
.crumbbar .breadcrumb [aria-current="page"]{color: var(--orange); font-weight: 900;}

.e404{
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(255,122,0,.18), transparent 60%),
    radial-gradient(700px 260px at 90% 20%, rgba(0,0,0,.10), transparent 55%),
    #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.e404-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:center;
}

.e404-code{
  font-size: 68px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -2px;
  margin: 0 0 8px;
  color: var(--black);
}
.e404-sub{
  font-weight: 900;
  margin: 0 0 8px;
}
.e404-hint{
  color: var(--muted);
  margin: 0;
}

.e404-art{
  border-radius: 18px;
  border: 1px dashed rgba(255,122,0,.55);
  background: rgba(255,122,0,.08);
  padding: 14px;
  min-height: 150px;
  display:grid;
  place-items:center;
  font-size: 44px;
}

.e404-search{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.e404-search input{
  flex: 1 1 220px;
  min-width: 220px;
}

@media (max-width: 820px){
  .e404-grid{grid-template-columns: 1fr;}
  .e404-code{font-size: 56px;}
  .e404-art{min-height: 120px;}
}

/* Fix: checkbox ne legyen óriás */
.form input[type="checkbox"]{
  transform: none !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0;
  vertical-align: middle;
  accent-color: #ff7a00;
  padding: 0 !important;
}

/* ======= CONTENT ONLY: compact inputs + buttons =======
   Nem nyúlunk a .topbar/.topmenu/.topnav elemekhez.
*/
@media (min-width: 721px){
  .container input:not([type="checkbox"]):not([type="radio"]),
  .container select,
  .container textarea{
    height: 34px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  .container textarea{
    resize: vertical;
    overflow: auto;
  }

  .container .btn{
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .container label{
    margin: 8px 0 6px;
  }
}

@media (max-width: 720px){
  .container .btn,
  .container input:not([type="checkbox"]):not([type="radio"]),
  .container select,
  .container textarea{
    min-height: 44px;
  }
}
/* Mobil: minden 1 oszlop */
@media (max-width: 768px) {

  /* A te UI-dban a kártyák konténere */
  .cards{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Ha van olyan grid konténer, ami nem .cards */
  .grid, .grid-2, .grid-3, .grid-4{
    grid-template-columns: 1fr !important;
  }

  /* Űrlap sorok / gomb sorok egymás alá */
  .row{
    display: block;
  }

  /* Két-hat oszlopos form mezők mind teljes szélesség */
  [class*="col-"]{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Felső cím + gombok egymás alá, ne feszítsen */
  h2{
    margin-bottom: 8px;
  }
}
.td-actions{
  white-space: normal;      /* enged törni */
}

.td-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;           /* több sorba tör */
  justify-content:flex-end; /* jobbra igaz */
}

@media (max-width: 768px){
  .td-actions{ justify-content:stretch; }
  .td-actions .btn{ width:100%; }
}
table.table th:first-child,
table.table td:first-child{
  width: 10%;
  white-space: nowrap;
  text-align: right;
}
/* Profil/Account kontroll a topbarban (ha <select> vagy <button>) */
.topbar .userbar select,
.topbar .topbar-actions select,
.topbar .userbar button,
.topbar .topbar-actions button{
  height: 36px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
  font-weight: 800;
}

.topbar .userbar select:focus,
.topbar .topbar-actions select:focus,
.topbar .userbar button:focus,
.topbar .topbar-actions button:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,122,0,.35);
  border-color: rgba(255,255,255,.22);
}
/* ===== FIX 1: gomb ne legyen "lapos" (loginon is) ===== */
.btn{
  padding: 8px 12px;     /* a 2px helyett */
  min-height: 40px;      /* stabil méret [web:449] */
  line-height: 1.1;
  border-radius: 12px;
}

/* login oldalon még kényelmesebb */
.login-box .btn{
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

/* ===== FIX 2: topbar szöveg/ikon látható legyen ===== */
.topbar,
.topbar a,
.topbar .userbar,
.topbar .topbar-actions{
  color: rgba(255,255,255,.92);
}

/* Ha a "Profil" / "Értesítés" valójában select/button: legyen sötét háttér, világos szöveg */
.topbar select,
.topbar button,
.topbar input{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.14);
}

/* A natív <select> lenyíló listáját a böngésző kezeli,
   de az OPTION szövege legalább legyen sötét, hogy fehér háttéren olvasható legyen */
.topbar select option,
.topbar select optgroup{
  color: #111;
  background: #fff;
}
/* ===== PROFIL/ÉRTESÍTÉS DROPDOWN (a .dropdown-menu rendszer) ===== */

/* A panel alap színei */
.topbar .dropdown-menu{
  background: #fff !important;
  color: #111 !important;
}

/* Fejléc (nálad .hd) */
.topbar .dropdown-menu .hd{
  background: #fafafa !important;
  color: #111 !important;
}

/* Menü elemek */
.topbar .dropdown-menu .item{
  background: #fff !important;
  color: #111 !important;
}

/* Kisegítő szöveg */
.topbar .dropdown-menu .muted{
  color: var(--muted) !important;
}

/* Ha van benne link */
.topbar .dropdown-menu a,
.topbar .dropdown-menu a:link,
.topbar .dropdown-menu a:visited{
  color: #111 !important;
  border-bottom: none !important;
  text-decoration: none;
}

/* Hover állapot */
.topbar .dropdown-menu .item:hover,
.topbar .dropdown-menu a:hover{
  background: #fff7ef !important;
  color: #111 !important;
}
/* ===== Profil dropdown finomhangolás (topbar .dropdown-menu) ===== */

/* Trigger (a profil gomb / userbar gomb) legyen egységes méretű */
.topbar .userbar button,
.topbar .topbar-actions button,
.topbar .userbar a{
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
}

/* Panel pozíció + kinézet */
.topbar .dropdown-menu{
  top: calc(100% + 10px) !important;  /* ne tapadjon rá */
  width: 280px;                       /* kicsit kompaktabb */
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.18) !important; /* szebb mélység [web:509] */
}

/* Fejléc és elemek: kicsit “UI-sabb” */
.topbar .dropdown-menu .hd{
  padding: 12px 12px !important;
  font-size: 12px;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.topbar .dropdown-menu .item{
  padding: 10px 12px !important;
  line-height: 1.25;
}

/* Ha vannak benne inputok (képen mintha lenne valami kis mező) */
.topbar .dropdown-menu input,
.topbar .dropdown-menu select,
.topbar .dropdown-menu button{
  height: 36px;
  min-height: 36px;
  border-radius: 12px;
  font-size: 13px;
}

/* Ne örökölje a topbar dashed underline-ját */
.topbar .dropdown-menu a{
  border-bottom: none !important;
}

/* Opcionális: a panelen belüli sorok ne “lebegjenek” */
.topbar .dropdown-menu .item + .item{
  border-top: 1px solid var(--line);
  border-bottom: none; /* nálad border-bottom van, ez szebb így */
}
/* ===== Users page polish ===== */

.pagehead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin: 6px 0 12px;
}
.pagehead-title{ margin:0; }
.pagehead-sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.cardx{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Table wrapper: horizontális scroll kisebb képernyőn [web:527] */
.tablewrap{
  overflow-x: auto;
}

/* Tight table */
.table.table-tight th,
.table.table-tight td{
  padding: 9px 12px;
  line-height: 1.25;
}

.table.table-tight thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
}

.table.table-tight tbody tr:nth-child(even){ background: rgba(0,0,0,.012); }
.table.table-tight tbody tr:hover td{ background: #fff7ef; }

.th-id{ width: 70px; }
.th-center{ text-align:center; width: 70px; }
.th-actions{ width: 260px; text-align:right; }

.td-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}
.td-clip{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Actions: jobb oldal, törés engedve */
.td-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap; /* wrap [web:516] */
  justify-content:flex-end;
  align-items:center;
}

/* kisebb gomb a táblában */
.btn.btn-sm{
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}

/* “Törlés” legyen diszkréten piros */
.btn-danger{
  border-color: rgba(220,38,38,.25) !important;
  color: #991b1b !important;
  background: rgba(220,38,38,.06) !important;
}
.btn-danger:hover{
  border-color: rgba(220,38,38,.40) !important;
  background: rgba(220,38,38,.10) !important;
}

/* Mobil: legyen biztosan scrollozható, ne nyomja össze */
@media (max-width: 720px){
  .table.table-tight{ min-width: 980px; }
}
/* Művelet gombok: mindig 1 sor */
.td-actions{
  display: inline-flex;
  flex-wrap: nowrap;      /* egy sor [web:529] */
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

/* legyen elég hely a 3 gombnak */
.table .th-actions{ width: 320px; }   /* ha használsz th-actions osztályt */
.table td.td-actions{ width: 320px; } /* biztos ami biztos */

/* mobilon inkább scroll, de marad 1 sor */
@media (max-width: 720px){
  .table.table-tight{ min-width: 1100px; }
}
/* ===== Users táblázat: fix ID + 1 soros gombok + Aktív ikon ===== */

/* 1) ID oszlop felülírja a globál first-child jobbra igazítást */
.users-table th:first-child,
.users-table td:first-child{
  width: 70px !important;
  text-align: left !important;
  white-space: nowrap;
}

/* 2) Actions: mindig egy sor (nincs wrap) [web:529] */
.users-table .td-actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* legyen elég hely a 3 gombnak */
.users-table .th-actions,
.users-table td.td-actions{
  width: 320px;
  text-align: right;
}

/* 3) Kis gomb stílus táblában */
.users-table .btn.btn-sm{
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}

/* 4) Aktív ikon */
.users-table .status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  user-select: none;
}

.users-table .status--on{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.22);
  color: #166534;
}

.users-table .status--off{
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.22);
  color: #991b1b;
}

/* 5) Törlés diszkrét piros */
.users-table .btn-danger{
  border-color: rgba(220,38,38,.25) !important;
  color: #991b1b !important;
  background: rgba(220,38,38,.06) !important;
}
.users-table .btn-danger:hover{
  border-color: rgba(220,38,38,.40) !important;
  background: rgba(220,38,38,.10) !important;
}

/* Mobilon: maradjon 1 soros actions, inkább legyen vízszintes scroll */
@media (max-width: 720px){
  .users-table{ min-width: 1100px; }
}
