/* ============================================================================
   Flowiax restaurant staff screens — waiter, kitchen, order board.
   The same identity as the Flowiax restaurant app inside the ERP: teal brand,
   Manrope / FlowiaxArabic, glance cards, one accent. Values mirror
   flowiax_ui/static/src/tokens/fx_tokens.scss (these pages are served
   outside the ERP's asset bundles). Logical properties only, so RTL needs no
   second stylesheet. No CDN: fonts come from flowiax_ui.
   ============================================================================ */

@font-face { font-family: "Manrope"; src: url("/flowiax_ui/static/src/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("/flowiax_ui/static/src/fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "FlowiaxArabic"; src: url("/flowiax_ui/static/src/fonts/NotoKufiArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FlowiaxArabic"; src: url("/flowiax_ui/static/src/fonts/NotoKufiArabic-SemiBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --fx-primary: #006970;
    --fx-primary-strong: #00545a;
    --fx-primary-deep: #013b40;
    --fx-primary-soft: rgba(0, 105, 112, 0.08);
    --fx-on-primary: #ffffff;
    --fx-app-bg: #eef4f4;
    --fx-surface: #ffffff;
    --fx-ink: #10292b;
    --fx-muted: #50686a;
    --fx-line: #d2e0e0;
    --fx-card-line: rgba(0, 105, 112, 0.14);
    --fx-soft-line: rgba(0, 105, 112, 0.08);
    --fx-success: #006b5e;
    --fx-warning: #855300;
    --fx-danger: #ba1a1a;
    --fx-info: #1d6f87;
    --fx-success-soft: rgba(0, 107, 94, 0.1);
    --fx-warning-soft: rgba(133, 83, 0, 0.1);
    --fx-danger-soft: rgba(186, 26, 26, 0.08);
    --fx-info-soft: rgba(29, 111, 135, 0.1);
    --fx-shadow: 0 1px 2px rgba(65, 101, 110, 0.05), 0 10px 26px -18px rgba(65, 101, 110, 0.22);
    --fx-focus-ring: 0 0 0 3px rgba(0, 105, 112, 0.35);
    --fx-radius: 16px;
    --fx-font-latin: "Manrope", "Segoe UI", system-ui, sans-serif;
    --fx-font-arabic: "FlowiaxArabic", "Noto Sans Arabic", "Segoe UI", sans-serif;
    --fx-bottom-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--fx-app-bg);
    color: var(--fx-ink);
    font-family: var(--fx-font-latin);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
html[dir="rtl"] body { font-family: var(--fx-font-arabic); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--fx-primary); text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--fx-focus-ring); }
[hidden] { display: none !important; }
.fx-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.fx-muted { color: var(--fx-muted); font-size: 12px; }
.fx-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-ic-sm { width: 16px; height: 16px; }
.fx-ic-lg { width: 28px; height: 28px; }
.fx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Top bar (the Flowiax navbar teal) ─────────────────────────────────── */
.fx-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 60px; padding: 8px 20px;
    background: linear-gradient(90deg, var(--fx-primary-strong), var(--fx-primary-deep));
    color: var(--fx-on-primary);
    box-shadow: 0 4px 18px -12px rgba(1, 59, 64, 0.8);
}
.fx-top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* The Flowiax wordmark and its separator used to stand here, ahead of the restaurant. They are
   gone from the top bar of every staff screen: the restaurant's own mark leads, and Flowiax's name
   and version stay in the footer, where requirements 15 and 16 oblige them to be visible
   (views/staff_screens.xml fx_staff_footer). */
