﻿:root {
  --brand-navy: #061b49;
  --brand-blue: #1267f1;
  --brand-sky: #0aa2ff;
  --brand-green: #11d68b;
  --brand-teal: #02bfa5;
  --brand-purple: #6957e8;
  --brand-ink: #06152f;
  --brand-muted: #64748b;
  --brand-line: #d8e7f5;
  --brand-soft: #f4f9ff;
  --brand-surface: #ffffff;
  --brand-shadow: 0 16px 44px rgba(6, 27, 73, 0.12);
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 16px;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(17, 214, 139, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(10, 162, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #eaf4ff 0%, #eefcff 44%, #effff7 100%);
  background-attachment: fixed;
}
/* Topbar branding */
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px }
.brand { display:flex; align-items:center; gap:12px }
.brand-logo { max-height:54px; width:auto; border-radius:10px; object-fit:contain; background:#fff; box-shadow:0 10px 24px rgba(6,27,73,.10) }
.brand-name { font-weight:900; color:var(--brand-navy); font-size:1.32rem; text-decoration:none; letter-spacing:0 }
.login-page { display:flex; justify-content:center; align-items:center; min-height:60vh }
.login-card { background:#fff; border:1px solid #d7e0f4; padding:20px; border-radius:12px; width:320px }
.login-card h2 { margin-top:0 }
.small-note { color:#556; font-size:0.9rem; margin-top:6px }
.orders-printer-panel {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #d7e0f4;
  border-radius: 8px;
  background: #fff;
}
.orders-printer-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.orders-printer-panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.landing-page { min-height: calc(100vh - 88px); display:flex; align-items:center; justify-content:center; padding: 24px; background: linear-gradient(180deg, #f5f9ff 0%, #e8effb 100%); }
.landing-card { width: min(560px, 100%); background: #fff; border-radius: 24px; padding: 42px 36px; box-shadow: 0 24px 80px rgba(15,42,90,0.12); border: 1px solid rgba(34,56,86,0.08); text-align: center; }
.landing-logo { max-height: 110px; margin-bottom: 18px; }
.landing-card h1 { margin: 0 0 18px; font-size: 2.4rem; color: #1f3f61; }
.landing-card p { color: #475d76; font-size: 1rem; line-height: 1.7; margin: 0 0 24px; }
.landing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 16px; }
.landing-button { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.landing-button.primary { background: #2465df; color: #fff; }
.landing-button.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(36,101,223,0.24); }
.landing-button.secondary { background: #eef2f8; color: #1f3f61; border: 1px solid #d7e0ea; }
.landing-note { font-size: .95rem; color: #6b7a92; margin: 0; }

.settings-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
/* Flash messages */
.flash-messages { max-width:980px; margin: 12px auto; display:flex; flex-direction:column; gap:8px }
.flash { padding:10px 14px; border-radius:8px; border:1px solid transparent }
.flash.info { background:#eef6ff; color:#0b3a66; border-color:#cfe3ff }
.flash.error { background:#fff1f0; color:#7a1f1f; border-color:#ffd6d6 }
.flash.success { background:#f0fff4; color:#0b4d2e; border-color:#cdefd6 }

.cash-required-notice {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-weight: 700;
}

.customer-form,
.duplicate-cleaner {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #d7e0f4;
  border-radius: 8px;
  background: #fff;
}

.customer-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}

.customer-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.customer-form input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.duplicate-cleaner h2 {
  margin-top: 0;
}

.duplicate-cleaner button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.duplicate-cleaner button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.duplicate-groups {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.duplicate-group {
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
}

.online-product-fields,
.product-online-editor {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.online-product-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.online-product-fields legend,
.product-online-editor summary {
  color: var(--brand-navy);
  font-weight: 900;
}

.online-product-fields label,
.product-online-editor label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

.online-product-fields input,
.online-product-fields textarea,
.product-online-editor input,
.product-online-editor textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.product-online-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.product-online-row small {
  display: block;
  color: #64748b;
}

.product-online-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8e7f5;
  background: #e2e8f0;
}

.product-online-current-image {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-weight: 800;
}

.product-online-current-image img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8e7f5;
  background: #e2e8f0;
}

.product-online-current-image-preview {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--brand-green);
  background: #e2e8f0;
}

.product-online-editor form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-online-editor button {
  align-self: end;
}

.product-online-edit-link {
  display: inline-flex;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--brand-navy);
  font-weight: 900;
  text-decoration: none;
}

.product-online-edit-page {
  display: grid;
  gap: 16px;
}

.product-online-edit-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.product-online-edit-header h1 {
  margin-bottom: 4px;
}

.product-online-edit-header p {
  margin: 0;
  color: #64748b;
}

.product-online-edit-header a {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--brand-navy);
  font-weight: 900;
  text-decoration: none;
}

.product-online-edit-form {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-online-photo-panel,
.product-online-fields-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 27, 73, 0.08);
}

.product-online-photo-panel img,
.product-online-photo-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid #d8e7f5;
  object-fit: cover;
  background: #e2e8f0;
}

.product-online-photo-empty {
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 900;
}

.product-online-photo-panel label,
.product-online-fields-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.product-online-photo-panel input,
.product-online-fields-panel input,
.product-online-fields-panel textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.product-online-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.product-online-fields-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.desktop-image-picker {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #d8e7f5;
}

.desktop-image-picker h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-navy);
}

.desktop-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.desktop-image-option {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
}

.desktop-image-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
}

.desktop-image-option span,
.desktop-image-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-image-option span {
  font-size: 0.82rem;
  font-weight: 900;
}

.desktop-image-option small {
  color: #64748b;
}

.desktop-image-option button,
.desktop-image-picker > button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-green);
  color: #032019;
  font-weight: 900;
  cursor: pointer;
}

.product-photo-shortcut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px solid rgba(17, 214, 139, 0.36);
  border-radius: 8px;
  background: #effff7;
}

.product-photo-shortcut a,
.product-photo-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand-green);
  color: #032019;
  font-weight: 900;
  text-decoration: none;
}

.product-photo-shortcut span {
  color: #475569;
  font-weight: 700;
}

.product-photo-page {
  display: grid;
  gap: 16px;
}

.product-photo-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.product-photo-header p {
  margin: 4px 0 0;
  color: #64748b;
}

.product-photo-upload,
.product-current-photos,
.product-photo-gallery {
  padding: 16px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 27, 73, 0.08);
}

.product-photo-upload h2,
.product-current-photos h2 {
  margin-top: 0;
}

.product-photo-upload form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.product-photo-upload label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.product-photo-upload select,
.product-photo-upload input,
.desktop-image-option select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.product-photo-upload button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.product-current-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.product-current-photo-grid article {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.product-current-photo-grid img,
.product-current-photo-grid div {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
}

.product-current-photo-grid div {
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 900;
}

.product-current-photo-grid strong {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .product-online-edit-header,
  .product-online-edit-form,
  .product-photo-header,
  .product-photo-upload form {
    grid-template-columns: 1fr;
    display: grid;
  }
}
nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; align-items: center }
nav a { color: #22303b; text-decoration: none; font-weight: 600 }
nav a:hover { color: #1d61c1 }
.settings-link { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: #eef2f8; border: 1px solid #d7e0ea; font-size: 1.1rem }
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
  border: 1px solid #dce6f2;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}
.hero-summary { flex: 1 1 320px; min-width: 280px }
.hero-label {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e7f0ff;
  color: #1d61c1;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-summary h2 { margin: 0 0 12px; font-size: 2rem; }
.hero-summary p { margin: 0 0 18px; color: #4d5d75; line-height: 1.6; }
.hero-status {
  display: grid;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d7e2f3;
  border-radius: 16px;
  padding: 18px;
}
.hero-status div { color: #2b3f56; }
.hero-actions { flex: 0 0 320px; min-width: 280px; }

/* Online menu */
.online-menu-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(17, 214, 139, 0.22), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(18, 103, 241, 0.22), transparent 34%),
    linear-gradient(135deg, #061b49 0%, #0b4ba8 44%, #02bfa5 100%);
}

.online-menu-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.online-menu-hero {
  min-height: 230px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  padding: 28px 0 22px;
}

.online-menu-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.online-menu-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.online-menu-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.55;
}

.online-menu-summary,
.online-menu-closed,
.online-checkout-panel,
.online-product-card,
.online-success-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(6, 21, 47, 0.18);
}

.online-menu-summary {
  min-width: 180px;
  border-radius: 8px;
  padding: 16px;
  color: var(--brand-ink);
}

.online-menu-summary strong,
.online-menu-summary span {
  display: block;
}

.online-menu-summary span {
  margin-top: 8px;
  color: var(--brand-blue);
  font-size: 1.65rem;
  font-weight: 900;
}

.online-menu-summary small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 800;
}

.online-info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.online-info-strip div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.online-info-strip strong {
  color: var(--brand-navy);
}

.online-info-strip span {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.online-menu-closed {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #78350f;
  background: #fffbeb;
  font-weight: 800;
}

.online-order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 18px;
}

.online-category-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 2px;
}

.online-category-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 800;
}

.online-products {
  display: grid;
  gap: 18px;
}

.online-category-section h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.online-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.online-product-card {
  border-radius: 8px;
  padding: 14px;
}

.online-product-card.featured {
  border-color: rgba(17, 214, 139, 0.58);
  box-shadow: 0 18px 54px rgba(17, 214, 139, 0.2);
}

.online-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #e2e8f0;
}

.online-product-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.online-product-main h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.online-product-main p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.35;
}

.online-product-main strong {
  color: var(--brand-blue);
  font-size: 1.05rem;
}

.online-featured-label {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 214, 139, 0.16);
  color: #047857;
  font-size: 0.75rem;
  font-weight: 900;
}

.online-qty-control {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 36px 46px 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.online-qty-control button,
.online-qty-control input {
  border: 0;
  background: #fff;
  color: var(--brand-navy);
  text-align: center;
  font-weight: 900;
}

.online-qty-control button {
  cursor: pointer;
  font-size: 1.05rem;
}

.online-qty-control button:hover {
  background: #eaf4ff;
}

.online-qty-control input {
  width: 46px;
  border-left: 1px solid #d8e7f5;
  border-right: 1px solid #d8e7f5;
}

.online-complements {
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.online-complements summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--brand-navy);
}

.online-complements div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.online-complements label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: #f4f9ff;
}

.online-complements label strong {
  margin-left: auto;
  color: #047857;
}

.online-item-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.online-item-note input,
.online-checkout-panel input,
.online-checkout-panel select,
.online-checkout-panel textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--brand-ink);
  font: inherit;
}

.online-checkout-panel {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 16px;
}

.online-checkout-panel h2 {
  margin: 8px 0 0;
  font-size: 1.18rem;
}

.online-checkout-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.online-address-grid {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.online-total-line,
.online-total-final {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.online-total-line {
  color: #475569;
}

.online-total-final {
  margin: 4px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #d8e7f5;
  font-size: 1.25rem;
  font-weight: 900;
}

.online-total-final strong {
  color: var(--brand-blue);
}

.online-checkout-panel button[type="submit"],
.online-success-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-green);
  color: #032019;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.online-checkout-panel button[type="submit"]:disabled {
  background: #94a3b8;
  color: #fff;
  cursor: not-allowed;
}

.online-success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.online-success-card {
  width: min(460px, 100%);
  border-radius: 8px;
  padding: 26px;
  text-align: center;
}

.online-success-card h1 {
  margin: 14px 0 8px;
  color: var(--brand-navy);
  font-size: 2.4rem;
}

.online-success-card p {
  color: #475569;
  line-height: 1.55;
}

.online-success-total {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f4f9ff;
}

.online-success-total strong {
  color: var(--brand-blue);
  font-size: 1.55rem;
}

