:root{
  --primary:#FD774E;
  --primary-washed: color-mix(in srgb, var(--primary) 12%, white 88%);
  --primary-ink:#8A3D28;
  --bg:#FAFAF8;
  --surface:#FFFFFF;
  --ink:#1E1E1E;
  --muted:#6B7280;
  --line:#E6E6E0;
  --text-dark: #171717;
  --ok: white;
  --danger: white;
  --radius:18px;
  --shadow:0 8px 28px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0; background:var(--bg); color:var(--ink);
  font-family:'Poppins', sans-serif;
}
.wrap{max-width:1300px; margin:16px auto; padding:0 12px}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: transparent; /* no shared background */
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 10px;
}

/* first column: no background or border */
.topbar > .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.topbar > .env {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

@media (max-width: 720px){
    .topbar {
        flex-direction: column;
    }
    .topbar .env {
        width: 100%;
    }
}

/* second column: desktop style */
.topbar > .env {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

/* responsive alignment for mobile */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
  }

  .topbar .env {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* user info left */
  .topbar .env .usertext {
    order: 1;
  }

  /* buttons right */
  .topbar .env .btn-light {
    order: 2;
    margin-left: auto;
  }

  .topbar .env #signOutBtn {
    order: 3;
    margin-left: 0px; /* small gap between the two buttons */
  }
}


.brand{display:flex; align-items:center; gap:10px}
.brand-badge{inline-size:28px; block-size:28px; border-radius:8px;
  background:linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 65%, #FFB199 35%));
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.6), 0 6px 14px rgba(253,119,78,.28);
}
.brand-title{font-weight:700}
.brand-sub{font-size:12px; color:var(--muted)}
.env{display:flex; align-items:flex-end; gap:8px}
.env-row{display:grid; gap:6px}
.env-row span{font-size:12px; color:var(--muted)}

.tabs{
  display:flex; gap:8px; margin:24px 0 14px 0;
  overflow:auto; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  white-space:nowrap; padding:10px 14px; border-radius:999px; height:44px;
  border:none; background:var(--primary-washed); color:var(--primary);
  font-weight:500; font-size:15px; cursor:pointer; transition:.2s; border-color:transparent; font-family:'Poppins', sans-serif;
}
.tab.is-active{color:#fff; background:var(--primary)}

.panel-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:16px; padding:12px 16px; box-shadow:var(--shadow); margin-bottom:10px;
}
.row{display:flex; align-items:center}
.row.gap{gap:8px}
.row.space{justify-content:space-between; margin-bottom:10px}
.end{justify-content:flex-end}
.input, input, select, textarea{
  font-family:'Poppins', sans-serif; font-size: 15px; padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:#fff; min-width:0;
}
textarea{resize:vertical}
.btn{
  background:var(--primary); color:#fff; border:none; border-radius:12px; padding:10px 14px; font-weight:600; cursor:pointer; height:36px;
}
.btn-light{
  background:var(--primary-washed); color:var(--primary); cursor:pointer;
}
.btn-44high{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 14px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 12px;
  -webkit-border-radius: 12px;
}

.views .view{display:none}
.views .view.active{display:block}

