* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f3ef;
  margin: 0;
  padding: 0;
  color: #2b2b2b;
}
header {
  background: #1f2a24;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 { font-size: 1.2rem; margin: 0; }
.table-badge {
  background: #c9a24b;
  color: #1f2a24;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
main { padding: 16px; max-width: 600px; margin: 0 auto; padding-bottom: 100px; }

.category { margin-bottom: 24px; }
.category h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6b6b;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.item-info { flex: 1; }
.item-name { font-weight: 600; }
.item-price { color: #6b6b6b; font-size: 0.9rem; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-control button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.qty-control span { min-width: 20px; text-align: center; font-weight: 600; }

.action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e2e2e2;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
button.primary {
  flex: 2;
  background: #1f2a24;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  flex: 1;
  background: #f0ede7;
  color: #1f2a24;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  cursor: pointer;
}
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.toast {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  background: #1f2a24;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; }

/* --- Modal (számla / fizetési mód) --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 90%;
  max-width: 340px;
  text-align: center;
}
.modal h3 { margin-top: 0; }
.modal-options { display: flex; gap: 12px; margin-top: 16px; }
.modal-options button {
  flex: 1;
  padding: 16px 8px;
  border-radius: 10px;
  border: 2px solid #1f2a24;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.modal-options button:hover { background: #1f2a24; color: #fff; }
.modal-cancel {
  margin-top: 14px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
}

/* --- Tab navigáció --- */
.tab-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  max-width: 600px;
  margin: 0 auto;
}
.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
}
.tab-btn.active {
  color: #1f2a24;
  border-bottom-color: #c9a24b;
}
.tab-section { display: none; }
.tab-section.active { display: block; }

/* --- Menüszerkesztő --- */
.new-category-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.new-category-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}
button.primary-small {
  background: #1f2a24;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.category-block {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.category-block .cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.category-block .cat-header input {
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: none;
  flex: 1;
  padding: 4px;
}
.category-block .cat-header input:focus {
  outline: 1px solid #c9a24b;
  border-radius: 4px;
}
.cat-delete-btn {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 0.85rem;
}
.menu-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
}
.menu-item-row input[type="text"] {
  flex: 2;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.menu-item-row input[type="number"] {
  flex: 1;
  width: 70px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.menu-item-row .avail-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}
.menu-item-row .item-delete-btn {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.add-item-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
}
.add-item-row input[type="text"] { flex: 2; padding: 6px 8px; border-radius: 6px; border: 1px solid #ddd; }
.add-item-row input[type="number"] { flex: 1; width: 70px; padding: 6px 8px; border-radius: 6px; border: 1px solid #ddd; }
.add-item-row button { background: #f0ede7; border: 1px solid #ccc; border-radius: 6px; padding: 6px 12px; cursor: pointer; }

/* --- Admin felület --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sound-toggle {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #fff;
}
.sound-toggle.muted { opacity: 0.4; }

@keyframes highlight-new {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(201, 162, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); }
}
.request-card.is-new {
  animation: highlight-new 1.2s ease-out 2;
}

.request-list { display: flex; flex-direction: column; gap: 10px; }
.request-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 6px solid #c9a24b;
}
.request-card.type-call_waiter { border-left-color: #d9534f; }
.request-card.type-bill { border-left-color: #4a7dbf; }
.request-card.type-order { border-left-color: #5a9e6f; }
.request-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.request-card .table-tag { font-weight: 700; font-size: 1.05rem; }
.request-card .time { color: #999; font-size: 0.8rem; }
.request-card .body { font-size: 0.95rem; margin-bottom: 10px; }
.request-card .buttons { display: flex; gap: 8px; }
.request-card .buttons button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-ack { background: #f0ede7; }
.btn-done { background: #1f2a24; color: #fff; }
.empty-state { text-align: center; color: #999; padding: 40px 0; }


/* =========================================================
   Hibajelzés és rendelési összesítő
   ========================================================= */

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.error-state {
  background: #fff;
  border: 1px solid #e3ddd3;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.error-state strong {
  display: block;
  margin-bottom: 8px;
}

.error-state p {
  margin: 0 0 16px;
  color: #6b6b6b;
}

.error-state button {
  border: none;
  border-radius: 8px;
  background: #1f2a24;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.order-line span:first-child {
  flex: 1;
}

.order-line span:last-child {
  white-space: nowrap;
  color: #6b6b6b;
}

.order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e8e4dd;
}

/* =========================================================
   Bejelentkezési felület
   ========================================================= */

.login-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      145deg,
      #f4f1eb 0%,
      #ebe7df 100%
    );
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.login-card {
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  box-sizing: border-box;
  box-shadow:
    0 18px 55px rgba(22, 36, 29, 0.12);
}

.login-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: #1c2d25;
  font-size: 28px;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  color: #18271f;
  font-size: 26px;
}

.login-description {
  margin: 10px 0 28px;
  text-align: center;
  color: #6f746f;
  line-height: 1.5;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-field label {
  color: #2b342f;
  font-weight: 650;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #d5d6d2;
  border-radius: 10px;
  background: #fff;
  color: #17231d;
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input:focus {
  border-color: #547a65;
  box-shadow:
    0 0 0 3px rgba(84, 122, 101, 0.14);
}

.login-button {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border: 0;
  border-radius: 11px;
  background: #1c2d25;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover {
  background: #263c31;
}

.login-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #edc7c7;
  border-radius: 9px;
  background: #fff1f1;
  color: #9b2525;
  font-size: 14px;
}

/* =========================================================
   Adminfelhasználó és kijelentkezés
   ========================================================= */

.admin-user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.admin-user-details strong {
  color: #fff;
  font-size: 13px;
}

.admin-user-details span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.logout-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
  .login-card {
    padding: 28px 22px;
  }

  .admin-user-details {
    display: none;
  }

  .logout-button {
    padding: 0 10px;
  }
}


/* =========================================================
   Asztalok kezelése
   ========================================================= */

.tables-page-header {
  margin-bottom: 18px;
}

.tables-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}

.tables-page-header p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.5;
}

.new-table-form {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e3ded5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.new-table-form > label {
  display: block;
  margin-bottom: 8px;
  color: #2b342f;
  font-weight: 700;
}

.new-table-form-row {
  display: flex;
  gap: 10px;
}

.new-table-form-row input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

#tables-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-admin-card {
  padding: 16px;
  border: 1px solid #e4e0d8;
  border-left: 5px solid #5a9e6f;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.055);
}

.table-admin-card.is-inactive {
  border-left-color: #a9a9a9;
  opacity: 0.82;
}

.table-admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.table-admin-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #8a8a8a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-admin-card h3 {
  margin: 0;
  color: #1f2a24;
  font-size: 1.15rem;
}

.table-status-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-status-badge.is-active {
  background: #e8f5ec;
  color: #347349;
}

.table-status-badge.is-inactive {
  background: #ededed;
  color: #666;
}

.table-url-label {
  display: block;
  margin-bottom: 7px;
  color: #5f645f;
  font-size: 0.82rem;
  font-weight: 650;
}

.table-url-row {
  display: flex;
  gap: 8px;
}

.table-url-input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #f8f7f4;
  color: #505550;
  font: inherit;
  font-size: 0.82rem;
}

.table-copy-btn,
.table-secondary-btn,
.table-danger-btn,
.table-activate-btn,
.table-open-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.table-copy-btn {
  border: 0;
  background: #1f2a24;
  color: #fff;
  white-space: nowrap;
}

.table-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.table-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfc8c2;
  background: #f5f7f5;
  color: #1f2a24;
}

.table-secondary-btn {
  border: 1px solid #d2c7af;
  background: #fbf7ed;
  color: #6b572c;
}

.table-danger-btn {
  border: 1px solid #efc4c4;
  background: #fff1f1;
  color: #a43131;
}

.table-activate-btn {
  border: 1px solid #b9ddc4;
  background: #ebf8ef;
  color: #347349;
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
    gap: 12px;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tab-bar {
    overflow-x: auto;
  }

  .tab-btn {
    min-width: max-content;
  }

  .new-table-form-row,
  .table-url-row {
    flex-direction: column;
  }

  .table-copy-btn,
  .new-table-form-row .primary-small {
    width: 100%;
  }

  .table-admin-actions {
    flex-direction: column;
  }

  .table-admin-actions > * {
    width: 100%;
  }
}


/* =========================================================
   Rendelés megerősítése és vendégoldali állapotkövetés
   ========================================================= */

body.modal-open {
  overflow: hidden;
}

.order-confirm-modal {
  width: min(92%, 480px);
  max-width: 480px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  text-align: left;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header-row h3 {
  margin: 3px 0 0;
}

.modal-eyebrow,
.active-order-eyebrow {
  color: #8a7a5c;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-close-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f0ede7;
  color: #1f2a24;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.order-confirm-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid #ebe7df;
  border-bottom: 1px solid #ebe7df;
}

.order-confirm-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.93rem;
}

.order-confirm-line span {
  flex: 1;
}

.order-confirm-line strong {
  white-space: nowrap;
}

.order-note-field {
  display: block;
  margin-top: 18px;
}

.order-note-field > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #2b342f;
  font-size: 0.9rem;
  font-weight: 700;
}

.order-note-field small {
  color: #888;
  font-weight: 500;
}

.order-note-field textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #d4d2cc;
  border-radius: 9px;
  background: #fff;
  color: #2b2b2b;
  font: inherit;
  outline: none;
}

.order-note-field textarea:focus {
  border-color: #6c8b79;
  box-shadow: 0 0 0 3px rgba(108, 139, 121, 0.13);
}

.order-note-counter {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.75rem;
  text-align: right;
}

.order-confirm-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ebe7df;
  font-size: 1.05rem;
}

.order-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-secondary-button,
.modal-primary-button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal-secondary-button {
  flex: 1;
  border: 1px solid #d1cec7;
  background: #f5f3ef;
  color: #1f2a24;
}

.modal-primary-button {
  flex: 2;
  border: 0;
  background: #1f2a24;
  color: #fff;
}

.active-order-panel {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #ddd6c7;
  border-left: 5px solid #c9a24b;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.055);
}

.active-order-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.active-order-heading h2 {
  margin: 3px 0 0;
  color: #1f2a24;
  font-size: 1.08rem;
}

.active-order-panel > p {
  margin: 12px 0;
  color: #626862;
  line-height: 1.45;
}

.order-status-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.order-status-badge.status-pending {
  background: #fff3d5;
  color: #7f641f;
}

.order-status-badge.status-acknowledged {
  background: #e6f0ff;
  color: #315f9e;
}

.order-status-badge.status-done {
  background: #e7f5eb;
  color: #347349;
}

.active-order-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid #ebe7df;
}

.active-order-line,
.active-order-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.88rem;
}

.active-order-line span:last-child {
  white-space: nowrap;
  color: #6b6b6b;
}

.active-order-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f4ed;
  font-size: 0.84rem;
}

.active-order-total {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid #ebe7df;
}

.order-status-dismiss {
  margin-top: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7b705c;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.admin-order-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid #c9a24b;
  border-radius: 6px;
  background: #faf6ec;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .order-confirm-actions {
    flex-direction: column-reverse;
  }

  .modal-secondary-button,
  .modal-primary-button {
    width: 100%;
    flex: none;
  }

  .active-order-heading {
    flex-direction: column;
  }
}