.fx-top-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fx-top-title strong { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-top-title span { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.fx-top-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.fx-top .fx-icon-btn { color: var(--fx-on-primary); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.fx-top .fx-icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.fx-user {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 4px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 600;
}
.fx-user-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-on-primary); color: var(--fx-primary-strong); font-weight: 800;
}
.fx-switch {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px;
    border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none;
}
.fx-switch input { width: 18px; height: 18px; accent-color: var(--fx-on-primary); margin: 0; }

/* inside the Flowiax restaurant app: its own top bar already names the screen */
html.is-embedded .fx-top {
    position: static; min-height: 52px;
    background: var(--fx-surface); color: var(--fx-ink); box-shadow: none; border-bottom: 1px solid var(--fx-line);
}
html.is-embedded .fx-standalone { display: none !important; }
html.is-embedded .fx-top-title span { color: var(--fx-muted); }
html.is-embedded .fx-top .fx-icon-btn { color: var(--fx-primary-strong); border-color: rgba(0, 105, 112, 0.22); background: var(--fx-surface); }
html.is-embedded .fx-user, html.is-embedded .fx-switch { background: var(--fx-primary-soft); }
html.is-embedded .fx-user-avatar { background: var(--fx-primary); color: var(--fx-on-primary); }
html.is-embedded .fx-switch input { accent-color: var(--fx-primary); }

/* ── Buttons, pills, chips ─────────────────────────────────────────────── */
.fx-btn {
    min-height: 44px; padding-inline: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 12px;
    font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fx-btn:disabled { opacity: 0.45; cursor: default; }
.fx-btn-primary { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-btn-primary:hover:not(:disabled) { background: var(--fx-primary-strong); }
.fx-btn-secondary { background: var(--fx-surface); border-color: rgba(0, 105, 112, 0.24); color: var(--fx-primary-strong); }
.fx-btn-secondary:hover:not(:disabled) { background: var(--fx-primary-soft); }
.fx-btn-soft { background: var(--fx-primary-soft); color: var(--fx-primary-strong); }
.fx-btn-soft:hover:not(:disabled) { background: rgba(0, 105, 112, 0.14); }
.fx-btn-success { background: var(--fx-success); color: var(--fx-on-primary); }
.fx-btn-danger { background: var(--fx-surface); border-color: rgba(186, 26, 26, 0.3); color: var(--fx-danger); }
.fx-btn-danger:hover:not(:disabled) { background: var(--fx-danger-soft); }
.fx-btn-lg { min-height: 52px; font-size: 15px; border-radius: 14px; }
.fx-btn-sm { min-height: 34px; padding-inline: 10px; font-size: 12.5px; border-radius: 10px; }
.fx-btn-block { width: 100%; }
.fx-icon-btn {
    width: 40px; height: 40px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0, 105, 112, 0.22); border-radius: 12px; background: var(--fx-surface); color: var(--fx-primary-strong);
}
.fx-icon-btn:hover { background: var(--fx-primary-soft); }
.fx-icon-btn.is-loading .fx-ic { animation: fx-spin 0.9s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

.fx-pill {
    display: inline-flex; align-items: center; gap: 5px; height: 24px; padding-inline: 9px;
    border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
    background: rgba(80, 104, 106, 0.1); color: var(--fx-muted);
}
.fx-pill-ok { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-pill-primary { background: var(--fx-primary-soft); color: var(--fx-primary-strong); }
.fx-pill-warn { background: var(--fx-warning-soft); color: var(--fx-warning); }
.fx-pill-info { background: var(--fx-info-soft); color: var(--fx-info); }
.fx-pill-danger { background: var(--fx-danger-soft); color: var(--fx-danger); }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.fx-dot.is-live { animation: fx-pulse 1.4s ease-in-out infinite; }
@keyframes fx-pulse { 50% { opacity: 0.35; } }
.fx-badge {
    min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-danger); color: var(--fx-on-primary); font-size: 11px; font-weight: 800;
}
.fx-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chip {
    flex: none; height: 36px; padding-inline: 14px; border-radius: 999px;
    border: 1px solid rgba(0, 105, 112, 0.2); background: var(--fx-surface); color: var(--fx-ink);
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.fx-chip.is-on { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-on-primary); }
/* the second row of categories: the ones under the chosen top category (sub-categories, fx_cat_tree.js) */
.fx-subchips { margin-top: 8px; }
.fx-subchips .fx-chip { height: 32px; padding-inline: 12px; font-size: 12.5px; background: var(--fx-primary-soft); border-color: transparent; color: var(--fx-primary); }
.fx-subchips .fx-chip.is-on { background: var(--fx-surface); border-color: var(--fx-primary); color: var(--fx-primary); }
.fx-segment { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--fx-primary-soft); }
.fx-segment button {
    flex: 1 1 auto; min-height: 36px; padding-inline: 12px; border: 0; border-radius: 9px; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--fx-muted); white-space: nowrap;
}
.fx-segment button[aria-pressed="true"] { background: var(--fx-surface); color: var(--fx-primary-strong); box-shadow: 0 1px 2px rgba(65, 101, 110, 0.16); }

/* ── Page, cards, glance stats ─────────────────────────────────────────── */
.fx-wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.fx-banner {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
    font-size: 13.5px; font-weight: 700;
}
.fx-banner-warn { background: var(--fx-warning-soft); color: var(--fx-warning); border: 1px solid rgba(133, 83, 0, 0.24); }
.fx-banner-danger { background: var(--fx-danger-soft); color: var(--fx-danger); border: 1px solid rgba(186, 26, 26, 0.24); }
.fx-card {
    min-width: 0; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--fx-surface); border: 1px solid var(--fx-card-line); border-radius: var(--fx-radius); box-shadow: var(--fx-shadow);
}
.fx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-card-head h2 { font-size: 16px; font-weight: 800; }
.fx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-stat {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--fx-surface); border: 1px solid var(--fx-card-line); border-top: 3px solid var(--fx-primary);
    border-radius: var(--fx-radius); box-shadow: var(--fx-shadow);
}
.fx-stat-icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-primary-soft); color: var(--fx-primary);
}
.fx-stat-text { display: flex; flex-direction: column; min-width: 0; }
.fx-stat-label { font-size: 12.5px; font-weight: 600; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-stat-value { font-size: 24px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fx-empty { padding: 32px 12px; text-align: center; color: var(--fx-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fx-empty .fx-ic { width: 40px; height: 40px; color: rgba(0, 105, 112, 0.4); }

/* ── Waiter: layout, table map, side panel ─────────────────────────────── */
.fx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.fx-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: hidden; }
html.is-embedded .fx-side { top: 12px; max-height: calc(100vh - 24px); }
.fx-side-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; margin-inline: -4px; padding-inline: 4px; }
.fx-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.fx-table {
    position: relative; min-height: 132px; padding: 12px 14px; text-align: start;
    display: flex; flex-direction: column; gap: 6px;
    border: 1.5px solid var(--fx-card-line); border-radius: 16px; background: var(--fx-surface);
    transition: transform 0.12s, box-shadow 0.12s;
}
.fx-table:hover { transform: translateY(-1px); box-shadow: var(--fx-shadow); }
.fx-table-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.fx-table-no { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fx-table-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--fx-muted); }
.fx-table-meta span { display: inline-flex; align-items: center; gap: 4px; }
.fx-table-total { margin-top: auto; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-table.is-free { border-style: dashed; background: rgba(255, 255, 255, 0.6); }
.fx-table.is-free .fx-table-no { color: var(--fx-muted); }
.fx-table.is-occupied { border-color: rgba(0, 105, 112, 0.45); box-shadow: inset 0 3px 0 var(--fx-primary); }
.fx-table.is-service_requested { border-color: rgba(29, 111, 135, 0.6); box-shadow: inset 0 3px 0 var(--fx-info); background: linear-gradient(var(--fx-info-soft), var(--fx-surface) 60%); }
.fx-table.is-bill_requested { border-color: rgba(133, 83, 0, 0.55); box-shadow: inset 0 3px 0 var(--fx-warning); background: linear-gradient(var(--fx-warning-soft), var(--fx-surface) 60%); }
.fx-floors { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }

.fx-request {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px;
    border: 1px solid var(--fx-card-line); border-radius: 14px; background: var(--fx-surface);
}
.fx-request.is-bill_request { border-color: rgba(133, 83, 0, 0.3); background: linear-gradient(90deg, var(--fx-warning-soft), var(--fx-surface)); }
.fx-request.is-call_waiter { border-color: rgba(29, 111, 135, 0.3); background: linear-gradient(90deg, var(--fx-info-soft), var(--fx-surface)); }
html[dir="rtl"] .fx-request.is-bill_request { background: linear-gradient(270deg, var(--fx-warning-soft), var(--fx-surface)); }
html[dir="rtl"] .fx-request.is-call_waiter { background: linear-gradient(270deg, var(--fx-info-soft), var(--fx-surface)); }
.fx-request-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-primary-soft); color: var(--fx-primary); }
.fx-request.is-bill_request .fx-request-icon { background: var(--fx-warning-soft); color: var(--fx-warning); }
.fx-request.is-call_waiter .fx-request-icon { background: var(--fx-info-soft); color: var(--fx-info); }
.fx-request-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-request-body strong { font-size: 14px; }
.fx-request-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* quick order */
.fx-field { display: flex; flex-direction: column; gap: 6px; }
.fx-field label { font-size: 12px; font-weight: 700; color: var(--fx-muted); }
.fx-input, .fx-select {
    width: 100%; height: 44px; padding-inline: 12px;
    border: 1px solid rgba(0, 105, 112, 0.22); border-radius: 12px; background: var(--fx-surface); color: var(--fx-ink);
    font-size: 14px;
}
.fx-select option { color: var(--fx-ink); background: var(--fx-surface); }
.fx-input:focus, .fx-select:focus { outline: none; box-shadow: var(--fx-focus-ring); }
.fx-search { position: relative; }
.fx-search .fx-ic { position: absolute; inset-inline-start: 12px; top: 12px; color: var(--fx-muted); }
.fx-search .fx-input { padding-inline-start: 40px; }
.fx-products { display: flex; flex-direction: column; gap: 6px; }
.fx-product {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border: 1px solid var(--fx-soft-line); border-radius: 12px; background: var(--fx-surface);
}
.fx-product.is-in { border-color: rgba(0, 105, 112, 0.4); background: rgba(0, 105, 112, 0.04); }
.fx-product-img {
    width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-primary-soft); color: var(--fx-primary); font-weight: 800;
}
.fx-product-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fx-product-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-product-text span { font-size: 12.5px; font-weight: 700; color: var(--fx-primary-strong); font-variant-numeric: tabular-nums; }
.fx-stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.fx-stepper button {
    width: 34px; height: 34px; border-radius: 10px; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-primary-soft); color: var(--fx-primary-strong);
}
.fx-stepper button.is-add { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-stepper output { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-cart {
    position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 10px;
    padding: 12px; border-radius: 14px; background: var(--fx-primary-strong); color: var(--fx-on-primary);
}
.fx-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.fx-cart-row .fx-num { font-size: 18px; font-weight: 800; }
.fx-cart .fx-btn-primary { background: var(--fx-on-primary); color: var(--fx-primary-strong); }

/* ── Sheet (dialog: centred on large screens, from the bottom on phones) ── */
.fx-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16, 41, 43, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fx-sheet {
    width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 14px; padding: 18px;
    background: var(--fx-surface); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(16, 41, 43, 0.55);
}
.fx-sheet-sm { max-width: 420px; }
.fx-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fx-sheet-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-sheet-title h2 { font-size: 20px; font-weight: 800; }
.fx-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-summary > div { padding: 10px 12px; border-radius: 12px; background: var(--fx-primary-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-summary span { font-size: 11.5px; font-weight: 700; color: var(--fx-muted); }
.fx-summary strong { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.fx-summary button { border: 0; background: transparent; color: var(--fx-primary); padding: 0; display: inline-flex; }
.fx-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-actions .fx-span { grid-column: 1 / -1; }
.fx-section-label { font-size: 12px; font-weight: 800; color: var(--fx-muted); letter-spacing: 0.02em; }
.fx-lines { display: flex; flex-direction: column; border: 1px solid var(--fx-soft-line); border-radius: 12px; overflow: hidden; }
.fx-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.fx-line + .fx-line { border-top: 1px solid var(--fx-soft-line); }
.fx-line-qty { min-width: 34px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-primary-soft); color: var(--fx-primary-strong); font-weight: 800; font-size: 13px; }
.fx-line-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fx-line-name em { font-size: 12px; color: var(--fx-muted); font-style: normal; }
.fx-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-people button { height: 52px; border-radius: 12px; border: 1px solid rgba(0, 105, 112, 0.24); background: var(--fx-surface); font-size: 20px; font-weight: 800; color: var(--fx-primary-strong); }
.fx-people button.is-on { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-on-primary); }
.fx-sheet-foot { display: flex; gap: 8px; }
.fx-sheet-foot .fx-btn { flex: 1 1 0; }

.fx-toast {
    position: fixed; inset-inline: 16px; bottom: 24px; z-index: 80; margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px);
    padding: 12px 18px; border-radius: 12px; background: var(--fx-ink); color: var(--fx-on-primary);
    font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(16, 41, 43, 0.6);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.fx-toast.is-on { opacity: 1; transform: none; }
.fx-toast.is-error { background: var(--fx-danger); }

/* ── Kitchen tickets ───────────────────────────────────────────────────── */
.fx-kds-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.fx-ticket {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--fx-surface); border: 1px solid var(--fx-card-line); border-top: 4px solid var(--fx-info);
    border-radius: var(--fx-radius); box-shadow: var(--fx-shadow);
}
.fx-ticket.is-preparing { border-top-color: var(--fx-warning); }
.fx-ticket.is-ready { border-top-color: var(--fx-success); }
.fx-ticket.is-late { border-top-color: var(--fx-danger); box-shadow: 0 0 0 1px rgba(186, 26, 26, 0.3), var(--fx-shadow); }
.fx-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.fx-ticket-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-ticket-title h2 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.fx-timer { text-align: end; display: flex; flex-direction: column; align-items: flex-end; }
.fx-timer strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; direction: ltr; }
.fx-ticket.is-late .fx-timer strong { color: var(--fx-danger); }
.fx-ticket-lines { display: flex; flex-direction: column; padding: 4px 16px 12px; }
.fx-ticket-line { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; }
.fx-ticket-line + .fx-ticket-line { border-top: 1px dashed var(--fx-soft-line); }
.fx-ticket-line b { min-width: 30px; color: var(--fx-primary-strong); font-variant-numeric: tabular-nums; }
.fx-ticket-line em { display: block; font-style: normal; font-size: 12.5px; color: var(--fx-warning); }
.fx-ticket-actions { display: flex; gap: 8px; padding: 12px 16px; background: var(--fx-primary-soft); }
.fx-ticket-actions .fx-btn { flex: 1 1 0; }

/* ── Order board (a screen customers read from a distance) ─────────────── */
.fx-board { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 20px; min-height: 0; }
.fx-board-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--fx-surface); border: 1px solid var(--fx-card-line); border-radius: 20px; box-shadow: var(--fx-shadow); }
.fx-board-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--fx-soft-line); font-size: 18px; font-weight: 800; }
.fx-board-col.is-preparing .fx-board-head { color: var(--fx-warning); background: linear-gradient(var(--fx-warning-soft), transparent); }
.fx-board-col.is-ready .fx-board-head { color: var(--fx-success); background: linear-gradient(var(--fx-success-soft), transparent); }
.fx-board-head .fx-count { margin-inline-start: auto; min-width: 36px; height: 32px; padding-inline: 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: currentColor; }
.fx-board-head .fx-count span { color: var(--fx-on-primary); font-variant-numeric: tabular-nums; }
.fx-board-cards { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-content: start; }
.fx-board-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--fx-card-line); background: var(--fx-surface); }
.fx-board-col.is-ready .fx-board-card { border-color: rgba(0, 107, 94, 0.35); background: linear-gradient(var(--fx-success-soft), var(--fx-surface)); }
.fx-board-no { width: 64px; height: 64px; border-radius: 16px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--fx-primary-soft); color: var(--fx-primary-strong); }
.fx-board-col.is-ready .fx-board-no { background: var(--fx-success); color: var(--fx-on-primary); }
.fx-board-no strong { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fx-board-no span { font-size: 10.5px; font-weight: 700; opacity: 0.8; }
.fx-board-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-board-info strong { font-size: 16px; }
.fx-board-info .fx-num { font-size: 14px; font-weight: 700; color: var(--fx-muted); }
.fx-board-clock { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }

/* ── Footer (Flowiax logo, system version, approved version) ───────────── */
.fx-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 20px 20px; color: var(--fx-muted); font-size: 12px; }
.fx-foot img { height: 20px; width: auto; }
.fx-foot .fx-foot-release { direction: ltr; font-variant-numeric: tabular-nums; }