.table{background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow)}
.t-head,.t-row{display:grid; grid-template-columns: 1fr 1fr 100px 94px; gap:20px}
#view-items .t-head, #view-items .t-row{grid-template-columns: 62px 80px 50fr 20fr 30fr 100px 144px;}
#view-pills .t-head, #view-pills .t-row{grid-template-columns: 1fr 1fr 94px}
.t-head{background:#fff; border-bottom:1px solid var(--line); padding:10px 16px; font-weight:600}
.t-row{padding:10px 16px 10px 16px; border-bottom:1px solid var(--line); align-items:center}
.t-row:last-child{border-bottom:none}
.t-actions{display:flex; gap:6px; justify-content:flex-end}
img.thumb{width:80px; height:60px; object-fit:cover; border-radius:10px; border:1px solid var(--line)}

/* --- Modal fixes --- */
.modal {
  border: none;
  padding: 0;
  width: min(100%, 880px);
  max-width: 880px;

  /* FIX: remove default dialog background + corner artifacts */
  background: transparent;
  border-radius: 16px;
  overflow: visible; /* let card corners show properly */

  /* for Safari quirks */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Modal: center card, let CARD handle scroll when needed */
.modal {
  max-height: 90vh;
  overflow: hidden;        /* no scroll on the dialog itself */
  padding: 0;
}

/* Card: scroll only if content taller than viewport */
.modal .card {
  max-height: calc(90vh - 32px); /* small breathing room */
  overflow-y: auto;              /* scrollbar only appears when needed */
  display: flex;
  flex-direction: column;
}

.card{
  display:grid;
  gap:12px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px 18px 0px 18px;
  box-shadow:var(--shadow);
  margin: 0px 12px;
}

.card h3{margin:0 0 6px 0; font-size:24px; font-weight:700; color: var(--primary)}
.grid{display:grid; gap:12px; grid-template-columns:1fr 1fr}
.grid label{color:var(--text-dark); display:flex; flex-direction:column; gap:6px}
.grid label span{font-weight:600}
.modal-lg .grid{grid-template-columns:1fr 1fr}
@media (max-width: 720px){
  .grid{grid-template-columns:1fr}
}

.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  border:1px solid var(--line); border-radius:999px; padding:6px 10px; cursor:pointer; background:#fff; color:var(--ink); font-size:15px; font-family: 'Poppins', sans-serif; font-weight: 400;
}
.chip.is-on{background:var(--primary-washed); color:var(--primary); border-color:var(--primary)}

.toast{
  position: fixed; left: 50%; bottom: 16px; translate:-50% 0;
  background:#171717; color:#fff; padding:10px 14px; border-radius:12px; opacity:0; pointer-events:none; transition:.3s
}
.toast.show{opacity:1}
.bad{color:var(--danger)}
.ok{color:var(--ok)}

.toast-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-content img {
  flex-shrink: 0;
}

/* --- Category sort controls --- */
.sort-cell { display:flex; align-items:center; justify-content:flex-start; }
.sort-ctrl { display:inline-flex; align-items:center; gap:6px; margin-right:6px}
.icon-btn{
  border:none;
  background:var(--primary-washed);
  border-radius:999px;
  height:44px;
  width:44px;
  padding:4px 8px;
  font-size:12px;
  cursor:pointer;
  color:var(--primary);
}
.icon-btn[disabled]{ opacity:.35; pointer-events:none; }
.sort-num{ min-width:28px; text-align:center; font-variant-numeric: tabular-nums; }

/* Category headers inside the Items list */
.cat-h3{
  margin:18px 12px 8px;
  font-size:18px;
  line-height:1.2;
  font-weight:700;
}
.cat-h3 .muted{ color: var(--muted); font-weight:500; font-size:14px; margin-left:6px; }
.cat-block{ padding-bottom:6px; border-bottom:1px dashed var(--line); }
.cat-block:last-child{ border-bottom:none; }

/* === Vertical form layout for Item modal === */
.form-vert .grid{
  grid-template-columns: 1fr !important; /* force single column */
  gap: 14px; /* a bit more breathing room between settings */
}

/* Setting name on top, input below */
.form-vert label{
  display: flex;
  flex-direction: column;
  gap: 6px;          /* space between label text and control */
  font-weight: 600;  /* clearer setting name */
}

.form-vert input,
.form-vert select,
.form-vert textarea{
  font-weight: 400; /* keep fields normal weight */
}

/* === Responsive two-column layout for HU/EN pairs === */
@media (min-width: 720px) {
  .form-vert .field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Make sure labels inside field pairs still stack name above input */
  .form-vert .field-pair label {
    display: flex;
    flex-direction: column;
  }
}

.username{
  font-size:15px;
  color:var(--primary);
  font-weight:500;
  line-height:1.2;
}

.usertext{
  display:grid;
  gap:2px;
  align-content:center;
  min-width: 0;
  margin-right: 6px;
}

p.sub{ margin:0 0 0px; color:var(--muted); font-size:15px; }

#welcomeText{
  overflow-wrap:anywhere; /* long emails won’t push the layout */
}

