/* 3lroof app layer (P03 M0-14, P08 DS-01), hand-written on top of tokens.css and rf.css: the device
   shells, the system components of client/ui/components/ and app/Views/partials/rf/, and the error
   pages. Breakpoint values of the layout tokens live in rf-layout.css (load it after this file).
   Rules: token colours only (veils use opacity on a token), CSS logical properties only (no
   left/right), no external URLs, every transition and animation behind prefers-reduced-motion. */

/* ------------------------------------------------------------------ base */
.rf-app { margin: 0; min-block-size: 100vh; min-block-size: 100dvh; background: var(--surface-page); color: var(--ink); font-size: 15px; line-height: 22px; }
.rf-app *, .rf-app *::before, .rf-app *::after { box-sizing: border-box; }
html.rf-sheet-open { overflow: hidden; }
.rf-visually-hidden, .rf-sr-only { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rf-icon { inline-size: 20px; block-size: 20px; flex: none; fill: currentColor; }
[dir="rtl"] .rf-icon--dir { transform: scaleX(-1); }
.rf-skip { position: absolute; inset-inline-start: var(--space-4); inset-block-start: -200px; z-index: 110; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--olive); color: var(--on-olive); font-weight: 700; text-decoration: none; }
.rf-skip:focus { inset-block-start: var(--space-4); }
.rf-dot-label { display: inline-flex; align-items: center; gap: var(--space-2); }
.rf-dot--sage { background: var(--sage); }
.rf-dot--free { background: var(--surface-card); box-shadow: inset 0 0 0 2px var(--line-strong); }
.rf-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rf-btn[aria-busy="true"] { cursor: progress; }
a.rf-btn { text-decoration: none; }

/* ------------------------------------------------------------------ shell: sidebar + main */
.rf-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-block-size: 100vh; min-block-size: 100dvh; }
.rf-shell--bare { grid-template-columns: minmax(0, 1fr); }
.rf-shell > .rf-sidebar { position: sticky; inset-block-start: 0; block-size: 100vh; block-size: 100dvh; inline-size: var(--sidebar-width); overflow-y: auto; overflow-x: hidden; }
.rf-main { display: flex; flex-direction: column; min-inline-size: 0; }
.rf-content { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) var(--space-7); padding-block-end: calc(var(--fab-size) + var(--space-7)); min-inline-size: 0; flex: 1; }
.rf-shell--bare .rf-content { padding-block-end: var(--space-7); }

