/*
 * Flux office · the dashboard (Panoul de control): the greeting, the figures, De urmărit, the live floor (Hala acum),
 * the production chart, Ultimele and the vehicle reminders. Owned by the dashboard work.
 * Built on fx-tokens.css (every colour, size, depth and timing) and the primitives of fx-motion.css / fx-motion.js;
 * public/js/fx-dashboard.js redraws the lines at their real size and runs a belt when a step's number changes.
 *
 * Motion only on a change. The opening, once a tab session (data-fx-scene="dashboard" on every root): the factory's
 * wing settles behind the greeting, the greeting rises, the figures band opens through slats while its cards rise one
 * after another and count up, then the side list, the floor (its lines rise, their numbers count up) and the chart
 * (bars grow from the axis, the line draws itself). Everything settles in about 1.5 s. Later visits: a short fade,
 * no counting. Live (every 30 s): numbers count old → new and their card glows, chips glide to their new step and
 * the belt into that step runs; nothing moves that did not change, and nothing loops. Urgent things breathe red
 * three times when they appear, then hold still. Reduced motion: final values at once, a short tint shows what
 * changed.
 *
 * Layout per band (contract §3): phone one column; 640+ figures in four columns; 768+ two columns for the short
 * lists; 1024+ the floor with De urmărit and the vehicle reminders beside it, the chart with Ultimele beside it.
 * Whoever sees fewer widgets gets them full width (the rules test which widgets are present).
 * The factory's colour appears nowhere here: status colours and greys only.
 */

/* ============================================================================================ The grid */
.fx-dash-grid > .fi-grid {
    overflow: visible;            /* Filament clips sideways: panel shadows and breathing rings must show */
    gap: var(--fx-gap);
    align-items: start;
}
@media (min-width: 768px) {
    .fx-dash-grid > .fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-dash-grid > .fi-grid > .fi-sc-liberated > .fx-dash-w { grid-column: 1 / -1; }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-cars) > .fi-sc-liberated > .fx-dash-w-activity,
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-activity) > .fi-sc-liberated > .fx-dash-w-cars { grid-column: span 1; }
}
/* 1024 and up, when the floor has company: the floor on the left; the offers, De urmărit and the reminders stacked
   beside it; then the chart with Ultimele beside it (or the chart across the page). The side's last row is flexible,
   so a tall floor never stretches the side. Any side panel without a place of its own takes the next free row. */
@media (min-width: 1024px) {
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > :is(.fx-dash-w-offers, .fx-dash-w-attn, .fx-dash-w-cars, .fx-dash-w-activity)) {
        grid-template-columns: minmax(0, 1fr) clamp(19rem, 29%, 25rem);
        grid-template-rows: auto auto auto auto minmax(0, 1fr);
        row-gap: 0;
    }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > :is(.fx-dash-w-offers, .fx-dash-w-attn, .fx-dash-w-cars, .fx-dash-w-activity)) > .fi-sc-liberated > .fx-dash-w {
        grid-column: 2;
        margin-bottom: var(--fx-gap);
    }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > :is(.fx-dash-w-offers, .fx-dash-w-attn, .fx-dash-w-cars, .fx-dash-w-activity)) > .fi-sc-liberated > .fx-dash-w-figs { grid-column: 1 / -1; grid-row: 1; }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > :is(.fx-dash-w-offers, .fx-dash-w-attn, .fx-dash-w-cars, .fx-dash-w-activity)) > .fi-sc-liberated > .fx-dash-w-floor { grid-column: 1; grid-row: 2 / 6; }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > :is(.fx-dash-w-offers, .fx-dash-w-attn, .fx-dash-w-cars, .fx-dash-w-activity)) > .fi-sc-liberated > .fx-dash-w-chart { grid-column: 1 / -1; grid-row: 6; }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor):has(> .fi-sc-liberated > .fx-dash-w-activity) > .fi-sc-liberated > .fx-dash-w-chart { grid-column: 1; }
    .fx-dash-grid > .fi-grid:has(> .fi-sc-liberated > .fx-dash-w-floor) > .fi-sc-liberated > .fx-dash-w-activity { grid-column: 2; grid-row: 6; }
    /* No floor: the chart with Ultimele beside it; everything else takes the width. */
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)):has(> .fi-sc-liberated > .fx-dash-w-chart):has(> .fi-sc-liberated > .fx-dash-w-activity) {
        grid-template-columns: minmax(0, 1fr) clamp(19rem, 29%, 25rem);
    }
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)):has(> .fi-sc-liberated > .fx-dash-w-chart):has(> .fi-sc-liberated > .fx-dash-w-activity) > .fi-sc-liberated > .fx-dash-w-chart { grid-column: 1; }
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)):has(> .fi-sc-liberated > .fx-dash-w-chart):has(> .fi-sc-liberated > .fx-dash-w-activity) > .fi-sc-liberated > .fx-dash-w-activity { grid-column: 2; }
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)):has(> .fi-sc-liberated > .fx-dash-w-chart):has(> .fi-sc-liberated > .fx-dash-w-activity) > .fi-sc-liberated > .fx-dash-w-cars { grid-column: 1 / -1; }
}

/* ============================================================================================ The greeting */
/* Behind it, the factory's wing: large and lighter than the page (so the words only gain contrast), its feathers
   reaching up under the header and fading out before the figures. */
.fx-dash-head {
    margin-bottom: calc(var(--fx-s-1) * -1);
    --fx-wing-size: 19rem;
    --fx-wing-x: 19rem;
    --fx-wing-y: 28%;
    --fx-wing-tone: var(--fx-wing-light);
}
.fx-dash-head::before {
    -webkit-mask: var(--fx-wing) center / contain no-repeat, linear-gradient(#000 52%, transparent 86%);
    -webkit-mask-composite: source-in;
    mask: var(--fx-wing) center / contain no-repeat, linear-gradient(#000 52%, transparent 86%);
    mask-composite: intersect;
}
@media (max-width: 639.98px) {
    .fx-dash-head { --fx-wing-size: 13rem; --fx-wing-x: calc(100% - 4.5rem); --fx-wing-y: 24%; }
}
/* A repeat visit of the session: the wing fades in with the rest, no drift. */
html.fx-motion .fx-dash-head.is-fx-quick::before { animation: fx-fade-in var(--fx-dur-3) var(--fx-ease-out) backwards; }
.fx-dash-head .fi-header-subheading { margin-top: var(--fx-s-1); }

/* ============================================================================================ Panels */
.fx-dash-panel {
    position: relative;
    background: var(--fx-surface);
    border-radius: var(--fx-r-panel);
    box-shadow: var(--fx-shadow-1);
    color: var(--fx-ink);
    min-width: 0;
}
.fx-dash-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--fx-s-2) var(--fx-s-4);
    padding: var(--fx-pad-panel) var(--fx-pad-panel) var(--fx-s-3);
}
.fx-dash-panel-head h2 {
    margin: 0;
    font-size: var(--fx-fs-18);
    line-height: var(--fx-lh-snug);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-head);
    letter-spacing: var(--fx-track-head);
    color: var(--fx-graphite);
}
.fx-dash-panel-head p { margin: 0; font-size: var(--fx-fs-13); color: var(--fx-ink-3); }
.fx-dash-num { font-variant-numeric: tabular-nums; letter-spacing: var(--fx-track-num); }
.fx-dash-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 var(--fx-s-2);
    border-radius: var(--fx-r-pill);
    background: var(--fx-st-urgent-bg);
    color: var(--fx-st-urgent-text);
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-strong);
    font-variant-numeric: tabular-nums;
}
.fx-dash-empty {
    display: flex;
    align-items: center;
    gap: var(--fx-s-3);
    margin: 0 var(--fx-pad-panel) var(--fx-pad-panel);
    padding: var(--fx-s-4);
    border-radius: var(--fx-r-card);
    background: var(--fx-sunk);
    color: var(--fx-ink-2);
}
.fx-dash-empty p { margin: 0; font-size: var(--fx-fs-14); }
.fx-dash-empty-ico { width: 1.75rem; height: 1.75rem; flex: none; color: var(--fx-ok-fill); }
.fx-dash-empty-ico.is-quiet { color: var(--fx-ink-3); }