.icon-btn img {
  display: block;
  margin: 0 auto;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* === Custom switch for publish toggle === */
.switch {
  --button-width: 3.5em;
  --button-height: 2em;
  --toggle-diameter: 1.5em;
  --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
  --toggle-shadow-offset: 10px;
  --toggle-wider: 3em;
  display: inline-block;
}

.switch input[type="checkbox"] {
  display: none;
}

.slider {
  display: inline-block;
  width: var(--button-width);
  height: var(--button-height);
  background-color: var(--primary-washed);
  border-radius: calc(var(--button-height) / 2);
  position: relative;
  transition: 0.3s all ease-in-out;
}

.slider::after {
  content: "";
  display: inline-block;
  width: var(--toggle-diameter);
  height: var(--toggle-diameter);
  background-color: #fff;
  border-radius: calc(var(--toggle-diameter) / 2);
  position: absolute;
  top: var(--button-toggle-offset);
  transform: translateX(var(--button-toggle-offset));
  box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
  transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
  background-color: var(--primary);
}

.switch input[type="checkbox"]:checked + .slider::after {
  transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
  box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"]:active + .slider::after {
  width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
  transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

/* One-off 360° spin for refresh icons */
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-once {
  animation: spin360 0.6s linear;
  transform-origin: 50% 50%;
}

.restaurant-name {
  grid-column: 1 / -1; /* span full width of flex container if converted to grid */
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-top: 24px;
  color: var(--text-dark);
}



.text-gradient {
  color: #fd774e;
  background-image: linear-gradient(45deg, #fd774e 29%, #E8922A 100%, #FF7403 0%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Responsive horizontal scroll + fades for tables --- */
/* PILLS — narrow screens */
@media (max-width: 524px) {
  #view-pills .table-wrap {
    position: relative;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #view-pills .table {
    min-width: 500px;
  }
}

/* ITEMS — medium screens */
@media (max-width: 954px) {
  #view-items .table-wrap {
    position: relative;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #view-items .table {
    min-width: 930px; /* adjust width as needed for your item columns */
  }
}

/* --- ITEMS header layout --- */

/* Default / desktop: Tételek | Search | Buttons */
#view-items .items-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

#view-items .items-head h2 {
  order: 1;
}

#view-items #itemSearch {
  width: 100%;
  max-width: 260px;
  justify-self: end;
  box-sizing: border-box;
  order: 2;
}

#view-items .items-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  order: 3;
}

/* --- Mobile: search drops under the first row --- */
@media (max-width: 500px) {
  #view-items .items-head {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "title buttons"
      "search search";
  }

  #view-items .items-head h2 {
    grid-area: title;
    order: 1;
  }

  #view-items .items-actions {
    grid-area: buttons;
    order: 2;
  }

  #view-items #itemSearch {
    grid-area: search;
    width: 100%;
    max-width: none;
    order: 3;
  }
}

/* CATEGORIES — use same table wrap behavior at max-width 724px */
@media (max-width: 724px) {
  #view-cats .table-wrap {
    position: relative;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #view-cats .table {
    min-width: 700px; /* similar behavior to items/pills: force horizontal scroll */
  }
}

/* Sticky bottom action row with full-width white background */
.modal .card menu.row.gap.end {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--bg);
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: 0;
  margin-top: auto;   /* pushes it to the bottom when content is short */
  padding: 12px 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 18px 18px;
  border-top: 1px solid var(--line);
}