/* Sidebar parts */
.rf-sidebar-head { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-block-end: var(--space-5); }
.rf-sidebar .rf-sidebar-head .rf-logo { margin: 0; }
.rf-nav { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
/* Section tabs (design s65 "Users and roles | Devices | …"): the active sidebar section's pages as
   pills above the content; one row that scrolls sideways when it does not fit. */
.rf-tabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-block-end: 2px; }
.rf-tabs::-webkit-scrollbar { display: none; }
.rf-tabs .rf-chip { flex: none; white-space: nowrap; }
a.rf-chip, a.rf-chip:hover { text-decoration: none; }
.rf-tabs .rf-chip:not(.is-active):hover { color: var(--ink); }
.rf-tabs .rf-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); }
.rf-nav-item { min-inline-size: 0; }
.rf-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-nav-initial { display: none; inline-size: 20px; text-align: center; font-weight: 700; }
.rf-nav-item:not(.is-active):hover { background: var(--surface-tint); }
.rf-usercard { min-inline-size: 0; }
.rf-usercard-text { min-inline-size: 0; overflow: hidden; }
.rf-usercard-text b, .rf-usercard-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-sidebar-toggle, .rf-rail-label { display: none; inline-size: 40px; block-size: 40px; border-radius: var(--radius-pill); border: 0; background: var(--surface-page); color: var(--ink-muted); place-items: center; cursor: pointer; flex: none; }
.rf-rail-toggle { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.rf-rail-toggle:focus-visible + .rf-rail-label { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rf-rail-label .rf-icon--expand { display: none; }

/* Bottom navigation (phone shell, < 768 px; shown by rf-layout.css) */
.rf-bottomnav { display: none; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; block-size: var(--bottomnav-height, 64px); background: var(--surface-card); border-block-start: 2px solid var(--line); padding-inline: var(--space-2); padding-block-end: env(safe-area-inset-bottom); gap: var(--space-1); overflow-x: auto; overscroll-behavior-x: contain; }
.rf-bottomnav-item { flex: 1 0 64px; min-inline-size: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--radius-lg); color: var(--ink-muted); text-decoration: none; font: 400 12px/16px var(--font-sans); padding-inline: var(--space-1); }
.rf-bottomnav-item span { max-inline-size: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-align: center; font-size: 11px; line-height: 13px; }
.rf-bottomnav-item svg { inline-size: 22px; block-size: 22px; fill: currentColor; }
.rf-bottomnav-item.is-active { color: var(--olive); font-weight: 700; background: var(--surface-tint); }

/* ------------------------------------------------------------------ top bar */
.rf-topbar { position: sticky; inset-block-start: 0; z-index: 20; min-inline-size: 0; }
.rf-topbar-titles { display: flex; flex-direction: column; min-inline-size: 0; flex: 1 1 auto; }
.rf-topbar-titles h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-topbar-titles .rf-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-topbar-logo { block-size: 48px; inline-size: auto; flex: none; }
.rf-topbar-tools { display: flex; align-items: center; gap: var(--space-4); margin-inline-start: auto; min-inline-size: 0; flex: 0 1 auto; }
.rf-topbar-menu { display: none; inline-size: 44px; block-size: 44px; border-radius: var(--radius-pill); border: 0; background: var(--surface-page); color: var(--ink); place-items: center; cursor: pointer; flex: none; }
.rf-topbar-slot { flex: none; }
.rf-topbar--compact { --topbar-height: 64px; padding-inline: var(--space-5); }
.rf-topbar--compact h1 { font-size: 20px; line-height: 28px; }

/* Search: rf.css draws the pill; the input inside is borderless. */
.rf-search { margin-inline-start: 0; flex: 0 1 420px; min-inline-size: 180px; }
.rf-search-input { flex: 1; min-inline-size: 0; block-size: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.rf-search-input::placeholder { color: var(--ink-muted); }
.rf-search-input::-webkit-search-cancel-button { display: none; }
.rf-search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rf .rf-search .rf-search-input:focus-visible { outline: none; box-shadow: none; } /* the pill draws the ring (focus-within) */
.rf-search svg { margin-inline-start: 0; }
.rf-search .rf-icon { inline-size: 18px; block-size: 18px; } /* the deck's 18 px glass, 22 px from the field's end */

/* Language switch `ع | EN` */
.rf-lang { display: inline-flex; align-items: center; gap: var(--space-1); }
.rf-lang-item { display: inline-grid; place-items: center; min-inline-size: 32px; block-size: 32px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-muted); font: inherit; text-decoration: none; cursor: pointer; }
/* Noor draws ع low in its line box; lift it so it lines up with EN. */
.rf-lang-item[lang="ar"] { font-family: var(--font-arabic); font-size: 17px; line-height: 1; translate: 0 -3px; }
.rf-lang-item.is-active { color: var(--olive); font-weight: 700; cursor: default; }
a.rf-lang-item:hover, button.rf-lang-item:hover { color: var(--olive); text-decoration: underline; }
.rf-lang-sep { color: var(--line-strong); }

/* Bell: the red dot only with unread items (TopBar guide); count bubble. */
.rf-bell { border: 0; padding: 0; cursor: pointer; color: var(--ink-muted); }
.rf-bell::after { display: none; }
.rf-bell.has-unread::after { display: block; }
.rf-bell:has(.rf-bell-count:not([hidden]))::after { display: none; }
.rf-bell-count { position: absolute; inset-block-start: -6px; inset-inline-end: -8px; z-index: 1; min-inline-size: 20px; block-size: 20px; padding-inline: 5px; border-radius: var(--radius-pill); background: var(--danger); color: var(--on-danger); font: 700 12px/20px var(--font-sans); text-align: center; }
.rf-bell-count[hidden] { display: none; }

/* ------------------------------------------------------------------ connection pill (M0-44) */
.rf-sync { flex: none; }
.rf-sync--syncing .rf-dot { background: var(--olive); }
.rf-sync--unreachable { background: var(--warning-soft); color: var(--warning-ink); }
.rf-sync-text { overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  .rf-sync--syncing .rf-dot { animation: rf-pulse 1.2s ease-in-out infinite; }
}
@keyframes rf-pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ banners (M0-44) */
.rf-banners { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-7) 0; }
.rf-banners:empty { display: none; }
.rf-banner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); min-block-size: 48px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-tint); color: var(--ink); font: 400 14px/20px var(--font-sans); }
.rf-banner-icon { inline-size: 20px; block-size: 20px; fill: currentColor; }
.rf-banner-text { flex: 1 1 240px; min-inline-size: 0; overflow-wrap: anywhere; }
.rf-banner--info .rf-banner-icon { fill: var(--olive); }
.rf-banner--warn { background: var(--warning-soft); color: var(--ink); }
.rf-banner--warn .rf-banner-icon { fill: var(--warning-ink); }
.rf-banner--danger { background: var(--danger-soft); color: var(--ink); font-weight: 700; }
.rf-banner--danger .rf-banner-icon { fill: var(--danger); }
.rf-banner--training { background: var(--warning); color: var(--on-signal); font-weight: 700; }
.rf-banner-eyebrow { padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--olive-deep); color: var(--on-inverse); font: 700 12px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.rf-banner-close { inline-size: 36px; block-size: 36px; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.rf-banner-close:hover { background: var(--surface-card); }
/* The training stripe on every shell (data-training on <html>) */
html[data-training="1"] .rf-app::before { content: ""; position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 105; block-size: 4px; background: var(--warning); pointer-events: none; }

/* ------------------------------------------------------------------ panels, items, tables */
.rf-panel { min-inline-size: 0; }
.rf-panel-body { display: flex; flex-direction: column; gap: var(--space-3); min-inline-size: 0; }
.rf-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-inline-start: auto; }
.rf-panel-meta:not([hidden]) + .rf-panel-actions { margin-inline-start: 0; }
.rf-panel-head { flex-wrap: wrap; }
.rf-item-text { display: flex; flex-direction: column; min-inline-size: 0; flex: 1; }
.rf-item--action { inline-size: 100%; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.rf-item--action:hover { background: var(--surface-tint); }
/* Phones: a row's text keeps a readable width; its badges and buttons wrap under it. */
@media (max-width: 600px) {
  .rf-item { flex-wrap: wrap; row-gap: var(--space-2); }
  .rf-item-text { flex: 1 1 160px; }
  .rf-item > :last-child:not(.rf-item-text) { max-inline-size: 100%; }
}
.rf-table-wrap { max-inline-size: 100%; overscroll-behavior-x: contain; border-radius: var(--radius-sm); }
.rf-table-wrap:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rf-table tr.is-clickable { cursor: pointer; }
.rf-table tr.is-clickable:hover td { background: var(--surface-page); }
.rf-table tr.is-selected td { border-block-end-color: transparent; }
.rf-table-state td { padding: var(--space-5) 0; border-block-end: 0; }

/* Skeleton (loading) */
.rf-skeleton { display: block; block-size: 16px; border-radius: var(--radius-sm); background: var(--surface-tint); }
.rf-kpi-value.rf-skeleton { block-size: 44px; inline-size: 60%; }
.rf-skeleton-rows { display: flex; flex-direction: column; gap: var(--space-3); }
.rf-skeleton-rows .rf-skeleton:nth-child(2) { inline-size: 80%; }
.rf-skeleton-rows .rf-skeleton:nth-child(3) { inline-size: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .rf-skeleton { animation: rf-pulse 1.4s ease-in-out infinite; }
}

/* KPI tiles: states */
.rf-kpi-value--error { font-size: 17px; line-height: 44px; color: var(--danger); }
.rf-kpi.is-offline .rf-kpi-note { color: var(--warning-ink); font-weight: 700; }
.rf-kpi--hero.is-offline .rf-kpi-note { color: var(--on-olive); }
.rf-kpi { min-inline-size: 0; padding-inline-end: calc(44px + var(--space-5) * 2); }

/* Toggle and Field */
.rf-setting-text { display: flex; flex-direction: column; min-inline-size: 0; }
.rf-setting-desc { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rf-toggle:disabled { opacity: .45; cursor: not-allowed; }
.rf-toggle::before { content: ""; position: absolute; inset: -8px; }
.rf-field-hint { margin: 0; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.rf-field-error { margin: 0; font: 700 13px/18px var(--font-sans); color: var(--danger); }
.rf-field-error[hidden] { display: none; }
.rf-field-optional { color: var(--ink-muted); }
.rf-field.has-error .rf-input { box-shadow: inset 0 0 0 2px var(--danger); }
.rf-input:disabled { opacity: .6; cursor: not-allowed; }
.rf-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* QuickAction placement: the bottom end corner, space-7 from the edges */
.rf-qa { position: fixed; inset-inline-end: var(--space-7); inset-block-end: var(--space-7); z-index: 40; display: flex; flex-direction: column; align-items: end; gap: var(--space-3); }
.rf-qa[hidden] { display: none; }
.rf-qa-menu[hidden] { display: none; }
.rf-qa-item { border-radius: var(--radius-md); min-block-size: 44px; }
.rf-qa-item:hover { background: var(--surface-tint); }

/* OrderTicket additions */
.rf-ticket-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.rf-ticket-pending { margin: 0 0 var(--space-2); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning-ink); font: 700 13px/18px var(--font-sans); }
.rf-ticket.is-pending { opacity: .85; }

/* TableTile additions */
.rf-table-tile { cursor: pointer; font: inherit; padding: 0; }
.rf-table-tile.is-reserved { border-color: var(--info); }
.rf-table-tile.is-reserved::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: var(--radius-pill); background: var(--info); }

/* MenuCard: unavailable veil (70% surface-card) with the word */
.rf-menu-card { position: relative; }
.rf-menu-card-photo { inline-size: 76px; block-size: 76px; border-radius: var(--radius-lg); background: var(--surface-tint); flex: none; }
.rf-menu-card-veil { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
.rf-menu-card-veil::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface-card); opacity: .7; }
.rf-menu-card-veil .rf-badge { position: relative; }

/* ------------------------------------------------------------------ empty / error / offline states */
.rf-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-7) var(--space-5); text-align: center; }
.rf-state--compact { padding: var(--space-5) var(--space-3); }
.rf-state-icon { inline-size: 56px; block-size: 56px; border-radius: var(--radius-pill); background: var(--surface-tint); display: grid; place-items: center; margin-block-end: var(--space-2); }
.rf-state-icon svg { inline-size: 26px; block-size: 26px; fill: var(--olive); }
.rf-state--error .rf-state-icon { background: var(--danger-soft); }
.rf-state--error .rf-state-icon svg { fill: var(--danger); }
.rf-state--offline .rf-state-icon { background: var(--warning-soft); }
.rf-state--offline .rf-state-icon svg { fill: var(--warning-ink); }
.rf-state-title { margin: 0; font: 700 17px/24px var(--font-sans); }
.rf-state-body { margin: 0; max-inline-size: 52ch; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.rf-state-ref { margin: 0; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; }
.rf-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-block-start: var(--space-2); }