/* Rows inside a panel (De urmărit, reminders): the row is the link. */
.fx-dash-list { list-style: none; margin: 0; padding: 0 var(--fx-s-2) var(--fx-s-2); }
.fx-dash-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--fx-s-3);
    min-height: 3.5rem;
    padding: var(--fx-s-2) var(--fx-s-3) var(--fx-s-2) var(--fx-s-4);
    border-radius: calc(var(--fx-r-panel) - var(--fx-s-2));
    color: inherit;
    text-decoration: none;
    transition: background-color var(--fx-dur-2) var(--fx-ease-out), transform var(--fx-dur-1) var(--fx-ease-out);
}
.fx-dash-list > li + li > .fx-dash-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--fx-s-4);
    right: var(--fx-s-4);
    border-top: 1px solid var(--fx-line);
}
.fx-dash-row:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: calc(var(--fx-focus-offset) * -1); }
.fx-dash-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fx-dash-row-main b { color: var(--fx-graphite); font-weight: var(--fx-fw-strong); font-size: var(--fx-fs-14); }
.fx-dash-row-main span { font-size: var(--fx-fs-13); color: var(--fx-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dash-row-go { width: 1rem; height: 1rem; flex: none; color: var(--fx-ink-3); transition: transform var(--fx-dur-2) var(--fx-ease-out); }
@media (hover: hover) and (pointer: fine) {
    a.fx-dash-row:hover { background: var(--fx-hover); }
    a.fx-dash-row:hover .fx-dash-row-go { transform: translateX(2px); color: var(--fx-ink-2); }
    .fx-dash-list > li:hover + li > .fx-dash-row::before,
    .fx-dash-list > li:hover > .fx-dash-row::before { opacity: 0; }
}

/* De urmărit across the whole width (a tablet upright, or nobody sees the floor): two columns of rows. */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .fx-dash-attn .fx-dash-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fx-s-4); }
    .fx-dash-attn .fx-dash-list > li:nth-child(2) > .fx-dash-row::before { display: none; }
}
@media (min-width: 1024px) {
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)) .fx-dash-attn .fx-dash-list {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fx-s-4);
    }
    .fx-dash-grid > .fi-grid:not(:has(> .fi-sc-liberated > .fx-dash-w-floor)) .fx-dash-attn .fx-dash-list > li:nth-child(2) > .fx-dash-row::before { display: none; }
}

/* Reason pills: the status colours, always with an icon and a word. */
.fx-dash-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    flex: none;
    max-width: 55%;
    padding: 0.2rem 0.625rem 0.2rem 0.5rem;
    border-radius: var(--fx-r-pill);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-semibold);
    line-height: 1.35;
    white-space: nowrap;
}
.fx-dash-pill > span { overflow: hidden; text-overflow: ellipsis; }
.fx-dash-pill-ico { width: 0.875rem; height: 0.875rem; flex: none; }
.fx-dash-pill.is-remark { background: var(--fx-st-remark-bg); color: var(--fx-st-remark-text); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-remark) 40%, transparent); }
.fx-dash-pill.is-remark .fx-dash-pill-ico { color: var(--fx-st-remark); }
.fx-dash-pill.is-urgent { background: var(--fx-st-urgent-bg); color: var(--fx-st-urgent-text); }
.fx-dash-pill.is-urgent .fx-dash-pill-ico { color: var(--fx-st-urgent); }
.fx-dash-pill.is-waiting, .fx-dash-pill.is-draft { background: var(--fx-st-work-bg); color: var(--fx-st-work-text); }

/* ============================================================================================ Figures */
/* The band carries room for its cards' shadows, so the slats that open it never cut them. */
.fx-dash-figs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fx-gap);
    margin: -8px -12px -28px;
    padding: 8px 12px 28px;
}
.fx-dash-fig {
    /* the cards rise one after another (they would otherwise inherit the band's slats entrance) */
    --fx-reveal-anim: fx-rise;
    --fx-reveal-dur: var(--fx-dur-4);
    --fx-reveal-ease: var(--fx-ease-enter);
    --fx-dash-n-size: var(--fx-fs-38);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 6.25rem;
    padding: var(--fx-s-4) var(--fx-s-4) var(--fx-s-3);
    border-radius: var(--fx-r-panel);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow-1);
    color: var(--fx-ink);
    text-decoration: none;
    outline-offset: var(--fx-focus-offset);
}
/* The slat: a short line in the status colour set into the top edge (a background layer, so the card's own edge
   bounds it and nothing pokes out above the card). */
.fx-dash-fig:not(.is-alert, .is-on) {
    background: linear-gradient(var(--fx-dash-c) 0 0) var(--fx-s-4) 0 / 1.75rem 3px no-repeat, var(--fx-surface);
}
.fx-dash-fig:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); }
.fx-dash-fig-label {
    display: flex;
    align-items: center;
    gap: var(--fx-s-2);
    min-width: 0;
    padding-right: var(--fx-s-5);
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-semibold);
    line-height: var(--fx-lh-snug);
    color: var(--fx-ink-2);
}
.fx-dash-fig-label > span { min-width: 0; }
.fx-dash-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--fx-dash-c); }
.fx-dash-fig-ico { flex: none; width: 1rem; height: 1rem; color: var(--fx-ink-3); }
.fx-dash-fig-n {
    padding-top: var(--fx-s-2);
    font-size: var(--fx-dash-n-size);
    line-height: var(--fx-lh-tight);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    letter-spacing: var(--fx-track-num);
    font-variant-numeric: tabular-nums;
    color: var(--fx-graphite);
}
.fx-dash-fig.is-zero .fx-dash-fig-n { color: var(--fx-ink-3); font-weight: var(--fx-fw-semibold); }
.fx-dash-fig-note { margin-top: 2px; font-size: var(--fx-fs-12); font-weight: var(--fx-fw-semibold); color: var(--fx-dash-t); }
.fx-dash-fig-go {
    position: absolute;
    top: var(--fx-s-4);
    right: var(--fx-s-3);
    width: 1rem;
    height: 1rem;
    color: var(--fx-ink-3);
    transition: transform var(--fx-dur-2) var(--fx-ease-out), color var(--fx-dur-2) var(--fx-ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .fx-dash-fig.is-link:hover .fx-dash-fig-go { transform: translateX(2px); color: var(--fx-ink); }
}
/* Trouble, when there is some: the pale tint of its status (amber for Observație, red for Urgent), the word and the
   number in its text colour, its own icon. */
.fx-dash-fig.is-on { background: var(--fx-dash-bg); box-shadow: var(--fx-shadow-1), inset 0 0 0 1px color-mix(in oklab, var(--fx-dash-c) 28%, transparent); }
.fx-dash-fig.is-on .fx-dash-fig-label { color: var(--fx-dash-t); }
.fx-dash-fig.is-on .fx-dash-fig-n { color: var(--fx-dash-t); }
.fx-dash-fig.is-on .fx-dash-fig-ico { color: var(--fx-dash-c); }
.fx-dash-fig.is-on .fx-dash-fig-go { color: var(--fx-dash-t); }
.fx-dash-fig.fx-breathe { --fx-breathe-c: var(--fx-st-urgent); }

/* Handed over today: the wide card, the last 14 days drawn beside the number (today is the dot). */
.fx-dash-fig-handed {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: end;
}
.fx-dash-fig-handed .fx-dash-fig-label { grid-column: 1 / -1; align-self: start; }
.fx-dash-spark {
    position: relative;
    display: block;
    height: 2.5rem;
    margin: 0 4px 0.375rem var(--fx-s-4);
}
.fx-dash-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-dash-spark-area { fill: color-mix(in oklab, var(--fx-st-done) 14%, transparent); stroke: none; }
.fx-dash-spark-line {
    fill: none;
    stroke: var(--fx-st-done);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.fx-dash-spark-dot {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--fx-st-done);
    box-shadow: 0 0 0 2px var(--fx-surface);
    translate: -50% -50%;
}

/* Phones: trouble first; the four stages side by side in one calm row (the whole card is the link, so no arrow);
   handed over today across the width. */
@media (max-width: 639.98px) {
    .fx-dash-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fx-s-2); }
    .fx-dash-fig { --fx-dash-n-size: var(--fx-fs-30); min-height: 5.75rem; padding: var(--fx-s-3) var(--fx-s-3) var(--fx-s-3) var(--fx-s-4); }
    .fx-dash-fig-go { top: var(--fx-s-3); }
    .fx-dash-fig.is-alert { order: -1; min-height: 0; grid-column: span 2; }
    .fx-dash-figs.has-on-1 .fx-dash-fig.is-alert { grid-column: 1 / -1; }
    .fx-dash-fig.is-alert .fx-dash-fig-n { padding-top: var(--fx-s-1); }
    .fx-dash-fig-handed { grid-column: 1 / -1; }
    .fx-dash-fig:is(.fx-dash-fig-added, .fx-dash-fig-work, .fx-dash-fig-ready, .fx-dash-fig-road) {
        --fx-dash-n-size: var(--fx-fs-24);
        min-height: 0;
        padding: var(--fx-s-3) var(--fx-s-2) var(--fx-s-2) var(--fx-s-3);
        background-position: var(--fx-s-3) 0, 0 0;
    }
    .fx-dash-fig:is(.fx-dash-fig-added, .fx-dash-fig-work, .fx-dash-fig-ready, .fx-dash-fig-road) :is(.fx-dash-fig-go, .fx-dash-dot) { display: none; }
    .fx-dash-fig:is(.fx-dash-fig-added, .fx-dash-fig-work, .fx-dash-fig-ready, .fx-dash-fig-road) .fx-dash-fig-label { padding-right: 0; font-size: var(--fx-fs-12); gap: 5px; }
    .fx-dash-fig:is(.fx-dash-fig-added, .fx-dash-fig-work, .fx-dash-fig-ready, .fx-dash-fig-road) .fx-dash-fig-label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fx-dash-fig:is(.fx-dash-fig-added, .fx-dash-fig-work, .fx-dash-fig-ready, .fx-dash-fig-road) .fx-dash-fig-n { padding-top: var(--fx-s-1); }
    .fx-dash-fig-note { font-size: 0.6875rem; }
}
@media (min-width: 640px) {
    .fx-dash-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fx-dash-figs.has-on-0 .fx-dash-fig-quiet { grid-column: span 2; }
}
/* 1024 and up: the four stages, handed over today, then the trouble cards that have something; the quiet zeros
   share one narrow column at the end. */
