/* ============================================================================
   Fleetingo admin — design tokens
   ----------------------------------------------------------------------------
   Every colour, radius, height and step in the admin comes from here. The values
   are the ones the fuelling, vehicles and orders screens settled on, so adopting
   a token changes nothing visually -- it only moves the decision to one place.

   Rules of the house:
     - a screen never writes a raw hex; if a token is missing, add one here
     - the neutrals are blue-grey, not neutral grey (the theme's #ddd/#999/#eee
       are legacy and get replaced as each screen is touched)
     - a status colour is always a triple: base / ink / wash
       base = the 3px edge or a solid fill, ink = text on a wash, wash = the tint
       behind the ink. Never put base behind ink -- it fails contrast.

   Live reference: /styleguide.html
   ========================================================================== */

:root {

	/* ---- surfaces ------------------------------------------------------- */

	--c-white:          #ffffff;  /* panels, table body, inputs                */
	--c-ground:         #f6f8fa;  /* odd table rows                           */
	--c-ground-soft:    #fbfcfd;  /* check panel                              */
	--c-ground-bar:     #f7f9fa;  /* filter bar above a listing               */
	--c-head:           #eef2f6;  /* form section head, menus, modal head      */
	--c-table-head:     #dce2e8;  /* table head: the odd row's blue-grey, taken down to a head's depth */
	--c-table-head-ink: #1f242a;  /* its text                                  */
	--c-table-head-muted: #56616d; /* its quiet parts: idle sort icon, subtitle; 4.8:1 on the head (#6b7785 was 3.5, DS5-04) */
	--c-table-head-line: #cdd5dc; /* between its rows                          */
	--c-table-head-edge: #7a8591; /* under it -- what sets it off the rows      */

	/* ---- side menu (was the theme's slate, 15. 9. 2026) -------------------- */

	--c-nav:            #2a3039;  /* the rail: dark grey with the blue tint of the table head */
	--c-nav-deep:       #222831;  /* hover and the open section on the rail    */
	--c-nav-panel:      #343b45;  /* a flyout of a section                     */
	--c-nav-panel-2:    #3e4650;  /* a flyout inside a flyout (classic)        */
	--c-nav-mark:       #ffffff;  /* the current section and screen: plain white, no status colour in the menu */
	--c-filter:         #f1f5f8;  /* filter row inside a table head           */
	--c-sunk:           #eceff2;  /* readonly and disabled fields             */
	--c-dashed:         #fafbfc;  /* empty state, "add" placeholder           */

	/* ---- lines ---------------------------------------------------------- */

	--c-line:           #dfe4e8;  /* the workhorse: section frames, table head */
	--c-line-soft:      #f1f3f5;  /* between two table rows                    */
	--c-line-panel:     #e5e9ec;  /* panel frame, tab strip, filter bar        */
	--c-line-input:     #c4cfd8;  /* field at full height                      */
	--c-line-input-sm:  #d5dde3;  /* field at 30px, inside a filter row        */
	--c-line-chip:      #d8dde2;  /* preset chip, neutral 3px edge             */
	--c-line-quiet:     #eef1f3;  /* under a form legend                       */

	/* ---- text ----------------------------------------------------------- */

	--c-ink-field:      #000000;  /* what a field holds: seen at a glance against an empty one */
	--c-ink-strong:     #1f242a;  /* the figure the reader came for           */
	--c-ink:            #333a40;  /* body text                                */
	--c-label:          #4c5560;  /* column heads, form section heads         */
	--c-soft:           #66727e;  /* field labels, hints, units               */
	--c-muted:          #647180;  /* second-rank data inside a row; 4.7:1 on the odd row (DS-04) */
	--c-quiet:          #b6bec6;  /* an icon that is off                      */
	--c-faint:          #c4ccd4;  /* empty state icon                         */

	/* ---- status: success / teal ----------------------------------------- */

	--c-ok:             #22baa0;
	/* DS5-03: a wash is opaque -- the old 14 % of the base laid on white -- and the ink a step darker. A
	   translucent wash went darker on the odd row and darker again under the pointer, and the pills (11 px)
	   fell to 3.5-4.4:1; now every ink is 5.2:1 or more on its wash wherever the wash lies. */
	--c-ok-ink:         #0c6b58;  /* 5.7:1 on its wash, 6.4:1 on the surface */
	--c-ok-wash:        #e0f5f2;  /* was rgba(34, 186, 160, 0.14) */
	--c-ok-deep:        #107560;  /* active preset chip: white text on this   */
	--c-row-hover:      rgba(104, 128, 156, 0.12);  /* a table row under the pointer: the blue-grey of the table head and the menu, faint; translucent, so it shows on a striped row too */

	/* ---- status: info / cyan -- also the focus colour -------------------- */

	--c-info:           #12afcb;
	--c-info-ink:       #086a7b;  /* 5.5:1 on its wash (DS5-03) */
	--c-info-wash:      #def4f8;  /* was rgba(18, 175, 203, 0.14) */
	--c-focus-ring:     rgba(18, 175, 203, 0.35);  /* the halo around the 2px edge; 10 % was not to be seen (DS5-05) */

	/* ---- status: warning / amber ---------------------------------------- */

	--c-warn:           #e6a800;
	--c-warn-ink:       #7a5800;  /* 5.8:1 on its wash (DS5-03); #a97900 was 3.9:1 (DS4-01) */
	--c-warn-wash:      #fbf1d6;  /* was rgba(230, 168, 0, 0.16) */

	/* ---- status: danger / red ------------------------------------------- */

	--c-bad:            #f25656;
	--c-bad-ink:        #b82c2c;  /* 5.2:1 on its wash (DS5-03; #cf3434 was 4.0 on the odd row) */
	--c-bad-wash:       #fde7e7;  /* was rgba(242, 86, 86, 0.14) */
	--c-bad-deep:       #b82c2c;  /* a solid red under white text: the count on the bell, 6.1:1 (DS5-04; the base was 3.4) */

	/* ---- status: purple -- a second currency, a co-driver ---------------- */

	--c-alt:            #7a6fbe;
	--c-alt-ink:        #5f53ad;
	--c-alt-wash:       #ecebf6;  /* was rgba(122, 111, 190, 0.14) */

	/* ---- neutral status -- "nothing to report" --------------------------- */

	--c-none-wash:      #eceef0;  /* was rgba(120, 130, 140, 0.14); a grey pill writes --c-neutral-ink on it (DS5-03) */
	--c-none-wash-soft: #eff0f2;  /* was rgba(120, 130, 140, 0.12) */
	--c-neutral-wash:   #eceff2;  /* a draft, a concept: the pill that reports nothing yet */
	--c-neutral-ink:    #4b5563;
	--c-line-strong:    #c4cdd5;  /* a frame that has to hold its own against the panel */

	/* ---- links and row affordances --------------------------------------- */

	--c-link:           #337ab7;
	--c-link-ink:       #2c6ca5;  /* a link on the grey grounds: 5.2:1 on --c-ground, #337ab7 was 4.28 (DS6-07) */
	--c-link-strong:    #245a8a;  /* a link on a coloured or darker ground: 5.5:1 on #dce2e8, 5.6 on the red row (DS10-03) */
	--c-muted-strong:   #55616d;  /* second-rank text on a coloured ground: 4.9:1 on the red row, 5.5 on the teal (DS10-03) */
	--c-link-wash:      rgba(51, 122, 183, 0.10);

	/* ---- radii ----------------------------------------------------------- */

	--r:                3px;   /* everything square-ish: panels, fields, chips */
	--r-btn:            4px;   /* icon buttons in a row                        */
	--r-icon:           9px;   /* the rounded square behind a stat/check icon  */
	--r-chip:           13px;  /* preset pill                                  */
	--r-pill:           20px;  /* soft badge                                   */

	/* ---- heights --------------------------------------------------------- */

	--h-row:            44px;  /* table row                                    */
	--h-head:           41px;  /* sticky table head                            */
	--h-input:          34px;  /* field at full height                         */
	--h-input-sm:       30px;  /* field inside a filter row                    */
	--h-icon-btn:       28px;  /* icon-only action in a row                    */
	--h-icon-box:       32px;  /* check icon                                   */
	--h-stat-icon:      38px;  /* stat card icon                               */

	/* ---- type ------------------------------------------------------------ */

	--fs-micro:         11px;  /* column heads, badges, units, hints           */
	--fs-sm:            12px;  /* field labels, secondary text                 */
	--fs:               13px;  /* body                                         */
	--fs-md:            14px;  /* an amount that matters, a check title        */
	--fs-lg:            16px;  /* a headline figure in a form                  */
	--fs-xl:            19px;  /* stat card value                              */

	--fw-normal:        400;
	--fw-medium:        500;
	--fw-semi:          600;   /* every heading and figure in the admin        */
	--fw-bold:          700;   /* the licence plate, and little else           */

	--ls-caps:          0.5px; /* small-caps headings                          */
	--ls-caps-tight:    0.2px; /* column heads, badges                         */

	/* ---- spacing --------------------------------------------------------- */

	--sp-1:             4px;
	--sp-2:             6px;
	--sp-3:             8px;
	--sp-4:             10px;
	--sp-5:             14px;
	--sp-6:             16px;
	--sp-7:             18px;
	--sp-8:             20px;

	/* ---- elevation ------------------------------------------------------- */

	--shadow-card:      0 5px 5px -5px rgba(0, 0, 0, 0.1);

	/* ---- veils -----------------------------------------------------------
	   A tint laid over whatever is underneath, for things that are not a colour
	   of their own: weekend shading, a row hover, the empty track behind a bar.
	   Written as black here and as white in dark mode, so a "slightly darker"
	   tint does not become an invisible one on a dark surface.                */

	--veil-soft:        rgba(0, 0, 0, 0.04);  /* barely there: weekend, row hover */
	--veil:             rgba(0, 0, 0, 0.08);  /* visible: the track behind a bar  */

	/* ---- the 3px status edge (stat card, check panel) -------------------- */

	--edge-w:           3px;
}