/* ------------------------------------------------------------------ sheet and confirm */
.rf-sheet-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.rf-sheet-backdrop { position: absolute; inset: 0; background: var(--surface-inverse); opacity: .5; }
.rf-sheet { position: relative; inline-size: 100%; max-block-size: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface-card); color: var(--ink); border-start-start-radius: var(--radius-2xl); border-start-end-radius: var(--radius-2xl); padding: var(--space-5); padding-block-end: calc(var(--space-5) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--space-4); outline: none; }
.rf-sheet-head { display: flex; align-items: center; gap: var(--space-3); }
.rf-sheet-title { margin: 0; flex: 1; min-inline-size: 0; font: 700 20px/28px var(--font-sans); overflow-wrap: anywhere; }
.rf-sheet-close { inline-size: 44px; block-size: 44px; border: 0; border-radius: var(--radius-pill); background: var(--surface-page); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.rf-sheet-body { display: flex; flex-direction: column; gap: var(--space-4); min-inline-size: 0; }
@media (min-width: 768px) {
  .rf-sheet-layer { place-items: center; padding: var(--space-5); }
  .rf-sheet { inline-size: min(560px, 100%); border-radius: var(--radius-2xl); padding: var(--space-6); }
  .rf-sheet--lg { inline-size: min(760px, 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .rf-sheet { animation: rf-sheet-in 150ms ease-out; }
}
@keyframes rf-sheet-in { from { transform: translateY(16px); opacity: 0; } }
.rf-confirm-body { margin: 0; color: var(--ink-muted); }
.rf-confirm-error { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--danger-soft); color: var(--danger); font: 700 13px/18px var(--font-sans); }
.rf-confirm-error[hidden] { display: none; }
.rf-confirm-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: var(--space-3); }

/* ------------------------------------------------------------------ notification tray (s31) */
.rf-notify { position: relative; }
.rf-tray { position: absolute; inset-block-start: calc(100% + var(--space-2)); inset-inline-end: 0; z-index: 50; inline-size: min(420px, calc(100vw - 2 * var(--space-4))); max-block-size: min(560px, calc(100vh - 120px)); overflow-y: auto; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-menu); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.rf-tray[hidden] { display: none; }
.rf-tray .rf-panel-head h2 { font-size: 18px; line-height: 26px; }
.rf-tray-status { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning-ink); font: 600 13px/18px var(--font-sans); }
.rf-tray-status[hidden] { display: none; }
.rf-tray-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rf-tray-empty { margin: 0; color: var(--ink-muted); font: 400 14px/20px var(--font-sans); }
.rf-tray-empty[hidden] { display: none; }
.rf-tray-open { inline-size: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.rf-tray-item.is-unread .rf-tray-open { background: var(--surface-page); }
.rf-tray-open:hover { background: var(--surface-tint); }
.rf-tray-open .rf-dot { margin-block-start: 6px; }
.rf-tray-text { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.rf-tray-item-title { font: 700 15px/22px var(--font-sans); overflow-wrap: anywhere; }
.rf-tray-item-sub { font: 400 13px/19px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; }
.rf-tray-time { font: 400 12px/18px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.rf-tray-banner { position: fixed; inset-block-end: var(--space-5); inset-inline-end: var(--space-5); z-index: 70; max-inline-size: min(420px, calc(100vw - 2 * var(--space-4))); padding: var(--space-3) var(--space-5); border-radius: var(--radius-lg); background: var(--olive); color: var(--on-olive); box-shadow: var(--shadow-float); font: 600 14px/20px var(--font-sans); }
.rf-tray-banner[hidden] { display: none; }

/* ------------------------------------------------------------------ PIN pad and user tiles (s28) */
.rf-pinpad { display: grid; justify-items: center; gap: var(--space-4); outline: none; }
.rf-pinpad[hidden] { display: none; }
/* The pad and the screen's <main> take focus only to catch typing and for screen readers; the
   keys and controls inside keep their own focus ring. */
.rf .rf-pinpad:focus-visible, .rf .rf-content:focus-visible, .rf-content:focus { outline: none; }
.rf-pinpad-dots { display: flex; gap: var(--space-3); padding-block: var(--space-2); }
.rf-pinpad-dot { inline-size: 16px; block-size: 16px; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: transparent; }
.rf-pinpad-dot.is-filled { background: var(--olive); border-color: var(--olive); }
.rf-pinpad-error { min-block-size: 20px; color: var(--danger); font: 700 14px/20px var(--font-sans); text-align: center; }
.rf-pinpad-wait { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--warning-soft); color: var(--warning-ink); font: 700 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.rf-pinpad-wait[hidden] { display: none; }
.rf-pinpad-keys { display: grid; grid-template-columns: repeat(3, 72px); gap: var(--space-3); }
.rf-pinpad-key { inline-size: 72px; block-size: 64px; display: grid; place-items: center; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-card); color: var(--ink); font: 600 26px/1 var(--font-sans); cursor: pointer; touch-action: manipulation; }
.rf-pinpad-key:active { background: var(--surface-tint); }
.rf-pinpad-key:disabled { opacity: .45; cursor: not-allowed; }
.rf-pinpad-key--back { color: var(--ink-muted); }
.rf-pinpad-key--back svg { inline-size: 24px; block-size: 24px; }
.rf-pinpad-spacer { inline-size: 72px; block-size: 64px; }
.rf-pinpad-note { margin: 0; max-inline-size: 320px; text-align: center; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rf-pinpad-note[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rf-pinpad.is-shake { animation: rf-shake .3s; }
}
@keyframes rf-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rf-user-tiles-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: var(--space-3); }
.rf-user-tile { inline-size: 100%; min-block-size: 72px; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-xl); border: 2px solid transparent; background: var(--surface-page); color: var(--ink); font: inherit; text-align: start; cursor: pointer; touch-action: manipulation; }
.rf-user-tile:hover { border-color: var(--line-strong); }
.rf-user-tile[aria-pressed="true"] { border-color: var(--olive); background: var(--surface-tint); }
.rf-user-tile:disabled { cursor: not-allowed; opacity: .7; }
.rf-user-tile-text { min-inline-size: 0; flex: 1; }
.rf-user-tile-text b { display: block; font: 700 16px/22px var(--font-sans); overflow-wrap: anywhere; }
.rf-user-tile-text span { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }

/* ------------------------------------------------------------------ full-screen lock (M0-44) */
.rf-lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-5); background: var(--olive-deep); color: var(--on-inverse); outline: none; }
.rf-lock-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-inline-size: 520px; text-align: center; }
.rf-lock-card h1 { margin: 0; font: 700 26px/36px var(--font-sans); }
.rf-lock-card p { margin: 0; font: 400 16px/24px var(--font-sans); }
.rf-lock-icon { inline-size: 72px; block-size: 72px; border-radius: var(--radius-pill); background: var(--danger); color: var(--on-danger); display: grid; place-items: center; }
.rf-lock-icon svg { inline-size: 34px; block-size: 34px; fill: currentColor; }
.rf-lock--neutral .rf-lock-icon { background: var(--olive-soft); color: var(--on-inverse); }

/* ------------------------------------------------------------------ device shells */
/* office (cloud, PHP) and cashier (PWA): the sidebar shell above, as is.
   console (edge, PHP): the same chrome. */

/* floor, cashier and the PWA console (PWA): the deck's app shell, body class rf-app--deck; its
   rules (the 1920 values, the 1280–1919 px zoom, the user card's Lock) live in client/app/app.css. */

/* station (PWA, 1366×768 and 1920×1080): no sidebar, olive-deep header with the station name and
   clock, ticket grid. Light by default, as the deck draws it (device.theme may set dark).
   Station and phone shells use `rf-shell rf-shell--bare` (no sidebar column at any width). */
/* Canva deck match (design DAHVzyhxuZ4, s39–s41; 11 Nov 2026), measured at 1920 × 1080: the head
   is 88 px of olive-deep; the white logo 90 × 68 at 40 px from the start edge, 20 px before the
   titles (name 26/31 bold, the live summary 13/15 3 px under it); the clock 30/36 bold, 20 px
   before the two 30 px pills (olive, 13 px bold white, 16 px apart): the connection pill (150
   wide, the 12 px dot 12 px in) and the person's pill (70 wide: "Chef"), 24 px from the end edge.
   The person's pill opens the station menu (screens, `ع | EN`, Lock), which the deck doesn't
   draw. The content starts 24 px under the head, 40 px from the start edge and 30 px from the
   end. Between 1280 and 1919 px wide the root is zoomed (32 px steps, as the office) so a
   1366 × 768 screen shows the 1920 frame at 71 %. */
