/* AdminCast look for guest table-order and the floor PWA. */

:root {
  --accent: #2cc4cb;
  --accent-dark: #23b7be;
  --navy: #0b1d36;
  --navy-deep: #06111f;
  --gold: #d4af37;
  --ink: #122033;
  --muted: #667085;
  --line: #e7eaec;
  --wash: #e6eef3;
  --white: #ffffff;
  --danger: #ed5565;
  --card-shadow: 0 10px 28px rgba(11, 29, 54, 0.08);
  --radius-card: 16px;
  --radius-pill: 3px;
  --pad: 16px;
  --nav: 16px;
  --ibox-border: #e7eaec;
}

html { font-size: 14px; }
body {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  background: #dce7ee;
  color: var(--ink);
}

.phone {
  max-width: 480px;
  background: linear-gradient(180deg, #d7e6ec 0%, #e6eef3 160px, #e6eef3 100%);
  overflow: visible;
}

body.has-app-nav .phone {
  max-width: none;
  box-shadow: none;
}

body.nav-open {
  overflow: hidden;
}

.screen,
.screen--flush,
.detail {
  background: transparent;
}

h1, h2, h3 {
  color: #333;
  font-weight: 600;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
}

.brand-byline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-logo,
.splash-logo,
.onboard-hero img,
.profile-logo {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(11, 29, 54, 0.06);
}

.btn-primary,
.btn-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(44, 196, 203, 0.28);
}

.btn-primary:hover,
.btn-info:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost { color: var(--accent); font-weight: 600; }
.btn-ghost-block {
  height: 38px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--ibox-border);
  color: var(--navy);
  font-weight: 600;
}

.splash { background: linear-gradient(180deg, #0b1d36 0%, #12344f 46%, #e6eef3 46%); }
.splash-orb { background: radial-gradient(circle, rgba(44, 196, 203, 0.18), transparent 70%); }
.onboard-hero {
  background: #fff;
  border-bottom: 1px solid var(--ibox-border);
}

.auth { padding: 28px var(--pad) 32px; }
.auth h1,
.login-title {
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  margin: 8px 0 8px;
  color: #333;
}

.auth .lead {
  text-align: center;
  margin-bottom: 20px;
}

.auth form,
.ibox {
  background: #fff;
  border: 1px solid rgba(11, 29, 54, 0.06);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.auth form { padding: 20px 18px 18px; }

.ibox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--ibox-border);
}

.ibox-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.ibox-body { padding: 15px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field select,
.form-control {
  width: 100%;
  border: 1px solid #e5e6e7;
  background: #fff;
  border-radius: 2px;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(44, 196, 203, 0.25);
}

.auth-error {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.home-top h1 {
  font-size: 20px;
  font-weight: 600;
  max-width: none;
  margin-top: 6px;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--navy);
}

.search {
  height: 36px;
  background: #fff;
  border: 1px solid #e5e6e7;
  border-radius: 2px;
}

.filter-btn {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: none;
}

.chips { gap: 8px; }
.chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(11, 29, 54, 0.06);
}

.chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}

.food-grid {
  gap: 12px;
  padding-top: 8px;
}

body.guest .photo-thumb,
body.guest .cart-item .thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: #eef3f6;
}

body.guest .photo-thumb img,
body.guest .cart-item .thumb img {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.guest-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.guest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.guest-item:last-child { border-bottom: 0; }

.guest-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.guest-item-copy {
  flex: 1;
  min-width: 0;
}

.guest-item-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.guest-item .price {
  font-weight: 700;
  white-space: nowrap;
}

.pcard {
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  background: #fff;
}

.pcard-art {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: 150px;
  border-radius: 0;
  box-shadow: none;
  background: #eef3f6;
}

.pcard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcard-link { padding: 0; }
.pcard-link h3,
.pcard-link .unit { padding: 0 12px; }
.pcard-link h3 { padding-top: 12px; }
.pcard-foot { padding: 0 12px 12px; }
.pcard-heart { top: 8px; right: 8px; }

.add {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 18px;
}

.package-card {
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 29, 54, 0.06);
}

.package-card:has(input:checked) {
  background: #e8f8f9;
  border-color: var(--accent);
  box-shadow: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  box-shadow: none;
  border: 1px solid var(--ibox-border);
}