@media (max-width: 860px) {
  .online-menu-page {
    width: min(100% - 18px, 640px);
    padding-top: 10px;
  }

  .online-menu-hero {
    min-height: auto;
    display: grid;
    padding: 20px 0 14px;
  }

  .online-menu-hero h1 {
    font-size: 2.55rem;
  }

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

  .online-checkout-panel {
    position: static;
  }

  .online-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .online-product-main {
    display: grid;
  }

  .online-qty-control {
    width: 118px;
  }

  .online-address-grid {
    grid-template-columns: 1fr;
  }
}
.hero-form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid #d7e2f3;
  border-radius: 18px;
  padding: 20px;
}
.hero-form label { font-weight: 700; color: #1f3e63; }
.hero-form input { width: 100%; padding: 12px 14px; border: 1px solid #c3cbd7; border-radius: 10px; }
.hero-form button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.hero-form button:hover { background: #1c4bb2; }

.table-sequence {
  margin-top: 20px;
  padding: 16px;
  background: #f7faff;
  border: 1px solid #d8e6f4;
  border-radius: 16px;
}

.table-sequence-header {
  font-weight: 700;
  margin-bottom: 12px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
}

.table-button {
  padding: 12px 14px;
  border: 1px solid #c3cbd7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-config-form {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.table-config-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1f3e63;
}

.table-config-form input {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
}

.table-config-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: white;
  cursor: pointer;
}

.table-config-form button:hover {
  background: #1c4bb2;
}

.table-button:hover {
  background: #2465df;
  color: #fff;
  border-color: #1c4bb2;
}

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

.printer-config-actions button {
  min-height: 42px;
}

.pos-printer-select {
  grid-column: 1 / -1;
}

.pos-paper-options {
  display: grid;
  gap: 10px;
  border: 1px solid #cdd7e6;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.pos-paper-options legend {
  padding: 0 6px;
  font-weight: 800;
}

.settings-form .pos-paper-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
}

.settings-form .pos-paper-card:has(input:checked) {
  border-color: #2465df;
  background: #eef5ff;
}

.pos-paper-card input {
  width: auto;
}

.pos-paper-card span {
  display: grid;
  gap: 3px;
}

.pos-paper-card small {
  color: #556276;
}

.pos-paper-preview {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px dashed #42526b;
  color: #1d2939;
  background: #fff;
  font-size: .78rem;
}

.pos-paper-preview-80 {
  width: 80px;
}

.pos-paper-preview-58 {
  width: 58px;
}

#printer-config-status {
  min-height: 22px;
  font-weight: 700;
}

.table-selection {
  background: #f7fbff;
  border: 1px solid #dae6f4;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.table-selection p {
  margin: 0 0 18px;
  font-weight: 700;
  color: #1f3e63;
}

.table-selection .table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.table-choice {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c3cbd7;
  background: #fff;
  color: #1f3f61;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.table-choice:hover {
  background: #2465df;
  color: #fff;
  border-color: #1c4bb2;
}

.table-choice {
  position: relative;
  min-height: 76px;
  flex-direction: column;
  gap: 5px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.table-hold-hint {
  display: none;
  font-size: .72rem;
  font-weight: 800;
  color: #64748b;
}

body.android-apk .table-hold-hint,
body.mobile-layout .table-hold-hint {
  display: block;
}

.table-choice:hover .table-hold-hint,
.table-choice.occupied .table-hold-hint {
  color: rgba(255, 255, 255, .86);
}

.table-choice.holding {
  transform: scale(.97);
  border-color: #02bfa5;
  box-shadow: inset 0 0 0 3px rgba(2, 191, 165, .28), 0 10px 24px rgba(2, 191, 165, .18);
}

.table-choice.opening {
  background: linear-gradient(135deg, #1267f1, #02bfa5);
  color: #fff;
  border-color: #02bfa5;
}

.table-selection {
  background: #f7fbff;
  border: 1px solid #dae6f4;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.table-selection p {
  margin: 0 0 18px;
  font-weight: 700;
  color: #1f3e63;
}

.table-count-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.table-count-form label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.table-count-form input {
  width: 100px;
  padding: 10px 12px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
}

.table-count-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: #fff;
  cursor: pointer;
}

.table-count-form button:hover {
  background: #1c4bb2;
}

.customer-create-block {
  border: 1px solid #d7e0f4;
  border-radius: 16px;
  padding: 16px;
  background: #f8faff;
  margin-bottom: 18px;
}

.customer-create-block legend {
  font-weight: 700;
  padding: 0 8px;
}

.customer-create-block label {
  display: block;
  margin: 10px 0 0;
  font-weight: 600;
}

.customer-create-block input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
  margin-top: 6px;
}

.table-selection .table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.table-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c3cbd7;
  background: #fff;
  color: #1f3f61;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.table-choice:hover {
  background: #2465df;
  color: #fff;
  border-color: #1c4bb2;
}

.order-mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.flash-messages {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.flash.error {
  background: #fff0f0;
  color: #8c1c13;
  border-color: #f3c6c2;
}

.order-mode-label {
  font-size: 1.1rem;
  color: #1f3f61;
  font-weight: 700;
}

.mode-back-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f7ff;
  color: #1f3f61;
  text-decoration: none;
  border: 1px solid #d7e0f4;
}

.mode-back-link:hover {
  background: #e7efff;
}

.hidden { display: none; }

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.channel-label {
  color: #4d5d75;
  font-weight: 700;
  white-space: nowrap;
}

.channel-pill {
  border: 1px solid #c3cbd7;
  background: #fff;
  color: #1f3f61;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-pill.active,
.channel-pill:hover {
  background: #2465df;
  color: #fff;
  border-color: #1c4bb2;
}

.container { display: flex; gap: 20px }
.left { flex: 2 }
.right { flex: 1; border-left: 1px solid #ddd; padding-left: 12px }
.products { display: grid; grid-template-columns: 1fr; gap: 8px }
.products .product[hidden] {
  display: none !important;
}
.product { padding: 8px; border: 1px solid #eee }
table.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.cart-table, .cart-table th, .cart-table td {
  border: 1px solid #e4e9ef;
}

.cart-table th,
.cart-table td {
  padding: 10px 12px;
  text-align: left;
}

.cart-table th {
  background: #f7f9fc;
  color: #1f3f61;
}

.cart-table td {
  vertical-align: middle;
}

.cart-product-name {
  font-weight: 900;
  color: #0f172a;
}

.cart-product-complement {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.25;
}

.cart-table button {
  padding: 6px 10px;
  background: #ef4444;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.cart-table button:hover {
  background: #dc2626;
}

.cart-item-notes-row td {
  background: #fbfdff;
  padding-top: 0;
}

.item-notes-label {
  display: block;
  margin: 4px 0 6px;
  color: #475569;
  font-size: .88rem;
  font-weight: 700;
}

.cart-item-notes-row textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.cart-item-notes-row textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .16);
  border-color: #2563eb;
}

.item-print-notes td {
  font-size: .92em;
  font-weight: 700;
  padding-top: 0;
}

.item-print-note-line {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
}

.hidden {
  display: none !important;
}

.ticket-item-name {
  font-weight: 900;
  color: #000;
}

.product-note-block {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.product-name-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.product-name-button:hover,
.product-name-button:focus {
  color: #2563eb;
  outline: none;
  text-decoration: underline;
}

.product-complement-panel {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
  padding: 5px 6px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.products.products-list .product-complement-panel {
  position: absolute;
  left: 8px;
  right: auto;
  top: 46px;
  z-index: 40;
  width: min(330px, calc(100% - 140px));
  max-height: min(128px, 34vh);
  overflow-y: auto;
  box-shadow: 0 14px 26px rgba(15, 23, 42, .16);
}

.product-complement-panel[hidden] {
  display: none;
}

.product-complement-title {
  color: #334155;
  font-size: .78rem;
  font-weight: 900;
}

.product-complement-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  color: #1f2937;
  font-size: .82rem;
}

.product-complement-option input {
  width: 16px;
  height: 16px;
}

.product-complement-option strong {
  color: #047857;
  font-size: .78rem;
  white-space: nowrap;
}

.product-complement-empty {
  color: #64748b;
  font-weight: 700;
}

.product-note-block label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .84rem;
  font-weight: 700;
}

.product-note-input {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  background: #fff;
}

.product-note-input:focus {
  outline: 3px solid rgba(37, 99, 235, .16);
  border-color: #2563eb;
}

.product-extra-price-label {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 800;
  color: #334155;
}

.product-extra-price-input {
  max-width: 140px;
  min-height: 34px;
  padding: 6px 8px;
}

.product-category-filter {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.product-category-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1f3f61;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.product-category-button.active {
  border-color: #1769d1;
  background: #1769d1;
  color: #fff;
}

.comanda {
  max-width: 80mm;
  border: 1px dashed #333;
  padding: 8px;
  margin: 0 auto;
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1.28;
}

.ticket-header {
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  padding: 8px 2px;
  margin: 0 auto 8px;
  text-align: center;
}

.ticket-business {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
}

.ticket-label {
  margin-top: 4px;
  padding: 4px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ticket-number {
  margin: 5px 0;
  font-size: 1.28rem;
  font-weight: 900;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 7px;
  text-align: left;
  font-size: .9rem;
  margin-top: 6px;
}

.ticket-meta-grid span {
  color: #444;
  font-weight: 700;
}

.ticket-meta-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.comanda.printer-80mm {
  width: 80mm;
  max-width: 100%;
}

.comanda.printer-58mm {
  width: 58mm;
  max-width: 100%;
  font-size: 0.85rem;
}

.comanda.printer-58mm .ticket-header {
  padding: 5px;
}

.comanda.printer-58mm .ticket-business {
  font-size: .92rem;
}

.comanda.printer-58mm .ticket-number {
  font-size: 1.12rem;
}

.comanda.printer-58mm .ticket-meta-grid {
  gap: 2px 5px;
  font-size: .78rem;
}

.comanda.printer-58mm table {
  font-size: 0.78rem;
}

.production-ticket {
  font-size: 1.05rem;
  line-height: 1.45;
}

.ticket-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ticket-highlight {
  font-size: 1.25rem;
  font-weight: 800;
}

.ticket-qty {
  width: 56px;
  font-weight: 800;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.cash-report-print {
  max-width: 920px;
  background: #fff;
}

.cash-report-print table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
}

.cash-report-print th,
.cash-report-print td {
  border: 1px solid #d7dbe4;
  padding: 8px;
  text-align: left;
}

.cash-report-print h3 {
  margin-top: 18px;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.action-form {
  display: inline-block;
}

.product-meta {
  margin: 10px 0;
  color: #4a5568;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product.selected {
  border-color: #2465df;
  background: #f3f7ff;
  box-shadow: 0 4px 14px rgba(36, 101, 223, 0.08);
}

.product-qty {
  font-weight: 700;
}

.product-subtotal {
  background: #eef4ff;
  padding: 4px 8px;
  border-radius: 10px;
  color: #1f3f61;
  font-weight: 600;
}

.cart-summary-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cart-summary-card,
.checkout-card {
  background: #fff;
  border: 1px solid #d7e0f4;
  border-radius: 18px;
  padding: 20px;
}

.cart-summary-card h3,
.checkout-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.checkout-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 10px 16px;
  border: 1px solid #c3cbd7;
  border-radius: 999px;
  background: #f7f9fc;
  color: #1f3f61;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: #2465df;
  color: #fff;
  border-color: #1c4bb2;
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

#tab-delivery.checkout-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  column-gap: 14px;
  align-items: start;
}

#tab-delivery .delivery-address-field {
  grid-column: 1;
}

#tab-delivery .delivery-number-field {
  grid-column: 2;
}

#tab-delivery .field-block.full,
#tab-delivery .notice-box,
#tab-delivery .checkbox-row {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  #tab-delivery.checkout-panel.active {
    grid-template-columns: 1fr;
  }

  #tab-delivery .delivery-address-field,
  #tab-delivery .delivery-number-field {
    grid-column: 1;
  }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f5;
}

.summary-row.total {
  font-weight: 700;
  border-bottom: none;
}

.order-form-grid {
  display: grid;
  gap: 16px;
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-block.full {
  grid-column: 1 / -1;
}

.checkbox-row {
  padding-top: 6px;
}

.checkout-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #1f3f61;
}

.checkout-card input,
.checkout-card select,
.checkout-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
  background: #fff;
  color: #1f3f61;
}

.checkout-card textarea {
  min-height: 96px;
  resize: vertical;
}

.checkout-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.checkout-card .button-row button {
  flex: 1;
  min-width: 160px;
}

.notice-box {
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
  color: #1f3e63;
}

.checkout-card {
  min-height: 340px;
  border-radius: 8px;
}

.checkout-panel.active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-panel fieldset {
  grid-column: 1 / -1;
  border: 1px solid #d7e0f4;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.checkout-panel legend {
  padding: 0 6px;
  color: #1f3f61;
  font-weight: 800;
}

.checkout-panel .field-block {
  min-width: 0;
}

.checkout-card input:focus,
.checkout-card select:focus,
.checkout-card textarea:focus {
  outline: 3px solid rgba(36, 101, 223, .16);
  border-color: #2465df;
}

.change-display {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 900;
}

.checkout-card .button-row {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.checkout-card .button-row button {
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .checkout-panel.active {
    grid-template-columns: 1fr;
  }
}

.qty-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #c3cbd7;
  border-radius: 12px;
  background: #fff;
  color: #1f3f61;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #f0f5ff;
  border-color: #2465df;
}

.qty-btn.add {
  color: #1b5ec4;
}

.qty-btn.remove {
  color: #c42b2b;
}

.qty-btn:disabled,
.qty-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f7fb;
  color: #9aa5b4;
  border-color: #d3d9e5;
}

.qty-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 101, 223, 0.18);
}