.rf-app--station { --topbar-height: 88px; }
.rf-app--station .rf-shell { grid-template-columns: minmax(0, 1fr); }
.rf-station-head { --rf-head-pill: var(--olive); position: sticky; inset-block-start: 0; z-index: 20; block-size: var(--topbar-height); display: flex; align-items: center; gap: 20px; padding-inline: 40px 24px; background: var(--olive-deep); color: var(--on-inverse); }
:root[data-theme="dark"] .rf-station-head { --rf-head-pill: var(--olive-soft); }
.rf-station-head .rf-logo-white { inline-size: 90px; block-size: 68px; object-fit: contain; flex: none; }
.rf-station-titles { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; }
.rf-station-head h1 { margin: 0; min-inline-size: 0; font: 700 26px/31px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* #c9d1c1: the deck's summary line on olive-deep (a light sage; no token). */
.rf-station-sub { margin: 0; font: 400 13px/15px var(--font-sans); color: #c9d1c1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-station-sub:empty { display: none; }
.rf-station-clock { flex: none; font: 700 30px/36px var(--font-sans); font-variant-numeric: tabular-nums; }
.rf-station-actions,
.rf-station-head .rf-station-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.rf-station-head .rf-sync { block-size: 30px; min-inline-size: 150px; padding-inline: 12px 14px; gap: 6px; justify-content: flex-start; background: var(--rf-head-pill); color: var(--on-inverse); font: 700 13px/15px var(--font-sans); }
.rf-station-head .rf-sync .rf-dot { inline-size: 12px; block-size: 12px; }
.rf-station-head .rf-sync--unreachable { background: var(--warning); color: var(--on-signal); }
.rf-station-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; block-size: 30px; min-block-size: 30px; min-inline-size: 70px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--rf-head-pill); color: var(--on-inverse); font: 700 13px/15px var(--font-sans); white-space: nowrap; cursor: pointer; list-style: none; }
.rf-station-pill::-webkit-details-marker { display: none; }
.rf-station-pill::before { content: ""; position: absolute; inset: -7px -4px; } /* 44 px touch target */
.rf-station-pill:focus-visible { outline: 2px solid var(--on-inverse); outline-offset: 2px; }
/* The station menu under the person's pill: who, the station's other screens (production, waste,
   requests…), then `ع | EN` and Lock. */
.rf-station-menu { position: relative; flex: none; }
.rf-station-menu[open] > .rf-station-pill { background: var(--on-inverse); color: var(--olive-deep); }
.rf-station-menu-list { position: absolute; inset-block-start: calc(100% + 12px); inset-inline-end: 0; z-index: 30; display: flex; flex-direction: column; gap: 8px; min-inline-size: 280px; max-block-size: calc(100vh - 120px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-card); color: var(--ink); box-shadow: var(--shadow-menu); }
.rf-station-menu-who { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 20px 12px; border-block-end: 1px solid var(--line); }
.rf-station-menu-who b { font: 700 16px/19px var(--font-sans); }
.rf-station-menu-who span { font: 400 13px/15px var(--font-sans); color: var(--ink-muted); }
.rf-station-menu-links { display: flex; flex-direction: column; gap: 8px; }
.rf-station-menu-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 4px 20px; border-block-start: 1px solid var(--line); }
.rf-station-menu-tools .rf-lang-item { color: var(--ink-muted); font-size: 15px; }
.rf-station-menu-tools .rf-lang-item.is-active { color: var(--ink); font-weight: 700; text-decoration: none; }
.rf-station-menu-tools .rf-lang-sep { color: var(--line-strong); }
.rf-app--station .rf-station-head .rf-station-menu-tools .rf-lock-btn { display: inline-flex; align-items: center; gap: 8px; block-size: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--surface-tint); color: var(--olive); font: 700 14px/16px var(--font-sans); }
.rf-app--station .rf-station-head .rf-station-menu-tools .rf-lock-btn svg { inline-size: 16px; block-size: 16px; fill: currentColor; }
.rf-station-menu-item { display: flex; align-items: center; gap: 13px; min-block-size: 44px; padding-inline: 20px; border-radius: 22px; color: var(--ink); font: 400 17px/20px var(--font-sans); text-decoration: none; white-space: nowrap; }
.rf-station-menu-item svg { inline-size: 20px; block-size: 20px; fill: var(--olive); opacity: .8; flex: none; }
.rf-station-menu-item:hover { background: var(--surface-tint); }
.rf-station-menu-item.is-active { background: var(--olive); color: var(--on-olive); font-weight: 700; }
.rf-station-menu-item.is-active svg { fill: var(--on-olive); opacity: 1; }
.rf-ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); align-items: start; }
.rf-app--station .rf-content { padding-block: 24px 80px; padding-inline: 40px 30px; }
.rf-app--station .rf-banners { padding-inline: 40px 30px; }
.rf-station-unlock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; border: 0; background: var(--olive-deep); color: var(--on-inverse); font: 700 26px/36px var(--font-sans); cursor: pointer; }
@media (min-width: 1280px) and (max-width: 1919.98px) {
  @media (min-width: 1280px) and (max-width: 1311.98px) { html:has(> body.rf-app--station) { zoom: 0.6667; --rf-zoom: 0.6667; } }
  @media (min-width: 1312px) and (max-width: 1343.98px) { html:has(> body.rf-app--station) { zoom: 0.6833; --rf-zoom: 0.6833; } }
  @media (min-width: 1344px) and (max-width: 1375.98px) { html:has(> body.rf-app--station) { zoom: 0.7000; --rf-zoom: 0.7000; } }
  @media (min-width: 1376px) and (max-width: 1407.98px) { html:has(> body.rf-app--station) { zoom: 0.7167; --rf-zoom: 0.7167; } }
  @media (min-width: 1408px) and (max-width: 1439.98px) { html:has(> body.rf-app--station) { zoom: 0.7333; --rf-zoom: 0.7333; } }
  @media (min-width: 1440px) and (max-width: 1471.98px) { html:has(> body.rf-app--station) { zoom: 0.7500; --rf-zoom: 0.7500; } }
  @media (min-width: 1472px) and (max-width: 1503.98px) { html:has(> body.rf-app--station) { zoom: 0.7667; --rf-zoom: 0.7667; } }
  @media (min-width: 1504px) and (max-width: 1535.98px) { html:has(> body.rf-app--station) { zoom: 0.7833; --rf-zoom: 0.7833; } }
  @media (min-width: 1536px) and (max-width: 1567.98px) { html:has(> body.rf-app--station) { zoom: 0.8000; --rf-zoom: 0.8000; } }
  @media (min-width: 1568px) and (max-width: 1599.98px) { html:has(> body.rf-app--station) { zoom: 0.8167; --rf-zoom: 0.8167; } }
  @media (min-width: 1600px) and (max-width: 1631.98px) { html:has(> body.rf-app--station) { zoom: 0.8333; --rf-zoom: 0.8333; } }
  @media (min-width: 1632px) and (max-width: 1663.98px) { html:has(> body.rf-app--station) { zoom: 0.8500; --rf-zoom: 0.8500; } }
  @media (min-width: 1664px) and (max-width: 1695.98px) { html:has(> body.rf-app--station) { zoom: 0.8667; --rf-zoom: 0.8667; } }
  @media (min-width: 1696px) and (max-width: 1727.98px) { html:has(> body.rf-app--station) { zoom: 0.8833; --rf-zoom: 0.8833; } }
  @media (min-width: 1728px) and (max-width: 1759.98px) { html:has(> body.rf-app--station) { zoom: 0.9000; --rf-zoom: 0.9000; } }
  @media (min-width: 1760px) and (max-width: 1791.98px) { html:has(> body.rf-app--station) { zoom: 0.9167; --rf-zoom: 0.9167; } }
  @media (min-width: 1792px) and (max-width: 1823.98px) { html:has(> body.rf-app--station) { zoom: 0.9333; --rf-zoom: 0.9333; } }
  @media (min-width: 1824px) and (max-width: 1855.98px) { html:has(> body.rf-app--station) { zoom: 0.9500; --rf-zoom: 0.9500; } }
  @media (min-width: 1856px) and (max-width: 1887.98px) { html:has(> body.rf-app--station) { zoom: 0.9667; --rf-zoom: 0.9667; } }
  @media (min-width: 1888px) and (max-width: 1919.98px) { html:has(> body.rf-app--station) { zoom: 0.9833; --rf-zoom: 0.9833; } }
}
/* Below 1280 px (a tablet used as a station): the head drops the summary and tightens. */
@media (max-width: 1279.98px) {
  .rf-station-head { gap: 14px; padding-inline: 20px 16px; }
  .rf-station-head .rf-logo-white { inline-size: 64px; block-size: 48px; }
  .rf-station-sub { display: none; }
  .rf-station-actions { gap: 10px; }
  .rf-station-head .rf-sync { min-inline-size: 0; }
  .rf-app--station .rf-content { padding-inline: 20px; }
  .rf-app--station .rf-banners { padding-inline: 20px; }
}

