/* ==========================================================================
   مطعم الصاوي | El-Sawy — Print-Ready A4 Poster & Delivery Stickers Sheet
   Palette inspired by El-Sawy official menu:
   Rich Crimson Red (#b91219 / #8f0910), Golden Yellow (#ffd028 / #f5c116), Crisp White (#ffffff)
   ========================================================================== */

:root {
  --red-950: #5a0408;
  --red-900: #78060b;
  --red-850: #8f0910;
  --red-800: #a80d14;
  --red-700: #bf131b;
  --red-600: #d61c24;

  --gold-200: #fff0a6;
  --gold-300: #ffe055;
  --gold-400: #ffd028;
  --gold-500: #f2b40c;
  --gold-600: #c98c00;

  --ink-dark: #230607;
  --text-white: #ffffff;
  --text-cream: #fff6df;
  --text-muted: #f7d6c8;

  --font-display: 'Cairo', 'Tahoma', 'Arial', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@page {
  size: A4 portrait;
  margin: 0;
}

html,
body {
  background-color: #2c0709;
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* ==========================================================================
   SCREEN-ONLY FLOATING TOOLBAR
   ========================================================================== */

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(58, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(255, 208, 40, 0.38);
  padding: 12px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.toolbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.toolbar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toolbar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--gold-400);
  white-space: nowrap;
}

.toolbar-meta {
  font-size: 12px;
  color: var(--text-cream);
  opacity: 0.85;
  white-space: nowrap;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.density-group,
.url-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-cream);
  white-space: nowrap;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background: #480509;
  border: 1px solid rgba(255, 208, 40, 0.35);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.seg-btn:hover {
  color: var(--text-white);
  background: rgba(255, 208, 40, 0.16);
}

.seg-btn.is-active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--ink-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.url-input-wrap {
  display: flex;
  align-items: center;
  background: #480509;
  border: 1px solid rgba(255, 208, 40, 0.35);
  border-radius: 10px;
  padding: 3px 4px 3px 8px;
  gap: 6px;
}

.url-input-wrap:focus-within {
  border-color: var(--gold-400);
}

#qr-url-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  width: 240px;
  padding: 5px 4px;
}

.reset-url-btn {
  appearance: none;
  border: 1px solid rgba(255, 208, 40, 0.35);
  background: rgba(255, 208, 40, 0.14);
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.reset-url-btn:hover {
  background: rgba(255, 208, 40, 0.25);
}

.print-btn {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.print-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 208, 40, 0.38);
}

.print-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   SHEETS STAGE (SCREEN PREVIEW)
   ========================================================================== */

.sheets-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 28px 16px 56px;
}

.a4-page {
  width: 210mm;
  height: 297mm;
  position: relative;
  overflow: hidden;
  background: var(--red-850);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.poster-page {
  page-break-after: always;
  break-after: page;
}

/* ==========================================================================
   PAGE 1: CRIMSON & GOLD CASHIER / TABLE STANDEE POSTER (A4 PORTRAIT)
   ========================================================================== */

.poster-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 198, 40, 0.16) 0%, rgba(191, 19, 27, 0.35) 38%, transparent 72%),
    linear-gradient(168deg, var(--red-700) 0%, var(--red-800) 48%, var(--red-950) 100%);
  padding: 13mm 15mm 12mm;
  display: flex;
  flex-direction: column;
}

.menu-pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gold-frame-outer {
  position: absolute;
  inset: 6.5mm;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4.5mm;
  pointer-events: none;
  z-index: 2;
}

.gold-frame-inner {
  position: absolute;
  inset: 9mm;
  border: 1px solid rgba(255, 208, 40, 0.65);
  border-radius: 3.2mm;
  pointer-events: none;
  z-index: 2;
}

.corner-ornament {
  position: absolute;
  width: 24mm;
  height: 24mm;
  pointer-events: none;
  z-index: 3;
}

.corner-tr {
  top: 6.5mm;
  right: 6.5mm;
}

.corner-tl {
  top: 6.5mm;
  left: 6.5mm;
  transform: scaleX(-1);
}