.cash-inline-form {
  background: #f8f9fb;
  padding: 12px;
  border: 1px solid #cdd4db;
  border-radius: 8px;
  margin-bottom: 16px;
}
.cash-inline-form label {
  display: block;
  margin-bottom: 8px;
}
.cash-inline-form input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 4px;
}
.cash-inline-form button {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #2a7ae2;
  color: white;
  cursor: pointer;
}
.cash-inline-form button:hover {
  background: #185ec1;
}
.cash-status {
  padding: 10px;
  border: 1px solid #dae1e7;
  border-radius: 8px;
  background: #f9fbfd;
  margin-bottom: 16px;
}
.cash-history, .cash-summary {
  margin-top: 24px;
}

.cash-page {
  display: grid;
  gap: 28px;
}

.cash-panel,
.cash-report {
  background: #fff;
  border: 1px solid #d7dbe4;
  border-radius: 10px;
  padding: 20px;
}

.cash-close-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.cash-close-block {
  padding: 18px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #f8fbff;
}

.cash-close-block h2,
.cash-status h2 {
  margin-top: 0;
}

.cash-helper {
  margin: 12px 0 0;
  color: #64748b;
  font-size: .94rem;
}

.cash-pending-warning {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #f4b740;
  border-radius: 8px;
  background: #fff8e1;
  color: #6f4b00;
}

.cash-pending-warning p {
  margin: 0;
}

.cash-pending-warning div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cash-pending-warning a,
.cash-pending-warning span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
  color: #6f4b00;
  font-weight: 700;
  text-decoration: none;
}

.cash-pending-warning .cash-pending-link {
  justify-content: center;
  background: #1f7a4d;
  color: #fff;
}

.cash-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #14532d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cash-print-button:hover {
  background: #166534;
}

.table-choice.occupied {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #92400e;
}

.table-choice.occupied span {
  background: #fed7aa;
  color: #92400e;
}

.table-choice span {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  background: #dcfce7;
  color: #166534;
}

.table-open-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

.fiscal-note-box {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  background: #fbfcfe;
}

.fiscal-note-box h3 {
  margin-top: 0;
}

.fiscal-note-warning {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #9aa4b2;
  font-size: .9rem;
  color: #475569;
}

.cash-action-form {
  margin-top: 16px;
}

.cash-action-form label {
  display: block;
  margin-bottom: 12px;
}

.cash-action-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c7ced8;
  border-radius: 6px;
  margin-top: 6px;
}

.cash-action-form button {
  margin-top: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2267d8;
  color: white;
  cursor: pointer;
}

.cash-action-form button:hover {
  background: #194fae;
}

.cash-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.cash-action-form .cash-print-submit {
  background: #14532d;
}

.cash-action-form .cash-print-submit:hover {
  background: #166534;
}

@media (max-width: 820px) {
  .cash-close-grid {
    grid-template-columns: 1fr;
  }
}

.report-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 22px;
}

.report-summary div {
  background: #f3f6fb;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #d7dbe4;
}

.report-tables {
  display: grid;
  gap: 24px;
}

.report-block table {
  width: 100%;
  border-collapse: collapse;
}

.report-block th,
.report-block td {
  border: 1px solid #d7dbe4;
  padding: 10px;
  text-align: left;
}

.report-block h3 {
  margin-bottom: 12px;
}

.receipt-form {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8dce5;
  border-radius: 10px;
  background: #fbfcfe;
  max-width: 520px;
}

.receipt-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.receipt-form input,
.receipt-form select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #c3c9d4;
  border-radius: 6px;
}

.change-display {
  font-size: 1.1rem;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e6f7e6;
  color: #186b20;
  font-weight: 700;
}

.payment-method-picker {
  display: grid;
  gap: 12px;
}

.payment-picker-title {
  font-weight: 800;
  color: #1f2937;
}

.payment-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.payment-brand-button {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.payment-brand-button:hover,
.payment-brand-button:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
  outline: none;
}

.payment-brand-button.selected {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #065f46;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

.receipt-form button {
  margin-top: 16px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: #2c7be5;
  color: #fff;
  cursor: pointer;
}

.receipt-form button:hover {
  background: #1d61c1;
}

.print-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.receipt-form .print-action-row button {
  margin-top: 0;
}

.fiscal-document-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #f8fafc;
}

.fiscal-document-form label {
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
  flex: 1;
  font-weight: 800;
  color: #1f3e63;
}

.fiscal-document-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3cbd7;
  border-radius: 8px;
  background: #fff;
}

.fiscal-document-form button {
  margin-top: 0;
}

.print-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-weight: 800;
  text-decoration: none;
}

.print-cancel-button:hover,
.print-cancel-button:focus {
  border-color: #ef4444;
  background: #fff1f2;
  color: #991b1b;
  outline: 3px solid rgba(239, 68, 68, .18);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-row button {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: #2c7be5;
  color: #fff;
  cursor: pointer;
}

.button-row button:hover {
  background: #1d61c1;
}

.ticket-print-page {
  background: #f3f6fb;
  color: #111827;
}

.ticket-print-sheet {
  max-width: 92mm;
  margin: 18px auto 40px;
  padding: 0 10px;
}

.ticket-screen-title {
  text-align: center;
  margin: 12px 0;
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid #dbe3ef;
}

.print-toolbar button,
.print-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.print-toolbar button {
  border-color: #1769d1;
  background: #1769d1;
  color: #ffffff;
}

.orders-printer-link {
  border: 0;
  padding: 0;
  background: none;
  color: #1769d1;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.orders-page {
  display: grid;
  gap: 18px;
}

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

.orders-header h1,
.orders-header p {
  margin: 0;
}

.orders-header p {
  color: #536277;
}

.orders-new-link,
.orders-filter-form button,
.orders-filter-form a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5df;
  background: #fff;
  color: #1f2933;
  font-weight: 800;
  text-decoration: none;
}

.orders-new-link,
.orders-filter-form button {
  border-color: #2465df;
  background: #2465df;
  color: #fff;
}

.orders-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #f8fafc;
}

.orders-filter-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #1f3e63;
}

.orders-filter-form select,
.orders-filter-form input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #c3cbd7;
  border-radius: 8px;
  background: #fff;
}

.orders-type-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.orders-type-summary a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #1f3e63;
}

.orders-type-summary strong {
  font-size: 1.6rem;
}

.orders-type-summary span {
  color: #536277;
  font-weight: 800;
}

.orders-section {
  display: grid;
  gap: 10px;
}

.orders-section h2 {
  margin: 0;
  color: #1f3e63;
}

.orders-table td:last-child {
  min-width: 360px;
}

.printer-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .54);
}

.printer-picker-modal {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.pos-printer-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
}

.pos-printer-picker-overlay.active {
  display: grid;
}

.pos-printer-picker-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
  overflow: hidden;
}

.pos-printer-picker-header,
.pos-printer-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf1;
}

.pos-printer-picker-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f3e63;
}

.pos-printer-picker-header button,
.pos-printer-picker-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
  font-weight: 800;
}

.pos-printer-picker-header button {
  width: 38px;
  padding: 0;
  font-size: 1.3rem;
}

.pos-printer-picker-actions {
  justify-content: flex-end;
  border-top: 1px solid #e5eaf1;
  border-bottom: 0;
}

.pos-printer-picker-actions button:last-child {
  border-color: #2465df;
  background: #2465df;
  color: #fff;
}

.pos-printer-picker-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pos-printer-picker-body label,
.pos-printer-picker-body fieldset {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #1f3e63;
}

.pos-printer-picker-body select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #c3cbd7;
  border-radius: 8px;
  background: #fff;
}

.pos-printer-picker-body fieldset {
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  padding: 12px;
}

.pos-printer-picker-body legend {
  grid-column: 1 / -1;
  padding: 0 5px;
}

.pos-printer-picker-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
}

.pos-printer-picker-status {
  min-height: 20px;
  color: #536277;
  font-weight: 700;
}

.web-print-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  place-items: center;
  padding: 15px;
  background: rgba(15, 23, 42, .48);
}

.web-print-dialog-overlay.active {
  display: grid;
}

.web-print-window {
  width: min(1080px, calc(100vw - 30px));
  height: min(680px, calc(100vh - 30px));
  display: grid;
  grid-template-columns: minmax(300px, 38%) minmax(420px, 1fr);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.web-print-preview-pane {
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 24px 18px;
  background: #d7dce3;
}

.web-print-preview-paper {
  width: min(280px, 100%);
  min-height: 560px;
  padding: 0;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .22);
  color: #111827;
  overflow: hidden;
}

.web-print-preview-paper .comanda {
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  font-size: 11px !important;
}

.web-print-preview-paper .comanda.printer-58mm {
  font-size: 10px !important;
}

.web-print-preview-paper .ticket-print-sheet,
.web-print-preview-paper .cash-report-print,
.web-print-preview-paper .fiscal-note-print,
.web-print-preview-paper main {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 8px;
  border: 0;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.25;
  transform: none;
}

.web-print-preview-paper h1,
.web-print-preview-paper h2,
.web-print-preview-paper h3 {
  font-size: 12px;
  margin: 3px 0;
}

.web-print-preview-paper table {
  width: 100%;
  font-size: 10px;
}

.web-print-preview-paper img {
  max-width: 100%;
}

.web-print-settings-pane {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 28px 28px 18px;
  background: #fff;
}

.web-print-dialog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.web-print-dialog-title-row h2 {
  margin: 0;
  color: #202124;
  font-size: 1.45rem;
  font-weight: 500;
}

.web-print-dialog-title-row strong {
  color: #5f6368;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
}

.web-print-dialog-actions button {
  min-height: 38px;
  padding: 8px 17px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  cursor: pointer;
  font-weight: 600;
}

.web-print-setting-row {
  display: grid;
  grid-template-columns: 118px minmax(180px, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0;
}

.web-print-setting-row > span {
  color: #3c4043;
  font-weight: 400;
}

.web-print-setting-row select,
.web-print-setting-row input {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #202124;
  font-size: .94rem;
}

.web-print-custom-pages {
  display: none !important;
}

.web-print-custom-pages.active {
  display: grid !important;
}

.web-print-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
  background: transparent;
  color: #3c4043;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.web-print-more-panel {
  display: none;
  gap: 15px;
}

.web-print-more-panel.active {
  display: grid;
}

.web-print-dialog-status {
  min-height: 20px;
  color: #5f6368;
  font-weight: 500;
}

.web-print-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  background: #fff;
}

.web-print-dialog-actions button:first-child {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff;
}

@media (max-width: 900px) {
  .web-print-window {
    width: min(560px, calc(100vw - 24px));
    height: min(720px, calc(100vh - 24px));
    grid-template-columns: 1fr;
  }

  .web-print-preview-pane {
    display: none;
  }

  .web-print-settings-pane {
    min-width: 0;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .web-print-setting-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .web-print-dialog-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media print {
  body.print-landscape {
    size: landscape;
  }
}

.printer-picker-header,
.printer-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #d7dee6;
}

.printer-picker-header strong {
  font-size: 1.1rem;
}

.printer-picker-header button,
.printer-picker-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  color: #1f2933;
  font-weight: 800;
  cursor: pointer;
}

.printer-picker-list {
  display: grid;
  gap: 8px;
  padding: 14px;
  overflow-y: auto;
}

.printer-picker-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.printer-picker-option:has(input:checked) {
  border-color: #1f7a4d;
  background: #eef9f2;
}

.printer-picker-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.printer-picker-option small {
  color: #637083;
  overflow-wrap: anywhere;
}

.printer-picker-actions {
  border-top: 1px solid #d7dee6;
  border-bottom: 0;
  justify-content: flex-end;
}

.printer-picker-actions [data-printer-picker-confirm] {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

@page {
  size: 80mm 210mm;
  margin: 4mm;
}

@page pos-58mm {
  size: 58mm 210mm;
  margin: 3mm;
}

.delivery-orders-page {
  display: grid;
  gap: 18px;
}

.delivery-orders-header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.delivery-orders-header h1 {
  margin-bottom: 4px;
}

.delivery-orders-header p {
  margin: 0;
  color: #5f6b76;
}

.delivery-orders-sound-button {
  justify-self: center;
  min-height: 52px;
  width: min(360px, 100%);
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #061b49, #1267f1 58%, #02bfa5);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(6, 27, 73, 0.22);
}

.delivery-orders-sound-button.active {
  background: linear-gradient(135deg, #064e3b, #0f9f7f 58%, #02bfa5);
}

.global-order-sound-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #061b49, #1267f1 58%, #02bfa5);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(6, 27, 73, 0.18);
}

.global-order-sound-button.active {
  background: linear-gradient(135deg, #064e3b, #0f9f7f 58%, #02bfa5);
}

.central-store-list {
  display: grid;
  gap: 16px;
}

.central-store-card {
  padding: 16px;
  border: 1px solid #cfe4ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f2fbff);
  box-shadow: 0 10px 24px rgba(6, 27, 73, 0.08);
}

.central-store-title,
.central-store-flags,
.central-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.central-store-title {
  justify-content: space-between;
}

.central-store-title strong {
  color: var(--brand-navy);
  font-size: 1.15rem;
}

.central-store-title span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--brand-navy);
  font-weight: 900;
}

.central-store-links {
  align-items: stretch;
}