/* ── Phone bottom bar (waiter) ─────────────────────────────────────────── */
.fx-bottom { display: none; }

@media (max-width: 1199px) {
    .fx-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1023px) {
    .fx-layout { grid-template-columns: minmax(0, 1fr); }
    .fx-side { position: static; max-height: none; overflow: visible; }
    .fx-side-tabs { display: none !important; }
    body[data-view="tables"] .fx-side, body[data-view="requests"] .fx-pane-tables, body[data-view="order"] .fx-pane-tables { display: none; }
    body[data-view="requests"] [data-panel="order"], body[data-view="order"] [data-panel="requests"] { display: none; }
    .fx-bottom {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
        display: flex; height: calc(var(--fx-bottom-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--fx-surface); border-top: 1px solid var(--fx-line); box-shadow: 0 -8px 24px -18px rgba(16, 41, 43, 0.4);
    }
    .fx-bottom button {
        position: relative; flex: 1 1 0; border: 0; background: transparent; color: var(--fx-muted);
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 700;
    }
    .fx-bottom button[aria-pressed="true"] { color: var(--fx-primary); }
    .fx-bottom .fx-badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); }
    body.has-bottom .fx-wrap { padding-bottom: calc(var(--fx-bottom-h) + 24px); }
    body.has-bottom .fx-foot { padding-bottom: calc(var(--fx-bottom-h) + 20px); }
    .fx-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .fx-top { padding: 8px 12px; min-height: 56px; }
    .fx-user-name, .fx-switch span, .fx-hide-phone { display: none !important; }
    .fx-user { padding-inline: 4px; }
    .fx-wrap { padding: 12px 12px 24px; gap: 12px; }
    .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .fx-stat { padding: 10px; gap: 10px; }
    .fx-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
    .fx-stat-value { font-size: 20px; }
    .fx-card { padding: 12px; }
    .fx-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fx-table { min-height: 118px; }
    .fx-scrim { align-items: flex-end; padding: 0; }
    .fx-sheet { max-width: none; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .fx-summary strong { font-size: 14px; }
    .fx-kds-grid { grid-template-columns: minmax(0, 1fr); }
    .fx-board { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The RESTAURANT's own mark in the staff header (owner, 2026-09-21: «بدي كل واجهات المطعم تحمل هذه
   الأيقونة»). It sits on a white tile and is never hidden: the bar is painted in the restaurant's own
   colours, so a white logo drawn bare would vanish on a dark one, and the two rules that used to hide
   the brand block on phones and inside the ERP frame left the Flowiax mark as the only thing standing
   — which is exactly the wrong one. Flowiax's own name and version stay in the footer, where the
   accreditation requires them (views/staff_screens.xml fx_staff_footer). */
.fx-top-brand-logo {
    height: 32px; max-width: 150px; width: auto; flex: none; display: block; object-fit: contain;
    background: #fff; border-radius: 9px; padding: 3px 6px;
}
.fx-top-mono {
    width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: #fff; color: var(--fx-primary); font-weight: 800; font-size: 15px;
}
html.is-embedded .fx-top-brand-logo, html.is-embedded .fx-top-mono { display: block !important; }
html.is-embedded .fx-top-mono { display: grid !important; }
.fx-board .fx-top-brand-logo, .fx-board-body .fx-top-brand-logo { height: 52px; max-width: 220px; }
.fx-board-body .fx-top-mono { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
@media (max-width: 767px) {
    .fx-top-brand-logo { height: 30px; border-radius: 8px; }
    .fx-top-mono { width: 30px; height: 30px; border-radius: 8px; }
}

/* ============================================================================
   Kitchen rounds (owner, 2026-09-16 and 2026-09-18): the kitchen screen works on
   rounds sent to the kitchen; the waiter's table sheet lists them. Same tokens,
   logical properties only (RTL needs nothing more).
   ============================================================================ */

/* ── Kitchen screen: bar, sound, change requests ───────────────────────── */
.fx-kds-filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fx-kds-filter::-webkit-scrollbar { display: none; }
.fx-kds-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-sound[aria-pressed="false"] { color: var(--fx-muted); }
.fx-sound.is-blocked { background: var(--fx-warning-soft); border-color: rgba(133, 83, 0, 0.3); color: var(--fx-warning); }
.fx-kds-changes { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--fx-radius); background: var(--fx-surface); border: 1px solid rgba(133, 83, 0, 0.28); box-shadow: var(--fx-shadow); }
.fx-kds-changes .fx-change-req { margin: 0; }
@media (min-width: 768px) {
    .fx-kds-changes .fx-change-req { flex-direction: row; align-items: center; justify-content: space-between; }
    .fx-kds-changes .fx-change-req-actions { flex: 0 0 300px; }
}
.fx-section-label .fx-ic, .fx-note-who .fx-ic { vertical-align: -3px; margin-inline-end: 4px; }

/* ── Kitchen screen: one card per round ────────────────────────────────── */
.fx-ticket { position: relative; }
.fx-ticket.is-waiting { border-top-color: var(--fx-primary); border-inline-start: 6px solid var(--fx-primary); }
.fx-ticket.is-waiting .fx-ticket-head { background: linear-gradient(var(--fx-primary-soft), transparent); }
.fx-ticket.is-accepted { border-top-color: var(--fx-info); }
.fx-ticket.is-late.is-waiting { border-inline-start-color: var(--fx-danger); }
.fx-ticket-title h2 small { font-size: 14px; font-weight: 700; color: var(--fx-muted); white-space: nowrap; }
.fx-ticket-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-late-pill { display: none !important; }
.fx-ticket.is-late .fx-late-pill { display: inline-flex !important; }
.fx-pill.is-pulse { animation: fx-ring 1.3s ease-in-out infinite; }
@keyframes fx-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 105, 112, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(0, 105, 112, 0); } }
.fx-timer { gap: 2px; }
.fx-timer .fx-muted { font-size: 11px; white-space: nowrap; }
.fx-icon-btn-sm { width: 34px; height: 34px; border-radius: 10px; margin-top: 4px; }
.fx-ticket-line { align-items: flex-start; }
.fx-ticket-line-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fx-ticket-item { font-weight: 700; }
.fx-ticket-line em.is-opt { color: var(--fx-muted); }
.fx-ticket-line em.is-cut { color: var(--fx-danger); font-weight: 700; }
.fx-ticket-line.is-gone .fx-ticket-item, .fx-ticket-line.is-gone b { text-decoration: line-through; color: var(--fx-muted); }
.fx-ticket-line.is-off { margin-inline: -16px; padding-inline: 16px; background: var(--fx-danger-soft); }
.fx-ticket-line.is-off .fx-ticket-item { color: var(--fx-danger); text-decoration: line-through; }
.fx-toggle {
    flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding-inline: 10px;
    border-radius: 10px; border: 1px solid rgba(186, 26, 26, 0.3); background: var(--fx-surface); color: var(--fx-danger);
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.fx-toggle[aria-pressed="true"] { background: var(--fx-danger); border-color: var(--fx-danger); color: var(--fx-on-primary); }
.fx-ticket-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; }
.fx-ticket-actions .fx-span { grid-column: 1 / -1; }
.fx-ticket-actions .fx-btn { white-space: normal; text-align: center; }