.corner-br {
  bottom: 6.5mm;
  right: 6.5mm;
  transform: scaleY(-1);
}

.corner-bl {
  bottom: 6.5mm;
  left: 6.5mm;
  transform: scale(-1, -1);
}

.poster-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1.5mm 4mm 1mm;
}

/* Top Gold Pill */
.poster-top-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 52%, var(--gold-500) 100%);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5pt;
  padding: 6.5px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(45, 4, 6, 0.35);
}

/* Brand Block & Transparent Logo */
.poster-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 29mm;
  margin-bottom: 1px;
}

.brand-logo-img {
  display: none;
  height: 30mm;
  width: auto;
  max-width: 62mm;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(40, 3, 5, 0.55));
}

.brand-logo-img.is-loaded {
  display: block;
}

.brand-monogram-fallback {
  width: 24mm;
  height: 24mm;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-700), var(--red-950) 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(45, 4, 6, 0.45);
}

.brand-monogram-fallback.is-hidden {
  display: none;
}

.brand-monogram-fallback svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.monogram-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.monogram-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20pt;
  color: var(--gold-300);
  margin-top: 2px;
}

.monogram-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 7pt;
  color: var(--text-white);
  margin-top: 1px;
}

.poster-brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25pt;
  line-height: 1.15;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 10px rgba(45, 4, 6, 0.45);
}

.brand-sep {
  color: var(--gold-400);
  font-weight: 700;
}

.brand-en {
  color: var(--gold-300);
  letter-spacing: 0.02em;
}

.poster-brand-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11pt;
  color: var(--text-cream);
}

/* Main Headline */
.poster-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21pt;
  line-height: 1.25;
  color: var(--text-white);
  max-width: 168mm;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(45, 4, 6, 0.4);
}

.gold-highlight {
  color: var(--gold-300);
  display: inline-block;
}

/* Centerpiece QR Code */
.poster-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 1.5mm;
}

.qr-crown-badge {
  position: relative;
  z-index: 5;
  margin-bottom: -11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400), var(--gold-500));
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9.5pt;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--red-900);
  box-shadow: 0 4px 12px rgba(40, 3, 5, 0.45);
}

.crown-icon {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

.poster-qr-frame {
  background: #ffffff;
  padding: 4.5mm;
  border-radius: 6mm;
  border: 2.5px solid var(--gold-400);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.22),
    0 18px 42px rgba(45, 4, 6, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-qr-frame .qr-svg-mount {
  width: 62mm;
  height: 62mm;
}

.qr-svg-mount svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

/* Luxury Dashed-Gold VIP Promo Box */
.poster-promo-box {
  width: 100%;
  max-width: 168mm;
  background: linear-gradient(180deg, rgba(90, 4, 8, 0.72) 0%, rgba(65, 3, 6, 0.88) 100%);
  border: 2px dashed var(--gold-300);
  border-radius: 4.5mm;
  padding: 3.8mm 6mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: 0 8px 22px rgba(45, 4, 6, 0.32);
}

.promo-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.promo-lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13pt;
  color: var(--gold-200);
}

.promo-code-badge {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14pt;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  padding: 2px 14px;
  border-radius: 7px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.promo-sub-note {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9.8pt;
  color: var(--text-white);
  line-height: 1.45;
}

/* 3 Sleek Horizontal Step Cards */
.poster-steps-grid {
  width: 100%;
  max-width: 168mm;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5mm;
}

.step-card {
  background: rgba(88, 5, 10, 0.68);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 3.5mm;
  padding: 3mm 3mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.step-num {
  font-size: 14pt;
  line-height: 1;
}

.step-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5pt;
  line-height: 1.38;
  color: var(--text-white);
}

/* Subtle Footer Strip */
.poster-footer {
  width: 100%;
  max-width: 168mm;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--ink-dark);
  border-radius: 3mm;
  padding: 2.2mm 5mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10pt;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(45, 4, 6, 0.35);
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-phone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12pt;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.footer-divider {
  width: 1.5px;
  height: 14px;
  background: rgba(35, 6, 7, 0.3);
}

.footer-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5pt;
  font-weight: 700;
  color: var(--ink-dark);
}

/* ==========================================================================
   PAGE 2: DELIVERY BAG STICKERS SHEET (RED BACKGROUND A4 PORTRAIT)
   ========================================================================== */

.stickers-page {
  background: var(--red-850);
}

.stickers-sheet {
  width: 100%;
  height: 100%;
  padding: 5.5mm;
  background:
    linear-gradient(165deg, var(--red-700) 0%, var(--red-850) 55%, var(--red-950) 100%);
  position: relative;
}

.stickers-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1.2px dashed rgba(255, 255, 255, 0.7);
  border-right: 1.2px dashed rgba(255, 255, 255, 0.7);
}