/* ============================================================================
   Dark mode
   ----------------------------------------------------------------------------
   Same tokens, other values. A screen that speaks tokens is already dark; the
   legacy stylesheets that still write raw hex are caught in dark.css.

   Two names read wrong down here and are kept anyway, because renaming them
   would touch every screen: --c-white is "the surface a panel, a table body and
   an input sit on", and --c-ink is "body text". In dark mode the first is nearly
   black and the second nearly white.

   The status triples keep their hue and swap their job: on a dark wash the ink
   has to be lighter than the base, not darker.
   ========================================================================== */

:root[data-theme="dark"] {

	/* ---- surfaces ------------------------------------------------------- */

	--c-white:          #191e26;
	--c-ground:         #1e242d;
	--c-ground-soft:    #1c212a;
	--c-ground-bar:     #1b212a;
	--c-head:           #242c37;
	--c-table-head:     #262b33;
	--c-table-head-ink: #e7edf3;
	--c-table-head-muted: #9aa8b8;
	--c-table-head-line: #313944;
	--c-table-head-edge: #5b6776;
	--c-nav-mark:       #ffffff;
	--c-row-hover:      rgba(255, 255, 255, 0.05);  /* a dark grey would vanish on the dark rows */
	--c-filter:         #262f3b;
	--c-sunk:           #151920;
	--c-dashed:         #1b2028;

	/* the page behind the panels; light mode gets this from modern.css */
	--c-canvas:         #12161c;

	/* ---- lines ---------------------------------------------------------- */

	--c-line:           #313b48;
	--c-line-soft:      #272f3a;
	--c-line-panel:     #2c353f;
	--c-line-input:     #3c4655;
	--c-line-input-sm:  #353f4c;
	--c-line-chip:      #3c4655;
	--c-line-quiet:     #28303a;

	/* ---- text ----------------------------------------------------------- */

	--c-ink-field:      #ffffff;
	--c-ink-strong:     #eaeef3;
	--c-ink:            #d4dbe3;
	--c-label:          #aab5c1;
	--c-soft:           #94a1af;
	--c-muted:          #98a5b3;  /* 5:1 on the hovered row (DS-04)           */
	--c-quiet:          #5f6a77;
	--c-faint:          #4a5462;

	/* ---- status: success / teal ----------------------------------------- */

	--c-ok:             #26c9ac;
	--c-ok-ink:         #4ed7bd;
	--c-ok-wash:        rgba(38, 201, 172, 0.16);
	--c-ok-deep:        #12806b;  /* white text on it 4.85:1, 3.2:1 against the ground (DS2-07) */

	/* ---- status: info / cyan -- also the focus colour -------------------- */

	--c-info:           #29bcd6;
	--c-info-ink:       #55cfe4;
	--c-info-wash:      rgba(41, 188, 214, 0.16);
	--c-focus-ring:     rgba(41, 188, 214, 0.35);

	/* ---- status: warning / amber ---------------------------------------- */

	--c-warn:           #efb42b;
	--c-warn-ink:       #f2c353;
	--c-warn-wash:      rgba(239, 180, 43, 0.16);

	/* ---- status: danger / red ------------------------------------------- */

	--c-bad:            #f2696a;
	--c-bad-ink:        #ff8c8c;
	--c-bad-wash:       rgba(242, 105, 106, 0.17);
	--c-bad-deep:       #c23b3b;  /* white text on it 5.3:1 (DS5-04) */

	/* ---- status: purple -------------------------------------------------- */

	--c-alt:            #8d82d4;
	--c-alt-ink:        #a89fe3;
	--c-alt-wash:       rgba(141, 130, 212, 0.20);

	/* ---- neutral status --------------------------------------------------- */

	--c-none-wash:      rgba(148, 163, 179, 0.15);
	--c-none-wash-soft: rgba(148, 163, 179, 0.10);
	--c-neutral-wash:   rgba(148, 163, 179, 0.15);  /* muted like the coloured pills, never a light one (DS4-10) */
	--c-neutral-ink:    #c3ccd6;
	--c-line-strong:    #46515f;

	/* ---- links and row affordances --------------------------------------- */

	--c-link:           #6db4e9;
	--c-link-ink:       #6db4e9;
	--c-link-strong:    #8cc6f0;
	--c-muted-strong:   #a9b5c2;
	--c-link-wash:      rgba(109, 180, 233, 0.14);

	/* ---- veils -- black on a dark surface is not a tint, it is nothing ---- */

	--veil-soft:        rgba(255, 255, 255, 0.05);
	--veil:             rgba(255, 255, 255, 0.09);

	/* ---- elevation -- a shadow only reads on a dark ground if it is deeper */

	--shadow-card:      0 5px 5px -5px rgba(0, 0, 0, 0.55);
}


