:root {
  --brand: #0f766e;
  --brand-strong: #0a5c56;
  --brand-soft: #e6f5f2;
  --brand-pale: #f2faf8;
  --navy: #17212f;
  --navy-soft: #243244;
  --ink: #18242d;
  --muted: #66727d;
  --subtle: #8b96a0;
  --line: #dfe5e7;
  --line-strong: #ccd5d8;
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --amber: #b86c0c;
  --amber-soft: #fff3dd;
  --blue: #3267b2;
  --blue-soft: #eaf1fb;
  --green: #187451;
  --green-soft: #e6f5ee;
  --red: #b13b35;
  --red-soft: #fceceb;
  --purple: #7156a3;
  --purple-soft: #f0ebf9;
  --shadow-sm: 0 1px 2px rgba(23, 33, 47, .05), 0 5px 18px rgba(23, 33, 47, .04);
  --shadow-md: 0 18px 50px rgba(23, 33, 47, .10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-width: 252px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea { font: inherit; }

button,
select { cursor: pointer; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #36b7aa !important;
  outline-offset: 2px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden],
[data-role-visible].role-hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  line-height: 1.15;
}

.brand-lockup strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #1a8d84, #0c5f59);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 7px 15px rgba(15,118,110,.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 6px;
  height: 11px;
  border-radius: 50%;
  border-top: 2px solid rgba(255,255,255,.75);
}

.brand-mark i {
  z-index: 1;
  display: block;
  width: 4px;
  border-radius: 99px;
  background: #fff;
}