.fx-change-req {
    display: flex; flex-direction: column; gap: 8px; margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px;
    background: var(--fx-warning-soft); border: 1px solid rgba(133, 83, 0, 0.28);
}
.fx-change-req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-change-req-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fx-warning); }
.fx-change-req-text em { font-style: normal; font-size: 13px; }
.fx-change-req-actions { display: flex; gap: 8px; }
.fx-change-req-actions .fx-btn { flex: 1 1 0; }

.fx-notes { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 12px; }
.fx-note { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--fx-primary-soft); font-size: 13.5px; border-inline-start: 3px solid transparent; }
.fx-note.is-kitchen { background: var(--fx-success-soft); }
.fx-note.is-new { background: var(--fx-warning-soft); border-inline-start-color: var(--fx-warning); }
.fx-note-who { font-size: 11.5px; font-weight: 800; color: var(--fx-muted); }
.fx-note-text { overflow-wrap: anywhere; }
.fx-notes-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* dialogs: a long sheet scrolls; its blocks keep their height (a list with overflow hidden would
   otherwise shrink to nothing inside the height-limited flex column) */
.fx-sheet > * { flex-shrink: 0; }

/* dialogs: choices, free text */
.fx-textarea {
    width: 100%; min-height: 72px; padding: 10px 12px; resize: vertical;
    border: 1px solid rgba(0, 105, 112, 0.22); border-radius: 12px; background: var(--fx-surface); color: var(--fx-ink); font: inherit;
}
.fx-textarea:focus { outline: none; box-shadow: var(--fx-focus-ring); }
.fx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-choices button {
    min-height: 48px; padding: 8px 12px; border-radius: 12px; text-align: start;
    border: 1px solid rgba(0, 105, 112, 0.24); background: var(--fx-surface); color: var(--fx-ink); font-size: 13.5px; font-weight: 700;
}
.fx-choices button[aria-pressed="true"] { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-on-primary); }

