:root {
  color-scheme: light;
  --ink: #162631;
  --ink-soft: #415568;
  --muted: #62718c;
  --line: rgba(14, 31, 40, 0.08);
  --paper: #f6f6f3;
  --panel: #ffffff;
  --panel-soft: #f4fbf9;
  --blue: #2f8bc1;
  --blue-dark: #276f9d;
  --teal: #0f766e;
  --teal-dark: #0b534e;
  --teal-soft: rgba(15, 118, 110, 0.12);
  --navy: #102d47;
  --navy-soft: #173a58;
  --tomato: #d94f2b;
  --mustard: #f5c542;
  --mint: #dff6ef;
  --shadow: 0 22px 56px rgba(16, 35, 48, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 139, 193, 0.15), transparent 18%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 22%),
    linear-gradient(180deg, #eef6f6 0%, #f9f6f2 100%);
  color: var(--ink);
  overflow-x: hidden;
}

.is-hidden {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(47, 139, 193, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.16), transparent 28%),
    linear-gradient(135deg, #edf6f6 0%, #fefcfb 100%);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(15, 29, 41, 0.12);
  padding: 24px 22px;
  backdrop-filter: blur(10px);
}

.login-card img {
  width: 62px;
  height: 62px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(47, 139, 193, 0.12));
}

.login-card h1 {
  font-size: 24px;
  letter-spacing: -0.06em;
}

.login-error {
  min-height: 20px;
  color: #d94f2b;
  font-weight: 700;
}

.app-shell {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(244, 247, 247, 0.94), rgba(250, 248, 243, 1));
}

.app-shell.sidebar-open {
  grid-template-columns: 210px 1fr;
}

.posify-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) auto;
  align-items: center;
  min-height: 72px;
  background: linear-gradient(90deg, #0f2d49 0%, #0b6d68 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(12, 28, 41, 0.16);
  color: #fff;
  font-size: 13px;
}

