/*
 * Flux office · the order screens: Comenzi (the list), the order page, Încasări. Loaded after fx-account.css and
 * before fx-calm.css. Built on fx-tokens.css (every colour, corner, depth and timing) and fx-motion.css / fx-motion.js.
 *
 * The idea, as on "Azi" (fx-home.css): each screen shows what this person acts on, one main button, the rest one tap
 * away. A list is for finding: one line per order. The order page says what happens next in one sentence, then one
 * row per product with one bar and one pill.
 *
 * Motion, only on a change: a product's bar fills segment by segment on first show; a segment that gets done later
 * fills by itself and its row glows once; the "Ce urmează" line glows once when its sentence changes. People who
 * asked their system for less motion get the final state at once.
 */

/* ================================================================================= Comenzi and Încasări: one line per row */
/* (Row height, the head's look and the pager are the same on every list: fx-calm.css, "Lists: one look".) */
.fx-list-tight .fi-ta-text-item { white-space: nowrap; }
.fx-list-tight .fi-tabs { margin-bottom: calc(var(--fx-s-1) * -1); }
/* Încasări: the total and what was paid are quiet; what is left is the number to read */
.fx-money-quiet { color: var(--fx-ink-2); }
/* "Filtre" with nothing chosen shows no count */
.fx-filters-off .fi-btn-badge-ctn { display: none; }

/* The customer, and Identificare in grey on the same line; a long one is cut with "…". */
.fx-order-who { display: flex; align-items: baseline; gap: var(--fx-s-2); min-width: 0; max-width: 34rem; }
.fx-order-who .fx-who { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-ink); }
.fx-order-who .fx-ref { flex: 0 10 auto; min-width: 3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-ink-3); font-size: var(--fx-fs-13); }
.fx-order-place, .fi-ta-cell-agent\.name .fi-ta-text-item { color: var(--fx-ink-2); }
@media (min-width: 640px) {
    .fx-list-tight .fi-ta-cell-customer\.name { width: 42%; max-width: 0; }
    .fx-list-tight .fi-ta-cell-place { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
}
/* A phone: each order is a card of two lines (number and stage, then customer and sum); no "sort by" row. */
@media (max-width: 639.98px) {
    .fx-list-tight .fi-ta-table-stacked-header-row { display: none; }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody { gap: var(--fx-s-2); }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row { padding-block: var(--fx-s-2); row-gap: 0; }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell { height: auto; }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:not(.fi-ta-selection-cell):first-of-type { padding-block: 0; }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(.fx-cell-plain) { padding-block: 0; min-width: 0; }
    .fx-list-tight .fx-order-who { max-width: none; }
    .fx-list-tight .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(.fx-cell-end) { justify-content: flex-end; }
    /* the tabs in one row that slides sideways, not three rows above the list */
    .fx-list-tight.fi-resource-list-records-page .fi-tabs:not(.fi-contained) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .fx-list-tight .fi-tabs-item { flex: none; }
}

/* The search beside the title, on every list: public/css/fx-calm.css ("Lists: one look"). */
@media (min-width: 1024px) {
    .fx-list-tight .fi-tabs { margin-inline: 0 auto; }
}

/* Page 1: the customer's last Identificare, a grey suggestion under the box; one tap puts it in. */
.fi-link.fx-suggest { color: var(--fx-ink-3); font-weight: var(--fx-fw-regular); text-align: left; }
@media (hover: hover) and (pointer: fine) { .fi-link.fx-suggest:hover { color: var(--fx-ink); } }

/* ================================================================================= The order page: the head */
/* Title, one grey line (Identificare, town, phone), the short stage line, then "Ce urmează" with the page's one
   coloured button on the same row. */
.fx-order-page .fi-header { align-items: flex-end; gap: var(--fx-s-3); }
.fx-order-page .fi-header > :first-child { flex: 1; min-width: 0; }
.fx-order-page .fi-header-subheading { display: block; max-width: none; margin-top: 2px; }
.fx-ord { display: flex; flex-direction: column; gap: var(--fx-s-2); }
.fx-ord-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--fx-s-2); color: var(--fx-ink-3); font-size: var(--fx-fs-14); }
.fx-ord-meta > * + *::before { content: '\00b7'; margin-right: var(--fx-s-2); color: var(--fx-ink-3); }
.fx-ord-meta a { color: var(--fx-ink-2); text-decoration: none; border-radius: var(--fx-r-xs); }
.fx-ord-meta a: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-ord-meta a:hover { color: var(--fx-ink); text-decoration: underline; text-underline-offset: 3px; } }
.fx-order-page .fx-journey-wrap { margin-top: 0; }
.fx-order-page .fx-journey-step { min-height: 22px; font-size: var(--fx-fs-12); }
.fx-order-page .fx-journey-step + .fx-journey-step::before { content: ''; width: 10px; height: 1px; margin-right: var(--fx-s-1); margin-left: calc(var(--fx-s-2) * -1 - 2px); background: var(--fx-line-2); }
.fx-order-page .fx-pill { min-height: 22px; font-size: var(--fx-fs-12); }