.stickers-sheet[data-density='4'] .stickers-grid {
  grid-template-rows: repeat(2, 1fr);
}

.stickers-sheet[data-density='6'] .stickers-grid {
  grid-template-rows: repeat(3, 1fr);
}

.stickers-sheet[data-density='8'] .stickers-grid {
  grid-template-rows: repeat(4, 1fr);
}

/* Individual Sticker Card with Cut Guides */
.sticker-card {
  position: relative;
  border-bottom: 1.2px dashed rgba(255, 255, 255, 0.7);
  border-left: 1.2px dashed rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 208, 40, 0.14) 0%, transparent 70%),
    linear-gradient(165deg, var(--red-700) 0%, var(--red-850) 58%, var(--red-900) 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

/* Crisp White & Gold Framed Sticker Body */
.sticker-inner {
  width: 100%;
  height: 100%;
  margin: 2mm;
  border: 1.3px solid rgba(255, 255, 255, 0.82);
  border-radius: 3.2mm;
  padding: 3mm 4mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 40, 0.25);
}

/* Corner cut scissors indicators */
.cut-scissor {
  position: absolute;
  top: -8px;
  left: 6px;
  font-size: 10px;
  line-height: 1;
  color: var(--gold-300);
  pointer-events: none;
  z-index: 5;
}

.sticker-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticker-logo-img {
  display: none;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(40, 3, 5, 0.45));
}

.sticker-logo-img.is-loaded {
  display: block;
}

.sticker-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(90, 4, 8, 0.55);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.sticker-top-badge.is-hidden {
  display: none;
}

.sticker-hook {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold-300);
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(45, 4, 6, 0.4);
}

.sticker-value {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.35;
  text-wrap: balance;
}

.sticker-qr-box {
  background: #ffffff;
  border-radius: 3mm;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(45, 4, 6, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticker-promo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5px;
}

.sticker-promo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 55%, var(--gold-500) 100%);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 900;
  border-radius: 999px;
  border: 1px solid #ffffff;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(45, 4, 6, 0.35);
}

.sticker-promo-min {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-cream);
}

.sticker-micro {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-200);
}

/* -------- Density 4 (4 كبار: 2x2, ~99mm x 143mm) -------- */
.stickers-sheet[data-density='4'] .sticker-inner {
  margin: 2.8mm;
  padding: 4.5mm 5.5mm;
}

.stickers-sheet[data-density='4'] .sticker-logo-img {
  height: 21mm;
}

.stickers-sheet[data-density='4'] .sticker-top-badge {
  font-size: 10pt;
  padding: 3px 14px;
}

.stickers-sheet[data-density='4'] .sticker-hook {
  font-size: 16pt;
}

.stickers-sheet[data-density='4'] .sticker-value {
  font-size: 10.4pt;
  max-width: 80mm;
}

.stickers-sheet[data-density='4'] .sticker-qr-box {
  padding: 2.5mm;
}

.stickers-sheet[data-density='4'] .sticker-qr-box .qr-svg-mount {
  width: 35mm;
  height: 35mm;
}

.stickers-sheet[data-density='4'] .sticker-promo-pill {
  font-size: 10.5pt;
  padding: 3px 15px;
}

.stickers-sheet[data-density='4'] .sticker-promo-min {
  font-size: 8.4pt;
}

.stickers-sheet[data-density='4'] .sticker-micro {
  font-size: 9pt;
}