.posify-left,
.posify-center,
.posify-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.posify-left {
  padding-left: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.posify-left strong {
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 800;
}

.header-icon,
.help-desk,
.user-chip {
  background: transparent;
  color: #fff;
}

.online-pill {
  background: #fff;
  color: #4f9948;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.help-desk {
  border: 1px solid rgba(255, 255, 255, 0.65);
  min-height: 24px;
  padding: 0 13px;
  border-radius: 2px;
  font-weight: 700;
}

.posify-right {
  padding: 0 14px;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.user-chip {
  min-height: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 0 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.header-contact {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
}

.header-stat {
  white-space: nowrap;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  background: linear-gradient(180deg, #102d47 0%, #123856 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 10px 0 28px rgba(14, 35, 52, 0.08);
}

.brand {
  display: none;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .brand span {
  color: #bcd6d2;
}

.nav-tabs {
  display: grid;
  gap: 6px;
  padding: 0 4px;
}

.nav-tab {
  width: 44px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  font-size: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-tab:hover {
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.sidebar-open .nav-tab,
.nav-tab:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(4, 18, 30, 0.12);
}

.nav-label {
  display: none;
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-open .nav-tab {
  width: 100%;
  justify-content: flex-start;
  padding-left: 10px;
}

.sidebar-open .nav-label {
  display: inline;
}

.nav-tab.active,
.nav-tab:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px rgba(4, 18, 30, 0.14);
}

.shift-panel {
  display: none;
  margin-top: auto;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 8px;
}

label {
  color: inherit;
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.workspace {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
}

.app-shell.compact-topbar .topbar {
  display: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(22px, 3vw, 30px);
}

h2 {
  font-size: 22px;
}

.status-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-strip span {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 12px;
  padding: 7px 10px;
  box-shadow: 0 8px 22px rgba(17, 35, 52, 0.05);
  color: var(--ink-soft);
}

.view {
  display: none;
  padding: 12px 16px 24px;
}

.view.active {
  display: block;
}

.order-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.order-channels button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.05);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.order-channels button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f7;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.order-channels button:hover,
.order-channels button.active {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.order-channels button[data-channel="Swiggy"].active {
  background: #f47b20;
}

.order-channels button[data-channel="Zomato"].active {
  background: #d8232e;
}

@media (max-width: 700px) {
  .order-channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

#app.view-changing .view.active {
  animation: workspace-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes workspace-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.primary,
.secondary,
.ghost,
.header-icon,
.help-desk,
.user-chip,
.nav-tab,
.sub-nav-tab {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.primary:hover,
.secondary:hover,
.ghost:hover,
.help-desk:hover,
.user-chip:hover,
.header-icon:hover {
  transform: translateY(-1px);
}

.primary:active,
.secondary:active,
.ghost:active,
.help-desk:active,
.user-chip:active,
.header-icon:active {
  transform: translateY(0) scale(.98);
}

.app-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .36);
  transform: translate(-50%, -50%) scale(0);
  animation: app-ripple .5s ease-out forwards;
  pointer-events: none;
}

@keyframes app-ripple {
  to {
    transform: translate(-50%, -50%) scale(14);
    opacity: 0;
  }
}

@media (hover: hover) {

  .kds-card,
  .table-card,
  .stock-card,
  .history-card,
  .menu-item,
  .product-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .kds-card:hover,
  .table-card:hover,
  .stock-card:hover,
  .history-card:hover,
  .menu-item:hover,
  .product-card:hover {
    transform: translateY(-3px);
    border-color: #c9d9e6;
    box-shadow: 0 14px 34px rgba(32, 33, 36, .12);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: start;
  min-height: calc(100vh - 170px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.menu-panel,
.ticket-panel,
.reports-grid article,
.history-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.daily-card,
.comparison-card,
.weekly-panel,
.outlet-card,
.dashboard-blank,
.monthly-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 18px rgba(16, 38, 56, 0.04);
}

.daily-card {
  min-height: 280px;
  padding: 16px 16px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 20px rgba(16, 38, 56, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.daily-card:hover,
.comparison-card:hover,
.weekly-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(16, 38, 56, 0.08);
}

.daily-head {
  display: flex;
  justify-content: space-between;
}

.daily-head h2 {
  font-size: 18px;
}

.trend-mark {
  color: #3d94c6;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
}

.daily-card>strong {
  display: block;
  font-size: 26px;
  margin-top: 14px;
}

.daily-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.daily-metrics div {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
}

.daily-metrics div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.daily-metrics span {
  color: #9aa4b9;
  font-size: 12px;
  font-weight: 800;
}

.daily-metrics strong {
  font-size: 16px;
}

.comparison-card {
  min-height: 280px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10, 91, 94, 0.04), rgba(255, 255, 255, 0.92));
}

.comparison-head h2 {
  font-size: 20px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.comparison-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid #e4eef8;
  border-radius: 8px;
}

.comparison-grid span,
.weekly-stats-grid span,
.monthly-grid span {
  color: #8a94aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-grid strong {
  font-size: 24px;
}

.delta-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.delta-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf7ff;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 12px;
}

.weekly-panel {
  margin-top: 16px;
  padding: 0 12px 12px;
}

.weekly-panel summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}

.weekly-stats-grid,
.monthly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.weekly-stats-grid article,
.monthly-grid article {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.weekly-stats-grid strong,
.monthly-grid strong {
  font-size: 24px;
}

.monthly-grid {
  margin-top: 16px;
}

.monthly-grid article {
  border-radius: 2px;
}

.ai-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbfd;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-header h2 {
  margin: 0;
  font-size: 20px;
}

.ai-assistant {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-assistant input {
  min-width: min(340px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafe;
}

.ai-summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #eefaf7, #f3f8ff);
  border: 1px solid #d8eeeb;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.ai-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-card {
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
}

.assistant-card {
  background: #f1faf6;
}

.ai-card .eyebrow {
  margin-bottom: 12px;
}

.ai-card p,
.ai-card small,
.ai-card li {
  margin: 0;
}

.ai-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ai-card li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.ai-card li span,
.ai-card li strong,
.ai-card li small {
  display: block;
}

.ai-card li strong {
  font-size: 14px;
}

.ai-card li small {
  color: var(--muted);
}

.ai-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ai-stat strong {
  font-size: 18px;
}

.ai-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-assistant-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(220px, 0.9fr) minmax(290px, 1.1fr);
  gap: 14px;
  align-items: center;
  min-height: 170px;
  margin-top: 16px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 5% 20%, rgba(245, 197, 66, 0.25), transparent 22%),
    linear-gradient(115deg, #0c3c4e, #0f766e 64%, #187f77);
  color: #fff;
  box-shadow: 0 14px 28px rgba(8, 63, 59, 0.14);
}

.ai-assistant-hero::before {
  content: "AI";
  position: absolute;
  right: 24px;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.assistant-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: linear-gradient(145deg, #f5c542, #d98d2d);
  color: #173b4a;
  box-shadow: 0 0 0 8px rgba(245, 197, 66, 0.12), 0 12px 20px rgba(0, 0, 0, 0.14);
  animation: assistant-float 4s ease-in-out infinite;
}

.assistant-orb::before,
.assistant-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: inherit;
  animation: assistant-ring 3.8s linear infinite;
}

.assistant-orb::after {
  inset: -18px;
  opacity: 0.45;
  animation-direction: reverse;
}

.assistant-orb span {
  font-size: 30px;
}

@keyframes assistant-float {
  50% {
    transform: translateY(-7px) rotate(6deg);
  }
}

@keyframes assistant-ring {
  to {
    transform: rotate(360deg);
  }
}

.assistant-copy {
  position: relative;
  z-index: 1;
}

.assistant-copy .eyebrow {
  margin-bottom: 7px;
  color: #f5c542;
}

.assistant-copy h3 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.05em;
}

.assistant-copy>p:not(.eyebrow) {
  max-width: 360px;
  margin: 7px 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assistant-prompts button {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.assistant-prompts button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.assistant-input-wrap {
  position: relative;
  z-index: 1;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background: rgba(4, 46, 59, 0.28);
  backdrop-filter: blur(12px);
}

.assistant-input-wrap label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.assistant-input-wrap .ai-assistant {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.assistant-input-wrap input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.assistant-input-wrap #aiAskButton {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  white-space: nowrap;
}

.assistant-input-wrap #aiAskButton span {
  margin-left: 5px;
}

.assistant-reply {
  min-height: 35px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1.5;
}

.ai-panel>.ai-grid {
  margin-top: 16px;
}

.ai-panel>.ai-grid .assistant-card {
  display: none;
}

@media (max-width: 980px) {
  .ai-assistant-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .assistant-input-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .ai-assistant-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .assistant-orb {
    width: 58px;
    height: 58px;
  }

  .assistant-orb span {
    font-size: 23px;
  }

  .assistant-input-wrap .ai-assistant {
    flex-direction: column;
  }

  .assistant-input-wrap #aiAskButton {
    width: 100%;
  }
}

.dashboard-command-center {
  position: relative;
  margin-top: 18px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 197, 66, 0.2), transparent 23%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 245, 0.94));
  box-shadow: 0 14px 24px rgba(15, 35, 52, 0.06);
}

.dashboard-command-center::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.command-heading,
.chart-title-row,
.mini-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.command-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 26px);
  letter-spacing: -0.04em;
}

.command-heading p:not(.eyebrow) {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39a96b;
  box-shadow: 0 0 0 5px rgba(57, 169, 107, 0.12);
  animation: dashboard-pulse 1.8s ease-in-out infinite;
}

@keyframes dashboard-pulse {
  50% {
    transform: scale(0.72);
    opacity: 0.55;
  }
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 14px;
  margin-top: 20px;
}

.revenue-chart-card,
.prediction-card,
.demand-card,
.action-queue-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 253, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-title-row span,
.mini-card-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chart-title-row strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.chart-delta {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(57, 169, 107, 0.12);
  color: #208151 !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.chart-delta.negative {
  background: rgba(217, 79, 43, 0.12);
  color: var(--tomato) !important;
}

.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 18px);
  height: 125px;
  margin-top: 16px;
  padding: 12px 8px 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  background: repeating-linear-gradient(to top, transparent 0, transparent 48px, rgba(15, 118, 110, 0.07) 49px, transparent 50px);
}

.chart-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
}

.chart-column i {
  display: block;
  width: min(34px, 70%);
  min-height: 10px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #f5c542, #0f766e);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  transform-origin: bottom;
  animation: chart-rise 0.8s cubic-bezier(.2, .8, .2, 1) both;
}