/* Extend / adapt the existing Merdeqa-like system (styles.css) */

.qr-panel-head {
  flex-wrap: wrap;
  align-items: flex-start;
}

.qr-panel-left,
.qr-panel-right {
  display: grid;
  gap: 12px;
}

.qr-panel-left {
  flex: 1 1 260px;
}

.qr-panel-right {
  flex: 2 1 340px;
}

.qr-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.qr-label span {
  font-weight: 500;
  color: var(--text-dark);
}

.qr-inline-label {
  min-width: 90px;
}

.qr-color-label {
  width: 90px;
}

.qr-color-input {
  padding: 6px;
  height: 36px;
}

/* Cards table layout */
#cardsSection .table-wrap {
  margin-top: 10px;
}

#cardsSection .t-head.qr-head,
#cardsSection .t-row.qr-row {
  display: grid;
  grid-template-columns: 160px 60px 60px 258px 180px 120px 0.35fr 80px;
  align-items: center;
  gap: 8px;
}


.qr-head-actions {
  text-align: right;
}

/* Action buttons inside table */
.qr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.qr-actions .btn,
.qr-actions .btn-light {
  padding: 6px 9px;
  height: auto;
  font-size: 11px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  border: none;
}

/* Preview modal */
.qr-preview-body {
  display: grid;
  gap: 12px;
}

.qr-preview-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}

#qrPreviewImage {
  max-width: 260px;
  max-height: 260px;
}

/* Toast tweak */
.toast .toast-content {
  gap: 8px;
  font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 720px) {
  #cardsSection .t-head.qr-head,
  #cardsSection .t-row.qr-row {
    grid-template-columns: 1.5fr 60px 60px 175px 60px;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  /* Stack filters nicely on small screens */
  .qr-panel-head {
    flex-direction: column;
  }

  .qr-panel-right {
    width: 100%;
  }

  #cardsSection .t-head.qr-head,
  #cardsSection .t-row.qr-row {
    grid-template-columns: 1.2fr 60px 60px 110px 60px;
  }
}

/* QR Admin — builds on your existing styles.css */

/* Layout for the header/filter section */
.qr-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.qr-panel-left,
.qr-panel-right {
  display: grid;
  gap: 10px;
}

.qr-panel-left {
  flex: 1 1 260px;
}

.qr-panel-right {
  flex: 2 1 340px;
}

.qr-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.qr-label span {
  font-weight: 500;
  color: var(--text-dark);
}

.qr-inline-label {
  min-width: 90px;
}

.qr-color-label {
  width: 90px;
}

.qr-color-input {
  padding: 6px;
  height: 36px;
}

#cardsSection .t-head.qr-head,
#cardsSection .t-row.qr-row {
  display: grid;
  grid-template-columns: 120px 60px 80px 258px 180px 80px 1fr 55px;
  /*           1      2     3     4       5        6       7     8
               ID    QR    NFC   SVG    Vendégló  Státusz  Menü  Törlés */
  align-items: center;
  gap: 12px;
}

/* Actions */
.qr-head-actions {
  text-align: right;
}

.qr-actions {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

.qr-actions .btn,
.qr-actions .btn-light {
  padding: 6px 9px;
  height: auto;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 500;
}

/* Card ID + status pill */
.qr-card-id-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-card-id {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

.qr-card-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qr-card-status.active {
  background: rgba(0, 180, 80, 0.08);
  color: #00a050;
}

.qr-card-status.inactive {
  background: rgba(0, 0, 0, 0.06);
  color: #777;
}

.qr-url-cell,
.qr-menu-cell {
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
}

/* ensure we can position the "Épp most" badge inside */
.qr-url-cell {
  position: relative;
  padding-top: 4px; /* small room above text for pill */
}

.qr-url-text {
  display: inline-block;
}

/* "Épp most" badge */
.qr-now-badge {
  position: absolute;
  top: -6px;
  right: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--primary);
  color: #fff;
  pointer-events: none;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qr-now-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preview modal */
.qr-preview-body {
  display: grid;
  gap: 12px;
}

.qr-preview-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}

#qrPreviewImage {
  max-width: 260px;
  max-height: 260px;
}