.fx-next {
    --fx-next-c: var(--fx-st-added);
    display: flex;
    align-items: baseline;
    gap: var(--fx-s-3);
    min-height: 40px;
    margin-top: var(--fx-s-2);
    padding: 9px var(--fx-s-4);
    background: var(--fx-surface);
    border-radius: var(--fx-r-card);
    box-shadow: var(--fx-shadow-1);
    color: var(--fx-ink);
    font-size: var(--fx-fs-14);
    line-height: var(--fx-lh-body);
}
.fx-next.is-work { --fx-next-c: var(--fx-st-work); }
.fx-next.is-ready { --fx-next-c: var(--fx-st-ready); }
.fx-next.is-road { --fx-next-c: var(--fx-st-road); }
.fx-next.is-done { --fx-next-c: var(--fx-st-done); }
.fx-next.is-cancel { --fx-next-c: var(--fx-st-cancel); }
.fx-next.is-remark { --fx-next-c: var(--fx-st-remark); background: var(--fx-st-remark-bg); box-shadow: inset 3px 0 0 var(--fx-st-remark); }
.fx-next-label { display: inline-flex; align-items: center; gap: var(--fx-s-2); flex: none; color: var(--fx-ink-3); font-size: var(--fx-fs-13); white-space: nowrap; }
.fx-next.is-remark .fx-next-label { color: var(--fx-st-remark-text); }
.fx-next-dot { width: 8px; height: 8px; border-radius: var(--fx-r-pill); background: var(--fx-next-c); }
.fx-next-text { min-width: 0; font-weight: var(--fx-fw-medium); overflow-wrap: anywhere; }
/* the one coloured button sits level with the sentence */
.fx-order-page .fi-header-actions-ctn { flex: none; align-self: flex-end; min-height: 40px; align-items: center; }
@media (max-width: 639.98px) {
    .fx-order-page .fi-header { flex-direction: column; align-items: stretch; }
    .fx-next { flex-direction: column; gap: 2px; }
    .fx-order-page .fi-header-actions-ctn .fi-ac { width: 100%; }
    .fx-order-page .fi-btn.fx-next-main { flex: 1; min-height: var(--fx-tap-main); }
}

/* ================================================================================= The order page: products and the side column */
.fx-order-body { align-items: start; }

