@font-face {
  font-display: swap;
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  src: url("../fonts/vazirmatn/Vazirmatn[wght].woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --text: #17211f;
  --muted: #63726d;
  --line: #d9ded8;
  --primary: #087568;
  --primary-strong: #064f49;
  --accent: #b88a2b;
  --accent-soft: rgba(184, 138, 43, 0.14);
  --success: #157347;
  --danger: #b42318;
  --shadow: 0 20px 55px rgba(24, 42, 36, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101615;
  --surface: #17201e;
  --surface-soft: #21302c;
  --surface-raised: rgba(23, 32, 30, 0.9);
  --text: #eef5f1;
  --muted: #acbbb5;
  --line: #31453f;
  --primary: #2dd4bf;
  --primary-strong: #7dded3;
  --accent: #d4ad52;
  --accent-soft: rgba(212, 173, 82, 0.14);
  --success: #3ecf8e;
  --danger: #f97066;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background:
    url("/static/img/peacock-pattern.svg"),
    radial-gradient(circle at 82% 8%, rgba(8, 117, 104, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 36%, rgba(184, 138, 43, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--surface-soft));
  background-attachment: fixed;
  background-size: 260px 260px, auto, auto, auto;
  color: var(--text);
  font-family: Vazirmatn, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 35px rgba(18, 34, 27, 0.07);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.panel-header {
  align-items: start;
  display: grid;
  gap: .85rem;
  justify-items: start;
  max-width: 1320px;
}

.panel-header .brand {
  justify-self: start;
}

.panel-main {
  max-width: 1320px;
}

.panel-nav {
  direction: rtl;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.login-shell {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, .9fr) minmax(300px, 1fr);
  margin: 3rem auto;
  max-width: 980px;
}

.login-visual,
.login-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.login-visual {
  background:
    linear-gradient(145deg, rgba(8, 117, 104, .24), rgba(184, 138, 43, .12)),
    var(--surface-raised);
  border-radius: 14px 0 0 14px;
  place-items: center;
  text-align: center;
}

.login-visual img {
  max-height: 260px;
}

.login-visual h1,
.login-visual p,
.login-card h2 {
  margin: 0;
}

.login-card {
  border-radius: 0 14px 14px 0;
}

.login-card label {
  color: var(--muted);
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.login-card input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: .55rem .75rem;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--surface);
  border: 2px solid rgba(184, 138, 43, 0.45);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

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

.brand strong {
  display: block;
  font-size: 1.08rem;
}

.brand small,
.section-head p,
.page-title p,
.item-body p,
.site-footer span {
  color: var(--muted);
}

.top-nav,
.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.top-nav a,
.theme-button,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
}

.site-clock {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  direction: ltr;
  display: inline-flex;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 9ch;
  padding: .45rem .75rem;
}

.top-nav a {
  background: transparent;
  color: var(--muted);
}

.top-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.theme-button {
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  min-height: calc(100vh - 160px);
  padding-top: 1rem;
}

.hero-content,
.peacock-panel,
.item-card,
.metric,
.report-sheet,
.receipt,
.success-box {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.receipt-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .85rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
}

.receipt-head img {
  background: var(--surface);
  border: 1px solid rgba(184, 138, 43, 0.45);
  border-radius: 50%;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.receipt-head h1,
.receipt-head p {
  margin: 0;
}

.receipt-meta {
  display: grid;
  gap: .35rem .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .8rem;
}

.receipt-total {
  align-items: center;
  display: flex;
  font-size: 1.15rem;
  justify-content: space-between;
  padding: .85rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero h1,
.page-title h1,
.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 850;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero p,
.detail-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.button {
  align-items: center;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--surface-soft);
}

.button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.button.disabled {
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.button:disabled,
.button.disabled:disabled {
  opacity: .72;
  pointer-events: none;
}

.admin-order-toast {
  align-items: center;
  background: #fff7d6;
  border: 2px solid #d4a017;
  border-radius: 12px;
  bottom: 1.25rem;
  box-shadow: 0 18px 45px rgba(20, 40, 36, .22);
  color: #17211f;
  display: none;
  gap: .85rem;
  left: 1.25rem;
  max-width: 420px;
  padding: 1rem;
  position: fixed;
  z-index: 9999;
}

.admin-order-toast strong {
  display: block;
  font-size: 1rem;
}

.admin-order-toast a,
.admin-sound-enable {
  background: #087568;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .5rem .75rem;
  white-space: nowrap;
}

.admin-sound-enable {
  bottom: 1.25rem;
  box-shadow: 0 12px 30px rgba(20, 40, 36, .18);
  left: 1.25rem;
  position: fixed;
  z-index: 10000;
}

.button.full {
  width: 100%;
}

.product-actions,
.add-cart-form,
.quick-add-form {
  display: grid;
  gap: 0.65rem;
}

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

.product-actions form {
  display: grid;
}

.add-cart-form label,
.quick-add-form label,
.quantity-field {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.add-cart-form input,
.quick-add-form input,
.quick-add-form select,
.quantity-field input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
}

.peacock-panel {
  background:
    linear-gradient(145deg, rgba(8, 117, 104, 0.16), rgba(184, 138, 43, 0.12)),
    var(--surface-raised);
  min-height: 520px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.peacock-panel::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 64%);
  content: "";
  height: 520px;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 520px;
}

.peacock-art {
  display: block;
  filter: drop-shadow(0 26px 40px rgba(8, 36, 32, 0.22));
  margin: 0 auto;
  max-height: 470px;
  max-width: min(100%, 520px);
  position: relative;
  border-radius: 50%;
  z-index: 1;
}

.panel-copy {
  bottom: 2rem;
  display: grid;
  position: absolute;
  right: 2rem;
  z-index: 2;
}

.panel-copy strong {
  font-size: 1.5rem;
}

.section,
.page-title {
  padding: 2rem 0;
}

.page-title {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-head > div {
  min-width: 0;
}

.section-head h2,
.page-title h1 {
  margin-bottom: 0;
}

.category-view-all {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-strong);
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  min-height: 36px;
  padding: .35rem .8rem;
  white-space: nowrap;
}

.category-view-all::before {
  content: "‹";
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  margin-left: .25rem;
}

.card-grid,
.gallery-grid,
.metric-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-slider {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: clamp(320px, 46vw, 560px);
  overflow: hidden;
  position: relative;
}

.gallery-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .45s ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.gallery-open {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  height: 100%;
  padding: 0;
  width: 100%;
}

.gallery-slide figcaption {
  background: rgba(8, 35, 31, .72);
  border-radius: 8px;
  bottom: 1rem;
  color: #fff;
  font-weight: 800;
  padding: .45rem .75rem;
  position: absolute;
  right: 1rem;
}

.gallery-lightbox {
  align-items: center;
  background: rgba(5, 18, 16, .86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 1000;
}

.gallery-lightbox.open {
  display: flex;
}

.modal-open {
  overflow: hidden;
}

.gallery-lightbox figure {
  display: grid;
  gap: .75rem;
  margin: 0;
  max-height: 92vh;
  max-width: min(1040px, 88vw);
}

.gallery-lightbox img {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 0;
  border-radius: 999px;
  color: #10211d;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 900;
  justify-content: center;
  position: fixed;
}

.gallery-lightbox-close {
  font-size: 2rem;
  height: 44px;
  left: 1rem;
  top: 1rem;
  width: 44px;
}

.gallery-lightbox-nav {
  font-size: 3rem;
  height: 58px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
}

.gallery-lightbox-nav.prev {
  right: 1rem;
}

.gallery-lightbox-nav.next {
  left: 1rem;
}

.item-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.item-media {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-soft) 14%);
  border: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.item-media img {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.photo-card img,
.detail-media img,
.image-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-soft), var(--accent-soft));
  display: block;
  object-fit: contain;
  width: 100%;
}

.image-placeholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.image-placeholder.large {
  min-height: 430px;
}

.image-preview-trigger,
.detail-image-trigger {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  display: block;
  font: inherit;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.image-preview-trigger:disabled {
  cursor: default;
}

.detail-image-trigger img {
  display: block;
  width: 100%;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem;
}

.item-body > p {
  display: -webkit-box;
  min-height: 5.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.item-body .quick-add-form,
.item-body > .button.full {
  margin-top: auto;
}

.item-row,
.price-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-height: 2.4rem;
}

.item-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.item-row h2,
.item-row h3 {
  font-size: 1.08rem;
  margin: 0;
}

.price-row strong {
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.price-row.big strong {
  font-size: 1.55rem;
}

.rating {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.status {
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.12rem 0.6rem;
}

.status.available {
  background: rgba(21, 115, 71, 0.14);
  color: var(--success);
}

.status.occupied,
.status.inactive {
  background: rgba(180, 35, 24, 0.13);
  color: var(--danger);
}

.status.unavailable {
  background: rgba(180, 35, 24, 0.13);
  color: var(--danger);
}

.status.reserved {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-unavailable-note {
  background: rgba(180, 35, 24, 0.1);
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  color: var(--danger);
  font-weight: 800;
  padding: .65rem .75rem;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  padding: 2rem 0;
}

.detail-media,
.detail-copy {
  min-width: 0;
}

.detail-media img,
.photo-card img {
  border-radius: 12px;
}

.detail-copy {
  align-self: center;
}

.photo-card {
  margin: 0;
}

.gallery-slide img,
.gallery-slide .gallery-open {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.photo-card .gallery-open img {
  display: block;
}

.photo-card figcaption {
  color: var(--muted);
  padding-top: 0.45rem;
}

.companion-options {
  display: none !important;
}

.companion-modal {
  align-items: center;
  background: rgba(5, 18, 16, .58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 990;
}

.companion-modal.open {
  display: flex;
}

.companion-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  max-height: min(720px, 92vh);
  max-width: min(760px, 94vw);
  overflow: auto;
  padding: 1rem;
  width: 100%;
}

.companion-list {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.companion-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-weight: 800;
  gap: .45rem;
  padding: .65rem;
  text-align: right;
}

.companion-qty {
  align-items: center;
  display: grid;
  gap: .35rem;
  grid-template-columns: 36px 1fr 36px;
}

.companion-qty button {
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 34px;
}

.companion-qty output {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 34px;
  padding: .3rem;
  text-align: center;
}

.companion-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.companion-card img,
.companion-placeholder {
  aspect-ratio: 1.25;
  background: var(--surface-soft);
  border-radius: 8px;
  display: grid;
  min-height: 96px;
  object-fit: cover;
  place-items: center;
  width: 100%;
}

.companion-card strong {
  color: var(--primary-strong);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  padding: 1.5rem;
}

.metric {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.metric strong {
  font-size: 1.6rem;
}

.metric.accent {
  border-color: var(--accent);
}

.cart-panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.cart-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px minmax(0, 1fr) 110px auto auto;
  padding: 0.75rem 0;
}

.cart-item h2 {
  font-size: 1rem;
  margin: 0;
}

.packaging-note {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.cart-item img,
.cart-thumb {
  aspect-ratio: 1;
  background: var(--surface-soft);
  border-radius: 8px;
  object-fit: cover;
  width: 72px;
}

.cart-thumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: center;
}

.cart-total {
  align-items: center;
  display: flex;
  font-size: 1.2rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.cart-breakdown,
.summary-row.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-breakdown {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 0.85rem;
}

.cart-actions {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr 1fr;
}

.checkout-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.checkout-form,
.order-summary {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.checkout-form label {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
}

.form-error {
  background: rgba(180, 35, 24, 0.12);
  border: 1px solid rgba(180, 35, 24, 0.3);
  border-radius: 8px;
  color: var(--danger);
  padding: 0.75rem;
}

.summary-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.65rem;
}

.admin-order-list,
.live-orders-grid {
  display: grid;
  gap: 1rem;
}

.live-orders-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-order-card,
.live-order-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.live-order-card ul {
  margin: 0;
  padding-right: 1.2rem;
}

.print-frame {
  border: 0;
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.message-list {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

.message {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
}

.message.warning {
  border-color: var(--accent);
}

.message.error {
  border-color: var(--danger);
}

.message.success {
  border-color: var(--success);
}

.message-inbox {
  display: grid;
  gap: .85rem;
}

.message-card {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.message-card.unread {
  border-color: var(--accent);
}

.message-card h2,
.message-card p {
  margin: 0;
}

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

.payment-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
}

.payment-summary,
.payment-actions {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

.paid-lock {
  background: rgba(21, 115, 71, 0.12);
  border: 1px solid rgba(21, 115, 71, 0.28);
  border-radius: 8px;
  color: var(--success);
  font-weight: 800;
  padding: .8rem;
}

.report-filters {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
  padding: 1rem;
}

.report-mode-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-bottom: 1rem;
}

.report-entry-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1rem;
}

.report-entry-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .35rem;
  padding: 1.15rem;
}

.report-entry-card strong {
  font-size: 1.1rem;
}

.report-entry-card span {
  color: var(--muted);
}

.report-single-form {
  align-items: stretch;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr);
  margin-bottom: 1rem;
  padding: 1rem;
}

.report-single-form .form-actions {
  display: grid;
  gap: .6rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
  justify-content: end;
}

.report-single-form h2,
.report-single-form p {
  margin: 0;
}

.report-single-form p,
.report-single-form label {
  color: var(--muted);
}

.report-single-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.report-single-form input,
.report-single-form select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: .45rem .7rem;
}

.report-single-form .jalali-picker-wrap {
  display: grid;
  gap: .45rem;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.report-single-form .jalali-picker-wrap input {
  min-width: 0;
  width: 100%;
}

.customer-editor {
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.table-actions {
  display: flex;
  gap: .45rem;
  justify-content: flex-end;
}

.table-actions .button {
  min-height: 34px;
  padding: .32rem .65rem;
}

.report-card-form {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .8rem;
  padding: 1rem;
}

.report-card-form h2,
.report-card-form p {
  margin: 0;
}

.report-card-form p,
.report-card-form label {
  color: var(--muted);
}

.report-card-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.report-card-form input,
.report-card-form select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: .45rem .7rem;
}

.inline-fields {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.print-letterhead {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .85rem;
}

.print-letterhead img {
  background: var(--surface);
  border: 1px solid rgba(184, 138, 43, 0.45);
  border-radius: 50%;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.print-letterhead div,
.review-list {
  display: grid;
}

.review-list {
  gap: .85rem;
  min-width: 0;
}

.reviews-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
}

.product-review-form {
  margin-bottom: 0;
}

.admin-reply {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: .7rem;
  padding: .7rem;
}

.admin-reply p {
  margin: .25rem 0 0;
}

.report-filters label {
  color: var(--muted);
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.report-filters input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: .45rem .7rem;
}

.jalali-picker-wrap {
  display: inline-flex;
  gap: .35rem;
  position: relative;
}

.jalali-picker-button,
.jalali-picker-apply {
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: .35rem .65rem;
}

.jalali-picker-panel[hidden] {
  display: none !important;
}

.jalali-picker-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .45rem;
  grid-template-columns: 1fr 1fr 1fr auto;
  padding: .55rem;
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 30;
}

.jalali-picker-panel.with-time {
  grid-template-columns: 1fr 1fr 1fr 72px 72px auto;
}

.jalali-picker-panel select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 36px;
}

.accounting-table {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: auto;
  padding: .5rem;
}

.profit-breakdown summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: .4rem;
  list-style: none;
}

.profit-breakdown summary::before {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  content: "+";
  display: inline-grid;
  height: 22px;
  place-items: center;
  width: 22px;
}

.profit-breakdown[open] summary::before {
  content: "-";
}

.breakdown-panel {
  background: color-mix(in srgb, var(--surface) 88%, var(--primary) 12%);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: .75rem;
  min-width: 620px;
  padding: .75rem;
}

.breakdown-panel table {
  background: var(--surface-raised);
  border-radius: 8px;
  overflow: hidden;
}

.review-time {
  color: var(--muted);
  display: inline-block;
  font-size: .88rem;
  margin: .15rem 0 .35rem;
}

.salary-slip {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 1rem 0;
  padding: 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.salary-person {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.salary-person img {
  border-radius: 50%;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.salary-person div,
.salary-grid div {
  display: grid;
  gap: .25rem;
}

.salary-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.salary-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem;
}

.admin-quick-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-quick-grid a {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
  padding: 1rem;
  text-align: center;
}

.report-sheet,
.receipt,
.success-box {
  margin: 1rem auto;
  max-width: 760px;
  padding: 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem;
  text-align: right;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(260px, 1.2fr) minmax(460px, 1.8fr) minmax(120px, auto);
  margin: 2rem auto 0;
  max-width: 1180px;
  padding: 1.25rem 1rem 2rem;
}

.footer-brand,
.footer-info {
  display: grid;
  gap: 0.35rem;
}

.footer-brand {
  justify-items: start;
}

.footer-info {
  align-items: start;
  column-gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  text-align: center;
}

.footer-info span {
  display: flex;
  justify-content: center;
  min-height: 2rem;
  width: 100%;
}

.footer-social {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: end;
}

.footer-social a {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 38px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 19px;
}

.footer-social img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.footer-social text {
  font-family: Vazirmatn, "Segoe UI", Tahoma, Arial, sans-serif;
  stroke: none;
}

.footer-social .brand-fill,
.footer-social .brand-mark-fill,
.footer-social .rubika-a,
.footer-social .rubika-b,
.footer-social .rubika-c,
.footer-social .rubika-d {
  stroke: none;
}

.footer-social .brand-mark {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-social .brand-mark-fill {
  fill: #fff;
}

.footer-social-link--eitaa .brand-fill { fill: #229ed9; }
.footer-social-link--bale .brand-fill { fill: #28a8e0; }
.footer-social-link--soroush .brand-fill { fill: #18a8a1; }
.footer-social-link--gap .brand-fill { fill: #00a693; }
.footer-social-link--igap .brand-fill { fill: #2f7df6; }
.footer-social-link--aparat .brand-fill { fill: #ed145b; }
.footer-social-link--rubika .rubika-a { fill: #7b2ff7; }
.footer-social-link--rubika .rubika-b { fill: #00b8ff; }
.footer-social-link--rubika .rubika-c { fill: #ff7a18; }
.footer-social-link--rubika .rubika-d { fill: #fff; }
.footer-social-link--gap .gap-corner {
  fill: none;
  stroke: #00a693;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-credit {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  padding-top: 0.85rem;
  text-align: center;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 800;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--primary-strong);
}

.credits-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 48vh;
  padding: 3rem 1rem;
  text-align: center;
}

.credits-page > div {
  max-width: 620px;
}

.credits-page h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.35;
  margin: 0.4rem 0 1rem;
}

.credits-page p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.credits-page a {
  color: var(--primary);
  direction: ltr;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .section-head,
  .page-title,
  .hero,
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-header {
    backdrop-filter: blur(10px);
    gap: .45rem;
    margin: 0 .45rem .6rem;
    padding: .45rem;
    position: static;
    top: auto;
  }

  .brand {
    gap: .45rem;
    justify-content: start;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .brand strong {
    font-size: .95rem;
    line-height: 1.35;
  }

  .footer-info {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: start;
  }

  .site-header:not(.panel-header) .top-nav {
    display: grid;
    gap: .3rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .site-header:not(.panel-header) .top-nav a:nth-of-type(1) {
    order: 1;
  }

  .site-header:not(.panel-header) .top-nav a:nth-of-type(2) {
    order: 2;
  }

  .site-header:not(.panel-header) .top-nav a:nth-of-type(3) {
    order: 3;
  }

  .site-header:not(.panel-header) .site-clock {
    order: 4;
  }

  .site-header:not(.panel-header) .theme-button {
    order: 5;
  }

  .site-header:not(.panel-header) .top-nav a,
  .site-header:not(.panel-header) .theme-button,
  .site-header:not(.panel-header) .site-clock {
    font-size: .82rem;
    line-height: 1.25;
    min-height: 34px;
    padding: .32rem .24rem;
    text-align: center;
    white-space: nowrap;
  }

  .site-header:not(.panel-header) .top-nav a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .panel-header .top-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }

  .site-header:not(.panel-header) .site-clock {
    min-width: 0;
    width: 100%;
  }

  .brand small {
    display: none;
  }

  main {
    padding: .7rem;
  }

  .hero {
    min-height: auto;
    padding-top: .25rem;
  }

  .hero-content {
    padding: clamp(1.25rem, 7vw, 2rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .product-review-form {
    padding: .85rem;
  }

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

  .cart-item {
    grid-template-columns: 58px 1fr;
  }

  .cart-actions,
  .product-actions {
    grid-template-columns: 1fr;
  }

  .menu-category-carousel {
    margin-inline: -.7rem;
    padding: 1.15rem 0 1.35rem;
  }

  .menu-category-carousel + .menu-category-carousel {
    border-top: 1px solid var(--line);
  }

  .menu-category-carousel .section-head {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: .7rem;
  }

  .menu-category-carousel .section-head h2 {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .menu-category-carousel .section-head p {
    font-size: .82rem;
    line-height: 1.5;
    margin: .1rem 0 0;
  }

  .menu-card-grid-carousel {
    display: flex;
    gap: .75rem;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 0 .7rem .55rem;
    scroll-padding-inline: .7rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .menu-card-grid-carousel::-webkit-scrollbar {
    display: none;
  }

  .menu-card-grid-carousel .item-card {
    flex: 0 0 clamp(246px, 82vw, 310px);
    height: auto;
    scroll-snap-align: start;
  }

  .menu-card-grid-carousel .item-media {
    aspect-ratio: 16 / 10;
    max-height: 150px;
  }

  .menu-card-grid-carousel .item-body {
    gap: .5rem;
    padding: .75rem;
  }

  .menu-card-grid-carousel .item-row,
  .menu-card-grid-carousel .price-row {
    align-items: flex-start;
    gap: .5rem;
    min-height: 0;
  }

  .menu-card-grid-carousel .item-row h3 {
    font-size: .98rem;
    line-height: 1.5;
  }

  .menu-card-grid-carousel .item-badges {
    gap: .25rem;
  }

  .menu-card-grid-carousel .rating,
  .menu-card-grid-carousel .status {
    font-size: .78rem;
  }

  .menu-card-grid-carousel .item-body > p {
    font-size: .84rem;
    line-height: 1.65;
    min-height: 3.3em;
    -webkit-line-clamp: 2;
  }

  .menu-card-grid-carousel .price-row {
    align-items: end;
  }

  .menu-card-grid-carousel .price-row strong {
    font-size: .98rem;
  }

  .menu-card-grid-carousel .price-row del,
  .menu-card-grid-carousel .packaging-note {
    font-size: .75rem;
  }

  .menu-card-grid-carousel .packaging-note {
    margin-top: 0;
  }

  .menu-card-grid-carousel .quick-add-form {
    gap: .5rem;
    margin-top: .15rem;
  }

  .menu-card-grid-carousel .quick-add-form label {
    align-items: center;
    font-size: .82rem;
    gap: .5rem;
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .menu-card-grid-carousel .quick-add-form input,
  .menu-card-grid-carousel .quick-add-form select {
    min-height: 36px;
    padding: .25rem .45rem;
    text-align: center;
  }

  .menu-card-grid-carousel .product-actions {
    gap: .45rem;
    grid-template-columns: .85fr 1fr;
  }

  .menu-card-grid-carousel .product-actions .button {
    font-size: .86rem;
    min-height: 38px;
    padding: .4rem .55rem;
  }

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

  .payment-panel,
  .receipt-meta,
  .report-single-form {
    grid-template-columns: 1fr;
  }
}

@media print {
  html {
    font-size: 11px;
  }

  body {
    background: #fff;
    color: #000;
    line-height: 1.35;
    margin: 0;
    min-height: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .actions,
  .page-title .button,
  .page-title button,
  .theme-button,
  .print-hidden {
    display: none;
  }

  .print-letterhead {
    display: flex;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
    width: auto;
  }

  .page-title,
  .section {
    padding: 2.5mm 0;
  }

  .page-title {
    align-items: start;
    display: flex;
    gap: 5mm;
    justify-content: space-between;
  }

  .page-title h1 {
    font-size: 16pt;
    margin: 0 0 1mm;
  }

  .page-title p,
  .section-head p {
    margin: 0;
  }

  .section-head {
    align-items: start;
    gap: 2mm;
    margin-bottom: 1.5mm;
  }

  .section-head h2 {
    font-size: 12pt;
    margin: 0;
  }

  .metric-grid,
  .card-grid,
  .gallery-grid {
    gap: 2mm;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 3px;
    gap: .8mm;
    min-height: 0;
    padding: 2mm;
  }

  .metric span {
    font-size: 9pt;
  }

  .metric strong {
    font-size: 11pt;
  }

  .live-orders-grid {
    gap: 2mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-order-card,
  .admin-order-card,
  .message-card,
  .success-box,
  .payment-panel {
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: none;
    padding: 2mm;
  }

  .live-order-card h2,
  .message-card h2 {
    font-size: 11pt;
    margin: 0;
  }

  .live-order-card p,
  .live-order-card li {
    margin: .7mm 0;
  }

  .live-order-card ul {
    padding-right: 4mm;
  }

  .accounting-table {
    border: 1px solid #ddd;
    box-shadow: none;
    overflow: visible;
    border-radius: 3px;
    padding: 1.2mm;
  }

  table {
    font-size: 8.8pt;
    line-height: 1.25;
  }

  .accounting-table table {
    font-size: 8.2pt;
  }

  th,
  td {
    padding: 1mm 1.35mm;
  }

  .accounting-table th,
  .accounting-table td {
    padding: .85mm 1mm;
  }

  .receipt,
  .report-sheet,
  .salary-slip {
    break-inside: avoid;
    border: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 4mm;
    page-break-after: avoid;
    page-break-before: avoid;
  }

  .salary-slip {
    margin-bottom: 3mm;
    page-break-inside: avoid;
  }

  .salary-grid {
    gap: 2mm;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .salary-grid div {
    border-radius: 3px;
    padding: 2mm;
  }

  .salary-person {
    gap: 2mm;
    margin-bottom: 2mm;
  }

  .salary-person img {
    height: 34px;
    width: 34px;
  }

  .salary-slip:last-of-type {
    margin-bottom: 0;
  }

  .section,
  .page-title,
  .metric,
  .live-order-card,
  .admin-order-card,
  .payment-panel,
  .message-card,
  .breakdown-panel,
  .print-letterhead,
  tr,
  figure {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .accounting-table,
  table,
  tbody,
  thead,
  tr,
  .breakdown-panel {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .section,
  .live-order-card,
  .salary-slip,
  .report-sheet,
  .payment-panel {
    page-break-before: auto;
    page-break-after: auto;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  .receipt-head img,
  .print-letterhead img {
    height: 32px;
    width: 32px;
  }

  .profit-breakdown summary::before {
    display: none;
  }

  .profit-breakdown .breakdown-panel {
    display: block !important;
    min-width: 0;
  }

  .profit-breakdown:not([open]) .breakdown-panel {
    display: block !important;
  }

  .breakdown-panel {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
    margin-top: 1mm;
    padding: 1mm;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.print-receipt-page {
    line-height: 1.35;
    min-width: 80mm;
    width: 80mm;
  }

  body.print-receipt-page main {
    max-width: 80mm;
    padding: 0;
    width: 80mm;
  }

  body.print-receipt-page .receipt {
    font-size: 10.5pt;
    line-height: 1.35;
    margin: 0;
    max-width: none;
    padding: 3mm;
    width: 80mm;
  }

  body.print-receipt-page .receipt-head {
    gap: 2mm;
    margin-bottom: 3mm;
    padding-bottom: 2mm;
  }

  body.print-receipt-page .receipt-head img {
    height: 12mm;
    width: 12mm;
  }

  body.print-receipt-page .receipt-head h1 {
    font-size: 14pt;
    line-height: 1.2;
  }

  body.print-receipt-page .receipt-head p {
    font-size: 10pt;
    font-weight: 800;
  }

  body.print-receipt-page .receipt-meta {
    font-size: 9.5pt;
    gap: 1mm;
    grid-template-columns: 1fr;
    margin-bottom: 3mm;
  }

  body.print-receipt-page .receipt table {
    font-size: 9.4pt;
    line-height: 1.35;
  }

  body.print-receipt-page .receipt th,
  body.print-receipt-page .receipt td {
    padding: 1.4mm .7mm;
  }

  body.print-receipt-page .receipt p {
    margin: 1mm 0;
  }

  body.print-receipt-page .receipt-footer,
  body.print-receipt-page .receipt-note,
  body.print-receipt-page .receipt-total {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-kitchen-page .receipt table {
    font-size: 11pt;
    font-weight: 800;
  }

  body.print-kitchen-page .receipt td:first-child {
    font-size: 11.5pt;
  }

  body.print-customer-invoice-page .invoice-sheet table {
    font-size: 8.8pt;
  }

  body.print-customer-invoice-page .invoice-sheet th,
  body.print-customer-invoice-page .invoice-sheet td {
    padding: 1.1mm .45mm;
  }

  body.print-receipt-page .receipt-total {
    border-top: 1px solid #000;
    font-size: 12pt;
    margin-top: 2mm;
    padding: 2mm 0 0;
  }

  @page {
    margin: 8mm;
    size: A4 portrait;
  }
}