/* a wall screen in the kitchen: bigger cards, readable from a distance */
@media (min-width: 1600px) {
    #fx-kds .fx-wrap { max-width: none; }
    .fx-kds-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
    .fx-ticket-title h2 { font-size: 26px; }
    .fx-ticket-line { font-size: 17px; }
    .fx-timer strong { font-size: 26px; }
}

/* ── Waiter: the table's rounds ────────────────────────────────────────── */
.fx-rounds { display: flex; flex-direction: column; gap: 10px; }
.fx-round {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--fx-card-line); border-inline-start: 4px solid var(--fx-primary); border-radius: 14px; background: var(--fx-surface);
}
.fx-round.is-accepted { border-inline-start-color: var(--fx-info); }
.fx-round.is-preparing { border-inline-start-color: var(--fx-warning); }
.fx-round.is-ready { border-inline-start-color: var(--fx-success); box-shadow: 0 0 0 1px rgba(0, 107, 94, 0.25); }
.fx-round.is-served { border-inline-start-color: var(--fx-line); }
.fx-round.is-rejected { border-inline-start-color: var(--fx-danger); }
.fx-round.is-cancelled { border-inline-start-color: var(--fx-line); opacity: 0.62; }
.fx-round-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; }
.fx-round-head > div { display: flex; flex-direction: column; min-width: 0; }
.fx-round-head strong { font-size: 14px; }
.fx-round-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-round-line { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--fx-soft-line); font-size: 13.5px; }
.fx-round-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-round-body em { font-style: normal; font-size: 12px; color: var(--fx-muted); }
.fx-round-body em.is-warn { color: var(--fx-warning); font-weight: 700; }
.fx-round-body em.is-danger { color: var(--fx-danger); font-weight: 700; }
.fx-round-body em.is-ok { color: var(--fx-success); font-weight: 700; }
.fx-round-line.is-gone .fx-round-name, .fx-round-line.is-gone .fx-line-qty { text-decoration: line-through; color: var(--fx-muted); }
.fx-round-line .fx-btn-sm { flex: none; }
.fx-round-reason { padding: 8px 12px; background: var(--fx-danger-soft); color: var(--fx-danger); font-size: 12.5px; font-weight: 700; }
.fx-round .fx-notes { padding: 8px 12px; border-top: 1px solid var(--fx-soft-line); }
.fx-round-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; background: var(--fx-primary-soft); }
.fx-round-foot .fx-btn { flex: 1 1 auto; }
.fx-edit-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.fx-edit-line + .fx-edit-line { border-top: 1px dashed var(--fx-soft-line); }
.fx-edit-line > span { flex: 1 1 auto; min-width: 0; }
.fx-stepper input { width: 64px; height: 34px; text-align: center; border: 1px solid rgba(0, 105, 112, 0.22); border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }

.fx-banner-ok { background: var(--fx-success-soft); color: var(--fx-success); border: 1px solid rgba(0, 107, 94, 0.24); }
.fx-banner .fx-ic { flex: none; }
.fx-icon-btn.fx-lock { color: var(--fx-muted); border-style: dashed; cursor: help; }
.fx-icon-btn.fx-lock:hover { background: var(--fx-surface); }

/* the table map and the requests */
.fx-table.is-paid { border-color: rgba(0, 107, 94, 0.45); box-shadow: inset 0 3px 0 var(--fx-success); }
.fx-table-meta .fx-pill { max-width: 100%; height: auto; min-height: 24px; padding-block: 3px; white-space: normal; line-height: 1.25; }
.fx-table.is-mine .fx-table-no { white-space: nowrap; }
.fx-table.is-mine .fx-table-no::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 6px; border-radius: 50%; background: var(--fx-primary); vertical-align: middle; }
.fx-request.is-kitchen_rejected { border-color: rgba(186, 26, 26, 0.3); background: linear-gradient(90deg, var(--fx-danger-soft), var(--fx-surface)); }
html[dir="rtl"] .fx-request.is-kitchen_rejected { background: linear-gradient(270deg, var(--fx-danger-soft), var(--fx-surface)); }
.fx-request.is-kitchen_rejected .fx-request-icon { background: var(--fx-danger-soft); color: var(--fx-danger); }
.fx-request.is-mine { border-width: 2px; border-color: rgba(0, 105, 112, 0.45); }
.fx-request-body > strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fx-request-note { white-space: pre-line; }