/* Toast */
.toast .toast-content {
  gap: 8px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .qr-panel-head {
    flex-direction: column;
  }
  #cardsSection .t-head.qr-head,
  #cardsSection .t-row.qr-row {
    grid-template-columns: 1.5fr 60px 60px 2.5fr 110px 60px;
  }
}

/* === Utolsó beolvasott kártya (realtime) === */

.last-visit-box {
  display: grid;
  gap: 2px;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--text-dark);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.last-visit-box.is-empty {
  opacity: 0.7;
}

.last-visit-restaurant {
  font-weight: 600;
  font-size: 12px;
}

.last-visit-cardid {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.last-visit-source-tag {
  font-size: 10px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-washed);
  color: var(--primary);
  letter-spacing: 0.05em;
}

.last-visit-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* Restaurant dropdown styling */
.qr-restaurant-select {
  height: 30px !important;
  padding: 0 10px;
  font-size: 12px !important;
  border-radius: 99px !important;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
  cursor: pointer;
  width: 180px;
  appearance: none;
}

.qr-restaurant-select:focus {
  border-color: #999;
}

.qr-restaurant-select {
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%23666' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 10px center;
  background-size: 12px;
  padding-right: 28px;
}

/* Overlay text visible only when nothing is selected */
.qr-restaurant-visible-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

/* Ensure parent <div> is the positioning container */
.qr-row div:nth-child(5) {
  position: relative;
}

/* When no restaurant is selected, hide the select's own text
   so only the overlay label is visible. */
.qr-restaurant-select[data-empty="true"] {
  color: transparent;
}

/* But keep the dropdown list readable when opened */
.qr-restaurant-select[data-empty="true"] option {
  color: #111;
}

/* Make sure the overlay label is on top of the select text */
.qr-restaurant-visible-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  z-index: 1; /* <— important */
}

/* When the dropdown is in 'Hozzárendelés' state (empty) */
.qr-restaurant-select[data-empty="true"] {
  background: var(--primary-washed)
    url("data:image/svg+xml;utf8,<svg fill='%23FD774E' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 10px center !important;
  background-size: 12px;

  color: var(--primary) !important;
  font-weight: 500 !important;
  border-color: var(--primary) !important;
}

/* Ensure the overlay label also adopts primary styling */
.qr-restaurant-select[data-empty="true"] + .qr-restaurant-visible-label {
  color: var(--primary);
  font-weight: 500;
}

/* EMPTY STATE (Hozzárendelés) */
.qr-restaurant-select[data-empty="true"] {
  background: var(--primary-washed)
    url("data:image/svg+xml;utf8,<svg fill='%23FD774E' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
      no-repeat right 10px center !important;
  background-size: 12px;

  border: none !important;
  font-weight: 500 !important;

  /* Hide the SELECT's visible text (without removing the background) */
  color: transparent !important;
  text-shadow: 0 0 0 transparent !important;
}

/* But dropdown options remain readable when opened */
.qr-restaurant-select[data-empty="true"] option {
  color: #111 !important;
  text-shadow: none !important;
}

/* Overlay label styling */
.qr-restaurant-select[data-empty="true"] + .qr-restaurant-visible-label {
  color: var(--primary);
  font-weight: 500;
  opacity: 1;
}

/* === QR Admin header control rows (flex-direction layout) === */

.qr-controls-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap; /* lets it break nicely on smaller widths */
}

/* Row 1: filter + search */
.qr-controls-row-1 .qr-label {
  flex: 1 1 260px; /* both can grow/shrink */
  min-width: 220px;
}

/* Make inputs/selects fill their label width in these rows */
.qr-controls-row-1 .input,
.qr-controls-row-2 .input {
  width: 100%;
}

/* Row 2: last scanned + creator */
.qr-controls-row-2 .qr-label {
  flex: 1 1 340px;
  min-width: 260px;
}

/* Creator inner row (number + button) */
.qr-create-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Keep number input a sane size, button stays 44px high */
#newCardsCount {
  width: 90px;
  height: 44px;
}

