/* BarX ERP landing page (barx.app). Same palette as the ERP's Classic theme
   (frontend/src/index.css): thermal-paper white, stamp-ink blue. */
:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --sunken: #eef0ed;
  --ink: #1c2530;
  --ink-muted: #5b6573;
  --ink-faint: #8a93a0;
  --rule: #e2e5e9;
  --rule-strong: #c9ced5;
  --stamp: #2d49a6;
  --stamp-ink: #ffffff;
  --stamp-soft: #e6eaf7;
  --slot: #1c2530;
  --gain: #2f7a4f;
  --receipt: #ffffff;
  --receipt-ink: #1c2530;
  /* Ink stamped on the receipt: stays dark blue in dark mode, like the paper. */
  --stamp-print: #2d49a6;
  --font-ui: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-receipt: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 72rem;
  --gutter: 1rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b24;
    --surface: #1b232e;
    --sunken: #121820;
    --ink: #e7eaee;
    --ink-muted: #a3acb8;
    --ink-faint: #737d8a;
    --rule: #2a3440;
    --rule-strong: #3a4553;
    --stamp: #7f96e6;
    --stamp-ink: #10162a;
    --stamp-soft: #222d4a;
    --slot: #0b0f15;
    --gain: #6cc191;
    /* The receipt stays paper-coloured: it is a printed object. */
    --receipt: #eef0ed;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  padding: 0.5rem 0.75rem; background: var(--stamp); color: var(--stamp-ink); border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.975rem; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--stamp); color: var(--stamp-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--stamp) 88%, var(--ink)); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-muted); background: var(--surface); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.brand span { margin-left: 0.3rem; font-weight: 500; color: var(--ink-muted); }
.top__nav { display: none; align-items: center; gap: 1.5rem; margin-right: auto; }
.top__nav > a, .dd > summary { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.top__nav > a:hover, .dd > summary:hover, .dd[open] > summary { color: var(--ink); }

/* Menus are <details>, so they open without JS; i18n.js closes them on
   Escape and outside clicks. */
.dd, .mnav { position: relative; }
.dd > summary, .mnav > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker, .mnav > summary::-webkit-details-marker { display: none; }
.dd > summary { display: inline-flex; align-items: center; gap: 0.35rem; }
.dd > summary::after {
  content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.2rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  transition: transform 150ms ease;
}
.dd[open] > summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.dd__panel, .mnav__panel {
  position: absolute; z-index: 20; list-style: none; margin: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 16px 40px rgb(28 37 48 / 0.14);
}
.dd__panel {
  top: calc(100% + 0.9rem); left: -1rem; width: min(40rem, 90vw); padding: 0.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
}
.dd__panel a {
  display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-muted); font-size: 0.85rem; line-height: 1.45;
}
.dd__panel a strong { color: var(--ink); font-size: 0.95rem; font-weight: 650; }
.dd__panel a:hover { background: var(--sunken); }
.mnav > summary {
  display: grid; place-items: center; width: 2.5rem; height: 2.25rem; border-radius: 8px;
}
.mnav > summary:hover { background: var(--sunken); }
.mnav > summary span, .mnav > summary span::before, .mnav > summary span::after {
  display: block; width: 1.1rem; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.mnav > summary span::before, .mnav > summary span::after { content: ""; position: absolute; left: 0; }
.mnav > summary span::before { top: -6px; }
.mnav > summary span::after { top: 6px; }
.mnav__panel { top: calc(100% + 0.6rem); right: 0; width: min(18rem, calc(100vw - 2rem)); padding: 0.5rem; }
.mnav__panel a { display: block; padding: 0.65rem 0.85rem; border-radius: 8px; text-decoration: none; }
.mnav__panel a:hover { background: var(--sunken); }
.top__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.top__actions .btn { min-height: 2.25rem; padding: 0 1rem; }
.lang {
  min-height: 2.25rem; min-width: 2.75rem; padding: 0 0.5rem;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted);
  font: 600 0.85rem var(--font-ui); cursor: pointer;
}
.lang:hover { background: var(--sunken); color: var(--ink); }
@media (min-width: 56rem) {
  .top__nav { display: flex; margin-left: 1rem; }
  .top__actions { margin-left: 0; }
  .mnav { display: none; }
}