.icon-btn.ghost { background: #fff; }

.detail-hero {
  height: 220px;
  border-radius: 0;
  border-bottom: 1px solid var(--ibox-border);
}

.detail-body { padding: 16px var(--pad) 0; }
.detail-body h1 { font-size: 22px; font-weight: 600; }

.stepper.pill {
  background: #fff;
  border: 1px solid var(--ibox-border);
  border-radius: 3px;
}

.stepper button {
  border-radius: 3px;
  box-shadow: none;
  border: 1px solid var(--ibox-border);
  color: var(--accent);
}

.cart-item {
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--card-shadow);
}

.ibox-body .cart-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding: 12px 0;
}

.ibox-body .cart-item:last-child { border-bottom: 0; }

.cart-item .thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #eef3f6;
  box-shadow: none;
  border: 1px solid var(--ibox-border);
}

.cart-item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-card {
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #0b1d36, #16445a);
  box-shadow: 0 14px 28px rgba(11, 29, 54, 0.18);
  color: #fff;
}

.profile-card h2,
.profile-card .muted,
.profile-card .brand-byline { color: #fff; }
.profile-card .muted,
.profile-card .brand-byline { color: rgba(255,255,255,0.72); }

.row-link {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(11, 29, 54, 0.06);
  border: 0;
  border-bottom: 0;
  margin-bottom: 8px;
  padding: 14px 16px;
}

.accepted { background: #f1f1f1; }
.accepted-check {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  background: #e8f8f9;
  color: var(--accent-dark);
  font-size: 36px;
  box-shadow: none;
  border: 1px solid #c8ecee;
}

.floor-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1d36 0%, #12344f 58%, #17646c 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  margin-bottom: 16px;
  box-shadow: 0 16px 32px rgba(11, 29, 54, 0.22);
  overflow: hidden;
}

.floor-hero::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(44, 196, 203, 0.18);
}

.floor-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: #d4af37;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.floor-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}

