/* ===================== اجزای مشترک ===================== */

/* ---------- دکمه ---------- */
.btn {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-4);
  border: 1px solid var(--btn-border); border-radius: var(--radius-sm); letter-spacing: -0.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: var(--weight-bold); font-size: var(--text-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
  user-select: none;
}
.btn:hover { --btn-bg: var(--color-surface-2); color: var(--btn-fg); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn[aria-pressed="true"] { --btn-bg: var(--color-primary-soft); --btn-border: var(--color-primary); color: var(--color-primary-strong); }
.btn--primary { --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); --btn-border: transparent; background: var(--grad-primary); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), var(--shadow-glow); }
.btn--primary:hover { --btn-bg: var(--color-primary-strong); background: var(--grad-primary); filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); color: var(--btn-fg); }
.btn--gold { --btn-fg: #1b1408; --btn-border: transparent; background: var(--grad-gold); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 10px 26px -12px rgb(142 106 34 / 0.8); }
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); color: #1b1408; }
.btn--glass { --btn-bg: rgb(255 255 255 / 0.12); --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: rgb(255 255 255 / 0.2); color: #fff; }
.btn--accent { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); --btn-border: transparent; }
.btn--accent:hover { --btn-bg: var(--color-accent); filter: brightness(1.1); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn--ghost:hover { --btn-bg: var(--color-surface-2); }
.btn--soft { --btn-bg: var(--color-primary-soft); --btn-fg: var(--color-primary-strong); --btn-border: transparent; }
.btn--soft:hover { --btn-bg: var(--color-primary-soft); filter: brightness(0.97); }
.btn--danger { --btn-bg: var(--color-danger); --btn-fg: #fff; --btn-border: transparent; }
.btn--danger:hover { --btn-bg: var(--color-danger); filter: brightness(1.08); }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--color-danger); --btn-border: transparent; }
.btn--danger-ghost:hover { --btn-bg: var(--color-danger-soft); }
.btn--success { --btn-bg: var(--color-success); --btn-fg: #fff; --btn-border: transparent; }
[data-theme="night"] .btn--success, [data-theme="night"] .btn--danger { --btn-fg: #0b0d10; }
.btn--sm { min-height: var(--control-h-sm); padding: 0 var(--space-3); font-size: var(--text-xs); border-radius: var(--radius-xs); }
.btn--lg { min-height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--text-md); border-radius: var(--radius-md); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1.2em; height: 1.2em;
  border: 2px solid var(--btn-fg); border-inline-end-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-success { --btn-bg: var(--color-success); --btn-fg: #fff; --btn-border: transparent; }
.btn .badge-count { position: absolute; inset-block-start: -6px; inset-inline-start: -6px; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--touch-min); height: var(--touch-min);
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: inherit;
  transition: background-color var(--motion-fast);
  position: relative;
}
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn--outline { border-color: var(--color-border); background: var(--color-surface); }
.icon-btn--sm { width: var(--control-h-sm); height: var(--control-h-sm); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badge / وضعیت ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 2px var(--space-2); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.6; white-space: nowrap;
  background: var(--badge-bg, var(--color-neutral-soft)); color: var(--badge-fg, var(--color-neutral));
}
.badge .icon { width: 1.1em; height: 1.1em; }
.badge--primary { --badge-bg: var(--color-primary-soft); --badge-fg: var(--color-primary-strong); }
.badge--success { --badge-bg: var(--color-success-soft); --badge-fg: var(--color-success); }
.badge--warning { --badge-bg: var(--color-warning-soft); --badge-fg: var(--color-warning); }
.badge--danger { --badge-bg: var(--color-danger-soft); --badge-fg: var(--color-danger); }
.badge--info { --badge-bg: var(--color-info-soft); --badge-fg: var(--color-info); }
.badge--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--color-border-strong); color: var(--color-text-muted); }
.badge--solid { --badge-bg: var(--color-accent); --badge-fg: var(--color-on-accent); }
.badge-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--color-danger); color: #fff;
  font-size: 11px; font-weight: var(--weight-bold); line-height: 1;
}
.status { --s: var(--status-pending); --s-soft: var(--status-pending-soft);
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2);
  border-radius: var(--radius-pill); background: var(--s-soft); color: var(--s);
  font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap;
}
.status[data-status="accepted"] { --s: var(--status-accepted); --s-soft: var(--status-accepted-soft); }
.status[data-status="preparing"] { --s: var(--status-preparing); --s-soft: var(--status-preparing-soft); }
.status[data-status="ready"] { --s: var(--status-ready); --s-soft: var(--status-ready-soft); }
.status[data-status="served"] { --s: var(--status-served); --s-soft: var(--status-served-soft); }
.status[data-status="cancelled"] { --s: var(--status-cancelled); --s-soft: var(--status-cancelled-soft); }
.status .icon { width: 1.1em; height: 1.1em; }