/* phone (PWA, 390×844): top bar and bottom navigation, no sidebar */
.rf-app--phone .rf-shell { grid-template-columns: minmax(0, 1fr); }
.rf-app--phone .rf-shell > .rf-sidebar { display: none; }
.rf-app--phone .rf-bottomnav { display: flex; }
.rf-app--phone .rf-content { padding: var(--space-4); padding-block-end: calc(var(--bottomnav-height, 64px) + var(--space-5) + env(safe-area-inset-bottom)); }
.rf-app--phone .rf-qa { inset-block-end: calc(var(--bottomnav-height, 64px) + var(--space-4)); inset-inline-end: var(--space-4); }

/* ------------------------------------------------------------------ touch profiles: ≥ 44 px targets */
@media (pointer: coarse) {
  .rf-btn--sm, .rf-chip, .rf-lang-item, .rf-bell, .rf-banner-close, .rf-sidebar-toggle, .rf-rail-label { min-block-size: 44px; min-inline-size: 44px; }
  .rf-nav-item { min-block-size: 48px; }
}
html.rf-touch .rf-btn--sm, html.rf-touch .rf-chip, html.rf-touch .rf-lang-item, html.rf-touch .rf-bell,
html.rf-touch .rf-banner-close, html.rf-touch .rf-sidebar-toggle, html.rf-touch .rf-rail-label { min-block-size: 44px; min-inline-size: 44px; }
html.rf-touch .rf-nav-item { min-block-size: 48px; }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .rf-lang-item, .rf-bottomnav-item, .rf-item--action, .rf-user-tile, .rf-table-tile, .rf-qa-item, .rf-tray-open { transition: background-color 150ms, color 150ms, border-color 150ms; }
  .rf-shell, .rf-shell > .rf-sidebar { transition: grid-template-columns 150ms, inline-size 150ms; }
}

/* ------------------------------------------------------------------ error pages (P03) */
.rf-error { max-inline-size: 760px; }
.rf-error-code { margin: 0; color: var(--olive); font: 700 64px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.rf-error-message { margin: 0; font-size: 17px; line-height: 26px; }
.rf-error-ref { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.rf-error-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); font: 400 13px/18px ui-monospace, monospace; overflow-wrap: anywhere; }
.rf-error-detail dt { font-weight: 700; }
.rf-error-detail dd { margin: 0; }
.rf-error-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* P06: "Venue data complete up to ‹time›" (app/Views/partials/venue-data-as-of.php) */
.rf-venue-data { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rf-venue-data.is-offline { color: var(--warning-ink); font-weight: 700; }
/* P06-C1: command status partial (app/Views/partials/command-status.php) */
.rf-command-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.rf-command-status__detail { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }

/* Canva deck match (design DAHVzyhxuZ4, slides 29 and 65; 10 Nov 2026): the shell's measured
   spacing at the design size, 1920 × 1080. Sidebar items 44 px on a 52 px rhythm, the first 32 px
   under the logo; separators 16 px above and 12 px below; the user card 24 px off the bottom. Top
   bar: tools 20 px apart, 30 px after the search; content 38 px from the sidebar and 30 px from
   the edge. The bell shows the deck's red dot; its count stays for screen readers. */
.rf-nav { gap: 8px; }
.rf-nav-item { gap: 13px; }
.rf-nav-sep { flex: none; margin: 8px 12px 4px; }
.rf-sidebar { padding-block: 28px 24px; }
.rf-sidebar-head { margin-block-end: 27px; } /* + the sidebar's 4 px gap: the first item at y 170 */
.rf-usercard { gap: 14px; flex: none; }
.rf-usercard b { line-height: 19px; }
.rf-usercard-text span { display: block; line-height: 18px; margin-block-start: 4px; }
.rf-usercard .rf-avatar { color: var(--on-olive); font: 700 14px/16px var(--font-sans); }
.rf-topbar h1 { line-height: 31px; }
.rf-topbar .rf-sub { line-height: 18px; margin-block-start: 7px; }
.rf-topbar-tools { gap: 20px; }
.rf-search { margin-inline-end: 10px; padding-inline: 24px 22px; }
.rf-sync { padding-inline: 14px 16px; min-inline-size: 170px; }
.rf-topbar .rf-sync .rf-dot { inline-size: 12px; block-size: 12px; } /* the deck's 12 px dot, its word 8 px after it */
.rf-lang-item { min-inline-size: 0; padding-inline: 3px; }
/* The deck's switch: "EN | ع" in 15 px muted text, right-aligned in an 80 px box. */
.rf-topbar .rf-lang { min-inline-size: 80px; justify-content: flex-end; gap: 2px; }
.rf-topbar .rf-lang-item.is-active { color: var(--ink-muted); font-weight: 400; }
.rf-topbar .rf-lang-item[lang="ar"] { font-family: Arial, "Liberation Sans", Arimo, var(--font-arabic); font-size: 15px; translate: none; }
.rf-topbar .rf-lang-sep { color: var(--ink-muted); }
.rf-bell-count { inline-size: 1px; block-size: 1px; min-inline-size: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rf-bell:has(.rf-bell-count:not([hidden]))::after { display: block; }
@media (min-width: 1600px) {
  .rf-content { padding-inline: 38px 30px; }
  .rf-topbar { padding-inline: 38px 30px; }
}
/* The second row of a big section's tabs (Stock, Accounting, Settings): quiet text links, the
   current page underlined in olive. */
.rf-subtabs { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: none; margin-block-start: -8px; border-block-end: 2px solid var(--line); }
.rf-subtabs::-webkit-scrollbar { display: none; }
.rf-subtab { flex: none; padding: 8px 2px 10px; margin-block-end: -2px; border-block-end: 2px solid transparent; color: var(--ink-muted); font: 600 14px/20px var(--font-sans); text-decoration: none; white-space: nowrap; }
.rf-subtab:hover { color: var(--ink); }
.rf-subtab.is-active { color: var(--olive); border-block-end-color: var(--olive); font-weight: 700; }
.rf-subtab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); border-radius: var(--radius-xs); }
/* Inline subtabs (a section with `subtabs` => 'inline', Settings on s65–s68, whose deck pages have
   no second row): the same quiet links at the end of the tabs row, after a 20 px line, centred on
   the 36 px pills, so the panels keep their place 20 px under the row. */
.rf-tabs-sub { display: flex; flex: none; align-items: center; gap: 20px; block-size: 36px; margin-inline-start: 14px; padding-inline-start: 24px; position: relative; }
.rf-tabs-sub::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 8px; inline-size: 1px; background: var(--line-strong); }
.rf-tabs-sub .rf-subtab { padding: 7px 2px; margin: 0; }

/* The tab row as one line (layouts/office.php, 11 Nov 2026; s48–s68): the page's own chips
   (slot `tabrow`), the section's tabs, then the page's search and primary button (slot
   `tabrow_end`) at the end. Nothing scrolls under a toolbar: tabs past `max_tabs` fold into
   "More", the current tab's pages open from its pill, and a page with its own chips gets the
   section as one pill at the end. Menus drop 6 px under their pill. */
/* s48, s61, s65: the 36 px pills and the 40 px primary button share their top edge (y 126). */
.rf-tabs.rf-tabbar { overflow: visible; align-items: flex-start; flex-wrap: nowrap; padding-block-end: 0; } /* 40 tall with a 40 px button: panels at y 186 */
.rf-tabbar-start, .rf-tabbar-nav, .rf-tabbar-end { display: flex; align-items: flex-start; gap: 10px; min-inline-size: 0; }
/* The page's primary button at the row's end (s48 "+ New material", s61, s65): 210 × 40, radius 20, 14 px bold. */
.rf-tabbar-end .rf-btn--primary { block-size: 40px; min-inline-size: 210px; padding-inline: 24px; border-radius: 20px; font: 700 14px/16px var(--font-sans); }
.rf-tabbar-end .rf-btn:not(.rf-btn--primary) { block-size: 36px; padding-inline: 22px; border-radius: 18px; font: 700 14px/16px var(--font-sans); }
.rf-tabbar-start { flex: 0 1 auto; flex-wrap: wrap; }
.rf-tabbar-nav { flex: none; }
.rf-tabbar-end { margin-inline-start: auto; }
/* After a page's own pills the section's other pages are a quiet "More" (no fill): the deck draws
   only the page's pills there (s55, s57, s61). */