/* One row per product: code, what it is, one bar, one pill. The same table sits under page 1 (.fx-order-edit). */
:is(.fx-order-page, .fx-order-edit) .fi-ta-table > tbody > tr.fi-ta-row > .fi-ta-cell { height: 44px; padding-block: 0; vertical-align: top; }
:is(.fx-order-page, .fx-order-edit) .fi-ta-table > tbody > tr.fi-ta-row > .fi-ta-cell :is(.fi-ta-text, .fi-ta-text-item) { padding-block: 0; }
:is(.fx-order-page, .fx-order-edit) .fi-ta-table > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-cell-content,
:is(.fx-order-page, .fx-order-edit) .fi-ta-table > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-actions { min-height: 43px; display: flex; align-items: center; }
:is(.fx-order-page, .fx-order-edit) .fi-ta-table > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-cell-content > * { min-width: 0; flex: 1; }
:is(.fx-order-page, .fx-order-edit) .fi-ta-header-cell { padding-block: var(--fx-s-2); font-weight: var(--fx-fw-medium); color: var(--fx-ink-3); }
:is(.fx-order-page, .fx-order-edit) .fi-ta-ctn .fi-ta-header { padding-block: var(--fx-s-3); }
:is(.fx-order-page, .fx-order-edit) tr.fx-prod { position: relative; }
:is(.fx-order-page, .fx-order-edit) tr.fx-prod > .fi-ta-cell:has(.fi-ta-actions) { position: relative; z-index: 1; }
/* an open row menu lies over the rows under it */
:is(.fx-order-page, .fx-order-edit) tr.fx-prod > .fi-ta-cell:has(.fi-dropdown-trigger [aria-expanded='true']) { z-index: 3; }
.fx-prod-code { color: var(--fx-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-prod-what { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--fx-s-2); min-width: 0; }
/* page 1 with no active line: the way to make one */
.fx-counts-link { color: var(--fx-brand-text); font-weight: var(--fx-fw-medium); text-decoration: underline; text-underline-offset: 2px; }
/* why a product came back from the car, under its name */
.fx-prod-back { flex-basis: 100%; margin-top: calc(-1 * var(--fx-s-2)); padding-bottom: var(--fx-s-2); font-size: var(--fx-fs-13); line-height: var(--fx-lh-snug); color: var(--fx-st-remark-text); }
.fx-prod-name { display: block; min-width: 0; max-width: 100%; line-height: 43px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-prod-changed { width: 7px; height: 7px; flex: none; border-radius: var(--fx-r-pill); background: var(--fx-warn-fill); }
/* Opened by a tap on the row: the line, the change, the sketch, then every step with who and when. */
.fx-prod-more { --fx-prog-c: var(--fx-st-added); flex-basis: 100%; display: grid; gap: var(--fx-s-2); padding: 0 0 var(--fx-s-3); color: var(--fx-ink-3); font-size: var(--fx-fs-13); white-space: normal; }
.fx-prod-more.is-work { --fx-prog-c: var(--fx-st-work); }
.fx-prod-more.is-ready { --fx-prog-c: var(--fx-st-ready); }
.fx-prod-more.is-road { --fx-prog-c: var(--fx-st-road); }
.fx-prod-more.is-done { --fx-prog-c: var(--fx-st-done); }
.fx-prod-line { display: flex; flex-wrap: wrap; gap: 2px var(--fx-s-3); }
/* A long product is cut with "…" while its row is closed, and reads in full once the row is open. */
@media (min-width: 640px) {
    :is(.fx-order-page, .fx-order-edit) .fi-ta-cell-summary { width: 46%; max-width: 0; }
    :is(.fx-order-page, .fx-order-edit) :is(.fi-ta-cell-steps, .fi-ta-cell-progress) { width: 26%; min-width: 9rem; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-cell-code, :is(.fx-order-page, .fx-order-edit) .fi-ta-cell-state { width: 1%; white-space: nowrap; }
}
.fx-prod-what:has(.fx-prod-more:not([style*='display: none'])) .fx-prod-name { white-space: normal; padding-block: var(--fx-s-3); line-height: var(--fx-lh-snug); }

.fx-prog { --fx-prog-c: var(--fx-st-added); display: block; width: 100%; min-width: 0; }
.fx-prog.is-work { --fx-prog-c: var(--fx-st-work); }
.fx-prog.is-ready { --fx-prog-c: var(--fx-st-ready); }
.fx-prog.is-road { --fx-prog-c: var(--fx-st-road); }
.fx-prog.is-done { --fx-prog-c: var(--fx-st-done); }
.fx-prog[data-fx-pulse] { border-radius: var(--fx-r-xs); }
.fx-prog-toggle { display: flex; align-items: center; width: 100%; height: 43px; cursor: pointer; }
/* the whole row is the button: a tap anywhere on it opens the steps */
.fx-prog-toggle::after { content: ''; position: absolute; inset: 0; }
.fx-prog-toggle:focus-visible { outline: none; }
.fx-prog-toggle:focus-visible .fx-bar { outline: var(--fx-focus-width) solid var(--fx-focus-color); outline-offset: 4px; border-radius: var(--fx-r-xs); }
.fx-bar { display: flex; align-items: center; gap: 3px; width: 100%; max-width: 15rem; }
.fx-bar-seg { flex: 1; height: 6px; min-width: 6px; border-radius: var(--fx-r-pill); background: var(--fx-line); transition: background-color var(--fx-dur-4) var(--fx-ease-out); }
.fx-bar-seg.is-done { background: var(--fx-prog-c); }
.fx-bar-seg.is-flag { background: repeating-linear-gradient(135deg, var(--fx-prog-c) 0 3px, color-mix(in oklab, var(--fx-prog-c) 45%, white) 3px 6px); }
.fx-bar-seg.is-missed { background: color-mix(in oklab, var(--fx-prog-c) 28%, white); }
.fx-bar-seg.is-next { background: var(--fx-surface); box-shadow: inset 0 0 0 1.5px var(--fx-prog-c); }
html.fx-motion .fx-bar-seg.is-done, html.fx-motion .fx-bar-seg.is-missed {
    transform-origin: left center;
    animation: fx-grow-x var(--fx-dur-4) var(--fx-ease-out) backwards;
    animation-delay: calc(120ms + var(--i, 0) * 55ms);
}
.fx-prog-steps { display: grid; gap: 3px; }
html.fx-motion .fx-prod-more { animation: fx-row-in var(--fx-dur-3) var(--fx-ease-out); }
.fx-prog-step { display: grid; grid-template-columns: 10px 5rem minmax(0, 1fr); align-items: baseline; column-gap: var(--fx-s-2); color: var(--fx-ink-3); line-height: var(--fx-lh-body); }
.fx-prog-step b { font-weight: var(--fx-fw-medium); color: var(--fx-ink-2); white-space: nowrap; }
.fx-prog-step.is-done b, .fx-prog-step.is-next b { color: var(--fx-ink); }
.fx-prog-step > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-prog-mark { width: 7px; height: 7px; border-radius: var(--fx-r-pill); background: var(--fx-line-2); transform: translateY(-1px); }
.fx-prog-step.is-done .fx-prog-mark { background: var(--fx-prog-c); }
.fx-prog-step.is-next .fx-prog-mark { background: var(--fx-surface); box-shadow: inset 0 0 0 1.5px var(--fx-prog-c); }
.fx-prog-step.is-missed .fx-prog-mark { background: color-mix(in oklab, var(--fx-prog-c) 28%, white); }
@media (hover: hover) and (pointer: fine) { :is(.fx-order-page, .fx-order-edit) tr.fx-prod:hover { background-color: var(--fx-hover); } }

/* The quiet column: Bani and Detalii. Labels in grey on the left, values on the right. */
.fx-side .fi-section-header { padding-block: var(--fx-s-3); }
.fx-side .fi-section-content { padding-block: var(--fx-s-3); }
.fx-side .fi-section-footer { padding-block: var(--fx-s-3); }
.fx-side .fi-in-entry-label { color: var(--fx-ink-3); font-size: var(--fx-fs-13); font-weight: var(--fx-fw-regular); }
.fx-side .fi-in-text-item { font-size: var(--fx-fs-14); color: var(--fx-ink); }
.fx-order-money .fi-in-entry:not(.fx-fact):not(.fx-fact-list) .fi-in-text-item { font-size: var(--fx-fs-16); font-weight: var(--fx-fw-semibold); letter-spacing: var(--fx-track-num); white-space: nowrap; }
.fx-order-facts .fi-sc { gap: var(--fx-s-2); }
.fx-fact.fi-in-entry { display: grid; grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr); align-items: baseline; column-gap: var(--fx-s-3); row-gap: 0; }
.fx-fact .fi-in-entry-label-col, .fx-fact .fi-in-entry-content-col { grid-column: auto; min-width: 0; }
.fx-fact .fi-in-entry-content-ctn, .fx-fact .fi-in-entry-content { min-width: 0; justify-content: flex-end; text-align: right; }
.fx-fact .fi-in-text-item { overflow-wrap: anywhere; }
.fx-fact a { color: var(--fx-ink); text-decoration: underline; text-decoration-color: var(--fx-line-2); text-underline-offset: 3px; }
.fx-fact-list .fi-in-text-item { font-size: var(--fx-fs-13); color: var(--fx-ink-2); }
/* a long value (the address, the e-mail) takes its own line under its label */
.fx-fact.fx-fact-wide.fi-in-entry { grid-template-columns: minmax(0, 1fr); }
.fx-fact-wide .fi-in-entry-content-ctn, .fx-fact-wide .fi-in-entry-content { justify-content: flex-start; text-align: left; }

/* A phone: each product is a card of two lines (code, what it is and the pill; then the bar and its menu). The
   page's "⋯" sits beside the title when there is no main button. */
@media (max-width: 639.98px) {
    .fx-order-page .fi-header { position: relative; }
    .fx-order-quiet .fi-header-actions-ctn { position: absolute; top: 0; right: 0; min-height: 0; }
    .fx-order-quiet .fi-header-heading, .fx-order-quiet .fi-breadcrumbs { padding-right: var(--fx-s-8); }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody { gap: var(--fx-s-2); }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fx-prod {
        grid-template-columns: auto minmax(0, 1fr) auto 28px;
        grid-template-areas: 'code what where where' 'bar bar bar act';
        align-items: start;
        column-gap: var(--fx-s-3);
        row-gap: 0;
        padding-block: var(--fx-s-1);
    }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fx-prod > .fi-ta-cell:not(.fi-ta-selection-cell) {
        height: auto;
        padding: 0;
        border-top: 0;
        align-items: flex-start;
    }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell > .fi-ta-cell-label { display: none; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell > .fi-ta-cell-content { min-height: 40px; width: 100%; text-align: left; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell > .fi-ta-cell-content :is(.fi-ta-col, .fi-ta-text-item) { width: 100%; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell-state .fi-ta-text-item { justify-content: flex-end; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell :is(.fi-ta-col, .fi-ta-text) { justify-content: flex-start; text-align: left; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell-code { grid-area: code; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell-code .fi-ta-text-item { font-size: var(--fx-fs-14); }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell-summary { grid-area: what; width: auto; min-width: 0; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell-state { grid-area: where; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > :is(.fi-ta-cell-steps, .fi-ta-cell-progress) { grid-area: bar; width: auto; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > :is(.fi-ta-cell-steps, .fi-ta-cell-progress) > .fi-ta-cell-content { min-height: 32px; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell:has(> .fi-ta-actions) { grid-area: act; padding: 0; justify-content: flex-end; }
    :is(.fx-order-page, .fx-order-edit) .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fx-prod > .fi-ta-cell > .fi-ta-actions { min-height: 32px; }
    /* a long description wraps with tight lines on a phone (the 43px line of the computer left big gaps) */
    .fx-prod-name { min-height: 40px; white-space: normal; line-height: var(--fx-lh-snug); padding-block: var(--fx-s-2); }
    .fx-prog-toggle { height: 32px; }
    .fx-bar { max-width: none; }
}

/* Încasări on a phone: two lines a card (number and delivery, then customer, what is left and the row's menu). */
@media (max-width: 639.98px) {
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row { grid-template-columns: minmax(0, 1fr) auto 28px; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell-number { grid-column: 1; grid-row: 1; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell-delivered-at { grid-column: 2 / -1; grid-row: 1; justify-content: flex-end; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell-customer\.name { grid-column: 1; grid-row: 2; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell-left-bani { grid-column: 2; grid-row: 2; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(> .fi-ta-actions) { grid-column: 3; grid-row: 2; padding: 0; border-top: 0; position: relative; z-index: 1; }
    .fx-money-page .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-actions { min-height: 24px; }
}

/* The money box (App\Filament\Support\MoneyInput): what was understood, under the box. */
.fx-money-echo { color: var(--fx-ink); font-weight: var(--fx-fw-semibold); font-variant-numeric: tabular-nums; }
.fx-money-echo.is-bad { color: var(--fx-bad); font-weight: var(--fx-fw-medium, 500); }
.fx-money-note { color: var(--fx-ink-2); }
.fx-money-echo + .fx-money-note::before { content: "· "; }

/* The order's stage line carries its dates (B2): a small day under each stage passed, how long under the current
   one. The dates hang under the words, so the line keeps its height and width; it only gains one small row. */
.fx-order-page .fx-journey.has-dates { padding-bottom: 15px; }
.fx-order-page .fx-journey-step { position: relative; }
.fx-journey-when { position: absolute; top: 100%; left: var(--fx-s-2); margin-top: 1px; color: var(--fx-ink-3); font-size: var(--fx-text-micro); font-weight: var(--fx-fw-regular); line-height: 1.2; white-space: nowrap; pointer-events: none; }
.fx-journey-step.is-now .fx-journey-when { color: var(--fx-ink-2); font-weight: var(--fx-fw-medium); }
/* a phone: passed stages are ticks, the stages to come are left out, the current one keeps its word and its date:
   one row, never two words alone on a second one */
@media (max-width: 639.98px) {
    .fx-order-page .fx-journey { flex-wrap: nowrap; }
    .fx-order-page .fx-journey-step.is-done { padding-inline: 2px; }
    .fx-order-page .fx-journey-step.is-done .fx-journey-name,
    .fx-order-page .fx-journey-step.is-later { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .fx-order-page .fx-journey-step.is-done .fx-journey-when { display: none; }
    .fx-order-page .fx-journey-step.is-done + .fx-journey-step::before { width: 6px; }
}

/* A step opened under a product: who and when read in full (they were cut beside empty space). */
.fx-prog-step { grid-template-columns: 10px auto minmax(0, 1fr); }
.fx-prog-step > span { overflow: visible; white-space: normal; text-overflow: clip; }

/* Bani: the invoice link sits level with the payment button, its icon on the same line as its words. */
.fx-order-money .fi-section-footer .fi-link { flex-wrap: nowrap; align-self: center; white-space: nowrap; }

/* Before Proiectat: what goes to the floor, one row each, with the place to correct it. */
.fx-recap { display: grid; margin: 0; text-align: start; }
.fx-recap-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--fx-s-3); padding-block: var(--fx-s-2); border-top: 1px solid var(--fx-line-soft); }
.fx-recap-row:first-child { border-top: 0; }
.fx-recap dt { color: var(--fx-ink-3); font-size: var(--fx-fs-13); }
.fx-recap dd { margin: 0; color: var(--fx-ink); font-size: var(--fx-fs-14); overflow-wrap: anywhere; }
.fx-recap-row.is-warn dd { color: var(--fx-st-remark-text); font-weight: var(--fx-fw-medium); }
.fx-recap-fix { color: var(--fx-brand-text); font-size: var(--fx-fs-13); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (pointer: coarse) { .fx-recap-fix { display: inline-flex; align-items: center; min-height: var(--fx-tap, 44px); } }
@media (max-width: 639.98px) { .fx-recap-row { grid-template-columns: 5.5rem minmax(0, 1fr) auto; } }

/* Comenzile mele (a customer's card): the day under each step reached, how long under the current one. */
.fx-home-step-when { margin-top: -4px; color: var(--fx-ink-3); font-size: var(--fx-text-micro); font-weight: var(--fx-fw-regular); white-space: nowrap; }
.fx-home-step.is-now .fx-home-step-when { color: var(--fx-ink-2); font-weight: var(--fx-fw-medium); }