/* ---------- Chip / فیلتر ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-bold);
  white-space: nowrap; text-decoration: none; transition: background-color var(--motion-fast), border-color var(--motion-fast);
}
.chip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 6px 16px -10px var(--color-accent);
}
.chip[aria-pressed="true"]::before, .chip.is-active::before { content: "✓"; font-size: 0.85em; }
.chip-row { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-block: var(--space-1); scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row > * { scroll-snap-align: start; }

/* ---------- فرم ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field__label { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.field__label .req { color: var(--color-danger); margin-inline-start: 2px; }
.field__hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.field__error { display: none; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-danger); font-weight: var(--weight-bold); }
.field.has-error .field__error { display: flex; }
.input, .select, .textarea {
  width: 100%; min-height: var(--control-h); padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); font-size: var(--text-md);
  box-shadow: inset 0 1px 2px rgb(27 22 18 / 0.04);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.textarea { padding: var(--space-2) var(--space-3); min-height: 96px; resize: vertical; line-height: var(--leading-normal); }
.select { appearance: none; padding-inline-end: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8580' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: left 12px center; background-size: 16px; background-repeat: no-repeat;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-subtle); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .input[aria-invalid="true"] { border-color: var(--color-danger); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--color-surface-2); color: var(--color-text-subtle); cursor: not-allowed; }
.input--ltr { direction: ltr; text-align: right; }
.input--ltr::placeholder { text-align: right; direction: rtl; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--color-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 25%, transparent); }
.input-group .input { border: 0; box-shadow: none !important; min-width: 0; }
.input-group__addon { display: grid; place-items: center; padding: 0 var(--space-3); color: var(--color-text-muted); background: var(--color-surface-2); font-size: var(--text-sm); white-space: nowrap; }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: var(--space-2); justify-content: flex-start; flex-wrap: wrap; padding-top: var(--space-2); }

/* جست‌وجو */
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; inset-inline-start: var(--space-3); color: var(--color-text-subtle); pointer-events: none; }
.search .input { padding-inline-start: calc(var(--space-3) * 2 + 1.25em); border-radius: var(--radius-pill); }
.search .input::-webkit-search-cancel-button { display: none; }

/* چک‌باکس و رادیو */
.check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch-min); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--color-primary); flex: none; margin: 0; }
.option-card {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 56px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.option-card:hover { border-color: var(--color-border-strong); }
.option-card input { width: 22px; height: 22px; accent-color: var(--color-primary); margin: 0; flex: none; }
.option-card:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.option-card:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.option-card__body { flex: 1; min-width: 0; }
.option-card__price { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.option-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* سوییچ */
.switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; min-height: var(--touch-min); }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: var(--radius-pill); background: var(--color-surface-3); position: relative; margin: 0; flex: none; transition: background-color var(--motion-fast); cursor: pointer; }
.switch input::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform var(--motion-fast); }
.switch input:checked { background: var(--color-primary); }
.switch input:checked::after { transform: translateX(-18px); }
[dir="ltr"] .switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* کنترل قطعه‌ای */
.segmented { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--radius-sm); background: var(--color-surface-2); border: 1px solid var(--color-border); flex-wrap: wrap; }
.segmented button, .segmented label {
  min-height: calc(var(--control-h) - 8px); padding: 0 var(--space-3); border: 0; border-radius: calc(var(--radius-sm) - 3px);
  background: transparent; font-weight: var(--weight-bold); font-size: var(--text-sm); display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; color: var(--color-text-muted);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented [aria-pressed="true"], .segmented label:has(input:checked) { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-xs); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--color-focus); }

/* تغییر تعداد */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--color-primary); }
.qty button:hover { background: var(--color-primary-soft); }
.qty button:disabled { color: var(--color-text-subtle); background: transparent; cursor: not-allowed; }
.qty output, .qty input { min-width: 2.2ch; text-align: center; font-weight: var(--weight-black); border: 0; background: transparent; width: 3ch; }
.qty--lg button { width: var(--control-h-lg); height: var(--control-h-lg); }