/* -------- Density 6 (6 متوسط موصى به: 2x3, ~99mm x 95mm) -------- */
.stickers-sheet[data-density='6'] .sticker-inner {
  margin: 2mm;
  padding: 2.5mm 4mm;
}

.stickers-sheet[data-density='6'] .sticker-logo-img {
  height: 15.5mm;
}

.stickers-sheet[data-density='6'] .sticker-top-badge {
  font-size: 8.2pt;
  padding: 1.5px 10px;
}

.stickers-sheet[data-density='6'] .sticker-hook {
  font-size: 12pt;
}

.stickers-sheet[data-density='6'] .sticker-value {
  font-size: 8.1pt;
  line-height: 1.28;
  max-width: 84mm;
}

.stickers-sheet[data-density='6'] .sticker-qr-box {
  padding: 1.8mm;
}

.stickers-sheet[data-density='6'] .sticker-qr-box .qr-svg-mount {
  width: 22.5mm;
  height: 22.5mm;
}

.stickers-sheet[data-density='6'] .sticker-promo-pill {
  font-size: 8.4pt;
  padding: 2px 11px;
}

.stickers-sheet[data-density='6'] .sticker-promo-min {
  font-size: 7.2pt;
}

.stickers-sheet[data-density='6'] .sticker-micro {
  font-size: 7.5pt;
}

/* -------- Density 8 (8 موفر: 2x4, ~99mm x 71mm) — Split Horizontal Layout -------- */
.stickers-sheet[data-density='8'] .sticker-inner {
  margin: 1.6mm;
  padding: 2.5mm 3.4mm;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 2.8mm;
  text-align: right;
}

.sticker-copy-col {
  display: contents;
}

.sticker-qr-col {
  display: contents;
}

.stickers-sheet[data-density='8'] .sticker-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5mm;
  height: 100%;
}

.stickers-sheet[data-density='8'] .sticker-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5mm;
}

.stickers-sheet[data-density='8'] .sticker-brand-row {
  justify-content: flex-start;
}

.stickers-sheet[data-density='8'] .sticker-logo-img {
  height: 12mm;
}

.stickers-sheet[data-density='8'] .sticker-top-badge {
  font-size: 7.2pt;
  padding: 1px 8px;
}

.stickers-sheet[data-density='8'] .sticker-hook {
  font-size: 10.6pt;
  line-height: 1.15;
}

.stickers-sheet[data-density='8'] .sticker-value {
  font-size: 7.3pt;
  line-height: 1.28;
  text-align: right;
}

.stickers-sheet[data-density='8'] .sticker-promo-wrap {
  align-items: flex-start;
  gap: 1px;
}

.stickers-sheet[data-density='8'] .sticker-promo-pill {
  font-size: 7.6pt;
  padding: 1.5px 9px;
}

.stickers-sheet[data-density='8'] .sticker-promo-min {
  font-size: 6.6pt;
}

.stickers-sheet[data-density='8'] .sticker-qr-box {
  padding: 1.6mm;
  border-radius: 2.4mm;
}

.stickers-sheet[data-density='8'] .sticker-qr-box .qr-svg-mount {
  width: 24mm;
  height: 24mm;
}

.stickers-sheet[data-density='8'] .sticker-micro {
  font-size: 6.5pt;
  text-align: center;
  max-width: 27mm;
  line-height: 1.22;
}

/* ==========================================================================
   RESPONSIVE SCREEN PREVIEW FOR SMALLER MONITORS
   ========================================================================== */

@media screen and (max-width: 860px) {
  .print-toolbar {
    padding: 10px 14px;
  }

  #qr-url-input {
    width: 170px;
  }

  .sheets-stage {
    padding: 16px 8px 40px;
    overflow-x: auto;
    align-items: flex-start;
  }
}

/* ==========================================================================
   PRINT MEDIA RULES — ZERO CLIPPING, EXACT A4 PORTRAIT, NO TOOLBAR
   ========================================================================== */

@media print {
  html,
  body {
    background: var(--red-850) !important;
    width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
  }

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

  .sheets-stage {
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .a4-page {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .poster-page {
    page-break-after: always;
    break-after: page;
  }

  .stickers-page {
    page-break-after: auto;
    break-after: auto;
  }
}