/* light mode names the page behind the panels too, so dark.css can use one token */
/* 13. 11. 2026 (David): a shade darker than the theme's #f1f4f9, so the white panels stand out */
:root { --c-canvas: #d5dce6; }
:root:not([data-theme="dark"]) .page-inner { background: var(--c-canvas); }

/* the grey text straight on that canvas -- an intro over the panels, a hint, "Zobrazeno …", a link beside a board -- read
   3.6:1 in --c-soft / --c-muted (4.0:1 a link): on the canvas the two greys are the label's ink, 5.5:1, and a link the
   deep blue, 5.3:1. Inside anything white (a panel, a card, a button, the header) they are the theme's again, so
   nothing in the panels changes (wave 4 of the thirteenth UX review). Light mode only: dark's canvas is unchanged */
:root {
	--c-on-canvas:      #4c5560;
	--c-link-on-canvas: #1f5a8c;
}
:root:not([data-theme="dark"]) :is(.page-inner, #modal-screenSettings .modal-body:has(.slim-tabs), #modal-orderDetail .modal-body,
	#modal-tripDetail .modal-body, #modal-vehicleInfo .modal-body, #modal-driverInfo .modal-body) {
	--c-soft:  var(--c-on-canvas);
	--c-muted: var(--c-on-canvas);
}
:root:not([data-theme="dark"]) :is(.page-inner, .modal-body) :is(.panel, .stat-card, .ff-filter, .btn, .page-title, .bottom-container,
	.dropdown-menu, .popover, .tooltip, .select2-container, .well, .card, .tab-content, .table, .list-group, .modal-content,
	.alert, .notification-panel, .menu-variant-list, .global-search-trigger, .db-view, [class*="badge"], [class*="-card"]) {
	--c-soft:  #66727e;
	--c-muted: #647180;
}
:root:not([data-theme="dark"]) .page-inner a:not([class]):not(:is(.panel, .stat-card, .ff-filter, .page-title, .bottom-container, .dropdown-menu,
	.popover, .well, .card, .tab-content, .table, .alert, .modal-content, .nav, .pagination, [class*="badge"], [class*="-card"]) a) {
	color: var(--c-link-on-canvas);
}

/* S15-06 (wave 4 of the fifteenth UX review, ux-lint contrast): what was still under 4.5:1 in light mode --
   a red word straight on the canvas (4.4:1, a darker red 5.3:1, the panels keep theirs), a link with a class of its
   own in a hint on the canvas (4.0:1), the greys on the grey ground of a form (.ff-ground, 4.4:1), on an active
   row's wash (4.3:1) and the time under a sent message (1.7:1), and the plain grey count badge (4.5:1) */
:root:not([data-theme="dark"]) .page-inner { --c-bad-ink: #a32727; }
:root:not([data-theme="dark"]) .page-inner :is(.panel, .stat-card, .ff-filter, .page-title, .modal-content, .alert, .table,
	.dropdown-menu, .popover, .tooltip, .well, .card, [class*="badge"], [class*="-card"]) {
	--c-bad-ink: #b82c2c;
}
:root:not([data-theme="dark"]) .page-inner .content-container > .ff-form-hint a { color: var(--c-link-on-canvas); }
:root:not([data-theme="dark"]) .ve-info-dl a { color: var(--c-link-ink); }
:root:not([data-theme="dark"]) :is(.ff-ground, .fleet-map-row-active, .ff-nest-row.active, .ff-message, .dm-ctx-tabs) {
	--c-soft:  var(--c-on-canvas);
	--c-muted: var(--c-on-canvas);
}
:root:not([data-theme="dark"]) .ff-message .dm-meta,
:root:not([data-theme="dark"]) .ff-message .dm-meta a { color: var(--c-soft); }
:root:not([data-theme="dark"]) .badge:not([class*="badge-"]) { background-color: #66727e; }

/* ---------------------------------------------------------------------------------------------
   Keyboard focus (UX review, DS-02).
   Inputs had a visible focus, links, buttons, tabs and row actions did not -- twenty of the
   forty-nine focusable things on an order were invisible to a keyboard. One ring for all of them,
   drawn only for keyboard focus (:focus-visible), so a mouse click does not light up the page.
   --------------------------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.dropdown-toggle:focus-visible,
.nav-tabs a:focus-visible,
select:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
	outline: 2px solid var(--c-info) !important;
	outline-offset: 2px;
	box-shadow: none;
}

/* Bootstrap's #777 was 4.21:1 on the striped row -- the dashes of the empty cells (DS2-21); the token is
   4.7:1 and follows the dark mode */
.text-muted { color: var(--c-muted); }

/* Coloured text only through an ink (DS4-01): the theme's .text-* were the base colours -- the amber of an estimated
   margin 1.46:1, the teal 2.44:1, the cyan 2.62:1, the red 3.36:1. The inks are 4.5:1 and more on the surface and on
   the odd row, and the dark mode swaps them with the rest. The base stays for an edge or a solid fill. */
.text-primary { color: var(--c-alt-ink); }
.text-success { color: var(--c-ok-ink); }
.text-info    { color: var(--c-info-ink); }
.text-warning { color: var(--c-warn-ink); }
.text-danger  { color: var(--c-bad-ink); }
a.text-primary:hover, a.text-primary:focus { color: var(--c-alt-ink); text-decoration: underline; }
a.text-success:hover, a.text-success:focus { color: var(--c-ok-ink); text-decoration: underline; }
a.text-info:hover, a.text-info:focus       { color: var(--c-info-ink); text-decoration: underline; }
a.text-warning:hover, a.text-warning:focus { color: var(--c-warn-ink); text-decoration: underline; }
a.text-danger:hover, a.text-danger:focus   { color: var(--c-bad-ink); text-decoration: underline; }

/* ---------------------------------------------------------------------------------------------
   Remains of contrast (DS6-07). This file comes before custom.css, so each rule is one class more
   specific than the one it corrects there.
   --------------------------------------------------------------------------------------------- */
/* the numbers of a route's stops: white on the teal 2.44:1 and on the red 3.36:1. The ink of the state on
   its wash, the edge in the full colour */
:is(.tp-stop, .tl-stop).tp-stop-loading .tp-dot { background: var(--c-ok-wash); border-color: var(--c-ok); color: var(--c-ok-ink); }
:is(.tp-stop, .tl-stop).tp-stop-unloading .tp-dot { background: var(--c-bad-wash); border-color: var(--c-bad); color: var(--c-bad-ink); }
:is(.tp-stop, .tl-stop).tp-stop-both .tp-dot {
	background: linear-gradient(90deg, var(--c-bad-wash) 50%, var(--c-ok-wash) 50%) padding-box, var(--c-white);
	border-color: var(--c-bad) var(--c-ok) var(--c-ok) var(--c-bad);
	color: var(--c-ink);
	text-shadow: none;
}
/* a count on a tab ("Doklady k dodání 1"): white on the red was 3.36:1 */
.nav-tabs .badge.badge-danger { background-color: var(--c-bad-wash); color: var(--c-bad-ink); }
.nav-tabs .badge.badge-warning { background-color: var(--c-warn-wash); color: var(--c-warn-ink); }
.nav-tabs .badge.badge-success { background-color: var(--c-ok-wash); color: var(--c-ok-ink); }
/* the warning alert of Bootstrap: its brown text 4.31:1 and the blue links 4.05:1 on the pale amber */
.alert.alert-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); border-color: transparent; }
.alert.alert-warning a:not(.btn) { color: var(--c-warn-ink); text-decoration: underline; }
/* and the danger one (DS7-05): #a94442 on #f1d9d9 was 4.36:1 ("Sazba stojného není nastavená.") */
.alert.alert-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); border-color: transparent; }
.alert.alert-danger a:not(.btn) { color: var(--c-bad-ink); text-decoration: underline; }
/* links on a grey ground -- a phone in a contact on the order card, the count of users of a role (DS7-05):
   #337ab7 on the odd row and the card ground was 4.28:1 */