/* OTP */
.otp { display: flex; gap: var(--space-3); justify-content: center; direction: ltr; }
.otp input {
  width: 56px; height: 64px; text-align: center; font-size: var(--text-2xl); font-weight: var(--weight-black);
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface);
}
.otp input:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.otp.has-error input { border-color: var(--color-danger); }

/* کیبورد مبلغ */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); direction: ltr; }
.keypad button {
  min-height: 56px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  font-size: var(--text-xl); font-weight: var(--weight-bold); display: grid; place-items: center;
}
.keypad button:hover { background: var(--color-surface-2); }
.keypad button:active { transform: scale(0.97); }
.keypad .keypad__wide { grid-column: span 2; }
.amount-display { direction: rtl; text-align: center; font-size: var(--text-2xl); font-weight: var(--weight-black); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-2); font-variant-numeric: tabular-nums; }

/* آپلود */
.upload {
  display: grid; place-items: center; gap: var(--space-2); padding: var(--space-6); text-align: center;
  border: 2px dashed var(--color-border-strong); border-radius: var(--radius-card); background: var(--color-surface-2); color: var(--color-text-muted);
  cursor: pointer; transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.upload:hover, .upload.is-dragover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.upload:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-preview { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-2); }

/* انتخاب رنگ */
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--color-surface); box-shadow: 0 0 0 1px var(--color-border-strong); cursor: pointer; display: grid; place-items: center; color: #fff; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--color-text); }
.color-field { display: flex; align-items: center; gap: var(--space-2); }
.color-field input[type="color"] { width: 48px; height: var(--control-h); padding: 2px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface); cursor: pointer; }

/* ---------- کارت ---------- */
.card {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--card-pad, var(--space-5));
}
/* کارت با حاشیه گرادیان طلایی برای بخش‌های شاخص */
.card--lux { border-color: transparent; background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, var(--ring-gold) border-box; }
.card--ink { background: var(--grad-ink); color: #f5efe4; border-color: rgb(255 255 255 / 0.06); }
.card--ink .muted, .card--ink .card__sub { color: #b6aa96; }
.card--flat { box-shadow: none; }
.card--plain { box-shadow: none; border: 0; background: var(--color-surface-2); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.card__title { font-size: var(--text-lg); margin: 0; }
.card__sub { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); color: inherit; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: var(--space-1); }
.kpi__label { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--space-2); }
.kpi__value { font-size: var(--text-2xl); font-weight: var(--weight-black); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi__unit { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.kpi__trend { font-size: var(--text-xs); font-weight: var(--weight-bold); display: inline-flex; gap: 2px; align-items: center; }
.kpi__trend--up { color: var(--color-success); }
.kpi__trend--down { color: var(--color-danger); }
.meter { height: 8px; border-radius: var(--radius-pill); background: var(--color-surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--color-primary); border-radius: inherit; }
.meter.is-warning > span { background: var(--color-warning); }
.meter.is-danger > span { background: var(--color-danger); }

/* آواتار */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--color-primary-soft); color: var(--color-primary-strong); font-weight: var(--weight-black); font-size: var(--text-sm); }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 3px solid var(--color-focus); }
.table { min-width: 640px; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: start; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table th { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); background: var(--color-surface-2); position: sticky; top: 0; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-surface-2); }
.table tr.is-selected { background: var(--color-primary-soft); }
.table .num, .table td[data-type="money"] { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: end; white-space: nowrap; }
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.th-sort[aria-sort] { color: var(--color-text); }
.scroll-hint { font-size: var(--text-xs); color: var(--color-text-subtle); display: none; }
@media (max-width: 720px) { .scroll-hint { display: block; } }