@media (max-width: 767px) {
    .fx-choices { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================================
   Waiter alerts and the floor manager's approvals (owner, 2026-09-18): «when the
   customer calls the waiter, no notification shows». A banner stack under the
   top bar, a pulsing table card with a count, the approvals button with its
   badge. One teal accent; the state colours only mark what kind of alert it is.
   ============================================================================ */

/* ── Top bar: approvals and sound ──────────────────────────────────────── */
.fx-top .fx-icon-btn { position: relative; }
.fx-icon-btn > .fx-badge { position: absolute; top: -6px; inset-inline-end: -6px; box-shadow: 0 0 0 2px var(--fx-primary-strong); }
html.is-embedded .fx-icon-btn > .fx-badge { box-shadow: 0 0 0 2px var(--fx-surface); }
.fx-approvals-btn.is-waiting { animation: fx-ring 1.3s ease-in-out infinite; }
.fx-sound-btn.is-blocked { background: var(--fx-warning-soft); border-color: rgba(133, 83, 0, 0.45); color: var(--fx-on-primary); }
.fx-sound-btn.is-off { opacity: 0.75; }
html.is-embedded .fx-sound-btn.is-blocked { color: var(--fx-warning); }

/* ── Banner stack ──────────────────────────────────────────────────────── */
.fx-alerts {
    position: sticky; top: 68px; z-index: 25;
    display: flex; flex-direction: column; gap: 8px;
}
html.is-embedded .fx-alerts { top: 8px; }
.fx-alert {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: var(--fx-surface); border: 1px solid var(--fx-card-line); border-inline-start: 4px solid var(--fx-primary);
    border-radius: 14px; box-shadow: 0 12px 28px -18px rgba(16, 41, 43, 0.55);
    animation: fx-alert-in 0.25s ease-out;
}
.fx-alert.is-mine { border-color: rgba(0, 105, 112, 0.45); border-inline-start-color: var(--fx-primary); }
.fx-alert-icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-primary-soft); color: var(--fx-primary);
}
.fx-alert-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-alert-body strong { font-size: 15px; font-weight: 800; line-height: 1.3; }
.fx-alert-meta { font-size: 12px; color: var(--fx-muted); white-space: pre-line; }
.fx-alert-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.fx-alert-actions .fx-icon-btn-sm { margin-top: 0; }
.fx-alert.is-call_waiter, .fx-alert.is-close_request, .fx-alert.is-other { border-inline-start-color: var(--fx-info); }
.fx-alert.is-call_waiter .fx-alert-icon, .fx-alert.is-close_request .fx-alert-icon, .fx-alert.is-other .fx-alert-icon { background: var(--fx-info-soft); color: var(--fx-info); }
.fx-alert.is-call_waiter .fx-alert-icon { animation: fx-ring 1.3s ease-in-out infinite; }
.fx-alert.is-bill_request, .fx-alert.is-approval { border-inline-start-color: var(--fx-warning); }
.fx-alert.is-bill_request .fx-alert-icon, .fx-alert.is-approval .fx-alert-icon { background: var(--fx-warning-soft); color: var(--fx-warning); }
.fx-alert.is-kitchen_rejected, .fx-alert.is-answer_no { border-inline-start-color: var(--fx-danger); }
.fx-alert.is-kitchen_rejected .fx-alert-icon, .fx-alert.is-answer_no .fx-alert-icon { background: var(--fx-danger-soft); color: var(--fx-danger); }
.fx-alert.is-ready, .fx-alert.is-answer_ok { border-inline-start-color: var(--fx-success); }
.fx-alert.is-ready .fx-alert-icon, .fx-alert.is-answer_ok .fx-alert-icon { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-alert.is-sound { background: var(--fx-primary-soft); border-style: dashed; }
.fx-alerts-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@keyframes fx-alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Table cards waiting for someone ───────────────────────────────────── */
.fx-table.is-alert { border-color: var(--fx-primary); }
/* the ring lives on its own layer, so the card keeps its status stripe */
.fx-table.is-alert::after {
    content: ""; position: absolute; inset: -2px; border-radius: 17px; pointer-events: none;
    animation: fx-table-ring 1.4s ease-in-out infinite;
}
@keyframes fx-table-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 105, 112, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(0, 105, 112, 0); }
}
.fx-table-badge {
    position: absolute; top: -8px; inset-inline-end: -8px; z-index: 1;
    min-width: 24px; height: 24px; padding-inline: 7px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fx-danger); color: var(--fx-on-primary); font-size: 12px; font-weight: 800;
    box-shadow: 0 0 0 2px var(--fx-app-bg);
}

/* ── Approvals: list rows, the round line's buttons, the confirmation ─── */
.fx-approval { border-color: rgba(133, 83, 0, 0.3); background: linear-gradient(90deg, var(--fx-warning-soft), var(--fx-surface)); }
html[dir="rtl"] .fx-approval { background: linear-gradient(270deg, var(--fx-warning-soft), var(--fx-surface)); }
.fx-approval .fx-request-icon { background: var(--fx-warning-soft); color: var(--fx-warning); }
.fx-approval.is-own { border-style: dashed; }
.fx-approval-reason { font-style: normal; font-size: 13px; color: var(--fx-ink); }
.fx-approvals { display: flex; flex-direction: column; gap: 10px; }
.fx-round-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.fx-check {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px;
    background: var(--fx-primary-soft); font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.fx-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--fx-primary); }

@media (max-width: 767px) {
    .fx-alerts { top: 64px; }
    .fx-alert { flex-wrap: wrap; }
    .fx-alert-actions { width: 100%; justify-content: flex-start; }
    .fx-alert-close { margin-inline-start: auto; }
    .fx-round-line { flex-wrap: wrap; }
    .fx-round-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-table.is-alert::after, .fx-approvals-btn.is-waiting, .fx-alert, .fx-alert.is-call_waiter .fx-alert-icon { animation: none !important; }
    .fx-table.is-alert::after { box-shadow: 0 0 0 3px rgba(0, 105, 112, 0.45); }
}

/* ============================================================================
   Reservations in the waiter app (owner, 2026-09-18): the day list, the booking
   form, the reserved tables on the floor. Same tokens, one teal accent; the
   warning colour marks a late party only. Logical properties (RTL needs nothing).
   ============================================================================ */