.brand-mark i:nth-child(1) { height: 10px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; opacity: .85; }

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 7px 18px rgba(15,118,110,.18); }
.button.primary:hover { background: var(--brand-strong); }
.button.dark { color: #fff; background: var(--navy); }
.button.secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.button.secondary:hover { border-color: #aebabe; background: var(--surface-soft); }
.button.soft { color: var(--brand-strong); background: var(--brand-soft); }
.button.danger-soft { color: var(--red); background: var(--red-soft); }
.button.small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.button.large { min-height: 52px; padding: 0 23px; font-size: 15px; }
.button.block { width: 100%; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.text-button {
  border: 0;
  color: var(--brand);
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 750;
}

.icon-only {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}

.icon-only svg { width: 20px; height: 20px; }

/* Public landing */
.public-body { background: #fff; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223,229,231,.8);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.public-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.public-links > a:not(.button) {
  color: #53616c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.public-links > a:not(.button):hover { color: var(--brand); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 94px;
  background:
    radial-gradient(circle at 82% 18%, rgba(106,203,190,.18), transparent 27%),
    radial-gradient(circle at 5% 80%, rgba(248,199,120,.14), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
}

.hero::after { display: none; }

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -165px 45%;
  height: 300px;
  border: 1px solid rgba(15,118,110,.09);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38a99e;
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #14212a;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: .99;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #5d6a74;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-style: normal; }

.hero-demo {
  position: relative;
  min-height: 495px;
}

.demo-window {
  position: absolute;
  inset: 12px 0 auto 16px;
  overflow: hidden;
  border: 1px solid #d8e2e2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23,33,47,.16);
}

.demo-window-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid #e7ecee;
  background: #fbfcfc;
}

.demo-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6dddf; }
.demo-window-bar strong { margin-left: 8px; color: #6a757e; font-size: 11px; }

.demo-app {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 405px;
}

.demo-nav { padding: 18px 12px; color: #cdd5dd; background: var(--navy); }
.demo-logo { display: flex; align-items: center; gap: 6px; margin-bottom: 25px; color: #fff; font-size: 9px; font-weight: 800; }
.demo-logo span { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); }
.demo-nav-item { height: 26px; margin-bottom: 6px; padding: 7px 8px; border-radius: 5px; font-size: 8px; }
.demo-nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.demo-content { padding: 22px; background: #f5f7f8; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; }
.demo-heading strong { font-size: 13px; }
.demo-new { padding: 7px 10px; border-radius: 5px; color: #fff; background: var(--brand); font-size: 8px; font-weight: 800; }
.demo-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.demo-stat { padding: 11px; border: 1px solid #e3e8ea; border-radius: 7px; background: #fff; }
.demo-stat small { display: block; color: #8b959d; font-size: 7px; }
.demo-stat strong { display: block; margin-top: 3px; font-size: 16px; }
.demo-ticket { margin-top: 10px; padding: 13px; border: 1px solid #e0e6e8; border-radius: 8px; background: #fff; }
.demo-ticket-head { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; }
.demo-ticket-head span { padding: 4px 6px; border-radius: 99px; color: var(--amber); background: var(--amber-soft); font-size: 7px; }
.demo-person { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.demo-person i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); }
.demo-lines { flex: 1; }
.demo-lines b, .demo-lines em { display: block; height: 5px; border-radius: 3px; background: #dbe2e4; }
.demo-lines em { width: 55%; margin-top: 5px; background: #edf0f1; }
.demo-progress { display: flex; align-items: center; margin-top: 15px; }
.demo-progress i { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.demo-progress i:last-of-type { background: #fff; box-shadow: 0 0 0 1px #cbd3d6; }
.demo-progress span { height: 2px; flex: 1; background: var(--brand); }
.demo-progress span:last-of-type { background: #dce3e5; }

.floating-receipt {
  position: absolute;
  right: -26px;
  bottom: -8px;
  width: 195px;
  padding: 17px;
  border: 1px solid #dfe6e7;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}

.floating-receipt::before { content: "✓"; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.floating-receipt strong { display: block; margin-top: 10px; font-size: 12px; }
.floating-receipt span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.floating-receipt b { display: block; margin-top: 12px; font-size: 18px; }

.logo-strip { border-block: 1px solid var(--line); background: #fff; }
.logo-strip-inner { display: flex; min-height: 74px; align-items: center; justify-content: center; gap: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.logo-strip-inner strong { color: var(--ink); }

.section { padding: 96px 0; }
.section.soft { background: var(--surface-soft); }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(32px,4vw,48px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.benefit-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card:nth-child(2) .benefit-icon { color: var(--blue); background: var(--blue-soft); }
.benefit-card:nth-child(3) .benefit-icon { color: var(--amber); background: var(--amber-soft); }
.benefit-card h3 { margin: 21px 0 8px; font-size: 19px; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.process-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.process-grid::before { content: ""; position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 1px; background: #cddbd9; }
.process-step { position: relative; text-align: center; }
.process-number { position: relative; z-index: 1; display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border: 7px solid #f8fafb; border-radius: 50%; color: #fff; background: var(--brand); font-size: 14px; font-weight: 800; box-shadow: 0 0 0 1px #c9dad7; }
.process-step h3 { margin: 0; font-size: 16px; }
.process-step p { margin: 7px auto 0; max-width: 190px; color: var(--muted); font-size: 13px; }

.role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.role-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.role-top { display: flex; align-items: center; gap: 13px; }
.role-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--brand-strong); background: var(--brand-soft); font-size: 14px; font-weight: 850; }
.role-card:nth-child(2) .role-avatar { color: var(--blue); background: var(--blue-soft); }
.role-card:nth-child(3) .role-avatar { color: var(--purple); background: var(--purple-soft); }
.role-top h3 { margin: 0; font-size: 17px; }
.role-top small { color: var(--muted); }
.role-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.role-list li { display: flex; gap: 9px; color: #55636d; font-size: 13px; }
.role-list li::before { content: "✓"; color: var(--brand); font-weight: 850; }

.final-cta { padding: 0 0 92px; }
.cta-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; overflow: hidden; padding: 48px 54px; border-radius: 24px; color: #fff; background: var(--navy); }
.cta-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: 18%; top: -190px; border: 50px solid rgba(37,168,155,.17); border-radius: 50%; }
.cta-card h2 { position: relative; z-index: 1; margin: 0; max-width: 650px; font-size: clamp(28px,4vw,42px); line-height: 1.1; letter-spacing: -.035em; }
.cta-card p { position: relative; z-index: 1; margin: 12px 0 0; color: #bdc7cf; }
.cta-card .button { position: relative; z-index: 1; color: var(--navy); background: #fff; }

.public-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; min-height: 105px; align-items: center; justify-content: space-between; gap: 25px; }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }

/* App shell */
.prototype-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f5f8fb;
  background: #0f1822;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prototype-dot { width: 6px; height: 6px; border-radius: 50%; background: #55d6c7; box-shadow: 0 0 0 3px rgba(85,214,199,.15); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar-width) minmax(0,1fr); padding-top: 28px; }
.app-sidebar { position: fixed; z-index: 60; top: 28px; bottom: 0; left: 0; display: flex; width: var(--sidebar-width); flex-direction: column; overflow-y: auto; color: #dbe2e9; background: var(--navy); }
.sidebar-brand { display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand .brand-lockup strong { color: #fff; }
.sidebar-brand .brand-lockup small { color: #8593a1; }
.sidebar-brand .brand-mark { width: 39px; height: 39px; border-radius: 11px; box-shadow: none; }
.sidebar-close { display: none; color: #dbe2e9; border-color: rgba(255,255,255,.1); background: transparent; }
.sidebar-primary { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; margin: 17px 15px 8px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 800; text-decoration: none; }
.sidebar-primary:hover { background: #11867d; }
.sidebar-primary svg { width: 18px; height: 18px; }
.sidebar-nav { display: grid; gap: 3px; padding: 4px 12px 15px; }
.nav-label { margin: 18px 9px 7px; color: #6f8090; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav a { display: flex; min-height: 42px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: #aeb9c4; font-size: 13px; font-weight: 650; text-decoration: none; }
.sidebar-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.095); box-shadow: inset 3px 0 0 #4fd1c5; }
.nav-count { display: inline-grid; min-width: 22px; height: 21px; margin-left: auto; place-items: center; border-radius: 99px; color: #c5d2dc; background: rgba(255,255,255,.08); font-size: 10px; }
.nav-count.warning { color: #ffdca1; background: rgba(222,144,24,.16); }
.sidebar-help { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; margin: auto 14px 12px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.04); }
.help-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #aee7e1; background: rgba(49,178,164,.14); font-weight: 800; }
.sidebar-help div { display: grid; min-width: 0; }
.sidebar-help strong { color: #e7edf1; font-size: 11px; }
.sidebar-help small { overflow: hidden; color: #81909e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-help .text-button { color: #79d5cb; font-size: 10px; }
.sidebar-user { display: grid; grid-template-columns: 36px 1fr 26px; align-items: center; gap: 9px; padding: 14px 15px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.09); }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #c4f0eb; background: rgba(40,166,153,.2); font-size: 11px; font-weight: 850; }
.sidebar-user div { display: grid; min-width: 0; }
.sidebar-user strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { overflow: hidden; color: #7f8d9b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user form { margin: 0; }
.sidebar-signout { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; color: #8594a2; background: transparent; }
.sidebar-signout svg { width: 17px; height: 17px; }
.sidebar-scrim { display: none; }
.app-main { min-width: 0; grid-column: 2; }
.app-topbar { position: sticky; z-index: 25; top: 28px; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 11px; }
.mobile-menu { display: none; }
.branch-picker { display: flex; align-items: center; gap: 10px; }
.branch-pin { position: relative; width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.branch-picker span:last-child { display: grid; line-height: 1.2; }
.branch-picker small { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
.branch-picker strong { margin-top: 2px; font-size: 12px; }
#demo-role-form { display: flex; align-items: stretch; gap: 5px; }
.demo-role-picker { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.demo-role-picker span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.demo-role-picker select { border: 0; outline: none; color: var(--ink); background: transparent; font-size: 12px; font-weight: 750; }
.demo-role-apply { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--brand-strong); background: var(--brand-soft); font-size: 12px; font-weight: 800; }
.language-button { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; }
.language-short { display: none; }
.notification-button { position: relative; width: 38px; height: 38px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.app-content { width: min(1440px, 100%); margin: 0 auto; padding: 30px; }

/* Shared app components */
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.today-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.today-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 15px; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.panel-link { color: var(--brand); font-size: 12px; font-weight: 750; text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 128px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 82px; height: 82px; border-radius: 50%; background: var(--brand-soft); }
.metric-card.ready::after { background: var(--green-soft); }
.metric-card.delivery::after { background: var(--blue-soft); }
.metric-card.unpaid::after { background: var(--amber-soft); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-card.ready .metric-icon { color: var(--green); background: var(--green-soft); }
.metric-card.delivery .metric-icon { color: var(--blue); background: var(--blue-soft); }
.metric-card.unpaid .metric-icon { color: var(--amber); background: var(--amber-soft); }
.metric-change { color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-value { display: block; margin-top: 12px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.metric-label { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.8fr); gap: 18px; }
.attention-list, .activity-list { display: grid; }
.attention-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 14px 20px; border-bottom: 1px solid #edf0f1; text-decoration: none; }
.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: #fbfcfc; }
.order-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--brand-strong); background: var(--brand-soft); font-size: 11px; font-weight: 850; }
.attention-copy { min-width: 0; }
.attention-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.attention-copy span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-action { display: grid; justify-items: end; gap: 5px; }
.attention-action time { color: var(--red); font-size: 10px; font-weight: 750; }
.attention-action .button { min-width: 86px; }
.day-summary { display: grid; gap: 3px; }
.summary-ring { position: relative; display: grid; width: 154px; height: 154px; margin: 16px auto 23px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) 0 68%, var(--brand-soft) 68%); }
.summary-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.summary-ring span { position: relative; z-index: 1; display: grid; text-align: center; }
.summary-ring strong { font-size: 29px; line-height: 1; }
.summary-ring small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid #edf0f1; font-size: 12px; }
.summary-line span { color: var(--muted); }
.summary-line strong { font-size: 13px; }

.status-pill, .payment-pill, .type-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
}
.status-pill::before, .payment-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.ready, .payment-pill.paid { color: var(--green); background: var(--green-soft); }
.status-pill.delivery { color: var(--blue); background: var(--blue-soft); }
.status-pill.completed { color: #5d6870; background: #edf0f1; }
.payment-pill.unpaid { color: var(--red); background: var(--red-soft); }
.type-pill { color: var(--blue); background: var(--blue-soft); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.search-control { position: relative; display: block; width: min(390px,100%); }
.search-control svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; color: #87939c; transform: translateY(-50%); }
.search-control input { width: 100%; height: 43px; padding: 0 13px 0 40px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; font-size: 12px; }
.search-control input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.filter-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; scrollbar-width: none; }
.filter-tab { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; white-space: nowrap; }
.filter-tab.active { color: var(--ink); background: #edf3f2; }
.filter-tab span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 99px; background: rgba(0,0,0,.055); font-size: 8px; }
.data-table { width: 100%; border-collapse: collapse; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 680px; }
.data-table th { padding: 11px 16px; color: #859099; background: #fafbfb; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 16px; border-top: 1px solid #edf0f1; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfdfd; }
.data-table .order-ref { color: var(--brand); font-weight: 800; text-decoration: none; }
.table-person { display: grid; }
.table-person strong { font-size: 12px; }
.table-person small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mobile-ticket-list { display: none; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; border-radius: 14px; color: var(--brand); background: var(--brand-soft); font-size: 21px; font-weight: 850; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { margin: 6px auto 0; max-width: 360px; color: var(--muted); font-size: 12px; }

/* Forms and create order */
.create-layout { display: grid; grid-template-columns: minmax(0,1fr) 345px; align-items: start; gap: 18px; }
.step-card { margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.step-header { display: flex; align-items: center; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.step-number { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 850; }
.step-header div { display: grid; }
.step-header strong { font-size: 14px; }
.step-header small { color: var(--muted); font-size: 10px; }
.step-body { padding: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.form-grid.three { grid-template-columns: repeat(3,1fr); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span, .field > label { color: #52606a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 12px; }
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.field-hint { color: var(--muted); font-size: 9px; }
.field-error { color: var(--red) !important; font-size: 9px !important; font-weight: 650 !important; text-transform: none !important; }
.validation-summary { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #edc9c6; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 10px; }
.validation-summary:empty, .validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.customer-results { display: grid; max-height: 320px; gap: 7px; overflow-y: auto; margin-top: 11px; padding-right: 3px; }
.customer-choice { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.customer-choice:hover, .customer-choice.selected { border-color: var(--brand); background: var(--brand-pale); }
.customer-choice strong { display: block; font-size: 12px; }
.customer-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.customer-choice .avatar { color: var(--brand); background: var(--brand-soft); }
.customer-choice > span:last-child { color: var(--brand); font-size: 10px; font-weight: 750; }
.category-chips { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 13px; scrollbar-width: none; }
.category-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.category-chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.service-choice { position: relative; min-height: 101px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; }
.service-choice:hover { border-color: var(--brand); box-shadow: 0 5px 15px rgba(15,118,110,.07); }
.service-choice .service-symbol { display: grid; width: 29px; height: 29px; margin-bottom: 10px; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 13px; font-weight: 850; }
.service-choice strong { display: block; font-size: 11px; }
.service-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.service-choice b { position: absolute; inset-inline-start: 13px; bottom: 11px; font-size: 11px; }
.service-choice::after { content: "+"; position: absolute; top: 10px; right: 10px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: var(--brand); background: var(--brand-soft); font-size: 14px; font-weight: 650; }
.order-summary { position: sticky; top: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.summary-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.summary-title h2 { margin: 0; font-size: 15px; }
.summary-title span { color: var(--muted); font-size: 10px; }
.cart-empty { padding: 35px 18px; text-align: center; }
.cart-empty span { display: grid; width: 43px; height: 43px; margin: 0 auto 10px; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.cart-empty strong { display: block; font-size: 12px; }
.cart-empty p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.cart-lines { max-height: 280px; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 17px; border-bottom: 1px solid #edf0f1; }
.cart-line strong { display: block; font-size: 11px; }
.cart-line small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.cart-line-price { text-align: right; }
.cart-line-price b { display: block; font-size: 11px; }
.qty-control { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; }
.qty-control button { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.qty-control span { min-width: 14px; font-size: 10px; font-weight: 800; text-align: center; }
.remove-line { margin-top: 7px; border: 0; color: var(--red); background: transparent; padding: 0; font-size: 9px; font-weight: 750; }
.totals { display: grid; gap: 8px; padding: 14px 17px; background: #fafbfb; }
.total-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.total-row strong { color: var(--ink); font-size: 11px; }
.total-row.grand { margin-top: 3px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 800; }
.total-row.grand strong { font-size: 18px; }
.accounts-payment-note { display: grid; gap: 3px; margin: 0 17px 14px; padding: 12px; border: 1px solid #c9dedb; border-radius: 8px; color: #4f6764; background: var(--brand-pale); }
.accounts-payment-note strong { color: var(--brand-strong); font-size: 12px; }
.accounts-payment-note span { font-size: 11px; }
.summary-submit { padding: 0 17px 17px; background: #fafbfb; }
.summary-disclaimer { margin: 9px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

/* Details, accounting, admin */
.details-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; }
.order-overview { display: grid; gap: 16px; }
.customer-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; }
.customer-identity { display: flex; align-items: center; gap: 12px; }
.customer-identity .avatar { width: 42px; height: 42px; }
.customer-identity strong { display: block; font-size: 13px; }
.customer-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-actions { display: flex; gap: 6px; }
.mini-actions a, .mini-actions button { display: grid; width: 35px; height: 35px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.mini-actions svg,
.mini-actions img { width: 16px; height: 16px; }
.mini-actions img { opacity: .72; }
.line-list { display: grid; }
.line-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid #edf0f1; }
.line-symbol { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 850; }
.line-item strong { display: block; font-size: 11px; }
.line-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.line-item b { font-size: 11px; }
.detail-total { display: flex; align-items: center; justify-content: flex-end; gap: 35px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fafbfb; }
.detail-total span { color: var(--muted); font-size: 10px; }
.detail-total strong { font-size: 19px; }
.status-stepper { display: grid; padding: 8px 20px 20px; }
.status-step { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; min-height: 62px; }
.status-step:not(:last-child)::before { content: ""; position: absolute; top: 25px; bottom: -1px; left: 12px; width: 2px; background: #dfe5e7; }
.step-dot { position: relative; z-index: 1; display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid #d5dddf; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; font-weight: 850; }
.status-step.done .step-dot, .status-step.current .step-dot { border-color: var(--brand); color: #fff; background: var(--brand); }
.status-step.current .step-dot { box-shadow: 0 0 0 5px var(--brand-soft); }
.status-step.done:not(:last-child)::before { background: var(--brand); }
.status-step-copy strong { display: block; font-size: 11px; }
.status-step-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-step time { color: var(--muted); font-size: 9px; }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; border-top: 1px solid var(--line); background: var(--line); }
.info-item { padding: 13px 18px; background: #fff; }
.info-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.info-item strong { display: block; margin-top: 4px; font-size: 11px; }
.note-box { margin: 0 20px 20px; padding: 13px; border-left: 3px solid #e1ad5a; border-radius: 4px 8px 8px 4px; color: #6b5127; background: var(--amber-soft); font-size: 10px; }
.primary-action-card { padding: 20px; border: 1px solid #b8d9d4; border-radius: var(--radius); background: var(--brand-pale); }
.primary-action-card h3 { margin: 0; font-size: 15px; }
.primary-action-card p { margin: 6px 0 15px; color: #5e7774; font-size: 10px; }
.action-warning { display: grid; gap: 2px; margin: 0 0 12px; padding: 11px 12px; border: 1px solid #efcaca; border-radius: 8px; color: #7f3733; background: var(--red-soft); }
.action-warning strong { font-size: 13px; }
.action-warning span { font-size: 12px; }
.receipt-state { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-top: 1px solid var(--line); }
.receipt-state-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.receipt-state-icon img { width: 18px; height: 18px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.receipt-state div { display: grid; flex: 1; }
.receipt-state strong { font-size: 10px; }
.receipt-state small { color: var(--muted); font-size: 9px; }
.account-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.account-metric { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.account-metric span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.account-metric strong { display: block; margin-top: 7px; font-size: 25px; letter-spacing: -.035em; }
.account-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.breakdown { display: grid; gap: 14px; }
.breakdown-row { display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 10px; font-size: 10px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f1; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--brand); }
.bar-fill.card { background: var(--blue); }
.bar-fill.benefit { background: var(--amber); }
.admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.admin-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.admin-card:hover { border-color: #b6cfcc; transform: translateY(-1px); }
.admin-card .benefit-icon { width: 40px; height: 40px; }
.admin-card h3 { margin: 15px 0 5px; font-size: 14px; }
.admin-card p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-card span:last-child { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--brand); font-size: 10px; font-weight: 800; }
.admin-action-icon { width: 15px; height: 15px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.permission-list { display: grid; }
.permission-row { display: grid; grid-template-columns: 1fr repeat(3,90px); align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid #edf0f1; font-size: 10px; }
.permission-row.header { border-top: 0; color: var(--muted); background: #fafbfb; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.permission-check { display: grid; width: 21px; height: 21px; margin: auto; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.permission-no { color: #b8c0c4; text-align: center; }

/* Login, dialogs, printable docs */
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(360px,.8fr) minmax(500px,1.2fr); background: #fff; }
.login-panel { display: flex; flex-direction: column; padding: 36px clamp(30px,6vw,88px); }
.login-panel .brand-lockup { margin-bottom: auto; }
.login-form-wrap { width: min(410px,100%); margin: 70px auto; }
.login-form-wrap .eyebrow { margin-bottom: 13px; }
.login-form-wrap h1 { margin: 0; font-size: 35px; letter-spacing: -.045em; }
.login-form-wrap > p { margin: 10px 0 27px; color: var(--muted); font-size: 13px; }
.role-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 12px 0 20px; }
.role-preview label { position: relative; }
.role-preview input { position: absolute; opacity: 0; }
.role-preview span { display: grid; min-height: 67px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; text-align: center; }
.role-preview input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.login-footnote { margin-top: auto; color: var(--muted); font-size: 10px; }
.login-visual { position: relative; display: grid; overflow: hidden; place-items: center; background: linear-gradient(145deg, #11212b, #183a3c); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-visual::before { width: 520px; height: 520px; right: -160px; top: -170px; }
.login-visual::after { width: 370px; height: 370px; left: -190px; bottom: -180px; }
.login-quote { position: relative; z-index: 1; width: min(440px,70%); color: #fff; }
.login-quote .washer { position: relative; width: 190px; height: 190px; margin: 0 auto 45px; border: 10px solid rgba(255,255,255,.08); border-radius: 45px; background: rgba(255,255,255,.05); }
.washer::before { content: ""; position: absolute; inset: 37px; border: 8px solid rgba(255,255,255,.3); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(71,204,190,.8), rgba(16,91,86,.9)); box-shadow: inset 0 0 0 12px rgba(255,255,255,.06); }
.washer::after { content: "•••"; position: absolute; top: 8px; right: 17px; color: #62cbbf; font-size: 13px; letter-spacing: 4px; }
.login-quote blockquote { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.35; letter-spacing: -.03em; }
.login-quote p { margin: 15px 0 0; color: #9eb4b6; font-size: 12px; }
.dialog { width: min(500px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 25px 90px rgba(14,24,32,.28); }
.dialog::backdrop { background: rgba(14,24,32,.55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 17px; }
.dialog-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 21px; }
.dialog-body { padding: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfb; }
.toast { position: fixed; z-index: 150; right: 25px; bottom: 25px; display: flex; max-width: min(390px,calc(100% - 30px)); align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid #c8e1dc; border-radius: 10px; color: #234b43; background: #f1faf7; box-shadow: var(--shadow-md); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-check { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 850; }
.control-icon { display: block; width: 20px; height: 20px; }
.sidebar-close .control-icon,
.sidebar-signout .control-icon { filter: brightness(0) invert(1); }
.toast-check img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.document-page { width: min(800px,calc(100% - 30px)); margin: 35px auto; padding: 42px; background: #fff; box-shadow: var(--shadow-md); }
.document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 25px; border-bottom: 2px solid var(--ink); }
.document-head h1 { margin: 0; font-size: 27px; }
.document-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.prototype-stamp { padding: 7px 11px; border: 2px solid var(--red); color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; transform: rotate(2deg); }
.document-info { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding: 23px 0; }
.document-info div { display: grid; gap: 3px; }
.document-info span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.document-info strong { font-size: 12px; }
.document-table { width: 100%; border-collapse: collapse; }
.document-table th { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: left; text-transform: uppercase; }
.document-table td { padding: 12px 10px; border-bottom: 1px solid #edf0f1; font-size: 11px; }
.document-totals { display: grid; width: 260px; gap: 8px; margin: 20px 0 0 auto; }
.document-totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.document-totals .grand { padding-top: 10px; border-top: 1px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 850; }
.document-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: center; }
.document-actions { display: flex; justify-content: center; gap: 9px; margin: 20px auto 40px; }
.simple-page { display: grid; min-height: 100vh; place-items: center; padding: 25px; }
.simple-card { width: min(450px,100%); padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow-md); }
.simple-card h1 { margin: 0; font-size: 25px; }
.simple-card p { margin: 10px 0 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .hero-grid { gap: 35px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .details-grid { grid-template-columns: 1fr; }
  .day-summary { grid-template-columns: 160px 1fr; align-items: center; }
  .summary-ring { margin: 12px auto; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 30px, 720px); }
  .public-links > a:not(.button) { display: none; }
  .hero { padding: 58px 0 75px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-demo { width: min(560px,100%); min-height: 470px; margin: 0 auto; }
  .benefit-grid, .role-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2,1fr); gap: 35px 15px; }
  .process-grid::before { display: none; }
  .cta-card { grid-template-columns: 1fr; padding: 38px; }
  .app-shell { display: block; }
  .app-main { grid-column: auto; }
  .app-sidebar { top: 28px; width: min(290px,86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 50; inset: 28px 0 0 0; display: block; border: 0; background: rgba(13,23,31,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; }
  .app-content { padding: 24px 20px; }
  .create-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .admin-grid { grid-template-columns: repeat(2,1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-panel { min-height: 100vh; }
  .login-visual { display: none; }
}

@media (max-width: 650px) {
  .public-nav { min-height: 66px; }
  .public-nav .button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .public-nav .brand-lockup small { display: none; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-demo { min-height: 360px; }
  .demo-window { inset: 5px 0 auto; }
  .demo-app { grid-template-columns: 92px 1fr; min-height: 290px; }
  .demo-nav { padding: 12px 8px; }
  .demo-content { padding: 14px; }
  .floating-receipt { right: -3px; bottom: -16px; width: 165px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 28px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 30px 25px; border-radius: 17px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 25px 0; }
  .app-topbar { min-height: 62px; gap: 6px; padding: 0 8px; }
  .branch-picker small, .language-button, .notification-button { display: none; }
  .demo-role-picker { padding-left: 8px; }
  .demo-role-picker span { display: none; }
  .app-content { padding: 20px 13px 85px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .page-heading-actions { justify-content: stretch; }
  .page-heading-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .metric-value { font-size: 24px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: 100%; }
  .desktop-table { display: none; }
  .mobile-ticket-list { display: grid; gap: 9px; }
  .mobile-ticket-card { display: grid; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .mobile-ticket-head, .mobile-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-ticket-head a { color: var(--brand); font-size: 11px; font-weight: 800; text-decoration: none; }
  .mobile-ticket-person strong { display: block; font-size: 12px; }
  .mobile-ticket-person small { color: var(--muted); font-size: 9px; }
  .mobile-ticket-foot { padding-top: 10px; border-top: 1px solid #edf0f1; }
  .mobile-ticket-foot .button { min-height: 36px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .details-grid { gap: 12px; }
  .account-metrics, .admin-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: 1fr repeat(3,50px); padding-inline: 10px; }
  .day-summary { display: block; }
  .document-page { width: 100%; margin: 0; padding: 25px 18px; box-shadow: none; }
  .document-info { grid-template-columns: 1fr; gap: 12px; }
  .document-actions { margin-bottom: 20px; }
  .login-panel { padding: 25px 22px; }
  .login-form-wrap { margin: 50px auto; }
}

/* Keep operational screens readable for counter staff without making the layout dense. */
.app-body .prototype-banner { font-size: 12px; }
.app-body .nav-label { font-size: 11px; }
.app-body .sidebar-nav a { font-size: 14px; }
.app-body .sidebar-help strong,
.app-body .sidebar-user strong { font-size: 13px; }
.app-body .sidebar-help small,
.app-body .sidebar-user small { font-size: 11px; }
.app-body .branch-picker small,
.app-body .demo-role-picker span { font-size: 11px; }
.app-body .branch-picker strong,
.app-body .demo-role-picker select { font-size: 13px; }
.app-body .panel-header h2 { font-size: 17px; }
.app-body .panel-header p,
.app-body .metric-change,
.app-body .metric-label { font-size: 12px; }
.app-body .attention-copy strong,
.app-body .table-person strong { font-size: 14px; }
.app-body .attention-copy span,
.app-body .attention-action time,
.app-body .table-person small { font-size: 12px; }
.app-body .status-pill,
.app-body .payment-pill,
.app-body .type-pill { font-size: 11px; }
.app-body .search-control input { font-size: 14px; }
.app-body .filter-tab { font-size: 13px; }
.app-body .data-table th { font-size: 11px; }
.app-body .data-table td { font-size: 13px; }
.app-body .field > span,
.app-body .field > label { font-size: 12px; }
.app-body .field input,
.app-body .field select,
.app-body .field textarea { font-size: 14px; }
.app-body .field-hint,
.app-body .field-error,
.app-body .validation-summary { font-size: 12px !important; }
.app-body .customer-choice strong,
.app-body .service-choice strong,
.app-body .cart-line strong { font-size: 13px; }
.app-body .customer-choice small,
.app-body .service-choice small,
.app-body .cart-line small,
.app-body .cart-empty p { font-size: 11px; }
.app-body .customer-choice > span:last-child,
.app-body .category-chip,
.app-body .service-choice b,
.app-body .cart-line-price b,
.app-body .total-row,
.app-body .total-row strong { font-size: 12px; }
.app-body .qty-control button { width: 30px; height: 30px; }
.app-body .qty-control span,
.app-body .remove-line,
.app-body .summary-disclaimer { font-size: 11px; }
.app-body .customer-identity strong,
.app-body .line-item strong,
.app-body .status-step-copy strong,
.app-body .info-item strong { font-size: 13px; }
.app-body .customer-identity small,
.app-body .line-item small,
.app-body .status-step-copy small,
.app-body .status-step time,
.app-body .info-item span,
.app-body .receipt-state small,
.app-body .account-metric small { font-size: 11px; }
.app-body .primary-action-card p,
.app-body .receipt-state strong,
.app-body .admin-card p,
.app-body .admin-card span:last-child { font-size: 12px; }
.app-body .mobile-ticket-head a,
.app-body .mobile-ticket-person small { font-size: 12px; }
.app-body .mobile-ticket-person strong { font-size: 14px; }

@media print {
  .prototype-banner, .app-sidebar, .app-topbar, .document-actions, .toast { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .app-main { display: block; }
  .app-content { padding: 0; }
  .document-page { width: 100%; margin: 0; padding: 20px; box-shadow: none; }
  body { background: #fff; }
}

/* Phase 1 refinement: selected quiet editorial direction */
.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

[dir="rtl"] body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .today-label,
[dir="rtl"] .nav-label,
[dir="rtl"] .prototype-banner,
[dir="rtl"] .field > span,
[dir="rtl"] .field > label,
[dir="rtl"] .status-pill,
[dir="rtl"] .payment-pill,
[dir="rtl"] .type-pill,
[dir="rtl"] .data-table th,
[dir="rtl"] .info-item span,
[dir="rtl"] .account-metric span,
[dir="rtl"] .permission-row.header,
[dir="rtl"] .prototype-stamp,
[dir="rtl"] .document-info span,
[dir="rtl"] .document-table th {
  letter-spacing: 0;
  text-transform: none;
}

.ltr-token,
bdi,
.money { direction: ltr; unicode-bidi: isolate; }

.brand-mark {
  align-items: center;
  padding: 9px;
}

.brand-mark::after,
.brand-mark > i { display: none; }

.brand-mark img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.button-icon,
.logo-strip img,
.benefit-icon img,
.process-icon img,
.role-avatar img,
.service-symbol img,
.category-chip img,
.metric-icon img,
.nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%);
}

.button.primary .button-icon { filter: brightness(0) invert(1); }
.button-icon { width: 18px; height: 18px; }
.button-icon-circle { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.button-icon-circle .button-icon { width: 12px; height: 12px; }
[dir="rtl"] .directional-icon { transform: rotate(180deg); }

.public-nav { min-height: 82px; }
.public-links { gap: 31px; }
.public-links .button { min-height: 48px; }
.public-language-form { margin: 0; }
.public-language {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--brand-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}
.public-language:hover { background: var(--brand-soft); }

.hero {
  padding: 98px 0 78px;
  background:
    radial-gradient(circle at 72% 12%, rgba(68, 183, 169, .15), transparent 29%),
    radial-gradient(circle at 6% 82%, rgba(239, 191, 112, .12), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: 76px;
}

.hero-message { padding-block: 8px 25px; }
.hero h1 { max-width: 590px; font-size: clamp(50px, 5vw, 73px); }
.hero-copy { max-width: 580px; font-size: 17px; }
.hero-note { gap: 17px; }
.hero-note span { gap: 7px; }
.hero-note img { width: 17px; height: 17px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }

.hero-product-stage {
  position: relative;
  min-height: 515px;
}

.hero-product-stage .demo-window {
  inset: 0 0 auto 0;
  box-shadow: 0 30px 85px rgba(23, 33, 47, .15);
}

.demo-logo img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.demo-queue-label { margin-top: 13px; color: #748089; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.demo-ticket-head span.ready { color: var(--green); background: var(--green-soft); }

.hero-basket-art {
  position: absolute;
  z-index: 4;
  width: min(345px, 53%);
  height: auto;
  inset-inline-end: -46px;
  inset-block-end: -58px;
  filter: drop-shadow(0 24px 22px rgba(23, 33, 47, .14));
  animation: basket-float 5s ease-in-out infinite;
}

.hero-product-stage .floating-receipt {
  display: none;
}

.floating-receipt::before { display: none; }
.floating-receipt-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--green); }
.floating-receipt-icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

@keyframes basket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.logo-strip-inner { min-height: 78px; }
.logo-strip-inner span { display: inline-flex; align-items: center; gap: 7px; }
.logo-strip-inner img { width: 18px; height: 18px; opacity: .72; }

.section { padding: 104px 0; }
.section-heading { margin-bottom: 50px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 51px); }

.benefit-grid { gap: 56px; }
.benefit-card {
  padding: 8px 18px;
  border: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}
.benefit-icon {
  width: 76px;
  height: 76px;
  margin-inline: auto;
  border: 1px solid #cce4df;
  border-radius: 22px;
  background: #f2faf8;
}
.benefit-icon img { width: 38px; height: 38px; }
.benefit-card:nth-child(2) .benefit-icon,
.benefit-card:nth-child(3) .benefit-icon { color: var(--brand); background: #f2faf8; }
.benefit-card h3 { margin-top: 25px; font-size: 20px; }
.benefit-card p { max-width: 320px; margin-inline: auto; font-size: 15px; }

.section.soft {
  background:
    radial-gradient(circle at 50% 0, rgba(71, 180, 166, .08), transparent 33%),
    #f8fbfb;
}

.process-grid { gap: 30px; }
.process-grid::before { top: 54px; border-top: 1px dashed #a9ccc7; background: transparent; }
.process-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 auto 21px;
  place-items: center;
  border: 1px solid #cce2df;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 13px 30px rgba(23, 33, 47, .06);
}
.process-icon img { width: 41px; height: 41px; }
.process-icon b {
  position: absolute;
  inset-block-start: -7px;
  inset-inline-end: 3px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 4px solid #f8fbfb;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
}
.process-number { display: none; }
.process-step h3 { font-size: 18px; }
.process-step p { max-width: 215px; font-size: 14px; }

.role-grid { gap: 20px; }
.role-card { padding: 28px; border-radius: 15px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.role-card:hover { border-color: #b9d4d0; box-shadow: 0 16px 38px rgba(23, 33, 47, .07); transform: translateY(-3px); }
.role-avatar { width: 48px; height: 48px; }
.role-avatar img { width: 24px; height: 24px; }
.role-card:nth-child(2) .role-avatar img { filter: invert(39%) sepia(30%) saturate(1487%) hue-rotate(177deg) brightness(91%) contrast(89%); }
.role-card:nth-child(3) .role-avatar img { filter: invert(38%) sepia(18%) saturate(1449%) hue-rotate(219deg) brightness(91%) contrast(90%); }
.role-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("/vendor/tabler-icons/check.svg");
  filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%);
}

.cta-card { border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(23, 33, 47, .16); }

/* Real icon language inside the app */
.nav-icon { width: 19px; height: 19px; filter: brightness(0) invert(1); opacity: .68; }
.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon { opacity: 1; }
.metric-icon img { width: 19px; height: 19px; }
.service-symbol {
  width: 45px !important;
  height: 45px !important;
  margin-bottom: 12px !important;
  border-radius: 12px !important;
}
.service-symbol img { width: 25px; height: 25px; }
.service-choice { min-height: 144px; padding: 16px 16px 44px; border-radius: 12px; }
.service-choice strong { max-width: calc(100% - 20px); line-height: 1.35; }
.service-choice small { line-height: 1.35; }
.service-choice b { inset-inline-start: 16px; bottom: 14px; }
.service-choice::after { display: none; }
.service-add-icon {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-soft);
}
.service-add-icon img { width: 17px; height: 17px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.category-chip { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding-inline: 14px; }
.category-chip img { width: 18px; height: 18px; opacity: .72; }
.category-chip.active img { opacity: 1; }

.create-layout > * { min-width: 0; }
.customer-choice { grid-template-columns: 36px minmax(0, 1fr) auto; width: 100%; text-align: start; }
.customer-choice > span:nth-child(2) { min-width: 0; }
.customer-choice strong,
.customer-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-price { text-align: end; }

.mobile-cart-bar { display: none; }
.cart-empty img { width: 24px; height: 24px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }

/* RTL and logical layout */
.app-sidebar { inset-inline-start: 0; }
.sidebar-nav a.active { box-shadow: inset 3px 0 0 #4fd1c5; }
.nav-count { margin-inline-start: auto; margin-left: 0; }
.search-control img,
.search-control svg { inset-inline-start: 13px; left: auto; }
.search-control img { position: absolute; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); filter: invert(55%) sepia(9%) saturate(433%) hue-rotate(161deg) brightness(95%) contrast(90%); }
.search-control input { padding-inline: 40px 13px; }
.filter-tab span { margin-inline-start: 4px; margin-left: 0; }
.data-table th,
.document-table th { text-align: start; }
.customer-results { padding-inline-end: 3px; padding-right: 0; }
.status-step:not(:last-child)::before { inset-inline-start: 12px; left: auto; }
.note-box { border-inline-start: 3px solid #e1ad5a; border-left: 0; border-radius: 8px; }
.document-totals { margin-inline-start: auto; margin-right: 0; }
.toast { inset-inline-end: 25px; right: auto; }

[dir="rtl"] .app-shell { grid-template-columns: minmax(0, 1fr) var(--sidebar-width); }
[dir="rtl"] .app-main { grid-column: 1; }
[dir="rtl"] .app-sidebar { left: auto; }
[dir="rtl"] .sidebar-nav a.active { box-shadow: inset -3px 0 0 #4fd1c5; }
[dir="rtl"] .demo-window-bar strong { margin-inline-start: 8px; margin-left: 0; }
[dir="rtl"] .demo-app { direction: rtl; }

.toast[data-kind="error"] { border-color: #efc3c0; color: #7f302c; background: var(--red-soft); }
.toast[data-kind="error"] .toast-check { background: var(--red); }
.dialog-close img { width: 20px; height: 20px; opacity: .7; }
.step-dot img { width: 14px; height: 14px; opacity: 0; }
.status-step.done .step-dot img,
.status-step.current .step-dot img { opacity: 1; filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The sidebar is fixed at the logical start edge. Reserve that space without
   relying on RTL-sensitive grid line numbering. */
@media (min-width: 901px) {
  .app-shell { display: block; padding-inline-start: var(--sidebar-width); }
  .app-main { width: 100%; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); gap: 34px; }
  .hero-basket-art { inset-inline-end: -15px; }
  .hero-product-stage .floating-receipt { inset-inline-end: 195px; }
}

@media (max-width: 900px) {
  .hero { padding-top: 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-message { max-width: 700px; }
  .hero-product-stage { width: min(630px, 100%); min-height: 540px; margin-inline: auto; }
  .benefit-grid { gap: 38px; }
  .create-layout { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { transform: translateX(-105%); box-shadow: 20px 0 60px rgba(0, 0, 0, .25); }
  [dir="rtl"] .app-sidebar { transform: translateX(105%); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
  body.sidebar-open .app-sidebar,
  [dir="rtl"] body.sidebar-open .app-sidebar { transform: translateX(0); }
  .mobile-cart-bar {
    position: fixed;
    z-index: 40;
    inset-inline: 13px;
    inset-block-end: 13px;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 14px 34px rgba(23, 33, 47, .28);
  }
  .mobile-cart-bar[hidden] { display: none; }
  .mobile-cart-bar span { display: grid; text-align: start; }
  .mobile-cart-bar strong { font-size: 14px; }
  .mobile-cart-bar small { color: #b9c5ce; font-size: 11px; }
  .mobile-cart-bar b { color: #77ded3; font-size: 16px; }
}

@media (max-width: 650px) {
  .public-links { gap: 7px; }
  .public-links > a.button { display: none; }
  .public-links > a.public-account-link { display: inline-flex; min-height: 42px; }
  .public-language { min-width: 42px; min-height: 42px; }
  .hero h1 { font-size: clamp(43px, 13vw, 59px); }
  .hero-product-stage { min-height: 405px; }
  .hero-product-stage .demo-window { inset: 0; }
  .hero-basket-art { width: 49%; inset-inline-end: -6px; inset-block-end: -27px; }
  .hero-product-stage .floating-receipt { width: 142px; inset-inline-end: 35%; inset-block-end: -4px; padding: 13px; }
  .logo-strip-inner { flex-wrap: wrap; gap: 13px 20px; padding-block: 16px; }
  .logo-strip-inner strong { width: 100%; }
  .section { padding: 75px 0; }
  .benefit-grid { gap: 42px; }
  .benefit-card { padding-inline: 8px; }
  .process-grid { gap: 34px 12px; }
  .process-icon { width: 86px; height: 86px; }
  .process-icon img { width: 34px; height: 34px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-choice { min-width: 0; min-height: 153px; padding: 13px 13px 44px; }
  .category-chip,
  .filter-tab { min-height: 44px; }
  .qty-control button { width: 44px !important; height: 44px !important; }
  .mobile-ticket-foot .button { min-height: 44px; }
  .prototype-banner { height: 30px; padding-inline: 10px; overflow: hidden; font-size: 10px !important; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
  .branch-picker { display: none; }
  .topbar-left,
  .topbar-actions { min-width: 0; gap: 5px; }
  #demo-role-form { min-width: 0; gap: 4px; }
  .demo-role-picker { min-width: 0; padding-inline: 5px; }
  .demo-role-picker select { width: 86px; min-width: 0; }
  .demo-role-apply { min-width: 42px; padding-inline: 6px; }
  .language-button { display: inline-flex; min-width: 42px; align-items: center; justify-content: center; padding-inline: 6px; }
  .language-full { display: none; }
  .language-short { display: inline; }
}

/* Clean A4 ticket and document printing */
.ticket-print { display: none; }
.ticket-print .document-info small { color: var(--muted); font-size: 11px; }
.print-note { margin-top: 22px; padding: 13px 15px; border-inline-start: 3px solid #e1ad5a; border-radius: 8px; color: #6b5127; background: var(--amber-soft); font-size: 12px; }

@media print {
  @page { size: A4; margin: 12mm; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .no-print,
  .page-heading-actions,
  .toolbar,
  .row-actions,
  .mobile-cart-bar { display: none !important; }
  .ticket-screen { display: none !important; }
  .ticket-print { display: block !important; }
  .ticket-print,
  .document-page { break-inside: avoid; }
  .panel,
  .document-table tr { break-inside: avoid; }
  .document-page { max-width: none; border: 0; }
}

/* Counter-worker enhancements: keep the order flow obvious, tactile, and calm. */
.staff-shell .app-shell { padding-top: 0; }
.staff-shell .app-sidebar { top: 0; }
.staff-shell .app-topbar { top: 0; }
.skip-link { position: fixed; z-index: 200; inset-block-start: 8px; inset-inline-start: 8px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.step-card .step-header { min-height: 76px; }
.step-card .step-number { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
.step-card .step-header strong { font-size: 16px; }
.step-card .step-header small { margin-top: 3px; font-size: 13px; }
.step-instruction { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.customer-phone-search input { height: 56px; font-size: 18px !important; font-weight: 700; letter-spacing: .02em; }
.customer-phone-search img { width: 21px; height: 21px; }
.customer-phone-error { display: block; margin-top: 6px; }
.customer-results[hidden],
.selected-customer-card[hidden],
.customer-new-fields[hidden],
.service-choice[hidden],
#delivery-address-field[hidden] { display: none !important; }
.customer-results { margin-top: 12px; }
.customer-choice { min-height: 60px; padding: 11px 12px; }
.customer-choice strong { font-size: 14px !important; }
.customer-choice small { font-size: 13px !important; }
.selected-customer-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 2px solid #9bd3cc;
  border-radius: 12px;
  background: var(--brand-pale);
}
.selected-customer-card > span:nth-child(2) { min-width: 0; }
.selected-customer-card strong,
.selected-customer-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-customer-card strong { font-size: 15px; }
.selected-customer-card small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.selected-customer-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: var(--brand); }
.selected-customer-icon img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
.selected-customer-card .text-button { min-height: 44px; padding-inline: 12px; font-size: 13px; }
.new-customer-toggle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--brand-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}
.new-customer-toggle:hover,
.new-customer-toggle.active { border-color: var(--brand); background: var(--brand-soft); }
.new-customer-toggle img { width: 19px; height: 19px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.customer-new-fields { margin-top: 13px; }

.category-chip { min-height: 48px; font-size: 13px !important; }
.service-choice {
  display: flex;
  min-width: 0;
  min-height: 198px;
  flex-direction: column;
  padding: 16px;
  border-radius: 13px;
  text-align: start;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.service-choice.selected { border: 2px solid var(--brand); background: var(--brand-pale); box-shadow: 0 8px 20px rgba(15,118,110,.1); }
.service-choice strong { max-width: none; font-size: 14px !important; }
.service-choice small { min-height: 34px; font-size: 13px !important; line-height: 1.4; }
.service-choice b { position: static; margin-top: auto; padding-top: 10px; font-size: 13px !important; }
.service-tile-quantity {
  display: grid;
  grid-template-columns: 48px minmax(34px, 1fr) 48px;
  align-items: center;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #c9d4d6;
  border-radius: 11px;
  background: #fff;
}
.service-tile-quantity button { display: grid; min-width: 48px; height: 48px; padding: 0; place-items: center; border: 0; color: var(--ink); background: #f6f8f8; font-size: 24px; font-weight: 700; }
.service-tile-quantity button:last-child { color: #fff; background: var(--brand); }
.service-tile-quantity button:disabled { color: #aab3b8; background: #f3f5f5; cursor: not-allowed; }
.service-tile-quantity output { font-size: 17px; font-weight: 850; text-align: center; }

.step-card .field > span,
.step-card .field > label,
.handover-field legend,
.quick-note-area > span { color: #52606a; font-size: 14px; font-weight: 800; text-transform: none; }
.due-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.due-presets button,
.quick-note-chips button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #46545e;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}
.due-presets button:hover,
.due-presets button.active,
.quick-note-chips button:hover,
.quick-note-chips button.active { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.handover-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.handover-field legend { margin-bottom: 8px; padding: 0; }
.handover-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.handover-option {
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.handover-option:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-pale); }
.handover-option:focus-within { box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.handover-option input { width: 19px; height: 19px; accent-color: var(--brand); }
.handover-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; background: var(--brand-soft); }
.handover-icon img { width: 23px; height: 23px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.handover-option strong,
.handover-option small { display: block; }
.handover-option strong { font-size: 14px; }
.handover-option small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.quick-note-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-next { display: grid; gap: 3px; padding: 13px 18px; border-bottom: 1px solid #c8dedb; background: var(--brand-pale); }
.summary-next span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.summary-next strong { color: var(--brand-strong); font-size: 16px; }
.summary-disclaimer { font-size: 12px; line-height: 1.45; }
.metric-grid.staff-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.counter-shortcut-list { display: grid; }
.counter-shortcut {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f1;
  color: var(--ink);
  text-decoration: none;
}
.counter-shortcut:last-child { border-bottom: 0; }
.counter-shortcut:hover { background: var(--brand-pale); }
.counter-shortcut > span:first-child { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--brand-soft); }
.counter-shortcut img { width: 23px; height: 23px; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.counter-shortcut strong,
.counter-shortcut small { display: block; }
.counter-shortcut strong { font-size: 15px; }
.counter-shortcut small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.order-search-group { display: flex; min-width: min(470px, 100%); align-items: center; gap: 8px; }
.order-search-group .search-control { flex: 1; }
.queue-badges { display: grid; justify-items: start; gap: 6px; }
.handover-badge { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.handover-badge img { width: 15px; height: 15px; opacity: .68; }
.due-badge { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 850; }
.due-badge.overdue { color: #9b2f29; background: var(--red-soft); }
.due-badge.soon { color: #88600d; background: var(--amber-soft); }
.ticket-created-banner {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 17px 19px;
  border: 1px solid #9bd3cc;
  border-radius: var(--radius);
  background: var(--brand-pale);
  box-shadow: var(--shadow-sm);
}
.ticket-created-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--brand); }
.ticket-created-icon img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.ticket-created-banner h2 { margin: 0; font-size: 20px; }
.ticket-created-banner p { margin: 5px 0 0; color: #55716d; font-size: 14px; }
.ticket-created-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

@media (max-width: 900px) {
  .app-content { padding-block-end: 100px; }
  .metric-grid.staff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-search-group { min-width: 100%; }
  .mobile-cart-bar small { font-size: 13px; }
  .mobile-cart-bar strong { font-size: 15px; }
}

@media (max-width: 650px) {
  .step-body { padding: 15px; }
  .handover-options { grid-template-columns: 1fr; }
  .service-grid { gap: 8px; }
  .service-choice { min-height: 214px; padding: 13px; }
  .service-choice .service-symbol { width: 42px !important; height: 42px !important; }
  .service-choice small { min-height: 51px; }
  .service-tile-quantity { grid-template-columns: 44px minmax(28px, 1fr) 44px; }
  .service-tile-quantity button { min-width: 44px; height: 48px; }
  .selected-customer-card { grid-template-columns: 42px minmax(0, 1fr); }
  .selected-customer-card .text-button { grid-column: 1 / -1; width: 100%; border-top: 1px solid #c8dedb; }
  .ticket-created-banner { grid-template-columns: 48px minmax(0, 1fr); padding: 15px; }
  .ticket-created-icon { width: 46px; height: 46px; }
  .ticket-created-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; width: 100%; }
  .metric-grid.staff-metrics { grid-template-columns: 1fr; }
  .order-search-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 360px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-choice { min-height: 190px; }
}

/* Prototype eInvoice sharing */
.whatsapp-button { border-color: #168d48 !important; color: #fff !important; background: #168d48 !important; }
.whatsapp-button:hover { border-color: #11783c !important; background: #11783c !important; }
.whatsapp-button .button-icon { filter: brightness(0) invert(1); }
.mini-actions a[href*="wa.me"] { border-color: #b7ddc6; color: #11783c; background: #eefaf2; }
.mini-actions a[href*="wa.me"] img { opacity: 1; filter: invert(39%) sepia(74%) saturate(631%) hue-rotate(94deg) brightness(87%) contrast(91%); }

.einvoice-qr {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  break-inside: avoid;
}
.einvoice-qr > img { display: block; width: 128px; height: 128px; padding: 5px; border: 1px solid #d8dfe0; border-radius: 8px; background: #fff; }
.einvoice-qr-copy { display: grid; min-width: 0; gap: 5px; }
.einvoice-qr-copy strong { color: var(--ink); font-size: 14px; }
.einvoice-qr-copy span { color: var(--muted); font-size: 11px; }
.einvoice-qr-copy a { color: var(--brand); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }

.einvoice-public { min-height: 100vh; padding: 36px 18px 60px; background: linear-gradient(180deg, #ecf7f5 0, #f6f8f8 320px); }
.einvoice-public-shell { width: min(780px, 100%); margin: 0 auto; }
.einvoice-public-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.einvoice-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.einvoice-brand .brand-mark { width: 42px; height: 42px; }
.einvoice-brand strong,
.einvoice-brand small { display: block; }
.einvoice-brand strong { font-size: 17px; }
.einvoice-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.einvoice-document { width: 100%; }
.einvoice-preview-notice,
.einvoice-placeholder { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #b9d9d4; border-radius: 11px; background: var(--brand-pale); }
.einvoice-preview-notice > img,
.einvoice-placeholder > img { width: 28px; height: 28px; flex: 0 0 auto; filter: invert(38%) sepia(29%) saturate(1230%) hue-rotate(127deg) brightness(91%) contrast(94%); }
.einvoice-preview-notice strong,
.einvoice-placeholder strong { display: block; font-size: 13px; }
.einvoice-preview-notice p,
.einvoice-placeholder p { margin: 4px 0 0; color: #55716d; font-size: 12px; }
.einvoice-placeholder { margin: 20px 0 0; }
.einvoice-public-actions { margin-bottom: 0; }

@media (max-width: 560px) {
  .einvoice-public { padding: 18px 10px 38px; }
  .einvoice-public-bar { padding-inline: 4px; }
  .einvoice-qr { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px; }
  .einvoice-qr > img { width: 104px; height: 104px; }
  .einvoice-qr-copy a { font-size: 9px; }
}

@media print {
  .einvoice-qr { grid-template-columns: 32mm minmax(0, 1fr); gap: 6mm; border-color: #999; }
  .einvoice-qr > img { width: 32mm; height: 32mm; padding: 1.5mm; border-color: #aaa; }
  .einvoice-qr-copy strong { font-size: 11pt; }
  .einvoice-qr-copy span,
  .einvoice-qr-copy a { color: #222; font-size: 8pt; }
}