/* ---------- صفحه‌بندی ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-4); }
.pagination__pages { display: flex; gap: var(--space-1); align-items: center; }
.pagination__pages button { min-width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); font-weight: var(--weight-bold); }
.pagination__pages button[aria-current="page"] { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.pagination__status { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 560px) { .pagination__pages .page-num { display: none; } }

/* ---------- تب ---------- */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; min-height: var(--touch-min); padding: 0 var(--space-4); border: 0; background: none;
  font-weight: var(--weight-bold); color: var(--color-text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none;
}
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--color-primary-strong); }
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { content: ""; position: absolute; inset-inline: var(--space-2); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-primary); }
.tab-panel:focus-visible { outline-offset: 4px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.breadcrumb li:not(:last-child)::after { content: "‹"; margin-inline-start: var(--space-1); color: var(--color-text-subtle); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: var(--weight-bold); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-6); counter-reset: step; overflow-x: auto; }
.stepper li { flex: 1 1 0; min-width: 88px; counter-increment: step; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--color-surface-3); }
.stepper li > span::before { content: counter(step, persian) ". "; }
.stepper li.is-done::before, .stepper li[aria-current="step"]::before { background: var(--color-primary); }
.stepper li[aria-current="step"] { color: var(--color-text); }
.stepper li.is-done > span::after { content: " ✓"; color: var(--color-success); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding-inline-start: var(--space-8); padding-bottom: var(--space-4); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 0; width: 2px; background: var(--color-border); }
.timeline li:last-child::before { display: none; }
.timeline__dot { position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-text-muted); border: 2px solid var(--color-surface); box-shadow: 0 0 0 1px var(--color-border); }
.timeline__dot .icon { width: 14px; height: 14px; }
.timeline li.is-done .timeline__dot { background: var(--color-success); color: #fff; }
.timeline li.is-current .timeline__dot { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.timeline__title { font-weight: var(--weight-bold); }
.timeline__meta { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--color-border); }
.accordion summary { list-style: none; cursor: pointer; padding: var(--space-4); font-weight: var(--weight-bold); display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; min-height: var(--touch-min); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: var(--text-xl); color: var(--color-primary); line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion .accordion__body { padding: 0 var(--space-4) var(--space-4); color: var(--color-text-muted); }

/* ---------- Dropdown / Popover ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 220px; z-index: var(--z-drawer);
  background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-raised);
  padding: var(--space-1); display: none;
}
.dropdown.is-open .dropdown__menu { display: block; animation: pop-in var(--motion-fast) var(--motion-ease-out); }
.dropdown__menu--start { inset-inline-end: auto; inset-inline-start: 0; }
.menu-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--touch-min); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; text-align: start; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); }
.menu-item:hover, .menu-item:focus-visible { background: var(--color-surface-2); color: var(--color-text); outline: none; }
.menu-item[aria-checked="true"] { color: var(--color-primary-strong); font-weight: var(--weight-bold); }
.menu-item--danger { color: var(--color-danger); }
.menu-sep { height: 1px; background: var(--color-border); margin: var(--space-1) 0; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }

/* Tooltip — فقط توضیح تکمیلی؛ هیچ اقدامی وابسته به hover نیست */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); inset-inline-start: 50%; transform: translateX(50%);
  background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-xs); font-weight: var(--weight-bold);
  padding: 4px 8px; border-radius: var(--radius-xs); white-space: nowrap; z-index: var(--z-toast); pointer-events: none;
}