/* the side panel now holds three tabs: they share the width */
.fx-side-tabs button { min-width: 0; padding-inline: 8px; }
.fx-side-tabs button > span:not(.fx-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the reservations due now: a count in the accent (not an alarm) */
.fx-badge-accent { background: var(--fx-primary); }
/* an arrow that points «back» in the reading direction, and its mirror */
html[dir="rtl"] .fx-flip-rtl, html:not([dir="rtl"]) .fx-flip-ltr { transform: scaleX(-1); }

/* ── the day ───────────────────────────────────────────────────────────── */
.fx-rsv-panel { gap: 12px; }
.fx-rsv-head { display: flex; flex-direction: column; gap: 10px; }
.fx-rsv-day { display: flex; align-items: center; gap: 8px; }
.fx-rsv-day .fx-input { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; }
.fx-rsv-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-rsv-sub-text { display: flex; flex-direction: column; min-width: 0; }
.fx-rsv-sub-text strong { font-size: 15px; font-weight: 800; }
.fx-rsv-list { display: flex; flex-direction: column; gap: 10px; }
.fx-rsv-list.is-busy { opacity: 0.55; }

/* ── one reservation ───────────────────────────────────────────────────── */
.fx-rsv {
    display: flex; gap: 12px; padding: 12px;
    border: 1px solid var(--fx-card-line); border-inline-start: 4px solid var(--fx-primary);
    border-radius: 14px; background: var(--fx-surface);
}
.fx-rsv.is-late { border-inline-start-color: var(--fx-warning); background: linear-gradient(90deg, var(--fx-warning-soft), var(--fx-surface) 55%); }
html[dir="rtl"] .fx-rsv.is-late { background: linear-gradient(270deg, var(--fx-warning-soft), var(--fx-surface) 55%); }
.fx-rsv.is-seated, .fx-rsv.is-done { border-inline-start-color: var(--fx-success); }
.fx-rsv.is-cancelled, .fx-rsv.is-no_show { border-inline-start-color: var(--fx-line); opacity: 0.7; }
.fx-rsv-time {
    flex: none; width: 58px; padding: 6px 0; border-radius: 10px; background: var(--fx-primary-soft);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; align-self: flex-start;
}
.fx-rsv-time strong { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--fx-primary-strong); }
.fx-rsv-time span { font-size: 11.5px; color: var(--fx-muted); }
.fx-rsv.is-late .fx-rsv-time { background: var(--fx-warning-soft); }
.fx-rsv.is-late .fx-rsv-time strong { color: var(--fx-warning); }
.fx-rsv-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fx-rsv-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-rsv-title strong { font-size: 15px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-rsv-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--fx-muted); }
.fx-rsv-meta > * { display: inline-flex; align-items: center; gap: 4px; }
.fx-rsv-meta a { color: var(--fx-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-rsv-note { font-style: normal; font-size: 12.5px; color: var(--fx-ink); white-space: pre-line; overflow-wrap: anywhere; }
.fx-rsv-warn {
    display: flex; align-items: center; gap: 6px; margin: 0; font-style: normal;
    font-size: 12.5px; font-weight: 700; color: var(--fx-warning);
}
.fx-rsv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fx-rsv-actions .fx-btn { flex: 1 1 auto; }

/* ── the form ──────────────────────────────────────────────────────────── */
.fx-rsv-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.fx-field-error { margin: -6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--fx-danger); }
.fx-wrap-chips { flex-wrap: wrap; overflow: visible; }
.fx-rsv-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fx-rsv-chip {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; text-align: start;
    border: 1px solid rgba(0, 105, 112, 0.24); border-radius: 12px; background: var(--fx-surface); color: var(--fx-ink);
}
.fx-rsv-chip strong { font-size: 14px; font-weight: 800; }
.fx-rsv-chip span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-rsv-chip em { font-style: normal; font-size: 11.5px; color: var(--fx-muted); }
.fx-rsv-chip.is-small { border-style: dashed; }
.fx-rsv-chip.is-taken { border-color: rgba(133, 83, 0, 0.45); background: var(--fx-warning-soft); }
.fx-rsv-chip.is-taken em { color: var(--fx-warning); font-weight: 700; }
.fx-rsv-chip.is-on { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-on-primary); }
.fx-rsv-chip.is-on span, .fx-rsv-chip.is-on em { color: rgba(255, 255, 255, 0.85); }
.fx-rsv-choice { display: flex; flex-direction: column; gap: 8px; }
.fx-rsv-choice .fx-btn { white-space: normal; text-align: center; }

/* ── the floor: a reserved table ───────────────────────────────────────── */
.fx-rsv-pill .fx-ic { flex: none; }
.fx-table.is-free.is-reserved { border-style: solid; border-color: rgba(0, 105, 112, 0.45); background: linear-gradient(var(--fx-primary-soft), var(--fx-surface) 60%); }
.fx-table.is-free.is-reserved.is-late { border-color: rgba(133, 83, 0, 0.5); background: linear-gradient(var(--fx-warning-soft), var(--fx-surface) 60%); }