.brand-image {
  width: 28px;
  height: 28px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex: 0 0 28px;
}

/* This padding rule (or similar) is what usually breaks it on <720px */
@media (max-width: 720px){
  .brand img { padding: 0; }
}

/* ============================================================
   ADMIN SHELL — sidebar layout
   ============================================================ */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: none;
  z-index: 100;
  box-shadow: 2px 0 12px rgba(0,0,0,.04);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand .brand-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.sidebar-brand .brand-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- NAV ---- */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--primary-washed);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-washed);
  color: var(--primary);
  font-weight: 600;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- SIDEBAR FOOTER ---- */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.sidebar-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.sidebar-usersub {
  font-size: 12px;
  color: var(--muted);
}

/* ---- MAIN ---- */
.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}

/* ---- VIEWS ---- */
.admin-view {
  display: none;
}
.admin-view.active {
  display: block;
}

/* ---- Mobile sidebar ---- */
@media (max-width: 720px) {
  .admin-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }
  .sidebar-brand {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 12px 14px;
    flex-shrink: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    padding: 8px 10px;
    gap: 6px;
    flex: 1;
  }
  .sidebar-footer {
    display: none;
  }
}

/* ============================================================
   RESTAURANTS TABLE
   ============================================================ */

#restaurantsSection .t-head.rest-head,
#restaurantsSection .t-row.rest-row {
  display: grid;
  grid-template-columns: 1fr 120px 1.2fr 190px 175px;
  align-items: center;
  gap: 12px;
}

/* rest-name-cell defined below */

.rest-slug {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

#restSlugEditBtn {
  font-size: 15px;
  font-weight: 500;
  padding: 0 14px;
  width: 115px;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rest-menu-url {
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
}

.rest-link {
  color: var(--primary);
  text-decoration: none;
}
.rest-link:hover {
  text-decoration: underline;
}

.rest-users-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.rest-no-users {
  font-size: 11px;
  color: var(--muted);
}

.rest-user-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  background: color-mix(in srgb, var(--pill-color) 12%, white 88%);
  color: var(--pill-color);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rest-users-manage-btn {
  font-size: 11px;
  padding: 4px 10px;
  height: auto;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
}

.rest-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rest-actions .btn-light,
.rest-actions .btn {
  font-size: 11px;
  padding: 5px 10px;
  height: auto;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}
.btn-danger:hover {
  background: #fecaca !important;
}

/* ============================================================
   USERS MODAL ROW
   ============================================================ */

.users-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.users-add-row .input {
  height: 44px;
}

/* ============================================================
   RESPONSIVE — restaurants table
   ============================================================ */

@media (max-width: 900px) {
  #restaurantsSection .t-head.rest-head,
  #restaurantsSection .t-row.rest-row {
    grid-template-columns: 1fr 110px 1fr 170px 175px;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  #restaurantsSection .table-wrap {
    overflow-x: auto;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  #restaurantsSection .table {
    min-width: 780px;
  }
}

/* ============================================================
   DIALOG / MODAL base fix
   ============================================================ */

dialog.modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 640px;
  width: calc(100% - 32px);
  border-radius: 18px;
  overflow: visible;
  box-shadow: none;
}

dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

dialog.modal .card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0;
  padding: 24px;
}

dialog.modal .card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

#usersModal {
  max-width: 600px;
}

/* ============================================================
   RESTAURANT TABLE — extended styles
   ============================================================ */