.table-striped > tbody > tr > td > a.row-as-link-ignore:not(.btn, [class*="text-"], [class*="badge"], .label),
/* ... and one under the name in a <small>: the phones of Partneři, 4.28:1 on the odd row (DS10-03) */
.table-striped > tbody > tr > td > small > a.row-as-link-ignore:not(.btn, [class*="text-"], [class*="badge"], .label),
.ff-partner-card a:not(.btn, [class*="text-"], [class*="badge"]),
.ff-form-hint a:not(.btn, [class*="text-"], [class*="badge"]) { color: var(--c-link-ink); }
/* Bootstrap's #777 of a heading's <small> ("·" on the vehicle card): 3.74:1 in the dark mode, 4.48 on white */
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) small { color: var(--c-muted); }
/* links on the grey of a stop's card and of an odd row: the link blue 4.28:1 on --c-ground */
.tp-card a:not(.btn, [class*="badge"]), .ff-partner-card-link { color: var(--c-link-ink); }

/* ---------------------------------------------------------------------------------------------
   Read-only fields (DS6-12): a locked Select2 drew its arrow and the value at 4.26:1, as if it were
   a field to click. Locked, it reads as a value: the text in the body ink, no arrow, no hand.
   --------------------------------------------------------------------------------------------- */
.select2-container.select2-container--default.select2-container--disabled .select2-selection__rendered { color: var(--c-ink) !important; user-select: text; }
.select2-container.select2-container--disabled .select2-selection__arrow,
.select2-container.select2-container--disabled .select2-selection__clear { display: none !important; }
.select2-container.select2-container--disabled .select2-selection { cursor: text !important; }
select.form-control[disabled], select.form-control.ff-readonly { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: none; cursor: text; }
.form-control[readonly], .form-control[disabled] { color: var(--c-ink); }
/* a whole card the user may only read (BaseModulePresenter::disableFormControls): the field keeps a subdued frame --
   lighter line and a faint ground than an editable one, so it still reads as a field, plainly not to be typed into
   (David 18. 11. 2026: without a frame "Fakturované km" showed its bare value beside a framed "km") -- no arrow, no
   button that is pressed in vain */