/* =========================================================
   Személyzet kezelése
   ========================================================= */

.staff-page-header {
  margin-bottom: 18px;
}

.staff-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}

.staff-page-header p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.5;
}

.new-staff-form {
  margin-bottom: 20px;
  padding: 17px;
  border: 1px solid #e3ded5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.new-staff-form h3 {
  margin: 0 0 14px;
  color: #1f2a24;
  font-size: 1rem;
}

.staff-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 14px;
}

.staff-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-form-grid label > span {
  color: #4f5651;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-form-grid input,
.staff-form-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #d2d2cf;
  border-radius: 8px;
  background: #fff;
  color: #252b27;
  font: inherit;
}

#staff-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-card {
  padding: 15px;
  border: 1px solid #e2ded6;
  border-left: 5px solid #5a9e6f;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
}

.staff-card.is-inactive {
  border-left-color: #aaa;
  opacity: 0.78;
}

.staff-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #1f2a24;
  color: #fff;
  font-weight: 800;
}

.staff-main-info {
  min-width: 0;
  flex: 1;
}

.staff-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.staff-main-info h3 {
  overflow: hidden;
  margin: 0;
  color: #1f2a24;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-main-info p {
  margin: 4px 0 0;
  color: #777;
  font-size: 0.82rem;
}

.staff-you-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f4ead1;
  color: #70591f;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.staff-status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.staff-status-badge.is-active {
  background: #e8f5ec;
  color: #347349;
}

.staff-status-badge.is-inactive {
  background: #ededed;
  color: #666;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #efede8;
}

.staff-password-button,
.staff-disable-button,
.staff-enable-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-password-button {
  border: 1px solid #d2c7af;
  background: #fbf7ed;
  color: #6b572c;
}

.staff-disable-button {
  border: 1px solid #efc4c4;
  background: #fff1f1;
  color: #a43131;
}

.staff-enable-button {
  border: 1px solid #b9ddc4;
  background: #ebf8ef;
  color: #347349;
}

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

  .staff-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .staff-status-badge {
    margin-left: 54px;
  }

  .staff-actions {
    flex-direction: column;
  }

  .staff-actions button {
    width: 100%;
  }
}


/* =========================================================
   Kéréskorlátozás és visszaszámláló
   ========================================================= */

.quick-actions button:disabled {
  background: #e5e1da;
  color: #74746f;
  border-color: #d1cdc5;
  opacity: 1;
}

.quick-actions button {
  min-height: 48px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

@media (max-width: 440px) {
  .quick-actions {
    flex-direction: column;
  }

  .quick-actions button {
    width: 100%;
  }
}


/* =========================================================
   Előzmények
   ========================================================= */

.history-page-header {
  margin-bottom: 18px;
}

.history-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}

.history-page-header p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.5;
}

.history-filter-form {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e3ded5;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.history-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-filter-form label > span {
  color: #515852;
  font-size: 0.8rem;
  font-weight: 700;
}

.history-filter-form input,
.history-filter-form select {
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  border: 1px solid #d3d3cf;
  border-radius: 8px;
  background: #fff;
  color: #2b2b2b;
  font: inherit;
}

.history-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.history-reset-button {
  min-height: 41px;
  padding: 0 12px;
  border: 1px solid #d3d0c9;
  border-radius: 8px;
  background: #f4f1eb;
  color: #4d534f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.history-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.history-summary-card {
  padding: 13px;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  background: #fff;
}

.history-summary-card span {
  display: block;
  margin-bottom: 5px;
  color: #7b7f7b;
  font-size: 0.75rem;
}

.history-summary-card strong {
  color: #1f2a24;
  font-size: 1.15rem;
}

.history-revenue-card {
  grid-column: 1 / -1;
  background: #1f2a24;
}

.history-revenue-card span {
  color: rgba(255, 255, 255, 0.68);
}

.history-revenue-card strong {
  color: #fff;
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  padding: 15px;
  border: 1px solid #e2ded6;
  border-left: 5px solid #c9a24b;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.05);
}

.history-card.history-type-order {
  border-left-color: #5a9e6f;
}

.history-card.history-type-call_waiter {
  border-left-color: #d9534f;
}

.history-card.history-type-bill {
  border-left-color: #4a7dbf;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-card-type {
  color: #81755e;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-card h3 {
  margin: 3px 0 0;
  color: #1f2a24;
  font-size: 1.05rem;
}

.history-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.history-status-pending {
  background: #fff3d5;
  color: #7f641f;
}

.history-status-acknowledged {
  background: #e6f0ff;
  color: #315f9e;
}

.history-status-done {
  background: #e7f5eb;
  color: #347349;
}

.history-date {
  margin: 7px 0 11px;
  color: #929592;
  font-size: 0.78rem;
}

.history-order-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-order-items > div,
.history-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.history-order-items span:last-child {
  white-space: nowrap;
  color: #6b6b6b;
}

.history-note {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #faf6ec;
  font-size: 0.84rem;
}

.history-total {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #ebe7df;
}

.history-simple-detail {
  margin: 0;
  color: #565c57;
}

@media (max-width: 620px) {
  .history-filter-form {
    grid-template-columns: 1fr;
  }

  .history-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .history-filter-actions button {
    width: 100%;
  }
}


/* =========================================================
   Statisztikák
   ========================================================= */

.statistics-page-header {
  margin-bottom: 18px;
}

.statistics-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}

.statistics-page-header p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.5;
}

.statistics-filter-form {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr))
    auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e3ded5;
  border-radius: 12px;
  background: #fff;
}

.statistics-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.statistics-filter-form label > span {
  color: #515852;
  font-size: 0.8rem;
  font-weight: 700;
}

.statistics-filter-form input {
  min-height: 41px;
  padding: 0 10px;
  border: 1px solid #d3d3cf;
  border-radius: 8px;
  font: inherit;
}

.statistics-filter-actions {
  display: flex;
  gap: 8px;
}

.statistics-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.statistics-card {
  padding: 15px;
  border: 1px solid #e2ded6;
  border-radius: 11px;
  background: #fff;
}

.statistics-card span {
  display: block;
  margin-bottom: 6px;
  color: #777d78;
  font-size: 0.75rem;
}

.statistics-card strong {
  color: #1f2a24;
  font-size: 1.1rem;
}

.statistics-card-primary {
  background: #1f2a24;
  border-color: #1f2a24;
}

.statistics-card-primary span {
  color: rgba(255,255,255,.68);
}

.statistics-card-primary strong {
  color: #fff;
}

.statistics-columns {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.statistics-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2ded6;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(0,0,0,.04);
}

.statistics-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.statistics-panel-heading h3 {
  margin: 0;
  color: #1f2a24;
  font-size: 1rem;
}

.statistics-panel-heading span {
  color: #929592;
  font-size: 0.72rem;
}

.statistics-ranking-row {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}

.statistics-rank {
  width: 24px;
  flex: 0 0 auto;
  color: #9a8a68;
  font-weight: 800;
}

.statistics-ranking-main {
  min-width: 0;
  flex: 1;
}

.statistics-ranking-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.statistics-ranking-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-ranking-label span {
  color: #777;
  white-space: nowrap;
}

.statistics-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ede9e1;
}

.statistics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5a9e6f;
}

.statistics-table-row {
  display: grid;
  grid-template-columns:
    24px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #efede8;
}

.statistics-table-row:last-child {
  border-bottom: 0;
}

.statistics-table-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.statistics-table-row div span {
  color: #888;
  font-size: 0.75rem;
}

.statistics-table-row > strong {
  white-space: nowrap;
  font-size: 0.85rem;
}

.statistics-status-distribution {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.statistics-status-card {
  padding: 13px;
  border-radius: 10px;
}

.statistics-status-card span,
.statistics-status-card small {
  display: block;
}

.statistics-status-card span {
  margin-bottom: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}

.statistics-status-card strong {
  font-size: 1.25rem;
}

.statistics-status-card small {
  margin-top: 3px;
  opacity: .72;
}

.statistics-status-card.status-pending {
  background: #fff3d5;
  color: #7f641f;
}

.statistics-status-card.status-acknowledged {
  background: #e6f0ff;
  color: #315f9e;
}

.statistics-status-card.status-done {
  background: #e7f5eb;
  color: #347349;
}

@media (max-width: 720px) {
  .statistics-filter-form {
    grid-template-columns: 1fr;
  }

  .statistics-filter-actions {
    flex-direction: column;
  }

  .statistics-filter-actions button {
    width: 100%;
  }

  .statistics-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .statistics-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .statistics-summary-grid,
  .statistics-status-distribution {
    grid-template-columns: 1fr;
  }

  .statistics-ranking-label {
    flex-direction: column;
    gap: 2px;
  }
}


/* Éttermi beállítások */
.settings-page-header {
  margin-bottom: 18px;
}
.settings-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}
.settings-page-header p {
  margin: 0;
  color: #6b6b6b;
}
.restaurant-settings-form {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid #e3ded5;
  border-radius: 12px;
  background: #fff;
}
.restaurant-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.restaurant-settings-form label > span {
  color: #515852;
  font-size: .82rem;
  font-weight: 700;
}
.restaurant-settings-form input[type="text"],
.restaurant-settings-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d2d2cf;
  border-radius: 8px;
  font: inherit;
}
.restaurant-open-toggle {
  padding: 13px;
  border-radius: 10px;
  background: #f7f5f0;
}
.restaurant-open-toggle input {
  margin-right: 8px;
}
.restaurant-open-toggle small {
  display: block;
  margin-top: 3px;
  color: #777;
}
.restaurant-welcome,
.restaurant-closed-message {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff;
}
.restaurant-welcome p,
.restaurant-closed-message p {
  margin: 0;
}
.restaurant-closed-message {
  border-left: 5px solid #d9534f;
  background: #fff1f1;
}
.restaurant-closed-message strong {
  display: block;
  margin-bottom: 5px;
  color: #9b2525;
}


/* =========================================================
   Asztali munkamenetek és fogyasztás
   ========================================================= */

.table-consumption-panel {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #dcd6ca;
  border-left: 5px solid #5a9e6f;
  border-radius: 12px;
  background: #fff;
}

.table-consumption-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.table-consumption-heading h2 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.table-consumption-heading > strong {
  white-space: nowrap;
  color: #1f2a24;
}

.table-consumption-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #ebe7df;
}

.table-consumption-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .88rem;
}

.table-consumption-line span:last-child {
  white-space: nowrap;
  color: #666;
}

#table-consumption-meta {
  margin: 11px 0 0;
  color: #888;
  font-size: .77rem;
}

.sessions-page-header {
  margin-bottom: 18px;
}

.sessions-page-header h2 {
  margin: 0 0 6px;
  color: #1f2a24;
  font-size: 1.25rem;
}

.sessions-page-header p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.5;
}

#table-sessions-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.table-session-card {
  padding: 16px;
  border: 1px solid #e2ded6;
  border-left: 5px solid #5a9e6f;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.05);
}

.table-session-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.table-session-header > div > span {
  color: #8b806b;
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.table-session-header h3 {
  margin: 3px 0 0;
  color: #1f2a24;
}

.table-session-header > strong {
  white-space: nowrap;
  font-size: 1.05rem;
}

.table-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.table-session-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f0e9;
  color: #676b67;
  font-size: .75rem;
}