@media (min-width: 1024px) {
    .fx-dash-figs.has-on-2 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr) repeat(2, minmax(0, 1fr)); }
    .fx-dash-figs.has-on-1 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr) minmax(0, 1fr) minmax(8.5rem, 0.8fr); }
    .fx-dash-figs.has-on-0 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr) minmax(8.5rem, 0.8fr); }
    .fx-dash-figs.has-on-0 .fx-dash-fig-quiet { grid-column: auto; }
    .fx-dash-fig { --fx-dash-n-size: var(--fx-fs-hero); min-height: 7.25rem; }
    .fx-dash-fig-handed { grid-column: auto; }
    .fx-dash-fig-remark, .fx-dash-figs.has-on-1 .fx-dash-fig-urgent { margin-left: var(--fx-s-2); }
}
/* A landscape tablet: the two trouble cards get a little more room, so "Observație" never runs into its arrow. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .fx-dash-figs.has-on-2 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) repeat(2, minmax(0, 1.05fr)); }
    .fx-dash-fig-remark, .fx-dash-figs.has-on-1 .fx-dash-fig-urgent { margin-left: 0; }
    .fx-dash-fig.is-alert .fx-dash-fig-label { padding-right: var(--fx-s-3); gap: 6px; }
    .fx-dash-fig.is-alert .fx-dash-fig-ico { width: 0.875rem; height: 0.875rem; }
}
/* The narrowest landscape screens: the cards are links already (they lift and press); their arrows give way to the words. */
@media (min-width: 1024px) and (max-width: 1149.98px) {
    .fx-dash-fig-go { display: none; }
    .fx-dash-fig-label, .fx-dash-fig.is-alert .fx-dash-fig-label { padding-right: 0; }
}

/* ============================================================================================ The floor */
.fx-dash-floor-head { align-items: flex-start; }
.fx-dash-floor-title { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 768px) {
    .fx-dash-floor-title { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px var(--fx-s-3); }
}
.fx-dash-floor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-s-2); }
.fx-dash-live {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-2);
    height: 2.25rem;
    padding: 0 var(--fx-s-3);
    border-radius: var(--fx-r-pill);
    font-size: var(--fx-fs-13);
    color: var(--fx-ink-2);
    font-variant-numeric: tabular-nums;
}
.fx-dash-live-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--fx-ok-fill);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--fx-ok-fill) 22%, transparent);
}
.fx-dash-lines {
    display: flex;
    flex-direction: column;
    gap: var(--fx-s-3);
    padding: var(--fx-s-1) var(--fx-pad-panel) var(--fx-pad-panel);
}
/* A line: the belt's bed, sunk into the panel; steps with work waiting lift off it. */
.fx-dash-line {
    --fx-dash-belt-c: var(--fx-line-2);
    position: relative;
    padding: var(--fx-s-3) var(--fx-s-4) var(--fx-s-4);
    border-radius: var(--fx-r-card);
    background: var(--fx-sunk);
    box-shadow: var(--fx-shadow-inset);
}
.fx-dash-line.is-moving { --fx-dash-belt-c: var(--fx-ink-3); }
.fx-dash-line-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fx-s-1) var(--fx-s-3);
    min-height: 2rem;
}
.fx-dash-line-name {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    min-width: 0;
    color: var(--fx-graphite);
    text-decoration: none;
    border-radius: var(--fx-r-xs);
}
.fx-dash-line-name b { font-size: var(--fx-fs-16); font-weight: var(--fx-fw-strong); line-height: var(--fx-lh-snug); }
.fx-dash-line-go { width: 1rem; height: 1rem; flex: none; color: var(--fx-ink-3); transition: transform var(--fx-dur-2) var(--fx-ease-out); }
a.fx-dash-line-name { position: relative; }
@media (pointer: coarse) {
    a.fx-dash-line-name::before { content: ''; position: absolute; inset: -0.5rem -0.5rem; }   /* a 44px target */
}
a.fx-dash-line-name:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) {
    a.fx-dash-line-name:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    a.fx-dash-line-name:hover .fx-dash-line-go { transform: translateX(2px); color: var(--fx-ink); }
}
.fx-dash-line-made { font-size: var(--fx-fs-13); color: var(--fx-ink-3); }
/* What leaves the line: ready to load (Gata's turquoise) and in cars (Pe drum's blue). */
.fx-dash-out { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--fx-s-1) var(--fx-s-4); margin-left: auto; }
.fx-dash-out-item {
    display: inline-flex;
    align-items: baseline;
    gap: var(--fx-s-1);
    padding: 2px var(--fx-s-1);
    border-radius: var(--fx-r-xs);
    font-size: var(--fx-fs-13);
    color: var(--fx-ink-2);
    white-space: nowrap;
}
.fx-dash-out-item i { width: 0.5rem; height: 0.5rem; border-radius: 50%; align-self: center; margin-right: 2px; }
.fx-dash-out-item.is-ready i { background: var(--fx-st-ready); }
.fx-dash-out-item.is-cars i { background: var(--fx-st-road); }
.fx-dash-out-item b {
    font-size: var(--fx-fs-16);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    font-variant-numeric: tabular-nums;
    color: var(--fx-graphite);
}
.fx-dash-out-item.is-zero b { color: var(--fx-ink-3); font-weight: var(--fx-fw-semibold); }