.central-store-links a,
.central-store-links code {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8ff;
  color: #061b49;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.central-store-links code {
  width: 100%;
  font-size: .88rem;
}

.delivery-orders-new-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.delivery-orders-new,
.delivery-order-actions a,
.delivery-orders-filter button,
.delivery-orders-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5df;
  background: #fff;
  color: #1f2933;
  text-decoration: none;
  font-weight: 700;
}

.delivery-orders-new,
.delivery-orders-filter button {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

.delivery-orders-new {
  min-width: min(280px, 100%);
  min-height: 44px;
  font-size: 1rem;
}

.delivery-orders-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f8fafc;
}

.delivery-orders-filter label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.delivery-orders-filter select,
.delivery-orders-filter input {
  min-height: 38px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  padding: 7px 9px;
}

.delivery-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-period-summary {
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #eef6ff;
  color: #263849;
}

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

.delivery-order-card,
.delivery-orders-empty {
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.delivery-order-main,
.delivery-order-top,
.delivery-order-customer,
.delivery-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.delivery-order-main {
  justify-content: space-between;
  margin-bottom: 12px;
}

.delivery-order-top {
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.delivery-order-title {
  display: grid;
  gap: 2px;
}

.delivery-order-number {
  color: #12324a;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.delivery-order-number:hover {
  color: #1f7a4d;
  text-decoration: underline;
}

.delivery-order-main .delivery-order-number,
.delivery-order-title strong {
  font-size: 1.1rem;
}

.delivery-order-title span,
.delivery-order-total span,
.delivery-order-customer span,
.delivery-status-current span {
  color: #637083;
  font-size: 0.84rem;
}

.delivery-order-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.delivery-order-total strong {
  color: #17633c;
  font-size: 1.15rem;
}

.delivery-order-customer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 240px);
  padding: 12px 0 0;
}

.delivery-order-customer div {
  display: grid;
  gap: 2px;
}

.delivery-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8eef5;
  font-size: 0.85rem;
  font-weight: 700;
}

.delivery-order-status.status-pending {
  background: #fff3c4;
  color: #7a5300;
}

.delivery-order-status.status-producao {
  background: #fff3c4;
  color: #7a5300;
}

.delivery-order-status.status-expedicao {
  background: #e4edff;
  color: #244f9e;
}

.delivery-order-status.status-entrega {
  background: #f1e8ff;
  color: #5a2ca0;
}

.delivery-order-status.status-recebido,
.delivery-order-status.status-completed {
  background: #dff5e8;
  color: #17633c;
}

.delivery-order-status.status-cancelled {
  background: #fde2e2;
  color: #8f1d1d;
}

.delivery-status-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.delivery-status-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.delivery-status-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.delivery-status-steps form,
.delivery-order-actions form {
  margin: 0;
}

.delivery-status-steps button,
.delivery-order-actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
  font-weight: 700;
}

.delivery-status-steps button.active {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

.delivery-order-actions button {
  color: #8f1d1d;
}

.delete-order-form button,
.inline-delete-order-form button {
  border-color: #dc2626;
  background: #fff1f2;
  color: #991b1b;
}

.delete-order-form button:hover,
.inline-delete-order-form button:hover {
  background: #dc2626;
  color: #fff;
}

.inline-delete-order-form {
  display: inline-flex;
  margin-left: 8px;
}

.inline-delete-order-form button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.delivery-order-actions {
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
}

.delivery-order-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}

.delivery-order-detail div {
  display: grid;
  gap: 2px;
}

.delivery-order-detail span {
  color: #637083;
  font-size: 0.84rem;
}

.delivery-order-detail strong {
  overflow-wrap: anywhere;
}

.delivery-order-note {
  margin: 8px 0 12px;
  padding: 9px 10px;
  border-left: 3px solid #2f80ed;
  background: #eef6ff;
  border-radius: 0 6px 6px 0;
}

.order-detail-page {
  display: grid;
  gap: 16px;
}

.order-detail-header,
.order-detail-actions,
.order-payment-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-detail-header h1 {
  margin-bottom: 3px;
}

.order-detail-header p {
  margin: 0;
  color: #637083;
}

.order-detail-header a,
.order-detail-actions a,
.order-detail-actions button,
.order-payment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5df;
  background: #fff;
  color: #1f2933;
  font-weight: 700;
  text-decoration: none;
}

.order-detail-actions form {
  margin: 0;
}

.order-detail-actions a:first-child,
.order-payment-form button {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

.order-receipt-card {
  display: grid;
  gap: 14px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #fff;
}

.order-receipt-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.order-receipt-title strong {
  font-size: 1.2rem;
}

.order-receipt-title span {
  color: #637083;
  font-weight: 700;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.order-detail-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.order-detail-block h2,
.order-items-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.order-detail-block div {
  display: grid;
  gap: 2px;
}

.order-detail-block span,
.order-total-panel span {
  color: #637083;
  font-size: 0.84rem;
}

.order-detail-block strong {
  overflow-wrap: anywhere;
}

.order-items-panel {
  display: grid;
  gap: 8px;
}

.order-detail-items {
  width: 100%;
  border-collapse: collapse;
}

.order-detail-items th,
.order-detail-items td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
}

.order-detail-items th {
  color: #455260;
  background: #f8fafc;
}

.order-total-panel {
  display: grid;
  justify-content: end;
  gap: 6px;
}

.order-total-panel div {
  display: grid;
  grid-template-columns: 120px 140px;
  gap: 10px;
  align-items: center;
}

.order-total-panel strong {
  text-align: right;
}

.order-total-final {
  padding-top: 8px;
  border-top: 1px solid #d7dee6;
}

.order-total-final strong {
  color: #17633c;
  font-size: 1.2rem;
}

.order-detail-note {
  padding: 10px 12px;
  border-left: 3px solid #2f80ed;
  border-radius: 0 6px 6px 0;
  background: #eef6ff;
}

.order-detail-note p {
  margin: 4px 0 0;
}

.order-detail-actions {
  justify-content: center;
}

.order-detail-actions form {
  margin: 0;
}

.order-detail-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  color: #8f1d1d;
  font-weight: 700;
}

.order-payment-form {
  justify-content: center;
  padding: 12px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f8fafc;
}

.order-payment-form label {
  display: grid;
  gap: 5px;
  min-width: min(320px, 100%);
  font-weight: 700;
}

.order-payment-form select,
.order-payment-form input {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .delivery-orders-new,
  .delivery-orders-filter button,
  .delivery-orders-filter a {
    width: 100%;
  }

  .delivery-orders-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .delivery-filter-actions,
  .delivery-order-customer,
  .delivery-order-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .delivery-order-total {
    justify-items: start;
  }

  .delivery-status-current {
    display: grid;
  }

  .order-detail-header,
  .order-detail-actions,
  .order-payment-form {
    display: grid;
  }

  .order-detail-header a,
  .order-detail-actions a,
  .order-detail-actions button,
  .order-payment-form button {
    width: 100%;
  }

  .order-total-panel {
    justify-content: stretch;
  }

  .order-total-panel div {
    grid-template-columns: 1fr 1fr;
  }

  .order-detail-items {
    font-size: 0.92rem;
  }
}

body.android-apk .delivery-orders-page {
  width: 100%;
  max-width: 100%;
  gap: 12px;
  overflow-x: hidden;
}

body.android-apk .delivery-orders-header {
  text-align: left;
}

body.android-apk .delivery-orders-header h1 {
  display: block;
  margin: 0;
  font-size: 1.45rem !important;
  line-height: 1.15;
}

body.android-apk .delivery-orders-header p {
  font-size: .94rem;
  line-height: 1.35;
}

body.android-apk .delivery-orders-new-row,
body.android-apk .delivery-filter-actions,
body.android-apk .delivery-order-top,
body.android-apk .delivery-order-customer,
body.android-apk .delivery-order-detail,
body.android-apk .delivery-status-current,
body.android-apk .delivery-order-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

body.android-apk .delivery-orders-new,
body.android-apk .delivery-orders-filter button,
body.android-apk .delivery-orders-filter a,
body.android-apk .delivery-order-actions a,
body.android-apk .delivery-order-actions button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: .95rem !important;
  line-height: 1.15;
  white-space: normal;
}

body.android-apk .delivery-orders-filter {
  grid-template-columns: 1fr !important;
  width: 100%;
  padding: 10px;
  gap: 10px;
}

body.android-apk .delivery-orders-filter label,
body.android-apk .delivery-orders-filter select,
body.android-apk .delivery-orders-filter input {
  width: 100%;
  min-width: 0;
}

body.android-apk .delivery-period-summary,
body.android-apk .delivery-order-card,
body.android-apk .delivery-orders-empty,
body.android-apk .delivery-status-panel {
  width: 100%;
  min-width: 0;
  padding: 10px;
}

body.android-apk .delivery-order-card {
  border-radius: 8px;
}

body.android-apk .delivery-order-title,
body.android-apk .delivery-order-total,
body.android-apk .delivery-order-customer div,
body.android-apk .delivery-order-detail div {
  min-width: 0;
}

body.android-apk .delivery-order-number {
  font-size: 1.05rem !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.android-apk .delivery-order-total {
  justify-items: start;
}

body.android-apk .delivery-order-total strong {
  font-size: 1.05rem;
}

body.android-apk .delivery-order-customer strong,
body.android-apk .delivery-order-detail strong,
body.android-apk .delivery-period-summary,
body.android-apk .delivery-order-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.android-apk .delivery-status-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

body.android-apk .delivery-status-steps form {
  width: 100%;
  min-width: 0;
}

body.android-apk .delivery-status-steps button {
  width: 100%;
  min-height: 42px;
  padding: 7px 6px;
  font-size: .88rem !important;
  line-height: 1.1;
  white-space: normal;
}

body.android-apk .delivery-order-actions {
  gap: 8px;
}

body.android-apk .delivery-order-actions form {
  width: 100%;
}

body.android-apk .delivery-order-status {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

body.android-apk .delivery-customer-page {
  display: block;
  min-height: auto;
  width: 100%;
  padding: 0;
  background: transparent;
  overflow-x: hidden;
}

body.android-apk .delivery-customer-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

body.android-apk .delivery-customer-card h1 {
  display: block;
  margin: 0 0 6px;
  font-size: 1.35rem !important;
  line-height: 1.15;
}

body.android-apk .delivery-customer-card > p {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.35;
}

body.android-apk .delivery-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.android-apk .delivery-form .form-section,
body.android-apk .delivery-form .address-fields-row,
body.android-apk .delivery-form .field-block,
body.android-apk .delivery-form label,
body.android-apk .delivery-form .button-row,
body.android-apk .delivery-form .form-progress {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.android-apk .delivery-form .form-section {
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
}

body.android-apk .delivery-form .form-section h3 {
  margin: 0 0 4px;
  font-size: 1.05rem !important;
  line-height: 1.2;
}

body.android-apk .delivery-form .field-block {
  gap: 5px;
  margin-bottom: 8px;
}

body.android-apk .delivery-form .field-block label,
body.android-apk .delivery-form .field-hint,
body.android-apk .delivery-form .progress-text {
  overflow-wrap: anywhere;
}

body.android-apk .delivery-form input,
body.android-apk .delivery-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 16px !important;
}

body.android-apk .delivery-form textarea {
  min-height: 88px;
}

body.android-apk .delivery-form .customer-suggestions {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.android-apk .delivery-form .button-row {
  gap: 8px;
}

body.android-apk .delivery-form .button-row button,
body.android-apk .delivery-form .button-row a {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: .95rem !important;
  line-height: 1.15;
  white-space: normal;
}

@media (max-width: 380px) {
  body.android-apk .delivery-status-steps {
    grid-template-columns: 1fr;
  }
}

@media print {
  .topbar,
  .flash-messages,
  .print-toolbar,
  h1,
  .receipt-form,
  .print-frame {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
    margin: 0;
    padding: 0;
    width: auto;
    min-height: 0;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.25;
  }

  .app-shell,
  main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .comanda {
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: #fff;
    color: #000;
    overflow: visible;
    overflow-wrap: anywhere;
    page-break-inside: avoid;
  }

  .comanda.printer-80mm {
    width: 72mm;
    max-width: 72mm;
  }

  .comanda.printer-58mm {
    page: pos-58mm;
    width: 52mm;
    max-width: 52mm;
    font-size: 9pt;
  }

  .comanda table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    background: #fff;
    table-layout: fixed;
  }

  .comanda th,
  .comanda td {
    border: 0;
    padding: 2px 1px;
    background: #fff !important;
    color: #000;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .comanda th {
    font-size: .8em;
  }

  .ticket-header {
    border-color: #000;
    padding: 4px;
  }

  .ticket-meta-grid {
    grid-template-columns: 14mm 1fr;
  }

  .cash-report-print {
    max-width: none;
  }

  .cash-report-print table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: auto;
  }

  .cash-report-print tr {
    page-break-inside: avoid;
  }

  .cash-report-print th,
  .cash-report-print td {
    border: 1px solid #000;
    padding: 4px;
  }

  .ticket-print-page,
  .ticket-print-sheet {
    background: #fff;
    margin: 0;
    padding: 0;
    max-width: none;
  }
}

.settings-page {
  display: grid;
  gap: 24px;
}

.settings-header {
  padding: 22px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #d7e0f4;
  border-radius: 16px;
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
}

.settings-title .gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cfd8e8;
}