.table-session-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 0;
  border-top: 1px solid #ebe7df;
  border-bottom: 1px solid #ebe7df;
}

.table-session-items > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .85rem;
}

.table-session-items span:last-child {
  white-space: nowrap;
  color: #666;
}

.close-table-session-button {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid #e0c8c8;
  border-radius: 8px;
  background: #fff1f1;
  color: #9b3131;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bill-session-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
  padding: 9px;
  border-radius: 8px;
  background: #eef4fb;
}

.bill-session-summary span,
.bill-session-summary strong {
  font-size: .82rem;
}

.bill-session-summary strong {
  margin-left: auto;
}

@media (max-width: 480px) {
  .table-consumption-heading,
  .table-session-header {
    flex-direction: column;
  }

  .bill-session-summary strong {
    width: 100%;
    margin-left: 0;
  }
}


/* =========================================================
   Rendelés visszavonása
   ========================================================= */

.request-card .buttons .btn-cancel-order {
  flex-basis: 100%;
  border: 1px solid #e3bcbc;
  background: #fff0f0;
  color: #a12f2f;
}

.request-card .buttons .btn-cancel-order:hover {
  background: #fbe2e2;
}

.history-status-cancelled,
.order-status-badge.status-cancelled {
  background: #eeeeee;
  color: #666;
}

.statistics-status-card.status-cancelled {
  background: #eeeeee;
  color: #666;
}

@media (max-width: 520px) {
  .request-card .buttons {
    flex-direction: column;
  }

  .request-card .buttons button {
    width: 100%;
  }
}


/* =========================================================
   Munkamenet-előzmények
   ========================================================= */

.session-view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 10px;
  background: #eae6de;
}

.session-view-button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b6f6b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.session-view-button.active {
  background: #fff;
  color: #1f2a24;
  box-shadow:
    0 1px 4px rgba(0,0,0,.08);
}

.session-view-panel {
  display: none;
}

.session-view-panel.active {
  display: block;
}

.session-history-filter-form {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr))
    auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid #e2ded6;
  border-radius: 11px;
  background: #fff;
}

.session-history-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-history-filter-form label > span {
  color: #565d58;
  font-size: .8rem;
  font-weight: 700;
}

.session-history-filter-form input {
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  border: 1px solid #d3d3cf;
  border-radius: 8px;
  font: inherit;
}

.session-history-filter-actions {
  display: flex;
  gap: 8px;
}

.session-history-summary {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.session-history-summary article {
  padding: 12px;
  border: 1px solid #e2ded6;
  border-radius: 9px;
  background: #fff;
}

.session-history-summary span {
  display: block;
  margin-bottom: 5px;
  color: #7d817d;
  font-size: .72rem;
}

.session-history-summary strong {
  color: #1f2a24;
  font-size: 1rem;
}

#session-history-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.closed-session-card {
  padding: 16px;
  border: 1px solid #e2ded6;
  border-left: 5px solid #777f79;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(0,0,0,.045);
}

.closed-session-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.closed-session-eyebrow {
  color: #818781;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.closed-session-header h3 {
  margin: 3px 0 0;
  color: #1f2a24;
}

.closed-session-header > strong {
  white-space: nowrap;
}

.closed-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.closed-session-meta span,
.closed-session-order-summary span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1eee8;
  color: #686d69;
  font-size: .74rem;
}

.closed-session-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.closed-session-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #ebe7df;
}

.closed-session-items > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .85rem;
}

.closed-session-items span:last-child {
  white-space: nowrap;
  color: #676b67;
}

@media (max-width: 760px) {
  .session-history-filter-form {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .session-history-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .session-view-switch,
  .session-history-filter-form,
  .session-history-summary {
    grid-template-columns: 1fr;
  }

  .session-history-filter-actions {
    flex-direction: column;
  }

  .session-history-filter-actions button {
    width: 100%;
  }

  .closed-session-header {
    flex-direction: column;
  }
}


/* =========================================================
   Pincér által rögzített rendelés
   ========================================================= */

.table-session-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.add-staff-order-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #1f2a24;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-session-actions
.close-table-session-button {
  margin-top: 0;
}

.staff-order-modal {
  width: min(94vw, 620px);
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.staff-order-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.staff-order-category {
  overflow: hidden;
  border: 1px solid #e3ded5;
  border-radius: 10px;
}

.staff-order-category h4 {
  margin: 0;
  padding: 10px 12px;
  background: #f3f0e9;
  color: #1f2a24;
  font-size: .85rem;
  text-transform: uppercase;
}

.staff-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-top: 1px solid #eeeae2;
}

.staff-order-item:first-of-type {
  border-top: 0;
}

.staff-order-item > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.staff-order-item > div:first-child span {
  color: #737773;
  font-size: .8rem;
}

.staff-order-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-order-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid #cfcac1;
  border-radius: 50%;
  background: #fff;
  color: #1f2a24;
  font-size: 1rem;
  cursor: pointer;
}

.staff-order-qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 750;
}

.staff-order-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 15px;
}

.staff-order-note > span {
  font-size: .82rem;
  font-weight: 700;
}

.staff-order-note small {
  color: #888;
  font-weight: 400;
}

.staff-order-note textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d4d1ca;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.staff-order-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e9e4db;
}

.staff-order-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}

.staff-order-actions button {
  flex: 1;
}

.staff-created-order-badge {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #eef4fb;
  color: #315f9e;
  font-size: .78rem;
  font-weight: 650;
}

@media (max-width: 520px) {
  .table-session-actions {
    grid-template-columns: 1fr;
  }

  .staff-order-item {
    align-items: flex-start;
  }

  .staff-order-actions {
    flex-direction: column;
  }
}


/* =========================================================
   Asztali munkamenet áthelyezése
   ========================================================= */

.move-table-session-button {
  min-height: 40px;
  border: 1px solid #c9b98f;
  border-radius: 8px;
  background: #faf5e8;
  color: #69572e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.move-table-session-button:hover {
  background: #f3ead2;
}

.move-session-modal {
  width: min(92vw, 440px);
  max-width: 440px;
  text-align: left;
}

.move-session-description {
  margin: 12px 0 16px;
  color: #686d69;
  line-height: 1.5;
}

.move-session-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.move-session-field > span {
  color: #4d554f;
  font-size: .82rem;
  font-weight: 700;
}

.move-session-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #d2cec6;
  border-radius: 8px;
  background: #fff;
  color: #292f2b;
  font: inherit;
}

.move-session-empty-state {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff3d5;
  color: #785f22;
  font-size: .84rem;
}

.move-session-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.move-session-actions button {
  flex: 1;
}

@media (max-width: 520px) {
  .move-session-actions {
    flex-direction: column;
  }
}


/* =========================================================
   Vendégoldal – modern éttermi megjelenés
   ========================================================= */

body.customer-page {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 118px;
  background:
    radial-gradient(
      circle at top right,
      rgba(198, 165, 95, .15),
      transparent 28rem
    ),
    #f5f2eb;
  color: #202621;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.customer-page button,
.customer-page input,
.customer-page textarea {
  font-family: inherit;
}

.customer-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 18px;
  border-bottom:
    1px solid rgba(255,255,255,.08);
  background:
    rgba(24, 33, 28, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(13,18,15,.13);
}

.customer-header-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.customer-brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background:
    rgba(255,255,255,.1);
  font-size: 1.25rem;
}

.customer-brand-kicker {
  display: block;
  margin-bottom: 2px;
  color:
    rgba(255,255,255,.58);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-page
#customer-restaurant-name {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size:
    clamp(1rem, 4vw, 1.22rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-page .table-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid
    rgba(255,255,255,.12);
  border-radius: 999px;
  background:
    rgba(255,255,255,.08);
  color: #fff;
  font-size: .79rem;
  font-weight: 750;
}

.customer-main {
  width: min(
    calc(100% - 28px),
    1040px
  );
  margin: 0 auto;
  padding: 20px 0 28px;
}

.customer-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(230px, .65fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding:
    clamp(22px, 5vw, 40px);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #19221d,
      #2d3b32
    );
  color: #fff;
  box-shadow:
    0 20px 45px
    rgba(24,33,28,.18);
}

.customer-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background:
    rgba(198,165,95,.18);
}

.customer-hero > * {
  position: relative;
  z-index: 1;
}

.customer-hero-kicker,
.customer-section-heading > div > span {
  display: block;
  margin-bottom: 7px;
  color: #b9944d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.customer-hero h2 {
  max-width: 650px;
  margin: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.7rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.04;
}

.customer-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color:
    rgba(255,255,255,.7);
  font-size: .91rem;
  line-height: 1.55;
}

.customer-hero-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.customer-hero-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  color:
    rgba(255,255,255,.76);
  font-size: .8rem;
  font-weight: 650;
}

.customer-hero-steps strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #b9944d;
  color: #fff;
  font-size: .72rem;
}

.customer-page
.restaurant-welcome,
.customer-page
.restaurant-closed-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #ded8cd;
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 7px 24px
    rgba(31,38,33,.055);
}

.customer-page
.restaurant-welcome[hidden],
.customer-page
.restaurant-closed-message[hidden] {
  display: none;
}

.customer-message-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #f2ede3;
}

.customer-page
.restaurant-closed-message {
  border-color: #efc8c8;
  background: #fff5f5;
}

.customer-status-card {
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid #ded8cd;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    0 8px 28px
    rgba(31,38,33,.06);
}

.customer-page
.table-consumption-panel {
  border-left:
    5px solid #5b9470;
}

.customer-page
.active-order-panel {
  border-left:
    5px solid #b9944d;
}

.customer-page
.active-order-eyebrow {
  color: #98804d;
  font-size: .66rem;
  letter-spacing: .1em;
}

.customer-page
.table-consumption-heading h2,
.customer-page
.active-order-heading h2 {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.customer-page
.table-consumption-heading > strong {
  padding: 7px 10px;
  border-radius: 9px;
  background: #edf4ef;
  color: #39704d;
}

.customer-quick-section,
.customer-menu-section {
  margin-top: 25px;
}

.customer-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.customer-section-heading h2 {
  margin: 0;
  color: #202621;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 500;
}

.customer-page .quick-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.customer-page
.quick-action-card {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ded8cd;
  border-radius: 16px;
  background: #fff;
  color: #202621;
  text-align: left;
  box-shadow:
    0 7px 24px
    rgba(31,38,33,.05);
  cursor: pointer;
}

.customer-page
.quick-action-card:hover {
  border-color: #baa36d;
  transform: translateY(-1px);
}

.quick-action-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #f1ece2;
  font-size: 1.2rem;
}

.quick-action-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-action-card strong {
  font-size: .9rem;
}

.quick-action-card small {
  color: #858882;
  font-size: .72rem;
}

.menu-item-count {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9e4da;
  color: #656a65;
  font-size: .7rem;
  font-weight: 750;
}

.category-navigation {
  position: sticky;
  top: 78px;
  z-index: 35;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin:
    0 -14px 16px;
  padding:
    8px 14px 11px;
  scrollbar-width: none;
  background:
    linear-gradient(
      #f5f2eb 72%,
      rgba(245,242,235,0)
    );
}

.category-navigation::-webkit-scrollbar {
  display: none;
}