/* The belt: steps in a row, joined by moving slats (horizontal from 768px; a vertical belt on phones). */
.fx-dash-track {
    --fx-dash-step-head: 2.125rem;    /* where the belt meets a step: the middle of its number */
    display: flex;
    align-items: flex-start;
    margin-top: var(--fx-s-3);
}
.fx-dash-group {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 13rem;              /* short lines keep compact steps; the belts take the rest */
    padding: 5px;
    border: 1px dashed transparent;
    border-radius: calc(var(--fx-r-card) - 2px);
}
.fx-dash-group.is-fork {
    flex-grow: 2;
    max-width: 26rem;
    border-color: var(--fx-line-2);
    background: color-mix(in oklab, var(--fx-surface) 45%, transparent);
}
.fx-dash-group.is-fork .fx-dash-steps { flex-direction: row; }
.fx-dash-group.is-fork .fx-dash-step { flex: 1 1 0; }
.fx-dash-fork-tag {
    position: absolute;
    top: -0.6rem;
    left: var(--fx-s-2);
    padding: 0 var(--fx-s-1);
    background: var(--fx-sunk);
    font-size: var(--fx-fs-12);
    line-height: 1.1rem;
    color: var(--fx-ink-3);
    white-space: nowrap;
}
.fx-dash-steps { display: flex; flex-direction: column; gap: var(--fx-s-2); }
/* A line of more than six groups of steps: below 1280px its belt wraps onto a second row instead of squeezing. */
@media (min-width: 768px) and (max-width: 1279.98px) {
    .fx-dash-line.is-long .fx-dash-track { flex-wrap: wrap; row-gap: var(--fx-s-4); }
    .fx-dash-line.is-long .fx-dash-group { min-width: 7rem; }
}
.fx-dash-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "n today";
    align-items: baseline;
    column-gap: var(--fx-s-2);
    min-width: 0;
    padding: var(--fx-s-2) var(--fx-s-3) var(--fx-s-2);
    border-radius: var(--fx-r-ctl);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow-1);
}
.fx-dash-step-name {
    grid-area: name;
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-semibold);
    color: var(--fx-ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fx-dash-step-n {
    grid-area: n;
    font-size: var(--fx-fs-24);
    line-height: var(--fx-lh-tight);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    letter-spacing: var(--fx-track-num);
    color: var(--fx-graphite);
}
.fx-dash-step-today { grid-area: today; font-size: var(--fx-fs-12); color: var(--fx-ink-3); white-space: nowrap; }
/* Nothing waiting: flat on the bed. The busiest step (2 or more, alone at the top): a graphite ring. */
.fx-dash-step.is-zero { background: color-mix(in oklab, var(--fx-surface) 55%, transparent); box-shadow: var(--fx-shadow-inset); }
.fx-dash-step.is-zero .fx-dash-step-n { color: var(--fx-ink-3); font-weight: var(--fx-fw-medium); }
.fx-dash-step.is-busiest { box-shadow: var(--fx-shadow-2), inset 0 0 0 2px var(--fx-graphite); }

.fx-dash-belt {
    position: relative;
    flex: 0.3 1 1.25rem;           /* the steps get the room first; long belts only where steps are short */
    min-width: 1rem;
    height: 0.625rem;
    margin-top: calc(6px + var(--fx-dash-step-head) - 0.3125rem);
}
.fx-dash-belt .fx-flow {
    --fx-flow-c: var(--fx-dash-belt-c);
    --fx-flow-period: 7px;
    height: 100%;
    border-radius: 3px;
    background: var(--fx-canvas-deep);
    box-shadow: inset 0 0 0 1px var(--fx-line-2);
    transform: scaleX(-1);            /* the slats travel the way the work goes */
}
.fx-dash-belt::after {                /* an arrowhead where the belt meets the next step */
    content: '';
    position: absolute;
    top: 50%;
    right: -3px;
    border-left: 5px solid var(--fx-dash-belt-c);
    border-block: 4px solid transparent;
    translate: 0 -50%;
}

/* Orders riding the belt: chips under the step (or the "any order" pair) where their products wait. */
.fx-dash-tray { display: flex; flex-wrap: wrap; gap: var(--fx-s-3) 6px; margin-top: var(--fx-s-2); }   /* room above each chip for its "×N" badge */
.fx-dash-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    height: 1.625rem;
    padding: 0 var(--fx-s-2);
    border-radius: var(--fx-r-pill);
    background: var(--fx-surface);
    box-shadow: inset 0 0 0 1px var(--fx-line-2);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-semibold);
    color: var(--fx-ink);
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color var(--fx-dur-2) var(--fx-ease-out), box-shadow var(--fx-dur-2) var(--fx-ease-out);
}
/* The order number is what a chip is for: it never shrinks. "×N" (products waiting) rides on the chip's corner as a
   small badge, so it takes no width; in a very narrow tray an urgent chip drops its bolt (the red ring stays). */
.fx-dash-chip > .fx-dash-num { flex: none; }
.fx-dash-chip small {
    position: absolute;
    top: -0.5rem;
    right: -0.375rem;
    z-index: var(--fx-z-raised);
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: var(--fx-r-pill);
    background: var(--fx-ink-2);
    box-shadow: 0 0 0 2px var(--fx-sunk);
    color: var(--fx-on-dark);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    line-height: 1.125rem;
    text-align: center;
    pointer-events: none;
}
.fx-dash-group { container-type: inline-size; }
@container (max-width: 5.5rem) {
    .fx-dash-chip.is-urgent .fx-dash-chip-ico { display: none; }
}
.fx-dash-chip-ico { width: 0.8125rem; height: 0.8125rem; flex: none; }
.fx-dash-chip.is-urgent { background: var(--fx-st-urgent-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-urgent) 35%, transparent); color: var(--fx-st-urgent-text); }
.fx-dash-chip.is-urgent .fx-dash-chip-ico { color: var(--fx-st-urgent); }
.fx-dash-chip.is-urgent small { background: var(--fx-st-urgent-text); }
.fx-dash-chip.is-problem { background: var(--fx-st-remark-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-remark) 45%, transparent); color: var(--fx-st-remark-text); }
.fx-dash-chip.is-problem .fx-dash-chip-ico { color: var(--fx-st-remark); }
.fx-dash-chip.is-problem small { background: var(--fx-st-remark-text); }
.fx-dash-chip.is-more { background: transparent; box-shadow: inset 0 0 0 1px var(--fx-line-2); color: var(--fx-ink-2); }
a.fx-dash-chip:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) {
    a.fx-dash-chip:not(.is-urgent, .is-problem):hover { background: var(--fx-hover); box-shadow: inset 0 0 0 1px var(--fx-ink-3); }
    a.fx-dash-chip.is-problem:hover { box-shadow: inset 0 0 0 1px var(--fx-st-remark); }
    a.fx-dash-chip.is-urgent:hover { box-shadow: inset 0 0 0 1px var(--fx-st-urgent); }
}
@media (pointer: coarse) {
    .fx-dash-chip { height: 2rem; padding: 0 0.625rem; }
    a.fx-dash-chip::before { content: ''; position: absolute; inset: -6px -3px; }   /* a 44px target */
    .fx-dash-tray { gap: var(--fx-s-3) var(--fx-s-2); }
}

/* 768 and up, calm: a step is one row (its name, then what waits there), "N azi" under it only when there is some;
   the line is tighter, so the whole floor reads at a glance. */
@media (min-width: 768px) {
    .fx-dash-line { padding: var(--fx-s-2) var(--fx-s-4) var(--fx-s-3); }
    .fx-dash-track { --fx-dash-step-head: 2rem; margin-top: var(--fx-s-2); }
    .fx-dash-step { padding: 6px var(--fx-s-3); }
    .fx-dash-step-n { font-size: var(--fx-fs-20); }
    .fx-dash-tray { margin-top: var(--fx-s-2); }
}
/* Where the steps are wide enough (1280+), the name and the number share one row. */
@media (min-width: 1280px) {
    .fx-dash-track { --fx-dash-step-head: 1.125rem; }
    .fx-dash-step {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name n" "today today";
        align-items: center;
    }
    .fx-dash-step-today { margin-top: -2px; }
}

/* Lines with nothing waiting: one calm row each, after the lines at work. */
.fx-dash-line.is-idle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fx-s-1) var(--fx-s-3);
    min-height: 3.25rem;
    padding: var(--fx-s-2) var(--fx-s-4);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--fx-line);
}
.fx-dash-line.is-idle .fx-dash-line-name b { font-size: var(--fx-fs-14); font-weight: var(--fx-fw-semibold); color: var(--fx-ink-2); }
.fx-dash-idle-note { font-size: var(--fx-fs-13); color: var(--fx-ink-3); }
.fx-dash-line.is-idle .fx-dash-out-item b { font-size: var(--fx-fs-14); }