.settings-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-card {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 420px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #1f3e63;
}

.settings-form input,
.settings-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
}

.settings-form textarea {
  min-height: 120px;
  resize: vertical;
}

.settings-form button {
  width: fit-content;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: #fff;
  cursor: pointer;
}

.settings-form button:hover {
  background: #1c4bb2;
}

.commercial-lead {
  max-width: 760px;
  color: #40516a;
  line-height: 1.5;
}

.commercial-quick-actions,
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.commercial-quick-actions a,
.panel-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1267f1, #02bfa5);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 103, 241, .18);
}

.commercial-simple-card,
.commercial-advanced,
.license-generator-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 103, 241, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(6, 27, 73, .08);
}

.commercial-simple-card h3,
.commercial-simple-card p {
  margin-top: 0;
}

.commercial-simple-card form,
.commercial-simple-card {
  display: grid;
  gap: 14px;
}

.commercial-simple-card form {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: end;
}

.commercial-simple-card form button {
  justify-self: start;
}

.commercial-switches {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.commercial-switches label,
.commercial-advanced label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commercial-switches input,
.commercial-advanced input[type="checkbox"] {
  width: auto;
}

.commercial-advanced {
  grid-column: 1 / -1;
  background: rgba(239, 248, 255, .82);
}

.commercial-advanced summary {
  cursor: pointer;
  font-weight: 900;
  color: #061b49;
}

.commercial-advanced[open] {
  display: grid;
  gap: 12px;
}

.commercial-full-form form {
  margin-top: 14px;
}

.license-generator-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  background: #f8fafc;
}

.license-generator-header h3 {
  margin: 0 0 6px;
  color: #1f3e63;
}

.license-generator-header p {
  margin: 0;
  color: #536277;
  line-height: 1.45;
}

.license-generator-form {
  max-width: 900px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.settings-form .checkbox-line {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
}

.settings-form .checkbox-line input {
  width: auto;
}

.license-generator-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #c9d7ec;
  border-radius: 10px;
  background: #fff;
}

.license-generator-result strong,
.license-generator-result span,
.license-generator-result small {
  display: block;
}

.license-generator-result span,
.license-generator-result small {
  color: #536277;
}

.license-key-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.license-key-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #b9c7dd;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: #17365d;
}

.license-key-row button {
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.activation-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.activation-card {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d8e0eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(28, 58, 105, 0.08);
}

.activation-heading span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #2465df;
  text-transform: uppercase;
  font-size: .8rem;
}

.activation-heading h1 {
  margin: 0 0 8px;
  color: #183a61;
}

.activation-heading p {
  margin: 0;
  color: #536277;
  line-height: 1.5;
}

.activation-machine-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #bdd0ea;
  border-radius: 12px;
  background: #f7fbff;
}

.activation-machine-box small {
  color: #536277;
  font-weight: 700;
}

.activation-machine-box strong {
  color: #122f52;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.activation-machine-box button,
.activation-form button {
  width: fit-content;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #2465df;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.activation-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.activation-form label {
  display: grid;
  gap: 8px;
  color: #1f3e63;
  font-weight: 800;
}

.activation-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3cbd7;
  border-radius: 10px;
}

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

.activation-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: #eef2f8;
  color: #1f3e63;
  text-decoration: none;
  font-weight: 800;
}

.settings-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(34, 81, 161, 0.08);
}

.settings-card.active {
  border-color: #2c7be5;
  box-shadow: 0 18px 40px rgba(42, 122, 229, 0.15);
}

.settings-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.settings-card p {
  margin: 0 0 14px;
  color: #4a5568;
  line-height: 1.5;
}

.settings-card small {
  display: block;
  color: #65748b;
}

.settings-panel {
  display: none;
  background: #fff;
  border: 1px solid #d7e0f4;
  border-radius: 16px;
  padding: 22px;
}

.settings-panel-back {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line, #cdd4db);
  border-radius: var(--radius, 8px);
  background: var(--surface-soft, #f7f9fd);
  color: var(--text, #1f3f61);
  font-weight: 800;
  cursor: pointer;
}

.settings-panel-back:hover {
  background: var(--primary-soft, #e7efff);
  border-color: var(--primary, #2465df);
  color: var(--primary, #2465df);
}

.settings-panel.active {
  display: block;
}

.settings-panel h2 {
  margin-top: 0;
}

.settings-panel .panel-links {
  display: grid;
  gap: 10px;
}

.settings-panel .panel-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cdd4db;
  background: #f7f9fd;
  color: #1f3f61;
  text-decoration: none;
}

.settings-panel .panel-links a:hover {
  background: #e7efff;
}

.settings-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.settings-summary div {
  background: #f5f8ff;
  border: 1px solid #dfe6f5;
  border-radius: 12px;
  padding: 16px;
  font-weight: 700;
}

.settings-summary span {
  display: block;
  font-size: 0.95rem;
  color: #5f6d84;
  font-weight: 500;
}

.smartphone-connect-page {
  display: grid;
  gap: 18px;
}

.smartphone-connect-header,
.smartphone-connect-card,
.smartphone-steps {
  background: #fff;
  border: 1px solid #d7e0f4;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(23, 32, 51, .06);
}

.smartphone-connect-header h1,
.smartphone-connect-card h2,
.smartphone-steps h2 {
  margin-top: 0;
}

.smartphone-connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 18px;
}

.smartphone-url-box {
  padding: 14px;
  border: 2px solid #1769d1;
  border-radius: 8px;
  background: #eaf4ff;
  color: #0f3769;
  font-size: 1.45rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.smartphone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.smartphone-actions button,
.smartphone-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1769d1;
  background: #1769d1;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.qr-card {
  text-align: center;
}

.smartphone-qr {
  width: min(260px, 100%);
  height: auto;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 10px;
}

.qr-fallback {
  padding: 24px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #475569;
}

.smartphone-steps ol {
  margin-bottom: 0;
}
.home-page {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 18px;
  min-height: calc(100vh - 84px);
}
.home-hero {
  max-width: 720px;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #d7e0f4;
  border-radius: 24px;
  padding: 42px 32px;
  box-shadow: 0 18px 52px rgba(34, 81, 161, 0.08);
}
.home-hero h1 {
  margin: 0 0 16px;
  font-size: 3rem;
}
.home-hero p {
  margin: 0 0 26px;
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 22px;
  background: #2465df;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
}
.home-button.secondary {
  background: #f3f7ff;
  color: #214a8c;
  border: 1px solid #d7e0f4;
}
.home-button:hover {
  opacity: 0.95;
}

.home-online-orders {
  width: min(1100px, 100%);
  padding: 18px;
  border: 1px solid #d7e0f4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(34, 81, 161, 0.08);
}

.home-online-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-online-orders-header h2 {
  margin: 0 0 4px;
  color: var(--brand-navy);
}

.home-online-orders-header p {
  margin: 0;
  color: #64748b;
}

.home-online-orders-header a,
.home-online-orders-header button,
.home-online-order-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 900;
}

.home-online-orders-header button {
  border: 0;
  cursor: pointer;
}

.home-online-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-online-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.home-online-order-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e7f5;
  border-radius: 10px;
  background: #f8fbff;
}

.home-online-order-card.online-source {
  border-color: rgba(17, 214, 139, 0.5);
  background: linear-gradient(145deg, #f0fff8, #f8fbff);
}

.home-online-order-card.new-order {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16), 0 16px 40px rgba(245, 158, 11, 0.12);
}

.home-online-order-top,
.home-online-order-grid,
.home-online-order-actions {
  display: grid;
  gap: 8px;
}

.home-online-order-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.home-online-order-top strong {
  display: block;
  color: var(--brand-navy);
}

.home-online-order-top span,
.home-online-order-grid span {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-online-order-top em {
  padding: 6px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-style: normal;
  font-weight: 900;
  font-size: 0.82rem;
}

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

.home-online-order-grid div {
  min-width: 0;
}

.home-online-order-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.home-online-order-card p {
  margin: 0;
  color: #334155;
}

.home-online-order-actions {
  grid-template-columns: repeat(3, 1fr);
}

.home-online-acceptance {
  display: grid;
  gap: 8px;
}

.home-online-acceptance form:first-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-online-acceptance form:last-child {
  display: grid;
}

.home-online-acceptance button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 900;
  cursor: pointer;
}

.home-online-acceptance form:first-child button {
  background: var(--brand-green);
  color: #032019;
}

.home-online-acceptance form:first-child button:nth-child(3) {
  background: var(--brand-blue);
  color: #fff;
}

.home-online-acceptance form:first-child button:nth-child(4) {
  background: #0f766e;
  color: #fff;
}

.home-online-acceptance form:last-child button {
  background: #fee2e2;
  color: #991b1b;
}

.delivery-order-card.new-order {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14), 0 14px 34px rgba(245, 158, 11, 0.10);
}

.delivery-order-actions form[action*="/accept"],
.delivery-order-actions form[action*="/aceitar"],
.delivery-order-actions form[action*="/reject"],
.delivery-order-actions form[action*="/recusar"] {
  display: contents;
}

.delivery-order-actions form[action*="/accept"] button,
.delivery-order-actions form[action*="/aceitar"] button,
.delivery-order-actions form[action*="/reject"] button,
.delivery-order-actions form[action*="/recusar"] button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  padding: 9px 11px;
  font-weight: 800;
  cursor: pointer;
}

.delivery-order-actions form[action*="/accept"] button,
.delivery-order-actions form[action*="/aceitar"] button {
  background: #0f766e;
  color: #fff;
}

.delivery-order-actions form[action*="/accept"] button[value="comanda"],
.delivery-order-actions form[action*="/aceitar"] button[value="comanda"] {
  background: var(--brand-blue);
  color: #fff;
}

.delivery-order-actions form[action*="/accept"] button[value="producao"],
.delivery-order-actions form[action*="/aceitar"] button[value="producao"] {
  background: #7c3aed;
  color: #fff;
}

.delivery-order-actions form[action*="/reject"] button,
.delivery-order-actions form[action*="/recusar"] button {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.home-online-order-actions a:nth-child(2) {
  background: var(--brand-blue);
  color: #fff;
}

.home-online-order-actions a:nth-child(3) {
  background: var(--brand-green);
  color: #032019;
}

.home-online-orders-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

/* Delivery Customer Page */
.delivery-customer-page {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8effb 100%);
}

.delivery-customer-card {
  width: min(600px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 24px 80px rgba(15, 42, 90, 0.12);
  border: 1px solid rgba(34, 56, 86, 0.08);
}

.delivery-customer-card h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  color: #1f3f61;
}

.delivery-customer-card > p {
  margin: 0 0 24px;
  color: #475d76;
  font-size: 0.95rem;
}

.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  border: 1px solid #e7f0ff;
  border-radius: 16px;
  padding: 20px;
  background: #f9fbff;
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #1f3f61;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.field-block.full {
  grid-column: 1 / -1;
}

.field-block label {
  font-weight: 700;
  color: #1f3f61;
  font-size: 0.95rem;
}

.field-block input,
.field-block textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7e0f4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-block input:focus,
.field-block textarea:focus {
  outline: none;
  border-color: #2465df;
  box-shadow: 0 0 0 3px rgba(36, 101, 223, 0.1);
}

.field-block textarea {
  resize: vertical;
  min-height: 80px;
}

.field-hint {
  display: block;
  font-size: 0.85rem;
  color: #7a8fa3;
  margin-top: -4px;
}

#search-customer-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d7e0f4;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #f9fbff;
}

.customer-suggestions {
  position: relative;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7e0f4;
  box-shadow: 0 8px 24px rgba(34, 81, 161, 0.08);
}

.customer-suggestions:empty {
  display: none;
}

.suggestion-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e7f0ff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f3f7ff;
}

.suggestion-item strong {
  display: block;
  color: #1f3f61;
  font-weight: 700;
}

.suggestion-item small {
  display: block;
  color: #7a8fa3;
  font-size: 0.85rem;
  margin-top: 4px;
}

.suggestion-item .suggestion-id {
  color: #1f6feb;
  font-weight: 700;
}