.category-chip {
  min-height: 38px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid #d8d1c4;
  border-radius: 999px;
  background: #fff;
  color: #555c56;
  font: inherit;
  font-size: .77rem;
  font-weight: 720;
  cursor: pointer;
}

.category-chip.active {
  border-color: #1c271f;
  background: #1c271f;
  color: #fff;
}

.customer-page .category {
  scroll-margin-top: 135px;
  margin-bottom: 22px;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-page
.category-header h2 {
  margin: 0;
  color: #242b26;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.category-header > span {
  color: #92958f;
  font-size: .69rem;
}

.menu-item-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-page .item {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0dbd2;
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 6px 20px
    rgba(31,38,33,.04);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.customer-page .item.selected {
  border-color: #b9944d;
  box-shadow:
    0 0 0 2px
    rgba(185,148,77,.13),
    0 8px 24px
    rgba(31,38,33,.06);
}

.customer-page .item-info {
  min-width: 0;
  flex: 1;
}

.customer-page .item-name {
  color: #222923;
  font-size: .9rem;
  font-weight: 730;
  line-height: 1.3;
}

.customer-page .item-price {
  margin-top: 6px;
  color: #8b7040;
  font-size: .78rem;
  font-weight: 750;
}

.customer-page .qty-control {
  display: grid;
  grid-template-columns:
    32px 22px 32px;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.customer-page
.qty-control button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #d8d2c7;
  border-radius: 50%;
  background: #f8f6f1;
  color: #202621;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.customer-page
.qty-control button:last-child {
  border-color: #1c271f;
  background: #1c271f;
  color: #fff;
}

.customer-page
.qty-control span {
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
}

.customer-loading-card {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e0dbd2;
  border-radius: 15px;
  background: #fff;
  color: #747973;
}

.customer-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd6ca;
  border-top-color: #1c271f;
  border-radius: 50%;
  animation:
    customer-spin .75s linear infinite;
}

@keyframes customer-spin {
  to {
    transform: rotate(360deg);
  }
}

.customer-page .action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding:
    11px 14px
    max(11px, env(safe-area-inset-bottom));
  border-top:
    1px solid rgba(28,39,31,.1);
  background:
    rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 -12px 35px
    rgba(24,33,28,.12);
}

.action-bar-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns:
    minmax(150px, .65fr)
    minmax(240px, 1fr);
  gap: 12px;
  align-items: center;
}

.cart-mini-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-mini-summary span {
  overflow: hidden;
  color: #7b807b;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-mini-summary strong {
  overflow: hidden;
  color: #202621;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-page
#btn-send-order {
  min-height: 49px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #1a251e,
      #35483b
    );
  color: #fff;
  font-size: .88rem;
  font-weight: 780;
  box-shadow:
    0 9px 20px
    rgba(27,39,31,.2);
}

.customer-page
#btn-send-order:disabled {
  box-shadow: none;
  opacity: .46;
}