@media (max-width: 1023px) {
    body[data-view="reservations"] .fx-pane-tables { display: none; }
    body[data-view="reservations"] [data-panel="requests"], body[data-view="reservations"] [data-panel="order"],
    body[data-view="requests"] [data-panel="reservations"], body[data-view="order"] [data-panel="reservations"] { display: none; }
    .fx-bottom button { min-width: 0; }
    .fx-bottom button > span:not(.fx-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
}
@media (max-width: 767px) {
    .fx-rsv { padding: 10px; gap: 10px; }
    .fx-rsv-time { width: 52px; }
    .fx-rsv-actions .fx-btn { flex: 1 1 calc(50% - 6px); }
}


/* ── the alert centre (owner, 2026-09-21) ────────────────────────────────────────────────────────
   The banners keep the shape they had; what is new is the list view that holds ALL of them, the
   settings sheet, and a second badge on the bottom bar. */
.fx-badge-danger { background: var(--fx-danger); }
.fx-alert-panel { display: flex; flex-direction: column; gap: 8px; }
/* the banners at the top and the list in the Alerts view are the SAME alerts: when the list is open
   the banners stand down, so nothing is ever read twice (headless render, 390 px) */
body.alerts-open .fx-alerts { display: none !important; }
.fx-alert-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fx-alert-panel .fx-alert { box-shadow: none; }
/* The compact row lives in NARROW places — the side column of a wide screen and the alerts view of
   a phone — so it wraps by its own rule, not by the viewport's: the phone rule above never fires
   inside a 420px side column of a 1400px window, and without wrapping the actions row (100% wide)
   stood beside the text on one line, squeezed the words to «تب…» and pushed the buttons out of
   the card into a sideways scrollbar (owner, 2026-09-22: «الكتابة فوق بعضها»). */
.fx-alert.is-compact { padding: 10px; gap: 8px 10px; flex-wrap: wrap; max-width: 100%; }
.fx-alert.is-compact .fx-alert-icon { width: 30px; height: 30px; }
.fx-alert.is-compact .fx-alert-body { flex: 1 1 160px; min-width: 0; }
.fx-alert.is-compact .fx-alert-body strong { font-size: 14px; overflow-wrap: anywhere; }
.fx-alert.is-compact .fx-alert-meta { overflow-wrap: anywhere; }
.fx-alert.is-compact .fx-alert-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
.fx-alert.is-compact .fx-alert-actions .fx-btn { white-space: normal; text-align: start; }
.fx-alert.is-compact .fx-alert-close { margin-inline-start: auto; }
/* the list itself never scrolls sideways: a card that cannot shrink is a card that wraps */
.fx-alert-panel { min-width: 0; max-width: 100%; overflow-x: hidden; }
.fx-alert-panel .fx-alert { min-width: 0; }
/* news nobody waits on reads quieter than a person waiting */
.fx-alert.is-quiet { opacity: 0.88; }
.fx-alert.is-round_sent, .fx-alert.is-kitchen_accepted { border-inline-start-color: var(--fx-info); }
.fx-alert.is-round_sent .fx-alert-icon, .fx-alert.is-kitchen_accepted .fx-alert-icon { background: var(--fx-info-soft); color: var(--fx-info); }
.fx-alert.is-ready_tableless { border-inline-start-color: var(--fx-success); }
.fx-alert.is-ready_tableless .fx-alert-icon { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-alert.is-long_wait, .fx-alert.is-reservation_due { border-inline-start-color: var(--fx-warning); }
.fx-alert.is-long_wait .fx-alert-icon, .fx-alert.is-reservation_due .fx-alert-icon { background: var(--fx-warning-soft); color: var(--fx-warning); }
.fx-alert-prefs { display: flex; flex-direction: column; gap: 4px; }
.fx-switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 48px; padding: 6px 12px; border-radius: 12px; background: var(--fx-surface-alt, var(--fx-primary-soft));
    font-size: 14.5px; font-weight: 700;
}
.fx-switch-row input { width: 20px; height: 20px; accent-color: var(--fx-primary); }
.fx-switch-row input:disabled { opacity: 0.4; }

@media (max-width: 1023px) {
    /* one view at a time on a phone. setSide() already hides every panel that is not the open one,
       so the only rule a NEW view needs is this one — no pair of view and panel to enumerate. */
    body:not([data-view="tables"]) .fx-pane-tables { display: none; }
    /* five destinations on the bottom bar: the labels shrink instead of the bar scrolling */
    .fx-bottom-5 button { font-size: 10.5px; gap: 2px; }
    .fx-bottom-5 .fx-badge { min-width: 18px; height: 18px; font-size: 10px; inset-inline-start: calc(50% + 2px); }
}


/* ── «Add this restaurant to the home screen» (owner, 2026-09-21) ────────────────────────────────
   Offered once per app and per device, and dismissible (static/src/pwa/fx_install.js). */
.fx-install {
    position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: 16px;
    background: var(--fx-surface, #fff); color: var(--fx-ink, #10292b);
    border: 1px solid var(--fx-line, rgba(16, 41, 43, 0.12));
    box-shadow: 0 18px 40px -22px rgba(16, 41, 43, 0.6);
}
.fx-install-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-install-text strong { font-size: 15px; font-weight: 800; }
.fx-install-text span { font-size: 12.5px; color: var(--fx-muted, #50686a); }
.fx-install-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.fx-install button { min-height: 40px; padding-inline: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.fx-install-no { border: 1px solid var(--fx-line, rgba(16, 41, 43, 0.12)); background: transparent; color: inherit; }
.fx-install-yes { border: 0; background: var(--fx-primary, #006970); color: #fff; }
@media (max-width: 480px) { .fx-install-actions { width: 100%; justify-content: flex-end; } }

/* ── لا زوم على الجوّال (المالك، 2026-09-22): الشاشة تُمرَّر ولا تُكبَّر ولا تُصغَّر ──
   touch-action pan-x pan-y يمنع القرص والنقر المزدوج للتكبير على Android وiOS 13+، وسمة
   viewport تمنع التحجيم، وfx_install.js يمسك إيماءات iOS التي تتجاوز الاثنين. */
html, body { touch-action: pan-x pan-y; -ms-touch-action: pan-x pan-y; }

/* ══ بطاقة التنبيه في عمودٍ ضيّق: شبكةٌ لا صفٌّ مرن ═══════════════════════════
   (المالك 2026-09-23: «الكتابة فوق بعضها، وما ظبطت لهلق»). الصفُّ المرن كان يضغط
   النصّ إلى صفرٍ حين تجتمع ثلاثة أزرار، فتتراكب الكلمات ويظهر شريطُ تمريرٍ أفقيّ.
   الشبكة تضمن: الأيقونة | النصّ | (الأزرار سطراً كاملاً تحتهما) — في أيّ عرض. */
.fx-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}
.fx-alert-icon { grid-column: 1; grid-row: 1; }
.fx-alert-body { grid-column: 2; grid-row: 1; min-width: 0; }
.fx-alert-body strong { overflow-wrap: anywhere; }
.fx-alert-meta {
    /* «pre-line» كان يكسر «8 س 14 د» إلى أسطر؛ النصّ يلتفّ التفافاً عادياً */
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
}
.fx-alert-actions {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    justify-content: flex-start;
    min-width: 0;
}
.fx-alert-actions .fx-btn, .fx-alert-actions .fx-icon-btn { flex: none; }
.fx-alert-close { margin-inline-start: auto; }

/* شريط تبويبات العمود: يُمرَّر أفقياً بدل أن تُقصّ كلماته بثلاث نقاط */
.fx-side-tabs {
    display: flex; gap: 6px; min-width: 0;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.fx-side-tabs::-webkit-scrollbar { display: none; }
.fx-side-tabs button { flex: 0 0 auto; min-width: 0; padding-inline: 12px; white-space: nowrap; }
.fx-side-tabs button > span:not(.fx-badge) { overflow: visible; text-overflow: clip; }

/* ولا تمريرَ أفقيّاً داخل اللوحة نفسها */
.fx-alert-panel, .fx-alert-panel .fx-alert { min-width: 0; max-width: 100%; overflow-x: clip; }

/* ═══ «غير متاح الآن» — ورقةُ قائمة الإيقاف (fx_stoplist.js) ═══
   شاشتان تستعملانها: تطبيق النادل وشاشة المطبخ. الصفُّ الواحد: أيقونةٌ، فاسمٌ وسطرُ
   تفصيل، فزرٌّ في الطرف — وعلى الهاتف يبقى الزرّ في مكانه ولا ينزل النصُّ تحته. */
.fx-stop-search { margin: 10px 0 4px; }
.fx-stop-search .fx-input { width: 100%; }
.fx-stop-wrap { max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.fx-stop-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 16px 0 8px; font-size: .95rem; font-weight: 800;
}
.fx-stop-head:first-child { margin-top: 6px; }
.fx-stop-count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px;
    border-radius: 999px; background: var(--fx-danger-soft, rgba(186, 26, 26, .12));
    color: var(--fx-danger, #ba1a1a); font-size: .76rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.fx-stop-sub { margin: 12px 0 6px; font-size: .8rem; font-weight: 700; opacity: .72; }
.fx-stop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-stop-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 10px; padding: 9px 11px; border-radius: 14px;
    background: var(--fx-surface-2, rgba(0, 0, 0, .03));
    border: 1px solid var(--fx-line, rgba(0, 0, 0, .08));
}
.fx-stop-row.is-off { background: rgba(186, 26, 26, .07); border-color: rgba(186, 26, 26, .2); }
.fx-stop-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; opacity: .68; }
.fx-stop-ic .fx-ic { width: 17px; height: 17px; }
/* صورةُ الصنف: الطبّاخ يعرف طبقه بالنظر. مربّعٌ ثابتٌ لئلّا يهتزّ الصفّ قبل تحميلها،
   وobject-fit: cover فلا تتشوّه صورةٌ غير مربّعة. */
.fx-stop-ic.has-img { opacity: 1; border-radius: 10px; overflow: hidden;
    background: var(--fx-surface-2, rgba(0, 0, 0, .05)); }
.fx-stop-ic.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-stop-row.is-off .fx-stop-ic.has-img img { filter: grayscale(1); opacity: .55; }
.fx-stop-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-stop-name {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
}
.fx-stop-meta { font-size: .78rem; opacity: .68; line-height: 1.5; overflow-wrap: anywhere; }
.fx-stop-tag {
    padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800;
    background: rgba(0, 0, 0, .08); opacity: .8;
}
.fx-stop-row .fx-btn { flex: none; white-space: nowrap; }
.fx-stop-empty { margin: 8px 0 4px; font-size: .88rem; opacity: .7; line-height: 1.6; }
@media (max-width: 480px) {
    .fx-stop-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
    .fx-stop-row .fx-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
