/* iQ Restaurant — design system and screens.
   Colors are tokens on :root with a dark theme chosen by the OS setting or
   by data-theme="dark|light" on <html>. .theme-dark / .theme-light scope a
   single area (e.g. the kitchen display) to one theme. */

:root,
.theme-light {
  color-scheme: light;
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f9f9f7;
  --surface-3: #efeee9;
  --surface-4: #e6e4de;
  --border: rgba(11, 11, 11, 0.1);
  --border-strong: rgba(11, 11, 11, 0.2);
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #6f6e69;
  --text-inverse: #ffffff;

  --primary: #2a78d6;
  --primary-hover: #256abf;
  --primary-press: #1c5cab;
  --primary-soft: #e8f1fc;
  --primary-soft-2: #cde2fb;
  --primary-text: #1c5cab;

  --success: #16813a;
  --success-hover: #126e31;
  --success-soft: #e6f4ea;
  --success-text: #0f6b2e;
  --warning: #fab219;
  --warning-soft: #fff4d6;
  --warning-text: #7a4f00;
  --serious: #ec835a;
  --serious-soft: #fdece4;
  --serious-text: #a23d10;
  --danger: #d03b3b;
  --danger-hover: #b83232;
  --danger-soft: #fcebeb;
  --danger-text: #b12a2a;
  --violet: #6d5dfc;
  --violet-soft: #efedff;
  --violet-text: #4a3aa7;

  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --series-muted: #b9b7ae;

  --shadow-sm: 0 1px 2px rgba(20, 20, 18, 0.06);
  --shadow: 0 1px 2px rgba(20, 20, 18, 0.05), 0 4px 14px rgba(20, 20, 18, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 20, 18, 0.18), 0 2px 8px rgba(20, 20, 18, 0.08);
  --overlay: rgba(20, 20, 18, 0.42);
  --focus: 0 0 0 3px rgba(42, 120, 214, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #20201f;
    --surface-3: #2a2a28;
    --surface-4: #353532;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-2: #c3c2b7;
    --text-3: #9d9b93;
    --text-inverse: #0b0b0b;
    --primary: #3987e5;
    --primary-hover: #5598e7;
    --primary-press: #6da7ec;
    --primary-soft: rgba(57, 135, 229, 0.16);
    --primary-soft-2: rgba(57, 135, 229, 0.3);
    --primary-text: #86b6ef;
    --success: #1f9d4a;
    --success-hover: #25b356;
    --success-soft: rgba(12, 163, 12, 0.16);
    --success-text: #4cc96e;
    --warning-soft: rgba(250, 178, 25, 0.16);
    --warning-text: #fcc54f;
    --serious-soft: rgba(236, 131, 90, 0.18);
    --serious-text: #f3a283;
    --danger: #d64545;
    --danger-hover: #e05656;
    --danger-soft: rgba(208, 59, 59, 0.2);
    --danger-text: #f08a8a;
    --violet: #9085e9;
    --violet-soft: rgba(144, 133, 233, 0.18);
    --violet-text: #b3abf2;
    --grid: #2c2c2a;
    --axis: #383835;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --series-muted: #55544f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
    --overlay: rgba(0, 0, 0, 0.6);
    --focus: 0 0 0 3px rgba(57, 135, 229, 0.45);
  }
}

:root[data-theme='dark'],
.theme-dark {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #20201f;
  --surface-3: #2a2a28;
  --surface-4: #353532;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-2: #c3c2b7;
  --text-3: #9d9b93;
  --text-inverse: #0b0b0b;
  --primary: #3987e5;
  --primary-hover: #5598e7;
  --primary-press: #6da7ec;
  --primary-soft: rgba(57, 135, 229, 0.16);
  --primary-soft-2: rgba(57, 135, 229, 0.3);
  --primary-text: #86b6ef;
  --success: #1f9d4a;
  --success-hover: #25b356;
  --success-soft: rgba(12, 163, 12, 0.16);
  --success-text: #4cc96e;
  --warning-soft: rgba(250, 178, 25, 0.16);
  --warning-text: #fcc54f;
  --serious-soft: rgba(236, 131, 90, 0.18);
  --serious-text: #f3a283;
  --danger: #d64545;
  --danger-hover: #e05656;
  --danger-soft: rgba(208, 59, 59, 0.2);
  --danger-text: #f08a8a;
  --violet: #9085e9;
  --violet-soft: rgba(144, 133, 233, 0.18);
  --violet-text: #b3abf2;
  --grid: #2c2c2a;
  --axis: #383835;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --series-muted: #55544f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --overlay: rgba(0, 0, 0, 0.6);
  --focus: 0 0 0 3px rgba(57, 135, 229, 0.45);
}