.customer-page
.modal-overlay {
  padding: 16px;
  background:
    rgba(13,18,15,.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.customer-page .modal {
  width: min(100%, 520px);
  max-height:
    min(88vh, 720px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 21px;
  background: #fff;
  box-shadow:
    0 28px 80px
    rgba(0,0,0,.3);
}

.customer-page
.modal-header-row h3 {
  margin: 4px 0 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.bill-choice-modal
.modal-options {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 12px;
}

.bill-choice-modal
.modal-options button {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ded8cd;
  border-radius: 15px;
  background: #faf8f3;
  color: #252c27;
  font: inherit;
  font-weight: 750;
}

.bill-choice-modal
.modal-options button span {
  font-size: 1.45rem;
}

.customer-page .toast {
  bottom: 105px;
  border-radius: 12px;
  background: #1c271f;
  box-shadow:
    0 14px 35px
    rgba(0,0,0,.22);
}

@media (max-width: 720px) {
  .customer-hero {
    grid-template-columns: 1fr;
  }

  .customer-hero-steps {
    display: grid;
    grid-template-columns:
      repeat(3, 1fr);
  }

  .customer-hero-steps span {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .menu-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body.customer-page {
    padding-bottom: 104px;
  }

  .customer-header {
    padding:
      10px 13px;
  }

  .customer-brand-icon {
    width: 38px;
    height: 38px;
  }

  .customer-page
  .table-badge {
    min-height: 34px;
    padding: 0 10px;
    font-size: .7rem;
  }

  .customer-main {
    width:
      min(calc(100% - 22px), 1040px);
    padding-top: 12px;
  }

  .customer-hero {
    padding: 20px;
    border-radius: 19px;
  }

  .customer-hero p {
    font-size: .84rem;
  }

  .customer-page
  .quick-actions {
    gap: 8px;
  }

  .customer-page
  .quick-action-card {
    min-height: 74px;
    padding: 11px;
  }

  .quick-action-icon {
    width: 38px;
    height: 38px;
  }

  .quick-action-card small {
    display: none;
  }

  .category-navigation {
    top: 66px;
  }

  .customer-page .item {
    min-height: 77px;
    padding: 12px;
  }

  .action-bar-inner {
    grid-template-columns:
      minmax(0, .8fr)
      minmax(165px, 1.2fr);
    gap: 8px;
  }

  .customer-page
  #btn-send-order {
    min-height: 46px;
    padding: 0 12px;
    font-size: .78rem;
  }

  .cart-mini-summary strong {
    font-size: .8rem;
  }

  .bill-choice-modal
  .modal-options {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Vendégoldali toast értesítés javítása
   ========================================================= */

.customer-page .toast {
  top: auto;
  right: auto;
  bottom: 105px;
  left: 50%;
  width: max-content;
  max-width: min(
    calc(100vw - 32px),
    420px
  );
  height: auto;
  min-height: 0;
  padding: 11px 16px;
  transform:
    translateX(-50%)
    translateY(12px);
  border-radius: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility .22s ease;
}

.customer-page .toast.show {
  opacity: 1;
  visibility: visible;
  transform:
    translateX(-50%)
    translateY(0);
}

@media (max-width: 540px) {
  .customer-page .toast {
    bottom: 96px;
    max-width:
      calc(100vw - 24px);
    padding: 10px 14px;
    font-size: .82rem;
  }
}


/* =========================================================
   Admin- és pincérfelület – modern megjelenés
   ========================================================= */

body.admin-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(185, 148, 77, .12),
      transparent 34rem
    ),
    #f3f1ec;
  color: #222823;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.admin-page button,
.admin-page input,
.admin-page select,
.admin-page textarea {
  font-family: inherit;
}

.admin-page > header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  border-bottom:
    1px solid rgba(255,255,255,.08);
  background:
    rgba(23, 32, 27, .96);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 32px
    rgba(18,26,21,.16);
}

.admin-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background:
    rgba(255,255,255,.1);
  font-size: 1.25rem;
}

.admin-brand-kicker {
  display: block;
  margin-bottom: 2px;
  color:
    rgba(255,255,255,.58);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.admin-page
#admin-restaurant-title {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size:
    clamp(1rem, 3vw, 1.25rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-page .sound-toggle,
.admin-page .logout-button {
  min-height: 38px;
  border: 1px solid
    rgba(255,255,255,.13);
  border-radius: 10px;
  background:
    rgba(255,255,255,.07);
  color: #fff;
}

.admin-page .sound-toggle {
  width: 40px;
  padding: 0;
  font-size: 1rem;
}

.admin-page .logout-button {
  padding: 0 13px;
  font-size: .78rem;
  font-weight: 720;
}

.admin-page
#pending-count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid
    rgba(185,148,77,.24);
  border-radius: 999px;
  background:
    rgba(185,148,77,.14);
  color: #f2dfb6;
  font-size: .75rem;
  font-weight: 750;
}

.admin-user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-details {
  display: flex;
  max-width: 170px;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.admin-user-details strong {
  overflow: hidden;
  max-width: 100%;
  color: #fff;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-details span {
  margin-top: 3px;
  color:
    rgba(255,255,255,.52);
  font-size: .66rem;
}

.admin-page .tab-bar {
  position: sticky;
  top: 76px;
  z-index: 70;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid #ddd8ce;
  background:
    rgba(243,241,236,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.admin-page .tab-bar::-webkit-scrollbar {
  display: none;
}

.admin-page .tab-btn {
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #686e69;
  font-size: .78rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.admin-page .tab-btn:hover {
  border-color: #d7d0c3;
  background: #fff;
  color: #29312b;
}

.admin-page .tab-btn.active {
  border-color: #1c271f;
  background: #1c271f;
  color: #fff;
  box-shadow:
    0 8px 18px
    rgba(28,39,31,.15);
}

.admin-page > main {
  width: min(
    calc(100% - 32px),
    1180px
  );
  margin: 0 auto;
  padding: 24px 0 42px;
}

.admin-page .tab-section {
  animation:
    admin-section-in .2s ease;
}

@keyframes admin-section-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page
.requests-header,
.admin-page
.sessions-page-header,
.admin-page
.history-page-header,
.admin-page
.statistics-page-header,
.admin-page
.settings-page-header,
.admin-page
.menu-editor-header,
.admin-page
.tables-page-header,
.admin-page
.staff-page-header {
  margin-bottom: 17px;
}

.admin-page
.requests-header h2,
.admin-page
.sessions-page-header h2,
.admin-page
.history-page-header h2,
.admin-page
.statistics-page-header h2,
.admin-page
.settings-page-header h2,
.admin-page
.menu-editor-header h2,
.admin-page
.tables-page-header h2,
.admin-page
.staff-page-header h2 {
  margin: 0 0 5px;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.35rem, 3vw, 1.72rem);
  font-weight: 500;
}

.admin-page
.requests-header p,
.admin-page
.sessions-page-header p,
.admin-page
.history-page-header p,
.admin-page
.statistics-page-header p,
.admin-page
.settings-page-header p,
.admin-page
.menu-editor-header p,
.admin-page
.tables-page-header p,
.admin-page
.staff-page-header p {
  margin: 0;
  color: #747974;
  line-height: 1.5;
}

.admin-page .request-card,
.admin-page .table-session-card,
.admin-page .history-card,
.admin-page .closed-session-card,
.admin-page .statistics-panel,
.admin-page .restaurant-settings-form,
.admin-page .menu-editor-category,
.admin-page .restaurant-table-card,
.admin-page .staff-card,
.admin-page .history-filter-form,
.admin-page .statistics-filter-form,
.admin-page .session-history-filter-form {
  border-color: #ded8ce;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 8px 26px
    rgba(31,38,33,.055);
}

.admin-page .request-card {
  overflow: hidden;
  border-left-width: 5px;
  padding: 16px;
}

.admin-page .request-card:hover,
.admin-page .table-session-card:hover,
.admin-page .history-card:hover,
.admin-page .closed-session-card:hover {
  box-shadow:
    0 12px 32px
    rgba(31,38,33,.085);
}

.admin-page .request-card h3,
.admin-page .table-session-card h3,
.admin-page .history-card h3,
.admin-page .closed-session-card h3 {
  color: #202721;
}

.admin-page .request-type {
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-page .request-card .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-page .request-card
.buttons button,
.admin-page .table-session-actions button,
.admin-page .primary-small,
.admin-page .history-reset-button {
  min-height: 40px;
  border-radius: 10px;
  font-size: .76rem;
  font-weight: 750;
}

.admin-page .btn-ack {
  border: 1px solid #c6d8eb;
  background: #edf5fc;
  color: #315f91;
}

.admin-page .btn-done {
  border: 1px solid #bdd9c6;
  background: #ecf7ef;
  color: #347247;
}

.admin-page .btn-cancel-order {
  border-color: #e5c2c2;
  background: #fff2f2;
  color: #9c3333;
}

.admin-page .table-session-card {
  border-left-color: #5c9470;
  padding: 17px;
}

.admin-page .table-session-header > strong {
  padding: 7px 10px;
  border-radius: 9px;
  background: #edf5ef;
  color: #3a714d;
}

.admin-page .table-session-meta span,
.admin-page .closed-session-meta span,
.admin-page .closed-session-order-summary span {
  border: 1px solid #e5e0d7;
  background: #f6f3ed;
}

.admin-page .table-session-actions {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.admin-page .add-staff-order-button {
  background:
    linear-gradient(
      135deg,
      #1a251e,
      #34483b
    );
  box-shadow:
    0 7px 16px
    rgba(27,39,31,.15);
}

.admin-page .move-table-session-button {
  border-color: #d5c49d;
  background: #fbf6e9;
}

.admin-page .close-table-session-button {
  border-color: #e2c8c8;
  background: #fff4f4;
}

.admin-page .session-view-switch {
  max-width: 560px;
  padding: 5px;
  border-radius: 12px;
  background: #e8e3d9;
}

.admin-page .session-view-button {
  min-height: 42px;
  border-radius: 9px;
}

.admin-page .session-view-button.active {
  background: #fff;
  box-shadow:
    0 4px 12px
    rgba(31,38,33,.08);
}

.admin-page .statistics-summary-grid,
.admin-page .history-summary-grid,
.admin-page .session-history-summary {
  gap: 10px;
}

.admin-page .statistics-card,
.admin-page .history-summary-card,
.admin-page .session-history-summary article {
  border-color: #ded8ce;
  border-radius: 13px;
  background: #fff;
  box-shadow:
    0 6px 20px
    rgba(31,38,33,.045);
}

.admin-page .statistics-card-primary,
.admin-page .history-revenue-card {
  border-color: #1d2821;
  background:
    linear-gradient(
      135deg,
      #19221d,
      #34483b
    );
}

.admin-page .statistics-bar {
  height: 7px;
  background: #ece7dd;
}

.admin-page .statistics-bar span {
  background:
    linear-gradient(
      90deg,
      #5a926e,
      #7cab8a
    );
}

.admin-page
input[type="text"],
.admin-page
input[type="password"],
.admin-page
input[type="number"],
.admin-page
input[type="date"],
.admin-page
select,
.admin-page
textarea {
  border-color: #d7d1c7;
  border-radius: 10px;
  background: #fff;
  color: #252c27;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.admin-page
input:focus,
.admin-page
select:focus,
.admin-page
textarea:focus {
  border-color: #9f8755;
  box-shadow:
    0 0 0 3px
    rgba(185,148,77,.13);
}

.admin-page .restaurant-open-toggle {
  border: 1px solid #e2ddd3;
  border-radius: 12px;
  background: #f7f4ee;
}

.admin-page .menu-editor-item,
.admin-page .restaurant-table-card,
.admin-page .staff-card {
  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.admin-page .menu-editor-item:hover,
.admin-page .restaurant-table-card:hover,
.admin-page .staff-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px
    rgba(31,38,33,.07);
}

.admin-page .modal-overlay {
  padding: 18px;
  background:
    rgba(13,18,15,.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.admin-page .modal {
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 28px 80px
    rgba(0,0,0,.3);
}

.admin-page .modal-header-row h3 {
  margin: 4px 0 0;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 500;
}

.admin-page .modal-close-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eeeae2;
  color: #363d38;
  font-size: 1.2rem;
  cursor: pointer;
}

.admin-page .modal-primary-button {
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #19231d,
      #35483b
    );
  color: #fff;
  font-weight: 750;
}

.admin-page .modal-secondary-button {
  border: 1px solid #d7d1c7;
  border-radius: 10px;
  background: #f7f4ee;
  color: #4f5651;
  font-weight: 720;
}

.admin-page .empty-state,
.admin-page .error-state {
  border-radius: 13px;
}

@media (max-width: 900px) {
  .admin-page > header {
    align-items: flex-start;
  }

  .admin-page .header-right {
    flex-wrap: wrap;
  }

  .admin-page .table-session-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-page > header {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 11px 13px;
  }

  .admin-page .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-user-details {
    display: none;
  }

  .admin-page .tab-bar {
    top: 112px;
    padding: 8px 11px;
  }

  .admin-page > main {
    width:
      min(calc(100% - 22px), 1180px);
    padding-top: 16px;
  }

  .admin-page
  .statistics-summary-grid,
  .admin-page
  .history-summary-grid,
  .admin-page
  .session-history-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .admin-page .table-session-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .admin-page .header-right {
    gap: 7px;
  }

  .admin-page
  #pending-count {
    order: 4;
    width: 100%;
    justify-content: center;
  }

  .admin-page .tab-bar {
    top: 151px;
  }

  .admin-page
  .statistics-summary-grid,
  .admin-page
  .history-summary-grid,
  .admin-page
  .session-history-summary {
    grid-template-columns: 1fr;
  }

  .admin-page
  .request-card .buttons {
    flex-direction: column;
  }

  .admin-page
  .request-card .buttons button {
    width: 100%;
  }
}


/* =========================================================
   Admin sidebar – teljes szélességű desktop layout
   ========================================================= */

.admin-page .admin-shell {
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
  padding: 22px 0 42px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.admin-page .admin-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  min-width: 0;
}

.admin-page main.admin-content {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
}

.admin-page .admin-sidebar .tab-bar {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: visible;
  padding: 12px;
  border: 1px solid #ded8ce;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 38, 33, .065);
}

.admin-page .admin-sidebar .tab-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}

.admin-page .admin-content .tab-section {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.admin-page #request-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-page #request-list > .empty-state,
.admin-page #request-list > .error-state {
  grid-column: 1 / -1;
}

.admin-page #history-tab,
.admin-page #statistics-tab,
.admin-page #sessions-tab,
.admin-page #menu-tab,
.admin-page #tables-tab,
.admin-page #staff-tab,
.admin-page #settings-tab {
  width: 100%;
  max-width: none;
}

.admin-page .history-filter-form {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.admin-page .history-filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-page .statistics-filter-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
}

.admin-page .history-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-page .statistics-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .admin-page .admin-shell {
    width: min(calc(100% - 28px), 1180px);
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 18px;
  }

  .admin-page #request-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .admin-page .history-filter-form {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .admin-page .history-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-page .admin-shell {
    width: min(calc(100% - 22px), 1180px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 12px;
  }

  .admin-page .admin-sidebar {
    position: sticky;
    top: 76px;
    z-index: 70;
  }

  .admin-page .admin-sidebar .tab-bar {
    display: flex;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    padding: 8px 0 10px;
    border: 0;
    border-radius: 0;
    background: rgba(243, 241, 236, .96);
    box-shadow: none;
    scrollbar-width: none;
  }

  .admin-page .admin-sidebar .tab-bar::-webkit-scrollbar {
    display: none;
  }

  .admin-page .admin-sidebar .tab-btn {
    width: auto;
    min-width: max-content;
    padding: 0 13px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-page #request-list {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }

  .admin-page .history-filter-form,
  .admin-page .statistics-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-page .admin-sidebar {
    top: 112px;
  }

  .admin-page #request-list,
  .admin-page .history-filter-form,
  .admin-page .statistics-filter-form,
  .admin-page .history-summary-grid,
  .admin-page .statistics-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .history-filter-actions {
    justify-content: stretch;
  }

  .admin-page .history-filter-actions button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .admin-page .admin-sidebar {
    top: 151px;
  }
}


/* =========================================================
   Aktív kérések – operatív dashboard
   ========================================================= */

.requests-dashboard {
  margin-bottom: 18px;
}

.requests-dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9a7d44;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.requests-dashboard-heading h2 {
  margin: 0;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
}

.requests-dashboard-heading p {
  margin: 5px 0 0;
  color: #747974;
}

.requests-refresh-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d8d1c6;
  border-radius: 10px;
  background: #fff;
  color: #4e5650;
  font: inherit;
  font-size: .76rem;
  font-weight: 740;
  cursor: pointer;
}

.requests-refresh-button:hover {
  border-color: #bca875;
  background: #fbf8f1;
}

.request-summary-cards {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.request-summary-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #ded8ce;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 7px 22px
    rgba(31,38,33,.045);
}

.request-summary-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius:
    0 0 0 44px;
  opacity: .16;
}

.request-summary-card span {
  display: block;
  margin-bottom: 5px;
  color: #747a75;
  font-size: .72rem;
}

.request-summary-card strong {
  color: #202721;
  font-size: 1.3rem;
}

.summary-pending::after {
  background: #d6a642;
}

.summary-orders::after {
  background: #5b9470;
}

.summary-waiter::after {
  background: #d85b54;
}

.summary-bills::after {
  background: #557fb2;
}

.request-filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.request-filter-bar::-webkit-scrollbar {
  display: none;
}

.request-filter-button {
  min-height: 37px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid #d9d3c8;
  border-radius: 999px;
  background: #fff;
  color: #636a64;
  font: inherit;
  font-size: .73rem;
  font-weight: 730;
  cursor: pointer;
}

.request-filter-button.active {
  border-color: #1c271f;
  background: #1c271f;
  color: #fff;
}

.admin-page #request-list {
  align-items: stretch;
}

.admin-page .request-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin-page .request-card .buttons {
  margin-top: auto;
  padding-top: 14px;
}

.admin-page
.request-card.request-type-call_waiter {
  border-left-color: #d9534f;
  background:
    linear-gradient(
      135deg,
      #fff,
      #fff8f7
    );
}

.admin-page
.request-card.request-type-bill {
  border-left-color: #4d7eaf;
  background:
    linear-gradient(
      135deg,
      #fff,
      #f7faff
    );
}

.admin-page
.request-card.request-type-order {
  border-left-color: #5b9470;
}

.admin-page
.request-card.request-status-pending {
  box-shadow:
    0 0 0 1px
    rgba(214,166,66,.08),
    0 10px 30px
    rgba(31,38,33,.07);
}

.request-age {
  display: block;
  margin-top: 2px;
  color: #a1a49f;
  font-size: .65rem;
}

.admin-page
.request-card.request-type-call_waiter
.request-status-pending {
  animation:
    waiter-request-pulse
    2.2s ease-in-out infinite;
}

@keyframes waiter-request-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0
      rgba(217,83,79,0),
      0 8px 24px
      rgba(31,38,33,.06);
  }

  50% {
    box-shadow:
      0 0 0 4px
      rgba(217,83,79,.09),
      0 12px 30px
      rgba(31,38,33,.08);
  }
}

@media (max-width: 900px) {
  .request-summary-cards {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .requests-dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .requests-refresh-button {
    width: 100%;
  }

  .request-summary-cards {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .request-summary-cards {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Aktív fogyasztások – dashboard és kártyarács
   ========================================================= */

.active-session-summary {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.active-session-summary-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ded8ce;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 7px 22px
    rgba(31,38,33,.045);
}

.active-session-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: #777d78;
  font-size: .71rem;
}

.active-session-summary-card strong {
  display: block;
  overflow: hidden;
  color: #202721;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-session-summary-card.summary-value {
  border-color: #25362b;
  background:
    linear-gradient(
      135deg,
      #19231d,
      #35483b
    );
}

.active-session-summary-card.summary-value span {
  color:
    rgba(255,255,255,.62);
}

.active-session-summary-card.summary-value strong {
  color: #fff;
}

.active-session-summary-card.summary-oldest strong {
  font-size: .9rem;
}

.admin-page #table-sessions-container {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(360px, 1fr)
    );
  gap: 14px;
  align-items: stretch;
}

.admin-page
#table-sessions-container
> .empty-state,
.admin-page
#table-sessions-container
> .error-state {
  grid-column: 1 / -1;
}

.admin-page .table-session-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.table-session-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #5f7165;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.table-session-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5c9470;
  box-shadow:
    0 0 0 4px
    rgba(92,148,112,.12);
}

.admin-page .table-session-items {
  flex: 1;
}

.admin-page .table-session-actions {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 1100px) {
  .active-session-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .admin-page #table-sessions-container {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(320px, 1fr)
      );
  }
}