.dedupe-customer-btn {
  margin-top: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dedupe-customer-btn:hover {
  background: #991b1b;
}

.dedupe-customer-btn:disabled {
  background: #94a3b8;
  cursor: wait;
}

.no-results {
  padding: 16px;
  text-align: center;
  color: #7a8fa3;
  font-size: 0.9rem;
}

.form-progress {
  background: linear-gradient(135deg, #eef6ff 0%, #f9fbff 100%);
  border: 1px solid #d7e0f4;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 0;
}

.progress-bar {
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #2465df 0%, #1d61c1 100%);
  border-radius: 999px;
  margin-bottom: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  display: block;
  font-size: 0.85rem;
  color: #475d76;
  font-weight: 600;
}

.btn-primary,
.btn-secondary {
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  text-decoration: none;
}

.btn-primary {
  background: #2465df;
  color: #fff;
}

.btn-primary:hover {
  background: #1d61c1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 101, 223, 0.24);
}

.btn-secondary {
  background: #f3f7ff;
  color: #1f3f61;
  border: 1px solid #d7e0f4;
}

.btn-secondary:hover {
  background: #eef4ff;
  border-color: #c3cbd7;
}

/* Fieldset styling for forms */
fieldset {
  border: 1px solid #d7e0f4;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  background: #f9fbff;
}

fieldset legend {
  font-weight: 700;
  color: #1f3f61;
  padding: 0 8px;
  font-size: 0.95rem;
}

fieldset label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
  color: #1f3f61;
  cursor: pointer;
}

fieldset label input[type="radio"],
fieldset label input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.settings-form fieldset label {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

/* Professional responsive shell */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #647086;
  --line: #d9e0ea;
  --primary: #1f6feb;
  --primary-dark: #1557bd;
  --primary-soft: #eaf2ff;
  --danger: #d92d20;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.10);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 38%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

html.android-apk,
body.android-apk {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: var(--bg);
  font-size: 18px !important;
  line-height: 1.55 !important;
  -webkit-tap-highlight-color: transparent;
}

body.android-apk * {
  -webkit-tap-highlight-color: transparent;
}

body.mobile-layout {
  background: #f3f7fb !important;
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 12px 10px 8px;
  background: #1557a8;
  color: #fff;
  box-shadow: 0 2px 10px rgba(13, 42, 82, .18);
}

.mobile-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-app-header strong {
  display: block;
  min-width: 0;
  font-size: 1.15rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font: inherit;
  font-size: .78rem !important;
  font-weight: 900;
  line-height: 1;
}

.mobile-connection-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,.24);
}

.mobile-connection-status.online span {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.24);
}

.mobile-connection-status.offline span {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,.24);
}

@media (min-width: 900px) {
  body.mobile-layout .mobile-connection-status {
    display: none;
  }
}

.mobile-app-header nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mobile-app-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
}

body.mobile-layout .mobile-main {
  padding-top: 10px !important;
}

body.mobile-layout h1 {
  display: none;
}

body.android-apk .app-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.android-apk main.app-shell {
  padding: 10px 8px 24px !important;
}

body.android-apk .topbar {
  width: 100% !important;
  min-height: auto;
  padding: 8px 8px 6px;
  margin-bottom: 10px;
}

body.android-apk .brand-name {
  font-size: 1.75rem;
  line-height: 1;
}

body.android-apk .nav-actions {
  width: 100%;
  justify-content: flex-start;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

body.android-apk .nav-actions a {
  white-space: nowrap;
  flex: 0 0 auto;
}

body.android-apk .container,
body.android-apk .checkout-panel.active,
body.android-apk #tab-delivery.checkout-panel.active,
body.android-apk .address-fields-row,
body.android-apk .settings-form,
body.android-apk body > main > form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
}

body.android-apk .right,
body.android-apk .left,
body.android-apk .checkout-card,
body.android-apk .cart-summary-card,
body.android-apk .settings-panel,
body.android-apk .cash-panel,
body.android-apk .cash-report,
body.android-apk .delivery-form,
body.android-apk .product-groups,
body.android-apk .search {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.android-apk .right {
  position: static !important;
}

body.android-apk table {
  min-width: 0 !important;
}

body.android-apk .table-responsive,
body.android-apk .cart-table {
  overflow-x: auto;
}

body.android-apk input,
body.android-apk select,
body.android-apk textarea,
body.android-apk button {
  max-width: 100%;
  font-size: 18px !important;
}

body.android-apk .products {
  grid-template-columns: 1fr !important;
}

body.android-apk h1 {
  font-size: 1.85rem !important;
}

body.android-apk h2 {
  font-size: 1.55rem !important;
}

body.android-apk h3 {
  font-size: 1.28rem !important;
}

body.android-apk .nav-actions a,
body.android-apk .panel-links a,
body.android-apk .home-button,
body.android-apk .landing-button,
body.android-apk .cash-print-button,
body.android-apk .print-cancel-button {
  font-size: 18px !important;
  min-height: 46px;
}

body.android-apk .product-main > strong {
  font-size: 1.45rem !important;
}

body.android-apk .product-price,
body.android-apk .product-qty,
body.android-apk .product-subtotal,
body.android-apk .summary-row,
body.android-apk table {
  font-size: 1.05rem !important;
}

body.android-apk .qty-btn {
  width: 56px;
  min-height: 52px;
  font-size: 1.7rem !important;
}

body.android-apk.ticket-print-page {
  background: #f3f6fb;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

body.android-apk.ticket-print-page .ticket-print-sheet {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px;
}

body.android-apk.ticket-print-page .print-toolbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  width: 100%;
  justify-content: stretch;
  gap: 8px;
  padding: 8px;
}

body.android-apk.ticket-print-page .print-toolbar button,
body.android-apk.ticket-print-page .print-toolbar a {
  flex: 1 1 0;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 16px !important;
}

body.android-apk.ticket-print-page .ticket-screen-title {
  font-size: 1.35rem !important;
  margin: 10px 0;
}

body.android-apk.ticket-print-page .comanda {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.42;
}

body.android-apk.ticket-print-page .ticket-header {
  border: 1px solid #111;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
}

body.android-apk.ticket-print-page .ticket-business {
  font-size: 1.1rem;
}

body.android-apk.ticket-print-page .ticket-label {
  font-size: .88rem;
}

body.android-apk.ticket-print-page .ticket-number {
  font-size: 1.25rem;
}

body.android-apk.ticket-print-page .ticket-meta-grid {
  grid-template-columns: 82px 1fr;
  font-size: .95rem;
}

body.android-apk.ticket-print-page .comanda table {
  width: 100%;
  table-layout: auto;
  font-size: .95rem;
}

body.android-apk .orders-printer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 3px 2px;
  padding: 8px 10px;
  border: 1px solid #1769d1;
  border-radius: 8px;
  background: #fff;
  color: #1769d1;
  font-size: 16px !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.app-shell {
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 104px;
  margin: 0 auto 22px;
  padding: 14px 0 12px;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 224, 234, 0.75);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
}

.brand {
  min-width: 0;
  width: 100%;
  justify-content: center;
}
.brand-logo {
  width: 42px;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.brand-name {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-actions a,
.settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #2c394f;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.nav-actions a:hover,
.settings-link:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--primary);
  transform: translateY(-1px);
}
.settings-link {
  margin-left: 0;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

main.app-shell { padding-bottom: 48px; }
h1, h2, h3 { color: var(--text); letter-spacing: 0; }
h1 { margin: 0 0 18px; font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
h2 { margin: 0 0 14px; font-size: 1.35rem; }
h3 { margin: 0 0 10px; font-size: 1.05rem; }
a { color: var(--primary); }

button,
input[type="submit"],
.button-row button,
.settings-form button,
.hero-form button,
.table-count-form button,
.table-config-form button,
.receipt-form button {
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
button:hover,
input[type="submit"]:hover,
.button-row button:hover,
.settings-form button:hover,
.hero-form button:hover,
.table-count-form button:hover,
.table-config-form button:hover,
.receipt-form button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(31, 111, 235, .18);
}
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  min-height: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(31, 111, 235, .14);
  border-color: var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
th {
  background: #eef3f8;
  color: #29364a;
  font-size: .82rem;
  text-transform: uppercase;
}
th, td { border-bottom: 1px solid var(--line); padding: 11px 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover, table tr:hover td { background: #fbfdff; }

.flash-messages { margin-top: 0; }
.flash {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
}

.home-page, .landing-page { min-height: calc(100vh - 140px); }
.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero,
.landing-card,
.settings-header,
.settings-panel,
.cash-status,
.cash-panel,
.cash-report,
.table-selection,
.delivery-customer-card,
.cart-summary-card,
.checkout-card,
.receipt-form,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-hero, .landing-card {
  width: min(840px, 100%);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
}
.home-hero h1, .landing-card h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}
.home-actions, .landing-actions { justify-content: center; gap: 10px; }
.home-button, .landing-button {
  min-width: 148px;
  min-height: 46px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(31, 111, 235, .16);
}
.home-button.secondary, .landing-button.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line);
  box-shadow: none;
}

.container {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
  gap: 22px;
  align-items: start;
}
.left, .right { min-width: 0; }
.right {
  position: sticky;
  top: 92px;
  border-left: 0;
  padding-left: 0;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.product {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .05);
  cursor: pointer;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.product:hover {
  border-color: #8fb3e8;
  background: #eef4ff;
  box-shadow: 0 14px 30px rgba(23, 32, 51, .09);
}
.product:focus,
.product.keyboard-active {
  outline: 4px solid rgba(31, 111, 235, .22);
  outline-offset: 2px;
  border-color: var(--primary);
  background: #eef4ff;
}
.product.selected {
  border-color: var(--primary);
  background: #e8f1ff;
  box-shadow: inset 4px 0 0 var(--primary), 0 12px 28px rgba(31, 111, 235, .10);
}

.products.products-list .product {
  transform: none !important;
}

.product.complement-open {
  z-index: 30;
}

.product-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-top-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.product-main > strong {
  display: block;
  color: #0b4aa2;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  flex: 1;
  text-transform: uppercase;
}

.product-price {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #dbe5f2;
  color: #0f766e;
  font-weight: 900;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
}

.product.selected .product-qty {
  background: #1d4ed8;
  color: #fff;
}

.product-subtotal {
  font-weight: 800;
  color: #334155;
}

.product-actions { margin-top: auto; }
.qty-btn {
  width: 48px;
  min-height: 44px;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 900;
  border-radius: 10px;
}
.qty-btn:focus {
  outline: 4px solid rgba(31, 111, 235, .30);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(31, 111, 235, .16);
  transform: translateY(-1px);
}
.qty-btn.remove, .cart-table button {
  background: #fff;
  border-color: #f0b8b2;
  color: var(--danger);
}
.qty-btn.remove:hover, .cart-table button:hover {
  background: #fff3f1;
  border-color: var(--danger);
  color: var(--danger);
}

.qty-btn.add {
  background: #14532d;
  border-color: #14532d;
  color: #fff;
}

.qty-btn.add:hover {
  background: #166534;
  border-color: #166534;
}

.cart-table, .cart-summary-card, .checkout-card { margin-bottom: 16px; }
.checkout-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab-button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: #2c394f;
}
.tab-button.active, .tab-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.order-mode-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 32, 51, .05);
}
.order-mode-label { font-weight: 900; color: #29364a; }
.mode-back-link { font-weight: 800; text-decoration: none; }

.settings-page { gap: 18px; }
.settings-header { padding: 20px; }
.settings-title .gear { display: none; }
.settings-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.settings-card {
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .05);
}
.settings-card.active, .settings-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(31, 111, 235, .10);
}
.settings-panel { padding: 20px; }
.settings-panel .panel-links { display: flex; flex-wrap: wrap; }
.settings-panel .panel-links a {
  background: var(--primary-soft);
  border-color: #cfe0ff;
  font-weight: 800;
}
.settings-form {
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.settings-form fieldset,
.settings-form > label,
.settings-form .settings-summary,
.settings-form button {
  grid-column: 1 / -1;
}
.settings-summary div, .report-summary div {
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.product-groups,
.product-complement-register,
.search,
body > main > form,
.cash-history,
.cash-report-print,
.report-block,
.delivery-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .05);
  margin-bottom: 16px;
}
body > main > form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}
body > main > form button {
  width: fit-content;
  padding-inline: 18px;
}
.product-category ul, main > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-category li, main > ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.product-category li:last-child, main > ul li:last-child { border-bottom: 0; }

.product-complement-register form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.product-option-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.product-option-forms form {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.product-option-forms form > strong {
  grid-column: 1 / -1;
  color: #1f3f61;
}

.product-complements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

.product-complement-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: .85rem;
  font-weight: 800;
}

.product-complement-chip form {
  display: inline;
  margin: 0;
}

.product-complement-chip button {
  min-height: 22px;
  padding: 0 6px;
  border-radius: 6px;
}
.table-responsive { width: 100%; overflow-x: auto; }

@media (max-width: 980px) {
  .container { grid-template-columns: 1fr; }
  .right { position: static; }
  .products { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 1360px); }
  .topbar { align-items: center; padding-bottom: 10px; }
  .brand { width: 100%; justify-content: center; }
  .nav-actions {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .nav-actions a { white-space: nowrap; }
  .home-hero, .landing-card { padding: 24px; }
  .home-actions, .landing-actions, .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-button, .landing-button, .button-row button {
    width: 100%;
    min-width: 0;
  }
  .settings-grid, .settings-form { grid-template-columns: 1fr; }
  .order-mode-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  th, td { padding: 9px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .products { grid-template-columns: 1fr; }
  .cart-table { font-size: .9rem; }
  .product-category li, main > ul li {
    align-items: flex-start;
    flex-direction: column;
  }
}

.address-fields-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 130px minmax(180px, .8fr);
  gap: 12px;
  align-items: start;
}