:root {
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --tap: 44px;
  --sidebar-w: 232px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

#app {
  height: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
p {
  margin: 0;
}
a {
  color: var(--primary-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
::selection {
  background: var(--primary-soft-2);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
kbd,
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--text-2);
}
.faint {
  color: var(--text-3);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.strong {
  font-weight: 650;
}
.nowrap {
  white-space: nowrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.danger-text {
  color: var(--danger-text);
}
.success-text {
  color: var(--success-text);
}
.warning-text {
  color: var(--warning-text);
}
.center {
  text-align: center;
}
.right {
  text-align: end;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout helpers */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.top {
  align-items: flex-start;
}
.row.between {
  justify-content: space-between;
}
.row.end {
  justify-content: flex-end;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grow {
  flex: 1 1 auto;
  min-width: 0;
}
.gap-4 {
  gap: 4px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.mt-4 {
  margin-top: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.form-grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  --btn-hover: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  transition:
    background 0.12s,
    border-color 0.12s,
    transform 0.06s,
    box-shadow 0.12s;
  text-decoration: none !important;
}
.btn:hover:not(:disabled) {
  background: var(--btn-hover);
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn svg {
  flex: none;
}
.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover: var(--primary-hover);
}
.btn-success {
  --btn-bg: var(--success);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover: var(--success-hover);
}
.btn-danger {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover: var(--danger-hover);
}
.btn-danger-soft {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger-text);
  --btn-border: transparent;
  --btn-hover: var(--danger-soft);
}
.btn-soft {
  --btn-bg: var(--primary-soft);
  --btn-fg: var(--primary-text);
  --btn-border: transparent;
  --btn-hover: var(--primary-soft-2);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-hover: var(--surface-3);
}
.btn-dark {
  --btn-bg: var(--text);
  --btn-fg: var(--surface);
  --btn-border: transparent;
  --btn-hover: var(--text-2);
}
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 8px;
  gap: 6px;
}
.btn-lg {
  min-height: 52px;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-xl {
  min-height: 60px;
  padding: 0 22px;
  font-size: 17px;
  border-radius: 14px;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  padding: 0;
  width: var(--tap);
  min-width: var(--tap);
}
.btn-icon.btn-sm {
  width: 34px;
  min-width: 34px;
}
.btn .badge-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-group {
  display: inline-flex;
}
.btn-group > .btn:not(:first-child) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  margin-inline-start: -1px;
}
.btn-group > .btn:not(:last-child) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary-text);
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > label,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.field .help {
  font-size: 12.5px;
  color: var(--text-3);
}
.field .error {
  font-size: 12.5px;
  color: var(--danger-text);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.textarea {
  padding: 10px 12px;
  min-height: 84px;
  resize: vertical;
  line-height: 1.4;
}
.select {
  appearance: none;
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}
.input.invalid {
  border-color: var(--danger);
}
.input-sm {
  min-height: 36px;
  font-size: 14px;
  border-radius: 8px;
}
.input-lg {
  min-height: 56px;
  font-size: 20px;
  font-weight: 600;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > svg,
.input-wrap > .prefix {
  position: absolute;
  inset-inline-start: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.input-wrap > .prefix {
  font-weight: 600;
  font-size: 14px;
}
.input-wrap > svg + .input,
.input-wrap > .prefix + .input {
  padding-inline-start: 38px;
}
.input-wrap > .suffix {
  position: absolute;
  inset-inline-end: 10px;
  color: var(--text-3);
  font-size: 13px;
  pointer-events: none;
}
.input-wrap .clear {
  position: absolute;
  inset-inline-end: 6px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-height: 32px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin: 0;
}

/* Switch */
.switch {
  position: relative; /* keeps the hidden checkbox inside (tables scroll sideways) */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.switch .track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--surface-4);
  transition: background 0.15s;
  flex: none;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s var(--ease);
}
.switch input:checked + .track {
  background: var(--primary);
}
.switch input:checked + .track::after {
  transform: translateX(18px);
}
.switch input:focus-visible + .track {
  box-shadow: var(--focus);
}
.switch input:disabled + .track {
  opacity: 0.5;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row .title {
  font-weight: 600;
}
.setting-row .desc {
  color: var(--text-2);
  font-size: 13.5px;
  margin-top: 2px;
}

/* Segmented control */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: var(--surface-3);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented button {
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.segmented.block {
  display: flex;
}
.segmented.block button {
  flex: 1 1 auto;
  justify-content: center;
}
.segmented.wrap {
  flex-wrap: wrap;
}
.segmented.lg button {
  min-height: 44px;
  font-size: 15px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button {
  border: 0;
  background: none;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs button:hover {
  color: var(--text);
}
.tabs button.active {
  color: var(--primary-text);
  border-bottom-color: var(--primary);
}
.tabs .count {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-2);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text);
  user-select: none;
}
.chip:hover {
  background: var(--surface-3);
}
.chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.chip.sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Cards, badges, misc                                                 */
/* ------------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad {
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 0;
}
.card-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body {
  padding: 16px 20px 20px;
}
.card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.card.flat {
  box-shadow: none;
}
.card.hoverable {
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.1s,
    border-color 0.15s;
}
.card.hoverable:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
}
.badge svg {
  flex: none;
}
.badge.sm {
  height: 20px;
  padding: 0 7px;
  font-size: 11.5px;
}
.badge.primary {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.badge.success {
  background: var(--success-soft);
  color: var(--success-text);
}
.badge.warning {
  background: var(--warning-soft);
  color: var(--warning-text);
}
.badge.serious {
  background: var(--serious-soft);
  color: var(--serious-text);
}
.badge.danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.badge.violet {
  background: var(--violet-soft);
  color: var(--violet-text);
}
.badge.solid-danger {
  background: var(--danger);
  color: #fff;
}
.badge.outline {
  background: transparent;
  border: 1px solid var(--border-strong);
}
.dot-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.avatar {
  --av: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--av);
  flex: none;
  letter-spacing: 0.02em;
}
.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-4);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}
.spinner.sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-2);
  gap: 12px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-2);
}
.empty .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  margin-bottom: 4px;
}
.empty h3 {
  color: var(--text);
}
.empty p {
  max-width: 420px;
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text);
  font-size: 14px;
}
.callout > svg {
  flex: none;
  margin-top: 1px;
  color: var(--primary-text);
}
.callout.warning {
  background: var(--warning-soft);
}
.callout.warning > svg {
  color: var(--warning-text);
}
.callout.danger {
  background: var(--danger-soft);
}
.callout.danger > svg {
  color: var(--danger-text);
}
.callout.success {
  background: var(--success-soft);
}
.callout.success > svg {
  color: var(--success-text);
}
/* A one-line notice with a button at the end (e.g. "Version 2.1.0 is available"). */
.callout.update-line {
  align-items: center;
  flex-wrap: wrap;
}
.callout.update-line > .spinner {
  flex: none;
}

.list {
  display: flex;
  flex-direction: column;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item.clickable {
  cursor: pointer;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 10px;
  border-bottom-color: transparent;
}
.list-item.clickable:hover {
  background: var(--surface-3);
}
.list-item > svg {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  /* Buttons move under the text when a row gets too narrow. */
  .list-item {
    flex-wrap: wrap;
  }
  .list-item > .grow {
    min-width: 150px;
  }
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.kv dt {
  color: var(--text-2);
}
.kv dd {
  margin: 0;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* Tables */
.table-wrap {
  overflow: auto;
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  text-align: start;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover {
  color: var(--text);
}
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr.clickable {
  cursor: pointer;
}
.table tbody tr.clickable:hover td {
  background: var(--surface-2);
}
.table .num,
.table th.num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tfoot td {
  font-weight: 700;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.table.compact td {
  padding: 8px 10px;
}

/* Stat tiles */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stat .label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat .value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat .sub {
  font-size: 12.5px;
  color: var(--text-2);
}
/* In a row of tiles, big numbers shrink to fit their tile instead of being cut off. */
.stats > .stat {
  container-type: inline-size;
}
.stats > .stat .value {
  font-size: clamp(13px, 10cqi, 26px);
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 650;
}
.delta.up {
  color: var(--success-text);
}
.delta.down {
  color: var(--danger-text);
}
.delta.flat {
  color: var(--text-2);
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--primary-soft);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
}
.progress.warning {
  background: var(--warning-soft);
}
.progress.warning > div {
  background: var(--warning);
}
.progress.danger {
  background: var(--danger-soft);
}
.progress.danger > div {
  background: var(--danger);
}

/* ------------------------------------------------------------------ */
/* App shell                                                           */
/* ------------------------------------------------------------------ */

.shell {
  display: flex;
  height: 100%;
  min-height: 0;
}
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  height: 100%;
  z-index: 30;
  transition:
    width 0.18s var(--ease),
    transform 0.2s var(--ease);
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  min-height: 64px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f07a45, #d9481f);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-3);
}
.nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.nav-group {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 10px 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  position: relative;
}
/* Laptop screens: keep the whole menu visible without scrolling. */
@media (max-height: 940px) and (pointer: fine) {
  .nav a {
    min-height: 38px;
  }
  .nav-group {
    padding: 10px 10px 4px;
  }
}
.nav a:hover {
  background: var(--surface-3);
  color: var(--text);
}
.nav a.active {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.nav a .nav-badge {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-4);
  color: var(--text);
}
.nav a .nav-badge.alert {
  background: var(--danger);
  color: #fff;
}
.nav a .nav-badge.info {
  background: var(--primary);
  color: #fff;
}
.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 10px;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: start;
}
.user-btn:hover {
  background: var(--surface-3);
}
.user-btn .who {
  min-width: 0;
  flex: 1;
}
.user-btn .who .name {
  font-weight: 650;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-btn .who .role {
  font-size: 12px;
  color: var(--text-3);
}

.sidebar.collapsed {
  width: 72px;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav a span,
.sidebar.collapsed .nav-group,
.sidebar.collapsed .user-btn .who,
.sidebar.collapsed .nav a .nav-badge {
  display: none;
}
.sidebar.collapsed .nav a {
  justify-content: center;
  padding: 0;
}
.sidebar.collapsed .nav a .nav-badge-dot {
  display: block;
}
.nav-badge-dot {
  display: none;
  position: absolute;
  top: 8px;
  inset-inline-end: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}
.sidebar.collapsed .brand {
  justify-content: center;
  padding-inline-start: 0;
  padding-inline-end: 0;
}
.sidebar.collapsed .user-btn {
  justify-content: center;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.topbar {
  display: none;
}
.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.offline-bar {
  background: var(--danger);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.training-bar {
  background: repeating-linear-gradient(135deg, var(--warning) 0 14px, #f7c14a 14px 28px);
  color: #3b2a00;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}

/* Page */
.page {
  padding: 24px 28px 40px;
  max-width: 1480px;
  margin: 0 auto;
}
.page.wide {
  max-width: none;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head .titles {
  min-width: 0;
}
.page-head .subtitle {
  color: var(--text-2);
  margin-top: 4px;
  font-size: 14.5px;
}
.page-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Date range picker */
.daterange {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.daterange-btn {
  min-width: 220px;
  justify-content: flex-start;
  overflow: hidden;
}
.daterange-btn svg {
  flex: none;
}
.daterange-dates {
  color: var(--text-2);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .daterange {
    width: 100%;
  }
  .daterange-btn {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 1100px) {
  .sidebar:not(.pinned) {
    width: 72px;
  }
  .sidebar:not(.pinned) .brand-text,
  .sidebar:not(.pinned) .nav a span,
  .sidebar:not(.pinned) .nav-group,
  .sidebar:not(.pinned) .user-btn .who,
  .sidebar:not(.pinned) .nav a .nav-badge {
    display: none;
  }
  .sidebar:not(.pinned) .nav a {
    justify-content: center;
    padding: 0;
  }
  .sidebar:not(.pinned) .nav a .nav-badge-dot {
    display: block;
  }
  .sidebar:not(.pinned) .brand {
    justify-content: center;
    padding-inline-start: 0;
    padding-inline-end: 0;
  }
  .page {
    padding: 20px 20px 32px;
  }
}

@media (max-width: 760px) {
  .sidebar,
  .sidebar:not(.pinned) {
    position: fixed;
    inset-block: 0;
    inset-inline: 0 auto;
    width: 272px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar .brand-text,
  .sidebar .nav a span,
  .sidebar .nav-group,
  .sidebar .user-btn .who,
  .sidebar .nav a .nav-badge,
  .sidebar:not(.pinned) .brand-text,
  .sidebar:not(.pinned) .nav a span,
  .sidebar:not(.pinned) .nav-group,
  .sidebar:not(.pinned) .user-btn .who,
  .sidebar:not(.pinned) .nav a .nav-badge {
    display: revert;
  }
  .sidebar:not(.pinned) .nav a {
    justify-content: flex-start;
    padding: 0 10px;
  }
  .sidebar:not(.pinned) .nav a .nav-badge-dot {
    display: none;
  }
  .sidebar:not(.pinned) .brand {
    justify-content: flex-start;
    padding: 14px 14px 10px;
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 25;
  }
  .topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex: none;
  }
  .topbar .title {
    font-weight: 700;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page {
    padding: 16px 16px 28px;
  }
  .page-head {
    margin-bottom: 16px;
  }
  h1 {
    font-size: 21px;
  }
}

/* ------------------------------------------------------------------ */
/* Modals, sheets, menus, toasts                                       */
/* ------------------------------------------------------------------ */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  animation: fade-in 0.15s ease;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.18s var(--ease);
  overflow: hidden;
}
.modal.sm {
  max-width: 400px;
}
.modal.lg {
  max-width: 760px;
}
.modal.xl {
  max-width: 1040px;
}
.modal.full {
  max-width: 1280px;
  height: calc(100vh - 48px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-head .titles {
  flex: 1;
  min-width: 0;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-head .subtitle {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 3px;
}
.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.modal-foot .left {
  margin-inline-end: auto;
}
@media (max-width: 640px) {
  .modal-root {
    padding: 0;
    align-items: flex-end;
  }
  .modal,
  .modal.sm,
  .modal.lg,
  .modal.xl {
    max-width: none;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    animation: sheet-up 0.22s var(--ease);
  }
  .modal.full {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(40%);
    opacity: 0.4;
  }
}

.menu-root .modal-backdrop {
  background: transparent;
  animation: none;
}
.menu-pop {
  position: fixed;
  z-index: 120;
  min-width: 220px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  animation: pop-in 0.12s var(--ease);
}
.menu-pop button,
.menu-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: none;
  border-radius: 9px;
  text-align: start;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
}
.menu-pop button:hover,
.menu-pop a:hover {
  background: var(--surface-3);
}
.menu-pop button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.menu-pop .danger {
  color: var(--danger-text);
}
.menu-pop hr {
  margin: 6px 4px;
}
.menu-pop .menu-label {
  padding: 8px 12px 4px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 650;
}

.toasts {
  position: fixed;
  z-index: 200;
  inset-inline-end: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.22s var(--ease);
  font-size: 14.5px;
}
.toast .t-icon {
  flex: none;
  margin-top: 1px;
}
.toast .t-body {
  flex: 1;
  min-width: 0;
}
.toast .t-title {
  font-weight: 650;
}
.toast .t-text {
  opacity: 0.8;
  font-size: 13.5px;
  margin-top: 2px;
}
.toast .t-action {
  border: 0;
  background: rgba(127, 127, 127, 0.25);
  color: inherit;
  font-weight: 650;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13.5px;
  align-self: center;
}
.toast .t-close {
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.6;
  padding: 2px;
}
.toast.success .t-icon {
  color: #4cc96e;
}
.toast.error {
  background: var(--danger);
  color: #fff;
}
.toast.ready {
  background: var(--success);
  color: #fff;
}
.toast.warning .t-icon {
  color: var(--warning);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (max-width: 640px) {
  .toasts {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    top: 12px;
    bottom: auto;
    align-items: stretch;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
}

/* ------------------------------------------------------------------ */
/* PIN pad & lock screen                                               */
/* ------------------------------------------------------------------ */

.pinpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.pin-dots {
  display: flex;
  gap: 14px;
  height: 20px;
  align-items: center;
}
.pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  transition:
    background 0.1s,
    border-color 0.1s,
    transform 0.1s;
}
.pin-dots span.on {
  background: var(--text);
  border-color: var(--text);
  transform: scale(1.05);
}
.pin-dots.error span {
  border-color: var(--danger);
}
.pin-dots.error {
  animation: shake 0.35s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 300px;
}
.keypad button {
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.08s,
    transform 0.06s;
  user-select: none;
}
.keypad button:hover {
  background: var(--surface-3);
}
.keypad button:active {
  transform: scale(0.96);
  background: var(--surface-4);
}
.keypad button.action {
  font-size: 15px;
  color: var(--text-2);
  background: transparent;
  border-color: transparent;
}
.keypad.sm button {
  height: 54px;
  font-size: 21px;
}

.lock {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.lock-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 10% 110%, rgba(240, 122, 69, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(42, 120, 214, 0.5), transparent 60%),
    #151513;
  overflow: hidden;
}
.lock-side .clock {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 250;
  letter-spacing: -0.04em;
  line-height: 1;
}
.lock-side .date {
  font-size: 18px;
  opacity: 0.8;
  margin-top: 10px;
}
.lock-side .rest-name {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lock-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.lock-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.lock-card h1 {
  font-size: 24px;
}
@media (max-width: 860px) {
  .lock {
    grid-template-columns: 1fr;
  }
  .lock-side {
    padding: 24px;
    min-height: 0;
  }
  .lock-side .clock {
    font-size: 48px;
  }
  .lock-side .hide-sm {
    display: none;
  }
}

/* Superadmin panel (/admin) */
.admin {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #0f1626;
  color: #fff;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  white-space: nowrap;
}
.admin-brand:hover {
  text-decoration: none;
}
.admin-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.18);
  color: #ffb547;
}
.admin-nav.tabs {
  flex: 1;
  border-bottom: 0;
  min-width: 0;
}
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  white-space: nowrap;
}
.admin-nav-link:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}
.admin-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.admin-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-right .btn {
  color: #fff;
}
.admin-right .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-main .page {
  max-width: 1240px;
  margin: 0 auto;
}
.admin-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.admin-table td {
  vertical-align: top;
}
.welcome-text {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .admin-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .admin-top {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .admin-nav.tabs {
    order: 3;
    flex-basis: 100%;
  }
  .admin-right {
    margin-inline-start: auto;
  }
  .admin-tag {
    display: none;
  }
}

/* Off-site backups (superadmin) */
.space-meter {
  margin: 2px 0;
}
.offsite-steps {
  margin-inline: 0;
  margin-bottom: 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offsite-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.offsite-detail .strong {
  overflow-wrap: anywhere;
}

/* Weekly backup window */
.backup-hero {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-text);
}

/* iQ Restaurant brand, and the restaurant sign-in screen */
.brand-mark {
  display: block;
  flex: none;
  border-radius: 22%;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-lockup .brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-lockup .brand-name span {
  font-weight: 500;
  opacity: 0.85;
}
.brand-lockup .brand-sub {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 2px;
}
.signin-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  font-size: 15px;
}
.signin-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0.85;
}
.signin-point svg {
  flex: none;
  margin-top: 1px;
  color: #ffb547;
}
.signin-card {
  align-items: stretch;
  text-align: start;
}
.input-with-button {
  position: relative;
}
.input-with-button .input {
  padding-inline-end: 48px;
}
.input-with-button .btn {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
}

/* Setup wizard */
.wizard {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(240, 122, 69, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(42, 120, 214, 0.14), transparent 60%),
    var(--bg);
}
.wizard-card {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wizard-steps {
  display: flex;
  gap: 6px;
  padding: 18px 28px 0;
}
.wizard-steps span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--surface-4);
}
.wizard-steps span.done {
  background: var(--primary);
}
.wizard-body {
  padding: 26px 28px 8px;
}
.wizard-body h1 {
  font-size: 26px;
}
.wizard-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 26px;
}
.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface);
  text-align: start;
  transition:
    border-color 0.12s,
    background 0.12s;
  min-height: 120px;
}
.choice:hover {
  border-color: var(--border-strong);
}
.choice.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.choice .choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text);
}
.choice.active .choice-icon {
  background: var(--primary);
  color: #fff;
}
.choice .choice-title {
  font-weight: 700;
}
.choice .choice-desc {
  color: var(--text-2);
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ */
/* POS                                                                 */
/* ------------------------------------------------------------------ */

.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  height: 100%;
  min-height: 0;
}
.pos-menu {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.pos-menu-head {
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-bar::-webkit-scrollbar {
  display: none;
}

/* A row that scrolls sideways: the ends fade and show an arrow while there is more to see. */
.scroll-row {
  position: relative;
  min-width: 0;
  --edge-back: #000;
  --edge-fwd: #000;
  --fade-back: 0px;
  --fade-fwd: 0px;
  --fade-dir: to right;
}
[dir='rtl'] .scroll-row {
  --fade-dir: to left;
}
.scroll-row.more-back {
  --edge-back: transparent;
  --fade-back: 56px;
}
.scroll-row.more-fwd {
  --edge-fwd: transparent;
  --fade-fwd: 56px;
}
.scroll-track {
  scroll-padding-inline: 44px;
}
.scroll-row.more-back > .scroll-track,
.scroll-row.more-fwd > .scroll-track {
  -webkit-mask-image: linear-gradient(var(--fade-dir), var(--edge-back), #000 var(--fade-back), #000 calc(100% - var(--fade-fwd)), var(--edge-fwd));
  mask-image: linear-gradient(var(--fade-dir), var(--edge-back), #000 var(--fade-back), #000 calc(100% - var(--fade-fwd)), var(--edge-fwd));
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
  cursor: pointer;
}
.scroll-arrow:hover {
  background: var(--surface-3);
}
.scroll-arrow.back {
  inset-inline-start: 0;
}
.scroll-arrow.fwd {
  inset-inline-end: 0;
}
.pos-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 90px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.item-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 2px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-section-title:first-child {
  margin-top: 0;
}
.item-tile {
  --cat: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 104px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: start;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  user-select: none;
  transition:
    transform 0.06s,
    box-shadow 0.12s,
    border-color 0.12s;
}
.item-tile::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  inset-inline-end: 0;
  height: 4px;
  background: var(--cat);
}
.item-tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.item-tile:active {
  transform: scale(0.97);
}
.item-tile .emoji {
  font-size: 26px;
  line-height: 1;
}
.item-tile .name {
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-tile .price {
  font-weight: 600;
  color: var(--text-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.item-tile .corner {
  position: absolute;
  top: 10px;
  inset-inline-end: 8px;
}
.item-tile.sold-out {
  opacity: 0.55;
  background: var(--surface-2);
}
.item-tile.sold-out .name {
  text-decoration: line-through;
}
.item-tile .opts-dot {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-tile.flash {
  animation: tile-flash 0.35s;
}
@keyframes tile-flash {
  0% {
    box-shadow: 0 0 0 0 var(--primary);
  }
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.order-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
}
.op-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.op-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.op-title h2 {
  font-size: 20px;
}
.op-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.meta-btn:hover {
  background: var(--surface-3);
}
.meta-btn.alert {
  background: var(--danger-soft);
  color: var(--danger-text);
  border-color: transparent;
}
.seat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.seat-bar .chip {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}
.op-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
}
.op-section {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding: 10px 8px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.line:hover {
  background: var(--surface-2);
}
.line.selected {
  background: var(--primary-soft);
}
.line .qty {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: var(--surface-3);
  border-radius: 7px;
  padding: 3px 0;
  font-size: 14px;
}
.line .l-name {
  font-weight: 600;
  line-height: 1.3;
}
.line .l-mods {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.35;
  margin-top: 2px;
}
.line .l-note {
  font-size: 13px;
  color: var(--warning-text);
  font-style: italic;
  margin-top: 2px;
}
.line .l-note.allergy {
  color: var(--danger-text);
  font-style: normal;
  font-weight: 650;
}
.line .l-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.line .l-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.line.void .l-name,
.line.void .l-price {
  text-decoration: line-through;
  color: var(--text-3);
}
.line.pending .qty {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.line .l-price .was {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: line-through;
  font-weight: 500;
}
.op-totals {
  border-top: 1px solid var(--border);
  padding: 12px 16px 6px;
  font-size: 14px;
}
.op-totals .t-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.op-totals .t-row.total {
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  padding-top: 6px;
  letter-spacing: -0.01em;
}
.op-totals .t-row.balance {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.op-actions {
  padding: 10px 16px 16px;
  display: grid;
  gap: 8px;
}
.op-actions .main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.op-actions .sub-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.op-actions .btn-xl {
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.op-actions .btn-xl small {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.85;
}
.pos-bottom-bar {
  display: none;
}
.mobile-only {
  display: none !important;
}
.allergy-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-weight: 650;
  font-size: 13.5px;
}

@media (max-width: 1200px) {
  .pos {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 860px) {
  .pos {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.22s var(--ease);
    border-inline-start: 0;
  }
  .order-panel.open {
    transform: none;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .pos-bottom-bar {
    display: flex;
    position: fixed;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    bottom: 12px;
    z-index: 40;
  }
  .pos-bottom-bar .btn {
    width: 100%;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
  }
  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
  }
}

/* Option (modifier) picker */
.mod-group {
  margin-bottom: 18px;
}
.mod-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mod-group-head .rule {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
}
.mod-group-head .rule.need {
  color: var(--danger-text);
}
.mod-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.mod-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface);
  text-align: start;
  font-weight: 600;
  font-size: 14.5px;
}
.mod-option:hover {
  border-color: var(--border-strong);
}
.mod-option.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.mod-option .p {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}
.mod-group.missing .mod-options {
  animation: shake 0.35s;
}
.quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper button:hover {
  background: var(--surface-3);
}
.stepper button:disabled {
  opacity: 0.35;
}
.stepper .val {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* Payment */
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.pay-due {
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pay-due .label {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}
.pay-due .amount {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pay-due .sub {
  font-size: 13.5px;
  color: var(--text-2);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-weight: 650;
}
.method-btn:hover {
  border-color: var(--border-strong);
}
.method-btn.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
}
.cash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}
.cash-quick button {
  min-height: 48px;
  min-width: 0;
  padding-inline: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cash-quick button:hover {
  background: var(--surface-3);
}
.cash-quick button.on {
  background: var(--text);
  color: var(--surface);
}
.change-due {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--success-soft);
  color: var(--success-text);
}
.change-due .amount {
  font-size: 34px;
  font-weight: 750;
}
.pay-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 10px;
}
.pay-success .check-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop-in 0.3s var(--ease);
}
.split-items .check {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  justify-content: space-between;
}
.split-items .check:hover {
  background: var(--surface-2);
}
@media (max-width: 760px) {
  .pay-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* New-order launcher */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: start;
  box-shadow: var(--shadow-sm);
  min-height: 96px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s,
    transform 0.06s;
}
.type-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.type-card:active {
  transform: scale(0.99);
}
.type-card .t-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.type-card .t-title {
  font-weight: 700;
  font-size: 17px;
}
.type-card .t-desc {
  color: var(--text-2);
  font-size: 13.5px;
}
.order-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.order-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: start;
  box-shadow: var(--shadow-sm);
}
.order-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.order-card .oc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.order-card .oc-title {
  font-weight: 700;
  font-size: 16px;
}
.order-card .oc-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Floor plan                                                          */
/* ------------------------------------------------------------------ */

.floor-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  overflow: auto;
}
.floor {
  position: relative;
  width: 100%;
  min-width: 640px;
  aspect-ratio: 1000 / 620;
  border-radius: 12px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  touch-action: none;
}
.floor.editing {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}
.ftable {
  --st: var(--border-strong);
  --st-bg: var(--surface);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 14px;
  border: 2px solid var(--st);
  background: var(--st-bg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 4px;
  user-select: none;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.06s;
  container-type: size;
  overflow: hidden;
}
.ftable:hover {
  box-shadow: var(--shadow);
}
.ftable:active {
  transform: scale(0.98);
}
.ftable.round {
  border-radius: 50%;
}
.ftable .t-name {
  font-weight: 750;
  font-size: clamp(13px, 22cqmin, 22px);
  line-height: 1;
}
.ftable .t-info {
  font-size: clamp(10px, 12cqmin, 13px);
  font-weight: 650;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.1;
  white-space: nowrap;
}
.ftable .t-amount {
  font-size: clamp(10px, 12cqmin, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ftable .t-flag {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
}
.ftable.round .t-flag {
  top: 8%;
  inset-inline-end: 8%;
}
.ftable.free {
  --st: var(--border-strong);
}
.ftable.occupied {
  --st: var(--primary);
  --st-bg: var(--primary-soft);
}
.ftable.ready {
  --st: var(--success);
  --st-bg: var(--success-soft);
}
.ftable.reserved {
  --st: var(--warning);
  --st-bg: var(--warning-soft);
}
.ftable.dirty {
  --st: var(--text-3);
  --st-bg: var(--surface-3);
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(127, 127, 127, 0.12) 8px 10px);
}
.ftable.long {
  --st: var(--serious);
}
.ftable.selected {
  box-shadow: 0 0 0 3px var(--primary);
}
.ftable .server-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}
.ftable.editing {
  cursor: grab;
  border-style: dashed;
}
.ftable.editing:active {
  cursor: grabbing;
}
.ftable .resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, var(--primary) 50%);
  border-radius: 0 0 10px 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.legend .sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid;
  display: inline-block;
  vertical-align: -2px;
  margin-inline-end: 6px;
}
.table-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.table-list .ftable {
  position: relative;
  min-height: 96px;
  border-radius: 14px;
}

/* ------------------------------------------------------------------ */
/* Kitchen display                                                     */
/* ------------------------------------------------------------------ */

.kds {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  color: var(--text);
}
.kds-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.kds-bar .clock {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kds-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.kds-tickets {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  grid-auto-rows: max-content;
  gap: 14px;
  align-content: start;
  align-items: start;
}
.kds-side {
  width: 260px;
  flex: none;
  border-inline-start: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  padding: 14px;
}
.ticket {
  --tk: var(--success);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticket.warn {
  --tk: var(--warning);
}
.ticket.late {
  --tk: var(--serious);
}
.ticket.new {
  animation: ticket-in 0.6s var(--ease);
}
@keyframes ticket-in {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 var(--primary);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}
.ticket-head {
  padding: 10px 12px;
  background: var(--tk);
  color: #111;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ticket-head .t-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-head .t-key {
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ticket-head .t-where {
  font-weight: 700;
  font-size: 14px;
}
.ticket-head .t-meta {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.8;
}
.ticket-head .t-time {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: end;
  line-height: 1.05;
}
/* The word comes from the page (data-late) so it is translated. */
.ticket.late .t-time::after {
  content: ' ' attr(data-late);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
[dir='rtl'] .ticket.late .t-time::after {
  letter-spacing: normal;
}
.ticket-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px 0;
}
.ticket-note {
  margin: 8px 12px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning-text);
  font-weight: 650;
  font-size: 13.5px;
}
.ticket-allergy {
  margin: 8px 12px 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ticket-items {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
}
.titem {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  border: 0;
  background: none;
  text-align: start;
  color: inherit;
}
.titem:hover {
  background: var(--surface-2);
}
.titem .q {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
}
.titem .n {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.titem .m {
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 600;
  line-height: 1.3;
}
.titem .note {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--warning-text);
  background: var(--warning-soft);
  border-radius: 6px;
  padding: 2px 6px;
  display: inline-block;
}
.titem .note.allergy {
  color: #fff;
  background: var(--danger);
}
.titem .seat {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.titem.done .n,
.titem.done .m,
.titem.done .q {
  text-decoration: line-through;
  opacity: 0.45;
}
.titem.void {
  background: var(--danger-soft);
}
.titem.void .n {
  text-decoration: line-through;
  color: var(--danger-text);
}
.ticket-foot {
  padding: 0 10px 10px;
}
.ticket-foot .btn {
  width: 100%;
}
.ticket.voided .ticket-head {
  background: var(--danger);
  color: #fff;
}
.allday-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
}
.allday-row .q {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .kds-side {
    display: none;
  }
  .kds-side.open {
    display: block;
    position: fixed;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
}

/* ------------------------------------------------------------------ */
/* Charts                                                              */
/* ------------------------------------------------------------------ */

.chart {
  position: relative;
  width: 100%;
}
.chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.chart .grid-line {
  stroke: var(--grid);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart .baseline {
  stroke: var(--axis);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart .tick {
  fill: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.chart .hover-line {
  stroke: var(--text-3);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart .bar {
  transition: opacity 0.12s;
}
.chart .bar.dim {
  opacity: 0.55;
}
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  min-width: 120px;
  white-space: nowrap;
}
.chart-tip .tt-title {
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.chart-tip .tt-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-tip .tt-row .key {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  flex: none;
}
.chart-tip .tt-row .v {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.chart-tip .tt-row .n {
  color: var(--text-2);
}
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.chart-legend .key {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  vertical-align: middle;
  margin-inline-end: 6px;
}
.chart-legend .key.box {
  height: 10px;
  width: 10px;
  border-radius: 3px;
}
.hbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hbar {
  display: grid;
  grid-template-columns: minmax(90px, 34%) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}
.hbar .h-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 550;
}
.hbar .h-track {
  height: 10px;
  position: relative;
}
.hbar .h-fill {
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: var(--series-1);
  min-width: 2px;
}
.hbar .h-value {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.hbar .h-value small {
  color: var(--text-3);
  font-weight: 600;
  margin-inline-start: 6px;
  unicode-bidi: isolate;
}
.stack-bar {
  display: flex;
  height: 14px;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
}
.stack-bar > div {
  height: 100%;
}

/* ------------------------------------------------------------------ */
/* Misc screens                                                        */
/* ------------------------------------------------------------------ */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.span-12 {
  grid-column: span 12;
}
.span-8 {
  grid-column: span 8;
}
.span-6 {
  grid-column: span 6;
}
.span-4 {
  grid-column: span 4;
}
@media (max-width: 1100px) {
  .span-8,
  .span-4 {
    grid-column: span 12;
  }
  .span-6 {
    grid-column: span 12;
  }
}
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: start;
}
.check-item .ci-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-item.done .ci-box {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.check-item.done .ci-title {
  text-decoration: line-through;
  color: var(--text-2);
}
.check-item .ci-title {
  font-weight: 650;
}
.check-item .ci-desc {
  font-size: 13px;
  color: var(--text-2);
}

.split-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .split-view {
    grid-template-columns: minmax(0, 1fr);
  }
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: start;
  font-weight: 600;
  color: var(--text-2);
}
.side-nav button:hover {
  background: var(--surface-3);
  color: var(--text);
}
.side-nav button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .side-nav button {
    white-space: nowrap;
  }
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-swatches button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.color-swatches button.on {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
}
.emoji-grid button {
  height: 40px;
  border: 1px solid transparent;
  background: none;
  font-size: 22px;
  border-radius: 8px;
}
.emoji-grid button:hover {
  background: var(--surface-3);
}
.emoji-grid button.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  display: inline-block;
  line-height: 0;
}
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resv-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.resv-card .time {
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.resv-card.past {
  opacity: 0.6;
}
.resv-card.now {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
@media (max-width: 640px) {
  .resv-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .resv-card .resv-actions {
    grid-column: 1 / -1;
  }
}
.help-article {
  max-width: 820px;
}
.help-article h2 {
  margin: 28px 0 10px;
}
.help-article p,
.help-article li {
  color: var(--text-2);
  line-height: 1.6;
}
.help-article ol,
.help-article ul {
  padding-inline-start: 22px;
}
details.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
}
details.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq[open] summary {
  border-bottom: 1px solid var(--border);
}
details.faq > div {
  padding: 12px 16px 16px;
  color: var(--text-2);
  line-height: 1.6;
}
.photo-credits {
  margin: 0;
  padding-inline-start: 18px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 13px;
  text-align: left;
}
.z-report {
  font-family: var(--mono);
  font-size: 13.5px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.z-report .zr {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.z-report .zh {
  font-weight: 700;
  margin: 12px 0 4px;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 2px;
}

@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .toasts,
  .no-print {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Kitchen focus mode: tickets fill the whole screen. */
body.kds-focus .sidebar,
body.kds-focus .topbar,
body.kds-focus .sidebar-scrim {
  display: none !important;
}

/* ---------------- Right-to-left (Arabic, Kurdish) ---------------- */

/* Arrows and chevrons point the reading way. */
[dir='rtl'] .flip-rtl {
  transform: scaleX(-1);
}
[dir='rtl'] .switch input:checked + .track::after {
  transform: translateX(-18px);
}
[dir='rtl'] .select {
  background-position: left 10px center;
}
@media (max-width: 760px) {
  [dir='rtl'] .sidebar,
  [dir='rtl'] .sidebar:not(.pinned) {
    transform: translateX(100%);
  }
  [dir='rtl'] .sidebar.open {
    transform: none;
  }
}
/* The floor plan is a map of the room, the keypad a phone keypad, and charts
   read left to right: they are never mirrored. */
.floor,
.keypad,
.chart,
.chart-wrap,
.bar-chart,
.line-chart {
  direction: ltr;
}
/* Numbers typed into boxes stay left to right (e.g. "12.50", phone numbers). */
[dir='rtl'] input[type='tel'],
[dir='rtl'] input[inputmode='decimal'],
[dir='rtl'] input[inputmode='numeric'] {
  direction: ltr;
  text-align: end;
}
/* Arabic script: fonts with good Arabic and Kurdish letters, and no letter
   spacing (it breaks the joined letters apart). */
[dir='rtl'] body {
  font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', sans-serif;
}
[dir='rtl'] body * {
  letter-spacing: normal !important;
}

/* Language button on the lock screen and in the setup wizard. */
.lock-main {
  position: relative;
}
.lock-lang {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
}
.wizard {
  position: relative;
}

/* End-of-day report: the monospace font spaces Arabic letters apart. */
[dir='rtl'] .z-report {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

/* Search boxes have the app's own clear button. */
input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Number boxes with a unit: no spin buttons, so the number keeps its room. */
.input-wrap input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.input-wrap input[type='number']::-webkit-inner-spin-button,
.input-wrap input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* License: trial and expiry notices, and the activation screen. */
.license-bar {
  background: var(--primary-soft, #e8efff);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.license-bar.warning {
  background: var(--warning);
  color: #3b2a00;
}
.license-bar.danger {
  background: var(--danger);
  color: #fff;
}
.license-bar a,
.license-bar .link-btn {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}
.key-box {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 96px;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}
.computer-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  direction: ltr;
  unicode-bidi: isolate;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Menu photos and the menu guests see with the QR code (Menu → QR menu). */
.item-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: var(--surface-3);
}
.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--surface-3);
}
button.photo-preview.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-strong);
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
}
button.photo-preview.empty:hover {
  color: var(--text-2);
  border-color: var(--text-3);
}
.guest-group {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.guest-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.guest-group > :last-child {
  border-bottom: 0;
}
.guest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.guest-item.off > .grow,
.guest-item.off > .thumb {
  opacity: 0.45;
}
.guest-item .thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: var(--surface-3);
}
.guest-item .thumb.emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
@media (max-width: 560px) {
  /* Only the picture icon on phones, so each item stays on one line. */
  .guest-item .btn-label {
    display: none;
  }
}

/* Names in other languages for the QR menu (item, category and option editors). */
.lang-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.lang-fields .lang-tabs {
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
}
.lang-tabs button {
  position: relative;
}
.lang-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  margin-inline-start: 6px;
  vertical-align: 1px;
}
.choice-name {
  display: grid;
  grid-template-columns: minmax(80px, 160px) 1fr;
  align-items: center;
  gap: 10px;
}