/* Hero */
.hero { padding: 3rem 0 4rem; overflow: hidden; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink-muted); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-muted); }
@media (min-width: 56rem) {
  .hero { padding: 5rem 0 6rem; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

/* The till: a printer slot with the receipt feeding out of it, then the ERP stamp. */
.till { position: relative; margin: 0 auto; width: min(100%, 21rem); padding-top: 0.75rem; }
.till__slot {
  position: absolute; z-index: 2; top: 0; left: -0.75rem; right: -0.75rem; height: 1.25rem;
  background: var(--slot); border-radius: 10px;
  box-shadow: inset 0 -4px 0 rgb(255 255 255 / 0.06);
}
.receipt {
  position: relative; z-index: 1;
  padding: 1.75rem 1.5rem 4.75rem;
  background: var(--receipt); color: var(--receipt-ink);
  font: 400 0.8rem/1.65 var(--font-receipt);
  /* Torn bottom edge. */
  --tooth: 0.6rem;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  filter: drop-shadow(0 18px 24px rgb(28 37 48 / 0.12));
  animation: feed 1400ms cubic-bezier(0.3, 0.7, 0.2, 1) 200ms both;
}
.receipt__head { text-align: center; font-weight: 600; }
.receipt__meta, .receipt__total, .receipt__vat { display: flex; justify-content: space-between; gap: 1rem; }
.receipt__meta { margin-top: 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed currentColor; }
.receipt__lines { width: 100%; margin: 0.5rem 0; border-collapse: collapse; }
.receipt__lines td { padding: 0; }
.receipt__lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.receipt__total { padding-top: 0.5rem; border-top: 1px dashed currentColor; font-weight: 600; font-size: 0.95rem; }
.receipt__vat { opacity: 0.75; }
.receipt__foot { margin-top: 1rem; text-align: center; }

.stamp {
  position: absolute; z-index: 3; right: 1.25rem; bottom: 1.5rem;
  display: grid; justify-items: center;
  padding: 0.4rem 0.9rem;
  border: 3px solid var(--stamp-print); border-radius: 6px;
  color: var(--stamp-print); background: var(--receipt);
  font: 800 1.05rem/1.2 var(--font-ui); letter-spacing: 0.01em;
  transform: rotate(-9deg);
  animation: stamp 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 1650ms both;
}
.stamp small { font: 600 0.72rem var(--font-receipt); }

@keyframes feed {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-2rem); }
  to { clip-path: inset(0 0 -2rem 0); transform: translateY(0); }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .receipt, .stamp { animation: none; }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section--sunken { background: var(--sunken); border-block: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.section__lead { margin-top: 0.75rem; max-width: 40rem; color: var(--ink-muted); font-size: 1.075rem; }
@media (min-width: 56rem) { .section { padding: 6rem 0; } }

/* How it works: a real sequence, so the steps are numbered. */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--stamp-soft); color: var(--stamp);
  font-weight: 800;
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-muted); max-width: 30rem; }
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 1.125rem; left: 3rem; right: -1.5rem;
    border-top: 2px dotted var(--rule-strong);
  }
}

.section--tight { padding: 3.5rem 0; }
@media (min-width: 56rem) { .section--tight { padding: 4rem 0; } }
.more { margin-top: 2.5rem; }
.more a { color: var(--stamp); font-weight: 600; text-underline-offset: 3px; }

/* Home: kind of business. */
.bizs { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.biz {
  display: grid; gap: 0.4rem; height: 100%; padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--rule-strong); border-radius: 10px;
  text-decoration: none; color: var(--ink-muted); background: var(--surface);
  transition: border-color 150ms ease;
}
.biz strong { color: var(--stamp); font-size: 1.15rem; }
.biz:hover { border-color: var(--stamp); }
@media (min-width: 48rem) { .bizs { grid-template-columns: repeat(3, 1fr); } }

/* Home: modules by area; module pages: related modules. */
/* Columns, not a grid: the areas hold 1 to 4 modules, and columns balance them. */
.areas { margin-top: 2.5rem; column-gap: 3rem; }
.area { break-inside: avoid; margin-bottom: 2.5rem; }
.area:last-child { margin-bottom: 0; }
.area h3 { font-size: 1.05rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
@media (min-width: 48rem) { .areas { columns: 2; } }
.rels { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0 2rem; }
.rels--stack { margin-top: 0; }
.rel {
  display: grid; gap: 0.2rem; padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink-muted);
}
.rel strong { color: var(--ink); font-weight: 650; }
.rel:hover strong { color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 48rem) { .rels:not(.rels--stack) { grid-template-columns: repeat(3, 1fr); } }

/* Module pages */
.crumbs { margin-bottom: 1rem; font-size: 0.9rem; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-underline-offset: 3px; }
.hero--module h1 { max-width: 16ch; }
.features { display: grid; gap: 3rem 4rem; }
@media (min-width: 48rem) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature h2 { font-size: 1.4rem; }
.feature > p { margin-top: 0.5rem; color: var(--ink-muted); max-width: 34rem; }
.feature .checks { margin-top: 1.25rem; }
.checks--cols { margin-top: 0; }
@media (min-width: 40rem) { .checks--cols { grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; } }