.address-fields-row.full {
  grid-column: 1 / -1;
}

#tab-delivery.checkout-panel.active {
  grid-template-columns: minmax(0, 1.4fr) 130px minmax(180px, .8fr);
}

#tab-delivery .delivery-address-field {
  grid-column: 1;
}

#tab-delivery .delivery-number-field {
  grid-column: 2;
}

#tab-delivery .delivery-complement-field {
  grid-column: 3;
}

@media (max-width: 820px) {
  .address-fields-row,
  #tab-delivery.checkout-panel.active {
    grid-template-columns: 1fr 120px;
  }

  .address-fields-row .address-street-field,
  #tab-delivery .delivery-address-field {
    grid-column: 1 / -1;
  }

  .address-fields-row .address-number-field,
  #tab-delivery .delivery-number-field {
    grid-column: 1;
  }

  .address-fields-row .address-complement-field,
  #tab-delivery .delivery-complement-field {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .address-fields-row,
  #tab-delivery.checkout-panel.active {
    grid-template-columns: 1fr;
  }

  .address-fields-row .address-street-field,
  .address-fields-row .address-number-field,
  .address-fields-row .address-complement-field,
  #tab-delivery .delivery-address-field,
  #tab-delivery .delivery-number-field,
  #tab-delivery .delivery-complement-field {
    grid-column: 1;
  }
}

.products.products-list {
  grid-template-columns: 1fr;
}

.products.products-list .product {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.products.products-list .product-main {
  grid-column: 1;
  align-items: center;
}

.products.products-list .product-main > strong {
  font-size: 1.22rem;
  text-align: left;
}

.products.products-list .product-meta {
  grid-column: 1;
  margin: 4px 0 0;
}

.products.products-list .product-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 640px) {
  .products.products-list .product {
    grid-template-columns: 1fr;
  }

  .products.products-list .product-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .products.products-list .product-complement-panel {
    position: static;
    width: min(330px, 100%);
    max-height: 150px;
    margin-top: 6px;
  }
}

body.android-apk .order-mode-banner {
  gap: 6px;
  margin-bottom: 8px;
}

body.android-apk .order-mode-label {
  font-size: .95rem;
}

body.android-apk .mode-back-link {
  min-height: 34px;
  padding: 6px 10px;
  font-size: .9rem;
}

body.android-apk #product-launch > h2,
body.android-apk .right > h2 {
  margin: 4px 0 8px;
  font-size: 1.15rem !important;
}

body.android-apk #product-launch {
  padding: 10px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.android-apk .product-category-filter {
  position: sticky;
  top: 0;
  z-index: 4;
  gap: 6px;
  margin: 0 -2px 8px;
  padding: 2px 2px 8px;
  background: #ffffff !important;
}

body.android-apk .product-category-button {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .92rem !important;
  white-space: nowrap;
}

body.android-apk .products.products-list {
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff !important;
}

body.android-apk .products.products-list .product {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  min-height: 0;
  padding: 8px;
  border-radius: 8px;
  border-color: #9fc3ee;
  background: #eaf4ff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  transition: none;
}

body.android-apk .products.products-list .product.selected,
body.android-apk .products.products-list .product.keyboard-active,
body.android-apk .products.products-list .product:focus,
body.android-apk .products.products-list .product:active,
body.android-apk .products.products-list .product:hover {
  background: #eaf4ff !important;
  border-color: #9fc3ee !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

body.android-apk .products.products-list .product-main {
  grid-column: 1;
  align-items: flex-start;
  gap: 6px;
}

body.android-apk .products.products-list .product-name-button {
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.55);
  color: #0b4aa2;
  font-size: 1rem !important;
  line-height: 1.15;
  text-align: left;
}

body.android-apk .products.products-list .product-name-button::after {
  content: '  + comp.';
  color: #2563eb;
  font-size: .72rem;
  font-weight: 900;
}

body.android-apk .products.products-list .product-name-button[aria-expanded="true"] {
  background: #dbeafe;
}

body.android-apk .products.products-list .product-top-badges {
  gap: 4px;
}

body.android-apk .products.products-list .product-main > strong {
  font-size: 1rem !important;
  line-height: 1.15;
  text-align: left;
}

body.android-apk .products.products-list .product-price {
  padding: 3px 6px;
  font-size: .88rem !important;
  border-radius: 6px;
}

body.android-apk .products.products-list .product-meta {
  grid-column: 1;
  margin: 0;
  gap: 5px;
  font-size: .82rem !important;
}

body.android-apk .products.products-list .product-qty,
body.android-apk .products.products-list .product-subtotal {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15, 76, 129, .22);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  font-size: .9rem !important;
  font-weight: 900;
}

body.android-apk .products.products-list .product.selected .product-qty {
  background: #0f6fc6;
  border-color: #0f6fc6;
  color: #fff;
}

body.android-apk .products.products-list .product-subtotal {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

body.android-apk .products.products-list .product:not(.selected) .product-subtotal {
  display: none;
}

body.android-apk .products.products-list .product-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: grid;
  grid-template-columns: 40px 40px;
  align-content: center;
  gap: 5px;
  margin: 0;
}

body.android-apk .products.products-list .product-complement-panel {
  position: absolute;
  left: 8px;
  right: auto;
  top: 44px;
  grid-column: auto;
  z-index: 40;
  width: min(300px, calc(100% - 92px));
  max-height: 174px;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

body.android-apk .products.products-list .product-complement-option {
  min-height: 36px;
  padding: 5px 4px;
  font-size: .9rem !important;
}

body.android-apk .products.products-list .product-complement-option input {
  width: 20px;
  height: 20px;
}

body.android-apk .products.products-list .product-complement-option strong {
  font-size: .84rem !important;
  white-space: nowrap;
}

body.android-apk .products.products-list .product-complement-title {
  margin-bottom: 4px;
  font-size: .82rem !important;
}

body.android-apk .products.products-list .product.complement-open {
  z-index: 2;
}

body.android-apk .products.products-list .action-form {
  display: block;
}

body.android-apk .products.products-list .qty-btn {
  width: 40px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 1.35rem !important;
}

body.android-apk .products.products-list .qty-btn:focus,
body.android-apk .products.products-list .qty-btn:active,
body.android-apk .products.products-list .qty-btn:hover {
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.android-apk .products.products-list .product-note-block {
  grid-column: 1 / -1;
  display: block;
  margin-top: 2px;
}

body.android-apk .products.products-list .product.note-active .product-note-block {
  display: block;
}

body.android-apk .products.products-list .product-note-block label {
  margin-bottom: 3px;
  font-size: .78rem !important;
}

body.android-apk .products.products-list .product-note-input {
  min-height: 34px;
  max-height: 58px;
  padding: 6px 7px;
  font-size: .92rem !important;
}

body.android-apk .cart-summary-grid {
  gap: 8px;
  margin-top: 10px;
}

body.android-apk .cart-summary-card,
body.android-apk .checkout-card {
  padding: 12px;
  border-radius: 8px;
}


@page {
  size: 80mm 210mm;
  margin: 2mm;
}

@page pos-58mm {
  size: 58mm 210mm;
  margin: 2mm;
}

@media print {
  html,
  body {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.25 !important;
  }

  .topbar,
  .flash-messages,
  h1,
  .receipt-form,
  .print-frame {
    display: none !important;
  }

  .app-shell,
  main,
  main.app-shell {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .comanda {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
  }

  .comanda.printer-80mm {
    width: 76mm !important;
    max-width: 76mm !important;
  }

  .comanda.printer-58mm {
    page: pos-58mm;
    width: 54mm !important;
    max-width: 54mm !important;
    font-size: 9pt !important;
  }

  .comanda table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 0 !important;
    background: #fff !important;
    table-layout: fixed !important;
  }

  .comanda th,
  .comanda td {
    border: 0 !important;
    padding: 2px 1px !important;
    background: #fff !important;
    color: #000 !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
  }

  .ticket-header {
    border-color: #000 !important;
    padding: 4px !important;
  }
}

/* vendaplus+ theme */
.app-shell {
  max-width: 1220px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid rgba(18, 103, 241, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(12px);
}

nav a,
.nav-actions a {
  color: var(--brand-navy);
}

.nav-actions a,
.settings-link {
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(18, 103, 241, 0.07);
  border: 1px solid rgba(18, 103, 241, 0.13);
}

nav a:hover,
.nav-actions a:hover {
  color: var(--brand-blue);
  border-color: rgba(17, 214, 139, 0.42);
  background: rgba(17, 214, 139, 0.10);
}

.landing-page {
  background:
    radial-gradient(circle at 30% 0%, rgba(17, 214, 139, 0.14), transparent 34%),
    linear-gradient(145deg, #f7fbff 0%, #eef6ff 58%, #f4fff9 100%);
}

.landing-card,
.login-card,
.hero,
.hero-form,
.hero-status,
.customer-form,
.duplicate-cleaner,
.orders-printer-panel,
.table-sequence,
.settings-card,
.settings-panel,
.order-card,
.summary-card,
.stat-card,
.product-card,
.ticket-preview {
  border-color: rgba(18, 103, 241, 0.14) !important;
  box-shadow: 0 12px 34px rgba(6, 27, 73, 0.08);
}

.landing-logo {
  max-height: 170px;
  max-width: min(390px, 92%);
  object-fit: contain;
}

.landing-card h1,
.hero-summary h2,
h1,
h2,
h3 {
  color: var(--brand-navy);
}

.hero,
.table-sequence {
  background:
    linear-gradient(135deg, rgba(18, 103, 241, 0.075), rgba(17, 214, 139, 0.045) 62%, #fff);
}

.hero-label,
.badge,
.status-pill,
.mobile-connection-status.online {
  color: var(--brand-navy);
  background: rgba(17, 214, 139, 0.14);
  border-color: rgba(17, 214, 139, 0.36);
}

button,
.landing-button,
.button,
.btn,
.btn-primary,
input[type="submit"] {
  border-radius: 10px;
}

button,
.landing-button.primary,
.btn-primary,
input[type="submit"],
.hero-form button,
.table-config-form button,
.duplicate-cleaner button:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #fff;
  border: 0;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(18, 103, 241, 0.20);
}

button:hover,
.landing-button.primary:hover,
.btn-primary:hover,
input[type="submit"]:hover,
.hero-form button:hover,
.table-config-form button:hover {
  background: linear-gradient(135deg, #0757d8, var(--brand-teal));
  box-shadow: 0 12px 28px rgba(17, 214, 139, 0.22);
}

.landing-button.secondary,
.landing-button:not(.primary),
.settings-link {
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--brand-line);
}

input,
select,
textarea {
  border-color: #c7d9ef !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(17, 214, 139, 0.20);
  border-color: var(--brand-green) !important;
}

.mobile-app-header {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  box-shadow: 0 12px 28px rgba(6, 27, 73, 0.18);
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mobile-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 9px;
  background: #fff;
}

.mobile-brand strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.android-apk .topbar,
.android-apk .mobile-app-header {
  border-color: rgba(17, 214, 139, 0.22);
}

.topbar .brand {
  width: auto;
  justify-content: flex-start;
}

.topbar .brand-logo {
  width: auto;
  height: 56px;
  max-height: 56px;
  max-width: 210px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(18, 103, 241, 0.10);
}

.topbar .brand-name {
  font-size: 1.35rem;
  line-height: 1;
  text-transform: none;
  color: var(--brand-navy);
}

/* vendaplus+ full app coverage */
.card,
.panel,
.box,
.section,
.settings-section,
.settings-block,
.settings-grid > *,
.settings-menu a,
.config-card,
.menu-card,
.mode-card,
.dashboard-card,
.cash-card,
.delivery-card,
.customer-card,
.order-row,
.order-detail-card,
.payment-box,
.payment-brand-button,
.product-row,
.product-item,
.cart-panel,
.cart-summary,
.cart-item,
.table-button,
.print-options,
.receipt-form,
.fiscal-card,
.module-card {
  border-color: rgba(18, 103, 241, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(6, 27, 73, 0.07);
}

.settings-menu a:hover,
.menu-card:hover,
.mode-card:hover,
.dashboard-card:hover,
.delivery-card:hover,
.customer-card:hover,
.table-button:hover,
.product-row:hover,
.product-item:hover,
.payment-brand-button:hover {
  border-color: rgba(17, 214, 139, 0.46) !important;
  background: linear-gradient(135deg, rgba(18, 103, 241, 0.08), rgba(17, 214, 139, 0.10)) !important;
  color: var(--brand-navy) !important;
}

.payment-brand-button.selected,
.selected,
.active,
.is-active,
.table-button.active {
  border-color: var(--brand-green) !important;
  background: linear-gradient(135deg, rgba(18, 103, 241, 0.13), rgba(17, 214, 139, 0.18)) !important;
  color: var(--brand-navy) !important;
}

table th,
.table-header,
.list-header {
  background: linear-gradient(135deg, rgba(6, 27, 73, 0.96), rgba(18, 103, 241, 0.92)) !important;
  color: #fff !important;
}

table td,
.list-row {
  border-color: rgba(18, 103, 241, 0.10) !important;
}

.total,
.total-box,
.cart-total,
.summary-total,
.amount-total,
.cash-total {
  color: var(--brand-navy) !important;
  background: linear-gradient(135deg, rgba(17, 214, 139, 0.14), rgba(18, 103, 241, 0.08)) !important;
  border-color: rgba(17, 214, 139, 0.34) !important;
}

.danger,
.btn-danger,
button.danger,
button[name="delete"],
.delete-button {
  background: linear-gradient(135deg, #e11d48, #f43f5e) !important;
  color: #fff !important;
}

.secondary,
.btn-secondary,
button.secondary {
  background: #fff !important;
  color: var(--brand-navy) !important;
  border: 1px solid var(--brand-line) !important;
  box-shadow: none !important;
}

/* vendaplus+ soft backgrounds */
main.app-shell,
.app-shell:not(.topbar) {
  background:
    linear-gradient(135deg, rgba(18, 103, 241, 0.055), rgba(17, 214, 139, 0.045)),
    #f8fbff;
  border-radius: 18px;
  padding: 14px;
}

.landing-card,
.login-card,
.hero-status,
.hero-form,
.customer-form,
.duplicate-cleaner,
.orders-printer-panel,
.settings-card,
.settings-panel,
.settings-section,
.settings-block,
.settings-grid > *,
.config-card,
.menu-card,
.mode-card,
.dashboard-card,
.cash-card,
.delivery-card,
.customer-card,
.order-card,
.order-row,
.order-detail-card,
.payment-box,
.product-card,
.product-row,
.product-item,
.cart-panel,
.cart-summary,
.cart-item,
.table-sequence,
.receipt-form,
.fiscal-card,
.module-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.92) 58%, rgba(242, 255, 249, 0.88)) !important;
}

.summary-card,
.stat-card,
.total-box,
.cart-total,
.summary-total,
.cash-total,
.amount-total {
  background:
    linear-gradient(135deg, rgba(18, 103, 241, 0.12), rgba(17, 214, 139, 0.16)) !important;
}

table,
.table-wrapper,
.list-panel {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(18, 103, 241, 0.12) !important;
}

tbody tr:nth-child(even) td {
  background: rgba(18, 103, 241, 0.035) !important;
}

tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.76) !important;
}

form:not(.receipt-form):not(.hero-form),
.form-panel,
.filter-panel,
.toolbar,
.action-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 248, 255, 0.82)) !important;
  border-color: rgba(18, 103, 241, 0.12) !important;
}