.rf-tabbar--own .rf-tabbar-nav .rf-tabmenu-btn:not([aria-expanded="true"]) { background: transparent; min-inline-size: 0; padding-inline: 14px; }
.rf-tabbar--own .rf-tabbar-nav .rf-tabmenu[open] > .rf-tabmenu-btn { background: var(--surface-card); }
.rf-tabbar-end { flex: none; }
.rf-tabbar .rf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-tabbar .rf-kit-tabs { flex: 0 1 auto; }
.rf-tabbar .rf-kit-buttons { flex-wrap: nowrap; margin-inline-start: 0; }
.rf-tabmenu { position: relative; flex: none; }
.rf-tabmenu > summary { list-style: none; cursor: pointer; user-select: none; }
.rf-tabmenu > summary::-webkit-details-marker { display: none; }
.rf-tabmenu-btn { display: inline-flex; align-items: center; gap: 8px; }
/* A down caret in both directions: physical borders on purpose (a logical one turns sideways in RTL). */
.rf-tabmenu-btn::after { content: ""; inline-size: 7px; block-size: 7px; margin-block-start: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.rf-tabmenu[open] > .rf-tabmenu-btn::after { margin-block-start: 3px; transform: rotate(225deg); }
.rf-tabmenu:not([open]) > .rf-tabmenu-menu { display: none; }
.rf-tabmenu-menu { position: absolute; z-index: 30; inset-block-start: calc(100% + 6px); inset-inline-start: 0; display: flex; flex-direction: column; gap: 2px; min-inline-size: 240px; max-inline-size: calc(100vw - 32px); max-block-size: 70vh; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-menu); }
.rf-tabmenu-link { display: flex; align-items: center; min-block-size: 36px; padding-inline: 12px; border-radius: 10px; color: var(--ink); font: 700 13px/16px var(--font-sans); text-decoration: none; white-space: nowrap; }
.rf-tabmenu-link.is-child { padding-inline-start: 24px; font-weight: 400; }
.rf-tabmenu-link:hover { background: var(--surface-page); }
.rf-tabmenu-link.is-active { background: var(--olive); color: var(--on-olive); }
.rf-tabmenu-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); }
.rf-tabmenu-group { padding: 10px 12px 4px; color: var(--ink-muted); font: 700 11px/14px var(--font-sans); }
@media (max-width: 767.98px) {
  .rf-tabs.rf-tabbar { flex-wrap: wrap; row-gap: 10px; }
  .rf-tabbar-start, .rf-tabbar-nav { flex: 1 1 100%; flex-wrap: wrap; max-inline-size: 100%; }
  .rf-tabbar-end { margin-inline-start: 0; flex: 1 1 100%; flex-wrap: wrap; max-inline-size: 100%; }
  .rf-tabbar-end > * { max-inline-size: 100%; }
  .rf-tabmenu-menu { inset-inline: 0 auto; }
}

/* The QuickAction button on every office page (layouts/office.php renders
   partials/ops-dashboard/quick-actions.php; s29 and the deck's other office slides): the 72 px
   olive "+" 54 px from the end edge and 36 px from the bottom; its 296-wide menu 16 px above it
   (radius 18, 2 px line, a 6/6 px 12 % shadow), title 16 bold, rows on a 56 px rhythm (a 36 px
   tint circle with an 18 px olive icon, the label 16 px). client/app/ops/dashboard.css draws the
   same for the console's dashboard. Phones: 16 px from the edge, above the bottom navigation. */
.rf-app--office .rf-quick { position: fixed; inset-block-end: 36px; inset-inline-end: 54px; z-index: 40; }
.rf-app--office .rf-quick > summary { list-style: none; }
.rf-app--office .rf-quick > summary::-webkit-details-marker { display: none; }
.rf-app--office .rf-quick-fab { inline-size: 72px; block-size: 72px; }
.rf-app--office .rf-quick-fab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring), var(--shadow-float); }
.rf-app--office .rf-quick[open] .rf-quick-fab svg { transform: rotate(45deg); }
.rf-app--office .rf-quick-menu { position: absolute; inset-block-end: calc(72px + 16px); inset-inline-end: 0; inline-size: 296px; max-inline-size: calc(100vw - 32px); padding: 18px 22px 28px; gap: 0; border: 2px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12); }
.rf-app--office .rf-quick-menu h3 { margin: 0 0 28px; font: 700 16px/19px var(--font-sans); }
.rf-app--office .rf-quick-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.rf-app--office .rf-quick-menu .rf-qa-item { gap: 14px; padding: 0; min-block-size: 36px; text-decoration: none; font: 400 16px/19px var(--font-sans); color: var(--ink); border-radius: 18px; }
.rf-app--office .rf-quick-menu .rf-qa-item i { inline-size: 36px; block-size: 36px; flex: none; }
.rf-app--office .rf-quick-menu .rf-qa-item:hover span, .rf-app--office .rf-quick-menu .rf-qa-item:focus-visible span { color: var(--olive); }
.rf-app--office .rf-quick-menu .rf-qa-item:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); }
@media (prefers-reduced-motion: no-preference) {
  .rf-app--office .rf-quick-fab svg { transition: transform 150ms; }
}
@media (max-width: 767.98px) {
  .rf-app--office .rf-quick { inset-inline-end: 16px; inset-block-end: calc(var(--bottomnav-height, 64px) + 16px + env(safe-area-inset-bottom)); }
  .rf-app--office .rf-quick-fab { inline-size: 56px; block-size: 56px; }
  .rf-app--office .rf-quick-menu { inset-block-end: calc(56px + 12px); }
}

/* ------------------------------------------------------------------ Canva deck match: shared components
   (design DAHVzyhxuZ4; slides 31, 48, 51, 53, 61, 65–68; 11 Nov 2026), measured at the 1920 × 1080
   frame. Office pages are laid out at these numbers and zoomed between 1280 and 1919 px. */

/* Section tabs (s65 "Users and roles | Devices | Locations…"): white pills 36 tall on the page,
   14 px bold muted, 22 px of side padding, 10 px apart, the current one olive. The row is 40
   tall like the page's primary action at its end, so the panels start 20 px under both (y 186). */
.rf-tabs { gap: 10px; min-block-size: 40px; padding-block-end: 4px; align-items: flex-start; }
.rf-tabs .rf-chip { block-size: 36px; padding-inline: 22px; border-radius: 18px; background: var(--surface-card); color: var(--ink-muted); font: 700 14px/16px var(--font-sans); }
.rf-tabs .rf-chip.is-active { background: var(--olive); color: var(--on-olive); }
.rf-tabs .rf-chip:focus-visible { box-shadow: 0 0 0 2px var(--focus-ring); }
/* Page-level filter chips (s31 "All | Orders | Stock…") are the same pills. */
.rf-chip { padding-inline: 22px; font: 700 14px/16px var(--font-sans); }
a.rf-chip:not(.is-active):hover, button.rf-chip:not(.is-active):hover { color: var(--ink); }

/* Panel (s65–s68): radius 20; the title 20/24 bold 22 px from the top and 28 px from the sides;
   the table or list 24–30 px under it; 28 px at the bottom. The head's tools (filter chips,
   search pill, meta) sit at its end, vertically centred on the title. */
.rf-panel { padding: 22px 28px 28px; gap: 24px; border-radius: 20px; }
.rf-panel-head { align-items: center; gap: 8px 12px; min-block-size: 24px; }
.rf-panel-head h2 { font: 700 20px/24px var(--font-sans); }
.rf-panel-head .rf-panel-meta { font: 400 13px/15px var(--font-sans); color: var(--ink-muted); }
.rf-panel-head > .rf-badge, .rf-panel-head > .rf-pill { margin-inline-start: auto; }
.rf-panel-meta ~ .rf-badge, .rf-panel-meta ~ .rf-pill { margin-inline-start: 0; }

/* Pills (s65 role "Manager", s66 "Roles allowed", s67 "Who can take"): 28 tall, radius 14, the
   tint with 11 px bold olive text, centred in at least 90 px. `--status` is the 30-tall status
   pill of a record's head (s65 "Active": surface-sync, 13 px bold olive, 120 wide). */