.chart-column:nth-child(2n) i {
  background: linear-gradient(180deg, #e9a83c, #2f8bc1);
}

.chart-column:nth-child(3n) i {
  background: linear-gradient(180deg, #79c8ae, #0f766e);
}

@keyframes chart-rise {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

.chart-value {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.chart-labels {
  display: flex;
  gap: clamp(8px, 2vw, 18px);
  padding: 8px 8px 0;
}

.chart-labels span {
  flex: 1;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.chart-empty {
  align-self: center;
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}

.prediction-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  background: linear-gradient(145deg, #123a52, #0f766e);
  color: #fff;
}

.prediction-card .eyebrow {
  color: #f5c542;
}

.prediction-card>strong {
  position: relative;
  z-index: 1;
  margin: 8px 0 5px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.07em;
}

.prediction-card>span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.prediction-card small {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.prediction-orbit {
  position: absolute;
  top: -38px;
  right: -20px;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: orbit-spin 14s linear infinite;
}

.prediction-orbit::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5c542;
  box-shadow: 0 0 0 7px rgba(245, 197, 66, 0.14);
}

.prediction-orbit span {
  color: rgba(255, 255, 255, 0.18);
  font-size: 32px;
  font-weight: 900;
}

.prediction-meter {
  position: relative;
  z-index: 1;
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.prediction-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5c542, #fff);
  transition: width 0.8s ease;
}

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

.command-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mini-card-heading {
  margin-bottom: 13px;
}

.mini-card-heading span:last-child {
  color: var(--teal);
  font-size: 10px;
}

.demand-leaders,
.action-queue {
  display: grid;
  gap: 9px;
}

.demand-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(70px, 0.7fr);
  gap: 10px;
  align-items: center;
}

.demand-rank {
  color: #d79d32;
  font-size: 12px;
  font-weight: 900;
}

.demand-row strong,
.action-queue strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demand-row small,
.action-queue small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.demand-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.demand-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5c542, #0f766e);
}

.action-queue>div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.05);
}

.action-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #7b8794;
}

.action-dot.warning {
  background: #e5a633;
  box-shadow: 0 0 0 5px rgba(229, 166, 51, 0.12);
}

.action-dot.positive {
  background: #38a169;
  box-shadow: 0 0 0 5px rgba(56, 161, 105, 0.12);
}

.dashboard-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .command-heading {
    flex-direction: column;
  }

  .command-grid,
  .command-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dashboard-command-center {
    padding: 16px;
    border-radius: 20px;
  }

  .revenue-chart-card,
  .prediction-card,
  .demand-card,
  .action-queue-card {
    padding: 14px;
  }
}

.ai-empty {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dashboard-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 246, 239, 0.72));
  box-shadow: 0 8px 18px rgba(16, 35, 48, 0.04);
}

.dashboard-quick-actions h2 {
  margin-top: 3px;
  font-size: 17px;
}

.dashboard-quick-actions .dashboard-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.dashboard-quick-actions .eyebrow {
  margin-bottom: 0;
}

.outlet-card {
  width: min(420px, 100%);
  min-height: 110px;
  margin-top: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: start;
}

.outlet-card h2 {
  font-size: 15px;
}

.outlet-card p {
  font-size: 12px;
}

.outlet-toggle input {
  display: none;
}

.outlet-toggle span {
  width: 38px;
  height: 20px;
  display: block;
  background: #66a84f;
  border-radius: 999px;
  position: relative;
}

.outlet-toggle span::after {
  content: "✓";
  position: absolute;
  right: 4px;
  top: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #66a84f;
  border-radius: 50%;
  font-size: 10px;
}

.kebab {
  background: transparent;
  font-size: 22px;
}

.outlet-footer {
  grid-column: 1 / -1;
  min-height: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.outlet-footer button {
  min-height: 24px;
  padding: 0 14px;
  border: 1px solid #b9d5eb;
  background: #eef7ff;
  color: #347eb4;
  font-weight: 800;
  font-size: 11px;
}

.dashboard-blank {
  min-height: 36px;
  margin-top: 20px;
}

.menu-panel {
  padding: 18px 18px 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.72);
  min-height: 100%;
}

.toolbar {
  display: grid;
  gap: 12px;
}

.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.segmented button {
  flex: 0 0 auto;
  background: rgba(15, 118, 110, 0.06);
  color: var(--ink);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  font-weight: 700;
}

.segmented button.active {
  background: linear-gradient(135deg, #0f766e, #123a52);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.menu-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  align-content: start;
}

.menu-item {
  min-height: 102px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.menu-item strong {
  font-size: 14px;
}

.menu-item span {
  color: var(--muted);
  font-size: 11px;
}

.menu-item .price {
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 12px;
}

.ticket-panel {
  position: sticky;
  top: 16px;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.ticket-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  margin-top: 8px;
}

.ticket-actions {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(86px, 1.08fr) minmax(92px, 1fr);
  align-items: stretch;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
}

.action-cluster {
  display: grid;
  gap: 6px;
  min-height: 116px;
}

.action-left,
.action-right {
  grid-template-rows: repeat(3, minmax(32px, 1fr));
}

.action-left {
  grid-template-columns: 1fr;
}

.action-center {
  grid-template-columns: 1fr;
}

.action-center .primary {
  min-height: 100%;
  font-size: clamp(0.9rem, 1.35vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d5d5d, #0d4b53);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 18px rgba(13, 93, 93, 0.18);
}

.action-right {
  grid-template-columns: 1fr;
}

.action-left .secondary,
.action-right .ghost,
.action-right .compact,
.action-right .primary {
  width: 100%;
  height: 100%;
  min-height: 32px;
  margin-top: 0;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.action-left .secondary {
  background: rgba(221, 226, 221, 0.9);
  color: #1a4f49;
}

.action-left .secondary.danger {
  background: rgba(233, 214, 214, 0.92);
  color: #7a2d2d;
}

.action-right .ghost {
  background: rgba(212, 217, 218, 0.8);
  color: #123d3d;
}

.action-right .primary.compact {
  background: linear-gradient(180deg, #0d5d5d, #0b454c);
  color: #fff;
}

.action-right .compact {
  min-height: 38px;
}

.nav-tab:focus-visible,
.sub-nav-tab:focus-visible,
.admin-tab:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.ghost:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 139, 193, 0.35);
  outline-offset: 2px;
}

.ticket-head,
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 24px;
}

.order-meta,
.payment-row,
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 88px;
  gap: 5px;
}

.payment-row {
  grid-template-columns: 1fr 1fr;
}

.action-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.print-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 320px;
  max-height: none;
  overflow: auto;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  padding: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-line small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.qty {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.qty button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f2eee6;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
}

.check-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
}

.check-row input {
  width: auto;
  min-height: auto;
}