/* Kosovo */
.kosovo { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) { .kosovo { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.checks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--stamp-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 0.38rem; top: 0.52rem;
  width: 0.3rem; height: 0.55rem;
  border: solid var(--stamp); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.vat {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  font-size: 0.95rem;
}
.vat caption { caption-side: top; text-align: left; padding-bottom: 0.75rem; color: var(--ink-muted); font-size: 0.9rem; }
.vat th, .vat td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
.vat th { font-weight: 600; font-size: 0.85rem; color: var(--ink-muted); background: var(--sunken); }
.vat tbody tr:last-child td { border-bottom: 0; }
.vat td:first-child { font: 600 1rem var(--font-receipt); color: var(--stamp); }
.vat td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Contact */
.contact { padding: 4.5rem 0; background: var(--stamp); color: var(--stamp-ink); }
.contact__grid { display: grid; gap: 2.5rem; align-items: center; }
.contact h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.contact p { margin-top: 0.75rem; max-width: 34rem; font-size: 1.075rem; opacity: 0.88; }
.contact__ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.way {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 10px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--stamp-ink) 30%, transparent);
  transition: background-color 150ms ease;
}
.way:hover { background: color-mix(in srgb, var(--stamp-ink) 10%, transparent); }
.way span { opacity: 0.8; font-size: 0.9rem; }
.way strong { font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.contact :focus-visible { outline-color: var(--stamp-ink); }
@media (min-width: 56rem) {
  .contact { padding: 6rem 0; }
  .contact__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

/* Footer */
.foot { padding: 3rem 0 2rem; color: var(--ink-muted); font-size: 0.9rem; }
.foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .foot__cols { grid-template-columns: repeat(5, 1fr); } }
.foot__h { color: var(--ink); font-weight: 650; margin-bottom: 0.5rem; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* 404 */
.missing { min-height: calc(100vh - 9rem); display: grid; align-content: center; gap: 1rem; padding-block: 4rem; }
.missing h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; }
.missing p { color: var(--ink-muted); max-width: 32rem; }
.missing .btn { justify-self: start; margin-top: 0.5rem; }

/* ------------------------------------------------------------------
   Module illustrations, built in HTML so they translate and stay sharp. */
.vis {
  margin: 0; width: 100%; max-width: 26rem; justify-self: center;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgb(28 37 48 / 0.25);
  font-size: 0.9rem;
}
.scroll { overflow-x: auto; }
.vis.label, .vis.card { background: none; border: 0; box-shadow: none; padding: 0; }

/* Home: dashboard */
.dash { margin: 0; width: 100%; max-width: 27rem; justify-self: center; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgb(28 37 48 / 0.25); }
.dash__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.dash__label { font-size: 0.85rem; color: var(--ink-muted); }
.dash__big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dash__up { color: var(--gain); font-size: 0.85rem; font-weight: 600; }
.dash__bars { display: flex; align-items: flex-end; gap: 3px; height: 4.5rem; }
.dash__bars i { display: block; width: 0.5rem; height: var(--h); background: var(--stamp); border-radius: 2px 2px 0 0; opacity: 0.85;
  transform-origin: bottom; animation: grow 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.dash__bars i:nth-child(n+7) { animation-delay: 80ms; }
.dash__bars i:last-child { background: var(--ink); opacity: 1; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .dash__bars i { animation: none; } }
.dash__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.dash__list li { display: flex; align-items: center; gap: 0.6rem; }
.dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.dot--warn { background: #a86a12; }
.dot--loss { background: #b03f37; }
.dot--info { background: var(--stamp); }
.dot--gain { background: var(--gain); }

/* Restaurant: floor plan */
.floor__room { position: relative; padding: 3.25rem 1rem 2.75rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.floor__bar { position: absolute; top: 0.75rem; left: 1rem; right: 1rem; padding: 0.3rem; text-align: center;
  background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.floor__tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; justify-items: center; }
.floor__zone { position: absolute; bottom: 0.6rem; left: 1rem; font-size: 0.75rem; color: var(--ink-muted); }
.tbl { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  font-weight: 700; font-size: 0.85rem; border: 2px solid var(--rule-strong); background: var(--surface); color: var(--ink); }
.tbl--open { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); }
.tbl--kitchen { background: #fbf1df; border-color: #a86a12; color: #7a4c0c; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0 0; padding: 0; font-size: 0.82rem; color: var(--ink-muted); }
.legend li { display: flex; align-items: center; gap: 0.45rem; }
.legend .tbl { width: 0.9rem; height: 0.9rem; border-width: 2px; }

/* Market: scale label */
.label__sticker { margin: 0 auto; max-width: 15rem; padding: 1rem 1.1rem 0.8rem; background: #fff; color: #1c2530;
  border-radius: 6px; border: 1px solid #c9ced5; box-shadow: 0 2px 0 #e2e5e9; }
.label__name { font-weight: 700; margin-bottom: 0.5rem; }
.label__code { height: 3.25rem; background: repeating-linear-gradient(90deg,
  #1c2530 0 2px, transparent 2px 4px, #1c2530 4px 5px, transparent 5px 8px, #1c2530 8px 11px, transparent 11px 12px, #1c2530 12px 13px, transparent 13px 16px); }
.label__digits { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.35rem; font: 600 0.85rem var(--font-receipt); }
.label__digits b:nth-child(2) { color: #2d49a6; }
.label__digits b:nth-child(3) { color: #a86a12; }
.label__parts { margin: 1.25rem 0 0; display: grid; gap: 0.1rem; }
.label__parts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.label__parts div:last-child { border-bottom: 0; font-weight: 700; }
.label__parts dt { color: var(--ink-muted); }
.label__parts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Hotel: room calendar */
.cal { padding: 1.25rem; }
.cal__row { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.cal__row:last-child { border-bottom: 0; }
.cal__room { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__row--head .cal__room { font-weight: 600; font-size: 0.78rem; color: var(--ink-muted); }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; min-height: 2rem; align-items: center;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--rule) calc(100% / 7 - 1px) calc(100% / 7)); }
.cal__days--head { background: none; min-height: 0; }
.cal__days--head span { text-align: center; font-size: 0.75rem; color: var(--ink-muted); }
.cal__days b { grid-row: 1; padding: 0.3rem 0.45rem; border-radius: 6px; background: var(--stamp-soft); color: var(--stamp);
  font-size: 0.75rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Stock and finance tables */
.lots { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lots caption { caption-side: top; text-align: left; padding-bottom: 0.75rem; font-weight: 650; }
.lots th { text-align: left; font-weight: 600; font-size: 0.78rem; color: var(--ink-muted); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--rule-strong); }
.lots td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.lots tbody tr:last-child td { border-bottom: 0; }
.lots tr.next td { background: var(--stamp-soft); }
.lots tr.next td { font-weight: 650; }
.book td:nth-child(n+4), .book th:nth-child(n+4) { text-align: right; }
.vis--wide { max-width: 31rem; }
.book { min-width: 24rem; }
.book td:not(:nth-child(2)) { white-space: nowrap; }

/* Invoicing: invoice */
.inv__top { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.inv__logo { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--stamp); color: var(--stamp-ink); font-weight: 800; }
.inv__title { font-weight: 800; font-size: 1.1rem; }
.inv__no { color: var(--ink-muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.inv__lines { padding: 0.75rem 0; display: grid; gap: 0.5rem; }
.inv__lines p, .inv__total { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.inv__total { padding-top: 0.75rem; border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.05rem; }
.inv__due { margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-muted); }

/* Staff: leave balance */
.leave__who { font-weight: 800; font-size: 1.1rem; }
.leave__label { margin-top: 0.75rem; color: var(--ink-muted); font-size: 0.85rem; }
.leave__num { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }
.leave__num span { font-size: 1rem; color: var(--ink-muted); font-weight: 600; }
.leave__bar { height: 0.5rem; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.leave__bar i { display: block; height: 100%; background: var(--stamp); border-radius: 99px; }
.leave__reqs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.leave__reqs { gap: 0; border-top: 1px solid var(--rule); }
.leave__reqs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.leave__reqs li:last-child { border-bottom: 0; }
.pill { padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.75rem; font-weight: 650; }
.pill--ok { background: #e3f1e8; color: #23603d; }
.pill--wait { background: #fbf1df; color: #7a4c0c; }

/* Loyalty: card */
.card__face { position: relative; aspect-ratio: 1.586; padding: 1.1rem 1.25rem; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #2d49a6, #1c2a63); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 32px -16px rgb(28 42 99 / 0.6); }
.card__brand { font-weight: 800; letter-spacing: 0.04em; font-size: 0.85rem; }
.card__chip { position: absolute; top: 1.1rem; right: 1.25rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.7); box-shadow: 0 0 0 5px rgb(255 255 255 / 0.15), 0 0 0 10px rgb(255 255 255 / 0.08); }
.card__name { font-weight: 700; font-size: 1.1rem; }
.card__uid { font: 500 0.8rem var(--font-receipt); opacity: 0.8; }
.card__bal { margin: 1.25rem 0 0; display: grid; }
.card__bal div { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.card__bal dt { color: var(--ink-muted); }
.card__bal dd { margin: 0; font-variant-numeric: tabular-nums; }
.card__bal .card__sum { border-bottom: 0; font-weight: 800; }
.card__bal .card__sum dt { color: var(--ink); }