/* Phones (and long lines below 1280px): the belt runs down, each step a row: number, name, done today. */
@media (max-width: 767.98px) {
    .fx-dash-floor-head { flex-direction: column; align-items: stretch; }
    .fx-dash-floor-tools { justify-content: space-between; }
    .fx-dash-live { padding-left: 0; }
    .fx-dash-lines { padding-inline: var(--fx-s-3); }
    .fx-dash-line { padding: var(--fx-s-3); }
    .fx-dash-line-head { padding-inline: var(--fx-s-1); }
    .fx-dash-out { margin-left: 0; flex-basis: 100%; }
    .fx-dash-line:not(.is-idle) .fx-dash-line-name { flex: 1 1 0; }
    .fx-dash-idle-note { display: none; }
    .fx-dash-line.is-idle .fx-dash-out { flex-basis: auto; margin-left: auto; }
}
@media (max-width: 767.98px) {
    .fx-dash-track { flex-direction: column; align-items: stretch; }
    .fx-dash-group { flex: none; max-width: none; padding: 0; border-width: 0; }
    .fx-dash-group.is-fork { padding: 1.375rem var(--fx-s-1) var(--fx-s-1); border-width: 1px; }
    .fx-dash-fork-tag { top: 0.25rem; left: var(--fx-s-3); background: none; }
    .fx-dash-steps, .fx-dash-group.is-fork .fx-dash-steps { flex-direction: column; gap: var(--fx-s-1); }
    .fx-dash-step {
        grid-template-columns: 2.5rem minmax(0, 1fr) auto;
        grid-template-areas: "n name today";
        align-items: center;
        min-height: 2.75rem;
        padding: var(--fx-s-1) var(--fx-s-3);
    }
    .fx-dash-step-n { font-size: var(--fx-fs-20); }
    .fx-dash-step-name { font-size: var(--fx-fs-14); }
    .fx-dash-tray { margin: var(--fx-s-2) 0 var(--fx-s-1) calc(2.5rem + var(--fx-s-3) + var(--fx-s-2)); }
    .fx-dash-belt {
        flex: none;
        width: 0.625rem;
        height: 1.125rem;
        margin: 2px 0 2px calc(var(--fx-s-3) + 1.25rem - 0.3125rem);
    }
    .fx-dash-belt .fx-flow {
        position: absolute;
        width: 1.125rem;
        height: 0.625rem;
        left: -0.25rem;
        top: 0.25rem;
        transform: rotate(90deg) scaleX(-1);
    }
    .fx-dash-belt::after { top: auto; bottom: -3px; right: auto; left: 50%; border: 0; border-top: 5px solid var(--fx-dash-belt-c); border-inline: 4px solid transparent; translate: -50% 0; }
}

/* Phones: a line folds to one glance (its steps and their numbers, the urgent orders); "Arată comenzile" opens the
   belt with its orders. The belt is the same element as on wider screens, so chips, counts and glides keep working. */
.fx-dash-mini { display: none; }
@media (max-width: 767.98px) {
    .fx-dash-mini { display: block; margin-top: var(--fx-s-2); }
    .fx-dash-line:not(.is-fx-dash-open) > .fx-dash-track { display: none; }
    .fx-dash-line.is-fx-dash-open .fx-dash-mini-steps { display: none; }
    html.fx-motion .fx-dash-line.is-fx-dash-open > .fx-dash-track { animation: fx-fade-up var(--fx-dur-4) var(--fx-ease-enter); }
}
.fx-dash-mini-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fx-s-1) 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fx-dash-mini-step {
    display: inline-flex;
    align-items: baseline;
    gap: var(--fx-s-1);
    padding: var(--fx-s-1) var(--fx-s-2);
    border-radius: var(--fx-r-ctl);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow-1);
    font-size: var(--fx-fs-13);
    color: var(--fx-ink-2);
    white-space: nowrap;
}
.fx-dash-mini-step b {
    font-size: var(--fx-fs-16);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    color: var(--fx-graphite);
}
.fx-dash-mini-step.is-zero { background: transparent; box-shadow: var(--fx-shadow-inset); }
.fx-dash-mini-step.is-zero b { color: var(--fx-ink-3); font-weight: var(--fx-fw-medium); }
/* the belt between steps, as a small arrow; steps done in any order sit side by side */
.fx-dash-mini-step.is-next { margin-left: 1.125rem; position: relative; }
.fx-dash-mini-step.is-next::before {
    content: '';
    position: absolute;
    left: -0.875rem;
    top: 50%;
    width: 0.625rem;
    height: 2px;
    border-radius: 1px;
    background: var(--fx-dash-belt-c);
    translate: 0 -50%;
}
.fx-dash-mini-step.is-and { margin-left: var(--fx-s-1); }
.fx-dash-mini-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fx-s-2);
    margin-top: var(--fx-s-2);
}
.fx-dash-mini-flag {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    height: 1.75rem;
    padding: 0 var(--fx-s-2);
    border-radius: var(--fx-r-pill);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-semibold);
    white-space: nowrap;
}
.fx-dash-mini-flag.is-urgent { background: var(--fx-st-urgent-bg); color: var(--fx-st-urgent-text); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-urgent) 35%, transparent); }
.fx-dash-mini-flag.is-urgent .fx-dash-chip-ico { color: var(--fx-st-urgent); }
.fx-dash-mini-flag.is-problem { background: var(--fx-st-remark-bg); color: var(--fx-st-remark-text); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-remark) 45%, transparent); }
.fx-dash-mini-flag.is-problem .fx-dash-chip-ico { color: var(--fx-st-remark); }
/* The toggle sits at the end of the line's name row, on phones only (wider screens always show the belt). */
@media (min-width: 768px) { .fx-dash-mini-toggle { display: none !important; } }
.fx-dash-mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    min-height: var(--fx-tap);
    margin-left: auto;
    padding: 0 var(--fx-s-2) 0 var(--fx-s-3);
    border-radius: var(--fx-r-pill);
    color: var(--fx-ink);
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-semibold);
    cursor: pointer;
}
.fx-dash-mini-toggle:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
.fx-dash-mini-chev { width: 1.125rem; height: 1.125rem; color: var(--fx-ink-3); transition: transform var(--fx-dur-3) var(--fx-ease-move); }
.fx-dash-mini-hide { display: none; }
.fx-dash-line.is-fx-dash-open .fx-dash-mini-show { display: none; }
.fx-dash-line.is-fx-dash-open .fx-dash-mini-hide { display: inline; }
.fx-dash-line.is-fx-dash-open .fx-dash-mini-chev { transform: rotate(180deg); }