.totals {
  display: grid;
  gap: 3px;
  margin: 4px 0 6px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.totals dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.totals dd {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
}

.totals .grand {
  font-size: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.primary,
.secondary,
.ghost {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
  border: 0;
}

.primary {
  background: linear-gradient(180deg, #0f6a64, #0d4a4d);
  color: #fff;
}

.secondary {
  background: linear-gradient(180deg, #0d6b66, #0b514d);
  color: #fff;
}

.danger {
  background: linear-gradient(180deg, #d05a4e, #b63d38);
}

.ghost {
  width: 100%;
  margin-top: 8px;
  background: rgba(217, 225, 224, 0.82);
  color: var(--ink);
}

.kitchen-board,
.table-map,
.inventory-list,
.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.kds-card,
.table-card,
.stock-card,
.history-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 28px rgba(32, 33, 36, 0.08);
}

.kds-card strong,
.table-card strong,
.stock-card strong,
.history-card strong {
  display: block;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 12px;
}

.table-card.occupied {
  border-color: var(--tomato);
}

.stock-bar {
  height: 10px;
  background: #eee7dc;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.stock-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.stock-card.low .stock-bar span {
  background: var(--tomato);
}

.reports-shell {
  padding-top: 4px;
}

.report-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.report-page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.report-page-header .eyebrow {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-status-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status-pill.subtle {
  color: var(--muted);
}

.status-pill.success {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--teal-dark);
}

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

.report-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 18px 0;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(240, 249, 247, 0.8));
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-filters label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.report-filters label span {
  color: var(--ink);
}

.report-filters select,
.report-filters input {
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.report-actions .secondary {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-dark);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.report-actions .secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
}

.filter-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal-dark);
  font-weight: 800;
}

.reports-grid article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 248, 246, 0.76));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reports-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.08);
}

.reports-grid .eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.reports-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.history-wrap {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

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

.history-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.history-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.histories-list,
.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 247, 0.9));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.08);
}

.history-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.history-card p {
  margin: 4px 0;
  color: var(--muted);
}

.history-card small {
  color: var(--teal-dark);
  font-weight: 700;
}

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

  .report-status-pills {
    justify-content: flex-start;
  }

  .report-filters {
    grid-template-columns: 1fr;
  }

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

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

  .report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.history-wrap {
  margin-top: 0;
  padding: 18px;
}

.history-wrap-inline {
  margin-top: 18px;
}

.history-header {
  margin-bottom: 16px;
}

.history-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.history-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.page-indicator {
  color: var(--muted);
  font-weight: 700;
}

.receipt {
  display: none;
}

.receipt-card {
  color: #111827;
  background: #fff;
  width: 100%;
}

.receipt pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.28;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #111827;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.receipt-header h1 {
  font-size: 22px;
  line-height: 1.1;
  margin: 4px 0;
}

.receipt-header p,
.receipt-footer p {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.4;
}

.receipt-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.receipt-meta div,
.receipt-totals div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.receipt-meta span,
.receipt-totals span,
.receipt-note {
  color: #374151;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.receipt-table th,
.receipt-table td {
  font-size: 13px;
  padding: 6px 0;
  text-align: left;
  vertical-align: top;
}

.receipt-table th:nth-child(2),
.receipt-table th:nth-child(3),
.receipt-table th:nth-child(4),
.receipt-table td:nth-child(2),
.receipt-table td:nth-child(3),
.receipt-table td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.receipt-table thead th {
  border-top: 1px dashed #111827;
  border-bottom: 1px dashed #111827;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-totals {
  border-top: 1px dashed #111827;
  padding-top: 10px;
}

.receipt-grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #111827;
  font-size: 16px;
  font-weight: 800;
}

.receipt-footer {
  margin-top: 12px;
  border-top: 1px dashed #111827;
  padding-top: 8px;
  text-align: center;
}

.kot-card {
  font-size: 14px;
}

.kot-header {
  border-bottom: none;
  margin-bottom: 6px;
}

.kot-token {
  font-size: 64px;
  line-height: 1;
  margin: 6px 0 10px;
}

.kot-meta {
  margin-bottom: 12px;
}

.kot-meta p {
  margin: 2px 0;
  font-size: 14px;
}

.kot-table-line {
  font-size: 24px;
  margin-top: 6px;
}

.kot-table thead th:first-child,
.kot-table tbody td:first-child {
  width: 72%;
}

.kot-table thead th:last-child,
.kot-table tbody td:last-child {
  width: 28%;
  text-align: right;
}

.kot-table th,
.kot-table td {
  font-size: 15px;
  padding: 7px 0;
}

.kot-footer {
  text-align: left;
}

.bill-card .receipt-header {
  padding-bottom: 10px;
}

.bill-card .receipt-note {
  font-size: 12px;
}

.bill-card .receipt-table {
  table-layout: fixed;
}

.bill-card .receipt-table th:first-child,
.bill-card .receipt-table td:first-child {
  width: 46%;
  padding-right: 8px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bill-card .receipt-table th:nth-child(2),
.bill-card .receipt-table td:nth-child(2) {
  width: 10%;
}

.bill-card .receipt-table th:nth-child(3),
.bill-card .receipt-table td:nth-child(3) {
  width: 18%;
}

.bill-card .receipt-table th:nth-child(4),
.bill-card .receipt-table td:nth-child(4) {
  width: 26%;
}

.bill-card .receipt-table th:nth-child(2),
.bill-card .receipt-table th:nth-child(3),
.bill-card .receipt-table th:nth-child(4),
.bill-card .receipt-table td:nth-child(2),
.bill-card .receipt-table td:nth-child(3),
.bill-card .receipt-table td:nth-child(4) {
  font-size: 11px;
  letter-spacing: 0;
}

.bill-card .receipt-table td strong {
  display: inline-block;
  font-size: 12px;
  line-height: 1.25;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, 0.42);
  padding: 18px;
}

.modal-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

.modal-card h2 {
  margin-bottom: 8px;
}

.add-table-modal {
  width: min(620px, 100%);
  padding: 24px;
  border-radius: 22px;
}

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

.modal-head .eyebrow {
  margin-bottom: 8px;
}

.modal-head h2 {
  margin: 0;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.add-table-modal .admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.add-table-modal .admin-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.add-table-modal .admin-form input,
.add-table-modal .admin-form select,
.add-table-modal .admin-form textarea {
  min-height: 42px;
  width: 100%;
}

.add-table-modal .admin-form label:nth-child(5),
.add-table-modal .modal-actions {
  grid-column: 1 / -1;
}

.add-table-modal .admin-form textarea {
  min-height: 76px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.setup-gate-card {
  width: min(760px, 100%);
  padding: 30px 32px 26px;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.28);
}

.setup-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.setup-checklist li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setup-step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.setup-step-copy {
  display: grid;
  gap: 4px;
}

.setup-step-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.setup-step-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.setup-step-action {
  min-width: 82px;
}

.setup-ai-action {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: -8px;
  padding: 7px 11px;
  border: 1px solid rgba(197, 138, 58, 0.24);
  border-radius: 999px;
  background: rgba(197, 138, 58, 0.1);
  color: #8a5b29;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.setup-ai-action:hover {
  background: rgba(197, 138, 58, 0.18);
}

.setup-ai-action span {
  margin-right: 4px;
}

.setup-checklist li.is-complete .setup-step-number {
  background: rgba(15, 118, 110, 0.16);
  color: var(--teal);
}

.setup-import-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.setup-note {
  color: var(--muted);
  font-size: 13px;
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 12px;
}

.subscription-modal {
  width: min(960px, 100%);
}

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

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

.subscription-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f8 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
}