.rf-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; block-size: 28px; min-inline-size: 90px; padding-inline: 14px; border-radius: 14px; background: var(--surface-tint); color: var(--olive); font: 700 11px/13px var(--font-sans); white-space: nowrap; }
.rf-pill--wide { min-inline-size: 120px; }
.rf-pill--status { block-size: 30px; min-inline-size: 120px; border-radius: 15px; background: var(--surface-sync); font-size: 13px; line-height: 15px; }
.rf-pill--warn { background: var(--warning-soft); color: var(--warning-ink); }
.rf-pill--danger { background: var(--danger-soft); color: var(--danger); }
.rf-pill--neutral { background: var(--surface-tint); color: var(--ink-muted); }
.rf-pills { display: flex; flex-wrap: wrap; gap: 8px 10px; }
/* Status in a table (s65 "● Active"): a 10 px dot and the word, 13 px ink, 8 px apart. */
.rf-status { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/15px var(--font-sans); color: var(--ink); white-space: nowrap; }
.rf-status .rf-dot { inline-size: 10px; block-size: 10px; }
/* Badges (status chips in tables, s51 and s61): 28 tall, radius 14, 12 px bold. */
.rf-badge { border-radius: 14px; padding-inline: 14px; font: 700 12px/14px var(--font-sans); }

/* DataTable (s48, s53, s61, s65, s67): heads 12 px bold muted with 8 px under them and a 2 px
   line; rows with 14 px above and below their tallest cell (a 40 px avatar row is 68 tall) and a
   1 px line; 14 px ink text; the first and last column flush with the panel's padding. A selected
   row is the tint, radius 12, reaching 12 px past the columns (s65 "Ali Hassan"); the wrapper
   gives it that room. Separate borders, so the rounded cells draw. */
.rf-table-wrap { position: relative; margin-inline: -12px; padding-inline: 12px; max-inline-size: calc(100% + 24px); } /* relative: a visually hidden label in a scrolled table stays inside it (no page-wide scroll on phones) */
.rf-table { border-collapse: separate; border-spacing: 0; font: 400 14px/16px var(--font-sans); }
.rf-table th { padding: 0 12px 8px; font: 700 12px/14px var(--font-sans); color: var(--ink-muted); border-block-end: 2px solid var(--line); vertical-align: bottom; }
.rf-table td { padding: 14px 12px 13px; border-block-end: 1px solid var(--line); vertical-align: middle; } /* 14 + 40 + 13 + the 1 px line: 68 */
.rf-table td:last-child, .rf-table th:last-child { padding-inline-end: 0; }
.rf-table th.center, .rf-table td.center { text-align: center; }
.rf-table tr.is-selected td { background: var(--surface-tint); border-block-end-color: transparent; }
.rf-table tr.is-selected td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; box-shadow: -12px 0 0 var(--surface-tint); }
.rf-table tr.is-selected td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; box-shadow: 12px 0 0 var(--surface-tint); }
[dir="rtl"] .rf-table tr.is-selected td:first-child { box-shadow: 12px 0 0 var(--surface-tint); }
[dir="rtl"] .rf-table tr.is-selected td:last-child { box-shadow: -12px 0 0 var(--surface-tint); }
.rf-table tr.is-selected .rf-avatar--soft, .rf-table tr.is-selected .rf-pill, .rf-table tr.is-selected .rf-thumb { background: var(--surface-card); }
.rf-table-state td { padding: var(--space-5) 0; }

/* Avatar and icon tile in a row (s65 initials 40 px circle, tint, 12 px bold olive; s67 a 48 px
   tile, radius 12, with a 24 px olive icon). */
.rf-avatar--soft { background: var(--surface-tint); color: var(--olive); font: 700 12px/14px var(--font-sans); }
.rf-avatar--lg { inline-size: 56px; block-size: 56px; font: 700 18px/21px var(--font-sans); }
.rf-thumb { inline-size: 48px; block-size: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-tint); color: var(--olive); }
.rf-thumb svg { inline-size: 24px; block-size: 24px; fill: currentColor; }

/* Buttons. Form and panel actions (s65–s68 "Save changes | Reset PIN | Deactivate user"): 48 tall,
   radius 10, 13 px bold, at least 180 wide; primary olive, secondary tint with olive text, danger
   white with a 2 px danger line. */
.rf-app--office .rf-btn { font-size: 13px; line-height: 15px; }
.rf-btn--lg { block-size: 48px; min-inline-size: 180px; padding-inline: 28px; border-radius: 10px; font: 700 13px/15px var(--font-sans); }

/* Field (s66, s67 right panels): label 12 px muted, 6 px over a 44 px input (radius 10, the page
   colour, 14 px bold value 14 px in); fields 12 px apart. */
.rf-input { padding-inline: 14px; border-radius: 10px; }
.rf-field label, .rf-field legend { font: 400 12px/14px var(--font-sans); color: var(--ink-muted); }

/* Manager console (layouts/console.php): the user card keeps the PIN session's sign-out, a quiet
   32 px round button at the card's end (the deck's card has the avatar and the two lines only). */
/* Console pages stack their panels in .rf-page-stack, 24 px apart as the deck's stacked panels
   (s45–s47); links in the content are the deck's olive bold ("View", s29), underlined on hover. */
.rf-app--console .rf-page-stack { display: flex; flex-direction: column; gap: 24px; min-inline-size: 0; }
.rf-app--console a.rf-link, .rf-app--console .rf-content a:not([class]) { color: var(--olive); font-weight: 700; text-decoration: none; }
.rf-app--console a.rf-link:hover, .rf-app--console .rf-content a:not([class]):hover { text-decoration: underline; }
.rf-app--console a.rf-link:focus-visible, .rf-app--console .rf-content a:not([class]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
/* Office pages: the same stack, 26 px apart (s29: the panel rows at y 276 → 302, 672 → 698), and
   the same olive bold links ("View", s29). Low specificity (:where), so a page's own rules win. */
:where(.rf-app--office) .rf-page-stack { display: flex; flex-direction: column; gap: 26px; min-inline-size: 0; }
:where(.rf-app--office) a.rf-link, :where(.rf-app--office .rf-content) a:not([class]) { color: var(--olive); font-weight: 700; text-decoration: none; }
:where(.rf-app--office) a.rf-link:hover, :where(.rf-app--office .rf-content) a:not([class]):hover { text-decoration: underline; }
:where(.rf-app--office) a.rf-link:focus-visible, :where(.rf-app--office .rf-content) a:not([class]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
/* The office user card is 76 tall (s29/s65: 20,980 260 × 76; the 40 px avatar 18 px down; the name
   19 px line, the role 15 px line 5 px under it, at y 996 and 1020). */
.rf-app--office .rf-usercard { min-block-size: 76px; padding-block: 18px; }
.rf-app--office .rf-usercard-text span, .rf-app--console .rf-usercard-text span, .rf-app--deck .rf-usercard-text span { line-height: 15px; margin-block-start: 5px; }
.rf-app--office .rf-usercard-text, .rf-app--console .rf-usercard-text, .rf-app--deck .rf-usercard-text { position: relative; inset-block-start: -3px; } /* the two lines sit 2 px above the avatar's centre (name at y 996, role at 1020) */
/* The QuickAction button on every console page (layouts/console.php renders
   partials/ops-dashboard/quick-actions.php; s29, s30), as the office's above: the 72 px olive "+"
   54 px from the end edge and 36 px from the bottom (x 1794–1866, y 972–1044); its 296-wide menu
   16 px above it. Phones: 16 px from the edge, above the bottom navigation. */
.rf-app--console .rf-quick { position: fixed; inset-block-end: 36px; inset-inline-end: 54px; z-index: 40; }
.rf-app--console .rf-quick > summary { list-style: none; }
.rf-app--console .rf-quick > summary::-webkit-details-marker { display: none; }
.rf-app--console .rf-quick-fab { inline-size: 72px; block-size: 72px; }
.rf-app--console .rf-quick-fab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring), var(--shadow-float); }
.rf-app--console .rf-quick[open] .rf-quick-fab svg { transform: rotate(45deg); }
.rf-app--console .rf-quick-menu { position: absolute; inset-block-end: calc(72px + 16px); inset-inline-end: 0; inline-size: 296px; max-inline-size: calc(100vw - 32px); padding: 18px 22px 28px; gap: 0; border: 2px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12); }
.rf-app--console .rf-quick-menu h3 { margin: 0 0 27px; font: 700 16px/19px var(--font-sans); }
.rf-app--console .rf-quick-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.rf-app--console .rf-quick-menu .rf-qa-item { gap: 14px; padding: 0; min-block-size: 36px; text-decoration: none; font: 400 16px/19px var(--font-sans); color: var(--ink); border-radius: 18px; }
.rf-app--console .rf-quick-menu .rf-qa-item i { inline-size: 36px; block-size: 36px; flex: none; }
.rf-app--console .rf-quick-menu .rf-qa-item:hover span, .rf-app--console .rf-quick-menu .rf-qa-item:focus-visible span { color: var(--olive); }
.rf-app--console .rf-quick-menu .rf-qa-item:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); }
@media (prefers-reduced-motion: no-preference) {
  .rf-app--console .rf-quick-fab svg { transition: transform 150ms; }
}
@media (max-width: 767.98px) {
  .rf-app--console .rf-quick { inset-inline-end: 16px; inset-block-end: calc(var(--bottomnav-height, 64px) + 16px + env(safe-area-inset-bottom)); }
}
@media print { .rf-app--console .rf-quick { display: none; } }
/* The card is 76 tall (s29/s30: 20,980 260 × 76; the avatar 18 px down, the name at y 996). */
.rf-app--console .rf-usercard { min-block-size: 76px; padding-block: 17px; }
.rf-app--console .rf-usercard-text { flex: 1; }
.rf-app--console .rf-usercard-signout { flex: none; inline-size: 32px; block-size: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); cursor: pointer; }
.rf-app--console .rf-usercard-signout svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.rf-app--console .rf-usercard-signout:hover { background: var(--surface-tint); color: var(--olive); }
.rf-app--console .rf-usercard-signout:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rf-app--console .rf-usercard-signout:disabled { cursor: progress; opacity: .6; }
/* The 88 px rail (tablets): the button goes under the avatar. */
@media (max-width: 1279.98px) {
  .rf-app--console .rf-shell > .rf-sidebar .rf-usercard { flex-direction: column; gap: var(--space-2); }
}