/* Status dot before name */
.rest-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rest-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}
.rest-status-dot.dot-active   { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.18); }
.rest-status-dot.dot-archived { background: #d1d5db; }

.rest-name-text {
  font-weight: 600;
  font-size: 14px;
}

.rest-color-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rest-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
}
.rest-color-code {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #171717;
}

.rest-flags-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rest-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.flag-on  { background: rgba(34,197,94,.12); color: #16a34a; }
.flag-off { background: rgba(0,0,0,.05);      color: #aaa;    text-decoration: none; }

/* Action buttons — same size as QR admin action buttons */
.rest-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.rest-actions .btn,
.rest-actions .btn-light {
  padding: 6px 9px;
  height: auto;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-warning {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}
.btn-warning:hover { background: #fecaca !important; }

.btn-success {
  background: rgba(34,197,94,.12) !important;
  color: #16a34a !important;
}
.btn-success:hover { background: rgba(34,197,94,.22) !important; }

/* ============================================================
   RESTAURANT MODAL FORM
   ============================================================ */

.rest-modal {
  max-width: 620px !important;
}

.rest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 26px;
  column-gap: 14px;
  margin-top: 12px;
}

.rest-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.rest-form-label > span {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.rest-form-full {
  grid-column: 1 / -1;
}

.rest-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rest-color-picker {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
/* Make the color swatch inside the picker fill the circle */
.rest-color-picker::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.rest-color-picker::-webkit-color-swatch         { border: none; border-radius: 50%; }
.rest-color-picker::-moz-color-swatch            { border: none; border-radius: 50%; }

.rest-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rest-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
}

.rest-toggle-row input[type="checkbox"] {
  /* hide native */
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background .15s, border-color .15s;
}
.rest-toggle-row input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
/* white checkmark via SVG background */
.rest-toggle-row input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
}
.rest-toggle-row input[type="checkbox"]:not(:checked) {
  background: #fff;
  border: 2px solid var(--line);
  border-color: #d1d5db;
}
.rest-toggle-row input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--primary);
  background: var(--primary-washed);
}

@media (max-width: 540px) {
  .rest-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESTAURANT COLOR PRESETS
   ============================================================ */

.rest-color-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}

/* Each swatch is a column: circle + label underneath */
.rest-preset-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  outline: none;
  width: 100%;
}

.swatch-circle {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch-color, #ccc);
  border: 2.5px solid transparent;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  flex-shrink: 0;
}

.rest-preset-swatch .swatch-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  font-family: 'Poppins', sans-serif;
}

.rest-preset-swatch:hover .swatch-circle {
  transform: scale(1.15);
}

.rest-preset-swatch.is-selected .swatch-circle {
  border-color: white;
  box-shadow: 0 0 0 1px var(--swatch-color);
  transform: scale(1.1);
}
.rest-preset-swatch.is-selected .swatch-label {
  color: var(--ink);
  font-weight: 600;
}


/* ============================================================
   TOPBAR PAGE TITLES — bigger, bolder, Merdeqa orange
   ============================================================ */

.topbar-page-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  line-height: 1.2;
}

/* ============================================================
   SEARCH INPUT WITH ICON
   ============================================================ */

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  padding-left: 34px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   USERS TABLE
   ============================================================ */

#usersSection .t-head.users-head,
#usersSection .t-row.users-row {
  display: grid;
  grid-template-columns: 1.6fr 160px 1.8fr 175px;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  #usersSection .t-head.users-head,
  #usersSection .t-row.users-row {
    grid-template-columns: 1.4fr 130px 1.4fr 175px;
  }
}

@media (max-width: 720px) {
  #usersSection .table-wrap {
    overflow-x: auto;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  #usersSection .table {
    min-width: 700px;
  }
}

.users-email-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.users-email-text {
  font-weight: 600;
  font-size: 13px;
  word-break: break-all;
}