.subscription-card.recommended {
  border-color: rgba(13, 118, 111, 0.5);
  box-shadow: 0 16px 32px rgba(13, 118, 111, 0.12);
}

.subscription-card .badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 118, 111, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.subscription-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.subscription-card h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.subscription-card p {
  margin: 0;
  color: var(--muted);
}

.subscription-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.subscription-price strong {
  font-size: 32px;
}

.subscription-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.subscription-features li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
}

.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 800;
}

.subscription-message {
  margin-top: 18px;
  min-height: 24px;
  color: var(--muted);
}

.history-detail-modal {
  width: min(920px, 100%);
}

.history-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.history-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 16px;
}

.history-detail-summary,
.history-detail-items,
.history-detail-totals,
.history-detail-payment {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.history-detail-items {
  grid-row: span 2;
}

.history-detail-summary p,
.history-detail-payment p,
.history-detail-totals p {
  margin: 0 0 8px;
}

.history-detail-lines {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.history-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.history-detail-line:last-child {
  border-bottom: 0;
}

.history-detail-line small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.history-detail-line-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.history-detail-totals p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-detail-grand {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.payment-options button {
  min-height: 50px;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--blue-dark);
  font-weight: 800;
  border: 1px solid #b9d5eb;
}

:root {
  --ink: #182234;
  --muted: #69758d;
  --line: rgba(20, 30, 50, 0.08);
  --paper: #f3efe7;
  --panel: rgba(255, 255, 255, 0.88);
  --blue: #0f766e;
  --blue-dark: #0b534e;
  --teal: #0f766e;
  --teal-dark: #083f3b;
  --tomato: #d94f2b;
  --mustard: #f5c542;
  --mint: #d9eee7;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(245, 197, 66, 0.14), transparent 20%),
    linear-gradient(180deg, #f8f4ec 0%, #eef2f7 100%);
}

.login-screen {
  background: linear-gradient(180deg, #eef1ef 0%, #f4f4f4 100%);
  padding: 24px;
}

.login-card {
  width: min(640px, 100%);
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  padding: 32px 36px 26px;
  box-shadow: 0 26px 70px rgba(31, 43, 52, 0.12);
  backdrop-filter: blur(8px);
}

.login-card .eyebrow {
  margin: 10px 0 0;
  color: #3d6d6d;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card>img {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #0f766e, #0a4f5f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.login-card h1 {
  font-size: clamp(2.5rem, 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0;
}

.login-hint {
  margin: 0;
  max-width: 440px;
  color: #5f6f7a;
  line-height: 1.5;
  font-size: 1.125rem;
}

.login-card label {
  display: grid;
  gap: 10px;
  color: #1a2430;
  font-size: 1.05rem;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(16, 37, 51, 0.08);
  border-radius: 14px;
  background: #edf3f7;
  padding: 0 16px;
  font-size: 1.05rem;
  color: #1d2b36;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.login-error {
  min-height: 28px;
  margin: 0;
  color: #e4663c;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.login-card .primary {
  width: 100%;
  min-height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a7f7a 0%, #0f6b70 32%, #0f526d 100%);
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.2);
  font-size: 1.1rem;
  font-weight: 800;
}

.login-link {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.login-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recovery-panel {
  width: min(640px, 100%);
  display: grid;
  gap: 18px;
  padding: 30px 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 70px rgba(31, 43, 52, 0.12);
  backdrop-filter: blur(8px);
}

.recovery-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recovery-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.72rem;
}

.recovery-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.06em;
}

.recovery-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--teal), var(--blue-dark));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.recovery-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.recovery-form {
  display: grid;
  gap: 14px;
}

.recovery-form label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.recovery-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(16, 37, 51, 0.1);
  border-radius: 14px;
  background: #f3f7f9;
  color: var(--ink);
}

.recovery-form input:not([type="hidden"]):focus {
  outline: 3px solid rgba(47, 139, 193, 0.18);
  border-color: var(--blue);
}

.recovery-result {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  line-height: 1.6;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.recovery-result a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {

  .login-card,
  .recovery-panel {
    padding: 26px 22px 24px;
    border-radius: 24px;
  }

  .recovery-heading {
    align-items: flex-start;
  }
}

.app-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(245, 197, 66, 0.03));
}