/* ---------- Overlay: Modal / Drawer / Sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; }
.overlay__backdrop { position: absolute; inset: 0; background: var(--color-overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in var(--motion-duration) var(--motion-ease); }
.overlay.is-closing .overlay__backdrop { animation: fade-out var(--motion-fast) forwards; }
.overlay__panel:focus-visible { outline: none; }
.overlay__panel {
  position: relative; background: var(--color-bg-elevated); color: var(--color-text); box-shadow: var(--shadow-overlay);
  display: flex; flex-direction: column; max-height: 100%; outline: none;
}
.overlay__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.overlay__title { font-size: var(--text-lg); margin: 0; }
.overlay__body { padding: var(--space-5); overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.overlay__foot { padding: var(--space-3) var(--space-5); padding-bottom: max(var(--space-3), env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); display: flex; gap: var(--space-2); flex-wrap: wrap; background: var(--color-bg-elevated); }

.overlay--modal { align-items: center; justify-content: center; padding: var(--space-4); }
.overlay--modal .overlay__panel { width: min(560px, 100%); border-radius: var(--radius-lg); animation: modal-in var(--motion-slow) var(--motion-ease-out); max-height: min(88dvh, 860px); }
.overlay--modal.overlay--wide .overlay__panel { width: min(880px, 100%); }
.overlay--drawer { justify-content: flex-start; }
.overlay--drawer .overlay__panel { width: min(420px, 92vw); height: 100%; animation: drawer-in var(--motion-slow) var(--motion-ease-out); }
.overlay--drawer.overlay--wide .overlay__panel { width: min(640px, 96vw); }
.overlay--drawer.overlay--end { justify-content: flex-end; }
.overlay--drawer.overlay--end .overlay__panel { animation-name: drawer-in-end; }
.overlay--sheet { align-items: flex-end; justify-content: center; }
.overlay--sheet .overlay__panel { width: min(640px, 100%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92dvh; animation: sheet-in var(--motion-slow) var(--motion-ease-out); }
.overlay--sheet .overlay__panel::before { content: ""; width: 40px; height: 5px; border-radius: 5px; background: var(--color-border-strong); margin: var(--space-2) auto 0; flex: none; }
@media (min-width: 760px) {
  .overlay--sheet { align-items: center; padding: var(--space-4); }
  .overlay--sheet .overlay__panel { border-radius: var(--radius-lg); }
  .overlay--sheet .overlay__panel::before { display: none; }
}
.overlay.is-closing .overlay__panel { animation: fade-out var(--motion-fast) forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-in-end { from { transform: translateX(-100%); } }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: var(--z-toast); inset-inline: 0; top: max(var(--space-3), env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); pointer-events: none; padding-inline: var(--space-3); }
/* موبایل: بالا تا نوار پایین، Sheet و دکمه ثبت پوشیده نشوند؛ دسکتاپ: پایین گوشه */
@media (min-width: 760px) { .toast-region { top: auto; bottom: var(--space-6); inset-inline: auto var(--space-6); align-items: flex-end; } }
.toast {
  pointer-events: auto; width: min(420px, 100%); display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-accent); color: var(--color-on-accent);
  box-shadow: var(--shadow-raised); animation: toast-in var(--motion-slow) var(--motion-ease-out);
}
.toast.is-leaving { animation: fade-out var(--motion-fast) forwards; }
.toast__icon { margin-top: 2px; }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: var(--weight-bold); font-size: var(--text-sm); }
.toast__text { font-size: var(--text-xs); opacity: 0.85; }
.toast__count { font-size: var(--text-xs); background: rgb(255 255 255 / 0.18); border-radius: var(--radius-pill); padding: 0 6px; margin-inline-start: var(--space-1); }
.toast .btn { --btn-bg: transparent; --btn-fg: inherit; --btn-border: rgb(255 255 255 / 0.35); min-height: 32px; }
.toast[data-tone="success"] .toast__icon { color: #7ee2a1; }
.toast[data-tone="danger"] .toast__icon { color: #ff9b91; }
.toast[data-tone="warning"] .toast__icon { color: #ffd479; }
[data-theme="night"] .toast[data-tone] .toast__icon { color: inherit; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
@media (min-width: 760px) { @keyframes toast-in { from { opacity: 0; transform: translateY(16px); } } }

/* ---------- Banner ---------- */
.banner {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--banner-bg, var(--color-info-soft)); color: var(--banner-fg, var(--color-info)); border: 1px solid color-mix(in srgb, var(--banner-fg, var(--color-info)) 22%, transparent);
}
.banner__body { flex: 1; min-width: 0; color: var(--color-text); font-size: var(--text-sm); }
.banner__title { font-weight: var(--weight-bold); color: var(--banner-fg, var(--color-info)); }
.banner--success { --banner-bg: var(--color-success-soft); --banner-fg: var(--color-success); }
.banner--warning { --banner-bg: var(--color-warning-soft); --banner-fg: var(--color-warning); }
.banner--danger { --banner-bg: var(--color-danger-soft); --banner-fg: var(--color-danger); }
.banner--neutral { --banner-bg: var(--color-neutral-soft); --banner-fg: var(--color-neutral); }
.banner--sticky { position: sticky; top: 0; z-index: var(--z-header); border-radius: 0; border-inline: 0; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-3) 50%, var(--color-surface-2) 75%); background-size: 200% 100%; border-radius: var(--radius-sm); animation: shimmer 1.4s infinite linear; }
[data-lite="true"] .skeleton { animation: none; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.skeleton--text { height: 0.9em; margin-block: 0.4em; }
.skeleton--row { height: 52px; margin-bottom: var(--space-2); }
.skeleton--card { height: 180px; border-radius: var(--radius-card); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- حالت خالی / خطا ---------- */
.state { display: grid; justify-items: center; text-align: center; gap: var(--space-2); padding: var(--space-10) var(--space-4); color: var(--color-text-muted); }
.state__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-text-subtle); margin-bottom: var(--space-2); }
.state__icon .icon { width: 32px; height: 32px; }
.state--danger .state__icon { background: var(--color-danger-soft); color: var(--color-danger); }
.state--warning .state__icon { background: var(--color-warning-soft); color: var(--color-warning); }
.state__title { font-size: var(--text-lg); font-weight: var(--weight-black); color: var(--color-text); margin: 0; }
.state__text { max-width: 44ch; margin: 0; }
.state__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-3); }
.state__ref { font-size: var(--text-xs); color: var(--color-text-subtle); }