/* Notification tray (the bell's panel; s31's notification rows, 11 Nov 2026): a 480-wide card
   (radius 20, 22 px top, 24 px sides), the title 20/24 bold and the unread count 13 px muted; rows
   8 px apart, radius 14, the page colour while unread: the 12 px tone dot 22 px in and 22 px down,
   the title 16/19 bold 16 px after it, the detail 14/16 muted 7 px under, the time 13/15 muted at
   the end, and the 10 px olive unread dot 30 px from the end, 38 px down. */
.rf-tray { inline-size: min(480px, calc(100vw - 2 * var(--space-4))); max-block-size: min(640px, calc(100vh - 120px)); padding: 22px 24px 24px; gap: 16px; border-radius: 20px; border-color: var(--line); }
.rf-tray .rf-panel-head { align-items: center; padding-inline: 4px; }
.rf-tray .rf-panel-head h2 { font: 700 20px/24px var(--font-sans); }
.rf-tray .rf-panel-head .rf-panel-meta { font: 400 13px/15px var(--font-sans); }
.rf-tray-list { gap: 8px; }
.rf-tray-open { position: relative; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 0 16px; min-block-size: 72px; padding-block: 14px; padding-inline: 22px 20px; border-radius: 14px; }
.rf-tray-open .rf-dot { inline-size: 12px; block-size: 12px; margin-block-start: 8px; }
.rf-tray-text { gap: 7px; }
.rf-tray-item-title { font: 700 16px/19px var(--font-sans); }
.rf-tray-item-sub { font: 400 14px/16px var(--font-sans); }
.rf-tray-time { font: 400 13px/15px var(--font-sans); padding-block-start: 2px; }
.rf-tray-item.is-unread .rf-tray-open::after { content: ""; position: absolute; inset-inline-end: 30px; inset-block-start: 38px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--olive); }
.rf-tray-status { border-radius: 10px; font: 700 13px/15px var(--font-sans); padding: 10px 14px; }

/* OrderTicket overrides, kept here because rf.css is generated from the bundle (tools/ds/convert-bundle.mjs). */
/* OrderTicket (station displays). Matched to the Canva deck's s39–s41 (design DAHVzyhxuZ4,
   1920 × 1080): radius 18; a 70 px head in the state colour (table and timer 22/26 bold 12 px from
   the top and 20 px from the sides, the order line 13/15 4 px under them); items 19/28 20 px in;
   two 52 px buttons (radius 12, 16 px bold) 20 px apart and 18 px off the bottom, the action first.
   New tickets are olive, on time success, late warning, delayed danger; heads and filled buttons
   carry white text as in the deck (dark ink on the lighter dark-theme signals). */
.rf-ticket { --rf-ticket-ink: var(--on-inverse); background: var(--surface-card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
:root[data-theme="dark"] .rf-ticket { --rf-ticket-ink: var(--on-signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rf-ticket { --rf-ticket-ink: var(--on-signal); } }
.rf-ticket-head { background: var(--success); color: var(--rf-ticket-ink); padding: 12px 20px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; min-block-size: 70px; }
.rf-ticket-head b { font: 700 22px/26px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-ticket-head .rf-timer { font: 700 22px/26px var(--font-sans); font-variant-numeric: tabular-nums; text-align: end; }
.rf-ticket-head span:not(.rf-timer) { grid-column: 1 / -1; font: 400 13px/15px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-ticket--late .rf-ticket-head { background: var(--warning); color: var(--rf-ticket-ink); }
.rf-ticket--delayed .rf-ticket-head { background: var(--danger); color: var(--rf-ticket-ink); }
.rf-ticket--new .rf-ticket-head { background: var(--olive); color: var(--on-olive); }
.rf-ticket-body { padding: 20px; font: 400 19px/28px var(--font-sans); flex: 1; }
.rf-ticket-body .rf-mod { color: var(--danger); font: 400 14px/16px var(--font-sans); margin-block: 2px 6px; }
.rf-ticket-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 20px 18px; }
.rf-ticket-foot .rf-btn { height: 52px; padding: 0 12px; border-radius: 12px; font: 700 16px/19px var(--font-sans); }
.rf-ticket-foot .rf-btn--secondary { background: var(--surface-tint); color: var(--olive); }
.rf-ticket-foot .rf-btn--primary { background: var(--success); color: var(--rf-ticket-ink); }
.rf-ticket--new .rf-ticket-foot .rf-btn--primary { background: var(--olive); color: var(--on-olive); }
.rf-ticket-head .rf-timer { grid-column: auto; }

/* File inputs everywhere (office, console, PWA): the design's pill button in place of the
   browser's grey one; the chosen file's name muted beside it. */
input[type="file"] { max-inline-size: 100%; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
input[type="file"].rf-input { block-size: auto; min-block-size: var(--control-height); padding-block: 6px; padding-inline: 6px var(--space-4); }
input[type="file"]::file-selector-button { block-size: 34px; margin-inline-end: 12px; padding-inline: 16px; border: 0; border-radius: var(--radius-pill); background: var(--olive); color: var(--on-olive); font: 700 13px/16px var(--font-sans); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--olive-deep); }
input[type="file"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Links in page content that no component colours (a.num, a.rf-kit-…) take the design's olive,
   not the browser's blue. Zero specificity: every component rule still wins. */
:where(.rf-content a) { color: var(--olive); }

/* Chips: on a white panel the white chip disappears, so it takes the page grey there (tabs and
   the active chip keep their own fills); plus the small and tone variants pages already use. */
:where(.rf-panel) .rf-chip { background: var(--surface-page); }
.rf-chip--sm { block-size: 28px; min-block-size: 28px; padding-inline: 12px; font: 700 12px/14px var(--font-sans); }
.rf-chip--warning:not(.is-active) { background: var(--warning-soft); color: var(--warning-ink); }
.rf-chip--danger:not(.is-active) { background: var(--danger-soft); color: var(--danger); }

/* Phones: table heads, codes, dates and amounts never break mid-word; the table scrolls inside
   its .rf-table-wrap instead. */
@media (max-width: 767.98px) {
  .rf-table th, .rf-table :is(td, th):is(.num, .end) { white-space: nowrap; }
}
