:root {
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --ink: #10201d;
  --muted: #6b7a76;
  --bg: #f5f8f7;
  --panel: #ffffff;
  --line: #dce7e4;
}

/* Shared operational controls and portrait ordering. */
.panel-heading { flex-wrap: wrap; gap: 12px; }
.table thead th { background: #eff5f3; color: #354d46; font-size: .8rem; padding: 14px 12px; white-space: nowrap; }
.table td { padding: 14px 12px; }
.form-label { font-weight: 600; font-size: .85rem; }
.form-control, .form-select { min-height: 44px; border-color: #cbdad4; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 16px 0; }
.pagination a { display: block; padding: 8px 14px; border: 1px solid #cbdad4; border-radius: 6px; text-decoration: none; }
.pagination .active a { background: #0f766e; color: white; }
.kitchen-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.kitchen-queue .panel { margin: 0; }
.customer-flow main { max-width: 540px; margin: 0 auto; }
.customer-flow .menu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.customer-flow .menu-hero { min-height: 220px; padding: 24px; }
.customer-flow .menu-hero h1 { font-size: 28px; }
.customer-flow .menu-card .menu-image { height: 220px; width: 100%; aspect-ratio: auto; }
.customer-flow .menu-card .menu-body { min-width: 0; }
.customer-flow .menu-body > .d-flex { flex-wrap: wrap; }
.customer-flow .category-tabs { display: flex; flex-wrap: wrap; }
.customer-flow .col-lg-6, .customer-flow .col-md-7, .customer-flow .col-md-5 { width: 100%; }
.customer-flow .table-responsive { overflow: visible; }
.customer-flow table, .customer-flow tbody, .customer-flow tr, .customer-flow td { display: block; width: 100%; }
.customer-flow thead { display: none; }
.customer-flow tr { border-bottom: 1px solid #dce7e4; padding: 12px 0; }
.customer-flow td { border: 0; padding: 6px 0; }
.customer-flow textarea { width: 100%; }
.customer-flow .navbar-nav { flex-wrap: wrap; }
@media (max-width: 575px) { .customer-flow .menu-hero { margin: 0 0 16px; } .page-title { font-size: 26px; } }

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-page {
  background: #f7faf9;
  color: var(--ink);
  margin: 0;
}

.landing-page a {
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.landing-page a:hover {
  transform: translateY(-1px);
}

.landing-nav {
  align-items: center;
  background: rgba(247, 250, 249, .88);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(8, 47, 42, .16);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: clamp(1rem, 3vw, 2rem);
  padding: .65rem .75rem;
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: 1rem;
  z-index: 20;
}

.landing-brand,
.landing-nav-links,
.landing-actions,
.landing-pill-row,
.landing-trust,
.landing-section-head,
.landing-cta {
  align-items: center;
  display: flex;
}

.landing-brand {
  color: var(--ink);
  gap: .65rem;
  text-decoration: none;
}

.landing-brand span {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.landing-brand strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.landing-nav-links {
  gap: .25rem;
}

.landing-nav-links a {
  border-radius: 8px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 850;
  padding: .62rem .75rem;
  text-decoration: none;
}

.landing-nav-links a:hover {
  background: #e6f4f1;
  color: var(--brand-dark);
}

.landing-nav-links .landing-login {
  background: var(--ink);
  color: #fff;
}

.landing-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(5, 27, 24, .93), rgba(15, 76, 69, .77) 45%, rgba(245, 158, 11, .18)),
    url("images/restaurant-hero.png");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: grid;
  gap: clamp(1rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: min(820px, 96vh);
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 4.5rem) clamp(2rem, 7vw, 5rem);
}

.landing-hero-content {
  max-width: 890px;
}

.landing-pill-row {
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.landing-pill-row span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #ecfdf5;
  font-size: .82rem;
  font-weight: 850;
  padding: .38rem .65rem;
}

.landing-kicker {
  color: #0f766e;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

.landing-hero .landing-kicker,
.landing-band .landing-kicker,
.landing-cta .landing-kicker {
  color: #a7f3d0;
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.85rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .96;
  margin: 0;
  max-width: 1020px;
}

.landing-lead {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  margin: 1.2rem 0 0;
  max-width: 720px;
}

.landing-actions {
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.landing-primary,
.landing-secondary {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-width: 144px;
  padding: .88rem 1.08rem;
  text-decoration: none;
}

.landing-primary {
  background: #facc15;
  color: #17201e;
}

.landing-primary:hover {
  background: #fde047;
  color: #17201e;
}

.landing-secondary {
  border: 1px solid rgba(255, 255, 255, .56);
  color: #fff;
}

.landing-secondary:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.landing-trust {
  border-top: 1px solid rgba(255, 255, 255, .22);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 2rem;
  max-width: 640px;
  padding-top: 1rem;
}

.landing-trust strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.landing-trust span {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-size: .82rem;
  font-weight: 750;
  margin-top: .2rem;
}

.landing-hero-panel {
  display: grid;
  gap: .8rem;
}

.landing-special-card,
.landing-menu-card,
.landing-service-grid article,
.landing-flow-grid article {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(16, 32, 29, .08);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(15, 76, 69, .16);
  overflow: hidden;
}

.landing-special-card img,
.landing-menu-card img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.landing-special-card.is-main img {
  aspect-ratio: 4 / 3;
}

.landing-special-card div,
.landing-menu-card div {
  padding: 1rem;
}

.landing-special-card span,
.landing-menu-card span,
.landing-category-list small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 850;
}

.landing-special-card strong {
  color: var(--ink);
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
}

.landing-special-card small {
  color: var(--muted);
  display: block;
  margin-top: .25rem;
}

.landing-special-list {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, 1fr);
}

.landing-special-list div {
  background: rgba(255, 255, 255, .94);
  border-radius: 8px;
  overflow: hidden;
}

.landing-special-list img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.landing-special-list span {
  color: var(--ink);
  display: block;
  font-weight: 900;
  padding: .7rem;
}

.landing-section,
.landing-band,
.landing-cta {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2.8rem, 6vw, 5.4rem) clamp(1rem, 3vw, 2rem);
}

.landing-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.landing-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
}

.landing-stats strong {
  color: var(--brand-dark);
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.landing-stats span {
  color: var(--muted);
  display: block;
  font-weight: 750;
  margin-top: .6rem;
}

.landing-section-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.landing-section-head h2,
.landing-band h2,
.landing-cta h2 {
  font-size: clamp(1.7rem, 3.45vw, 3.1rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  max-width: 760px;
}

.landing-section-head a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 900;
  padding: .72rem .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.landing-section-head a:hover {
  background: #e6f4f1;
}

.landing-menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-menu-card {
  display: flex;
  flex-direction: column;
}

.landing-menu-card img {
  aspect-ratio: 4 / 3;
}

.landing-menu-card h3,
.landing-service-grid h3,
.landing-flow-grid h3 {
  font-size: 1.07rem;
  font-weight: 950;
  margin: .25rem 0 .45rem;
}

.landing-menu-card p,
.landing-service-grid p,
.landing-flow-grid p,
.landing-cta p,
.landing-band p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.landing-menu-card strong {
  color: var(--brand-dark);
  display: block;
  font-size: 1.18rem;
  margin-top: .9rem;
}

.landing-band {
  background:
    linear-gradient(120deg, rgba(19, 78, 74, .96), rgba(15, 118, 110, .88)),
    url("images/menu-pelengkap-minuman.png");
  background-position: center;
  background-size: cover;
  color: #fff;
  max-width: none;
}

.landing-band > div {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.landing-band p {
  color: rgba(255, 255, 255, .82);
  margin-top: .8rem;
  max-width: 700px;
}

.landing-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
  max-width: 1180px;
}

.landing-service-grid article {
  box-shadow: none;
  padding: 1rem;
}

.landing-service-grid span {
  color: var(--brand);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-flow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.landing-flow-grid article {
  box-shadow: none;
  padding: 1rem;
  position: relative;
}

.landing-flow-grid span {
  align-items: center;
  background: #facc15;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  margin-bottom: .8rem;
  width: 36px;
}

.landing-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.landing-category-list span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  min-width: 180px;
  padding: .9rem 1rem;
}

.landing-cta {
  background:
    linear-gradient(90deg, rgba(7, 39, 35, .95), rgba(15, 118, 110, .84)),
    url("images/menu-bebek-goreng.png");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  color: #fff;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.landing-cta p {
  color: rgba(255, 255, 255, .84);
  margin-top: .75rem;
}

.app-shell {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  margin: 0;
}

.panel,
.metric-card,
.menu-card,
.ticket-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 76, 69, .06);
}

.panel {
  padding: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.panel-heading h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.metric-card {
  min-height: 96px;
  padding: 1rem;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: .85rem;
  margin-bottom: .35rem;
}

.metric-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.status-badge {
  background: #e6f4f1;
  border: 1px solid #b7ddd5;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  padding: .2rem .55rem;
  text-transform: capitalize;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
}

.chart-box {
  min-height: 220px;
}

.connection-dot {
  background: #22c55e;
  border-radius: 999px;
  display: inline-block;
  height: .65rem;
  width: .65rem;
}

.connection-dot.offline {
  background: #f97316;
}

.login-page {
  background:
    linear-gradient(120deg, rgba(19, 78, 74, .88), rgba(15, 118, 110, .7)),
    url("images/restaurant-hero.png");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

.login-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-panel {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
  max-width: 460px;
  padding: clamp(1.25rem, 4vw, 2rem);
  width: 100%;
}

.login-panel h1 {
  font-weight: 900;
}

.demo-box {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: grid;
  gap: .2rem;
  padding: .8rem;
}

.category-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .35rem;
}

.category-tabs button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  padding: .55rem .9rem;
  white-space: nowrap;
}

.category-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.menu-hero {
  background:
    linear-gradient(90deg, rgba(15, 76, 69, .92), rgba(15, 118, 110, .45)),
    url("images/restaurant-hero.png");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 1rem;
  min-height: 240px;
  padding: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: end;
}

.menu-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 950;
  max-width: 720px;
}

.menu-hero p {
  max-width: 580px;
}

.menu-card {
  overflow: hidden;
}

.menu-image {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ccfbf1, #fef3c7);
  color: var(--brand-dark);
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  justify-content: center;
}

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

.menu-body {
  padding: 1rem;
}

.menu-body h2 {
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 .35rem;
}

.menu-body p {
  color: var(--muted);
  min-height: 48px;
}

.receipt-page {
  background: #eef2f1;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.receipt-paper {
  margin: 24px auto;
  max-width: 360px;
}

.receipt {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  padding: 14px;
}

.receipt-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-print,
.btn-back {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: 700 14px system-ui, sans-serif;
  padding: 9px 12px;
  text-decoration: none;
}

.btn-back {
  background: #475569;
}

.receipt-header,
.receipt-footer {
  text-align: center;
}

.receipt-header h1 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.receipt-header p,
.receipt-footer p,
.receipt-note {
  font-size: 11px;
  margin: 2px 0;
}

.receipt-line {
  border-top: 1px dashed #111;
  margin: 10px 0;
}

.receipt-meta,
.receipt-totals {
  display: grid;
  font-size: 11px;
  grid-template-columns: 92px 1fr;
  margin: 0;
}

.receipt-meta dt,
.receipt-totals dt {
  font-weight: 700;
}

.receipt-meta dd,
.receipt-totals dd {
  margin: 0;
  text-align: right;
}

.receipt-items {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

.receipt-items th,
.receipt-items td {
  padding: 3px 0;
  vertical-align: top;
}

.receipt-items th:nth-child(2),
.receipt-items td:nth-child(2) {
  text-align: center;
  width: 34px;
}

.receipt-items th:last-child,
.receipt-items td:last-child {
  text-align: right;
  width: 92px;
}

.receipt-items small {
  display: block;
  color: #444;
}

.receipt-totals .grand {
  font-size: 13px;
  font-weight: 900;
}

@media print {
  @page {
    margin: 0;
    size: 80mm auto;
  }

  .no-print {
    display: none !important;
  }

  .receipt-page {
    background: #fff;
  }

  .receipt-paper {
    margin: 0;
    max-width: none;
    width: 80mm;
  }

  .receipt {
    box-shadow: none;
    padding: 4mm;
  }
}

.kds-header {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem;
}

.kds-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  overflow-x: auto;
}

.kds-column {
  background: #e5e7eb;
  border-radius: 8px;
  min-height: 72vh;
  padding: .75rem;
}

.kds-column h2 {
  font-size: .95rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

.ticket-card {
  margin-bottom: .75rem;
  padding: .85rem;
}

.ticket-status-new {
  border-color: #f59e0b;
}

.ticket-status-processing,
.ticket-status-accepted {
  border-color: #2563eb;
}

.ticket-status-ready {
  border-color: #22c55e;
}

.ticket-status-problem {
  border-color: #ef4444;
  background: #fff7f7;
}

.ticket-status-completed {
  border-color: #94a3b8;
  opacity: .82;
}

.ticket-card.warning {
  border-color: #facc15;
}

.ticket-card.overdue {
  border-color: #ef4444;
  box-shadow: 0 10px 28px rgba(239, 68, 68, .12);
}

.timer {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.dark-kds {
  background: #030712;
}

.dark-kds .kds-column {
  background: #111827;
}

.dark-kds .kds-column h2,
.dark-kds .ticket-card {
  color: #e5e7eb;
}

.dark-kds .ticket-card {
  background: #1f2937;
  border-color: #374151;
}

@media (max-width: 768px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    left: .75rem;
    padding: .7rem;
    position: absolute;
    right: .75rem;
    top: .75rem;
  }

  .landing-nav-links {
    gap: .25rem;
    overflow-x: auto;
    padding-bottom: .1rem;
    width: 100%;
  }

  .landing-nav-links a {
    font-size: .88rem;
    padding: .48rem .58rem;
    white-space: nowrap;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 8.7rem 1rem 1.6rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
  }

  .landing-trust {
    align-items: flex-start;
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-trust strong {
    font-size: 1.12rem;
  }

  .landing-trust span {
    font-size: .74rem;
  }

  .landing-special-card.is-main {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
  }

  .landing-special-card.is-main img {
    aspect-ratio: auto;
    height: 100%;
  }

  .landing-special-list,
  .landing-stats,
  .landing-menu-grid,
  .landing-service-grid,
  .landing-flow-grid {
    grid-template-columns: 1fr;
  }

  .landing-section-head,
  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-section-head a,
  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-menu-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .landing-menu-card img {
    aspect-ratio: auto;
    height: 100%;
  }

  .landing-category-list span {
    width: 100%;
  }

  .metric-card {
    min-height: 84px;
  }

  .panel {
    padding: .85rem;
  }

  .kds-board {
    grid-template-columns: repeat(4, 82vw);
  }
}