/* stronger vendaplus+ color pass */
body > main.app-shell,
main.app-shell {
  background:
    linear-gradient(145deg, rgba(221, 242, 255, 0.92), rgba(232, 255, 246, 0.88)) !important;
  border: 1px solid rgba(18, 103, 241, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 18px 52px rgba(6,27,73,.08);
}

main section,
main article,
main aside,
main header:not(.mobile-app-header),
.content,
.content-panel,
.page-panel,
.page-section,
.section-panel,
.grid-card,
.info-card,
.info-box,
.summary-box,
.details-box,
.form-card,
.list-card,
.admin-card,
.management-card,
.report-card,
.receipt-card,
.delivery-panel,
.cash-panel,
.product-panel,
.orders-panel,
.customers-panel {
  background:
    linear-gradient(145deg, rgba(238, 248, 255, 0.96), rgba(241, 255, 249, 0.92)) !important;
  border-color: rgba(18, 103, 241, 0.16) !important;
}

div[class*="card"],
div[class*="panel"],
div[class*="box"],
div[class*="section"],
div[class*="summary"],
div[class*="config"],
div[class*="manage"],
div[class*="detail"],
div[class*="customer"],
div[class*="delivery"],
div[class*="product"],
div[class*="cash"],
div[class*="order"] {
  background-color: rgba(239, 248, 255, 0.90);
}

div[class*="card"]:not(.comanda):not(.ticket-header),
div[class*="panel"]:not(.comanda):not(.print-frame),
div[class*="box"]:not(.comanda),
div[class*="section"]:not(.comanda) {
  background-image: linear-gradient(145deg, rgba(240, 249, 255, 0.95), rgba(238, 255, 248, 0.90));
}

.nav-actions,
.button-row,
.actions,
.action-row,
.filters,
.filter-row,
.controls,
.control-row {
  background: rgba(230, 246, 255, 0.72);
  border-color: rgba(18, 103, 241, 0.12);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.94) !important;
}

.comanda,
.ticket-print,
.print-area,
.receipt-print,
.fiscal-note {
  background: #fff !important;
}

/* vendaplus+ smartphone and APK theme */
html.android-apk,
body.android-apk,
body.mobile-layout {
  background:
    radial-gradient(circle at 18% 2%, rgba(17, 214, 139, 0.24), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(10, 162, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #e6f3ff 0%, #edfff8 100%) !important;
}

body.mobile-layout .mobile-app-header,
body.android-apk .mobile-app-header {
  background: linear-gradient(135deg, #061b49 0%, #1267f1 58%, #02bfa5 100%) !important;
  border-bottom: 1px solid rgba(17, 214, 139, 0.35);
  box-shadow: 0 12px 26px rgba(6, 27, 73, 0.22);
}

body.mobile-layout .mobile-app-header nav a,
body.android-apk .mobile-app-header nav a {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.mobile-layout .mobile-main,
body.android-apk main.app-shell,
body.android-apk .app-shell {
  background:
    linear-gradient(145deg, rgba(225, 242, 255, 0.94), rgba(232, 255, 246, 0.92)) !important;
}

body.android-apk .left,
body.android-apk .right,
body.android-apk .checkout-card,
body.android-apk .cart-summary-card,
body.android-apk .settings-panel,
body.android-apk .cash-panel,
body.android-apk .cash-report,
body.android-apk .delivery-form,
body.android-apk .delivery-customer-card,
body.android-apk .delivery-order-card,
body.android-apk .delivery-status-panel,
body.android-apk .product-groups,
body.android-apk .search,
body.android-apk .products.products-list .product,
body.android-apk .cart-summary-card,
body.android-apk .checkout-card {
  background:
    linear-gradient(145deg, rgba(240, 249, 255, 0.96), rgba(237, 255, 248, 0.92)) !important;
  border-color: rgba(18, 103, 241, 0.16) !important;
  box-shadow: 0 10px 26px rgba(6, 27, 73, 0.08);
}

body.android-apk .product-category-button,
body.android-apk .qty-btn,
body.android-apk .nav-actions a,
body.android-apk .panel-links a,
body.android-apk .home-button,
body.android-apk .landing-button,
body.android-apk .cash-print-button,
body.android-apk .print-cancel-button {
  background: linear-gradient(135deg, #1267f1, #02bfa5) !important;
  color: #fff !important;
  border-color: transparent !important;
}

body.android-apk input,
body.android-apk select,
body.android-apk textarea {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(18, 103, 241, 0.24) !important;
}

/* Independent cart scroll for mesa, balcao and delivery */
.container .right {
  align-self: flex-start;
}

.cart-scroll-panel {
  max-height: min(42vh, 390px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(18, 103, 241, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 -10px 16px rgba(6, 27, 73, .03);
}

.cart-scroll-panel .cart-table {
  margin: 0;
}

.cart-scroll-panel .cart-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eff6ff;
}

.cart-scroll-panel::-webkit-scrollbar {
  width: 10px;
}

.cart-scroll-panel::-webkit-scrollbar-track {
  background: #eaf4ff;
  border-radius: 10px;
}

.cart-scroll-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1267f1, #02bfa5);
  border-radius: 10px;
}

@media (min-width: 901px) {
  .container {
    align-items: flex-start;
  }

  .container .right {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding-right: 6px;
  }

  .container .right > h2 {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-top: 0;
    padding: 8px 0;
    background: inherit;
  }
}

@media (max-width: 900px) {
  .cart-scroll-panel {
    max-height: 34vh;
  }
}

body.android-apk .cart-scroll-panel,
body.mobile-layout .cart-scroll-panel {
  max-height: 32vh;
  -webkit-overflow-scrolling: touch;
}

body.android-apk .container .right,
body.mobile-layout .container .right {
  position: static;
  max-height: none;
  overflow: visible;
}

/* Independent product list scroll for mesa, balcao and delivery */
.products.products-list {
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.products.products-list::-webkit-scrollbar {
  width: 10px;
}

.products.products-list::-webkit-scrollbar-track {
  background: #eaf4ff;
  border-radius: 10px;
}

.products.products-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1267f1, #02bfa5);
  border-radius: 10px;
}

@media (min-width: 901px) {
  .container .left {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .products.products-list {
    max-height: 48vh;
  }
}

/* Mobile-first finish for the customer online menu */
@media (max-width: 760px) {
  html:has(.online-menu-body),
  body.online-menu-body {
    overflow-x: hidden;
  }

  .online-menu-body {
    background: linear-gradient(180deg, #063a7a 0%, #0b78a8 38%, #f3f8fb 38%, #f3f8fb 100%);
  }

  .online-menu-page {
    width: 100%;
    max-width: none;
    padding: 0 0 22px;
  }

  .online-menu-hero {
    min-height: 0;
    display: grid;
    gap: 12px;
    padding: 18px 14px 12px;
  }

  .online-menu-kicker {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .online-menu-hero h1 {
    margin: 10px 0 6px;
    font-size: 2rem;
    line-height: 1.04;
  }

  .online-menu-hero p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .online-menu-summary {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
  }

  .online-menu-summary span {
    margin-top: 0;
    font-size: 1.25rem;
  }

  .online-menu-summary small {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .online-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px;
    margin-bottom: 12px;
  }

  .online-info-strip div {
    padding: 10px;
  }

  .online-info-strip strong {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .online-info-strip span {
    font-size: 0.76rem;
  }

  .online-menu-closed,
  .online-order-form {
    margin-left: 10px;
    margin-right: 10px;
  }

  .online-order-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .online-category-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 -10px;
    padding: 8px 10px;
    background: rgba(243, 248, 251, 0.96);
    border-bottom: 1px solid #d8e7f5;
  }

  .online-category-tabs a {
    padding: 9px 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(6, 21, 47, 0.08);
    font-size: 0.9rem;
  }

  .online-products {
    gap: 14px;
  }

  .online-category-section h2 {
    color: var(--brand-navy);
    margin: 2px 0 8px;
    font-size: 1.18rem;
  }

  .online-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .online-product-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(6, 21, 47, 0.10);
  }

  .online-product-image {
    grid-row: span 3;
    width: 92px;
    height: 92px;
    aspect-ratio: auto;
    margin: 0;
  }

  .online-product-main {
    display: grid;
    gap: 8px;
  }

  .online-product-main h3 {
    margin-bottom: 3px;
    font-size: 1rem;
  }

  .online-product-main p {
    margin-bottom: 5px;
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .online-product-main strong {
    font-size: 1rem;
  }

  .online-featured-label {
    margin-bottom: 4px;
    padding: 3px 6px;
  }

  .online-qty-control {
    width: 148px;
    height: 42px;
    grid-template-columns: 44px 60px 44px;
    border-radius: 8px;
  }

  .online-qty-control button {
    min-height: 42px;
    font-size: 1.25rem;
  }

  .online-qty-control input {
    width: 60px;
    min-height: 42px;
    font-size: 1rem;
  }

  .online-complements,
  .online-item-note {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .online-complements summary {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .online-complements label {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.93rem;
  }

  .online-complements input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .online-item-note {
    font-size: 0.84rem;
  }

  .online-item-note input,
  .online-checkout-panel input,
  .online-checkout-panel select,
  .online-checkout-panel textarea {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 16px;
  }

  .online-checkout-panel {
    position: static;
    padding: 14px;
    gap: 9px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(6, 21, 47, 0.12);
  }

  .online-checkout-panel h2 {
    font-size: 1.08rem;
  }

  .online-address-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .online-total-final {
    position: sticky;
    top: 54px;
    z-index: 6;
    margin: 0 0 6px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.97);
  }

  .online-checkout-panel button[type="submit"] {
    min-height: 52px;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .online-product-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .online-product-image {
    width: 78px;
    height: 78px;
  }

  .online-qty-control {
    width: 136px;
    grid-template-columns: 40px 56px 40px;
  }
}

body.android-apk .products.products-list,
body.mobile-layout .products.products-list {
  max-height: 50vh;
  -webkit-overflow-scrolling: touch;
}