/* ============================================================================================ The chart */
.fx-dash-chart { --fx-dash-plot-h: 13rem; }
.fx-dash-legend { display: flex; flex-wrap: wrap; gap: var(--fx-s-1) var(--fx-s-4); }
.fx-dash-key { display: inline-flex; align-items: center; gap: var(--fx-s-2); font-size: var(--fx-fs-13); color: var(--fx-ink-2); white-space: nowrap; }
.fx-dash-key i { width: 0.625rem; height: 0.625rem; border-radius: 3px; background: var(--fx-graphite); }
.fx-dash-key.is-handed i { height: 3px; width: 0.875rem; border-radius: 2px; background: var(--fx-st-done); }
.fx-dash-plot-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--fx-s-2);
    padding: var(--fx-s-4) var(--fx-pad-panel) calc(var(--fx-pad-panel) + 2.5rem);
}
.fx-dash-axis { position: relative; height: var(--fx-dash-plot-h); min-width: 1.25rem; }
.fx-dash-axis span {
    position: absolute;
    right: 0;
    bottom: calc(var(--fx-dash-y) * 100%);
    translate: 0 50%;
    font-size: var(--fx-fs-12);
    line-height: 1;
    color: var(--fx-ink-3);
    font-variant-numeric: tabular-nums;
}
.fx-dash-plot { position: relative; height: var(--fx-dash-plot-h); }
.fx-dash-grid-lines i { position: absolute; left: 0; right: 0; bottom: calc(var(--fx-dash-y) * 100%); border-top: 1px dashed var(--fx-line); }
.fx-dash-grid-lines i:last-child { border-top-style: solid; border-top-color: var(--fx-line-2); }
.fx-dash-cols {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.fx-dash-col { position: relative; height: 100%; outline: none; }
.fx-dash-col::before {                      /* the day under the mouse or a tap */
    content: '';
    position: absolute;
    inset: -6px 1px -2.75rem;
    border-radius: var(--fx-r-xs);
    background: var(--fx-hover);
    opacity: 0;
    transition: opacity var(--fx-dur-2) var(--fx-ease-out);
}
.fx-dash-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(62%, 1.875rem);
    height: 100%;
    margin-inline: auto;
    border-radius: 4px 4px 1px 1px;
    background: var(--fx-ink-3);
}
.fx-dash-col.is-today .fx-dash-bar { background: var(--fx-graphite); }
.fx-dash-col-v {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--fx-v) * 100% + 4px);
    text-align: center;
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-semibold);
    color: var(--fx-ink-2);
    font-variant-numeric: tabular-nums;
}
.fx-dash-col-x {
    position: absolute;
    top: calc(100% + var(--fx-s-2));
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--fx-fs-12);
    line-height: 1.25;
    color: var(--fx-ink-3);
}
.fx-dash-col-x b { font-weight: var(--fx-fw-semibold); color: var(--fx-ink-2); font-variant-numeric: tabular-nums; }
.fx-dash-col.is-today .fx-dash-col-x, .fx-dash-col.is-today .fx-dash-col-x b { color: var(--fx-graphite); font-weight: var(--fx-fw-strong); }
.fx-dash-line-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fx-dash-line-chart path { fill: none; stroke: var(--fx-st-done); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fx-dash-dots { position: absolute; inset: 0; pointer-events: none; }
.fx-dash-dots i {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--fx-st-done);
    box-shadow: 0 0 0 2px var(--fx-surface);
    translate: -50% -50%;
}
.fx-dash-chart-empty {
    position: absolute;
    left: 50%;
    top: 42%;
    translate: -50% -50%;
    margin: 0;
    padding: var(--fx-s-2) var(--fx-s-4);
    border-radius: var(--fx-r-pill);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow-inset);
    font-size: var(--fx-fs-14);
    color: var(--fx-ink-2);
    white-space: nowrap;
}
/* A day's details: a small floating card over its column. */
.fx-dash-tip {
    position: absolute;
    bottom: calc(100% + var(--fx-s-2));
    left: 50%;
    z-index: var(--fx-z-raised);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 9.5rem;
    padding: var(--fx-s-2) var(--fx-s-3);
    border-radius: var(--fx-r-ctl);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow-3);
    font-size: var(--fx-fs-13);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    translate: -50% 4px;
    transition: opacity var(--fx-dur-2) var(--fx-ease-out), translate var(--fx-dur-2) var(--fx-ease-out);
}
.fx-dash-tip b { font-weight: var(--fx-fw-semibold); color: var(--fx-graphite); margin-bottom: 2px; }
.fx-dash-col:nth-child(-n + 3) .fx-dash-tip { left: 0; translate: 0 4px; }
.fx-dash-col:nth-last-child(-n + 3) .fx-dash-tip { left: auto; right: 0; translate: 0 4px; }
.fx-dash-col:focus .fx-dash-tip { opacity: 1; translate: -50% 0; }
.fx-dash-col:focus::before { opacity: 1; }
.fx-dash-col:nth-child(-n + 3):focus .fx-dash-tip, .fx-dash-col:nth-last-child(-n + 3):focus .fx-dash-tip { translate: 0 0; }
@media (hover: hover) and (pointer: fine) {
    .fx-dash-col:hover .fx-dash-tip { opacity: 1; translate: -50% 0; }
    .fx-dash-col:nth-child(-n + 3):hover .fx-dash-tip, .fx-dash-col:nth-last-child(-n + 3):hover .fx-dash-tip { translate: 0 0; }
    .fx-dash-col:hover::before { opacity: 1; }
}
@media (max-width: 639.98px) {
    .fx-dash-chart { --fx-dash-plot-h: 10rem; }
    .fx-dash-plot-wrap { padding-inline: var(--fx-s-3) var(--fx-s-4); }
    .fx-dash-col-v { letter-spacing: -0.02em; }
}

/* ============================================================================================ Ultimele */
.fx-dash-feed { list-style: none; margin: 0; padding: 0 var(--fx-pad-panel) var(--fx-s-4); }
.fx-dash-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "who text" "who when";
    align-items: start;
    column-gap: var(--fx-s-3);
    padding: var(--fx-s-2) 0;
}
.fx-dash-feed-item .fx-dash-avatar { grid-area: who; }
.fx-dash-feed-item + .fx-dash-feed-item { border-top: 1px solid var(--fx-line); }
.fx-dash-avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--fx-canvas);
    box-shadow: var(--fx-shadow-inset);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-strong);
    color: var(--fx-ink-2);
}
.fx-dash-feed-text { grid-area: text; margin: 0; font-size: var(--fx-fs-14); line-height: var(--fx-lh-snug); color: var(--fx-ink-2); }
.fx-dash-feed-text b { font-weight: var(--fx-fw-semibold); color: var(--fx-graphite); }
.fx-dash-times {
    display: inline-block;
    margin-left: var(--fx-s-1);
    padding: 0 0.4rem;
    border-radius: var(--fx-r-pill);
    background: var(--fx-sunk);
    box-shadow: var(--fx-shadow-inset);
    font-size: var(--fx-fs-12);
    font-weight: var(--fx-fw-semibold);
    color: var(--fx-ink-2);
}
.fx-dash-feed-when { grid-area: when; margin-top: 2px; font-size: var(--fx-fs-12); color: var(--fx-ink-3); white-space: nowrap; }

/* ============================================================================================ Vehicle reminders */
.fx-dash-car {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "ico plate dates go";
    align-items: center;
    column-gap: var(--fx-s-2);
    padding-block: var(--fx-s-2);
}
.fx-dash-car .fx-dash-row-go { grid-area: go; }
.fx-dash-car-ico { grid-area: ico; width: 1.25rem; height: 1.25rem; color: var(--fx-ink-3); }
.fx-dash-car-plate { grid-area: plate; font-size: var(--fx-fs-14); font-weight: var(--fx-fw-strong); color: var(--fx-graphite); letter-spacing: 0.01em; }
.fx-dash-car-dates { grid-area: dates; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--fx-s-1) var(--fx-s-2); }
.fx-dash-due {
    display: inline-flex;
    align-items: baseline;
    gap: var(--fx-s-1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--fx-r-pill);
    font-size: var(--fx-fs-12);
    white-space: nowrap;
}
.fx-dash-due-what { font-weight: var(--fx-fw-semibold); }
.fx-dash-due-left { font-weight: var(--fx-fw-strong); }
.fx-dash-due-date { opacity: 0.85; font-variant-numeric: tabular-nums; }
.fx-dash-due.is-bad { background: var(--fx-st-urgent-bg); color: var(--fx-st-urgent-text); }
.fx-dash-due.is-warn { background: var(--fx-st-work-bg); color: var(--fx-st-work-text); }
.fx-dash-due.is-calm { background: var(--fx-sunk); color: var(--fx-ink-2); box-shadow: var(--fx-shadow-inset); }

/* ============================================================================================ Calm: zeros quiet, the rest one tap away */
/* Observație / Urgent at zero: small grey links sharing one corner of the figures band, no card of their own. */
.fx-dash-fig-quiet {
    --fx-reveal-anim: fx-fade-in;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--fx-s-1);
    min-width: 0;
}
.fx-dash-quiet {
    display: flex;
    align-items: center;
    gap: var(--fx-s-2);
    min-height: var(--fx-tap);
    padding: 0 var(--fx-s-3);
    border-radius: var(--fx-r-ctl);
    box-shadow: inset 0 0 0 1px var(--fx-line);
    color: var(--fx-ink-3);
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-semibold);
    text-decoration: none;
}
.fx-dash-quiet > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dash-quiet b { font-variant-numeric: tabular-nums; font-weight: var(--fx-fw-semibold); }
.fx-dash-quiet-ico { width: 0.9375rem; height: 0.9375rem; flex: none; }
.fx-dash-quiet:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) {
    .fx-dash-quiet:hover { background: var(--fx-hover); color: var(--fx-ink-2); }
}
@media (max-width: 639.98px) {
    .fx-dash-fig-quiet { grid-column: 1 / -1; flex-direction: row; }
    .fx-dash-quiet { flex: 1 1 0; }
}