.floor-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.floor-hero--compact { padding-right: 72px; }
.floor-hero--compact .avatar-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.floor-tile {
  min-height: 138px;
  border-radius: 18px;
  background: #fff;
  border: 0;
  box-shadow: var(--card-shadow);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floor-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.floor-tile strong {
  font-size: 16px;
  color: var(--navy);
}

.floor-tile span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.floor-tile--rooms .floor-tile-icon { background: #e7f7f8; color: #1a8a90; }
.floor-tile--events .floor-tile-icon { background: #f7f0dc; color: #b8860b; }
.floor-tile--gate .floor-tile-icon { background: #e8eef6; color: #0b1d36; }
.floor-tile--menu .floor-tile-icon { background: #e7f7f8; color: #2cc4cb; }
.floor-tile--ticket .floor-tile-icon { background: #fdecee; color: #c4454a; }
.floor-tile--stations .floor-tile-icon { background: #eef6e8; color: #3a8a4a; }
.floor-tile--shift .floor-tile-icon { background: #f7f0dc; color: #d4af37; }
.floor-tile--orders .floor-tile-icon { background: #eef6e8; color: #3a8a4a; }

.order-ready-banner {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8f8f9;
  border: 1px solid #b7e6ea;
  color: #0b1d36;
  font-weight: 600;
  text-decoration: none;
}
.order-card {
  background: #fff;
  border: 1px solid var(--ibox-border);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
  box-shadow: 0 8px 18px rgba(11, 29, 54, 0.05);
}
.order-card.is-ready {
  border-color: var(--accent);
  background: #f3fcfc;
}

.order-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.order-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.order-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  background: #eef1f5;
  color: #445;
}
.order-status--ready { background: #d9f6f4; color: #0b6e68; }
.order-status--preparing,
.order-status--accepted,
.order-status--submitted { background: #f7f0dc; color: #8a6d12; }
.order-status--completed { background: #eef6e8; color: #3a8a4a; }
.order-status--rejected,
.order-status--cancelled,
.order-status--refunded { background: #fdecee; color: #c4454a; }

body.has-app-nav { overflow-x: hidden; }

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(11, 29, 54, 0.18);
  position: sticky;
  top: 0;
  z-index: 25;
}

.app-menu-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px 6px;
  cursor: pointer;
}

.app-menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.app-topbar-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.app-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.app-topbar-signout {
  margin-left: auto;
}

.app-topbar-signout button {
  border: 0;
  background: #2cc4cb;
  color: #0b1d36;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.app-backdrop {
  display: none;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: min(280px, 84vw);
  height: 100%;
  background: #f7fafc;
  box-shadow: 8px 0 28px rgba(11, 29, 54, 0.18);
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  overflow-y: auto;
}

body.nav-open .app-sidebar { transform: translateX(0); }
body.nav-open .app-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(11, 29, 54, 0.35);
}

.app-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 14px 14px;
  background: #fff;
  border-bottom: 1px solid #e6eef3;
}

.app-sidebar-brand img {
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
}

.app-sidebar-brand strong {
  display: block;
  color: #0b1d36;
  font-size: 14px;
}

.app-sidebar-brand small {
  color: rgba(11, 29, 54, 0.62);
  font-size: 12px;
}

.app-side-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
}

.app-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.app-side-link svg { color: #888; flex-shrink: 0; }
.app-side-link.active,
.app-side-link:hover {
  background: #e8f8f9;
  color: var(--navy);
}
.app-side-link.active svg { color: var(--accent); }

.app-side-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.tabbar { display: none; }

.badge {
  background: var(--accent);
  border-radius: 3px;
}

.flash {
  border-radius: 3px;
  border: 1px solid transparent;
}

.flash-success {
  background: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

.flash-error {
  background: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

.ticket-card {
  border-radius: 3px;
  border: 1px solid var(--ibox-border);
  box-shadow: var(--card-shadow);
}

.reject-row input {
  border: 1px solid #e5e6e7;
  background: #fff;
  border-radius: 2px;
}

.ticket-actions .btn-primary { height: 38px; font-size: 14px; }

.qr-scan-frame {
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.staff-alert-card {
  background: var(--navy);
  border-radius: 3px;
}

.guest-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 0 16px;
}

.guest-brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.guest-table {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 4px 10px;
  border-radius: 3px;
  background: #e8f8f9;
  color: var(--accent-dark);
  border: 1px solid #c8ecee;
  font-size: 12px;
  font-weight: 600;
}

.guest-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid #d9e4ea;
}

.guest-tools a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #4a5b6a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.guest-tools a.is-on {
  color: var(--accent-dark);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.guest-status {
  display: inline-block;
  margin: 12px 0 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f8f9;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.guest-balance {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #0b1d36;
}

.guest-followups {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guest-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eef3f6;
}

.guest-order-row:last-child { border-bottom: 0; }

.guest-tx-debit { color: #b42318; }
.guest-tx-credit { color: #067647; }

body.guest .accepted .btn-ghost,
body.guest .guest-followups .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 1px solid #c8ecee;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

body.guest .screen { padding-bottom: 96px; }
body.guest .detail { padding-bottom: 24px; }
body.guest .checkout-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(448px, calc(100% - 32px));
  margin: 0;
  z-index: 15;
}

.page-head {
  background: linear-gradient(135deg, #0b1d36 0%, #16445a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 24px rgba(11, 29, 54, 0.16);
}

.page-head h1 { color: #fff; font-size: 22px; }

.page-heading {
  margin: 4px 0 16px;
}

.page-heading h1 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.screen {
  padding-bottom: 24px;
}

.stock-req {
  background: #fff;
  border: 1px solid var(--ibox-border);
  border-radius: 12px;
  padding: 14px 14px 16px;
  margin: 0 0 16px;
  box-shadow: 0 8px 18px rgba(11, 29, 54, 0.05);
}
.stock-req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.stock-req-head .section-title { margin: 0; }
.stock-req-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}
.stock-req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ibox-border);
  border-radius: 10px;
  background: #f8fbfd;
}
.stock-req-item.is-selected {
  background: #e8f8f9;
  border-color: var(--accent);
}
.stock-req-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.stock-req-pick input { margin: 0; }
.stock-req-pick span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stock-req-pick strong {
  font-size: 14px;
  color: var(--ink);
}
.stock-req-pick small {
  color: var(--muted);
  font-size: 12px;
}
.stock-req-qty {
  width: 4.5rem;
  height: 36px;
  border: 1px solid var(--ibox-border);
  border-radius: 8px;
  text-align: right;
  padding: 0 8px;
  background: #fff;
}
.stock-req .btn-primary { width: 100%; }

@media (min-width: 480px) {
  .phone {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  }
}
