/*
 * M28: the staff panel's new look (approved design, 2026-09-29). Calm for 12-hour shifts: a cool grey background (owner 2026-10-18: the
 * Figma tokens — bg/app #F4F5FA, bg/surface #FFFFFF; before: M28's warm grey), soft surfaces, ink text,
 * one mint main action with navy text (colours v2, owner OK 2026-10-19); navy surfaces carry only white or mint text; night mode in
 * deep indigo. The grey scale itself is set in BrandTheme (Filament colours); this file adds the
 * surfaces, the menu and each person's comfort settings (text size, rows, less movement) — set on <html> by the panel from the account.
 */

/* ---- Day: surfaces #FFFFFF, menu #E9EAF2, lines #E2E4EE (BrandTheme's grey) ---- */
html:not(.dark) { --color-white: #FFFFFF; }
/* error / success / attention text in our own pages: the Figma dark text by day, the night chips' light text at night */
html { --gv-error: #9B1C14; --gv-success: #17633A; --gv-attention: #6B4A00; }
html.dark { --gv-error: #F4A3A3; --gv-success: #86DDAE; --gv-attention: #F2CD5C; }
html:not(.dark) .fi-sidebar { background-color: var(--gray-100); border-inline-end: 1px solid var(--gray-200); }
html:not(.dark) .fi-topbar { box-shadow: none; border-bottom: 1px solid var(--gray-200); }
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: #071952; }
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: #FFFFFF; }
html:not(.dark) a:not([class]) { color: #0B666A; }

/* ---- Night: background #040F31, surfaces #0A2265, menu #061545, lines #1B3577; the selected item indigo with white, the main action stays lime ---- */
html.dark .fi-sidebar { background-color: #061545; border-inline-end: 1px solid #1B3577; }
html.dark .fi-topbar { background-color: #0A2265; box-shadow: none; border-bottom: 1px solid #1B3577; }
html.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: #071952; }
html.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
html.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
html.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: #FFFFFF; }
html.dark a:not([class]) { color: #97FEED; }
/* Colours v2 at night (Cowork, 2026-10-19): links stay mint; switches, radios, checkboxes and selections are teal — mint is never one */
html.dark .fi-checkbox-input:checked, html.dark .fi-radio-input:checked { background-color: #35A29F; border-color: #35A29F; }
html.dark .fi-toggle.fi-toggle-on { background-color: #35A29F; }

/* ---- Both ---- */
.fi-sidebar-group-label { text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.fi-sidebar-item-btn { border-radius: 10px; }
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn { border-radius: 16px; }
.fi-theme-switcher { display: none; } /* day / night / automatic is on "My display and comfort" and the moon button */
.gv-night-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: inherit; }
.gv-night-btn:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
.gv-night-btn svg { width: 20px; height: 20px; }
.gv-bell { position: relative; }
.gv-bell-count { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #9B1C14; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---- Comfort (per person) ---- */
html.gv-text-s { font-size: 14px; }
html.gv-text-m { font-size: 15px; }
html.gv-text-l { font-size: 17px; }
html.gv-text-xl { font-size: 19px; }
html.gv-rows-compact .fi-ta-text:not(.fi-inline) { padding-block: .45rem; }
html.gv-less-motion *, html.gv-less-motion *::before, html.gv-less-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html * { scroll-behavior: auto !important; } }

/* ---- Eye-break reminder (every 2 hours, when switched on) ---- */
.gv-eye { position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 50; max-width: 22rem; padding: 1rem 1.1rem; border-radius: 16px;
    background: #E7F0F0; color: #0B666A; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); display: grid; gap: .6rem; }
html.dark .gv-eye { background: #12307A; color: #97FEED; }
.gv-eye[hidden] { display: none; }
.gv-eye strong { font-size: 1rem; }
.gv-eye p { margin: 0; font-size: .9rem; line-height: 1.5; }
.gv-eye div { display: flex; gap: .5rem; flex-wrap: wrap; }
.gv-eye button { min-height: 36px; padding: 0 .9rem; border-radius: 10px; font-weight: 800; font-size: .85rem; border: 1px solid currentColor; }
.gv-eye button:first-child { background: currentColor; }
.gv-eye button:first-child span { color: #FFFFFF; }
html.dark .gv-eye button:first-child span { color: #040F31; }

/* ---- My work today, Orders side panel, System health, Audit log (M28 pages) ---- */
.gv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.gv-card { background: var(--color-white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 1.1rem 1.25rem; display: grid; gap: .8rem; }
html.dark .gv-card { background: var(--gray-900); border-color: #1B3577; }
.gv-card-head { display: flex; align-items: center; gap: .6rem; }
.gv-card-head .gv-ico { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--gray-100); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html.dark .gv-card-head .gv-ico { background: #061545; }
.gv-card-head .gv-ico svg { width: 1.2rem; height: 1.2rem; }
.gv-card-title { font-weight: 700; flex: 1; }
.gv-card-titles { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.gv-card-titles .gv-card-title { flex: 1 1 10rem; }
.gv-card-titles .gv-chip { white-space: nowrap; }
.gv-count { font-size: 2.5rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.gv-note { font-size: .85rem; color: var(--gray-600); }
html.dark .gv-note { color: var(--gray-400); }
.gv-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.gv-start { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; gap: .35rem; min-height: 40px; padding: 0 1rem; border-radius: 10px; background: #97FEED; color: #071952 !important;
    font-weight: 800; text-decoration: none; }
.gv-start:focus-visible { outline: 3px solid #071952; outline-offset: 2px; }
/* only ONE lime main action per screen: the other Start links are secondary (link colour, a border), in light and dark */
.gv-start.gv-start-secondary { background: transparent; color: #0B666A !important; border: 1.5px solid #071952; }
.gv-start.gv-start-secondary:focus-visible { outline-color: #0B666A; }
html.dark .gv-start.gv-start-secondary { color: #97FEED !important; border-color: #35A29F; }
html.dark .gv-start.gv-start-secondary:focus-visible { outline-color: #97FEED; }
.gv-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.gv-chip svg { width: .8rem; height: .8rem; }
.gv-chip.warn { background: #F6FDD2; color: #6B4A00; }
.gv-chip.ok { background: #DCF5E7; color: #17633A; }
.gv-chip.bad { background: #FBE4E2; color: #9B1C14; }
.gv-chip.info { background: #E7F0F0; color: #0B666A; }
.gv-chip.mute { background: var(--gray-100); color: var(--gray-700); }
html.dark .gv-chip.warn { background: #3A3013; color: #F2CD5C; }
html.dark .gv-chip.ok { background: #173B2B; color: #86DDAE; }
html.dark .gv-chip.bad { background: #3F1D25; color: #F4A3A3; }
html.dark .gv-chip.info { background: #12307A; color: #97FEED; }
html.dark .gv-chip.mute { background: #061545; color: var(--gray-300); }
.gv-two { display: grid; gap: 1rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 1024px) { .gv-two { grid-template-columns: 1fr; } }
.gv-list { display: grid; }
.gv-list a, .gv-list .gv-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 6rem; gap: .75rem; align-items: center; min-height: 48px; padding: 0 .5rem;
    border-top: 1px solid var(--gray-200); color: inherit; text-decoration: none; border-radius: 10px; }
html.dark .gv-list a, html.dark .gv-list .gv-row { border-color: #1B3577; }
.gv-list a:hover { background: var(--gray-50); }
html.dark .gv-list a:hover { background: #061545; }
.gv-list .gv-code { font-weight: 800; font-variant-numeric: tabular-nums; }
.gv-list .gv-when { font-size: .85rem; color: var(--gray-600); text-align: end; }
.gv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.gv-stats b { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gv-stats span { font-size: .85rem; color: var(--gray-600); }
.gv-h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.gv-sub { color: var(--gray-600); font-size: .9rem; }
html.dark .gv-sub, html.dark .gv-stats span, html.dark .gv-list .gv-when { color: var(--gray-400); }
.gv-health { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.gv-health .gv-card { grid-template-columns: auto 1fr; align-items: center; }
.gv-checks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.gv-check { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--gray-200); }
html.dark .gv-check { border-color: #1B3577; }
.gv-check .gv-detail { font-size: .85rem; color: var(--gray-600); overflow-wrap: anywhere; }
html.dark .gv-check .gv-detail { color: var(--gray-400); }

/* ---- M31 shop portal (Today, pickup, stock, payouts, deals, questions, verified shop, team, holidays) — also on phones ---- */
.gv-shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.gv-pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: 0 .8rem; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.gv-pill.open { background: #17633A; color: #fff; }
.gv-pill.closed { background: #F6FDD2; color: #6B4A00; }
.gv-items { display: grid; }
.gv-item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; min-height: 56px; padding: .6rem .25rem; border-top: 1px solid var(--gray-200); }
html.dark .gv-item { border-color: #1B3577; }
.gv-item .gv-grow { flex: 1 1 14rem; min-width: 0; }
.gv-item .gv-name { font-weight: 700; }
.gv-item .gv-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.gv-money { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gv-big { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gv-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.gv-tabs button, .gv-tabs a { min-height: 40px; padding: 0 .9rem; border-radius: 10px; border: 1px solid var(--gray-200); font-weight: 700; text-decoration: none; color: inherit; }
.gv-tabs .on { background: #071952; color: #fff; border-color: #071952; }
html.dark .gv-tabs .on { background: #071952; color: #fff; border-color: #071952; }
.gv-bar { height: 10px; border-radius: 6px; background: #071952; min-width: 3px; }
.gv-bar.abroad { background: #0B666A; }
.gv-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 3px; height: 120px; }
.gv-hours span { display: block; border-radius: 4px 4px 0 0; background: #4A4D6A; }
.gv-hours span.top { background: #071952; }
html.dark .gv-hours span.top { background: #35A29F; }
.gv-preview { border: 1px dashed var(--gray-300); border-radius: 16px; padding: 1rem; display: grid; gap: .6rem; }
.gv-photo { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: .85rem; }
.gv-was { text-decoration: line-through; color: var(--gray-600); }
.gv-badge-ok { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: #DCF5E7; color: #17633A; font-weight: 800; font-size: .8rem; }
@media (max-width: 640px) { .gv-big { font-size: 1.5rem; } .gv-item { min-height: 60px; } }

/* ---- M32 fix (owner): our own tables (not Filament's) — normal spacing, titles never touch; on a phone the table scrolls sideways ---- */
table:not([class*="fi-"]) { border-collapse: collapse; }
table:not([class*="fi-"]) th, table:not([class*="fi-"]) td { padding-block: .35rem; vertical-align: top; }
/* the space between columns always on the side of the next column — by the PAGE's direction (2026-10-10: by the cell's own direction an
   English name or a code in an Arabic page had its space on the outer side and touched the next column) */
html:not([dir="rtl"]) table:not([class*="fi-"]) :is(th, td) { padding-right: .9rem !important; padding-left: 0 !important; } /* wins over inline padding */
[dir="rtl"] table:not([class*="fi-"]) :is(th, td) { padding-left: .9rem !important; padding-right: 0 !important; }
html:not([dir="rtl"]) table:not([class*="fi-"]) :is(th, td):last-child { padding-right: 0 !important; }
[dir="rtl"] table:not([class*="fi-"]) :is(th, td):last-child { padding-left: 0 !important; }
table:not([class*="fi-"]) th { white-space: nowrap; }
/* 2026-09-30: a badge or a button in a table keeps its whole text — Filament shortens them to fit, which cut "Waiting for the broker" to
   a few letters on a phone and let it run into the next column */
table:not([class*="fi-"]) .fi-badge, table:not([class*="fi-"]) .fi-badge *, table:not([class*="fi-"]) .fi-btn, table:not([class*="fi-"]) .fi-btn * {
  max-width: none !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap; flex-shrink: 0;
}
/* a cell written the other way (a code, a date or an amount left-to-right in an Arabic / Sorani page) in a table with a header row: its
   "start" / "end" are the PAGE's start and end, so it stays under its header (owner, 2026-10-10; tests/phone/check.js "not under its header") */
[dir="rtl"] table:not([class*="fi-"]):has(> thead) :is(th, td)[dir="ltr"]:not([style*="center"]) { text-align: right !important; }
[dir="rtl"] table:not([class*="fi-"]):has(> thead) :is(th, td)[dir="ltr"]:is([style*="text-align:end"], [style*="text-align: end"], .gv-end) { text-align: left !important; }
html:not([dir="rtl"]) table:not([class*="fi-"]):has(> thead) :is(th, td)[dir="rtl"]:not([style*="center"]) { text-align: left !important; }
html:not([dir="rtl"]) table:not([class*="fi-"]):has(> thead) :is(th, td)[dir="rtl"]:is([style*="text-align:end"], [style*="text-align: end"], .gv-end) { text-align: right !important; }
@media (max-width: 767px) {
  table:not([class*="fi-"]) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table:not([class*="fi-"]) td { white-space: nowrap; }
  table:not([class*="fi-"]) td[dir="auto"], table:not([class*="fi-"]) td.gv-wrap { white-space: normal; min-width: 12rem; }
}

/* M34: label/value lists (owner overview, cash flow, risk radar, demand map): the label wraps on a phone, the number stays on one line */
table.gv-kv { display: table; width: 100%; border-collapse: collapse; }
table.gv-kv th, table.gv-kv td { white-space: normal; overflow-wrap: break-word; vertical-align: top; } /* break-word: long words wrap, but a label is never squeezed to one letter */
table.gv-kv th { text-align: start; font-weight: 400; }
table.gv-kv td { text-align: end; }
table.gv-kv td.gv-num { white-space: nowrap; overflow-wrap: normal; }
/* list tables (owner, 2026-10-10): with a header row, every cell sits under its header at the start of the PAGE's line (left in English,
   right in Arabic / Sorani — also an English name or a code written left-to-right); the headers are at the start too. The label → value
   boxes (no header row) do not change. Checked by tests/phone/check.js ("name not at the start", "not under its header") in en / ar / ckb. */
table.gv-kv:has(> thead) > tbody > tr > td, table.gv-kv:has(> thead) > thead th { text-align: left; }
[dir="rtl"] table.gv-kv:has(> thead) > tbody > tr > td, [dir="rtl"] table.gv-kv:has(> thead) > thead th { text-align: right; }

/* ---- Area 77 F1: My work in Focus (owner's direction A, Figma 881:2 A1 / A2, 2026-10-26). Logical properties only; the bars on the start
   side; Western digits in <bdi dir="ltr">. Colours: the allowed tokens nearest the Figma ones (BrandTokensTest) ---- */
.gv-today { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.gv-today-label { font-size: .75rem; font-weight: 700; color: var(--gray-600); }
html.dark .gv-today-label { color: #B9BAD3; }
.gv-pill-stat { display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; background: var(--color-white); border: 1px solid #E2E4EE;
  font-size: .75rem; font-weight: 500; white-space: nowrap; }
.gv-pill-stat b { font-size: .875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
html.dark .gv-pill-stat { background: #0A2265; border-color: #1B3577; }
.gv-overline { display: block; font-size: .6875rem; line-height: 1.27; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4A4D6A; }
html.dark .gv-overline { color: #B9BAD3; }
.gv-next { position: relative; display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 2rem; padding-inline-start: calc(2rem + 6px); border-radius: 20px;
  background: #EEEFF3; border: 1px solid #E2E4EE; overflow: hidden; }
.gv-next::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 6px; background: #35A29F; }
html.dark .gv-next { background: #12307A; border-color: #1B3577; }
.gv-next-ico { inline-size: 56px; block-size: 56px; flex-shrink: 0; border-radius: 14px; background: #E7F0F0; color: #0B666A; display: inline-flex; align-items: center; justify-content: center; }
html.dark .gv-next-ico { background: #061545; color: #97FEED; }
.gv-next-ico svg { inline-size: 26px; block-size: 26px; }
.gv-next-text { flex: 1; min-inline-size: 0; display: grid; gap: .3rem; }
.gv-next-title { margin: 0; font-size: 1.375rem; line-height: 1.27; font-weight: 700; overflow-wrap: anywhere; }
.gv-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.gv-next-item { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; } /* F1b: code · item · shop */
.gv-next-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.gv-next .gv-start { min-block-size: 52px; padding-inline: 1.6rem; border-radius: 999px; font-size: 1rem; }
.gv-next .gv-start:hover { filter: brightness(.92); } /* 8 % darker; mint is named only in .gv-start (BrandContrastTest) */
.gv-skip { min-block-size: 44px; display: inline-flex; align-items: center; font-weight: 600; color: #0B666A; text-decoration: none; }
html.dark .gv-skip { color: #97FEED; }
.gv-skip:hover { text-decoration: underline; }
.gv-work { display: grid; gap: .5rem; }
.gv-work-title { margin: 0; font-size: 1.125rem; line-height: 1.33; font-weight: 700; }
.gv-work-list { display: grid; gap: .6rem; margin-block-start: .25rem; }
.gv-work-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--color-white); border: 1px solid #E2E4EE;
  color: inherit; text-decoration: none; min-block-size: 44px; }
html.dark .gv-work-row { background: #0A2265; border-color: #1B3577; }
a.gv-work-row:hover { background: #F4F5FA; }
html.dark a.gv-work-row:hover { background: #061545; }
a.gv-work-row:focus-visible { outline: 3px solid #071952; outline-offset: 2px; }
html.dark a.gv-work-row:focus-visible { outline-color: #97FEED; }
.gv-work-count { min-inline-size: 56px; flex-shrink: 0; text-align: center; font-size: 1.875rem; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.gv-work-ico { inline-size: 40px; block-size: 40px; flex-shrink: 0; border-radius: 8px; background: #E7F0F0; color: #0B666A; display: inline-flex; align-items: center; justify-content: center; }
html.dark .gv-work-ico { background: #061545; color: #97FEED; }
.gv-work-ico svg { inline-size: 20px; block-size: 20px; }
.gv-work-text { flex: 1 1 12rem; min-inline-size: 0; display: grid; gap: .1rem; }
.gv-work-name { font-size: 1.125rem; line-height: 1.33; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gv-open { display: inline-flex; align-items: center; gap: .2rem; flex-shrink: 0; font-weight: 600; color: #0B666A; white-space: nowrap; }
html.dark .gv-open { color: #97FEED; }
.gv-open svg { inline-size: 1rem; block-size: 1rem; }
.gv-all-clear { border-radius: 14px; background: #DCF5E7; color: #17633A; padding: 1rem 1.25rem; }
html.dark .gv-all-clear { background: #173B2B; color: #86DDAE; }
.gv-all-clear svg { inline-size: 1.25rem; block-size: 1.25rem; flex-shrink: 0; }
.gv-all-clear summary { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; cursor: pointer; font-weight: 600; min-block-size: 44px; list-style: none; }
.gv-all-clear summary::-webkit-details-marker { display: none; }
.gv-all-clear .gv-link { color: #0B666A; text-decoration: underline; }
html.dark .gv-all-clear .gv-link { color: #97FEED; }
.gv-empty-list { display: grid; gap: .25rem; margin-block-start: .5rem; }
.gv-empty-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: .4rem; border-block-start: 1px solid color-mix(in oklab, currentColor 20%, transparent); }
.gv-recent h2 { font-size: 1rem; }
@media (max-width: 1279px) {
  .gv-next { flex-wrap: wrap; }
  .gv-next-actions { inline-size: 100%; justify-content: flex-end; }
  .gv-work-row { flex-wrap: wrap; }
  .gv-work-row .gv-chip { order: 5; }
  .gv-open { margin-inline-start: auto; order: 6; }
}
@media (max-width: 767px) {
  .gv-next { padding: 1.25rem; padding-inline-start: calc(1.25rem + 6px); }
  .gv-next-actions { flex-direction: column-reverse; align-items: stretch; }
  .gv-next .gv-start { justify-content: center; inline-size: 100%; }
  .gv-today { flex-wrap: nowrap; overflow-x: auto; }
  .gv-work-count { min-inline-size: 2.5rem; font-size: 1.5rem; }
  .gv-work-row { gap: .75rem; padding: .85rem 1rem; }
}
html[lang="ckb"] .gv-next-title, html[lang="ar"] .gv-next-title { line-height: 1.55; }
html[lang="ckb"] .gv-work-name, html[lang="ar"] .gv-work-name { line-height: 1.55; }

/* ---- Area 77 F2: the navy menu (Figma 881:2 A2): navy by day and at night, white items with their icons, the selected item raised with a
   3 px teal bar on the start side, the group titles as overlines, the counts as white pills with navy text (only where a count exists).
   The header with the logo keeps the top bar's colour (the logo is navy by day and never changes colour or side). ---- */
html .fi-sidebar { background-color: #071952; border-inline-end: 0; }
html.dark .fi-sidebar { background-color: #0A2265; border-inline-end: 1px solid #1B3577; }
html:not(.dark) .fi-sidebar-header { background-color: #FFFFFF; }
html .fi-sidebar-nav .fi-sidebar-group-label { color: #B9BAD3; font-size: .6875rem; letter-spacing: .08em; }
html .fi-sidebar-nav .fi-sidebar-group-btn > .fi-icon, html .fi-sidebar-nav .fi-sidebar-group-collapse-btn { color: #B9BAD3; }
html .fi-sidebar-nav .fi-sidebar-item-btn { position: relative; min-block-size: 40px; padding: .5rem .75rem; gap: .75rem; border-radius: 8px; }
html .fi-sidebar-nav .fi-sidebar-item-btn .fi-sidebar-item-label, html .fi-sidebar-nav .fi-sidebar-item-btn > .fi-icon { color: #FFFFFF; font-weight: 600; }
html .fi-sidebar-nav .fi-sidebar-item-btn:hover, html .fi-sidebar-nav .fi-sidebar-item-btn:focus-visible { background-color: color-mix(in oklab, #FFFFFF 10%, transparent); }
html .fi-sidebar-nav .fi-sidebar-item-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }
html .fi-sidebar-nav .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: #12307A; }
html .fi-sidebar-nav .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 0; inline-size: 3px;
  border-radius: 3px; background: #35A29F; }
html .fi-sidebar-nav .fi-sidebar-item-grouped-border-part { background-color: #B9BAD3; }
html .fi-sidebar-nav .fi-sidebar-item-badge-ctn .fi-badge { background-color: #FFFFFF; color: #071952; box-shadow: none; font-size: .75rem; font-weight: 700; }
html .fi-sidebar-nav .fi-sidebar-item-badge-ctn .fi-badge * { color: #071952; }
html .fi-sidebar-close-collapse-sidebar-btn, html .fi-sidebar-open-collapse-sidebar-btn { color: #071952; }
html.dark .fi-sidebar-close-collapse-sidebar-btn, html.dark .fi-sidebar-open-collapse-sidebar-btn { color: #FFFFFF; }

/* ---- Area 77 F2: the language in the top bar (a <details> menu, no JavaScript) ---- */
.gv-lang { position: relative; }
.gv-lang > summary { list-style: none; cursor: pointer; gap: .2rem; inline-size: auto; padding-inline: .6rem; }
.gv-lang > summary::-webkit-details-marker { display: none; }
.gv-lang-code { font-size: .75rem; font-weight: 700; }
.gv-lang-menu { position: absolute; inset-block-start: calc(100% + 4px); inset-inline-end: 0; z-index: 40; min-inline-size: 11rem; padding: .35rem; border-radius: 12px;
  background: #FFFFFF; border: 1px solid #E2E4EE; box-shadow: 0 8px 24px rgba(7, 25, 82, .12); display: grid; gap: .15rem; }
html.dark .gv-lang-menu { background: #0A2265; border-color: #1B3577; }
.gv-lang-menu button { inline-size: 100%; min-block-size: 44px; padding: 0 .75rem; border-radius: 8px; text-align: start; font-weight: 600; color: inherit; }
.gv-lang-menu button:hover, .gv-lang-menu button:focus-visible { background: #EEEFF3; }
html.dark .gv-lang-menu button:hover, html.dark .gv-lang-menu button:focus-visible { background: #12307A; }
.gv-lang-menu button[aria-current="true"] { background: #071952; color: #FFFFFF; }

/* ---- Area 77 F3: the queue opened beside the list (Figma 881:2 A3): the Quick look 46rem wide at the end side ---- */
.gv-quicklook { max-inline-size: 46rem; }

/* ---- Area 77 F4: the Orders list in Focus (Figma 881:2 A4): pill tabs with their counts (the selected pill navy; its count a white pill —
   mint stays only the one main action), 64 px rows, the late age in the warning text, the selected row soft with a 3 px bar at the start ---- */
.fi-resource-orders.fi-resource-list-records-page .fi-tabs { gap: .5rem; padding: 0; background: transparent; box-shadow: none; border: 0; flex-wrap: wrap; }
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item { min-block-size: 40px; padding: .5rem .875rem; border-radius: 999px; border: 1px solid #E2E4EE; background: #FFFFFF; }
html.dark .fi-resource-orders.fi-resource-list-records-page .fi-tabs-item { background: #0A2265; border-color: #1B3577; }
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item.fi-active { background: #071952; border-color: #071952; }
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item.fi-active > .fi-icon { color: #FFFFFF; }
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item .fi-badge { border-radius: 999px; background: #F4F5FA; color: #071952; box-shadow: none; }
.fi-resource-orders.fi-resource-list-records-page .fi-tabs-item.fi-active .fi-badge { background: #FFFFFF; color: #071952; }
html.dark .fi-resource-orders.fi-resource-list-records-page .fi-tabs-item:not(.fi-active) .fi-badge { background: #061545; color: #EDEDF7; }
.fi-resource-orders.fi-resource-list-records-page .fi-ta-row > td { block-size: 64px; }
.fi-resource-orders.fi-resource-list-records-page .fi-ta-row.fi-selected { background: #EEEFF3; }
html.dark .fi-resource-orders.fi-resource-list-records-page .fi-ta-row.fi-selected { background: #12307A; }
.fi-resource-orders.fi-resource-list-records-page .fi-ta-row.fi-selected > td:first-child { border-inline-start: 3px solid #0B666A; }
.gv-late, .gv-late * { color: #6B4A00 !important; }
html.dark .gv-late, html.dark .gv-late * { color: #F2CD5C !important; }

/* ---- Area 77 F5: the order page in Focus (Figma 881:2 A5): the Next step banner (info-soft, a 4 px link bar at the start), the journey (done:
   a filled dot in the link colour; now: a teal dot and a bold label — mint stays only the one main action; next: a hollow dot with a
   text/secondary ring, 3 : 1 by day), two columns on a wide screen, one on a phone ---- */
.gv-order-head { display: grid; gap: 1rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 1023px) { .gv-order-head { grid-template-columns: 1fr; } }
.gv-next-step { position: relative; display: grid; gap: .35rem; padding: 1rem 1.25rem; padding-inline-start: calc(1.25rem + 4px); border-radius: 14px; background: #E7F0F0; overflow: hidden; }
.gv-next-step::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 4px; background: #0B666A; }
html.dark .gv-next-step { background: #12307A; }
html.dark .gv-next-step::before { background: #97FEED; }
.gv-next-step p { margin: 0; }
.gv-next-step-title { font-size: 1rem; line-height: 1.5; font-weight: 600; }
.gv-customer summary { cursor: pointer; list-style: none; min-block-size: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.gv-customer summary::-webkit-details-marker { display: none; }
.gv-customer .gv-link, .gv-next-step .gv-link { color: #0B666A; text-decoration: underline; font-weight: 600; }
html.dark .gv-customer .gv-link { color: #97FEED; }
.gv-journey { padding: 1rem 1.25rem; border-radius: 14px; background: #FFFFFF; border: 1px solid #E2E4EE; display: grid; gap: .5rem; }
html.dark .gv-journey { background: #0A2265; border-color: #1B3577; }
.gv-journey h3 { margin: 0; }
.gv-journey ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.gv-step { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; min-block-size: 1.75rem; }
.gv-dot { inline-size: .75rem; block-size: .75rem; border-radius: 999px; border: 2px solid #4A4D6A; }
html.dark .gv-dot { border-color: #B9BAD3; }
.gv-step-done .gv-dot { background: #0B666A; border-color: #0B666A; }
html.dark .gv-step-done .gv-dot { background: #97FEED; border-color: #97FEED; }
.gv-step-now .gv-dot { background: #35A29F; border-color: #35A29F; }
.gv-step-now .gv-step-label { font-weight: 700; }
.gv-head-money { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; margin: 0; padding-block-start: .6rem; border-block-start: 1px solid #E2E4EE; }
html.dark .gv-head-money { border-color: #1B3577; }
.gv-head-money dd { margin: 0; font-weight: 700; }