/* A panel heading that is a link (Oferte ›), and a small link at the end of a heading (Tot istoricul ›). */
.fx-dash-head-link, .fx-dash-head-more {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    color: inherit;
    text-decoration: none;
    border-radius: var(--fx-r-xs);
}
.fx-dash-head-more { min-height: var(--fx-tap); font-size: var(--fx-fs-13); font-weight: var(--fx-fw-semibold); color: var(--fx-ink-2); }
.fx-dash-head-link:focus-visible, .fx-dash-head-more:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) {
    .fx-dash-head-link:hover, .fx-dash-head-more:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .fx-dash-head-link:hover .fx-dash-line-go, .fx-dash-head-more:hover .fx-dash-line-go { transform: translateX(2px); color: var(--fx-ink); }
}
.fx-dash-quiet-line { margin: 0; padding: 0 var(--fx-pad-panel) var(--fx-pad-panel); font-size: var(--fx-fs-14); color: var(--fx-ink-3); }

/* Oferte: the approvals asked of this person (amber), then the counts, each opening its Oferte tab. */
.fx-dash-ask {
    display: flex;
    align-items: center;
    gap: var(--fx-s-3);
    min-height: 3.25rem;
    margin: 0 var(--fx-s-3) var(--fx-s-3);
    padding: var(--fx-s-2) var(--fx-s-3) var(--fx-s-2) var(--fx-s-4);
    border-radius: var(--fx-r-card);
    background: var(--fx-st-work-bg);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx-st-work) 40%, transparent);
    color: var(--fx-st-work-text);
    text-decoration: none;
}
.fx-dash-ask-ico { width: 1.25rem; height: 1.25rem; flex: none; color: var(--fx-st-work-text); }
.fx-dash-ask-label { flex: 1; min-width: 0; font-size: var(--fx-fs-14); font-weight: var(--fx-fw-semibold); }
.fx-dash-ask-n { font-size: var(--fx-fs-24); font-weight: var(--fx-fw-strong); font-stretch: var(--fx-wdth-num); font-variant-numeric: tabular-nums; line-height: 1; }
.fx-dash-ask .fx-dash-row-go { color: var(--fx-st-work-text); }
.fx-dash-ask:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
.fx-dash-ocounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: var(--fx-s-2);
    margin: 0;
    padding: 0 var(--fx-s-3) var(--fx-s-3);
    list-style: none;
}
.fx-dash-ocount {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 4rem;
    height: 100%;
    padding: var(--fx-s-2) var(--fx-s-3);
    border-radius: var(--fx-r-card);
    background: var(--fx-sunk);
    color: var(--fx-ink-2);
    text-decoration: none;
}
.fx-dash-ocount b {
    font-size: var(--fx-fs-24);
    line-height: var(--fx-lh-tight);
    font-weight: var(--fx-fw-strong);
    font-stretch: var(--fx-wdth-num);
    font-variant-numeric: tabular-nums;
    color: var(--fx-graphite);
}
.fx-dash-ocount span { font-size: var(--fx-fs-13); line-height: var(--fx-lh-snug); }
.fx-dash-ocount.is-warn b { color: var(--fx-st-work-text); }
.fx-dash-ocount:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) {
    .fx-dash-ocount:hover { background: var(--fx-hover); color: var(--fx-ink); }
    .fx-dash-ask:hover { box-shadow: inset 0 0 0 1px var(--fx-st-work); }
}
.fx-dash-offers .fx-dash-panel-head h2 { font-size: var(--fx-fs-18); }

/* De urmărit: the first five; the rest behind "Arată toate (n)". */
.fx-dash-list > li.is-extra { display: none; }
.fx-dash-list.is-fx-dash-all > li.is-extra { display: list-item; }
.fx-dash-more-row { grid-column: 1 / -1; padding: var(--fx-s-1) var(--fx-s-2) 0; }
.fx-dash-more {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-s-1);
    min-height: var(--fx-tap);
    padding: 0 var(--fx-s-2) 0 var(--fx-s-3);
    border-radius: var(--fx-r-pill);
    color: var(--fx-ink);
    font-size: var(--fx-fs-13);
    font-weight: var(--fx-fw-semibold);
    cursor: pointer;
}
.fx-dash-more:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) { .fx-dash-more:hover { background: var(--fx-hover); } }
.fx-dash-more-hide { display: none; }
.is-fx-dash-all .fx-dash-more-show { display: none; }
.is-fx-dash-all .fx-dash-more-hide { display: inline; }
.is-fx-dash-all .fx-dash-more .fx-dash-mini-chev { transform: rotate(180deg); }
html.fx-motion .fx-dash-list.is-fx-dash-all > li.is-extra { animation: fx-fade-up var(--fx-dur-3) var(--fx-ease-enter); }

/* "+N" shows, in place, the other orders waiting at that step (and folds them again). */
.fx-dash-chip.is-extra { display: none; }
.fx-dash-tray.is-fx-dash-more > .fx-dash-chip.is-extra { display: inline-flex; }
html.fx-motion .fx-dash-tray.is-fx-dash-more > .fx-dash-chip.is-extra { animation: fx-fade-in var(--fx-dur-3) var(--fx-ease-out); }
button.fx-dash-chip.is-more { cursor: pointer; font: inherit; font-size: var(--fx-fs-12); font-weight: var(--fx-fw-semibold); }
.fx-dash-tray.is-fx-dash-more .fx-dash-more-show { display: none; }
.fx-dash-tray.is-fx-dash-more .fx-dash-more-hide { display: inline; }
button.fx-dash-chip.is-more:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (pointer: coarse) { button.fx-dash-chip.is-more::before { content: ''; position: absolute; inset: -6px -3px; } }
@media (hover: hover) and (pointer: fine) { button.fx-dash-chip.is-more:hover { background: var(--fx-hover); color: var(--fx-ink); } }

/* Below 1280 (phones, the half-width panel on an upright tablet, the narrow side column on its side): the plate on
   its own line, the dates under it. */