form[data-ff-readonly] .form-control[disabled],
form[data-ff-readonly] .select2-container--disabled .select2-selection {
	background: var(--c-ground) !important; border-color: var(--c-line) !important; box-shadow: none !important; cursor: text !important;
}
/* the unit beside it ("km", "CZK") in the same subdued frame, one piece with its field */
form[data-ff-readonly] .input-group-addon { background-color: var(--c-ground); border-color: var(--c-line); color: var(--c-soft); }
form[data-ff-readonly] textarea.form-control[disabled] { resize: none; }
form[data-ff-readonly] :is(button, input)[type="submit"][disabled],
form[data-ff-readonly] .input-group-btn .btn[disabled],
form[data-ff-readonly] .input-group-addon .btn[disabled] { display: none !important; }
/* an empty value shows "—" (BaseModulePresenter::disableFormControls), in the colour of an empty value elsewhere */
form[data-ff-readonly] .form-control[disabled]::placeholder { color: transparent; }
form[data-ff-readonly] .form-control[disabled][placeholder="—"]::placeholder { color: var(--c-muted); opacity: 1; }
/* an empty "Fakturované km" says what applies instead ("Podle trasy (130 km)") -- a value, not a typing hint */
form[data-ff-readonly] .form-control[disabled][name="billed_km"]::placeholder { color: var(--c-muted); opacity: 1; }
/* nothing here is to be filled in, so nothing is required (S8-17): no asterisk on a label or a panel's head; an empty
   select reads "—" (disableFormControls) in the colour of an empty value */
form[data-ff-readonly] .ff-required::after { content: none !important; }
form[data-ff-readonly] .ff-required-missing { display: none !important; }
form[data-ff-readonly] .form-group.has-warning label { color: inherit; }
form[data-ff-readonly] .select2-container--disabled .select2-selection__placeholder { color: var(--c-muted) !important; }
/* a date and its time on one line ("Probíhá · 04.11.2026 08:23" broke before the time) */
#snippet--operationalState > small { white-space: nowrap; }