.posify-header {
  min-height: 72px;
  background: linear-gradient(135deg, #0f766e, #123a52);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding-right: 12px;
}

.posify-left {
  padding-left: 16px;
}

.posify-left strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.posify-center,
.posify-right {
  gap: 10px;
  flex-wrap: wrap;
}

.help-desk {
  border-radius: 999px;
}

.user-meta {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.sidebar {
  background: linear-gradient(180deg, #0c2235 0%, #11324a 100%);
  color: rgba(255, 255, 255, 0.78);
}

.sidebar .brand {
  display: flex;
  padding: 10px 14px 18px;
}

.sidebar .brand strong {
  color: #fff;
}

.sidebar .brand span {
  color: rgba(255, 255, 255, 0.7);
}

.nav-tab {
  width: 100%;
  color: rgba(255, 255, 255, 0.76);
  border-left: 3px solid transparent;
  min-height: 44px;
}

.nav-group {
  display: grid;
}

.sub-nav {
  display: none;
  gap: 4px;
  padding: 4px 0 10px 22px;
}

.nav-group.active .sub-nav {
  display: grid;
}

.sub-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
  text-align: left;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.sub-nav-tab.active,
.sub-nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sub-nav-icon {
  width: 14px;
  flex: 0 0 14px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.sub-nav-label {
  white-space: nowrap;
}

.app-shell:not(.sidebar-open) .sub-nav {
  padding-left: 0;
}

.app-shell:not(.sidebar-open) .sub-nav-tab {
  width: 44px;
  min-height: 28px;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.app-shell:not(.sidebar-open) .sub-nav-label {
  display: none;
}

.nav-tab:hover,
.nav-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-icon {
  font-size: 14px;
}

.workspace {
  background: transparent;
}

.topbar {
  padding: 18px 22px 14px;
}

.status-strip span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.view {
  padding: 14px 22px 34px;
}

.view[id^="admin"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px clamp(16px, 2.4vw, 36px) 34px;
}

.view[id^="admin"] .board-head>div:first-child {
  display: none;
}

.view[id^="admin"] .board-head:not(:has(.admin-actions)) {
  display: none;
}

.view[id^="admin"] .board-head {
  position: relative;
  min-height: 0;
  height: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.view[id^="admin"] .board-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  letter-spacing: -0.045em;
}

.view[id^="admin"] .board-head .eyebrow {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.view[id^="admin"] .admin-actions {
  justify-content: flex-end;
}

.view[id^="admin"] .admin-actions button {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.view[id^="admin"] .summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.view[id^="admin"] .summary-grid article {
  min-height: 78px;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.summary-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover,
.summary-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  outline: none;
}

.summary-card strong {
  font-size: 25px;
  line-height: 1;
}

.summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.view[id^="admin"] .summary-grid strong {
  font-size: 25px;
  line-height: 1;
}

.view[id^="admin"] .summary-grid span {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.06);
}

.admin-tab {
  flex: 1 1 0;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.active {
  background: var(--panel);
  color: var(--teal-dark);
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.1);
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-tab-panel>.board-head {
  display: none;
}

.admin-tools {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.admin-tools summary {
  padding: 7px 11px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.admin-tools summary::-webkit-details-marker {
  display: none;
}

.admin-tools[open] {
  width: min(480px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.admin-tools[open] .admin-actions {
  margin-top: 10px;
}

.view[id^="admin"] .admin-panel {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.view[id^="admin"] .panel-head {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.view[id^="admin"] .panel-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.view[id^="admin"] .panel-head span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.admin-add-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.view[id^="admin"] .admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 18px;
}

.view[id^="admin"] .admin-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.view[id^="admin"] .admin-form input,
.view[id^="admin"] .admin-form select,
.view[id^="admin"] .admin-form textarea,
.view[id^="admin"] .admin-search input {
  min-height: 42px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.view[id^="admin"] .admin-form textarea {
  min-height: 76px;
}

.view[id^="admin"] .admin-form .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  min-height: 42px;
  padding: 0 2px;
}

.view[id^="admin"] .admin-form .check-row input {
  min-height: auto;
  width: 16px;
  height: 16px;
}

.view[id^="admin"] .admin-form>button,
.view[id^="admin"] .admin-form-actions {
  grid-column: 1 / -1;
}

.view[id^="admin"] .admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.view[id^="admin"] .admin-form-actions button {
  min-height: 40px;
}

.view[id^="admin"] .admin-search {
  max-width: 420px;
  margin-bottom: 12px;
}

.view[id^="admin"] .admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.view[id^="admin"] .admin-list-wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.view[id^="admin"] .admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 168px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.08);
}

.view[id^="admin"] .admin-row>div:first-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.view[id^="admin"] .admin-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.view[id^="admin"] .admin-row p,
.view[id^="admin"] .admin-row small {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.view[id^="admin"] .row-actions {
  justify-content: flex-end;
  align-self: end;
}

.view[id^="admin"] .row-actions button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 900px) {

  .view[id^="admin"] .admin-list,
  .view[id^="admin"] .admin-list-wide {
    grid-template-columns: 1fr;
  }

  .view[id^="admin"] .panel-head {
    flex-wrap: wrap;
  }
}

#adminTablesView .admin-panel {
  max-width: none;
}

#adminTablesView .admin-form {
  max-width: none;
}

#adminFoiView .admin-panel,
#adminProductsView .admin-panel,
#adminUsersView .admin-panel {
  max-width: none;
}

#adminFoiView .foi-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 2px 0 4px;
}

#adminFoiView .foi-filters label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

#adminFoiView .foi-filters input,
#adminFoiView .foi-filters select {
  min-height: 44px;
  background: #fff;
  font-size: 13px;
}

#adminFoiView .filter-note {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

#adminFoiView .admin-list:empty {
  min-height: 150px;
}

#adminFoiView .empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 118, 110, 0.025);
}

#adminTablesView .admin-form label:nth-child(5) {
  grid-column: 1 / -1;
}

#adminTablesView .admin-form>button {
  grid-column: 2;
  justify-self: end;
  min-width: 180px;
}

.menu-panel,
.ticket-panel,
.reports-grid article,
.history-wrap,
.daily-card,
.comparison-card,
.weekly-panel,
.monthly-grid article,
.table-card,
.stock-card,
.kds-card,
.history-card,
.admin-panel,
.admin-row,
.summary-grid article {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.daily-card,
.comparison-card {
  border-radius: 28px;
  padding: 22px;
}

.comparison-grid div,
.weekly-stats-grid article,
.monthly-grid article {
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.reports-grid article,
.history-card {
  border-color: rgba(47, 139, 193, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 253, 0.9));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.reports-grid article:hover,
.history-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 139, 193, 0.42);
  box-shadow: 0 18px 34px rgba(47, 139, 193, 0.14);
}

.table-card {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 245, 0.88));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.table-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 20px 36px rgba(15, 118, 110, 0.15);
}

.table-card.occupied {
  border-color: rgba(217, 79, 43, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 236, 0.94));
}

.kds-card {
  border-color: rgba(217, 79, 43, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 240, 0.9));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kds-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 79, 43, 0.46);
  box-shadow: 0 18px 34px rgba(217, 79, 43, 0.13);
}

.stock-card {
  border-color: rgba(229, 166, 51, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 235, 0.92));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stock-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 166, 51, 0.56);
  box-shadow: 0 18px 34px rgba(229, 166, 51, 0.14);
}

.stock-card.low {
  border-color: rgba(217, 79, 43, 0.48);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 236, 0.94));
}

.admin-row {
  border-left: 3px solid rgba(15, 118, 110, 0.34);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 247, 0.84));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-row:hover {
  transform: translateX(3px);
  border-left-color: var(--teal);
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.12);
}

.summary-card:nth-child(2n) {
  border-top-color: rgba(47, 139, 193, 0.4);
}

.summary-card:nth-child(3n) {
  border-top-color: rgba(229, 166, 51, 0.48);
}

.summary-card:nth-child(4n) {
  border-top-color: rgba(217, 79, 43, 0.42);
}