@media (max-width: 1279.98px) {
    .fx-dash-car { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico plate go" ". dates go"; row-gap: var(--fx-s-1); }
    .fx-dash-car-dates { justify-content: flex-start; }
}

/* ============================================================================================ Statistici */
/* The period: one segmented row (Azi · Săptămâna asta · Luna asta · Luna trecută · Alte date); the pressed one is
   graphite. The two date boxes show under it only for "Alte date". */
.fx-dash-period .fi-ac { gap: var(--fx-s-1); flex-wrap: wrap; }
.fx-dash-period .fx-dash-seg[aria-pressed="true"] {
    background: var(--fx-graphite);
    color: var(--fx-on-dark);
    box-shadow: none;
}
.fx-dash-period .fx-dash-seg[aria-pressed="true"] .fi-icon { color: var(--fx-on-dark); }

/* Per worker: one row each, his steps one tap away. */
.fx-dash-wk { list-style: none; margin: 0; padding: 0; display: grid; }
.fx-dash-wk > li + li { border-top: 1px solid var(--fx-line); }
.fx-dash-wk-row {
    display: grid;
    grid-template-columns: minmax(8rem, 15rem) minmax(3rem, 1fr) 3rem 1.25rem;
    align-items: center;
    gap: var(--fx-s-3);
    min-height: 3rem;
    padding: var(--fx-s-2) var(--fx-s-1);
    border-radius: var(--fx-r-ctl);
    cursor: pointer;
    list-style: none;
}
.fx-dash-wk-row::-webkit-details-marker { display: none; }
.fx-dash-wk-row:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: calc(var(--fx-focus-offset) * -1); }
@media (hover: hover) and (pointer: fine) { .fx-dash-wk-row:hover { background: var(--fx-hover); } }
.fx-dash-wk-name { display: flex; flex-direction: column; min-width: 0; }
.fx-dash-wk-name b { font-size: var(--fx-fs-14); font-weight: var(--fx-fw-semibold); color: var(--fx-graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dash-wk-name small { font-size: var(--fx-fs-12); color: var(--fx-ink-3); }
.fx-dash-wk-track { position: relative; height: 10px; border-radius: var(--fx-r-pill); background: var(--fx-canvas-deep); box-shadow: var(--fx-shadow-inset); overflow: hidden; }
.fx-dash-wk-track.is-small { height: 6px; }
.fx-dash-wk-track i { display: block; width: 100%; height: 100%; border-radius: var(--fx-r-pill); background: var(--fx-graphite); }
.fx-dash-wk-track.is-small i { background: var(--fx-ink-3); }
.fx-dash-wk-n { text-align: right; font-size: var(--fx-fs-18); font-weight: var(--fx-fw-strong); font-stretch: var(--fx-wdth-num); font-variant-numeric: tabular-nums; color: var(--fx-graphite); }
.fx-dash-wk-chev { width: 1.125rem; height: 1.125rem; color: var(--fx-ink-3); transition: transform var(--fx-dur-3) var(--fx-ease-move); }
.fx-dash-wk-item[open] .fx-dash-wk-chev { transform: rotate(180deg); }
.fx-dash-wk-steps { list-style: none; margin: 0 0 var(--fx-s-3); padding: 0 var(--fx-s-1) 0 var(--fx-s-4); display: grid; gap: 2px; }
.fx-dash-wk-steps li {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) minmax(3rem, 1fr) 3rem 5.5rem;
    align-items: center;
    gap: var(--fx-s-3);
    min-height: 2rem;
    font-size: var(--fx-fs-13);
}
.fx-dash-wk-step { min-width: 0; color: var(--fx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dash-wk-step small { color: var(--fx-ink-3); font-size: var(--fx-fs-12); }
.fx-dash-wk-steps b { text-align: right; font-weight: var(--fx-fw-semibold); font-variant-numeric: tabular-nums; color: var(--fx-graphite); }
.fx-dash-wk-avg { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--fx-s-1); color: var(--fx-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.fx-motion .fx-dash-wk-item[open] .fx-dash-wk-steps { animation: fx-fade-up var(--fx-dur-3) var(--fx-ease-enter); }
@media (max-width: 639.98px) {
    .fx-dash-wk-row { grid-template-columns: minmax(0, 1fr) auto 1.25rem; row-gap: var(--fx-s-1); }
    .fx-dash-wk-row .fx-dash-wk-track { grid-column: 1 / -1; grid-row: 2; }
    .fx-dash-wk-steps { padding-left: var(--fx-s-2); }
    .fx-dash-wk-steps li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; }
    .fx-dash-wk-steps .fx-dash-wk-track { display: none; }
    .fx-dash-wk-step { white-space: normal; }
}

/* ============================================================================================ Istoric */
/* A row is a sentence, as on Panou's "Ultimele"; the record it is about is a link when allowed; details fold. */
.fx-dash-hist { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--fx-s-3); padding-block: 2px; white-space: normal; }
.fx-dash-hist-body { display: flex; flex-direction: column; min-width: 0; }
.fx-dash-hist .fx-dash-feed-text { white-space: normal; }
.fx-dash-hist-on {
    font-weight: var(--fx-fw-semibold);
    color: var(--fx-graphite);
    font-variant-numeric: tabular-nums;
    text-decoration: underline;
    text-decoration-color: var(--fx-line-2);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    border-radius: var(--fx-r-xs);
}
.fx-dash-hist-on:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); }
@media (hover: hover) and (pointer: fine) { .fx-dash-hist-on:hover { text-decoration-color: currentColor; } }
@media (pointer: coarse) { .fx-dash-hist-on { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; } }
.fx-dash-hist-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--fx-s-3); }
.fx-dash-hist-meta .fx-dash-feed-when { margin-top: 0; }
.fx-dash-hist-more { font-size: var(--fx-fs-12); color: var(--fx-ink-3); }
.fx-dash-hist-more[open] { flex-basis: 100%; }
.fx-dash-hist-more > summary { display: inline-flex; align-items: center; min-height: 1.75rem; cursor: pointer; list-style: none; color: var(--fx-ink-3); }
@media (hover: hover) and (pointer: fine) { .fx-dash-hist-more > summary:hover { color: var(--fx-ink); } }
.fx-dash-hist-more > summary:focus-visible { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: var(--fx-focus-offset); border-radius: var(--fx-r-xs); }
.fx-dash-hist-more > summary::-webkit-details-marker { display: none; }
.fx-dash-hist-more > summary::after { content: ''; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.fx-dash-hist-more[open] > summary::after { rotate: -135deg; translate: 0 1px; }
.fx-dash-hist-more p { margin: 2px 0 var(--fx-s-1); overflow-wrap: anywhere; color: var(--fx-ink-2); }
@media (min-width: 768px) { .fx-dash-hist .fx-dash-feed-when { display: none; } }   /* the When column says it */
@media (max-width: 767.98px) { .fx-dash-hist-when-cell { display: none !important; } }

/* ============================================================================================ The opening */
/* The beats: the greeting (0), the figures band 80ms (its cards follow 50ms apart), the side lists 160ms, the floor
   220ms, the chart 300ms, Ultimele 340ms. Only on the first visit of the session (not under .is-fx-quick). Kept
   under 360ms: fx-motion closes an entrance 400ms after its own timing, so a later beat would be cut short. */
.fx-dash-figs { --fx-dash-at: 80ms; }
.fx-dash-attn, .fx-dash-cars { --fx-dash-at: 160ms; }
.fx-dash-floor { --fx-dash-at: 220ms; }
.fx-dash-chart { --fx-dash-at: 300ms; }
.fx-dash-activity { --fx-dash-at: 340ms; }
html.fx-motion .fx-dash[data-fx-reveal].is-fx-in:not(.is-fx-quick) { animation-delay: var(--fx-dash-at, 0ms); }
html.fx-motion .fx-dash:not(.is-fx-quick) [data-fx-stagger] > .is-fx-in:not(.is-fx-new),
html.fx-motion .fx-dash-figs:not(.is-fx-quick) > .is-fx-in:not(.is-fx-new) {
    animation-delay: calc(var(--fx-dash-at, 0ms) + 60ms + min(var(--fx-i, 0), 8) * var(--fx-stagger));
}
/* The figures: the handed-over line draws once its card is up. */
html.fx-motion .fx-dash-figs:not(.is-fx-quick) .is-fx-in .fx-draw { animation-delay: calc(var(--fx-dash-at) + 320ms + var(--fx-i, 0) * var(--fx-stagger)); }
/* The chart: bars grow one after another from the axis, then the numbers, the line and its dots. */
html.fx-motion .fx-dash-chart.is-fx-in:not(.is-fx-quick) .fx-grow-y { animation-delay: calc(var(--fx-dash-at) + 140ms + min(var(--fx-i, 0), 13) * 40ms); }
html.fx-motion .fx-dash-chart.is-fx-in:not(.is-fx-quick) .fx-draw { animation-delay: calc(var(--fx-dash-at) + 420ms); }
html.fx-motion .fx-dash-chart.is-fx-in:not(.is-fx-quick) .fx-dash-col-v {
    animation: fx-fade-in var(--fx-dur-3) var(--fx-ease-out) backwards;
    animation-delay: calc(var(--fx-dash-at) + 700ms + min(var(--fx-i, 0), 13) * 40ms);
}
html.fx-motion .fx-dash-chart.is-fx-in:not(.is-fx-quick) .fx-dash-dots i {
    animation: fx-scale-in var(--fx-dur-3) var(--fx-ease-out) backwards;
    animation-delay: calc(var(--fx-dash-at) + 600ms + var(--fx-i, 0) * 45ms);
}

/* ============================================================================================ Print */
@media print {
    .fx-dash-tip, .fx-dash-live-dot { display: none; }
    .fx-dash-panel, .fx-dash-fig, .fx-dash-step { box-shadow: none; border: 1px solid var(--fx-line-2); }
}