@media (max-width: 680px) {
  .active-session-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .admin-page #table-sessions-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .active-session-summary {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Magyar–román nyelvválasztás
   ========================================================= */

.language-switcher {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font: inherit;
  font-size: .69rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  background: #fff;
  color: #1d2821;
}

.customer-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bilingual-name-grid {
  display: grid;
  flex: 1;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.bilingual-name-grid label,
.bilingual-menu-item-row > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.bilingual-name-grid label > span,
.bilingual-menu-item-row label > span {
  color: #777d78;
  font-size: .68rem;
  font-weight: 700;
}

.bilingual-cat-header {
  align-items: end;
}

.bilingual-menu-item-row {
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(160px, 1fr)
    110px auto 42px;
  align-items: end;
}

.bilingual-add-item-row {
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(150px, 1fr)
    110px auto;
}

@media (max-width: 850px) {
  .bilingual-menu-item-row,
  .bilingual-add-item-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .bilingual-menu-item-row
  .avail-label,
  .bilingual-menu-item-row
  .item-delete-btn {
    align-self: end;
  }
}

@media (max-width: 560px) {
  .customer-header-actions {
    gap: 5px;
  }

  .language-switcher {
    padding: 2px;
  }

  .language-switcher button {
    min-width: 29px;
    height: 27px;
    padding: 0 6px;
    font-size: .62rem;
  }

  .bilingual-name-grid,
  .bilingual-menu-item-row,
  .bilingual-add-item-row {
    grid-template-columns: 1fr;
  }

  .bilingual-cat-header {
    align-items: stretch;
    flex-direction: column;
  }
}


/* =========================================================
   Műveleti napló
   ========================================================= */

.audit-page-header {
  margin-bottom: 17px;
}

.audit-page-header h2 {
  margin: 0;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
}

.audit-page-header p {
  margin: 5px 0 0;
  color: #747974;
}

.audit-filter-form {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ded8ce;
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 7px 24px
    rgba(31,38,33,.045);
}

.audit-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audit-filter-form label > span {
  color: #59615b;
  font-size: .75rem;
  font-weight: 720;
}

.audit-filter-form input,
.audit-filter-form select {
  min-height: 41px;
  padding: 0 10px;
}

.audit-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.audit-summary-grid article {
  padding: 13px;
  border: 1px solid #ded8ce;
  border-radius: 13px;
  background: #fff;
  box-shadow:
    0 6px 20px
    rgba(31,38,33,.04);
}

.audit-summary-grid span {
  display: block;
  margin-bottom: 5px;
  color: #7a7f7a;
  font-size: .69rem;
}

.audit-summary-grid strong {
  color: #202721;
  font-size: 1.14rem;
}

#audit-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-log-card {
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #ded8ce;
  border-left: 5px solid #7a847d;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 7px 22px
    rgba(31,38,33,.045);
}

.audit-log-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #f1ede5;
  font-size: 1.1rem;
}

.audit-log-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.audit-action-label {
  display: block;
  margin-bottom: 3px;
  color: #8c7443;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-log-heading h3 {
  margin: 0;
  color: #252c27;
  font-size: .9rem;
  line-height: 1.4;
}

.audit-log-heading time {
  flex: 0 0 auto;
  color: #969b96;
  font-size: .69rem;
  white-space: nowrap;
}

.audit-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.audit-log-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f0ea;
  color: #656b66;
  font-size: .68rem;
}

.audit-details {
  margin-top: 9px;
  border-top: 1px solid #ece8e0;
  padding-top: 8px;
}

.audit-details summary {
  color: #6d736e;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.audit-details pre {
  overflow-x: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 9px;
  background: #1e2521;
  color: #dbe4dd;
  font-size: .68rem;
  line-height: 1.45;
}

.audit-action-order_cancelled {
  border-left-color: #c95b55;
}

.audit-action-session_moved {
  border-left-color: #b58a3f;
}

.audit-action-session_closed_manually {
  border-left-color: #667c6b;
}

.audit-action-settings_updated {
  border-left-color: #557fad;
}

@media (max-width: 1050px) {
  .audit-filter-form {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .audit-summary-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .audit-filter-form,
  .audit-summary-grid {
    grid-template-columns: 1fr;
  }

  .audit-filter-actions {
    flex-direction: column;
  }

  .audit-filter-actions button {
    width: 100%;
  }

  .audit-log-card {
    grid-template-columns: 1fr;
  }

  .audit-log-heading {
    flex-direction: column;
    gap: 6px;
  }
}


/* =========================================================
   Termékképek, leírások és allergének
   ========================================================= */

.item-extra-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid #ece7de;
}

.item-extra-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-extra-fields label > span {
  color: #777d78;
  font-size: .68rem;
  font-weight: 700;
}

.item-extra-fields textarea {
  min-height: 70px;
  resize: vertical;
}

.item-image-url-field {
  grid-column: 1 / -1;
}

.bilingual-menu-item-row {
  flex-wrap: wrap;
}

.bilingual-add-item-row {
  grid-template-columns:
    repeat(2, minmax(160px, 1fr));
}

.customer-page .menu-item-image {
  width: 82px;
  height: 82px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #efebe3;
}

.customer-page .menu-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.customer-page .item-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: #747a75;
  font-size: .72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-page .item-allergens {
  margin: 5px 0 0;
  color: #9a7540;
  font-size: .66rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .item-extra-fields,
  .bilingual-add-item-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .customer-page .item {
    flex-wrap: wrap;
  }

  .customer-page .menu-item-image {
    width: 70px;
    height: 70px;
  }

  .customer-page .qty-control {
    margin-left: auto;
  }
}


/* =========================================================
   Menüszerkesztő – explicit mentés és allergén chipek
   ========================================================= */

.admin-page .menu-item-row {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1dbd1;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      #fff,
      #fcfbf8
    );
  padding: 15px;
  margin-bottom: 13px;
  box-shadow:
    0 6px 20px
    rgba(31, 38, 33, .04);
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.admin-page
.menu-item-row.has-unsaved-changes {
  border-color: #d3a84f;
  box-shadow:
    0 0 0 3px
    rgba(211, 168, 79, .10),
    0 8px 24px
    rgba(31, 38, 33, .06);
}

.admin-page
.menu-item-row.save-success {
  border-color: #72a582;
}

.admin-page
.item-extra-fields {
  border-top:
    1px solid #ebe5dc;
  padding-top: 14px;
}

.allergen-selector,
.new-item-allergen-selector {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1dbd1;
  border-radius: 13px;
  background: #f8f6f1;
}

.allergen-selector-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.allergen-selector-heading > span,
.new-item-allergen-selector > span {
  color: #39413b;
  font-size: .73rem;
  font-weight: 780;
}

.allergen-selector-heading small {
  color: #8d928d;
  font-size: .62rem;
}

.allergen-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.allergen-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: #646a65;
  font: inherit;
  font-size: .69rem;
  font-weight: 710;
  cursor: pointer;
  transition:
    border-color .15s ease,
    background .15s ease,
    color .15s ease,
    transform .15s ease;
}

.allergen-chip:hover {
  border-color: #9f8755;
  transform: translateY(-1px);
}

.allergen-chip-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #d3cdc3;
  border-radius: 50%;
  color: transparent;
  font-size: .62rem;
}

.allergen-chip.selected {
  border-color: #1d2a21;
  background: #1d2a21;
  color: #fff;
}

.allergen-chip.selected
.allergen-chip-check {
  border-color:
    rgba(255,255,255,.35);
  background:
    rgba(255,255,255,.13);
  color: #fff;
}

.menu-item-save-footer {
  grid-column: 1 / -1;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid #e4dfd6;
  border-radius: 12px;
  background: #f6f3ed;
}

.menu-item-save-status {
  color: #858a85;
  font-size: .71rem;
  font-weight: 670;
}

.has-unsaved-changes
.menu-item-save-status {
  color: #98742f;
}

.save-success
.menu-item-save-status {
  color: #347249;
}

.menu-item-save-button {
  display: inline-flex;
  min-width: 126px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #1a251e,
      #35483b
    );
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 780;
  cursor: pointer;
  box-shadow:
    0 7px 16px
    rgba(27,39,31,.16);
}

.menu-item-save-button:hover {
  transform: translateY(-1px);
}

.menu-item-save-button.saved {
  background:
    linear-gradient(
      135deg,
      #39704d,
      #5b9470
    );
}

.menu-item-save-button:disabled {
  cursor: wait;
  opacity: .8;
}

.save-button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid
    rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation:
    admin-save-spin .7s
    linear infinite;
}

@keyframes admin-save-spin {
  to {
    transform: rotate(360deg);
  }
}

.new-item-allergen-selector {
  grid-column: 1 / -1;
}

.new-item-allergen-selector > span {
  display: block;
  margin-bottom: 9px;
}

.admin-page
.bilingual-add-item-row {
  padding: 14px;
  border: 1px dashed #cfc7b9;
  border-radius: 14px;
  background: #faf8f3;
}

@media (max-width: 720px) {
  .menu-item-save-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-item-save-button {
    width: 100%;
  }

  .allergen-selector-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}


/* =========================================================
   Értesítési központ
   ========================================================= */

.notification-settings-button {
  position: relative;
  display: grid;
  width: 40px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid
    rgba(255,255,255,.13);
  border-radius: 10px;
  background:
    rgba(255,255,255,.07);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.notification-settings-button:hover {
  background:
    rgba(255,255,255,.13);
}

.notification-status-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #263229;
  border-radius: 50%;
  background: #d3a84f;
}

.notification-status-dot.granted {
  background: #6fbd83;
}

.notification-status-dot.blocked {
  background: #d9605a;
}

.notification-settings-panel {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 140;
  width: min(
    calc(100vw - 32px),
    410px
  );
  padding: 17px;
  border: 1px solid #dcd6cc;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 24px 70px
    rgba(19,27,22,.26);
  animation:
    notification-panel-in
    .18s ease;
}