/* ---------- اتصال زنده ---------- */
.conn { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-bold); padding: 4px var(--space-3); border-radius: var(--radius-pill); background: var(--color-neutral-soft); color: var(--color-neutral); white-space: nowrap; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn[data-state="live"] { background: var(--color-success-soft); color: var(--color-success); }
.conn[data-state="live"]::before { animation: pulse 2s infinite; }
.conn[data-state="reconnecting"], .conn[data-state="connecting"] { background: var(--color-warning-soft); color: var(--color-warning); }
.conn[data-state="offline"], .conn[data-state="disconnected"] { background: var(--color-danger-soft); color: var(--color-danger); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- رسید ---------- */
.receipt { font-size: 13px; line-height: 1.7; background: #fff; color: #111; padding: var(--space-4); border-radius: var(--radius-sm); width: 100%; max-width: 80mm; margin-inline: auto; box-shadow: var(--shadow-card); font-variant-numeric: tabular-nums; }
.receipt[data-paper="58"] { max-width: 58mm; font-size: 11.5px; }
.receipt[data-paper="a4"] { max-width: 190mm; font-size: 14px; padding: var(--space-8); }
.receipt__center { text-align: center; }
.receipt__title { font-weight: 800; font-size: 1.15em; }
.receipt__row { display: flex; justify-content: space-between; gap: 8px; }
.receipt__row > :last-child { white-space: nowrap; }
.receipt__sub { color: #444; font-size: 0.9em; padding-inline-start: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 6px 0; }
.receipt__total { font-weight: 800; font-size: 1.1em; }
.receipt__demo { text-align: center; border: 1px dashed #999; padding: 4px; margin-top: 8px; font-size: 0.85em; }

/* ---------- انتخاب میز ---------- */
.table-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--space-2); }
.table-tile {
  min-height: 72px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: var(--weight-black);
  position: relative;
}
.table-tile small { font-weight: var(--weight-bold); font-size: 11px; color: var(--color-text-muted); }
.table-tile[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); }
.table-tile[data-state="occupied"] { border-color: var(--status-preparing); }
.table-tile[data-state="awaiting_bill"] { border-color: var(--status-accepted); border-style: dashed; }
.table-tile[data-state="needs_cleaning"] { border-color: var(--status-cancelled); border-style: dotted; }
.table-tile:disabled { opacity: 0.5; }

/* ---------- کارت پرداخت ---------- */
.pay-method { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); min-height: 64px; width: 100%; text-align: start; }
.pay-method[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); }
.pay-method__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-primary-strong); flex: none; }

/* ---------- نوار ابزار حالت نمایشی (فقط محیط نمونه) ---------- */
.demo-bar { position: fixed; z-index: var(--z-toast); inset-inline-start: var(--space-3); bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); }
.demo-bar > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); min-height: 40px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-xs); font-weight: var(--weight-bold); box-shadow: var(--shadow-raised); opacity: 0.88; }
.demo-bar > summary::-webkit-details-marker { display: none; }
.demo-bar[open] > summary { opacity: 1; }
.demo-bar__panel { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; width: min(320px, calc(100vw - 24px)); max-height: 70dvh; overflow-y: auto; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); padding: var(--space-3); font-size: var(--text-sm); }
.demo-bar__panel h4 { font-size: var(--text-xs); color: var(--color-text-muted); margin: var(--space-3) 0 var(--space-2); }
.demo-bar__panel h4:first-child { margin-top: 0; }
.demo-bar__panel .cluster { --cluster-gap: 6px; }
@media print { .demo-bar { display: none; } }