.users-lastsign {
  font-size: 14px;
  color: var(--muted);
}

.users-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-confirmed {
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.users-access-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.users-rest-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: color-mix(in srgb, var(--pill-color, #FD774E) 12%, white 88%);
  color: var(--pill-color, #FD774E);
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.users-no-access {
  font-size: 12px;
  color: var(--muted);
}

/* Access modal list items */
.access-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.access-list-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.access-list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   USERS VIEW — font size parity with restaurants view
   ============================================================ */

/* Table cells: match rest-name-text (14px, 600) */
.users-email-text {
  font-size: 14px !important;
  font-weight: 600;
}

/* Status badges: match rest-flag sizing */
.users-status-badge {
  font-size: 12px !important;
}

/* Restaurant pills: match rest-user-pill */
.users-rest-pill {
  font-size: 12px !important;
  gap: 4px;
  align-items: center;
  display: inline-flex;
}

/* Active/archived dot inside restaurant pills */
.users-rest-pill-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 2px;
}
.pill-dot-active   { background: #22c55e; }
.pill-dot-archived { background: #d1d5db; }

/* Access modal — match label/text sizing to rest modal */
#accessModal .card h3          { font-size: 20px; }
#accessModal p                 { font-size: 14px; }
#accessModal .access-list-name { font-size: 14px; }
.access-list-item .rest-flag   { font-size: 12px; }

/* Invite modal */
#inviteModal .card h3 { font-size: 20px; }
#inviteModal p        { font-size: 14px; }
.rest-form-label > span { font-size: 14px; }

/* Delete confirm modal */
#deleteUserModal .card h3 { font-size: 20px; }
#deleteUserModal p        { font-size: 14px; }

/* Delete confirm button — override btn-warning background for the danger action */
#deleteUserModalConfirm {
  background: #dc2626 !important;
  color: #fff !important;
}
#deleteUserModalConfirm:not([disabled]):hover {
  background: #b91c1c !important;
}

/* ============================================================
   SCANS TABLE (Szkennelések)
   ============================================================ */

.scans-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

#scansSection .table {
  min-width: 780px;
}

#scansSection .t-head.scans-head,
#scansSection .t-row.scans-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 90px;
  align-items: center;
  gap: 12px;
}

.scans-mono-cell {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scans-time-cell {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
}

.scans-rest-cell {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scans-source-cell {
  display: flex;
  align-items: center;
}

.scan-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scan-badge-qr {
  background: var(--primary-washed);
  color: var(--primary);
}

.scan-badge-nfc {
  background: rgba(0, 150, 255, 0.10);
  color: #0096FF;
}

/* Sidebar section labels */
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #a0a0a0);
  padding: 0 16px;
  margin-top: 8px;
  margin-bottom: 2px;
  user-select: none;
}
@media (max-width: 768px) {
  .sidebar-section-label { display: none; }
}

/* Copy icon button for QR/NFC URLs */
.qr-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--primary-washed);
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.qr-copy-btn:hover {
  background: color-mix(in srgb, var(--primary) 20%, white 80%);
}

/* Card status pills — match users badge style */
.qr-card-status.active {
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}
.qr-card-status.inactive {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

/* Slug row wrapper */
.rest-slug-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rest-slug-row .input { flex: 1; }


/* === Menükártyák — státusz dropdown === */
.qr-status-select {
  height: 30px !important;
  padding: 0 10px;
  font-size: 12px !important;
  border-radius: 99px !important;
  border: none;
  background: #fff;
  outline: none;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
}

.qr-status-select.is-active {
  background-color: rgba(34, 197, 94, 0.10);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
  font-weight: 500;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2316a34a' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

.qr-status-select.is-inactive {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
  font-weight: 500;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23d97706' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

.qr-status-select option {
  color: #111 !important;
  background: #fff !important;
  font-weight: 400;
}

#scansearch {
    width: 100%;
}