.notification-settings-panel[hidden] {
  display: none;
}

@keyframes notification-panel-in {
  from {
    opacity: 0;
    transform:
      translateY(-6px)
      scale(.98);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

.notification-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.notification-panel-header h3 {
  margin: 0;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.notification-settings-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eeeae2;
  color: #3c443e;
  font-size: 1.1rem;
  cursor: pointer;
}

.notification-option {
  display: flex;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom:
    1px solid #ece7df;
}

.notification-option > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-option strong {
  color: #303832;
  font-size: .8rem;
}

.notification-option small {
  max-width: 290px;
  color: #858a85;
  font-size: .68rem;
  line-height: 1.4;
}

.notification-option
input[type="checkbox"] {
  width: 42px;
  height: 23px;
  flex: 0 0 auto;
  accent-color: #1d2a21;
  cursor: pointer;
}

.notification-permission-info {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f4f1ea;
  color: #6a716c;
  font-size: .7rem;
  line-height: 1.45;
}

.notification-primary-button,
.notification-secondary-button {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  border-radius: 10px;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.notification-primary-button {
  border: 0;
  background:
    linear-gradient(
      135deg,
      #1a251e,
      #35483b
    );
  color: #fff;
}

.notification-secondary-button {
  border: 1px solid #d7d1c7;
  background: #f8f5ef;
  color: #525954;
}

@media (max-width: 680px) {
  .notification-settings-panel {
    top: 119px;
    right: 11px;
  }
}

@media (max-width: 430px) {
  .notification-settings-panel {
    top: 158px;
  }
}


/* =========================================================
   Biztonsági mentések
   ========================================================= */

.backups-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.backups-page-header h2 {
  margin: 0;
  color: #202721;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size:
    clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
}

.backups-page-header p {
  margin: 5px 0 0;
  color: #747974;
}

.create-backup-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #19231d,
      #35483b
    );
  color: #fff;
  font: inherit;
  font-size: .77rem;
  font-weight: 780;
  cursor: pointer;
  box-shadow:
    0 8px 18px
    rgba(28,39,31,.16);
}

.create-backup-button.backup-created {
  background:
    linear-gradient(
      135deg,
      #39704d,
      #5b9470
    );
}

.create-backup-button:disabled {
  cursor: wait;
  opacity: .85;
}

.backup-button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid
    rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation:
    backup-spin .7s linear infinite;
}

@keyframes backup-spin {
  to {
    transform: rotate(360deg);
  }
}

.backup-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}

.backup-summary-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #ded8ce;
  border-radius: 13px;
  background: #fff;
  box-shadow:
    0 6px 20px
    rgba(31,38,33,.04);
}

.backup-summary-grid span {
  display: block;
  margin-bottom: 5px;
  color: #7a7f7a;
  font-size: .69rem;
}

.backup-summary-grid strong {
  display: block;
  overflow: hidden;
  color: #202721;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-summary-size {
  border-color: #25362b !important;
  background:
    linear-gradient(
      135deg,
      #19231d,
      #35483b
    ) !important;
}

.backup-summary-size span {
  color:
    rgba(255,255,255,.62);
}

.backup-summary-size strong {
  color: #fff;
}

.backup-summary-latest strong {
  font-size: .78rem;
}

.backup-information-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid #d8d1c5;
  border-left:
    5px solid #5b9470;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 7px 22px
    rgba(31,38,33,.045);
}

.backup-information-card strong {
  color: #303832;
  font-size: .84rem;
}

.backup-information-card p {
  margin: 4px 0 0;
  color: #777d78;
  font-size: .72rem;
}

.backup-retention-badge {
  padding: 7px 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf4ef;
  color: #39704d;
  font-size: .68rem;
  font-weight: 750;
}

.backup-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.backup-list-heading h3 {
  margin: 0;
  color: #252c27;
  font-size: .95rem;
}

.backup-list-heading p {
  margin: 4px 0 0;
  color: #878c87;
  font-size: .69rem;
}

.backup-refresh-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8d1c6;
  border-radius: 10px;
  background: #fff;
  color: #4e5650;
  font: inherit;
  font-size: .72rem;
  font-weight: 730;
  cursor: pointer;
}

#backup-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.backup-card {
  display: grid;
  grid-template-columns:
    44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #ded8ce;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 7px 22px
    rgba(31,38,33,.045);
}

.backup-file-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #f0ece4;
  font-size: 1.15rem;
}

.backup-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backup-card-heading h3 {
  overflow: hidden;
  margin: 4px 0 0;
  color: #2b332d;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-card-heading time {
  color: #969b96;
  font-size: .67rem;
  white-space: nowrap;
}

.backup-type-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
}

.backup-type-automatic {
  background: #edf4ef;
  color: #39704d;
}

.backup-type-manual {
  background: #f6edd9;
  color: #8a6b2e;
}

.backup-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.backup-card-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3f0ea;
  color: #686e69;
  font-size: .65rem;
}

.backup-card-actions {
  display: flex;
  gap: 7px;
}

.backup-download-button,
.backup-delete-button {
  min-height: 37px;
  padding: 0 11px;
  border-radius: 9px;
  font: inherit;
  font-size: .69rem;
  font-weight: 740;
  cursor: pointer;
}

.backup-download-button {
  border: 1px solid #bdd9c6;
  background: #edf7ef;
  color: #347247;
}

.backup-delete-button {
  border: 1px solid #e4c6c6;
  background: #fff3f3;
  color: #9c3e3e;
}