/* ---------- پیام زنده / فلای به سبد ---------- */
.fly-dot { position: fixed; z-index: var(--z-toast); width: 44px; height: 44px; border-radius: 50%; pointer-events: none; background: var(--color-primary) center/cover no-repeat; box-shadow: var(--shadow-raised); will-change: transform, opacity; }
.bump { animation: bump var(--motion-slow) var(--motion-ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- برگه مرجع (QR) ---------- */
.qr-box { display: inline-grid; justify-items: center; gap: var(--space-2); padding: var(--space-4); background: #fff; color: #111; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.qr-box svg { width: 168px; height: 168px; }

/* ---------- جمع مبالغ / نتیجه عملیات (مشترک مشتری، POS، صندوق) ---------- */
.sum-row { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-1); font-size: var(--text-sm); }
.sum-row--total { font-weight: var(--weight-black); font-size: var(--text-lg); border-top: 1px dashed var(--color-border-strong); margin-top: var(--space-2); padding-top: var(--space-3); }
.sum-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding-block: var(--space-8); }
.result__icon { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; }
.result__icon .icon { width: 48px; height: 48px; }
.result--success .result__icon { background: var(--color-success-soft); color: var(--color-success); }
.result--danger .result__icon { background: var(--color-danger-soft); color: var(--color-danger); }
.result--warning .result__icon { background: var(--color-warning-soft); color: var(--color-warning); }
.result--info .result__icon { background: var(--color-info-soft); color: var(--color-info); }
.track-number { font-size: var(--text-3xl); font-weight: var(--weight-black); }
.link-btn { background: none; border: 0; padding: 0; color: var(--color-primary); font-weight: var(--weight-bold); text-decoration: underline; text-underline-offset: 3px; min-height: 0; }
.btn kbd { background: rgb(255 255 255 / 0.18); border-color: rgb(255 255 255 / 0.35); color: inherit; font-size: 11px; }
.btn:not(.btn--primary):not(.btn--accent):not(.btn--danger) kbd { background: var(--color-surface-2); border-color: var(--color-border-strong); }
@media (max-width: 767px) { .btn kbd { display: none; } }

/* ---------- حرکت ورود صفحه و نمایان شدن با اسکرول ---------- */
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.admin__content > *, .launcher, .c-main > [data-view] { animation: page-in 420ms var(--motion-ease-out) both; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--motion-ease-out), transform 700ms var(--motion-ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal, [data-lite="true"] .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .admin__content > *, .launcher, .c-main > [data-view] { animation: none; } }

/* ---------- عنوان با گرادیان طلایی ---------- */
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- پالت فرمان (Ctrl+K) ---------- */
.cmdk__input { border: 0 !important; box-shadow: none !important; font-size: var(--text-lg); min-height: 56px; background: transparent; }
.cmdk__list { list-style: none; margin: 0; padding: var(--space-2); max-height: 52dvh; overflow-y: auto; display: grid; gap: 2px; }
.cmdk__item { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; color: var(--color-text); }
.cmdk__item[aria-selected="true"] { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.cmdk__item small { margin-inline-start: auto; color: var(--color-text-subtle); }
.cmdk__group { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-text-subtle); padding: var(--space-2) var(--space-3) 0; }

/* ---------- حلقه شمارش معکوس (قفل موقت، کد تلویزیون) ---------- */
.ring-timer { --p: 1; position: relative; width: var(--size, 160px); aspect-ratio: 1; display: grid; place-items: center; }
.ring-timer > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-timer > svg circle { fill: none; stroke-width: 2.6; }
.ring-timer > :not(svg) { position: relative; }
.ring-timer .ring-bg { stroke: var(--color-surface-3); }
.ring-timer .ring-fg { stroke: var(--color-primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset 1s linear; }
.ring-timer strong { font-size: calc(var(--size, 160px) / 4.4); font-variant-numeric: tabular-nums; font-weight: var(--weight-black); }

/* برچسب کپسولی طلایی (لندینگ، ورود، تلویزیون) */
.lx-pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-4); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-primary-strong); background: rgb(210 165 76 / 0.1); border: 1px solid rgb(210 165 76 / 0.3); margin-bottom: var(--space-4); }

.receipt--kitchen { font-size: 15px; }
.receipt--kitchen[data-paper="58"] { font-size: 13px; }
.receipt__big { font-size: 2.2em; font-weight: 900; line-height: 1.2; }
.receipt__kitem { padding-block: 4px; border-bottom: 1px dotted #bbb; font-size: 1.1em; }
.receipt__note { font-weight: 800; }
.receipt[data-scale] { font-size: calc(13px * var(--rs, 1)); }