.dashboard-actions button,
.report-actions button,
.action-row button,
.payment-options button,
.admin-actions button,
.admin-form button,
.row-actions button,
.board-head button,
.print-row button {
  border-radius: 999px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

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

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-status {
  min-height: 22px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-weight: 700;
}

.debug-status {
  min-height: 22px;
  margin: -6px 0 14px;
  color: #b45309;
  font-weight: 700;
  font-size: 13px;
}

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

.summary-grid article {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
}

.summary-grid strong {
  font-size: 30px;
}

.summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-accordions {
  display: grid;
  gap: 16px;
}

.admin-accordion,
.report-accordion {
  border-radius: 26px;
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.admin-accordion summary,
.report-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-accordion summary::-webkit-details-marker,
.report-accordion summary::-webkit-details-marker {
  display: none;
}

.admin-accordion summary::after,
.report-accordion summary::after {
  content: "+";
  font-size: 26px;
  line-height: 1;
  color: var(--blue-dark);
}

.admin-accordion[open] summary::after,
.report-accordion[open] summary::after {
  content: "−";
}

.admin-accordion summary strong,
.report-accordion summary strong {
  display: block;
  font-size: 18px;
}

.admin-accordion summary small,
.report-accordion summary small {
  color: var(--muted);
}

.accordion-body {
  padding: 0 18px 18px;
}

.admin-panel {
  border-radius: 28px;
  padding: 18px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

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

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-search {
  margin: 0 0 14px;
}

.admin-import {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.menu-import-status {
  min-height: 20px;
  margin: -4px 0 12px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.admin-import input {
  flex: 1 1 280px;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

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

.admin-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

.admin-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-row p,
.admin-row small {
  color: var(--muted);
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.ghost {
  background: rgba(15, 118, 110, 0.1);
  color: var(--blue-dark);
}

.ghost.danger,
.secondary.danger {
  background: rgba(217, 79, 43, 0.08);
  color: #b5472b;
}

.primary {
  background: linear-gradient(135deg, #0f766e, #123a52);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
}

.secondary {
  background: rgba(15, 118, 110, 0.1);
  color: var(--blue-dark);
}

.icon-btn {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--blue-dark);
}

.table-card,
.stock-card,
.kds-card,
.history-card {
  border-radius: 24px;
}

.table-card {
  min-height: 180px;
}

.stock-bar {
  background: rgba(15, 118, 110, 0.12);
  border-radius: 999px;
}

.stock-bar span {
  background: linear-gradient(90deg, #0f766e, #f5c542);
}

.ticket-panel {
  border-radius: 30px;
  padding: 20px;
}

.menu-item,
.cart-line,
.kds-card,
.history-card {
  border-radius: 22px;
}

.history-card.clickable {
  cursor: pointer;
}

.history-card.clickable:hover {
  border-color: rgba(15, 118, 110, 0.32);
  transform: translateY(-1px);
}

.menu-item {
  background: rgba(255, 255, 255, 0.9);
}

.menu-item .price {
  color: #0f766e;
}

.modal-card {
  border-radius: 28px;
}

label {
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.login-card img {
  width: 68px;
  height: 68px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .app-shell.sidebar-open {
    grid-template-columns: 1fr;
  }

  .posify-header {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    grid-template-areas:
      "left right"
      "center center";
    align-items: start;
  }

  .posify-left {
    grid-area: left;
  }

  .posify-center {
    grid-area: center;
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .posify-right {
    grid-area: right;
  }

  .posify-center span:last-child {
    display: none;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(280px, 86vw);
    display: flex;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .workspace {
    grid-column: 1;
  }

  .app-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(8, 24, 38, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .app-shell.sidebar-open::after {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-tabs {
    grid-template-columns: 1fr;
  }

  .sub-nav {
    padding-left: 10px;
  }

  .shift-panel {
    display: none;
  }

  .pos-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-quick-actions .dashboard-actions {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-quick-actions .dashboard-actions button {
    flex: 1;
  }

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

  .summary-grid,
  .admin-form-grid,
  .report-filters {
    grid-template-columns: 1fr;
  }

  .view[id^="admin"] .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-tab {
    flex: 0 0 auto;
  }

  #adminFoiView .foi-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view[id^="admin"] .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-panel {
    position: static;
    max-height: none;
  }

  .ticket-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .history-detail-grid {
    grid-template-columns: 1fr;
  }

  .history-detail-items {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .posify-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "center";
    padding: 8px 10px 12px;
  }

  .posify-center {
    display: flex;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .posify-right {
    padding: 8px 0 0;
    justify-content: flex-start;
  }

  .header-stat,
  .header-contact {
    display: none;
  }

  .topbar,
  .view {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar,
  .board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view {
    padding-top: 12px;
  }

  .dashboard-quick-actions {
    padding: 16px;
  }

  .dashboard-quick-actions .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .order-meta,
  .payment-row,
  .action-row,
  .print-row,
  .controls-grid,
  .reports-grid,
  .daily-metrics,
  .comparison-grid,
  .weekly-stats-grid,
  .monthly-grid,
  .payment-options,
  .report-filters {
    grid-template-columns: 1fr;
  }

  .menu-grid,
  .kitchen-board,
  .table-map,
  .inventory-list,
  .history-list {
    grid-template-columns: 1fr;
  }

  .outlet-card {
    width: 100%;
  }

  .admin-row,
  .board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-actions {
    width: 100%;
  }

  .board-actions button {
    flex: 1;
  }

  .add-table-modal .admin-form {
    grid-template-columns: 1fr;
  }

  .add-table-modal .admin-form label:nth-child(5),
  .add-table-modal .modal-actions {
    grid-column: auto;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions button {
    flex: 1;
  }

  .view[id^="admin"] .summary-grid,
  .view[id^="admin"] .admin-form {
    grid-template-columns: 1fr;
  }

  .view[id^="admin"] .summary-grid {
    grid-template-columns: 1fr;
  }

  #adminFoiView .foi-filters {
    grid-template-columns: 1fr;
  }

  .view[id^="admin"] .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view[id^="admin"] .panel-head span {
    margin-left: 0;
  }

  .admin-add-button {
    width: 100%;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-tab {
    flex: 1;
    padding: 0 10px;
  }

  .view[id^="admin"] .admin-form>button,
  .view[id^="admin"] .admin-form-actions {
    grid-column: auto;
  }
}

#adminTablesView .admin-form>button {
  grid-column: auto;
  justify-self: stretch;
  min-width: 0;
}

@media print {
  @page {
    size: 80mm 297mm;
    margin: 2mm;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    width: 80mm;
    min-width: auto;
    max-width: none;
    min-height: auto;
    height: auto;
    background: #fff;
    zoom: 1;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    overflow: visible !important;
  }

  body>* {
    display: none !important;
  }

  .receipt {
    display: block !important;
    position: static !important;
    width: 76mm;
    min-width: 76mm;
    max-width: 76mm;
    padding: 0;
    margin: 0;
    font-family: "SF Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #fff;
    transform: none;
  }

  .receipt.print-bill {
    width: 76mm;
    min-width: 76mm;
    max-width: 76mm;
  }

  .receipt.print-kot {
    width: 76mm;
    min-width: 76mm;
    max-width: 76mm;
  }

  .receipt,
  .receipt * {
    visibility: visible !important;
  }

  .receipt pre {
    font-size: 11px;
    line-height: 1.24;
    white-space: pre-wrap;
    width: 100%;
    margin: 0;
  }

  .receipt-card {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .receipt-header h1 {
    font-size: 16px;
  }

  .receipt-table th,
  .receipt-table td,
  .receipt-meta div,
  .receipt-totals div,
  .receipt-header p,
  .receipt-footer p {
    font-size: 10px;
  }
}

@media screen {
  :root {
    --ink: #162334;
    --muted: #718096;
    --line: rgba(22, 35, 52, 0.1);
    --paper: #eef3f4;
    --panel: rgba(255, 255, 255, 0.92);
    --blue: #0d766f;
    --blue-dark: #075b58;
    --shadow: 0 20px 48px rgba(15, 35, 52, 0.1);
  }

  body,
  .app-shell {
    min-width: 0;
  }

  body {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
  }

  .posify-header {
    min-height: 70px;
    background: linear-gradient(110deg, #096e69 0%, #0d766f 42%, #12384e 100%);
    box-shadow: 0 12px 30px rgba(8, 44, 57, 0.2);
  }

  .posify-left strong {
    letter-spacing: 0.02em;
  }

  .sidebar {
    border-right: 0;
    box-shadow: 8px 0 28px rgba(10, 36, 50, 0.08);
  }

  .nav-tab {
    min-height: 46px;
    border-radius: 0 12px 12px 0;
    margin-right: 8px;
  }

  .nav-tab.active,
  .nav-tab:hover {
    border-left-color: #f5c542;
    background: rgba(255, 255, 255, 0.12);
  }

  .topbar {
    padding: 24px 26px 14px;
  }

  .topbar h1 {
    letter-spacing: -0.03em;
  }

  .status-strip span {
    padding: 10px 14px;
    border-color: rgba(13, 118, 111, 0.12);
    box-shadow: 0 8px 22px rgba(15, 35, 52, 0.06);
  }

  .view {
    padding: 16px 26px 38px;
  }

  .daily-card,
  .comparison-card {
    position: relative;
    overflow: hidden;
  }

  .daily-card::before,
  .comparison-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #f5c542, #d94f2b);
  }

  .comparison-card::before {
    background: linear-gradient(90deg, #2f8bc1, #0f766e);
  }

  .daily-card>strong,
  .comparison-grid strong {
    letter-spacing: -0.04em;
  }

  .comparison-grid div,
  .weekly-stats-grid article,
  .monthly-grid article {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }

  .comparison-grid div:hover,
  .weekly-stats-grid article:hover,
  .monthly-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 118, 111, 0.28);
    box-shadow: 0 12px 24px rgba(15, 35, 52, 0.08);
  }

  .setup-gate-card {
    border: 1px solid rgba(13, 118, 111, 0.16);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15, 35, 52, 0.24);
  }

  .setup-gate-card h2 {
    letter-spacing: -0.03em;
    font-size: 28px;
  }

  .setup-checklist li {
    padding: 10px 4px;
  }

  .setup-checklist .ghost {
    color: var(--blue-dark);
    font-weight: 800;
  }
}

/* Demo actions belong to the expanded navigation, not the global header. */
.app-shell:not(.sidebar-open) .sidebar .brand {
  display: none;
}

.sidebar .demo-actions {
  display: none;
  margin: auto 4px 0;
  padding: 12px;
  gap: 8px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 28px rgba(5, 22, 35, 0.16);
}

.app-shell.sidebar-open .sidebar .demo-actions:not(.is-hidden) {
  display: flex;
}

.sidebar .demo-actions button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sidebar .demo-actions button:hover {
  transform: translateX(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.sidebar .demo-actions .secondary {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar .demo-actions .primary {
  color: #12384e;
  background: linear-gradient(135deg, #f5c542, #e6a937);
}

.app-shell:not(.sidebar-open) .sidebar .demo-actions {
  display: none !important;
}

/* Billing ticket: keep the active order prominent without leaving a dead zone. */
.ticket-panel {
  gap: 0;
  padding: 18px 14px 12px;
  width: min(100%, 390px);
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 246, 0.96));
  box-shadow: 0 22px 48px rgba(15, 35, 52, 0.1);
}

.ticket-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.ticket-head .eyebrow {
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
}

.ticket-head h2 {
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.04em;
}

.ticket-head .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f2ef, #d9ebe6);
  color: var(--teal-dark);
  box-shadow: none;
}

.ticket-scroll {
  gap: 10px;
  margin-top: 12px;
  padding-right: 2px;
}

.order-meta select,
.order-meta input {
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
}

.order-channels {
  gap: 6px;
  margin: 0;
}

.order-channels button {
  min-height: 36px;
  border-radius: 11px;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.cart-lines {
  flex: 0 1 auto;
  min-height: 220px;
  max-height: 360px;
  padding: 2px;
  align-content: start;
}

.cart-line {
  padding: 12px 10px;
  border-color: rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.cart-line strong {
  font-size: 15px;
}

.cart-line small {
  font-size: 12px;
}

.qty button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3eee5;
  font-size: 15px;
}

.controls-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding-top: 2px;
}

.controls-grid label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}

.controls-grid .check-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 6px;
  white-space: nowrap;
  font-size: 10px;
}

.controls-grid .check-row input {
  flex: 0 0 auto;
}

.controls-grid label:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.controls-grid label:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1;
}

.controls-grid label:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.controls-grid label:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 1;
}

.controls-grid label:nth-child(5) {
  grid-column: 3 / 5;
  grid-row: 2;
}

.controls-grid label:nth-child(6) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.controls-grid input:not([type="checkbox"]) {
  min-height: 34px;
  font-weight: 700;
}

.check-row {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.totals {
  gap: 6px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(15, 118, 110, 0.1);
}

.totals dt {
  font-size: 12px;
}

.totals dd {
  font-size: 13px;
}

.totals .grand {
  margin-top: 4px;
  padding-top: 10px;
  font-size: 18px;
  border-top: 1px solid rgba(15, 118, 110, 0.16);
}

@media (max-width: 900px) {

  body,
  .app-shell {
    min-width: 0;
  }

  .pos-layout {
    grid-template-columns: 1fr;
  }

  .ticket-panel {
    position: static;
    max-height: none;
  }

  .ticket-scroll {
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .ticket-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

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

  .order-meta input {
    grid-column: 1 / -1;
  }

  .order-channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-lines {
    min-height: 190px;
    max-height: 360px;
  }

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

  .controls-grid label:nth-child(1),
  .controls-grid label:nth-child(2),
  .controls-grid label:nth-child(3),
  .controls-grid label:nth-child(4),
  .controls-grid label:nth-child(5),
  .controls-grid label:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}