:root {
  --factu-blue: #2f67e8;
  --factu-blue-soft: #eaf2ff;
  --factu-blue-dark: #1d4ed8;
  --factu-bg: #f5f6fa;
  --factu-card: #ffffff;
  --factu-text: #111827;
  --factu-muted: #667085;
  --factu-border: #e8edf4;
  --factu-green: #16a34a;
  --factu-red: #c8191f;
  --factu-orange: #f59e0b;
  --factu-purple: #7c3aed;
  --factu-shadow: 0 16px 38px rgba(15, 23, 42, .07);
  --factu-radius: 22px;
}

html, body { background: var(--factu-bg); color: var(--factu-text); }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.content-wrapper { background: var(--factu-bg); }
.content-header { display: none; }
.content { padding-top: 1.2rem; padding-bottom: 5rem; }
.container-fluid { max-width: 1480px; }

.main-header.navbar { border: 0; box-shadow: 0 1px 18px rgba(15,23,42,.05); }
.main-sidebar { box-shadow: 10px 0 32px rgba(15,23,42,.08) !important; }
.sidebar-dark-primary { background: #111827; }
.brand-link { border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.sidebar .nav-link { border-radius: 14px; margin: .15rem .45rem; }
.sidebar .nav-link.active { background: var(--factu-blue) !important; box-shadow: 0 12px 26px rgba(47,103,232,.24); }

.card, .small-box, .info-box, .app-card {
  border: 1px solid var(--factu-border);
  border-radius: var(--factu-radius) !important;
  box-shadow: var(--factu-shadow);
  background: var(--factu-card);
}
.card { border-top: 0; }
.card-header { border-bottom: 1px solid #eef2f7; background: transparent; border-radius: var(--factu-radius) var(--factu-radius) 0 0 !important; }
.card-footer { border-top: 1px solid #eef2f7; background: transparent; border-radius: 0 0 var(--factu-radius) var(--factu-radius) !important; }

.btn { border-radius: 14px; font-weight: 800; padding: .72rem 1rem; border: 0; }
.btn-sm { padding: .46rem .75rem; border-radius: 12px; }
.btn-xs { border-radius: 10px; padding: .25rem .5rem; }
.btn-primary { background: var(--factu-blue); box-shadow: 0 10px 22px rgba(47,103,232,.18); }
.btn-primary:hover { background: var(--factu-blue-dark); }
.btn-success { background: #22c55e; box-shadow: 0 10px 22px rgba(34,197,94,.18); }
.btn-danger { background: #ef4444; box-shadow: 0 10px 22px rgba(239,68,68,.15); }
.btn-light-action { background: #f4f7fb; color: #111827; }
.btn-soft-danger { background: #fee2e2; color: var(--factu-red); }
.btn-soft-primary { background: var(--factu-blue-soft); color: var(--factu-blue); }

.form-control, .custom-select, select.form-control {
  min-height: 52px;
  border-radius: 16px;
  border-color: #dfe5ef;
  box-shadow: none !important;
}
.form-control:focus, .custom-select:focus { border-color: var(--factu-blue); }
textarea.form-control { min-height: 112px; }
label { color: #334155; font-weight: 800; }
.table td, .table th { vertical-align: middle; }
.table thead th { border-top: 0; color: #64748b; font-size: .86rem; text-transform: uppercase; letter-spacing: .035em; }
.badge { border-radius: 999px; padding: .48rem .7rem; }

.app-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.2rem;
}
.app-title-box { display: flex; align-items: center; gap: 1rem; }
.app-avatar {
  width: 54px; height: 54px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center;
  background: #edf4ff; color: var(--factu-blue); font-size: 1.4rem; flex: 0 0 auto;
}
.app-page-title { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1; font-weight: 900; margin: 0; letter-spacing: -.04em; }
.app-page-subtitle { color: var(--factu-muted); font-size: 1rem; font-weight: 700; margin-top: .35rem; }
.app-shell-card { padding: 1.35rem; }
.app-section-title { font-weight: 900; letter-spacing: -.03em; margin: 0; }
.app-muted { color: var(--factu-muted); font-weight: 600; }

.status-pill, .app-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1rem; border-radius: 999px; font-weight: 900;
}
.status-pill .dot { width: 34px; height: 34px; border-radius: 999px; background: currentColor; }
.status-open, .pill-success { color: #15803d; background: #e8f7ee; }
.status-closed, .pill-danger { color: #b91c1c; background: #fee2e2; }
.pill-blue { color: var(--factu-blue); background: var(--factu-blue-soft); }
.pill-muted { color: #334155; background: #e8eef6; }
.pill-warning { color: #b45309; background: #fff7ed; }

.app-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.app-info-tile {
  border: 1px solid var(--factu-border); border-radius: 20px; padding: 1rem; display: flex; align-items: center; gap: .9rem; min-height: 86px;
}
.app-info-icon {
  width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--factu-blue-soft); color: var(--factu-blue); font-size: 1.35rem; flex: 0 0 auto;
}
.app-info-label { color: var(--factu-muted); font-weight: 700; margin-bottom: .1rem; }
.app-info-value { font-size: 1.12rem; font-weight: 900; color: var(--factu-text); }

.app-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem; }
.app-stat-tile { text-align: center; border: 1px solid var(--factu-border); border-radius: 20px; padding: 1rem; background: #fff; }
.app-stat-label { color: var(--factu-muted); font-weight: 700; }
.app-stat-value { display: block; margin-top: .25rem; font-size: 1.55rem; font-weight: 900; }

.app-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.app-action-card {
  border: 1px solid var(--factu-border); background: #fff; border-radius: 22px; padding: 1.25rem; min-height: 125px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; font-weight: 900; color: #111827;
  box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
.app-action-card:hover { transform: translateY(-1px); text-decoration: none; color: #111827; }
.app-action-icon { width: 54px; height: 54px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.bg-soft-red { background: #ffe8ed; color: #be123c; }
.bg-soft-orange { background: #fff1e6; color: #ea580c; }
.bg-soft-purple { background: #f3e8ff; color: var(--factu-purple); }
.bg-soft-blue { background: var(--factu-blue-soft); color: var(--factu-blue); }
.bg-soft-green { background: #e8f7ee; color: #16a34a; }

.app-search { position: relative; margin-bottom: 1.1rem; }
.app-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.35rem; }
.app-search .form-control { padding-left: 55px; font-size: 1.05rem; background: #fff; }

.app-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-bottom: 1rem; }
.app-tab {
  min-height: 64px; border-radius: 17px; background: #dfe7f1; color: #334155; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.app-tab.active { background: var(--factu-blue); color: #fff; }

.app-list-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem; border-radius: 22px; border: 1px solid var(--factu-border); background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.04);
  margin-bottom: 1rem;
}
.app-list-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.app-list-icon { width: 62px; height: 62px; border-radius: 18px; background: #f8fafc; border: 1px solid #edf2f7; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; flex: 0 0 auto; }
.app-list-title { font-weight: 900; font-size: 1.16rem; margin: 0; }
.app-list-meta { color: var(--factu-muted); font-weight: 700; margin-top: .15rem; }
.app-list-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }

.app-block-title {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 .7rem;
}
.app-block-title h2 { font-size: 1.35rem; font-weight: 900; margin: 0; letter-spacing: -.03em; }

.product-list-scroll { max-height: 580px; overflow-y: auto; }
.copy-input { min-width: 280px; }
.room-card { transition: transform .15s ease, box-shadow .15s ease; }
.room-card:hover { transform: translateY(-2px); box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, .08); }
.stat-muted { color: #64748b; font-size: .9rem; }

.auth-bg { background: radial-gradient(circle at top left, #eaf2ff, transparent 38%), linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.auth-box-wide { width: min(92vw, 480px); }
.login-card-body, .register-card-body { border-radius: 24px; }
.auth-card-app { border-radius: 26px !important; border: 1px solid var(--factu-border); box-shadow: var(--factu-shadow); overflow: hidden; }

.factu-bottom-nav {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1030;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid var(--factu-border); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15,23,42,.12); padding: .55rem; display: none; gap: .35rem;
}
.factu-bottom-nav a { min-width: 74px; min-height: 50px; border-radius: 17px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .15rem; color: #64748b; font-weight: 900; font-size: .76rem; }
.factu-bottom-nav a.active { background: var(--factu-blue-soft); color: var(--factu-blue); }

@media (max-width: 991px) {
  .app-info-grid, .app-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .content { padding-top: .8rem; }
  .app-page-header { align-items: flex-start; }
  .app-page-title { font-size: 1.65rem; }
  .app-avatar { width: 48px; height: 48px; }
  .app-shell-card { padding: 1rem; }
  .app-info-grid, .app-stat-grid, .app-action-grid { grid-template-columns: 1fr; }
  .app-tabs { gap: .55rem; }
  .app-tab { min-height: 56px; }
  .app-list-card { align-items: flex-start; flex-direction: column; }
  .app-list-actions { width: 100%; justify-content: stretch; }
  .app-list-actions .btn, .app-list-actions form { flex: 1; }
  .app-list-actions .btn { width: 100%; }
  .factu-bottom-nav { display: flex; }
  .table-responsive .btn { margin-bottom: .25rem; }
}

/* ==========================================================
   Pantalla de mesero - estilo FactuPOS mobile/tablet
   ========================================================== */
.waiter-pos-page {
  --waiter-bg: #f6f7fb;
  --waiter-card: #ffffff;
  --waiter-text: #111827;
  --waiter-muted: #667085;
  --waiter-border: #e8edf4;
  --waiter-blue: #2f67e8;
  --waiter-blue-soft: #eaf2ff;
  --waiter-green: #16a34a;
  --waiter-green-soft: #eaf8ef;
  --waiter-red: #dc2626;
  --waiter-orange: #f59e0b;
  --waiter-shadow: 0 14px 34px rgba(15, 23, 42, .075);
  padding-bottom: 88px;
}

.waiter-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.waiter-hero-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.waiter-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--waiter-blue);
  font-size: 24px;
  flex-shrink: 0;
}

.waiter-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--waiter-text);
}

.waiter-hero p {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--waiter-muted);
}

.waiter-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.waiter-close-btn,
.waiter-cart-close {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 20px;
}

.waiter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  align-items: start;
}

.waiter-main {
  min-width: 0;
}

.waiter-side-cart {
  position: sticky;
  top: 86px;
}

.waiter-alert-card,
.waiter-toolbar-card,
.waiter-cart-card,
.waiter-recent-card,
.waiter-product-card,
.waiter-empty-state {
  background: var(--waiter-card);
  border: 1px solid var(--waiter-border);
  border-radius: 24px;
  box-shadow: var(--waiter-shadow);
}

.waiter-alert-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff7ed;
  border-color: #fed7aa;
}

.waiter-alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffedd5;
  color: #c2410c;
  flex-shrink: 0;
}

.waiter-alert-card strong { color: #9a3412; font-size: 16px; }
.waiter-alert-card p { margin: 3px 0 0; color: #9a3412; }

.waiter-toolbar-card {
  padding: 18px;
  margin-bottom: 16px;
}

.waiter-toolbar-title,
.waiter-cart-header,
.waiter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.waiter-toolbar-title {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.waiter-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}

.waiter-section-icon.blue { background: var(--waiter-blue-soft); color: var(--waiter-blue); }
.waiter-section-icon.green { background: var(--waiter-green-soft); color: var(--waiter-green); }

.waiter-toolbar-title h2,
.waiter-cart-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--waiter-text);
}

.waiter-toolbar-title p,
.waiter-cart-header p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--waiter-muted);
  font-weight: 600;
}

.waiter-search-box {
  min-height: 56px;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  margin-bottom: 16px;
}

.waiter-search-box i {
  color: #94a3b8;
  font-size: 18px;
}

.waiter-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.waiter-search-box button {
  width: 32px;
  height: 32px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.waiter-filter-label {
  margin: 0 0 8px 2px;
  font-size: 13px;
  font-weight: 900;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.waiter-business-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.waiter-business-chips::-webkit-scrollbar { display: none; }

.waiter-chip {
  min-width: 112px;
  min-height: 74px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 5px 18px rgba(15,23,42,.05);
  color: #334155;
}

.waiter-chip.active {
  border-color: #74a9ff;
  background: var(--waiter-blue-soft);
  color: var(--waiter-blue);
}

.waiter-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-weight: 900;
}

.waiter-chip.active .waiter-chip-icon { background: #dbeafe; }
.waiter-chip span:not(.waiter-chip-icon) { max-width: 92px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.waiter-chip small { font-weight: 900; color: #94a3b8; }

.waiter-section-head {
  margin: 2px 2px 12px;
}

.waiter-section-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0f172a;
}

.waiter-section-head span {
  display: inline-block;
  margin-top: 2px;
  color: var(--waiter-muted);
  font-weight: 700;
}

.waiter-business-section { margin-bottom: 22px; }

.waiter-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.waiter-product-card {
  padding: 14px;
  border-radius: 20px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.waiter-product-card:hover {
  transform: translateY(-1px);
  border-color: #dbeafe;
  box-shadow: 0 16px 36px rgba(37,99,235,.09);
}

.waiter-product-card.is-disabled {
  opacity: .62;
}

.waiter-product-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.waiter-product-emoji {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  display: grid;
  place-items: center;
  font-size: 30px;
  flex-shrink: 0;
}

.waiter-product-info { min-width: 0; }
.waiter-product-info h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.waiter-product-info p {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waiter-product-info strong {
  display: block;
  font-size: 17px;
  color: #1f2937;
}

.waiter-product-badges {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.waiter-product-badges .stock-badge,
.cart-badge {
  margin: 0;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  background: #eaf8ef;
  color: #15803d;
}

.stock-badge.stock-free { background: #eff6ff; color: #1d4ed8; }

.waiter-add-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--waiter-green-soft);
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
}

.waiter-add-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.waiter-qty-control {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--waiter-green-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
}

.waiter-qty-control button,
.waiter-cart-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  display: grid;
  place-items: center;
}

.waiter-qty-control span {
  color: #15803d;
  font-size: 20px;
  font-weight: 900;
}

.waiter-cart-card {
  padding: 16px;
}

.waiter-cart-header {
  justify-content: flex-start;
  margin-bottom: 14px;
  position: relative;
}

.waiter-cart-close {
  position: absolute;
  right: 0;
  top: 0;
}

.waiter-order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.waiter-cart-items {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 12px;
}

.waiter-cart-empty {
  min-height: 150px;
  border: 1.5px dashed #dbe3ee;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  text-align: center;
}

.waiter-cart-empty i { font-size: 30px; color: #cbd5e1; }
.waiter-cart-empty strong { color: #475569; font-size: 17px; }
.waiter-cart-empty span { font-size: 13px; }

.waiter-cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.waiter-cart-item-main {
  min-width: 0;
}

.waiter-cart-item-main strong {
  display: block;
  color: #0f172a;
  line-height: 1.15;
}

.waiter-cart-item-main span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.waiter-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.waiter-cart-item-actions > strong {
  color: #0f172a;
}

.waiter-cart-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px;
}

.waiter-cart-qty button {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.waiter-cart-qty span {
  min-width: 26px;
  text-align: center;
  color: #0f172a;
  font-weight: 900;
}

.waiter-cart-remove {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 10px;
  width: 32px;
  height: 32px;
}

.waiter-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2f7;
  padding: 13px 0;
  margin-top: 4px;
}

.waiter-cart-total span {
  color: #64748b;
  font-weight: 900;
}

.waiter-cart-total strong {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}

.waiter-submit-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(34,197,94,.22);
}

.waiter-submit-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
}

.waiter-cart-warning {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
  text-align: center;
}

.waiter-floating-cart {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1051;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 22px;
  background: var(--waiter-blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37,99,235,.35);
  font-size: 22px;
}

.waiter-floating-cart span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.waiter-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 1050;
}

.waiter-cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.waiter-cart-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform .25s ease;
  z-index: 1052;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 40px rgba(15,23,42,.18);
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
}

.waiter-cart-sheet.open {
  transform: translateY(0);
}

.waiter-sheet-handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0 auto 10px;
}

body.waiter-sheet-open { overflow: hidden; }

.waiter-recent-card {
  margin-top: 20px;
  padding: 16px;
}

.waiter-orders-list {
  display: flex;
  flex-direction: column;
}

.waiter-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.waiter-order-row:last-child { border-bottom: 0; }
.waiter-order-row strong { color: #0f172a; }
.waiter-order-row p { margin: 3px 0 0; color: #64748b; font-weight: 600; }

.waiter-empty-state {
  padding: 32px 18px;
  text-align: center;
}

.waiter-empty-state div {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #94a3b8;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.waiter-empty-state h3 { margin: 0; color: #0f172a; font-weight: 900; }
.waiter-empty-state p { margin: 5px 0 0; color: #64748b; font-weight: 600; }
.waiter-empty-small { padding: 16px; text-align: center; color: #94a3b8; font-weight: 700; }

@media (max-width: 1199px) {
  .waiter-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .waiter-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .waiter-pos-page {
    padding-bottom: 96px;
  }

  .waiter-layout {
    display: block;
  }

  .waiter-side-cart {
    display: none;
  }

  .waiter-floating-cart {
    display: grid;
    place-items: center;
  }

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

@media (max-width: 600px) {
  .content { padding: .8rem .35rem 5rem; }
  .container-fluid { padding-left: 10px; padding-right: 10px; }

  .waiter-hero {
    align-items: flex-start;
  }

  .waiter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 21px;
  }

  .waiter-hero h1 {
    font-size: 28px;
  }

  .waiter-hero p {
    font-size: 15px;
  }

  .waiter-hero-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

  .waiter-hero-actions .status-pill {
    font-size: 13px;
    padding: .6rem .75rem;
  }

  .waiter-toolbar-card {
    padding: 14px;
    border-radius: 22px;
  }

  .waiter-toolbar-title h2,
  .waiter-cart-header h2 {
    font-size: 20px;
  }

  .waiter-search-box {
    min-height: 54px;
    border-radius: 18px;
  }

  .waiter-chip {
    min-width: 96px;
    min-height: 68px;
    border-radius: 17px;
  }

  .waiter-section-head h3 {
    font-size: 22px;
  }

  .waiter-products-grid {
    gap: 12px;
  }

  .waiter-product-card {
    padding: 12px;
  }

  .waiter-product-top {
    gap: 9px;
  }

  .waiter-product-emoji {
    width: 46px;
    height: 46px;
    font-size: 27px;
  }

  .waiter-product-info h4 {
    font-size: 15px;
  }

  .waiter-product-info strong {
    font-size: 16px;
  }

  .waiter-add-btn,
  .waiter-qty-control {
    min-height: 42px;
  }

  .waiter-cart-card.mobile-cart {
    border: 0;
    box-shadow: none;
    padding: 4px 6px 0;
  }

  .waiter-order-meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .waiter-cart-items {
    max-height: 32vh;
  }
}

@media (max-width: 380px) {
  .waiter-products-grid {
    grid-template-columns: 1fr;
  }

  .waiter-floating-cart {
    right: 14px;
    bottom: 16px;
  }
}


/* ==========================================================
   Mesero pantalla completa
   Quita la estructura visual de AdminLTE para que tomar pedidos
   se sienta como pantalla principal de la app.
   ========================================================== */
.waiter-fullscreen-body {
  min-height: 100dvh;
  background: #f6f7fb;
  overflow-x: hidden;
}

.waiter-fullscreen-body .main-header,
.waiter-fullscreen-body .main-sidebar,
.waiter-fullscreen-body .control-sidebar,
.waiter-fullscreen-body .main-footer,
.waiter-fullscreen-body .content-header,
.waiter-fullscreen-body .factu-bottom-nav {
  display: none !important;
}

.waiter-fullscreen-wrapper {
  width: 100%;
  min-height: 100dvh;
  background: #f6f7fb;
  padding: 16px 16px 28px;
}

.waiter-flash-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

.waiter-fullscreen-wrapper .waiter-pos-page {
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.waiter-fullscreen-wrapper .waiter-side-cart {
  top: 16px;
}

.waiter-fullscreen-wrapper .waiter-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 251, .92);
  backdrop-filter: blur(12px);
  padding: 8px 0 14px;
  margin-bottom: 10px;
}

.waiter-fullscreen-body .alert {
  border-radius: 18px;
  border: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

@media (max-width: 991.98px) {
  .waiter-fullscreen-wrapper {
    padding: 10px 10px 88px;
  }

  .waiter-fullscreen-wrapper .waiter-pos-page {
    padding-bottom: 0;
  }

  .waiter-fullscreen-wrapper .waiter-hero {
    top: 0;
    margin-left: -2px;
    margin-right: -2px;
  }

  .waiter-cart-sheet {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }

  .waiter-cart-sheet .waiter-cart-card.mobile-cart {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .waiter-cart-sheet .waiter-cart-items {
    flex: 1;
    max-height: none;
    min-height: 0;
  }

  .waiter-floating-cart {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .waiter-fullscreen-wrapper {
    padding: 8px 8px 86px;
  }

  .waiter-fullscreen-wrapper .waiter-hero {
    padding: 6px 0 10px;
  }

  .waiter-fullscreen-wrapper .waiter-toolbar-card,
  .waiter-fullscreen-wrapper .waiter-recent-card,
  .waiter-fullscreen-wrapper .waiter-alert-card {
    border-radius: 22px;
  }
}

/* ==========================================================
   Ajuste UX pedido mesero: panel fijo + footer fijo + observación plegable
   ========================================================== */
.waiter-side-cart {
  position: sticky;
  top: 16px;
  height: calc(100dvh - 32px);
  align-self: start;
}

.waiter-side-cart .waiter-cart-card,
.waiter-cart-sheet .waiter-cart-card {
  height: 100%;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.waiter-cart-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.waiter-cart-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
  padding-bottom: 12px;
}

.waiter-cart-fixed-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .06);
}

.waiter-cart-fixed-footer .waiter-cart-total {
  border-top: 0;
  padding: 0 0 12px;
  margin-top: 0;
}

.waiter-order-meta.compact-meta {
  margin-bottom: 10px;
}

.waiter-order-meta.compact-meta .form-group {
  margin-bottom: 10px;
}

.waiter-observation-box {
  margin-bottom: 12px;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.waiter-observation-box summary {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.waiter-observation-box summary::-webkit-details-marker {
  display: none;
}

.waiter-observation-box summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.waiter-observation-box summary i {
  color: #2563eb;
}

.waiter-observation-box summary small {
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.waiter-observation-box summary::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #64748b;
  font-size: 12px;
  margin-left: 2px;
  transition: transform .18s ease;
}

.waiter-observation-box[open] summary::after {
  transform: rotate(180deg);
}

.waiter-observation-content {
  padding: 0 12px 12px;
}

.waiter-observation-content textarea.form-control {
  min-height: 86px;
  border-radius: 14px;
  resize: vertical;
  background: #ffffff;
}

.waiter-cart-card .waiter-cart-items {
  max-height: none;
  margin-bottom: 0;
}

.waiter-cart-card .waiter-cart-header {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .waiter-fullscreen-wrapper .waiter-side-cart {
    top: 16px;
    height: calc(100dvh - 32px);
  }
}

@media (max-width: 991.98px) {
  .waiter-cart-sheet {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .waiter-cart-sheet .waiter-cart-card.mobile-cart {
    height: 100%;
    max-height: none;
    padding: 4px 6px 0;
  }

  .waiter-cart-sheet .waiter-cart-form {
    height: 100%;
  }

  .waiter-cart-sheet .waiter-cart-scroll-area {
    padding-bottom: 12px;
  }

  .waiter-cart-sheet .waiter-cart-fixed-footer {
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .waiter-order-meta.compact-meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .waiter-observation-box summary {
    min-height: 46px;
  }

  .waiter-cart-fixed-footer .waiter-cart-total strong {
    font-size: 24px;
  }

  .waiter-submit-btn {
    min-height: 56px;
  }
}

/* ==========================================================
   Ajuste solicitado: producto agregado sin botón Agregar,
   control +/- visible y pedido móvil sin botón superior
   ========================================================== */
.waiter-product-card.in-cart {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 14px 34px rgba(22, 163, 74, .10);
}

.waiter-add-btn[hidden],
.waiter-qty-control[hidden],
.cart-badge[hidden] {
  display: none !important;
}

.waiter-product-card.in-cart .waiter-qty-control {
  display: flex;
  margin-top: 2px;
}

.waiter-product-card.in-cart .waiter-product-badges {
  margin-bottom: 12px;
}

.waiter-product-card .waiter-add-btn,
.waiter-product-card .waiter-qty-control {
  position: relative;
  z-index: 2;
}

.waiter-product-card {
  overflow: visible;
}

.waiter-products-section,
.waiter-products-grid {
  overflow: visible;
}

.waiter-cart-card.mobile-cart .waiter-cart-header {
  padding-right: 0;
}

.waiter-cart-card.mobile-cart .waiter-cart-header .waiter-section-icon {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .waiter-cart-sheet .waiter-cart-card.mobile-cart {
    padding-top: 6px;
  }

  .waiter-cart-sheet .waiter-cart-header {
    min-height: auto;
    margin-bottom: 14px;
  }

  .waiter-cart-sheet .waiter-cart-header h2 {
    font-size: 24px;
    line-height: 1.1;
  }

  .waiter-cart-sheet .waiter-cart-header p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .waiter-product-card {
    min-height: 0;
    padding-bottom: 18px;
  }

  .waiter-add-btn,
  .waiter-qty-control {
    min-height: 52px;
  }

  .waiter-qty-control button {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .waiter-qty-control span {
    font-size: 22px;
  }
}

/* =====================================================
   Menú hamburguesa del mesero
   ===================================================== */
.waiter-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.waiter-menu-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--waiter-blue, #2f67e8);
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.waiter-menu-btn:active {
  transform: scale(.98);
}

.waiter-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  padding: 8px;
  z-index: 1085;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: .18s ease;
}

.waiter-menu-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.waiter-menu-dropdown a,
.waiter-menu-dropdown button {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.waiter-menu-dropdown a:hover,
.waiter-menu-dropdown button:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.waiter-menu-dropdown i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.waiter-menu-dropdown form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid #eef2f7;
}

.waiter-menu-dropdown form button {
  color: #dc2626;
}

.waiter-menu-dropdown form button i {
  background: #fff1f2;
  color: #dc2626;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 600px) {
  .waiter-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 21px;
  }

  .waiter-menu-dropdown {
    width: min(270px, calc(100vw - 28px));
    border-radius: 20px;
  }
}

/* =====================================================
   Ajustes finales pantalla mesero: menú, header y pedido
   ===================================================== */
.waiter-hero-actions .waiter-close-btn {
  display: none !important;
}

.waiter-hero-left {
  align-items: flex-start !important;
}

.waiter-menu-wrap {
  margin-top: 4px;
  z-index: 1100;
}

.waiter-menu-btn {
  background: #edf4ff !important;
  color: #2563eb !important;
}

.waiter-menu-dropdown i {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}

.waiter-menu-dropdown a,
.waiter-menu-dropdown button {
  color: #0f172a !important;
}

.waiter-menu-dropdown form button {
  color: #dc2626 !important;
}

.waiter-cart-header.compact-cart-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 18px 18px 10px !important;
}

.waiter-cart-title-wrap {
  min-width: 0;
}

.waiter-cart-header.compact-cart-header h2 {
  margin: 0 !important;
}

.waiter-cart-header.compact-cart-header p {
  margin: 4px 0 0 !important;
}

.waiter-cart-header.compact-cart-header .waiter-section-icon {
  display: none !important;
}

.waiter-cart-close {
  width: 52px !important;
  height: 52px !important;
  border: none !important;
  border-radius: 18px !important;
  background: #f3f6fb !important;
  color: #0f172a !important;
  display: grid !important;
  place-items: center !important;
  font-size: 24px !important;
  flex-shrink: 0 !important;
}

.waiter-floating-cart {
  display: grid !important;
  position: fixed !important;
  right: 18px !important;
  bottom: 24px !important;
  z-index: 1090 !important;
  width: 72px !important;
  height: 72px !important;
  border: none !important;
  border-radius: 26px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .36) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.waiter-floating-cart i {
  color: #ffffff !important;
  font-size: 26px !important;
}

.waiter-floating-cart span {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  color: #ffffff !important;
  border: 3px solid #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
}

@media (max-width: 600px) {
  .waiter-hero {
    align-items: flex-start !important;
  }

  .waiter-menu-wrap {
    margin-top: -2px !important;
  }

  .waiter-menu-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 18px !important;
    font-size: 22px !important;
  }

  .waiter-menu-dropdown {
    top: calc(100% + 8px) !important;
    left: -2px !important;
  }

  .waiter-cart-sheet .waiter-cart-header.compact-cart-header {
    padding-top: 14px !important;
  }
}


/* =========================================================
   Ajustes UX pedidos: ocultar carrito al abrir pedido y paginación
   ========================================================= */
body.cart-sheet-active .waiter-floating-cart,
body.waiter-sheet-open .waiter-floating-cart {
  display: none !important;
}

.waiter-orders-pagination,
.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid #eef2f7;
}

.waiter-orders-pagination span,
.dashboard-pagination span {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}

.waiter-page-btn,
.dashboard-page-btn {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.waiter-page-btn:hover,
.dashboard-page-btn:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.waiter-page-btn.disabled,
.dashboard-page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .waiter-orders-pagination,
  .dashboard-pagination {
    gap: 8px;
  }

  .waiter-page-btn,
  .dashboard-page-btn {
    min-width: 42px;
    padding: 0 12px;
  }

  .waiter-orders-pagination span,
  .dashboard-pagination span {
    font-size: 12px;
  }
}


/* =========================================================
   Página independiente de pedidos recientes del mesero
   ========================================================= */
.waiter-recent-page {
  padding-bottom: 28px;
}

.waiter-recent-page-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.recent-title-block {
  margin-bottom: 12px;
}

.waiter-orders-list-page {
  border-top: 1px solid #eef2f7;
}

.waiter-order-row-page {
  min-height: 82px;
}

.waiter-order-row-page small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.waiter-back-btn {
  text-decoration: none !important;
}

@media (max-width: 600px) {
  .waiter-recent-page-card {
    border-radius: 24px;
    padding: 16px;
  }

  .waiter-recent-hero .status-pill {
    display: none;
  }
}

/* ================================
   PWA install banner
================================ */
.pwa-install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 3000;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr auto 36px;
  gap: 10px;
  align-items: center;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.pwa-install-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-copy strong {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
}

.pwa-install-copy span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
}

.pwa-install-btn {
  min-height: 38px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
  padding: 0 14px;
}

.pwa-install-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
}

@media (max-width: 520px) {
  .pwa-install-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 42px 1fr 34px;
  }

  .pwa-install-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
  }

  .pwa-install-close {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Edición de pedidos recientes del mesero */
.waiter-order-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.waiter-edit-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.waiter-edit-order-btn:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.waiter-edit-locked {
  color: #94a3b8;
  font-weight: 700;
}

/* Loading/bloqueo al enviar pedido del mesero */
.waiter-submit-btn.is-loading {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

.waiter-cart-form.is-submitting {
  pointer-events: none;
}

.waiter-cart-form.is-submitting .waiter-submit-btn {
  pointer-events: none;
}