.backup-empty-state {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.backup-empty-state > span {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.backup-empty-state strong {
  color: #303832;
}

.backup-empty-state p {
  margin: 5px 0 0;
}

@media (max-width: 1100px) {
  .backup-summary-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .backups-page-header,
  .backup-information-card,
  .backup-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .create-backup-button {
    width: 100%;
  }

  .backup-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .backup-retention-badge {
    align-self: flex-start;
  }

  .backup-card {
    grid-template-columns:
      42px minmax(0, 1fr);
  }

  .backup-card-actions {
    grid-column: 1 / -1;
  }

  .backup-card-actions button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .backup-summary-grid {
    grid-template-columns: 1fr;
  }

  .backup-card-heading {
    flex-direction: column;
    gap: 5px;
  }

  .backup-card-heading h3 {
    white-space: normal;
    word-break: break-word;
  }
}


/* Napi zárás */
.daily-closing-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.daily-closing-header h2{margin:0;color:#202721;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.4rem,3vw,1.8rem);font-weight:500}
.daily-closing-header p{margin:5px 0 0;color:#747974}
.daily-closing-actions{display:flex;align-items:flex-end;gap:8px}
.daily-closing-actions label{display:flex;flex-direction:column;gap:5px}
.daily-closing-actions label>span{font-size:.69rem;font-weight:730;color:#686f69}
.daily-closing-actions input,.daily-closing-actions button{min-height:42px}
.daily-closing-load-button,.daily-closing-export-button{padding:0 13px;border-radius:10px;font:inherit;font-size:.73rem;font-weight:760;cursor:pointer}
.daily-closing-load-button{border:0;background:linear-gradient(135deg,#19231d,#35483b);color:#fff}
.daily-closing-export-button{border:1px solid #bdd9c6;background:#edf7ef;color:#347247}
.daily-closing-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:12px}
.daily-closing-summary-grid article{padding:13px;border:1px solid #ded8ce;border-radius:13px;background:#fff;box-shadow:0 6px 20px rgba(31,38,33,.04)}
.daily-closing-summary-grid span{display:block;margin-bottom:5px;color:#7a7f7a;font-size:.68rem}
.daily-closing-summary-grid strong{font-size:1.05rem;color:#202721}
.daily-revenue-card{border-color:#25362b!important;background:linear-gradient(135deg,#19231d,#35483b)!important}
.daily-revenue-card span{color:rgba(255,255,255,.62)}.daily-revenue-card strong{color:#fff}
.daily-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.daily-payment-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #ded8ce;border-radius:14px;background:#fff}
.daily-payment-icon{display:grid;width:43px;height:43px;place-items:center;border-radius:12px;background:#f1ede5;font-size:1.15rem}
.daily-payment-card small{display:block;color:#777d78;font-size:.68rem}.daily-payment-card strong{display:block;margin-top:2px;color:#252d27}.daily-payment-card p{margin:3px 0 0;color:#929792;font-size:.65rem}
.daily-closing-content-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:14px;align-items:start}
.daily-closing-panel{padding:15px;border:1px solid #ded8ce;border-radius:15px;background:#fff;box-shadow:0 7px 24px rgba(31,38,33,.045)}
.daily-panel-heading{margin-bottom:12px}.daily-panel-heading h3{margin:0;font-size:.92rem}.daily-panel-heading p{margin:4px 0 0;color:#878c87;font-size:.68rem}
#daily-closed-sessions,#daily-top-items{display:flex;flex-direction:column;gap:8px}
.daily-session-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #e5dfd6;border-radius:11px;background:#faf8f4}
.daily-session-table{display:flex;min-height:48px;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;background:#1d2921;color:#fff}
.daily-session-table span{font-size:.57rem}.daily-session-details{display:flex;flex-wrap:wrap;gap:6px}.daily-session-details span{padding:4px 7px;border-radius:999px;background:#eeeae2;color:#676d68;font-size:.64rem}.daily-session-total{font-size:.82rem;white-space:nowrap}
.daily-top-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eee9e1}
.daily-top-rank{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#eeeae2;font-size:.69rem;font-weight:800}
.daily-top-item-heading{display:flex;justify-content:space-between;gap:10px}.daily-top-item-heading strong{font-size:.75rem}.daily-top-item-heading span,.daily-top-item-info small{font-size:.64rem;color:#747b75}
.daily-top-item-bar{height:6px;overflow:hidden;margin-top:6px;border-radius:999px;background:#ebe7df}.daily-top-item-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b9470,#82ad8d)}
@media(max-width:1150px){.daily-closing-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-closing-content-grid{grid-template-columns:1fr}}
@media(max-width:760px){.daily-closing-header,.daily-closing-actions{align-items:stretch;flex-direction:column}.daily-closing-actions button{width:100%}.daily-closing-summary-grid,.daily-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.daily-closing-summary-grid,.daily-payment-summary{grid-template-columns:1fr}.daily-session-row{grid-template-columns:58px minmax(0,1fr)}.daily-session-total{grid-column:1/-1;text-align:right}}

/* Központi szuperadmin */
.superadmin-link{min-height:36px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid rgba(255,255,255,.15);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:.68rem;font-weight:760;text-decoration:none}
.superadmin-page{min-height:100vh;margin:0;background:#f3f0e9;color:#202721}.superadmin-header{position:sticky;top:0;z-index:40;display:flex;min-height:76px;align-items:center;justify-content:space-between;padding:0 24px;background:#19231d;color:#fff}.superadmin-brand,.superadmin-header-actions{display:flex;align-items:center;gap:10px}.superadmin-logo{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;background:rgba(255,255,255,.1)}.superadmin-brand small{font-size:.62rem;color:rgba(255,255,255,.58)}.superadmin-brand h1{margin:2px 0 0;font-size:1rem}.superadmin-header-actions a,.superadmin-header-actions button{min-height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:9px;background:rgba(255,255,255,.07);color:#fff;text-decoration:none;font:inherit;cursor:pointer}
.superadmin-main{width:min(calc(100% - 32px),1400px);margin:auto;padding:28px 0 50px}.superadmin-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.superadmin-hero h2{margin:2px 0 0;font-family:Georgia,serif;font-size:clamp(1.6rem,4vw,2.3rem);font-weight:500}.superadmin-hero p{color:#747a75}.create-restaurant-form{display:flex;align-items:flex-end;gap:8px}.create-restaurant-form label,.access-form label{display:flex;flex-direction:column;gap:5px}.create-restaurant-form input{min-width:270px;min-height:42px}.create-restaurant-form button,.access-form button{min-height:42px;border:0;border-radius:10px;padding:0 14px;background:#1d2a21;color:#fff;font-weight:750}
.superadmin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:15px}.superadmin-summary article,.superadmin-panel{padding:15px;border:1px solid #ddd7cd;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(31,38,33,.045)}.superadmin-summary span{font-size:.68rem;color:#7a807b}.superadmin-summary strong{display:block;margin-top:5px;font-size:1.25rem}.central-highlight{background:#1d2a21!important;color:#fff}.central-highlight span{color:rgba(255,255,255,.62)}
.superadmin-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:15px;align-items:start}.superadmin-panel-heading h3{margin:0}.superadmin-panel-heading p{margin:4px 0 12px;color:#888e89;font-size:.68rem}#restaurants-list,#access-list{display:flex;flex-direction:column;gap:9px}
.central-restaurant-card{display:grid;grid-template-columns:8px 1fr auto;gap:11px;align-items:center;padding:12px;border:1px solid #e3ded5;border-radius:12px;background:#faf8f4}.central-restaurant-status{width:8px;height:40px;border-radius:99px}.central-restaurant-status.active{background:#66a47a}.central-restaurant-status.inactive{background:#c7605a}.central-restaurant-name{width:100%;border:0;background:transparent;font-weight:780}.central-restaurant-info>span{font-size:.64rem;color:#929792}.central-restaurant-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.central-restaurant-meta span{padding:3px 6px;border-radius:99px;background:#ece8e0;font-size:.61rem}.central-restaurant-actions{display:flex;flex-direction:column;gap:5px}.central-restaurant-actions button,.remove-access-button{min-height:32px;border-radius:8px;font-size:.63rem;cursor:pointer}.save-restaurant-button{border:0;background:#1d2a21;color:#fff}.toggle-restaurant-button,.remove-access-button{border:1px solid #e2c7c7;background:#fff3f3;color:#9a3f3f}
.access-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-radius:12px;background:#f6f3ed}.access-form label:last-of-type,.access-form button{grid-column:1/-1}.access-heading{margin-top:16px}.central-access-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:9px;border:1px solid #e4dfd6;border-radius:10px}.central-access-row div{display:flex;flex-direction:column}.central-access-row span{font-size:.63rem;color:#727872}
.users-panel{margin-top:15px}#central-users-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:9px}.central-user-card{display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;padding:10px;border:1px solid #e3ded5;border-radius:11px;background:#faf8f4}.central-user-avatar{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#1d2a21;color:#fff}.central-user-info{display:flex;flex-direction:column}.central-user-info strong{font-size:.74rem}.central-user-info span,.central-superadmin-toggle{font-size:.62rem;color:#858b86}
@media(max-width:950px){.superadmin-grid{grid-template-columns:1fr}.superadmin-hero{align-items:stretch;flex-direction:column}}@media(max-width:680px){.superadmin-header{align-items:flex-start;flex-direction:column;padding:14px}.superadmin-summary{grid-template-columns:repeat(2,1fr)}.create-restaurant-form{flex-direction:column;align-items:stretch}.create-restaurant-form input{min-width:0}.central-restaurant-card{grid-template-columns:8px 1fr}.central-restaurant-actions{grid-column:1/-1;flex-direction:row}}@media(max-width:430px){.superadmin-summary,.access-form{grid-template-columns:1fr}.access-form label:last-of-type,.access-form button{grid-column:auto}.central-access-row{grid-template-columns:1fr}.central-user-card{grid-template-columns:38px 1fr}.central-superadmin-toggle{grid-column:1/-1}}


/* Bejelentkezés és étteremválasztás */
.central-login-page,.restaurant-select-page{min-height:100vh;margin:0;background:radial-gradient(circle at top right,rgba(181,138,63,.18),transparent 35%),linear-gradient(145deg,#17211b,#2e4034)}
.central-login-shell,.restaurant-select-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.central-login-card,.restaurant-select-card{width:min(100%,560px);padding:27px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 30px 90px rgba(8,14,10,.32)}
.central-login-brand,.restaurant-select-brand{display:flex;align-items:center;gap:13px}.central-login-brand>span,.restaurant-select-brand>span{display:grid;width:49px;height:49px;place-items:center;border-radius:14px;background:#1d2a21;font-size:1.25rem}.central-login-brand small,.restaurant-select-brand small{color:#9a7c45;font-size:.64rem;font-weight:850;letter-spacing:.12em}.central-login-brand h1,.restaurant-select-brand h1{margin:2px 0 0;color:#202721;font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:500}
.central-login-card>p,.restaurant-select-intro{margin:13px 0 18px;color:#777e78;line-height:1.55}.central-login-form{display:flex;flex-direction:column;gap:12px}.central-login-form label{display:flex;flex-direction:column;gap:6px}.central-login-form label span{font-size:.72rem;font-weight:740;color:#5d655f}.central-login-form input{min-height:45px}.central-login-form button{min-height:46px;border:0;border-radius:11px;background:linear-gradient(135deg,#19231d,#35483b);color:#fff;font-weight:780;cursor:pointer}.login-error{margin:0!important;padding:10px;border-radius:9px;background:#fff1f1;color:#a04444;font-size:.72rem}
.restaurant-switch-button{display:inline-flex;min-height:38px;max-width:230px;align-items:center;gap:7px;padding:0 11px;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:.69rem;font-weight:750;cursor:pointer}.restaurant-switch-button #current-restaurant-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#restaurant-selection-list{display:flex;flex-direction:column;gap:10px}.restaurant-choice-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:13px;border:1px solid #ddd7cd;border-radius:14px;background:#faf8f4;text-align:left;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s}.restaurant-choice-card:hover{transform:translateY(-2px);border-color:#9d8554;box-shadow:0 10px 26px rgba(31,38,33,.08)}.restaurant-choice-card.loading{opacity:.65;cursor:wait}.restaurant-choice-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:13px;background:#1d2a21;font-size:1.1rem}.restaurant-choice-info{display:flex;min-width:0;flex-direction:column;gap:4px}.restaurant-choice-info strong{overflow:hidden;color:#2b332d;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}.restaurant-choice-info small{color:#8a908b;font-size:.67rem}.restaurant-choice-arrow{color:#8b7445;font-size:1.15rem}
.restaurant-select-footer{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:15px;border-top:1px solid #e9e3da}.restaurant-select-footer a,.restaurant-select-footer button{min-height:38px;padding:0 12px;border-radius:9px;font:inherit;font-size:.7rem;font-weight:730;cursor:pointer}.restaurant-select-footer a{display:inline-flex;align-items:center;border:1px solid #c7d9cc;background:#edf6ef;color:#39704d;text-decoration:none}.restaurant-select-footer button{border:1px solid #ded7cc;background:#f4f1eb;color:#59605b}
.restaurant-select-empty{display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:center;padding:24px;border:1px dashed #cfc7b9;border-radius:14px;background:#faf8f4;text-align:center}.restaurant-select-empty>span{font-size:1.6rem}.restaurant-select-empty strong{margin-top:8px}.restaurant-select-empty p{max-width:380px;margin:6px 0 0;color:#858b86;font-size:.73rem;line-height:1.5}
@media(max-width:540px){.central-login-shell,.restaurant-select-shell{padding:12px}.central-login-card,.restaurant-select-card{padding:19px;border-radius:18px}.central-login-brand h1,.restaurant-select-brand h1{font-size:1.38rem}.restaurant-select-footer{flex-direction:column}.restaurant-select-footer a,.restaurant-select-footer button{width:100%;justify-content:center}}


/* Felhasználói hierarchia */
.central-admin-creator {
  margin-top: 15px;
}

.central-admin-form {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.central-admin-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.central-admin-form label > span {
  color: #626a64;
  font-size: .68rem;
  font-weight: 740;
}

.central-admin-form input,
.central-admin-form select {
  min-height: 42px;
}

.central-admin-form button {
  grid-column: 1 / -1;
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #19231d,
      #35483b
    );
  color: #fff;
  font: inherit;
  font-size: .74rem;
  font-weight: 770;
  cursor: pointer;
}

.central-user-kind {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eeeae2;
  color: #69706a;
  font-size: .61rem;
  font-weight: 760;
  white-space: nowrap;
}

.central-user-kind.superadmin {
  background: #1d2a21;
  color: #fff;
}

@media (max-width: 600px) {
  .central-admin-form {
    grid-template-columns: 1fr;
  }

  .central-admin-form button {
    grid-column: auto;
  }

  .central-user-kind {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* =========================================================
   Végleges reszponzív javítás: rendelési gombok és menüszerkesztő
   ========================================================= */
.admin-page .request-card .buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 10px !important;
}
.admin-page .request-card .buttons > button {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.admin-page .request-card .buttons .btn-cancel-order {
  display: inline-flex !important;
  grid-column: 1 / -1 !important;
  align-items: center;
  justify-content: center;
}
.admin-page .bilingual-add-item-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 12px !important;
  align-items: start !important;
}
.admin-page .bilingual-add-item-row > *,
.admin-page .bilingual-add-item-row label,
.admin-page .bilingual-add-item-row input,
.admin-page .bilingual-add-item-row textarea,
.admin-page .bilingual-add-item-row select,
.admin-page .bilingual-add-item-row .new-item-allergen-selector,
.admin-page .bilingual-add-item-row .allergen-selector {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.admin-page .bilingual-add-item-row input,
.admin-page .bilingual-add-item-row textarea,
.admin-page .bilingual-add-item-row select {
  width: 100% !important;
}
.admin-page .bilingual-add-item-row .new-item-allergen-selector,
.admin-page .bilingual-add-item-row .item-extra-fields,
.admin-page .bilingual-add-item-row .item-image-url-field,
.admin-page .bilingual-add-item-row button[type="submit"],
.admin-page .bilingual-add-item-row .add-item-button {
  grid-column: 1 / -1 !important;
}
.admin-page .allergen-chip-list,
.admin-page .new-item-allergen-selector .allergen-chip-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  max-width: 100% !important;
}
@media (max-width: 720px) {
  .admin-page .request-card .buttons {
    grid-template-columns: 1fr !important;
  }
  .admin-page .request-card .buttons .btn-cancel-order {
    grid-column: 1 !important;
  }
  .admin-page .bilingual-add-item-row {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
  .admin-page .bilingual-add-item-row > *,
  .admin-page .bilingual-add-item-row .new-item-allergen-selector,
  .admin-page .bilingual-add-item-row .item-extra-fields,
  .admin-page .bilingual-add-item-row .item-image-url-field,
  .admin-page .bilingual-add-item-row button[type="submit"],
  .admin-page .bilingual-add-item-row .add-item-button {
    grid-column: 1 !important;
  }
}
