body { color: var(--c-ink-strong); }

/* LAYOUT */
.page-content { display: flex; width: 100vw; height: 100vh; }

.page-content .page-sidebar { width: 100px; display: flex; flex-direction: column; justify-content: space-between; }
/* the rail scrolls on its own (DS2-01): at 1366×768 its end was under the edge, and the only way to Nastavení was
   to scroll the whole document -- which took the title bar away and left a grey band under the content. The
   panels are fixed to the window and placed by custom.js, so this box does not clip them. Desktop only: below
   768 px the rail is the off-canvas drawer with rules of its own. */
@media (min-width: 768px) {
	/* !important against the theme's own `.page-sidebar { height: auto !important; overflow: visible !important }` */
	.page-content .page-sidebar {
		flex: 0 0 auto;
		height: 100vh!important;
		overflow-x: hidden!important;
		overflow-y: auto!important;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
	}
}
.page-content .page-sidebar .accordion-menu { width: 100%; padding: 20px 0; }
.page-content .page-sidebar .accordion-menu a { color: #ffffff; }
.page-content .page-sidebar .accordion-menu a span.menu-icon { margin-bottom: 5px; }
.page-content .page-sidebar .accordion-menu > li > a { padding: 15px 10px; }
.page-content .page-sidebar .accordion-menu > li > a > p { font-size: 12px; }
.page-content .page-sidebar .accordion-menu > li.divider { background-color: var(--c-muted); }
.page-content .page-sidebar .accordion-menu > li { width: 100%; }

/* the side menu in a dark blue-grey, the tint of the table head, instead of the theme's slate (testing, 15. 9. 2026); white.css
   is loaded before this file, so the same selectors win here. The dark mode keeps its own near-black. */
.sidebar,
.sidebar-header,
.menu { background: var(--c-nav); }
.menu.accordion-menu > li > a:hover,
.menu.accordion-menu > li.active > a,
.menu.accordion-menu > li.active.open > a,
.menu.accordion-menu li.open > a,
.menu.accordion-menu ul,
.hover-menu .accordion-menu > li.droplink:hover > a { background: var(--c-nav-deep); }

/* ------------------------------------------------------------------- the section menu
 *
 * One tree of markup, three layouts, switched by data-menu on <html>. All three stay: they
 * suit different work, and the choice is the user's, not the codebase's.
 *
 *
 *   classic  section → group → screen, each its own flyout. What the menu always did.
 *   mega     one panel per section with every group laid out as a column. One hover to any screen.
 *   columns  no flyout for the open section at all -- its panel is a second column that stays.
 *            Nothing is covered and nothing vanishes under the mouse; costs 165px of width.
 *
 * What all three share is below; what only one of them does is in its own block further down.
 * ---------------------------------------------------------------------------------- */

.page-content .page-sidebar .accordion-menu > li > a { position: relative; }
.page-content .page-sidebar .accordion-menu > li > .menu-panel {
	display: none;
	position: absolute;
	top: 0;
	left: 100px;
	z-index: 99;
	padding: 14px 6px 14px 16px;
	background: var(--c-nav-panel);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 4px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	overflow-x: hidden;
}
.hover-menu .accordion-menu > li:hover > .menu-panel,
.hover-menu .accordion-menu > li:focus-within > .menu-panel { display: block; } /* keyboard reaches the submenu too (DS-02) */
/* a touch screen has no hover to open a flyout with: the first tap opens it (custom.js sets
   .ff-tap-open), the second goes to the section. Below 768 px the phone accordion takes over. */
@media (hover: none) and (min-width: 768px) {
	.page-content .page-sidebar .accordion-menu > li.ff-tap-open > .menu-panel { display: block; }
	[data-menu="classic"] .menu-group.ff-tap-open > .menu-group-items { display: block; }
	[data-menu="classic"] .menu-group > .menu-group-title { cursor: pointer; }
}

/* the panel is fixed to the window, beside its rail item (custom.js sets --ff-panel-top): the rail scrolls on
   its own (DS2-01) and would clip a panel hanging out of it. A panel that would hang off the bottom is moved up
   by the same script, so it no longer grows upwards from a fixed corner. */
@media (min-width: 768px) {
	.page-content .page-sidebar .accordion-menu > li > .menu-panel { position: fixed; top: var(--ff-panel-top, 0px); bottom: auto; }
}

.menu-group { break-inside: avoid; page-break-inside: avoid; }
.menu-group-title {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}
.menu-group-arrow { display: none; }

.page-content .page-sidebar .accordion-menu .menu-link {
	display: block;
	padding: 5px 9px;
	margin: 0 -9px;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.82);
	/* the rail centres every menu link from a body-level selector; a panel link is a list item */
	text-align: left!important;
	transition: background-color 110ms, color 110ms;
}
.page-content .page-sidebar .accordion-menu .menu-link:hover,
.page-content .page-sidebar .accordion-menu .menu-link:focus {
	background-color: rgba(255, 255, 255, 0.11);
	color: #ffffff;
	text-decoration: none;
}
/* the screen the user is on, marked in the panel it lives in */
.page-content .page-sidebar .accordion-menu .menu-link.is-current {
	background-color: rgba(255, 255, 255, 0.14);
	box-shadow: inset 2px 0 0 var(--c-nav-mark);
	color: #ffffff;
	font-weight: 600;
}

/* and the section it belongs to, marked on the rail -- visible without hovering it */
.page-content .page-sidebar .accordion-menu > li.is-current-section > a {
	background-color: rgba(255, 255, 255, 0.07);
	color: #ffffff;
}
.page-content .page-sidebar .accordion-menu > li.is-current-section > a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--c-nav-mark);
}

/* the theme draws its own arrow glyph on the rail; none of the three layouts wants it */
.page-content .page-sidebar .accordion-menu > li > a > .menu-arrow { display: none; }


/* ---- classic: section → group → screen, each behind its own hover ------------------ */

[data-menu="classic"] .page-content .page-sidebar .accordion-menu > li > .menu-panel {
	width: 236px;
	padding: 8px 10px;
	/* the group's own flyout is a child of this panel, so the panel must not clip it. Safe here:
	   a classic panel is one row per group and never needs to scroll. */
	overflow: visible;
	max-height: none;
}
/* the section name over a list of its own screens says nothing the rail has not said */
[data-menu="classic"] .menu-group-title-section { display: none; }
[data-menu="classic"] .menu-group { position: relative; }
[data-menu="classic"] .menu-group > .menu-group-title {
	position: relative;
	padding: 6px 22px 6px 9px;
	margin: 0 -9px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.82);
	cursor: default;
	transition: background-color 110ms, color 110ms;
}
[data-menu="classic"] .menu-group:hover > .menu-group-title {
	background-color: rgba(255, 255, 255, 0.11);
	color: #ffffff;
}
[data-menu="classic"] .menu-group.is-current-group > .menu-group-title {
	background-color: rgba(255, 255, 255, 0.14);
	box-shadow: inset 2px 0 0 var(--c-nav-mark);
	color: #ffffff;
	font-weight: 600;
}
[data-menu="classic"] .menu-group-arrow {
	display: block;
	position: absolute;
	right: 8px;
	top: 50%;
	margin-top: -6px;
	font-size: 10px;
	opacity: 0.5;
}
[data-menu="classic"] .menu-group > .menu-group-items {
	display: none;
	position: absolute;
	left: calc(100% + 11px);
	top: -8px;
	min-width: 210px;
	padding: 8px 10px;
	background: var(--c-nav-panel-2);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 4px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	z-index: 100;
}
[data-menu="classic"] .menu-group:hover > .menu-group-items,
[data-menu="classic"] .menu-group:focus-within > .menu-group-items { display: block; }
/* the gap between a group and its flyout must not break the hover */
[data-menu="classic"] .menu-group > .menu-group-items::before {
	content: '';
	position: absolute;
	left: -13px;
	top: 0;
	bottom: 0;
	width: 13px;
}


/* ---- mega: every group of a section laid out at once ------------------------------- */

[data-menu="mega"] .menu-panel-inner { column-gap: 26px; }
[data-menu="mega"] .menu-panel[data-cols="1"] { width: 232px; }
[data-menu="mega"] .menu-panel[data-cols="2"] { width: 452px; }
[data-menu="mega"] .menu-panel[data-cols="2"] .menu-panel-inner { column-count: 2; }
[data-menu="mega"] .menu-panel[data-cols="3"] { width: 672px; }
[data-menu="mega"] .menu-panel[data-cols="3"] .menu-panel-inner { column-count: 3; }
[data-menu="mega"] .menu-group {
	display: inline-block;
	width: 100%;
	margin-bottom: 18px;
}
[data-menu="mega"] .menu-group:last-child { margin-bottom: 0; }
[data-menu="mega"] .menu-group-title {
	margin-bottom: 6px;
	padding-bottom: 5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* the column marks only the screen: the group title of the current screen stays as the others (testing,
   15. 9. 2026); the mega panel lays every group side by side and keeps pointing at the group */
[data-menu="mega"] .menu-group.is-current-group > .menu-group-title {
	color: var(--c-nav-mark);
	border-bottom-color: var(--c-nav-mark);
}


/* ---- columns: the open section is a column, not a flyout --------------------------- */

[data-menu="columns"] .page-content .page-sidebar { width: 76px; }
[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li > a { padding: 13px 6px; }
[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li > a > p { font-size: 10px; line-height: 1.25; }

[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li > .menu-panel { left: 76px; }

/* the current section does not fly out -- it is simply there, the whole height of the window */
[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li.is-current-section > .menu-panel,
[data-menu="columns"] .hover-menu .accordion-menu > li.is-current-section:hover > .menu-panel {
	display: block;
	position: fixed;
	left: 76px;
	top: 0;
	bottom: 0;
	width: 214px;
	max-height: none;
	padding: 18px 14px;
	border-width: 0 1px 0 0;
	border-radius: 0;
	box-shadow: none;
	z-index: 2;
}
[data-menu="columns"] .page-content .page-inner { margin-left: 214px; }
/* a screen on the first level of the menu (a small edition, MenuGenerator::simplify) has no column beside it */
[data-menu="columns"]:not(:has(li.is-current-section > .menu-panel)) .page-content .page-inner { margin-left: 0; }
[data-menu="columns"] .menu-panel-inner { column-count: 1!important; }
[data-menu="columns"] .menu-group { margin-bottom: 16px; }
[data-menu="columns"] .menu-group:last-child { margin-bottom: 0; }
[data-menu="columns"] .menu-group-title {
	margin-bottom: 5px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* every other section is drawn in the column while the pointer is on it -- in its place, not flying out
   over it (testing, 15. 9. 2026) -- and the column of the current section comes back when it leaves */
[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li:not(.is-current-section) > .menu-panel {
	position: fixed;
	left: 76px;
	top: 0;
	bottom: 0;
	width: 214px;
	max-height: none;
	padding: 18px 14px;
	border-width: 0 1px 0 0;
	border-radius: 0;
	box-shadow: none;
	z-index: 3;
}
[data-menu="columns"] .page-content .page-sidebar:has(.accordion-menu > li:not(.is-current-section):hover > .menu-panel) .accordion-menu > li.is-current-section > .menu-panel,
[data-menu="columns"] .page-content .page-sidebar:has(.accordion-menu > li.ff-tap-open:not(.is-current-section) > .menu-panel) .accordion-menu > li.is-current-section > .menu-panel { visibility: hidden; }

@media (max-height: 700px) {
	.page-content .page-sidebar .accordion-menu { padding: 10px 0; }
	.page-content .page-sidebar .accordion-menu a span.menu-icon { display: none; }
	.page-content .page-sidebar .accordion-menu > li > a { padding: 8px 10px; }
}

.page-content .page-inner { padding: 0!important; flex-grow: 1; position: relative; }
/* above the content, so its shadow falls over a table heading stuck under it too (testing, 15. 9. 2026) */
.page-content .page-inner .page-title { position: absolute; top: 0; left: 0; right: 0; padding: 15px 10px 10px 12px; background-color: var(--c-white); border-color: var(--c-line); box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.1); z-index: 10; }
.page-content .page-inner .page-title h1, .page-content .page-inner .page-title h3 { font-size: 16px; line-height: 26px; color: var(--c-label); font-weight: normal; margin: 0; }

/* the one link a keyboard user needs first: past fourteen menu items, straight to the content (DS-02) */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10000; padding: 8px 14px; background: var(--c-info-deep, #0a7f94); color: #fff; border-radius: 4px; font-weight: 600; }
/* focused, the link took the colour of a focused link (bootstrap's dark blue, the dark theme's light blue) on the
   teal: 1.7:1 light, 2.1:1 dark -- white on the deep teal in both themes, 6.2:1 (wave 4 of the 11th review) */
/* the dark theme's link colour (dark.css, a:not([class*="btn"])…) still won over it: 2.8:1 -- one class more
   and the theme attribute (wave 4 of the thirteenth UX review) */
html a.skip-link.skip-link,
html a.skip-link.skip-link:focus,
html[data-theme] a.skip-link.skip-link.skip-link,
html[data-theme] a.skip-link.skip-link.skip-link:focus,
html[data-theme] a.skip-link.skip-link.skip-link:focus-visible { background: #086a7b; color: #ffffff; }
.skip-link:focus { left: 8px; outline: 2px solid #fff; }
.page-content .page-inner .page-title .buttons { margin-top: -4px; }
/* a badge that is also the switch for what it says: it looks like the badge and shows on hover that it can be clicked */
a.ff-badge-switch { cursor: pointer; text-decoration: none; transition: box-shadow .12s; }
a.ff-badge-switch:hover,
a.ff-badge-switch:focus { text-decoration: none; box-shadow: inset 0 0 0 1px currentColor; }
a.ff-badge-switch:focus-visible { outline: none; box-shadow: inset 0 0 0 1px currentColor, 0 0 0 3px var(--c-focus-ring); }

/* the module's actions next to its title, then the tabs to its sibling screens */
.page-content .page-inner .page-title .ff-title-actions > .buttons + .buttons { margin-left: 12px; }
@media (max-width: 767px) {
	/* on a phone the actions give way instead of pushing the search, the bell and the switches off
	   the screen: they scroll sideways, a button with an icon shows only the icon, and the title
	   keeps a little room of its own */
	.page-content .page-inner .page-title h1.pull-left { min-width: 64px; }
	.page-content .page-inner .page-title > .ff-title-actions { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
	.page-content .page-inner .page-title > .ff-title-actions::-webkit-scrollbar { display: none; }
	.page-content .page-inner .page-title .ff-title-actions > .buttons { display: flex; flex: 0 0 auto; float: none; }
	.page-content .page-inner .page-title .ff-title-actions > .buttons + .buttons { margin-left: 0; }
	.page-content .page-inner .page-title .ff-title-actions .btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 10px; line-height: 1; white-space: nowrap; }
	.page-content .page-inner .page-title .ff-title-actions .btn-addon { min-width: 34px; font-size: 0; }
	.page-content .page-inner .page-title .ff-title-actions .btn-addon i { margin: 0; font-size: 14px; }
	/* the -4px nudge lines the switches up with a floated desktop row; in the phone's flex row it
	   only lifts them above the actions */
	.page-content .page-inner .page-title .global-search-trigger,
	.page-content .page-inner .page-title .notification-trigger,
	.page-content .page-inner .page-title .menu-variant-trigger,
	.page-content .page-inner .page-title .theme-toggle { margin-top: 0; }
}
.page-content .page-inner .content-container { position: absolute; top: 56px; left: 0; right: 0; bottom: 56px; padding: 5px 10px; overflow-y: scroll; }
.page-content .page-inner .bottom-container { position: absolute;  left: 0; right: 0; bottom: 0; background-color: var(--c-white); border-top: 1px solid var(--c-line); padding: 10px; box-shadow: 0 -3px 3px -1px rgba(0, 0, 0, 0.1); }

.panel { margin: 5px 0!important; }
.panel .panel-body { padding: 10px; }

/* the pages on the left, where the reader's eye already is; the count "1–100 z 489" at the right end
   (testing, 15. 9. 2026) -- by order, so the markup stays one component */
.paginator-container { display: flex; justify-content: flex-start; align-items: center; gap: 16px; height: 35px; }
.paginator-container .paginator-total { order: 2; margin-left: auto; }
.paginator-container .paginator-pages { display: flex; align-items: center; }
.paginator-container .paginator-pages > * { box-sizing: border-box; display: block; min-width: 20px; padding: 7px 10px; margin: 1px; text-align: center; text-decoration: none !important; cursor: pointer; color: var(--c-ink) !important; border: 1px solid var(--c-line-quiet); }
/* the current page in the ground of a table head, another page under the pointer in the row hover --
   the colours the listing above already uses (testing, 15. 9. 2026) */
.paginator-container .paginator-pages .current, .paginator-container .paginator-pages.current:hover { color: var(--c-table-head-ink)!important; background-color: var(--c-table-head)!important; border-color: var(--c-table-head)!important; font-weight: 600; }
.paginator-container .paginator-pages > a:not(.current):not(.disabled):hover { background-color: var(--c-row-hover); }

/* BUTTONS */
/* a whole-pixel line: 1.55em came out at 20.15px, and browsers rounded a button with an icon and one
   without to different heights side by side */
.btn { line-height: 20px; float: left; margin-right: 5px; }
.btn-addon i { width: 34px; height: 34px; }
/* the icon of a button on the centre line of its word, at every size (David, 6. 11. 2026: "Otevřít" on the alerts, K
   fakturaci, "Upravit pravidla" had the glyph 1.5-3px low). The icon is an inline-block on the text's baseline, so where
   it sat depended on its own size and the button's; as a flex row the two boxes are centred on each other. The gap
   stands for the space the flex row drops between the icon and the word (and around a <strong> in the label). :where()
   keeps the weight of one class and the rule stays here, early: a later rule hiding a button (display:none) still wins;
   a floated button computes to flex, which floats as it did */
.btn:where(:has(> i)) { display: inline-flex; align-items: center; justify-content: center; column-gap: .28em; }
.btn:where(:has(> i)) > i { flex: none; vertical-align: 0; line-height: 1; }
.btn-xs { line-height: 19px!important; }
.pull-right .btn { margin-left: 5px; margin-right: 0; }
.input-group-btn .btn { margin-right: 0; margin-left: 0; }
.actions-small .btn { margin-right: 0; margin-left: 0; }
.alertify-buttons .btn { float: none; }
.btn-group > .btn { margin-right: 0; }

/* the theme's primary is #7a6fbe -- the same purple the palette uses for a foreign currency and
   a co-driver, so a Filter button meant two different things at once. The confirming action takes
   the cyan that already stands for "in progress" and for focus; purple goes back to being data.
   Warning follows the palette's amber for the same reason. */
.btn-primary { background-color: var(--c-info); border: 1px solid transparent; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-group.open .btn-primary.dropdown-toggle,
.btn.btn-primary.active { background-color: var(--c-info-ink); border: 1px solid transparent; }

/* DS15-01: dark text on the amber -- white on it was 2.1 : 1 ("Zamknout"); #1f242a on #e6a800 is 7.4 : 1, on the
   hover #d49b00 6.4 : 1 (the old hover, the dark --c-warn-ink, would swallow dark text) */
.btn-warning { background-color: var(--c-warn); border: 1px solid transparent; color: #1f242a; }
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-group.open .btn-warning.dropdown-toggle,
.btn.btn-warning.active { background-color: #d49b00; border: 1px solid transparent; color: #1f242a; }

/* TABLES */
.table { border-bottom: none!important; position: relative; margin-bottom: 0; width: auto; min-width: calc(100% - 1px); }
.table.table-fixed-header { position: relative; border-collapse: separate; }
.table.table-fixed-header > thead > tr > th { background-color: var(--c-table-head); border-top: 1px solid var(--c-line)!important; border-bottom: 1px solid var(--c-line)!important; vertical-align: middle; height: 41px; line-height: 1.2; }

/* the column heading is a label, not content: small, quiet and out of the way of the figures */
.table > thead > tr > th {
	padding: 9px 6px!important;
	vertical-align: middle;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	/* the head's own tokens: a grey ground ran into the striped rows under it, a dark band was too heavy
	   (testing, 15. 9. 2026), teal read as "success" next to the green elements -- now a warm stone,
	   a hue the striped rows and the status colours do not have, with a darker edge under the head */
	color: var(--c-table-head-ink);
	background-color: var(--c-table-head);
	border-top: 1px solid var(--c-line)!important;
	border-bottom: 1px solid var(--c-line)!important;
}

/* in a listing the head is as tall as a heading of two lines, whether or not it has one: a head of
   one line stood 41 px and one with a wrapped heading 44, a compact table 34 and 49, and the rows
   under it jumped by that much from one module to the next (18. 9. 2026). A height on a cell is a
   minimum, so a heading of three lines still gets its room. Listings only (the view is on <main>,
   @layout.latte); not the tables of a card, of a checklist or of a modal, which are heads of their own */
.ff-view-default .table > thead > tr:first-child > th { height: 44px; line-height: 1.2; }
.ff-view-default .modal .table > thead > tr:first-child > th,
.ff-view-default .ff-check-body .table > thead > tr:first-child > th,
.ff-view-default .od-card-table > thead > tr:first-child > th { height: auto; }

/* without the cell borders the filter fields ran into one another; the row gets a ground of its
   own and each field its outline back, so it reads as a strip of inputs rather than loose text */
/* the filter row takes the head's ground: the head reads as one band over the rows, the white fields in it
   stand out, and the old light ground ran into the striped rows as the head did (testing, 15. 9. 2026) */
.table > thead > tr.filters { background-color: var(--c-table-head); }
.table > thead > tr.filters td { padding: 5px 4px!important; border-top: 0; border-bottom: 1px solid var(--c-line); background-color: var(--c-table-head); }

/* every table's heading stays in view while its rows scroll, not only the listings that fill the
   screen (testing, 15. 9. 2026) -- a table that should not do it asks for that explicitly.
   A heading sticks to the nearest box that scrolls: the page's frame, whose 5px of padding would
   show the rows passing above it, or a box of the table's own (a listing filling the screen, a wide
   table, a modal), which has none. A collapsed border stays where it was drawn, so the line under
   a stuck heading is a shadow that travels with it -- instead of the border, not on top of it,
   which drew the line twice. */
.table > thead { position: sticky; top: 0; z-index: 3; }
/* on a page scrolling as a whole the heading stops 10px under the title bar, not against it (testing,
   15. 9. 2026); the rows passing through that gap are covered by a strip of the panel's own ground */
.page-inner .content-container .table > thead { top: 5px; }
.page-inner .content-container .ff-table-scroll .table > thead,
.page-inner .content-container .ff-table-wide .table > thead,
.page-inner .content-container .modal .table > thead { top: 0; }
.table .table > thead { position: static; }
.table > thead > tr > th,
.table > thead > tr > td,
.table.table-fixed-header > thead > tr > th { border-top: 0!important; border-bottom: 0!important; box-shadow: inset 0 -1px 0 var(--c-table-head-line); }
/* the line above the heading too: its collapsed border stayed behind and left a pixel of the rows
   showing through between the strip and a stuck heading */
.table > thead > tr:first-child > th,
.table > thead > tr:first-child > td { box-shadow: inset 0 1px 0 var(--c-table-head-line), inset 0 -1px 0 var(--c-table-head-line); }
/* the head ends in a stronger edge: that, not a ground, sets it off the striped rows */
.table > thead > tr:last-child > th,
.table > thead > tr:last-child > td { box-shadow: inset 0 -2px 0 var(--c-table-head-edge); }
.table > thead > tr:first-child:last-child > th,
.table > thead > tr:first-child:last-child > td { box-shadow: inset 0 1px 0 var(--c-table-head-line), inset 0 -2px 0 var(--c-table-head-edge); }
/* on the dark band the links, the sort icons and the second line of a heading follow its light text */
.table > thead > tr > th a,
.table > thead > tr > th a:hover,
.table > thead > tr > th a:focus { color: var(--c-table-head-ink); }
.table > thead > tr > th .text-gray,
.table > thead > tr > th .text-muted,
.table > thead > tr > th small { color: var(--c-table-head-muted); }
/* the gap above a heading stuck on the page is covered by a strip of the panel's ground, only while it
   is stuck (custom.js marks the table): at rest the strip lay over what sits right above a table --
   period buttons, the table before, an icon. Script, because Safari has no scroll-state query; the
   cells' own shadow did not cover in Chrome. The title bar's shadow falls over the strip (its z-index). */
.page-inner .content-container .table.is-stuck:not(.ff-table-scroll *, .ff-table-wide *, .modal *) > thead > tr:first-child > th,
.page-inner .content-container .table.is-stuck:not(.ff-table-scroll *, .ff-table-wide *, .modal *) > thead > tr:first-child > td { position: relative; }
.page-inner .content-container .table.is-stuck:not(.ff-table-scroll *, .ff-table-wide *, .modal *) > thead > tr:first-child > th::before,
.page-inner .content-container .table.is-stuck:not(.ff-table-scroll *, .ff-table-wide *, .modal *) > thead > tr:first-child > td::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; background: var(--c-white); pointer-events: none; }
/* the theme's wrapper scrolls sideways, which made it the box every heading stuck to and no heading
   of a page scrolling as a whole ever moved; it lets go from the first paint -- waiting for script
   left the heading stuck inside the wrapper for a moment and it jumped after every reload -- and
   stays a box, with a height of its own as the orders have, only for a table wider than its panel
   (custom.js measures and marks it) */
.table-responsive:not(.ff-table-wide, .ff-table-scroll *, .picker-modal-scroll *) { overflow: visible; }
.page-inner .content-container .table-responsive.ff-table-wide { max-height: calc(100vh - 150px); overflow: auto; }
/* a listing scrolling with the page's frame: a shade over the frame's edge on the side the table goes on to */
.page-content .page-inner.ff-page-more-right::after,
.page-content .page-inner.ff-page-more-left::before {
	content: '';
	position: absolute;
	top: var(--ff-frame-top, 56px);
	bottom: var(--ff-frame-bottom, 56px);
	width: 28px;
	z-index: 5;
	pointer-events: none;
}
.page-content .page-inner.ff-page-more-right::after { right: var(--ff-frame-bar, 0px); background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13)); }
.page-content .page-inner.ff-page-more-left::before { left: 0; background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13)); }
/* the table goes on past the edge: that edge fades out until the end is reached (DS2-06; custom.js) */
/* DS3-11: the fade covers only the cell padding (10 px), so the last visible column -- Marže on
   Objednávky at 1366 px -- keeps full contrast; the shadow of the page edge says the rest */
.table-responsive.ff-table-wide.ff-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(to right, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); }
.table-responsive.ff-table-wide.ff-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(to left, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); }
.table-responsive.ff-table-wide.ff-more-left.ff-more-right { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.25), #000 10px, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.25), #000 10px, #000 calc(100% - 10px), rgba(0, 0, 0, 0.25)); }
/* a listing that scrolls as a page has no height of its own either: the wrapper kept the cap it had as
   a box (calc(100vh - 430px)) while its table ran on below it, and whatever stood under the table --
   the bar of the bulk actions of the people -- was drawn across the rows (testing, 21. 9. 2026) */
.page-inner .content-container .table-responsive.ff-table-scroll:not(.ff-table-wide) { max-height: none; }
.table > thead > tr.filters > td:first-of-type { padding-left: 6px!important; }
.table > thead > tr.filters > td:last-of-type { padding-right: 6px!important; }
.table > thead > tr.filters .form-control {
	height: 30px;
	padding: 3px 7px!important;
	background-color: var(--c-white);
	border: 1px solid var(--c-line-input-sm);
	border-radius: 3px;
	box-shadow: none;
}
/* the filters under a heading focus as every field does (DS5-05; #8fb8cc was 1.9:1) */
.table > thead > tr.filters .form-control:focus { border-color: var(--c-info-ink); }
.table > thead > tr.filters .btn { margin: 0; width: 100%; height: 30px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--c-line-input-sm); background-color: var(--c-white); border-radius: 3px; }
/* the filter and reset buttons over the row menus are the same square as the row menus below them */
.table > thead > tr.filters > td.actions .btn { display: inline-flex; width: var(--h-icon-btn); height: var(--h-icon-btn); padding: 0; border-color: var(--c-line-input); border-radius: var(--r-btn); color: var(--c-label); font-size: var(--fs); }
.table > thead > tr.filters > td.actions .btn:hover,
.table > thead > tr.filters > td.actions .btn:focus { background-color: var(--c-head); color: var(--c-ink); }
.table > thead > tr.filters .select2-selection {
	height: 30px!important;
	padding: 2px 5px!important;
	background-color: var(--c-white);
	border: 1px solid var(--c-line-input-sm)!important;
	border-radius: 3px!important;
}
.table > thead > tr.filters .select2-selection__rendered { line-height: 24px!important; }
.table > thead > tr.filters .select2-selection__arrow { height: 28px!important; }
/* not the placeholder: an empty filter in the colour of a chosen one reads as chosen */
.table > thead > tr.filters .select2-selection *:not(.select2-selection__placeholder) { color: var(--c-ink-field)!important; }
/* the field that filters shows it (DS4-07): "Probíhá" looked like "Vše", only the count by the funnel
   said that something filtered (custom.js ffMarkActiveFilters) */
.table > thead > tr.filters .form-control.ff-filter-on,
.table > thead > tr.filters .select2.ff-filter-on .select2-selection { border-color: var(--c-link)!important; box-shadow: inset 0 0 0 1px var(--c-link); }
/* a select of the filter row keeps its caret and is as wide as its longest choice: "Potvrzení
   zákazníkovi" in a narrow column was cut, without the arrow (DS4-05) */
.table > thead > tr.filters .select2-container { min-width: max-content; }
.table > thead > tr.filters .select2-selection__rendered { padding-right: 20px!important; }

.table > tbody > tr > td { padding: 6px 6px!important; height: 44px; vertical-align: middle; border-top: none!important; border-bottom: 1px solid var(--c-line-soft)!important; line-height: 1.3; }
.table > tbody > tr:last-child > td { border-bottom: 1px solid var(--c-line)!important; }
.table > tbody > tr > td small { color: var(--c-muted); }
/* the row's menu is a button like the others, not a bare icon filling its cell (testing, 15. 9. 2026) */
.table > tbody > tr > td.actions { padding: 0 6px!important; vertical-align: middle; }
/* the column of the row's menu is as wide as its button in every listing. A table lays itself out:
   where every column states a width the room left over is shared out among them all, this one
   included, and it came out 42 px in most listings, 50 with the trailer types and 78 with the
   technicians (18. 9. 2026). One percent is less than the button needs, so the column shrinks to
   the button and the room goes to the others */
.table > thead > tr > th.w-40:has(> .w-30),
.table > thead > tr.filters > td.actions,
.table > tbody > tr > td.actions { width: 1%; }
.table > tbody > tr > td.actions .dropdown { display: inline-block; }
.table > tbody > tr > td.actions .btn,
.table > tbody > tr > td.actions .dropdown .btn { display: inline-flex; justify-content: center; align-items: center; width: var(--h-icon-btn); height: var(--h-icon-btn); padding: 0; margin: 0; border: 1px solid var(--c-line-input); border-radius: var(--r-btn); background-color: var(--c-white); color: var(--c-label); font-size: var(--fs); }
.table > tbody > tr > td.actions .btn:hover,
.table > tbody > tr > td.actions .btn:focus,
.table > tbody > tr > td.actions .dropdown.open .btn { background-color: var(--c-head); border-color: var(--c-line-input); color: var(--c-ink); }
.table > tbody > tr.row-as-link td { cursor: pointer; }
.table > tbody > tr.disabled td * { color: var(--c-quiet); }
.table.table-white  > tbody > tr > td { background-color: var(--c-white); }
/* light enough that the row rule still does the dividing, strong enough to follow a long row
   across twelve columns; hover has to stay clearly above both */
.table.table-striped > tbody > tr:nth-of-type(odd) { background-color: var(--c-ground); }
.table.table-hover > tbody > tr:hover { background-color: var(--c-row-hover); }
/* the row menu keeps its own surface on a striped or hovered row, and its own hover above the row's */
.table.table-striped > tbody > tr:nth-of-type(odd) > td.actions .btn,
.table.table-hover > tbody > tr:hover > td.actions .btn { background-color: var(--c-white); }
.table.table-striped > tbody > tr > td.actions .btn:hover,
.table.table-striped > tbody > tr > td.actions .btn:focus,
.table.table-striped > tbody > tr > td.actions .dropdown.open .btn,
.table.table-hover > tbody > tr > td.actions .btn:hover,
.table.table-hover > tbody > tr > td.actions .btn:focus,
.table.table-hover > tbody > tr > td.actions .dropdown.open .btn { background-color: var(--c-head); color: var(--c-ink); }

/* the row menu opens as the panels of the title bar do (the menu switch, the bell): a card with a soft
   shadow, rows with a rounded hover, the icon in a column of its own and no arrow (testing, 15. 9. 2026) */
.dropdown-menu.dropdown-list { min-width: 220px; padding: 6px; margin-top: 4px; background-color: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-btn); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.dropdown-menu.dropdown-list:before,
.dropdown-menu.dropdown-list:after { display: none !important; }
/* opened upwards when there is no room below (custom.js adds .dropup): the gap goes under it */
.dropup > .dropdown-menu.dropdown-list { margin-top: 0; margin-bottom: 4px; }
.dropdown-menu.dropdown-list > li > a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 3px; font-size: var(--fs); line-height: 1.35; color: var(--c-ink); white-space: nowrap; }
.dropdown-menu.dropdown-list > li > a > i { flex: 0 0 14px; width: 14px; text-align: center; font-size: 12px; }
.dropdown-menu.dropdown-list > li > a > i:not([class*="text-"]) { color: var(--c-soft); }
.dropdown-menu.dropdown-list > li > a:hover,
.dropdown-menu.dropdown-list > li > a:focus { background-color: var(--c-head); color: var(--c-ink-strong); text-decoration: none; }
.dropdown-menu.dropdown-list > li > a:hover > i:not([class*="text-"]) { color: var(--c-label); }
.dropdown-menu.dropdown-list > .divider { height: 1px; margin: 4px 2px; background-color: var(--c-line-quiet); }

/* tabs as a strip of their own, the active one a white tab standing out of it with a strong underline:
   with content over the tabs too, labels on the white of the panel melted into it (David, 5. 10. 2026) */
.nav-tabs { margin-bottom: 20px; padding: 4px 6px 0; border-bottom: 1px solid var(--c-line-input); border-radius: 6px 6px 0 0; background: var(--c-head); }
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li > a {
	padding: 10px 16px;
	margin-right: 2px;
	font-size: 13px;
	font-weight: 500;
	color: var(--c-label);
	background-color: transparent;
	border: none!important;
	border-bottom: 3px solid transparent!important;
	border-radius: 6px 6px 0 0!important;
}
.nav-tabs > li > a:hover, .nav-tabs > li > a:focus { background-color: var(--c-ground); color: var(--c-ink); }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	color: var(--c-ink-strong);
	font-weight: 600;
	background-color: var(--c-white);
	border-bottom: 3px solid var(--c-info)!important;
	box-shadow: 0 -1px 0 var(--c-line-input), 1px 0 0 var(--c-line-input), -1px 0 0 var(--c-line-input);
}

/* whether a tab of a deal is in order (__inc/tabState.latte): a dot before its name */
.ff-tab-label { display: inline-flex; align-items: center; }
.ff-tab-dot { flex: none; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--c-quiet); }
.ff-tab-dot-ok { background: var(--c-ok); }
.ff-tab-dot-warn { background: var(--c-warn); }
.ff-tab-dot-bad { background: var(--c-bad); }
.ff-tab-dot-none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-quiet); }
.nav-tabs a.has-error { color: var(--c-bad)!important; }
.nav-tabs > li.active > a.has-error { border-bottom-color: var(--c-bad)!important; }

/* a section whose whole content is one switch reads better as the switch itself */
.form-part-toggle { border: 1px solid var(--c-line-panel); border-radius: 3px; margin-bottom: 14px; background-color: var(--c-white); }
.form-part-toggle h3 { background-color: transparent!important; border-bottom: none!important; }

.slim-tabs .nav-tabs { margin-bottom: 0; }
.slim-tabs .nav-tabs > li { margin-bottom: 0; }
.slim-tabs .nav-tabs > li > a { line-height: 1.2; }

/* the tabs of a card pulled out over its panel, on the grey of the page -- the others grey, the active
   one white -- and the content of the tab a panel like any other: white, no frame, the same padding and
   margin (David, 5. 10. 2026). Inside the panel the tabs read as one more line of the content */
.panel:has(> .panel-body.slim-tabs) { background: transparent; border: 0; box-shadow: none; }
.panel > .panel-body.slim-tabs { padding: 0; background: transparent; }
.slim-tabs > .nav-tabs { padding: 0; border-bottom: 0; border-radius: 0; background: transparent; display: flex; flex-wrap: wrap; gap: 4px; }
.slim-tabs > .nav-tabs > li { float: none; margin: 0; display: flex; }
/* every tab as high as the row: a taller one (a tab with a badge) stretched the row and under the shorter
   active tab the ground showed through as a grey line (David, 13. 10. 2026) */
.slim-tabs > .nav-tabs > li > a { flex: 1 1 auto; }
/* Bootstrap's clearfix of .nav is an item of the flex row too: with the gap it pushed the first tab off
   the edge of the panel */
.slim-tabs > .nav-tabs::before, .slim-tabs > .nav-tabs::after { display: none; }
/* one height for every tab of the application, the previews' (9px) included -- the cards had 10px (3. 11. 2026) */
.slim-tabs > .nav-tabs > li > a { margin: 0; padding: 9px 16px; background: var(--c-line-panel); border: 1px solid var(--c-line-panel)!important; border-bottom: 0!important; border-radius: 0!important; }
.slim-tabs > .nav-tabs > li > a:hover, .slim-tabs > .nav-tabs > li > a:focus { background: var(--c-line); color: var(--c-ink); }
.slim-tabs > .nav-tabs > li.active > a,
.slim-tabs > .nav-tabs > li.active > a:hover,
.slim-tabs > .nav-tabs > li.active > a:focus {
	position: relative; z-index: 1;
	background: var(--c-white); border-color: transparent!important; border-bottom: 0!important; box-shadow: none;
	font-weight: 500; /* the weight of the others: a bolder one changed the width, and the tabs jumped */
}
.slim-tabs > .tab-content { position: relative; padding: 10px; background: var(--c-white); box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1); }
/* the block that is the whole of a tab -- straight in it, or in its snippet -- is the panel itself:
   its own frame drew a second panel inside the first */
.slim-tabs > .tab-content > .tab-pane > .form-part,
.slim-tabs > .tab-content > .tab-pane > [id^="snippet-"] > .form-part { margin-bottom: 0; border: 0; border-radius: 0; }
/* tabs that switch whole screens (links, not panes -- Notifikace, Podklady pro hlášení, Rozpouštění režie...):
   the same strip on the grey of the page, the white block under it joined to the active tab (David, 3. 11. 2026:
   "sjednoť formát záložek všude") */
.ff-page-tabs { margin-top: 5px; }
.ff-page-tabs + .panel,
.ff-page-tabs + form > .ff-filter:first-child { margin-top: 0!important; } /* .panel has its margin !important */

.form-group .select2-container { display: block; }
.form-group.has-error .select2-selection { border-color: #a94442!important; }
.form-group.form-label { padding-top: 7px; }

.input-group .btn { padding: 6px 12px; }
.form-control.in-table { height: 24px; padding: 2px 5px!important; margin: -2px 0; }

.move-handler { cursor: move!important; }

.text-gray { color: var(--c-soft); }

label { color: var(--c-label); }
.form-group > label { font-size: 12px; color: var(--c-soft); font-weight: 500; margin-bottom: 4px; }
.form-control { color: var(--c-ink-field); background-color: var(--c-white); border: 1px solid var(--c-line-input); border-radius: 3px; box-shadow: none; }
/* DS5-05: the focus of a field is a 2px edge of the dark cyan (5.5:1 against the surface) with the soft halo
   around it. modern.css strips every shadow of .form-control with !important, so the ring the style guide
   promised was never drawn and only the 1px border changed colour (2.6:1) */
.form-control:focus { border-color: var(--c-info-ink); box-shadow: 0 0 0 1px var(--c-info-ink), 0 0 0 4px var(--c-focus-ring) !important; outline: none; }

/* Select2 draws its own box; without this it sits next to a text field with a different corner,
   a different grey and no focus ring */
/* modern.css sets these with !important, so matching the text fields needs it too */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
	background-color: var(--c-white)!important;
	border: 1px solid var(--c-line-input)!important;
	border-radius: 3px!important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: var(--c-info-ink)!important;
	box-shadow: 0 0 0 1px var(--c-info-ink), 0 0 0 4px var(--c-focus-ring) !important;
}
.select2-container--default .select2-dropdown { border-color: var(--c-line-input-sm); border-radius: 3px; }
.form-control[readonly], .form-control[disabled] { background-color: var(--c-sunk); border-color: var(--c-line-input-sm); color: var(--c-soft); }
/* a disabled select drawn by select2 looks like a disabled field too -- a card open read-only (S2-10) */
.select2-container--default.select2-container--disabled .select2-selection { background-color: var(--c-sunk)!important; border-color: var(--c-line-input-sm)!important; cursor: default; }
.select2-container--default.select2-container--disabled .select2-selection__rendered { color: var(--c-soft)!important; }
.ff-read-only-note { display: inline-block; margin-left: 10px; line-height: 34px; }
.form-control-bigger { font-size: 16px; font-weight: bold; padding: 10px!important; }

.top-menu .navbar-nav > li > a { color: var(--c-label); }

.outside-filter { float: left; }

.row-services { font-size: 85%; }
.row-services td { border-color: var(--c-line-quiet)!important; }
.row-services td:first-child { padding-left: 25px!important; }
.row-services .fa-lg { font-size: 15px; padding: 0 1px; opacity: 0.7; }

.w-100p { min-width: 100%; width: 100%; }

.w-10 { width: 10px; max-width: 100%; }
.w-20 { width: 20px; max-width: 100%; }
.w-30 { width: 30px; max-width: 100%; }
.w-40 { width: 40px; max-width: 100%; }
.w-50 { width: 50px; max-width: 100%; }
.w-60 { width: 60px; max-width: 100%; }
.w-70 { width: 70px; max-width: 100%; }
.w-80 { width: 80px; max-width: 100%; }
.w-90 { width: 90px; max-width: 100%; }
.w-100 { width: 100px; max-width: 100%; }
.w-110 { width: 110px; max-width: 100%; }
.w-120 { width: 120px; max-width: 100%; }
.w-130 { width: 130px; max-width: 100%; }
.w-140 { width: 140px; max-width: 100%; }
.w-150 { width: 150px; max-width: 100%; }
.w-160 { width: 160px; max-width: 100%; }
.w-170 { width: 170px; max-width: 100%; }
.w-180 { width: 180px; max-width: 100%; }
.w-190 { width: 190px; max-width: 100%; }
.w-200 { width: 200px; max-width: 100%; }
.w-210 { width: 210px; max-width: 100%; }
.w-220 { width: 220px; max-width: 100%; }
.w-230 { width: 230px; max-width: 100%; }
.w-240 { width: 240px; max-width: 100%; }
.w-250 { width: 250px; max-width: 100%; }
.w-260 { width: 260px; max-width: 100%; }
.w-270 { width: 270px; max-width: 100%; }
.w-280 { width: 280px; max-width: 100%; }
.w-290 { width: 290px; max-width: 100%; }
.w-300 { width: 300px; max-width: 100%; }
.w-310 { width: 310px; max-width: 100%; }
.w-320 { width: 320px; max-width: 100%; }
.w-330 { width: 330px; max-width: 100%; }
.w-340 { width: 340px; max-width: 100%; }
.w-350 { width: 350px; max-width: 100%; }
.w-360 { width: 360px; max-width: 100%; }
.w-370 { width: 370px; max-width: 100%; }
.w-380 { width: 380px; max-width: 100%; }
.w-390 { width: 390px; max-width: 100%; }
.w-400 { width: 400px; max-width: 100%; }
.w-450 { width: 450px; max-width: 100%; }
.w-500 { width: 500px; max-width: 100%; }
.w-550 { width: 550px; max-width: 100%; }
.w-600 { width: 600px; max-width: 100%; }
.w-650 { width: 650px; max-width: 100%; }
.w-700 { width: 700px; max-width: 100%; }
.w-750 { width: 750px; max-width: 100%; }
.w-800 { width: 800px; max-width: 100%; }
.w-850 { width: 850px; max-width: 100%; }
.w-900 { width: 900px; max-width: 100%; }
.w-950 { width: 950px; max-width: 100%; }
.w-1000 { width: 1000px; max-width: 100%; }

@media (min-width: 1800px) {
	.w-xl-10 { width: 10px; max-width: 100%; }
	.w-xl-20 { width: 20px; max-width: 100%; }
	.w-xl-30 { width: 30px; max-width: 100%; }
	.w-xl-40 { width: 40px; max-width: 100%; }
	.w-xl-50 { width: 50px; max-width: 100%; }
	.w-xl-60 { width: 60px; max-width: 100%; }
	.w-xl-70 { width: 70px; max-width: 100%; }
	.w-xl-80 { width: 80px; max-width: 100%; }
	.w-xl-90 { width: 90px; max-width: 100%; }
	.w-xl-100 { width: 100px; max-width: 100%; }
	.w-xl-110 { width: 110px; max-width: 100%; }
	.w-xl-120 { width: 120px; max-width: 100%; }
	.w-xl-130 { width: 130px; max-width: 100%; }
	.w-xl-140 { width: 140px; max-width: 100%; }
	.w-xl-150 { width: 150px; max-width: 100%; }
	.w-xl-160 { width: 160px; max-width: 100%; }
	.w-xl-170 { width: 170px; max-width: 100%; }
	.w-xl-180 { width: 180px; max-width: 100%; }
	.w-xl-190 { width: 190px; max-width: 100%; }
	.w-xl-200 { width: 200px; max-width: 100%; }
	.w-xl-210 { width: 210px; max-width: 100%; }
	.w-xl-220 { width: 220px; max-width: 100%; }
	.w-xl-230 { width: 230px; max-width: 100%; }
	.w-xl-240 { width: 240px; max-width: 100%; }
	.w-xl-250 { width: 250px; max-width: 100%; }
	.w-xl-260 { width: 260px; max-width: 100%; }
	.w-xl-270 { width: 270px; max-width: 100%; }
	.w-xl-280 { width: 280px; max-width: 100%; }
	.w-xl-290 { width: 290px; max-width: 100%; }
	.w-xl-300 { width: 300px; max-width: 100%; }
	.w-xl-310 { width: 310px; max-width: 100%; }
	.w-xl-320 { width: 320px; max-width: 100%; }
	.w-xl-330 { width: 330px; max-width: 100%; }
	.w-xl-340 { width: 340px; max-width: 100%; }
	.w-xl-350 { width: 350px; max-width: 100%; }
	.w-xl-360 { width: 360px; max-width: 100%; }
	.w-xl-370 { width: 370px; max-width: 100%; }
	.w-xl-380 { width: 380px; max-width: 100%; }
	.w-xl-390 { width: 390px; max-width: 100%; }
	.w-xl-400 { width: 400px; max-width: 100%; }
	.w-xl-450 { width: 450px; max-width: 100%; }
	.w-xl-500 { width: 500px; max-width: 100%; }
	.w-xl-550 { width: 550px; max-width: 100%; }
	.w-xl-600 { width: 600px; max-width: 100%; }
	.w-xl-650 { width: 650px; max-width: 100%; }
	.w-xl-700 { width: 700px; max-width: 100%; }
	.w-xl-750 { width: 750px; max-width: 100%; }
	.w-xl-800 { width: 800px; max-width: 100%; }
	.w-xl-850 { width: 850px; max-width: 100%; }
	.w-xl-900 { width: 900px; max-width: 100%; }
	.w-xl-950 { width: 950px; max-width: 100%; }
	.w-xl-1000 { width: 1000px; max-width: 100%; }
}

.h-30 { height: 30px!important; }
.h-40 { height: 40px!important; }
.h-50 { height: 50px!important; }
.h-100 { height: 100px!important; }
.h-120 { height: 120px!important; }
.h-150 { height: 150px!important; }
.h-200 { height: 200px!important; }
.h-300 { height: 300px!important; }
.h-400 { height: 400px!important; }
.h-500 { height: 500px!important; }
.h-600 { height: 600px!important; }
.h-700 { height: 700px!important; }
.h-800 { height: 800px!important; }

.wp-20 { width: 20%; }
.wp-30 { width: 30%; }
.wp-40 { width: 40%; }
.wp-50 { width: 50%; }
.wp-60 { width: 60%; }
.wp-70 { width: 70%; }
.wp-80 { width: 80%; }
.wp-90 { width: 90%; }
.wp-100 { width: 100%; }

.dropzone .dz-preview .dz-image { border-radius: 0; }

.row .gallery_images_box { float: left; clear: both; margin: 0; }
.row .gallery_images_box ul { float: left; padding: 0; }
.row .gallery_images_box ul li { list-style: none; float: left; width: 150px; position: relative; background-color: var(--c-dashed); margin: 0 5px 5px 0; overflow: hidden; }
.row .gallery_images_box ul li:hover { background-color: var(--c-line-quiet); border-color: var(--c-muted); }
.row .gallery_images_box ul li img { float: left; width: 100%; height: 100%; }
.row .gallery_images_box ul li input { float: left; width: 196px; border: 1px solid var(--c-quiet); padding: 2px 1px; }
.row .gallery_images_box ul li input.saved { border-color: green; }
.row .gallery_images_box ul li select { float: left; width: 200px; border: 1px solid var(--c-quiet); padding: 2px 1px; }
.row .gallery_images_box ul li select.saved { border-color: green; }
.row .gallery_images_box ul li a.far { display: none; text-align: center; position: absolute; top: 0; right: 0; width: 20px; height: 20px; color: #fff; background-color: #000; border: 1px solid #000; font-size: 12px; padding: 3px; }
.row .gallery_images_box ul li a.ico_move { right: 21px; cursor: move; }
.row .gallery_images_box ul li a.ico_crop { right: 42px; }
.row .gallery_images_box ul li a.ico_zoom { right: 21px; }
.row .gallery_images_box ul li a.ico_rotate { right: 63px; }
.row .gallery_images_box ul li a.far:hover { text-decoration: none; background-color: #ffffff; color: #000; }
.row .gallery_images_box ul li:hover a.far { display: block; }
.row .gallery_images_box ul li.full-width { width: 100%; }
.row .gallery_images_box ul li.small-width { width: calc(16.6% - 4px); }
.row .gallery_images_box ul li.last-in-row { margin-right: 0; }

.row .files_box { float: left; clear: both; margin: 0 20px; }
.row .files_box ul { float: left; padding: 0; }
.row .files_box ul li { list-style: none; clear: left; float: left; width: 400px; position: relative; border: 1px solid var(--c-line); background-color: var(--c-dashed); margin: 0 5px 5px 0; overflow: hidden; }
.row .files_box ul li a { text-align: center; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; color: #fff; background-color: #000; border: 1px solid #000; font-size: 12px; padding: 3px; }
.row .files_box ul li a.ico_move { right: 25px; cursor: move; }
.row .files_box ul li a.ico_download { right: 50px; }
.row .files_box ul li .form-group { margin: 0 87px 0 0; }

.row .image_box { width: 300px; max-width: 100%; height: auto; position: relative; background-color: var(--c-ground); margin: 5px 0 0 0; overflow: hidden; }
.row .image_box img { width: 100%; height: auto; }
.row .image_box .image-controls  { position: absolute; top: 1px; right: 1px; }
.row .image_box .image-controls a.far { top: 0; right: 0; width: 24px; height: 24px; background-color: rgba(0, 0, 0, 0.4); color: #ffffff; line-height: 20px; text-align: center; padding: 3px 2px 2px 2px; }
.row .image_box .image-controls a.zoom { background-color: transparent !important;}
.row .image_box .image-controls a.far.ico_crop { right: 26px; }
.row .image_box .image-controls a.far.ico_rotate { right: 52px; }
.row .image_box .image-controls a.far:hover { text-decoration: none; background-color: rgba(0, 0, 0, 0.8); }

.row .image_box.image_box_wide { width: 100%; height: auto; max-height: none; }
.row .image_box.image_box_icon { width: 80px; }




.help-block { color: var(--c-muted); }

.cke_chrome { -webkit-box-shadow: none!important; -moz-box-shadow: none!important; box-shadow: none!important; }

.modal-level-2 .modal-dialog { margin: 60px auto; }
.modal-level-3 .modal-dialog { margin: 90px auto; }
/* a modal dims what is under it itself -- at z-index 9999 it stands above every backdrop, so a second
   modal's backdrop would leave the first one undimmed. The tint is on a fixed layer of its own and
   not on .modal: .modal is the box that scrolls once the dialog outgrows the window, and WebKit
   paints a see-through background of a scrolling box twice -- the page went darker the moment the
   dialog got longer than the window (Safari, testing 18. 9. 2026). Clicks pass through it to .modal,
   which is what a click beside the dialog has always landed on */
.modal::before { content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.4); pointer-events: none; }
.modal-footer .btns { border-top: 1px solid var(--c-line-quiet); padding-top: 20px; text-align: left; }
/* the buttons on the left, a destructive one apart on the right (David, 2. 10. 2026) */
.ff-btns-split { display: flex; align-items: center; gap: 5px; }
.ff-btns-split > .btn { margin: 0; }
.ff-btns-split .ff-btns-end { margin-left: auto; }
.ff-btns-split .ff-btns-end .btn { margin: 0; }

.modal-xxl {
	width: 100%;
	max-width: 90%;
}

@media (min-width: 1662px) {
	.modal-xl-2 {
		width: 1600px;
	}
}

@media (min-width: 1462px) {
	.modal-xl {
		width: 1400px;
	}
}

@media (min-width: 1262px) {
	.modal-lg-2 {
		width: 1200px;
	}
}

@media (min-width: 562px) {
	.modal-sm-2 {
		width: 500px;
	}
}

/* a step between the small modal and the medium one: a form of a row of three fields and a note
   (the cost item; David, 22. 9. 2026) */
@media (min-width: 662px) {
	.modal-sm-3 {
		width: 600px;
	}
}

@media (min-width: 962px) {
	.modal-md {
		width: 900px;
	}
}

.address-picker-map { background-color: var(--c-dashed); border: 1px solid var(--c-ground); min-height: 300px; text-align: center; position: relative; }
.address-picker-map a { color: var(--c-ink); text-decoration: none; font-size: 18px; line-height: 300px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

.address-picker-modal-map { background-color: var(--c-dashed); border: 1px solid var(--c-ground); min-height: 600px; }

/* HERE's address suggestions under "Najít adresu" (S2-15, S2-17): over the form, nothing below the field moves */
.address-map-search { position: relative; }
.address-map-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 10000; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.address-map-suggest li { padding: 6px 10px; cursor: pointer; line-height: 1.35; }
.address-map-suggest li.is-active, .address-map-suggest li:hover { background: var(--c-row-hover); }
.address-map-suggest .address-map-suggest-title { display: block; color: var(--c-ink-strong); }
.address-map-suggest .address-map-suggest-label { display: block; color: var(--c-muted); font-size: 12px; }
.address-map-suggest .address-map-suggest-empty { cursor: default; color: var(--c-muted); }

.tooltip { z-index: 10000; }

.p-t-xxs { padding-top: 5px; }

.bold label { font-weight: bold!important; }

.multi-lines-pattern { display: none; }

.ui-front { z-index: 10000; }
.ui-widget { font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: normal; }
.ui-autocomplete .ui.menu-item { color: var(--c-soft); }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { color: #000!important; font-weight: normal!important; border-color: var(--c-quiet); background: none; background-color: var(--c-line); }

.task-icon.badge { height: 18px; width: 18px; padding-top: 4px; }

.tasks { max-height: none; }
.tasks li a .task-icon.badge { padding-top: 3px; color: #ffffff; margin-top: 1px; }
.tasks li a .task-details { margin: 0 0 0 5px; padding: 0; width: 240px; line-height: 20px; }
.tasks li a .badge { max-width: 100px; color: var(--c-soft); }

.dropdown-lg { width: 400px; }

.order-item-services { width: 100%; display: block; box-sizing: border-box; padding-left: 10px; }
.order-item-services .order-item-service { width: 100%; display: inline-block; padding: 2px 0; color: var(--c-label)!important; }

.no-text-decoration, .no-text-decoration:hover { text-decoration: none; }

.params-tree-item .open-icon { cursor: pointer; color: var(--c-soft); position: relative; top: 1px; margin-right: 5px; margin-left: 5px; }

#gps-map { height: 500px; }

/* an open select is as wide as its field, whatever it offers: it used to stretch to its longest
   option (min-width: max-content) and an ADR class ran across half the screen. A longer option is
   not wrapped either -- the list scrolls sideways. The list is a one-column grid as wide as its
   widest option, so every row, and the highlight of the one under the cursor, reaches the far end */
.select2-results > .select2-results__options {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr);
    overflow-x: auto;
}
.select2-results__option { position: relative; white-space: nowrap; }
/* a scrollbar that stays: the overlay one of macOS shows only while scrolling, and nothing would say
   the list goes on to the side. Here only -- styled for the whole page it takes 10 px off every
   table (see dark.css) */
.select2-results > .select2-results__options::-webkit-scrollbar { width: 8px; height: 8px; }
.select2-results > .select2-results__options::-webkit-scrollbar-thumb { background: var(--c-quiet); border-radius: 4px; }
.select2-results > .select2-results__options::-webkit-scrollbar-track,
.select2-results > .select2-results__options::-webkit-scrollbar-corner { background: transparent; }

.picker-modal-scroll { height: calc(90vh - 250px); margin-bottom: 20px; }
.picker-modal-scroll .table-responsive { height: 100%; overflow-x: auto; overflow-y: scroll; }
.picker-modal-scroll form { height: 100%; display: flex; flex-direction: column; }

/* a panel's own heading is a section heading like any other: small caps, the quiet grey, framed
   the same way as the column heads under it. The theme gives it a title-sized serif-weight line,
   which made every dashboard panel shout its own name. */
.panel > .panel-heading {
	padding: 10px 14px;
	background-color: var(--c-head);
	border-bottom: 1px solid var(--c-line);
	font-size: var(--fs-micro);
	font-weight: var(--fw-semi);
	text-transform: uppercase;
	letter-spacing: var(--ls-caps);
	color: var(--c-label);
	min-height: 0;
	line-height: 1.4;
}
.panel > .panel-heading i { margin-right: 6px; color: var(--c-muted); }
/* a button in the heading stays a button: K fakturaci's "Vystavit fakturu" came out in caps with a
   grey icon on green */
.panel > .panel-heading .btn { text-transform: none; letter-spacing: normal; }
.panel > .panel-heading .btn i { margin-right: 0; color: inherit; }
.panel > .panel-heading .badge {
	background: var(--c-none-wash);
	color: var(--c-soft);
	min-width: 20px;
	padding: 1px 7px;
	margin-left: 6px;
	font-size: var(--fs-micro);
	font-weight: var(--fw-semi);
	line-height: 16px;
	border-radius: 9px;
	vertical-align: 1px;
}

/* a form inside a table cell has the cell's width to live in, not a minimum of its own */
.table .inline-form { flex-wrap: nowrap; gap: var(--sp-1); }
.table .inline-form .form-control { min-width: 0; }

/* a section of a form is a heading over its fields, not a grey bar across the screen; and the
   fields need a white ground of their own to read as fields */
.form-part { border: 1px solid var(--c-line); border-radius: 3px; margin-bottom: 18px; background-color: var(--c-white); }
.form-part.form-part-white { background-color: var(--c-white); }
.form-part h3 {
	/* the ground of a table head: a form section and a table head read as one kind of heading (15. 9. 2026) */
	background-color: var(--c-table-head);
	padding: 10px 14px;
	margin-top: 0;
	margin-bottom: 0;
	min-height: 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--c-label);
	border-bottom: 1px solid var(--c-line);
	border-radius: 3px 3px 0 0;
}
/* a person's name as a section head is written as it is stored, not shouted (S5-13: "FEDUS VOLODYMYR" in Diety) */
.form-part h3.ff-person-name { text-transform: none; letter-spacing: normal; font-size: 13px; }
.form-part h3 i { margin-right: 6px; }
.form-part h3 input { margin-top: 0; }
.form-part h3 label { color: var(--c-label); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0; }
.form-part h3 .form-part-buttons { float: right; margin-top: -6px; padding: 0; }
.form-part h3 .form-part-buttons .btn { padding: 3px 8px; margin-right: 0; margin-left: 5px; }
/* the bottom gap was coming from the last .form-group's own margin, so a section whose last field
   is not wrapped in one ended flush against its border; the padding now carries it either way */
.form-part-content { padding: 14px; }
.form-part-content > *:last-child { margin-bottom: 0; }
.form-part-content > .row:last-child > [class^="col-"] > .form-group:last-child,
.form-part-content > .row:last-child > [class*=" col-"] > .form-group:last-child { margin-bottom: 0; }

/* DS-07: the form grid. A section lays its fields on twelve columns and decides by its own width
   how many sit on a row -- one below 520 px (a modal, a narrow side column), two above. Fields
   wrapped in a bootstrap .row keep the split their template gave them; a field that needs the
   whole width (a textarea, an editor, a multi-select, anything marked .ff-full) gets it. Before
   this the same section showed 1 / 2 / 2 / 1 fields per row depending on which template author
   had wrapped what, and a one-column form sat on a third of the screen.
   Three to a row above 900 px was tried and taken back: templates set fields down one or two at a
   time between hints, section titles and full-width fields, so a row of three almost never filled
   and every row of a wide form ended a third short. A template that wants three says so with
   col-sm-4. */
.form-part-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; align-items: start; container-type: inline-size; }
.form-part-content > * { grid-column: 1 / -1; min-width: 0; }
.form-part-content > .form-group { grid-column: span 12; }
@container (min-width: 520px) {
	.form-part-content > .form-group { grid-column: span 6; }
}
.form-part-content > .form-group.ff-full,
.form-part-content > .form-group:has(> textarea),
.form-part-content > .form-group:has(> .ff-full),
.form-part-content > .form-group:has(.note-editor, .cke, .select2-container-multi, .select2-container--multi, select[multiple], .files_box, .images_box, .checkbox-list, .radio-list, .translatable-container, table) { grid-column: 1 / -1; }
/* the .row inside stays a bootstrap row: its own negative margins, its own columns. A half-row
   field is half the section, the same as a loose field beside it. */
.form-part-content > .row { grid-column: 1 / -1; }
/* a half-width field that opens a row of its own, leaving the half beside the field before it empty
   (a code alone on its row, a margin under it) */
.form-part-content > .form-group.ff-row-start { grid-column: 1 / -1; }
@container (min-width: 520px) {
	.form-part-content > .form-group.ff-row-start { grid-column: 1 / span 6; }
}
/* a hint across the section that belongs to the half-width field above it: drawn up to the field as
   a hint inside the field's own group stands, not a group's bottom margin away from it */
.form-part-content > .form-group + .ff-form-hint.ff-hint-under { display: block; margin-top: -9px; margin-bottom: 15px; }
/* a framed checkbox standing alone among the fields is as wide as they are -- a half of the section,
   on a row of its own -- and the hint that belongs to it is drawn up to the frame the same way */
.form-part-content > .ff-toggle-block.ff-row-start { grid-column: 1 / -1; }
@container (min-width: 520px) {
	.form-part-content > .ff-toggle-block.ff-row-start { grid-column: 1 / span 6; }
}
.form-part-content > .ff-toggle-block + .ff-form-hint.ff-hint-under { display: block; margin-top: -8px; margin-bottom: 15px; }
.form-part-content > .form-group:last-child { margin-bottom: 0; }
/* a one-column edit form takes the width a form needs (up to 1 200 px), not the third of the
   screen its side-column class was sized for beside a set of tabs */
form > .content-container > .row > [class*="col-"]:only-child:not(.ff-col-keep) { width: 100%; max-width: 1200px; float: none; }
/* .ff-col-keep: a form whose side column only appears once the record exists (the account's security
   panel) keeps the same width on "new" as on "edit" instead of doubling */
/* below the xl breakpoint (1 700 px) the tabs column wraps under the form as col-sm-12, and the form
   was left on the left half of the screen with nothing beside it -- the "55 % width" of DS-07 */
@media (max-width: 1699px) {
	form > .content-container > .row > [class*="col-lg-"]:first-child:not(.ff-col-keep):has(+ .col-sm-12) { width: 100%; max-width: 1200px; float: none; }
}

.quick-create { position: absolute; top: 0; right: 15px; color: var(--c-quiet); }

.m-b-no { margin-bottom: 0 !important; }
.m-t-no { margin-top: 0 !important; }
.m-r-no { margin-right: 0 !important; }
.m-l-no { margin-left: 0 !important; }

.select2 { width: 100% !important; }
.select2-container--default .select2-results__option[aria-disabled=true] {
	display: none;
}

.select-tree_dependence { margin-top: -20px; }
.select-tree_dependence .form-group { margin-top: 20px; }

.label-detail { color: #000; width: 100%; font-size: 12px; float: left; clear: both; margin-bottom: 4px; }
.value-detail { font-size: 16px; font-weight: bold; }

.thumb-container { margin: -5px; }
.thumb { width: 33.33%; box-sizing: border-box; padding: 5px; float: left; }
.thumb img { width: 100%; border: 1px solid var(--c-line); }
.thumb-main { width: 100%; }
.thumb-none { width: 100%; }
.thumb-none div { border: 1px solid var(--c-line); height: 250px; position: relative; }
.thumb-none div i { position: absolute; top: 50%; left: 50%; font-size: 80px; color: var(--c-line); width: 100px; margin-left: -50px; text-align: center; margin-top: -40px; }



.tooltip { z-index: 99999; }

select[readonly].select2-hidden-accessible + .select2.select2-container {
	pointer-events: none;
	touch-action: none;
}
select[readonly].select2-hidden-accessible + .select2 .select2-selection {
	background-color: var(--c-line-quiet) !important;
	box-shadow: none !important;
}
select[readonly].select2-hidden-accessible + .select2 .select2-selection__arrow,.select2 .select2-selection__clear {
	display: none !important;
}

.panel-collapse.collapse-gray { background: var(--c-ground); }

.row {
	margin-right: -5px;
	margin-left: -5px;
}

.col-xxs-1, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xl-1, .col-xxs-2, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xl-2, .col-xxs-3, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xl-3, .col-xxs-4, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xl-4, .col-xxs-5, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xl-5, .col-xxs-6, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xl-6, .col-xxs-7, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xl-7, .col-xxs-8, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xl-8, .col-xxs-9, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xl-9, .col-xxs-10, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xl-10, .col-xxs-11, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xl-11, .col-xxs-12, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12 {
	padding-right: 5px;
	padding-left: 5px;
}



.settings-panel{
	margin-top: 0px !important;
	margin-bottom: 10px !important;
}

.in-bl{
	display: inline-block;
}

.package-items td{
	color: var(--c-muted);
	font-size: 85%;
}

ul.compact-list { padding-left: 0; margin-bottom: 0; }
ul.compact-list li { list-style: none; }

.alert { margin-bottom: 10px; }
/* an alert standing at the top of a screen's content kept off the header bar (testing, 15. 9. 2026) */
.content-container > .alert { margin-top: 5px; }
.alert.m-b-md { margin-bottom: 15px; }
.alert-default { background-color: var(--c-line-quiet); }

.row-links { margin-top: 15px; }

.info-box .info-box-icon i { color: var(--c-line); }
.info-box .info-box-stats span.info-box-title { margin-bottom: 0; }

/* responsivity */
@media (max-width: 768px) {
	.row { margin-right: -3px; margin-left: -3px; }
	[class*="col-"] { padding-left: 3px; padding-right: 3px; }

	body { font-size: 12px; }
	.navbar, .topmenu-outer, .navbar .logo-box { height: 40px; min-height: 40px; }
	.navbar .logo-box .logo-text { line-height: 40px; font-size: 18px; }
	.push-sidebar { padding: 10px 18px; }
	.menu.accordion-menu { width: 160px; }
	.menu.accordion-menu a { padding: 10px; }
	.page-header-fixed .page-sidebar {padding-top: 40px; }
	.page-header-fixed:not(.page-sidebar-fixed):not(.page-horizontal-bar) .page-inner { padding-top: 40px; }
	.hover-menu:not(.page-horizontal-bar) .accordion-menu > li > ul { left: 160px; width: 200px; }
	.page-title { padding: 10px 10px 5px 10px; }
	.page-title h1, .page-title h3 { font-size: 20px; }
	#main-wrapper { margin: 5px; }
	.panel { margin-bottom: 5px; }
	.panel .panel-body { padding: 5px; }
	.btn { font-size: 12px; padding: 4px 8px; }
	.btn-group.pull-right { float: left!important; }
	#chart { display: none!important; }

	.info-box .info-box-stats p { font-size: 18px; margin-bottom: 5px; }
	.info-box .info-box-icon { display: none; }
	.info-box .info-box-progress { display: none; }
}

table thead th .fa-long-arrow-alt-up, .table thead th .fa-long-arrow-alt-down { width: 8px; }

#packeta-iframe-wrap { max-width: 90%!important; }

.btn-disabled{
	background-color: var(--c-line-quiet) !important;
}

/* alertify */
.alertify { border-radius: 0; border: none; }
.alertify-cover { background-color: #000; opacity: 0.5!important; -ms-filter:alpha(Opacity=50)!important; filter:alpha(opacity=50)!important; }
.alertify-logs { width: 600px; max-width: 100%; top: 5px; left: 50%; transform: translateX(-50%); }
.alertify-log { text-align: center; right: 0; opacity: 1; transform: translate(0, -100%); transition: all 300ms; line-height: 16px; margin-top: 0; border-radius: 23px; }
.alertify-log-show { transform: translateY(0); }
/* done, but with a reservation: amber, not the error red -- the action went through (plachta review) */
.alertify-log-warning { background: #f0ad4e !important; color: #2b1d00 !important; }
/* white on the default teal read at 2.4:1 (review r2) -- a darker teal, the same as the order bars */
.alertify-log-success { background: #0f6e5f !important; color: #fff !important; }
.alertify-log-error { background: #b03a2e !important; color: #fff !important; }
.alertify-log-warning::before { content: '\f071'; font-family: 'Font Awesome 6 Pro'; font-weight: 900; margin-right: 8px; }
.alertify-log-hide { transform: translate(0, -100%); }


.badge-filters { padding-top: 6px; }
.badge-filters .badge { height: 22px; font-size: 12px!important; line-height: 14px!important; padding: 3px 10px!important; }
.badge-inactive { background-color: transparent!important; color: var(--c-soft)!important; }

.labels-dots { margin-top: -2px; }
.labels-dots i { font-size: 8px; line-height: 12px; width: 8px!important; }

.select2-dropdown { padding: 6px!important; }
/* rounded and edged as the field it is joined to; Bootstrap squares off the side that meets the field */
.input-group-addon { border-radius: 3px; border-color: var(--c-line-input); background-color: var(--c-dashed); }

.visible-xl { display: none!important; }
.visible-xxl { display: none!important; }

@media (min-width: 1600px) {
	.visible-xl { display: block; }
	th.visible-xl, td.visible-xl { display: table-cell!important; }
}

@media (min-width: 1800px) {
	.visible-xxl { display: block; }
	th.visible-xxl, td.visible-xxl { display: table-cell!important; }
}

.filters-container > .row{ margin: 15px 10px 10px 10px;}
.filters-container { display: none; background: var(--c-dashed); }
.filters-container.filters-open { display: block; }
.filters-container .inner { margin: 15px 10px 15px 10px; }

.import-export-container > .row{ margin: 15px 10px 10px 10px;}
.import-export-container { display: none; background: var(--c-dashed); }
.import-export-container .inner { margin: 15px 10px 15px 10px; }

.bulk-events-container { display: none; background: var(--c-dashed); }
.bulk-events-container > .row { margin: 15px 10px 10px 10px; }

.feeds-container { display: none; background: var(--c-dashed); }
.feeds-container > .row { margin: 15px 10px 10px 10px; }

.tr-variant, .tr-configurator-param { font-size: 11px; display: none; }
.tr-variant, .tr-configurator-param td { padding-top: 4px!important; padding-bottom: 4px!important; }

.text-gray { color: var(--c-muted); }
.text-dark { color: var(--c-ink); }

.mr-0{
	margin-right: 0 !important;
}

td small.pull-left { width: 100%; margin-top: 3px; }

table div.checker { margin-right: 0; }

.input-group-addon { font-size: 13px; }
h4 { margin-top: 20px; margin-bottom: 20px; }



/* the ground of the form section and table heads, so every heading of the admin reads the same (15. 9. 2026) */
.modal-header { background: var(--c-table-head); }
.modal-header h4 { margin-top: 0; margin-bottom: 0; }
.modal .tab-content { border: none; }
.modal-header + .modal-body { margin-top: 20px; }

.modal-xl { width: 95%; max-width: 1400px; }
.modal-xl .col-xl-10 { width: 100%; }
.modal-xl .col-xl-4 { width: 50%; }

.dz-images-box-select .dz-image-box { width: 150px; height: 183px; margin: 4px; }
.dz-images-box-select .dz-image-box .dz-image { width: 150px; height: 150px; }
.dz-images-box-select .dz-input { height: 34px; text-align: center; }

.help-block { margin-bottom: 20px; }

.dropdown-submenu:hover > ul.dropdown-menu {
	display: block;
}
.dropdown-submenu {
	position:relative;
}
.dropdown-submenu-left > .dropdown-menu {
	top: 0;
	left: 0;
	margin-top: -1px;
	transform: translateX(-100%);
}
.dropdown-submenu-left > .dropdown-menu:before,
.dropdown-submenu-left > .dropdown-menu:after,
.dropdown-menu-no-arrow:before,
.dropdown-menu-no-arrow:after {
	content: none;
}
.dropdown-menu-no-arrow {
	margin-top: 0;
}

.permissions-checkboxes .permissions-group { padding: 10px 15px; background-color: var(--c-ground); }
.permissions-items { padding: 10px 15px; }

/* ---- buttons, calmer ---------------------------------------------------------
   The theme's buttons were square blocks with the icon in a darker box of its own and the
   fills at full strength, so every action shouted as loud as the one that mattered (testing,
   15. 9. 2026). A slight radius like the fields, the icon inline with the label, a medium
   weight, fills a step deeper, and a focus ring the keyboard can see. The height stays at the
   field's 34px, so a button still lines up with the filter it stands next to.               */
.btn { border-radius: var(--r-btn); font-weight: var(--fw-medium); transition: background-color .12s, border-color .12s, box-shadow .12s; }
.btn:focus-visible { box-shadow: 0 0 0 1px var(--c-info), 0 0 0 4px var(--c-focus-ring); }
.btn-addon i,
.btn-sm.btn-addon i,
.btn-xs.btn-addon i,
.btn-lg.btn-addon i { position: static; float: none; width: auto; height: auto; margin: 0 7px 0 0; line-height: 1; vertical-align: -0.125em; background: transparent; border-radius: 0; opacity: .8; }
/* an icon never makes its button taller than the one beside it without an icon */
.btn > i { line-height: 1; vertical-align: -0.125em; }

.btn-default { color: var(--c-label); border-color: var(--c-line-input); }
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-group.open .btn-default.dropdown-toggle,
.btn.btn-default.active { color: var(--c-ink); background-color: var(--c-head); border-color: var(--c-line-input); }

/* the fills take the status ink instead of the base: deeper, calmer, and white text reads on them */
.btn-success { background-color: var(--c-ok-ink); }
.btn-primary,
.btn-info { background-color: var(--c-info-ink); }
.btn-danger { background-color: var(--c-bad-ink); }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn.btn-success.active { background-color: var(--c-ok-deep); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn.btn-primary.active,
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn.btn-info.active { background-color: var(--c-info-ink); background-image: linear-gradient(var(--veil), var(--veil)); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn.btn-danger.active { background-color: var(--c-bad-ink); background-image: linear-gradient(var(--veil), var(--veil)); }

/* A disabled button is the same button, held back (David, 5. 10. 2026): Bootstrap painted it in a
   palette of its own (#5bc0de for "info"), and took the mouse away from it, so its tooltip -- the
   one thing saying why -- never showed. It keeps the hover now; custom.js swallows the click */
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn { opacity: .5; cursor: not-allowed; pointer-events: auto; box-shadow: none; }
.btn-default.disabled, .btn-default[disabled],
.btn-default.disabled:hover, .btn-default[disabled]:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, .btn-default.disabled:active, .btn-default[disabled]:active { color: var(--c-label); background-color: var(--c-white); border-color: var(--c-line-input); }
.btn-success.disabled, .btn-success[disabled],
.btn-success.disabled:hover, .btn-success[disabled]:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, .btn-success.disabled:active, .btn-success[disabled]:active { background-color: var(--c-ok-ink); border-color: transparent; background-image: none; }
.btn-primary.disabled, .btn-primary[disabled], .btn-info.disabled, .btn-info[disabled],
.btn-primary.disabled:hover, .btn-primary[disabled]:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active,
.btn-info.disabled:hover, .btn-info[disabled]:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, .btn-info.disabled:active, .btn-info[disabled]:active { background-color: var(--c-info-ink); border-color: transparent; background-image: none; }
.btn-danger.disabled, .btn-danger[disabled],
.btn-danger.disabled:hover, .btn-danger[disabled]:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active { background-color: var(--c-bad-ink); border-color: transparent; background-image: none; }
.btn-warning.disabled, .btn-warning[disabled],
.btn-warning.disabled:hover, .btn-warning[disabled]:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active { background-color: var(--c-warn); border-color: transparent; background-image: none; color: #1f242a; }

/* in the title bar the module's actions sit beside a 16px title: a size smaller than in a form */
@media (min-width: 768px) {
	.page-content .page-inner .page-title .buttons { margin-top: -2px; }
	/* a fixed height, not one that falls out of the text's line box: a button with only an icon
	   (the gear) came out a pixel or two off the one with a label, depending on the browser */
	.page-content .page-inner .page-title .buttons .btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; line-height: 20px; }
	.page-content .page-inner .page-title .buttons .btn.btn-icon { width: 30px; padding: 0; }
	.page-content .page-inner .page-title .buttons .btn.btn-icon > i { margin: 0; line-height: 1; }
}



.badge { margin-top: -3px; font-size: 12px!important; line-height: 12px; padding: 3px 10px 3px 10px!important; height: 18px; }
/* dark: a plain count ("Po splatnosti 3") as the muted count of a tab -- white on bootstrap's #777 was 4.48:1
   (DS16-01); the light theme has its own grey (tokens.css) */
[data-theme="dark"] .badge:not([class*="badge-"]) { background-color: var(--c-none-wash); color: var(--c-neutral-ink); font-weight: 600; }

.table > tbody > tr > td.td-image { padding: 1px 1px!important; }
.table > tbody > tr > td.td-image img { max-width: 100%; }

input[type=checkbox] { height: 14px; width: 14px; display: inline-block; margin-right: 5px; }
table input[type=checkbox] { margin-right: 0; }

.colorpicker { z-index: 10000; }

.bulk-head-checkbox{
	text-align: center;
	padding-top: 5px;
}
.dz-container .dropzone{
	min-height: 100px;
}
.dz-container .dz-clickable { border: 1px solid var(--c-line); padding: 0; text-align: center; background-color: var(--c-white); color: var(--c-soft); cursor: pointer; }
.dz-container .dz-clickable:hover { background-color: var(--c-ground); }
.dz-container .dz-clickable p { margin-bottom: 5px; }

.dz-container .dz-images-box { margin: 10px -5px 0 -5px; }
.dz-container .dz-images-box .dz-image-box { display: inline-block; width: 300px; height: 300px; margin: 5px; position: relative; }
.dz-container .dz-images-box .dz-image-box .dz-image { width: 300px; height: 300px; position: absolute; top: 0; left: 0; overflow: hidden; border: 1px solid var(--c-line); }
.dz-container .dz-images-box .dz-image-box .dz-image img { position: absolute; top: 50%; left: 50%; height: 100%; width: auto; -webkit-transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); transform: translate(-50%,-50%); }
.dz-container .dz-images-box .dz-image-box .dz-image.portrait img { width: 100%; height: auto; }
.dz-container .dz-images-box .dz-image-box .dz-buttons { position: absolute; top: 1px; right: 1px; }
.dz-container .dz-images-box .dz-image-box .dz-buttons .far { width: 24px; height: 24px; background-color: rgba(0, 0, 0, 0.4); color: #ffffff; line-height: 20px; text-align: center; padding: 3px 2px 2px 2px; float: left; margin-left: 2px; }
.dz-container .dz-images-box .dz-image-box .dz-buttons .far:hover { text-decoration: none; background-color: rgba(0, 0, 0, 0.8); }
.dz-container .dz-images-box .dz-image-box .dz-buttons .far.dz-move { cursor: move; }
.dz-container .dz-images-box .dz-input { position: absolute; bottom: 0; left: 0; width: 100%; }

.dz-container .dz-files-box { margin-top: 10px; }
.dz-container .dz-files-box .dz-file-box { margin-top: 10px; }
.dz-container .dz-files-box .dz-file-box .dz-move { cursor: move; }

.dz-container .gallery_images_box{
	width: 100%;
}

.has-success .input-group-btn .btn{
	border-color: #3c763d;
}
.select2-hidden-accessible {
	border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0!important; position: absolute!important; width: 1px!important;
}

.ico_del.text-danger{
	color: var(--c-bad) !important; /*.text-danger*/
}

.modal-footer .btn + .btn {
	margin-left: 0;
}

.dropzone .dz-message { margin: 3em 0; }


.hidden-input-for-validation{
	margin-bottom: 0px;
}
.hidden-input-for-validation input{
	opacity: 0;
	height: 0;
	position: absolute;
	width: 0;
}
.hidden-input-for-validation .help-block{
	margin-top: 0px;
}


.rating-input{
	margin-bottom: 15px;
	display: inline-block;
}
.rating-input input{
	display: none;
}
.rating-input a{
	color: var(--c-quiet);
	font-size: 23px;
	transition: 0.1s;
}
.rating-input a.selected{
	color: #efbd56;
}
.rating-input a.no-hover{
	color: var(--c-line-input-sm) !important;
}
.rating-input a.selected.hover, .rating-input a.hover{
	color: #cea047;
}
.text-gold{
	color: #efbd56;
}

.ui-tooltip {
	/* tooltip container box */
	white-space: pre-line;
}

.ui-tooltip-content {
	/* tooltip content */
	white-space: pre-line;
}


.multiplicator-pattern {
	display: none;
}

.multiplicator .input-set{
	width: calc(100% - 40px) !important;
	margin-left: 20px;
}
.multiplicator.with-selects .select2{
	width: calc(100% - 40px) !important;
	margin-left: 20px;
}


.multiplicator .multiplicator-remove{
	position: relative;
	float: right;
	top: 30px;
}
.multiplicator.with-selects .multiplicator-remove{
	bottom: 27px;
	top: auto;
}


.multiplicator .move-handler{
	position: relative;
	float: left;
	top: 30px;
}
.multiplicator.with-selects .move-handler{
	bottom: 27px;
	top: auto;
}

.b-gray{
	border-color: var(--c-line);
}


.content-list .content-blocks-section{
	border-color: var(--c-line);
}
.content-list .content-blocks-blocks{
	min-height: 50px; padding: 10px 10px 0 10px; border: 1px dashed var(--c-line-quiet);
}
.content-list .content-blocks-blocks .content-blocks-block{
	background-color: var(--c-dashed); border-color: var(--c-line);
}
.content-list .content-blocks-blocks label.content-blocks-block{
	cursor: pointer;
}
.content-list .content-blocks-blocks label.content-blocks-block .content-block-name{
	margin-bottom: 0;
	padding-left: 26px;
}
.content-list .content-blocks-blocks label.content-blocks-block .content-block-name input{
	position: absolute; left: 5px; margin-top: 2px;
}

.content-blocks-sections .content-blocks-blocks .content-blocks-block{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.content-blocks-sections .content-blocks-blocks .content-blocks-block .content-block-row-info{
	display: flex;
	align-items: center;
}
.content-blocks-sections .content-blocks-blocks .content-blocks-block .content-block-row-info small{
	color: var(--c-soft);
}

.panel-info.light .panel-heading { background: #d3e6f0;color: #31708f; padding: 15px 20px 15px 20px; height: 45px;}
.panel.configurator .panel-body { padding: 10px;}
.panel.configurator { margin-bottom: 20px;}
.panel.configurator .configurator-item { width: 19%; height: auto; min-height: 80px; position: relative; background-color: var(--c-ground); margin-top: 5px; padding: 1px; overflow: hidden; display: inline-block; vertical-align: middle; text-align: center; font-size: 10px; cursor: pointer;}
.panel.configurator .configurator-item:hover { background-color: var(--c-quiet);}
.panel.configurator .configurator-item .name { position: absolute; top: 50%; transform: translateY(-50%); width: 100%;}
.panel.configurator .configurator-item img { width: 100%; height: 100%; }
.panel.configurator .configurator-item input.quantity { width: calc(100% - 10px); left: 5px; position: absolute; bottom: 5px; height: 20px; padding: 0 2px 0 2px !important; opacity: 0.8;}
.panel.configurator .configurator-item input[type="checkbox"] { position: absolute; right: 0; width: 18px; height: 18px; opacity: 0.8; }


.label.label-default{
	color: var(--c-soft);
}

.treegrid-indent { display: inline-block; }
.treegrid-expander { padding: 2px 5px 3px; margin-left: -23px; cursor: pointer; }
.treegrid-expander-disabled { opacity: 0.1; cursor: auto; visibility: hidden; }



.select2-container--default .select2-selection--multiple {
	height: auto!important;
	padding: 3px 10px!important;
	min-height: 34px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin-top: 1px!important;
	margin-bottom: 0;
}

table.table-compact .select2-container--default .select2-selection--multiple {
	height: auto!important;
}

table.table-compact .select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin-bottom: 5px;
}

.table > tbody > tr.tr-total > td { background-color: rgba(255, 255, 0, 0.1); }


.mld-control-flag { margin: 0 0 0 10px; background-color: rgba(170, 170, 170, 0.2); border: 1px solid var(--c-quiet); width: 32px!important; height: 31px; margin-top: -1px; }
.mld-control-flag[disabled='disabled'] { border-color: var(--c-ok); }
.mld-control-flag[active='1'] { border-color: var(--c-ok); background-color: rgba(34, 186, 160, 0.2); }
.mld-control-flag i {  }

.translatable-container { margin-bottom: 20px; }
.translatable-container .form-group { margin-bottom: 5px; }
.translatable-container .input-group-addon { width: 42px; }
.translatable-container .flag-icon { width: 16px; }
.translatable-container .nav-tabs { margin-bottom: 0; padding: 0; border-bottom: 0; border-radius: 0; background: none; }
.translatable-container .nav-tabs > li.active > a { box-shadow: none; }
.translatable-container .nav-tabs li { background-color: var(--c-line-quiet); width: 80px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--c-line); margin-right: -1px; }
.translatable-container .nav-tabs li a { display: flex; justify-content: center; }
.translatable-container .nav-tabs li.active { background-color: var(--c-white); }
.translatable-container .nav-tabs li:first-child.active { border-left-color: var(--c-line) !important; }
.translatable-container .nav-tabs li.active a { border: 0 !important; border-bottom: 1px solid transparent !important; }
.translatable-container .nav-tabs li input[type=checkbox] { margin-top: 0; }
.translatable-container .nav-tabs li a { text-align: center; background-color: transparent; margin-right: 0; width: 100%; float: right; border: 0 !important; border-bottom: 1px solid transparent !important; }
.translatable-container .nav-tabs li span.auto-translate { float: left; width: 30px; padding-left: 15px; }
.translatable-container .nav-tabs li span + a { justify-content: start; width: 45px; padding-left: 10px; }
.translatable-container .tab-content { padding: 0; }

.mld-control .mld-control-flag img { width: 16px; }


.form-group.has-error .form-control { border-color: var(--c-bad-ink); background-color: var(--c-bad-wash); }
.form-group.has-error .form-control:focus { border-color: var(--c-bad-ink); background-color: var(--c-bad-wash); }

/* the row of the sum under a table: the cells' own padding (Bootstrap gave the foot 15 px against the
   body's 6), a line above it and the ground of a head, so it reads as the sum and not as one more row
   (the costs of a vehicle, David 22. 9. 2026) */
.content-container .table > tfoot > tr > th, .content-container .table > tfoot > tr > td { padding: 8px 8px !important; border-top: 2px solid var(--c-table-head); background: var(--c-ground); font-weight: 600; color: var(--c-ink); }
/* modern.css gives every cell 15 px with !important; the compact table takes it back the same way */
.content-container .table.table-compact > tfoot > tr > th, .content-container .table.table-compact > tfoot > tr > td { padding: 8px 6px !important; }
.content-container .table > tfoot > tr > th small, .content-container .table > tfoot > tr > td small { font-weight: 400; color: var(--c-muted); }
.table-compact .form-control.has-error { border-color: var(--c-bad-ink); background-color: var(--c-bad-wash); }
.table-compact .form-control.has-error:focus { border-color: var(--c-bad-ink); background-color: var(--c-bad-wash); }
.table-compact span.help-block.text-danger { display: none; }

.service-order-job-category { margin-bottom: 6px; }
.service-order-job-category-name { padding: 10px; background-color: var(--c-line-quiet); cursor: pointer; display: block; color: var(--c-ink-strong); text-decoration: none; transition: background-color 200ms; }
.service-order-job-category-name:hover { background-color: var(--c-line); color: var(--c-ink-strong); text-decoration: none; }
.service-order-job-category-jobs { display: none; padding: 0 10px 10px 10px; }
.service-order-job-category-jobs .table { border: none; margin-bottom: 0; border-bottom: none!important; }
.service-order-job-category-jobs .table > tbody > tr > td { border: none!important; }
.service-order-job-category-jobs .table > tbody > tr > td { border-bottom: 1px solid var(--c-line-quiet)!important; }
.service-order-job-category-jobs .table > tbody > tr:last-of-type > td { border-bottom: none!important; }
.service-order-job-category-job.is-active td { background-color: #1DB198; color: #ffffff; }

.service-activities { position: fixed; bottom: 0; left: 190px; z-index: 1; }
.service-activities .service-activity { float: left; margin: 0 10px 10px 0; background-color: #d90000; border-radius: 4px; padding: 10px 15px; color: #ffffff; font-size: 12px; line-height: 1.6; box-shadow: 3px 3px 5px #00000022; }
.service-activities .service-activity:hover { text-decoration: none; }
.service-activities .service-activity-order { font-size: 11px; }

.color-dot { position: relative; display: inline-block; margin-bottom: -3px; margin-right: 10px; margin-left: 5px; width: 24px; height: 16px; overflow: hidden; box-shadow: 0 0 10px var(--c-muted); }
.color-dot-second { position: absolute; top: 0; left: 12px; width: 12px; height: 16px; }

#technology-price-list .technology-variant { width: 100px; min-width: 100px; }
#technology-price-list .technology-unit { width: 60px; min-width: 60px; }
#technology-price-list td input { text-align: right; }

.buttons-separated { padding-right: 15px; margin-right: 10px; border-right: 1px solid var(--c-line); }

.action-icons a { color: var(--c-soft); margin-right: 5px; }

.dropzone-component .form-group { margin-bottom: 0; margin-top: 5px; }

.row-flex { display: flex; }

.border-divider-left { border-left: 1px solid var(--c-line); margin-left: 10px; padding-left: 20px; height: 100%; }
/* A column that holds more than a map (the address of a partner: the map and the restrictions of the place). At a
   height of 100 % the column is measured by its neighbour, the map takes all of it and whatever follows spills out
   under the modal; here the column grows with what it holds and the map keeps a height of its own. */
.border-divider-left.ff-divider-grow { height: auto; min-height: 100%; }
.ff-divider-grow .address-map-control { height: auto; }
.ff-divider-grow .address-map-control .address-map-container { flex-grow: 0; height: 320px; }

.address-map-control { height: 100%; display: flex; flex-direction: column; }
.address-map-control .address-map-container { flex-grow: 1; background-color: var(--c-line-quiet); }
/* the map's address offered beside the one typed by hand (S2-01): text first, the button after it */
.address-map-control .address-map-offer { margin: 0 0 8px; }
.address-map-control .address-map-offer .btn { float: none; margin-left: 6px; vertical-align: baseline; }

/* state badges in the wash + ink family of the design language (UX review, DS-04): white text on
   the base colour measured 2.8-3.4:1 and failed AA, and a literal #ff0000 ignored the tokens.
   Ink on wash reads in both themes and matches the badges the newer screens already use */
.badge-order-state-11, .badge-order-state-12, .badge-order-state-13, .badge-order-state-14, .badge-order-state-15,
.badge-business-state-valid, .badge-business-state-cancelled, .badge-business-state-credit_blocked,
.badge-operational-state-unassigned, .badge-operational-state-partially_assigned, .badge-operational-state-planned,
.badge-operational-state-in_progress, .badge-operational-state-completed { font-weight: 600; }

.badge-order-state-11 { background-color: var(--c-warn-wash); color: var(--c-warn-ink); }
.badge-order-state-12 { background-color: var(--c-info-wash); color: var(--c-info-ink); }
.badge-order-state-13 { background-color: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-order-state-14 { background-color: var(--c-none-wash); color: var(--c-neutral-ink); }
.badge-order-state-15 { background-color: var(--c-bad-wash); color: var(--c-bad-ink); }

/* the two states of an order (01/K): the business one is a decision, so it is loud when it is not
   "valid"; the operational one is a fact and stays quiet until the transport is under way */
.badge-business-state-valid { background-color: var(--c-info-wash); color: var(--c-info-ink); }
.badge-business-state-cancelled { background-color: var(--c-bad-wash); color: var(--c-bad-ink); }
.badge-business-state-credit_blocked { background-color: var(--c-warn-wash); color: var(--c-warn-ink); }

.badge-operational-state-unassigned { background-color: var(--c-none-wash); color: var(--c-neutral-ink); }
.badge-operational-state-partially_assigned { background-color: var(--c-warn-wash); color: var(--c-warn-ink); }
.badge-operational-state-planned { background-color: var(--c-alt-wash); color: var(--c-alt-ink); }
.badge-operational-state-in_progress { background-color: var(--c-ok-wash); color: var(--c-ok-ink); }

/* one shape for a state (DS2-05): the order's two states were a Bootstrap badge without a mark next
   to the invoices' and the trips' pill with a dot -- the same pill now, as __inc/stateBadge.latte draws it */
[class*="badge-order-state-"], [class*="badge-business-state-"], [class*="badge-operational-state-"] {
    display: inline-block;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    font-size: 11px !important;
    line-height: 14px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
[class*="badge-order-state-"]::before, [class*="badge-business-state-"]::before, [class*="badge-operational-state-"]::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 5px;
    vertical-align: 1px;
}
.badge-operational-state-completed { background-color: var(--c-none-wash); color: var(--c-neutral-ink); }

/* pricing an offer (00): the controls sit above the figures they produce */
.pricing-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pricing-actions select { max-width: 260px; }
.pricing-countries { padding-top: 0 !important; }
.pricing-countries .badge-soft { margin-right: 4px; }

/* ==== Modern refresh: soft status badges (sklad / servis / fakturace) ==== */

.badge-soft {
    display: inline-block;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 14px;
    height: auto;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.badge-soft::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 5px;
    vertical-align: 1px;
}
/* a badge that opens with an icon says its kind by the icon: the dot beside it was a second mark for
   the same thing */
.badge-soft:has(> i:first-child)::before { display: none; }
.badge-soft > i:first-child { margin-right: 4px; }
/* a badge that is only an icon, its word in the tooltip (the state of a stock card): even padding,
   no room for a text that is not there (David, 30. 9. 2026) */
.badge-soft.badge-soft-icon { padding: 3px 7px; }
.badge-soft.badge-soft-icon > i:first-child { margin-right: 0; }

/* a tree to drag (custom.js .ff-nest on jquery.nestable; the categories of stock cards): a row is
   grip, name, count and menu; the caret of a branch stands before the row, a leaf keeps its room so
   the names line up; a sub-list is indented (David, 30. 9. 2026) */
.ff-nest-row {
    display: flex; align-items: center; gap: 6px;
    min-height: 38px; padding: 4px 6px 4px 26px;
    border-bottom: 1px solid var(--c-line-soft);
    cursor: pointer;
}
.ff-nest-row:hover { background: var(--c-table-head); }
.ff-nest-row.active { background: var(--c-info-wash); }
/* "All cards" and "Without a category" have no caret, menu nor grip: the name lines up with the tree */
.ff-nest-row.ff-nest-fixed { padding-left: 87px; }
/* in the picker of stock cards the tree has no menu nor grip: the name follows the caret */
.ff-nest-row.ff-nest-fixed.ff-picker-fixed { padding-left: 26px; }
.ff-picker-sort { white-space: nowrap; }
/* a field that is typed into or picked from a catalogue: the select2 takes the room, the button stands beside it */
.ff-picker-field { display: flex; gap: 6px; align-items: stretch; }
.ff-picker-field > .select2-container { flex: 1 1 auto; min-width: 0; width: auto !important; }
.ff-picker-field > .btn { flex: 0 0 auto; white-space: nowrap; }

/* the record a document was made by (an issue of a service order, a tyre, a transfer): a framed box
   with a title, a few facts in two columns and the way there (David, 30. 9. 2026) */
/* neutral, as a card of its own (David, 30. 9. 2026: no coloured wash): white with a grey frame, the
   title set off by a line, the buttons in a grey foot across the whole box */
.ff-origin-box { border: 1px solid var(--c-line); border-radius: 6px; margin-bottom: 10px; background: var(--c-white); overflow: hidden; }
/* something the card asks to be done, over a table: past months missing from the book */
.ff-note-box { border: 1px solid var(--c-line); border-radius: 6px; padding: 12px 14px; background: var(--c-ground); }
.ff-note-box > .ff-form-hint { margin: 8px 0 0; }
.ff-origin-box > .ff-tags { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--c-line-quiet); }
.ff-origin-title { font-size: 15px; color: var(--c-ink-strong); }
.ff-origin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; padding: 10px 14px; }
.ff-origin-facts dt { font-weight: 400; color: var(--c-label); }
.ff-origin-facts dd { margin: 0; color: var(--c-ink-strong); }
.ff-origin-box > p:not(.ff-tags) { margin: 0; padding: 0 14px 10px; }
/* the buttons of a box in one row, spaced, none of them floating off its line */
.ff-origin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-origin-box > .ff-origin-actions { padding: 10px 14px; border-top: 1px solid var(--c-line); background: var(--c-ground); }
.ff-origin-actions .btn { float: none; margin: 0; }
/* a tooltip of several lines (the tags of where stock went) reads from the left, not centred */
.tooltip-inner:has(br) { text-align: left; }
/* under the sheet of an inventory: a card by hand, or the load from a choice -- one line */
.ff-inventory-load { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ff-inventory-load .btn { float: none; margin: 0; }
.ff-inventory-load .form-control,
.ff-inventory-load .select2-container { width: 320px !important; flex: 0 1 320px; }
.ff-inventory-load-or { color: var(--c-label); margin-left: 8px; white-space: nowrap; }
.ff-nest-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-nest-count { flex: 0 0 auto; min-width: 24px; text-align: right; }
.ff-nest-menu { flex: 0 0 auto; }
/* the menu button as big as in the listings, its icon in the middle both ways */
.ff-nest-menu .dropdown-toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; line-height: 1; }
.ff-nest .dd-list { list-style: none; margin: 0; padding: 0; }
.ff-nest .dd-list .dd-list { padding-left: 18px; }
.ff-nest .dd-item { position: relative; }
.ff-nest .dd-handle { flex: 0 0 auto; color: var(--c-soft); cursor: grab; padding: 0 4px; }
.ff-nest .dd-handle:hover { color: var(--c-ink); }
.ff-nest .ff-nest-toggle {
    position: absolute; left: 0; top: 0; z-index: 1;
    width: 26px; height: 38px; padding: 0;
    border: 0; background: transparent; color: var(--c-soft);
}
.ff-nest .ff-nest-toggle:hover { color: var(--c-ink); }
.ff-nest .dd-collapsed > .dd-list { display: none; }
.ff-nest .dd-placeholder { min-height: 38px; margin: 2px 0; border: 1px dashed var(--c-line); background: var(--c-info-wash); }
.ff-nest .dd-empty { display: none; }
/* the row the dragged category would go into as a sub-category */
.ff-nest .ff-nest-row.dd-drop-into { background: var(--c-info-wash); box-shadow: inset 0 0 0 2px var(--c-info-ink); }
/* what is being dragged hangs by the pointer, outside the panel */
.dd-dragel { position: absolute; pointer-events: none; z-index: 9999; list-style: none; margin: 0; padding: 0; }
.dd-dragel .dd-list { list-style: none; margin: 0; padding: 0 0 0 18px; }
.dd-dragel .ff-nest-row { background: var(--c-white); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); border: 1px solid var(--c-line); }
.dd-dragel .ff-nest-toggle { display: none; }
.badge-soft-success { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-soft-info { background: var(--c-info-wash); color: var(--c-info-ink); }
.badge-soft-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.badge-soft-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.badge-soft-muted { background: var(--c-none-wash); color: var(--c-neutral-ink); }
.badge-soft-alt { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.badge-soft-purple { background: var(--c-alt-wash); color: var(--c-alt-ink); }

.badge-invoice-status-unpaid { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.badge-invoice-status-partial { background: var(--c-info-wash); color: var(--c-info-ink); }
.badge-invoice-status-paid { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-invoice-status-overdue { background: var(--c-bad-wash); color: var(--c-bad-ink); }
/* settled without the money: by credit notes, by the offset (FI3-08) */
.badge-invoice-status-credited, .badge-invoice-status-offset { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-invoice-state-draft { background: var(--c-neutral-wash); color: var(--c-neutral-ink); }
.badge-invoice-state-issued { background: var(--c-info-wash); color: var(--c-info-ink); }
.badge-invoice-state-sent { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-invoice-state-cancelled { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.text-line-through { text-decoration: line-through; }

.badge-service-order-state-1 { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.badge-service-order-state-2 { background: var(--c-info-wash); color: var(--c-info-ink); }
.badge-service-order-state-3 { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.badge-service-order-state-4 { background: var(--c-none-wash); color: var(--c-neutral-ink); }
.badge-service-order-state-5 { background: var(--c-bad-wash); color: var(--c-bad-ink); }

/* ==== Modern refresh: stat cards above listings ==== */

.stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.stat-card {
    flex: 1 1 180px;
    min-width: 180px;
    background: var(--c-white);
    border-radius: 3px;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c-line-chip);
}
.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: var(--c-none-wash-soft);
    color: var(--c-soft);
}
.stat-card .stat-value {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--c-ink);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.stat-card .stat-value small { font-size: 12px; font-weight: 400; color: var(--c-muted); }
/* the number stays on one line, a long unit ("km · ze závady 03.11. · jednotka…") wraps under it (DS3-12) */
.stat-card .stat-value small { white-space: normal; }
/* DS12-02: a card's name is a sentence everywhere, by this rule alone -- "Výsledek za říjen 2026" beside "TRŽBY ZA
   ŘÍJEN 2026" on one board came from capitals for short names and a sentence for long ones (ffLongStatLabels, gone);
   semibold in --c-label sets it apart from its note in --c-soft */
.stat-card .stat-label {
    font-size: 12px;
    font-weight: var(--fw-semi);
    color: var(--c-label);
    margin-top: 1px;
    /* DS3-12: a long label goes on two lines ("TACHOMETR · SERVISNÍ INTERVAL ZA 12 000 KM") instead
       of ending in "NE…"; only a third line is cut, the whole text is in the card's tooltip */
    white-space: normal;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.stat-card .stat-label::first-letter { text-transform: uppercase; }
/* DS5-13: the state after the card's name is a sentence under it */
.stat-card .stat-label:has(> .stat-label-note) { -webkit-line-clamp: 3; line-clamp: 3; }
.stat-card .stat-label .stat-label-note { display: block; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--c-soft); }
.stat-card .stat-label .stat-label-note::first-letter { text-transform: uppercase; }
/* the value and the label share what the card has left after the icon; without this the flex
   item refuses to shrink below its content and the label is cut against the card's own edge */
.stat-card > div:last-child { min-width: 0; }
.stat-card.stat-success::before { background: var(--c-ok); }
.stat-card.stat-success .stat-icon { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.stat-card.stat-info::before { background: var(--c-info); }
.stat-card.stat-info .stat-icon { background: var(--c-info-wash); color: var(--c-info-ink); }
.stat-card.stat-warning::before { background: var(--c-warn); }
.stat-card.stat-warning .stat-icon { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.stat-card.stat-danger::before { background: var(--c-bad); }
.stat-card.stat-danger .stat-icon { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.stat-card.stat-purple::before { background: var(--c-alt); }
.stat-card.stat-purple .stat-icon { background: var(--c-alt-wash); color: var(--c-alt-ink); }

/* ==== Modern refresh: empty states ==== */

/* the empty listings that used to sit in a blue information banner now say so as an empty state
   of their own, so this bridge is gone -- and the handful of places that genuinely inform get a
   bar quiet enough not to compete with the screen it sits on */
.info-note {
	padding: 11px 14px;
	margin-bottom: 16px;
	background: var(--c-info-wash);
	border-left: var(--edge-w) solid var(--c-info);
	border-radius: 0 var(--r) var(--r) 0;
	color: var(--c-ink);
	font-size: var(--fs);
	line-height: 1.6;
}
.info-note i { margin-right: 6px; color: var(--c-info-ink); }
.info-note strong { font-weight: var(--fw-semi); }

/* the same bar in the two other tones: a capacity check has findings that inform (the load will
   not fit) and findings that merely warn (no space holds that temperature) */
.info-note-warning { background: var(--c-warn-wash); border-left-color: var(--c-warn); }
.info-note-warning i { color: var(--c-warn-ink); }
.info-note-danger { background: var(--c-bad-wash); border-left-color: var(--c-bad); }
.info-note-danger i { color: var(--c-bad-ink); }
/* a button in the bar's sentence stays after the words (the global .btn floats left) and keeps its own colours */
.info-note .btn { float: none; vertical-align: baseline; }
.info-note .btn i { color: inherit; }

/* ==== Prázdný stav (David, 6. 11. 2026): ONE grey block for "nothing here" everywhere -- a tab of a card, a panel, a
   section, a modal, the loader of a lazy tab and the empty row of a listing alike: the icon in the middle, the text
   under it. An empty table is not drawn as a head over an empty row; the block stands in its place (the rules at
   td.td-empty below). 26px + the 1px edge above and below, a 26px icon in --c-faint, 13px text in --c-muted, ~114px.
   The line heights are said here, so a compact table, a modal or a panel does not make the same state taller ==== */
.empty-state {
    text-align: center;
    padding: 26px 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-ground);
    color: var(--c-muted);
    font-weight: 400;
    white-space: normal;
}
/* the loader of a lazy tab (.is-loading, __inc/lazyTabLoader.latte, custom.js ffLazyTabs) is the same block with the same
   classes: its spinner is the icon, in its size and colour, so the loader and the empty state are always as tall */
.empty-state .empty-state-icon {
    font-size: 26px;
    line-height: 1.3;
    color: var(--c-faint);
    margin-bottom: 8px;
}
.empty-state .empty-state-text { font-size: 13px; line-height: 1.3; }
.empty-state .empty-state-action { margin-top: 12px; }
/* the label of a sortable column is a part of its link (custom.js, DS2-15) */
.ff-sort-label { cursor: pointer; }
.ff-sort-label:hover { text-decoration: underline; text-underline-offset: 2px; }

/* the refused page (S2-18): the empty state, a size up, with what is missing and the two ways out */
.access-deny { max-width: 640px; margin: 40px auto 0 auto; }
.access-deny .empty-state { padding: 40px 24px 36px 24px; border: 0; background: transparent; }
.access-deny .empty-state-icon { font-size: 40px; color: var(--c-quiet); margin-bottom: 14px; }
.access-deny-title { margin: 0 0 12px 0; font-size: 18px; font-weight: var(--fw-semi); color: var(--c-ink-strong); }
.access-deny-facts { list-style: none; margin: 0 0 10px 0; padding: 0; color: var(--c-ink); }
.access-deny-facts li { margin-bottom: 2px; }
.access-deny .empty-state-text { color: var(--c-soft); }
.access-deny-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.access-deny-actions .btn-addon { float: none; }

/* ==== Modern refresh: chart panel ==== */

.chart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.chart-panel-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-soft);
}
.chart-year-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-year-switcher .chart-year-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-ink);
    min-width: 48px;
    text-align: center;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}
.chart-panel-canvas {
    position: relative;
    height: 220px;
}

/* ==== Modern refresh: document numbers ==== */

.doc-number {
    font-weight: 600;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.badge-trip-status-planned { background-color: var(--c-warn); color: #ffffff; }
.badge-trip-status-active { background-color: #45b000; color: #ffffff; }
.badge-trip-status-completed { background-color: var(--c-muted); color: #ffffff; }

.dispatch-squares { display: flex; gap: 3px; flex-wrap: wrap; }
.dispatch-square { display: inline-block; width: 14px; height: 14px; border-radius: 2px; cursor: default; border: 1px solid rgba(20, 140, 120, 0.5); }
.dispatch-square-unassigned { border: none; }
a.dispatch-square { cursor: pointer; }
.dispatch-square-pending { background-color: rgba(20, 140, 120, 0.05); }
.dispatch-square-on_route, .dispatch-square-waiting, .dispatch-square-in_progress { background-color: rgba(20, 140, 120, 0.45); }
.dispatch-square-completed { background-color: rgba(20, 140, 120, 1); }
.dispatch-square-unassigned { background-color: #ff4444; }
.badge-cargo-icon { display: inline-block; width: 22px; height: 22px; border-radius: 3px; text-align: center; line-height: 22px; color: #ffffff; font-size: 11px; margin-right: 2px; cursor: default; }
.badge-cargo-loading { background-color: var(--c-ok); }
.badge-cargo-unloading { background-color: var(--c-bad); }

.dispatch-square-dropdown { display: inline-block; position: relative; }
.dispatch-square-dropdown .dispatch-square { cursor: pointer; }

.badge-stop-status-pending, .badge-stop-status-on_route, .badge-stop-status-waiting, .badge-stop-status-in_progress, .badge-stop-status-completed { font-weight: 700; }
.badge-stop-status-pending, .badge-stop-status-on_route, .badge-stop-status-waiting, .badge-stop-status-in_progress, .badge-stop-status-completed { background-color: var(--c-white); color: var(--c-ink); }

.xdsoft_datetimepicker { padding: 10px 10px 10px 5px; border-color: var(--c-line-input); }
.xdsoft_datetimepicker .xdsoft_datepicker { margin-left: 5px; width: 250px; }
.xdsoft_datetimepicker .xdsoft_calendar th { background-color: var(--c-white); font-weight: normal; }
.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar th { height: 30px; text-align: center; }
.xdsoft_datetimepicker .xdsoft_calendar td > div { padding: 0; }
.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div { color: var(--c-soft)!important; }
.xdsoft_datetimepicker .xdsoft_calendar td:hover,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div:hover { background-color: var(--c-line)!important; color: var(--c-soft)!important; }
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current { background-color: var(--c-ok)!important; color: #ffffff!important; box-shadow: none; border-color: var(--c-ok)!important; }
.xdsoft_time_box { border-color: var(--c-line); }
.xdsoft_datetimepicker .xdsoft_timepicker { margin-bottom: 0!important; }
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box { height: 160px!important; }
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.xdsoft_datetimepicker .xdsoft_time_box > div > div.xdsoft_disabled { opacity: 0.3; }

/* the !important is what beats select2's own #444; the colour itself is the body ink, like every other field */
.select2-selection__rendered { color: var(--c-ink-field)!important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 32px; }

.transport-points-container { display: flex; flex-direction: column; width: 100%; padding: 10px; }
.transport-points {  }
/* a stop is a card with its state on the edge, not a slab of colour with white text on it */
.transport-point { position: relative; background-color: var(--c-white); border: 1px solid var(--c-line); border-radius: 3px; overflow: hidden; transition: box-shadow 200ms, border-color 200ms; }
.transport-point::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background-color: var(--c-line-input); }
/* .stop-* variants below still fill the header with a strong colour, so they keep white text */
.transport-point[class*="stop-"] .transport-point-top { color: #ffffff; }
.transport-point[class*="stop-"] .transport-point-top-buttons a { color: rgba(255, 255, 255, 0.85); }
.transport-point[class*="stop-"] .transport-point-top-buttons a:hover { background-color: rgba(255, 255, 255, 0.18); color: #ffffff; }
.transport-point .transport-point-top { display: flex; justify-content: space-between; width: 100%; background-color: var(--c-head); color: var(--c-ink); height: 40px; align-items: center; padding: 0 10px 0 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--c-line); transition: background-color 200ms; }
.transport-point .transport-point-top .transport-point-top-left i { margin-right: 10px; padding: 0 5px; color: var(--c-muted); }
.transport-point .transport-point-top-left { display: flex; align-items: center; gap: 9px; min-width: 0; }

/* the order of the stops is the point of the list, so it gets said out loud */
.transport-point-seq {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	background-color: var(--c-soft);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
}

/* colour alone cannot carry the state -- it is also unreadable to a third of colour-blind users
   when the two states in play are teal and cyan */
.transport-point-state {
	flex-shrink: 0;
	padding: 2px 9px;
	border-radius: 11px;
	background-color: var(--c-none-wash);
	color: var(--c-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
}
.transport-point-state-missing { background-color: rgba(230, 168, 0, 0.18); color: #8a6400; }
.transport-point-status-on_route .transport-point-state,
.transport-point-status-waiting .transport-point-state,
.transport-point-status-in_progress .transport-point-state { background-color: rgba(18, 175, 203, 0.16); color: var(--c-info-ink); }
.transport-point-status-completed .transport-point-state { background-color: rgba(34, 186, 160, 0.16); color: var(--c-ok-ink); }
.transport-point[class*="stop-"] .transport-point-seq { background-color: rgba(255, 255, 255, 0.28); }
.transport-point[class*="stop-"] .transport-point-state { background-color: rgba(255, 255, 255, 0.22); color: #ffffff; }
.transport-point .transport-point-top-buttons a { color: var(--c-muted); width: 24px; height: 24px; line-height: 24px; text-align: center; display: inline-block; margin-left: 4px; border-radius: 4px; }
.transport-point .transport-point-top-buttons a:hover { background-color: var(--c-link-wash); color: var(--c-link); }
.transport-point .transport-point-info { display: flex; width: 100%; padding: 0; }
.transport-point .transport-point-info.collapse:not(.in) { display: none; }
.transport-point-collapse-icon { width: 14px; text-align: center; }
.transport-point .transport-point-info > div { margin-top: 10px; margin-bottom: 10px; }
.transport-point .transport-point-info .transport-point-left { flex-basis: 280px; padding: 0 10px; }
.transport-point .transport-point-info .transport-point-center { flex-basis: 304px; padding: 0 10px; }
.transport-point .transport-point-info .transport-point-center img { width: 100%; height: auto; }
.transport-point .transport-point-info .transport-point-right { padding: 0 10px; flex-grow: 1; }
.transport-point span.grey { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--c-soft); }
/* the caption is a block now, so the <br> the template puts after it adds a second empty line */
.transport-point span.grey + br { display: none; }
.transport-point span.list { display: inline-block; width: 100px; color: var(--c-muted); }
.transport-point .transport-point-info p { margin-bottom: 14px; }
.transport-point-cargo { border: 1px solid var(--c-line-panel); border-radius: 3px; padding: 5px 5px 5px 10px; margin-bottom: 5px; display: flex; overflow: hidden; }
.transport-point-cargo .transport-point-cargo-icons { width: 30px; margin: -5px 10px -5px -10px; display: flex; justify-content: center; align-items: center; }
.transport-point-cargo .transport-point-cargo-icons i { width: 16px; text-align: center; }
.transport-point-cargo.transport-point-cargo-direction-1 { border-color: var(--c-ok); }
.transport-point-cargo.transport-point-cargo-direction-1 .transport-point-cargo-icons { background-color: var(--c-ok); color: #ffffff; }
.transport-point-cargo.transport-point-cargo-direction-2 { border-color: var(--c-bad); }
.transport-point-cargo.transport-point-cargo-direction-2 .transport-point-cargo-icons { background-color: var(--c-bad); color: #ffffff; }
.transport-point-cargo .transport-point-cargo-info { flex-grow: 1; display: flex; flex-direction: column; }
.transport-point-cargo .transport-point-cargo-top { display: flex;justify-content: space-between; }
.transport-point-cargo .transport-point-cargo-bottom { font-style: italic; color: var(--c-muted); }
.transport-point-cargo .transport-point-cargo-count { flex-grow: 1; }
.transport-point-cargo .transport-point-cargo-weight { text-align: right; width: 100px; }
.transport-point-cargo .transport-point-cargo-buttons { text-align: right; width: 60px; }
.transport-point-cargo .transport-point-cargo-buttons a { width: 16px; text-align: center; display: inline-block; }
.transport-point-between { padding: 8px 10px; margin-top: 2px; display: flex; align-items: center; gap: 10px; }
.transport-point-between-icons { width: 20px; text-align: center; }
.transport-point-between-icons i { font-size: 15px; color: var(--c-muted); }
.transport-point-between-info { color: var(--c-soft); font-size: 12px; }
.transport-point-after { padding: 10px 5px; margin-top: 2px; display: flex; }
.transport-point-add { display: flex; justify-content: center; align-items: center; height: 100px; background-color: var(--c-dashed); color: var(--c-muted); border: 1px dashed var(--c-line); border-radius: 3px; font-size: 14px; text-decoration: none; transition: all 200ms; }
.transport-point-add:hover { background-color: var(--c-ground); border-color: var(--c-line-input); color: var(--c-soft); }
.transport-point:hover { box-shadow: 0 2px 10px rgba(31, 41, 51, 0.08); border-color: var(--c-line-input-sm); }
.transport-point:hover .transport-point-top { background-color: var(--c-line-panel); }
.transport-point.transport-point-status-on_route::before,
.transport-point.transport-point-status-waiting::before,
.transport-point.transport-point-status-in_progress::before { background-color: var(--c-info); }
/* the status tint is the palette's wash, not a hand-mixed one: a wash is semi-transparent over
   the card it sits on, so it follows the theme instead of staying a white bar on a dark card */
.transport-point.transport-point-status-on_route .transport-point-top,
.transport-point.transport-point-status-waiting .transport-point-top,
.transport-point.transport-point-status-in_progress .transport-point-top { background-color: var(--c-info-wash); color: var(--c-info-ink); }
.transport-point.transport-point-status-completed::before { background-color: var(--c-ok); }
.transport-point.transport-point-status-completed .transport-point-top { background-color: var(--c-ok-wash); color: var(--c-ok-ink); }
.transport-point .alert { padding-top: 4px; padding-bottom: 4px; margin-bottom: 5px; }
.transport-point .transport-point-left .label { font-size: 12px; padding: 4px 8px; display: inline-block; }
.transport-point .transport-point-left .label i { margin-right: 3px; }
.transport-point-cargo-definition-container .alert { padding-top: 4px; padding-bottom: 4px; margin-bottom: 5px; }

a.text-gray { color: var(--c-muted); text-decoration: none; transition: color 200ms; }
a.text-gray:hover { color: var(--c-soft); }

h4.with-background { background-color: var(--c-quiet); padding: 10px; }

.block-as-link { cursor: pointer; }

/* Trip stop type colors */
.transport-point.stop-order_point { border-color: #1DB198; }
.transport-point.stop-order_point .transport-point-top { background-color: #1DB198; }
.transport-point.stop-order_point:hover { border-color: #189a84; }
.transport-point.stop-order_point:hover .transport-point-top { background-color: #189a84; }

.transport-point.stop-base { border-color: var(--c-link); }
.transport-point.stop-base .transport-point-top { background-color: var(--c-link); }
.transport-point.stop-base:hover { border-color: #286090; }
.transport-point.stop-base:hover .transport-point-top { background-color: #286090; }

.transport-point.stop-fuel { border-color: #5bc0de; }
.transport-point.stop-fuel .transport-point-top { background-color: #5bc0de; }
.transport-point.stop-fuel:hover { border-color: #31b0d5; }
.transport-point.stop-fuel:hover .transport-point-top { background-color: #31b0d5; }

.transport-point.stop-rest { border-color: var(--c-soft); }
.transport-point.stop-rest .transport-point-top { background-color: var(--c-soft); }
.transport-point.stop-rest:hover { border-color: var(--c-label); }
.transport-point.stop-rest:hover .transport-point-top { background-color: var(--c-label); }

.transport-point.stop-border { border-color: #9b59b6; }
.transport-point.stop-border .transport-point-top { background-color: #9b59b6; }
.transport-point.stop-border:hover { border-color: #8e44ad; }
.transport-point.stop-border:hover .transport-point-top { background-color: #8e44ad; }

.transport-point.stop-customs { border-color: #e74c3c; }
.transport-point.stop-customs .transport-point-top { background-color: #e74c3c; }
.transport-point.stop-customs:hover { border-color: #c0392b; }
.transport-point.stop-customs:hover .transport-point-top { background-color: #c0392b; }

.transport-point.stop-parking { border-color: var(--c-muted); }
.transport-point.stop-parking .transport-point-top { background-color: var(--c-muted); }
.transport-point.stop-parking:hover { border-color: var(--c-soft); }
.transport-point.stop-parking:hover .transport-point-top { background-color: var(--c-soft); }

.transport-point.stop-wash { border-color: #1abc9c; }
.transport-point.stop-wash .transport-point-top { background-color: #1abc9c; }
.transport-point.stop-wash:hover { border-color: #16a085; }
.transport-point.stop-wash:hover .transport-point-top { background-color: #16a085; }

.transport-point.stop-service { border-color: #e67e22; }
.transport-point.stop-service .transport-point-top { background-color: #e67e22; }
.transport-point.stop-service:hover { border-color: #d35400; }


/* Dispatch timeline */
#dispatch-timeline-controls .btn-group .btn { border-radius: 0; }
.page-content .page-inner .content-container.ff-board-page { bottom: 0; }
/* the dispatch board still fills the screen: dispatch-timeline.js sizes the board from the height of
   the panel's body. Every listing scrolls as a page since .panel-full-height is gone (15. 9. 2026). */
.panel.ff-board-panel { height: calc(100% - 10px); }
.panel.ff-board-panel > .panel-body { height: 100%; }
/* by classes on the board's and the plan's page, not :has() -- Safari recomputed those on every piece of a long
   page, the listing of orders stood five seconds (David, 12. 10. 2026) */
.panel-body.ff-board-body { display: flex; flex-direction: column; }
:is(#dispatch-timeline, #dispatch-plan-timeline) { flex-shrink: 0; }
:is(#dispatch-timeline, #dispatch-plan-timeline) { transition: opacity 0.2s ease; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-timeline { border-color: var(--c-line-panel); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-panel.vis-center,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-panel.vis-left { overflow: hidden !important; } /* rows scroll through vis-timeline's own offset, never natively (review r2) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-panel { border-color: var(--c-line-panel) !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group { border-bottom: 1px solid var(--c-line-panel); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-labelset .vis-label { border-bottom: 1px solid var(--c-line-panel); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip {
	background-color: rgba(20, 140, 120, 0.15);
	border: 1px solid rgba(20, 140, 120, 0.5);
	border-radius: 0;
	cursor: move;
	z-index: 0;
	height: 70px !important;
	margin: 2px 0 !important;
	box-sizing: border-box;
	top: 0 !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip:hover { background-color: rgba(20, 140, 120, 0.18); border-color: rgba(20, 140, 120, 0.7); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.vis-selected { background-color: rgba(20, 140, 120, 0.25); border: 1px solid rgba(20, 140, 120, 1); border-left: 5px solid rgba(20, 140, 120, 1); border-right: 5px solid rgba(20, 140, 120, 1); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-active { background-color: rgba(20, 140, 120, 0.16); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-completed { background-color: rgba(120, 120, 120, 0.10); border-color: rgba(120, 120, 120, 0.4); }

/* capacity indicator — strip at the bottom edge of the trip bar + overload warning */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .vis-item-content { position: static; width: 100%; height: 100%; padding: 0; transform: none !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .trip-cap-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--veil); pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .trip-cap-fill { height: 100%; }
.trip-cap-green { background: #27ae60; }
.trip-cap-orange { background: #f39c12; }
.trip-cap-red { background: #e74c3c; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .trip-cap-warn { position: absolute; top: 2px; right: 4px; color: #e74c3c; font-size: 13px; pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-overcap { border-color: rgba(231, 76, 60, 0.8); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-overcap:hover { border-color: rgba(231, 76, 60, 1); }

/* trip detail modal — utilization bar in the Vytížení card */
#modal-tripDetail .td-util-bar { height: 10px; background: var(--veil); margin-top: 8px; }
#modal-tripDetail .td-util-fill { height: 100%; }
#modal-tripDetail .td-util-caption { margin-top: 4px; font-size: 12px; font-weight: 600; }
#modal-tripDetail .td-order-row .td-open-order { text-decoration: none; }
#modal-tripDetail .od-chip-danger, #modal-orderDetail .od-chip-danger { background: var(--c-bad-wash); border-color: var(--c-bad); color: var(--c-bad-ink); }

/* trip detail modal — load progression tab (horizontal bars, one row per stop); the trip's card's tab Vytížení
   too (_tripDetailTabs.latte, 13. 10. 2026) */
:is(#modal-tripDetail, #section-load) .td-loadh-chart { padding: 4px 0; }
:is(#modal-tripDetail, #section-load) .td-loadh-legend { font-size: 12px; color: var(--c-muted); margin-bottom: 10px; }
:is(#modal-tripDetail, #section-load) .td-loadh-legend-cap { margin-left: 14px; }
:is(#modal-tripDetail, #section-load) .td-loadh-cap-sample { display: inline-block; width: 18px; border-top: 2px dashed #e74c3c; vertical-align: middle; margin-right: 4px; }
:is(#modal-tripDetail, #section-load) .td-loadh-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
:is(#modal-tripDetail, #section-load) .td-loadh-label { flex: 0 0 220px; display: flex; align-items: center; min-width: 0; font-size: 12px; font-weight: 600; color: var(--c-ink); }
:is(#modal-tripDetail, #section-load) .td-loadh-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#modal-tripDetail, #section-load) .td-loadh-index { flex: none; display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: var(--c-info); color: #fff; font-size: 11px; font-weight: 700; text-align: center; margin-right: 8px; }
:is(#modal-tripDetail, #section-load) .td-loadh-track { position: relative; flex: 1 1 auto; height: 26px; background: var(--c-ground); border: 1px solid var(--c-line-panel); }
:is(#modal-tripDetail, #section-load) .td-loadh-bar { height: 100%; }
:is(#modal-tripDetail, #section-load) .td-loadh-cap-line { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed #e74c3c; z-index: 2; }
:is(#modal-tripDetail, #section-load) .td-loadh-value { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--c-soft); white-space: nowrap; }
:is(#modal-tripDetail, #section-load) .td-loadh-value-in { transform: translate(-100%, -50%); margin-left: -8px; color: #fff; }

/* item cards (order lists, allocation breakdowns) — same look as the segment cards */
.td-item-list { display: flex; flex-direction: column; gap: 8px; }
.td-item-card {
	display: block;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-info);
	padding: 8px 10px;
	font-size: 12px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	color: var(--c-ink);
	cursor: pointer;
}
.td-item-card:hover, a.td-item-card:hover, a.td-item-card:focus { background: var(--c-ground); color: var(--c-ink); text-decoration: none; }
.td-item-card-profit { border-left-color: var(--c-ok); }
.td-item-card-loss { border-left-color: var(--c-bad); }
.td-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.td-item-head .label { font-weight: 600; }
.td-item-head small { font-weight: 400; color: var(--c-muted); }
.td-item-sub { color: var(--c-muted); margin-top: 1px; }
.td-item-meta { color: var(--c-muted); margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; }
.td-item-meta strong { color: var(--c-ink); }
.td-item-meta > span > i:first-child { color: var(--c-quiet); margin-right: 3px; }
.td-item-meta .fa-chevron-right { color: var(--c-quiet); font-size: 10px; margin: 0 3px; }
.td-item-meta .text-success strong { color: var(--c-ok-ink); }
.td-item-meta .text-danger strong { color: var(--c-bad-ink); }

/* theme floats .btn left — unfloat buttons inside info cards so the card body wraps them */
#modal-tripDetail .od-info-body .btn { float: none; }

/* deployment plan — read-only driver timeline */
#dispatch-plan-timeline { border: 1px solid var(--c-line-panel); }
#dispatch-plan-timeline .vis-timeline { border: none; }
#dispatch-plan-timeline .vis-item.dp-trip {
	border: 1px solid transparent;
	border-radius: 0;
	color: #fff;
	font-size: 11px;
	cursor: pointer;
}
#dispatch-plan-timeline .vis-item.dp-trip-planned { background: var(--c-muted); border-color: var(--c-muted); }
#dispatch-plan-timeline .vis-item.dp-trip-active { background: var(--c-info); border-color: #0f97af; }
#dispatch-plan-timeline .vis-item.dp-trip-completed { background: var(--c-ok); border-color: #1da28b; }
#dispatch-plan-timeline .vis-item.dp-trip-codriver { border-left: 4px solid #9b59b6; }
.dp-trip-content { padding: 2px 6px; line-height: 1.25; overflow: hidden; }
.dp-trip-line1 strong { font-size: 11px; }
.dp-trip-line2 { font-size: 10px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-role-badge { background: #9b59b6; border-radius: 2px; padding: 0 4px; font-size: 9px; font-weight: 700; }
.dp-legend { display: inline-block; width: 14px; height: 10px; vertical-align: middle; margin-right: 3px; }
.dp-legend-planned { background: var(--c-muted); }
.dp-legend-active { background: var(--c-info); }
.dp-legend-codriver { background: var(--c-muted); border-left: 4px solid #9b59b6; }
.dp-legend-completed { background: var(--c-ok); }
.dp-legend-away, #dispatch-plan-timeline .vis-item.dp-away { background: repeating-linear-gradient(135deg, var(--c-ground), var(--c-ground) 5px, var(--c-line) 5px, var(--c-line) 7px); border: 1px solid var(--c-line); }
#dispatch-plan-timeline .vis-item.dp-away { color: var(--c-soft); font-size: 11px; z-index: 0; }
#dispatch-plan-timeline .vis-item.dp-trip-clash { box-shadow: inset 0 0 0 2px var(--c-bad); }
/* the weekend at home as on the board (David, 9. 10. 2026): the house between Friday and Saturday, quiet until
   the row is under the mouse; a marked weekend the orange wash with "DOMA" */
.dp-legend-home { background: color-mix(in srgb, var(--home-weekend) 26%, transparent); border: 1px solid var(--home-weekend); }
#dispatch-plan-timeline .vis-item.vis-background.dp-home-weekend { background: color-mix(in srgb, var(--home-weekend) 26%, transparent); z-index: 1; }
#dispatch-plan-timeline .vis-item.dp-home-weekend .vis-item-content { position: absolute; right: 3px; bottom: 2px; left: auto; padding: 0 5px; border-radius: var(--r); background: var(--home-weekend); color: #fff; font-size: 10px; font-weight: var(--fw-semi); line-height: 15px; text-transform: uppercase; letter-spacing: .04em; }
#dispatch-plan-timeline .vis-item.dp-home-weekend .vis-item-content i { font-size: 9px; margin-right: 2px; }
#dispatch-plan-timeline .vis-item.dp-home { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; z-index: 7 !important; cursor: pointer; }
#dispatch-plan-timeline .vis-item.dp-home .vis-dot { display: none !important; }
#dispatch-plan-timeline .vis-item.dp-home .vis-item-content { position: relative; left: -11px; top: 44px; width: 20px; height: 20px; padding: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--c-white); color: var(--c-muted); border: 1px solid var(--c-line-input-sm, #c8ccd2); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .1s; }
#dispatch-plan-timeline .vis-foreground .vis-group:hover .vis-item.dp-home .vis-item-content, #dispatch-plan-timeline .vis-item.dp-home:hover .vis-item-content { opacity: 1; color: var(--home-weekend); border-color: currentColor; }
#dispatch-plan-timeline .vis-item.dp-home.is-home .vis-item-content { opacity: 0; }
#dispatch-plan-timeline .vis-foreground .vis-group:hover .vis-item.dp-home.is-home .vis-item-content, #dispatch-plan-timeline .vis-item.dp-home.is-home:hover .vis-item-content { opacity: 1; background: var(--home-weekend); border-color: var(--home-weekend); color: #fff; }

/* cost items listing — entity filter selects side by side without gutters */
.ci-entity-filters { display: flex; }
.ci-entity-filters .form-control,
.ci-entity-filters .select2-container { min-width: 0; flex: 1 1 0; }
.table > thead > tr.filters .ci-entity-filters .form-control,
.table > thead > tr.filters .ci-entity-filters .select2-container { border-left: 1px solid var(--c-line-quiet); border-right: 1px solid var(--c-line-quiet); }

/* trip / order detail modal — economics tables */
.td-eco-table { margin-bottom: 0; }
.td-eco-table td, .td-eco-table th { padding: 5px 8px; border-top: 1px solid var(--c-line-soft); font-size: 12px; }
.td-eco-table tr:first-child td, .td-eco-table th { border-top: 0; }
.td-eco-total td { border-top: 2px solid var(--c-line); }
.td-eco-margin td { font-size: 13px; }
.td-eco-profit td { color: var(--c-ok-ink); background: var(--c-ok-wash); }
.td-eco-loss td { color: var(--c-bad-ink); background: var(--c-bad-wash); }

/* two-column (label + amount) lists in info cards — dl variant of td-eco-table */
.od-eco-dl { margin: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; font-size: 12px; }
.od-eco-dl .od-kv { display: contents; }
.od-eco-dl dt { font-weight: 400; color: var(--c-ink); padding: 5px 8px 5px 8px; border-top: 1px solid var(--c-line-soft); margin: 0; }
.od-eco-dl dd { color: var(--c-ink); text-align: right; padding: 5px 8px 5px 8px; border-top: 1px solid var(--c-line-soft); margin: 0; white-space: nowrap; }
.od-eco-dl .od-kv:first-child dt, .od-eco-dl .od-kv:first-child dd { border-top: 0; }
.od-eco-dl .od-kv-total dt, .od-eco-dl .od-kv-total dd { border-top: 2px solid var(--c-line); font-weight: 600; }
.od-eco-dl .od-kv-margin dt, .od-eco-dl .od-kv-margin dd { font-size: 13px; }
.od-eco-dl .od-kv-profit dt, .od-eco-dl .od-kv-profit dd { color: var(--c-ok-ink); background: var(--c-ok-wash); }
.od-eco-dl .od-kv-loss dt, .od-eco-dl .od-kv-loss dd { color: var(--c-bad-ink); background: var(--c-bad-wash); }
/* Přesnost odhadů: the table beside "Co se tady predikuje" -- labels on one line, the values (a date with a button,
   the learned figures, the stale warning) wrap inside the column; under 1600 px it goes under the text (DS13-01) */
.pred-explain-table { min-width: 0; }
.pred-explain-dl { grid-template-columns: max-content minmax(0, 1fr); }
.pred-explain-dl dt { white-space: nowrap; }
.pred-explain-dl dd { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.pred-explain-dl dd .badge-soft { white-space: normal; display: inline-block; max-width: 100%; text-align: left; }
.pred-explain-dl dd > form { display: inline-block; vertical-align: middle; }
@media (max-width: 1599px) {
    .pred-explain .pred-explain-text, .pred-explain .pred-explain-table { width: 100%; float: none; }
    .pred-explain .pred-explain-table { margin-top: 8px; }
    .pred-explain .pred-explain-dl { max-width: 760px; }
}

/* trip detail modal — status + assignment dropdowns */
#modal-tripDetail .td-status-toggle { text-decoration: none; color: inherit; }
#modal-tripDetail .td-status-menu > li > a { padding: 4px 12px; }
#modal-tripDetail .td-assign-group { margin-left: 6px; }
#modal-tripDetail .td-assign-toggle { color: var(--c-quiet); }
#modal-tripDetail .td-assign-toggle:hover { color: var(--c-soft); }
#modal-tripDetail .od-move-menu { max-height: 260px; overflow-y: auto; }
#modal-tripDetail .td-assign-current,
#modal-tripDetail .td-stop-status.td-assign-current { background: var(--c-ok-wash); font-weight: 700; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order {
	background-color: rgba(20, 140, 120, 0.85);
	border: 1px solid rgba(15, 110, 95, 1);
	color: #fff;
	border-radius: 0;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	/* below the trip's own line (number, route, driver) -- a bar from the top hid it, and the bits left
	   showing between two orders read as the end of the order's name */
	top: 15px !important;
	height: 28px !important;
	box-sizing: border-box;
	z-index: 2 !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order:hover {
	background-color: rgba(15, 110, 95, 1);
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.vis-selected {
	background-color: rgba(15, 110, 95, 1);
	border: 1px solid rgba(10, 80, 65, 1);
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order .vis-item-content { padding: 1px 6px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order small { font-weight: 400; opacity: 0.85; }
/* Split-order indicator (Phase 8D): orange dashed left/right edges */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-split,
#dispatch-pool .vis-item.timeline-order.timeline-order-split {
	border-left: 4px dashed #f39c12 !important;
	border-right: 4px dashed #f39c12 !important;
	background-color: rgba(20, 140, 120, 0.85);
}
/* Split indicator badge — relies on dashed orange borders only; the icon badge was
   removed because the FontAwesome 6 codepoint didn't render on this project's font set
   and showed up as an unreadable square. */
/* Filter mode: hide non-split orders */
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-filter-split .vis-item.timeline-order:not(.timeline-order-split),
#dispatch-pool.dispatch-filter-split .vis-item.timeline-order:not(.timeline-order-split) {
	opacity: 0.15;
	pointer-events: none;
}
/* Ghost bar — visualizes the parts of a split order that are handled by other vehicles */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost {
	background-color: rgba(160, 165, 170, 0.3) !important;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(120, 125, 130, 0.18) 0,
		rgba(120, 125, 130, 0.18) 6px,
		rgba(120, 125, 130, 0) 6px,
		rgba(120, 125, 130, 0) 12px
	);
	border: 1px dashed rgba(120, 125, 130, 0.55) !important;
	color: transparent;
	cursor: default;
	z-index: 1 !important;
	pointer-events: auto;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost:hover {
	background-color: rgba(160, 165, 170, 0.4) !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost .vis-item-content {
	visibility: hidden;
}
/* keep ghost bars muted even when their order is hovered/focused so they read as context */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost.timeline-order-related {
	background-color: rgba(160, 165, 170, 0.45) !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost.timeline-order-split {
	border: 1px dashed rgba(120, 125, 130, 0.7) !important;
}
/* the rest of a split order elsewhere: a dashed outline with where it goes, no hatching -- grey hatching
   is "the lorry cannot be used" in the legend (review r9, Radek) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost.timeline-order-split,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost.timeline-order-split:hover {
	background: transparent !important;
	background-image: none !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-ghost.timeline-order-split .vis-item-content { visibility: visible; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order-ghost .ghost-note { color: var(--c-muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
/* cut with an ellipsis, not in the middle of a word; nothing where an order lies over it (review r10) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order-ghost .vis-item-content { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* an outline with nothing to say goes whole -- an empty dashed frame told the newcomer nothing (review r12, Klára, the critic) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order-ghost.is-covered { visibility: hidden; }
/* Phase 8F — partial-assignment indicator (some OPs unassigned) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-partial {
	background-image: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 0, 0) 0,
		rgba(255, 255, 0, 0) 6px,
		rgba(255, 200, 0, 0.45) 6px,
		rgba(255, 200, 0, 0.45) 10px
	);
}
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-filter-partial .vis-item.timeline-order:not(.timeline-order-partial),
#dispatch-pool.dispatch-filter-partial .vis-item.timeline-order:not(.timeline-order-partial) {
	opacity: 0.15;
	pointer-events: none;
}

/* Fast custom tooltip — replacement for slow native title (Phase 8H) */
.dispatch-fast-tooltip {
	position: fixed;
	z-index: 10000;
	background: rgba(40, 40, 40, 0.96);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	white-space: pre-line;
	pointer-events: none;
	box-shadow: 0 4px 14px rgba(0,0,0,0.3);
	max-width: 360px;
	line-height: 1.55;
	display: none;
}
/* a conflict or a reservation in the tooltip of a trip, marked so the eye finds it (David, 6. 10. 2026);
   the tooltip is dark in both themes, so the marks take the light inks */
.dispatch-fast-tooltip .fast-tip-flag { display: inline-flex; align-items: baseline; gap: 6px; }
.dispatch-fast-tooltip .fast-tip-flag i { flex: none; }
.dispatch-fast-tooltip .fast-tip-bad i { color: #ff8a8a; }
.dispatch-fast-tooltip .fast-tip-warn i { color: #f2c353; }

/* Custom dispatcher notes (Phase 8H) — half-height bars pinned to bottom of vehicle row.
   2 px visual inset on left/right is achieved by:
     - clip-path: inset(0 2px 0 2px)   → crops the outermost 2 px on each side
     - background-color fills the whole element (cropped to 4 px less)
     - top/bottom darker borders are drawn via real border (clip leaves them intact)
     - left/right darker borders are simulated via inset box-shadow positioned 1 px
       inside the clip edge (inset 3 px = column 2-3 px from outer edge = 1 px strip
       just inside the visible area)
*/
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-note {
	color: var(--note-ink, #fff) !important;
	border-radius: 0;
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
	top: 42px !important;
	height: 28px !important;
	box-sizing: border-box;
	z-index: 3 !important;
	background-color: var(--note-bg, var(--c-quiet)) !important;
	border-top: 1px solid var(--note-border, var(--c-muted)) !important;
	border-bottom: 1px solid var(--note-border, var(--c-muted)) !important;
	border-left: none !important;
	border-right: none !important;
	clip-path: inset(0 2px 0 2px);
	box-shadow: inset 3px 0 0 0 var(--note-border, var(--c-muted)), inset -3px 0 0 0 var(--note-border, var(--c-muted));
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-note:hover {
	filter: brightness(0.9);
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-note.vis-selected {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,0.5);
	z-index: 9 !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-note .vis-item-content {
	padding: 4px 8px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* dropdown menu shown after doubleclick on empty timeline area (Phase 8H) */
.dispatch-create-menu {
	position: absolute;
	z-index: 1000;
	background: var(--c-white);
	border: 1px solid var(--c-line-input);
	box-shadow: 0 4px 14px rgba(0,0,0,0.15);
	min-width: 180px;
	padding: 4px 0;
}
.dispatch-create-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: var(--c-ink);
	font-size: 13px;
	cursor: pointer;
}
.dispatch-create-menu a:hover {
	background: var(--c-ground);
	text-decoration: none;
}
.dispatch-create-menu a i { width: 14px; color: var(--c-muted); }

/* color palette swatches in note modal */
.dispatch-note-palette { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dispatch-note-swatch {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	border: 3px solid transparent;
	transition: transform 0.1s;
}
.dispatch-note-swatch:hover { transform: scale(1.1); }
.dispatch-note-swatch.selected {
	border-color: var(--c-ink);
	transform: scale(1.1);
}

/* OP markers — DOM overlay above selected order bar (Phase 8G) */
.dispatch-op-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 50;
}
.dispatch-op-marker {
	position: absolute;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border-radius: 50%;
	background: var(--c-ok);
	border: 2px solid var(--c-ok);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	pointer-events: auto;
	cursor: help;
	transition: transform 0.12s;
	white-space: pre-line;
}
.dispatch-op-marker:hover {
	transform: scale(1.25);
	z-index: 60;
}
.dispatch-op-marker-unloading {
	background: var(--c-bad);
	border-color: var(--c-bad);
}
/* the dots of the order's form (.tp-dot): a number, half red half green where it unloads and loads */
.dispatch-op-marker { font-size: 11px; line-height: 1; border-color: #fff; }
.dispatch-op-marker-both {
	background: linear-gradient(90deg, var(--c-bad) 50%, var(--c-ok) 50%);
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}
.dispatch-op-marker-other { background: var(--c-white); color: var(--c-ink); border-color: var(--c-muted); }

/* Dim non-selected order bars when one order is focused */
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-order-focused .vis-item.timeline-order:not(.is-focused) {
	opacity: 0.18;
}
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-order-focused .vis-item.timeline-order.is-focused {
	opacity: 1;
	z-index: 8 !important;
}

/* Hover-highlight related bars of the same order across vehicles (Phase 8D) —
   matches the regular .vis-item.timeline-order:hover styling so split orders behave
   the same as non-split ones, just propagated to all bars of the same order. */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.timeline-order-related {
	background-color: rgba(15, 110, 95, 1) !important;
	z-index: 9 !important;
}
/* the label column and the pool's are the same width, or the two time axes part (240 px since the
   plates are framed, 6. 10. 2026) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-labelset .vis-label { font-weight: 600; padding: 0; min-width: 290px; max-width: 290px; }
#dispatch-pool .vis-labelset .vis-label { min-width: 290px; max-width: 290px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner { height: 74px !important; display: flex; align-items: center; justify-content: flex-start; padding: 0 8px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group { height: 74px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group { height: 74px !important; overflow: visible; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner { position: relative; width: 100%; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div { text-align: left; line-height: 1.2; cursor: pointer; flex: 1; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div strong { display: block; font-size: 12px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div small { display: block; font-size: 11px; color: var(--c-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner::after { content: '\f129'; font-family: 'Font Awesome 6 Pro'; font-weight: 400; font-size: 13px; color: var(--c-quiet); position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group:hover .vis-inner::after { color: #3498db; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group:hover { background-color: var(--veil-soft); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-shadow { display: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .vis-drag-left,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .vis-drag-right { z-index: 10 !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-delete-btn {
	position: absolute;
	top: -22px;
	right: -5px;
	width: 22px;
	height: 22px;
	background: #e74c3c;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	z-index: 10;
	text-decoration: none;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-delete-btn:hover,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-detach-btn:hover {
	background: #c0392b;
	color: #fff;
	text-decoration: none;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-detach-btn {
	position: absolute;
	top: -22px;
	right: -1px;
	width: 22px;
	height: 22px;
	background: #e74c3c;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	z-index: 10;
	text-decoration: none;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-action-bottom { top: auto; bottom: -22px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item:has(.dispatch-action-btn) { z-index: 20 !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-row-hover { background-color: var(--veil-soft); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-time-axis .vis-text { color: var(--c-soft); }
/* now: one pixel, it marks a moment (David, 6. 10. 2026) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-current-time, #dispatch-pool .vis-current-time { width: 1px !important; background-color: #e74c3c; }
/* hide vis-timeline native tooltip on current-time line — uses moment with broken locale */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-current-time[title] { pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .timeline-weekend { background-color: var(--veil-soft); pointer-events: none; }

/* Pool (unassigned orders) — separate timeline below main */
#dispatch-pool { margin-top: 0; transition: opacity 0.2s ease; flex: 0 0 auto; height: 150px; position: relative; z-index: 3; background: var(--c-white, #fff); overflow-y: auto; overflow-x: hidden; } /* lies over the board, never under it (David, 6. 10. 2026); scrolls when its bars do not fit (review r5) */
/* a short order keeps its number readable: "#PLA-3" at 46 px (review r5) */
#dispatch-pool .vis-item.timeline-pool-order { min-width: 64px; }
#dispatch-pool .vis-timeline { border-color: var(--c-line-panel); }
#dispatch-pool .vis-panel { border-color: var(--c-line-panel) !important; }
#dispatch-pool .vis-labelset .vis-label { font-weight: 600; padding: 0; color: #e74c3c; font-size: 11px; }
#dispatch-pool .vis-time-axis:not(.vis-background) { display: none; }
#dispatch-pool .vis-panel.vis-bottom { display: none; }
#dispatch-pool .vis-labelset .vis-label .vis-inner { display: flex; align-items: center; justify-content: flex-start; padding: 0 8px; }
#dispatch-pool .vis-shadow { display: none; }
#dispatch-pool .timeline-weekend { background-color: var(--veil-soft); pointer-events: none; }
#dispatch-pool .vis-item.timeline-pool-order {
    background-color: rgba(231, 76, 60, 0.85);
    border: 1px solid rgba(192, 57, 43, 1);
    color: #fff;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: grab;
    box-sizing: border-box;
    z-index: 2 !important;
}
#dispatch-pool .vis-item.timeline-pool-order:hover { background-color: rgba(192, 57, 43, 1); }
#dispatch-pool .vis-item.timeline-pool-order.vis-selected { background-color: rgba(192, 57, 43, 1); border: 1px solid rgba(150, 40, 27, 1); }
#dispatch-pool .vis-item.timeline-pool-order .vis-item-content { padding: 2px 6px; line-height: 1.3; }
#dispatch-pool .vis-item.timeline-pool-order small { font-weight: 400; opacity: 0.85; }

/* Cross-timeline drag & drop */
.dispatch-drag-ghost {
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    opacity: 0.9;
    /* cut as a bar is, not spilt over the board when the drag is narrow (review r12, Jana) */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}
.dispatch-drag-ghost small, .dispatch-drag-ghost br { display: none; }
.dispatch-drag-ghost.dispatch-drag-from-pool {
    background: rgba(231, 76, 60, 0.85);
    border: 1px solid rgba(192, 57, 43, 1);
}
.dispatch-drag-ghost.dispatch-drag-from-main {
    background: rgba(20, 140, 120, 0.85);
    border: 1px solid rgba(15, 110, 95, 1);
}
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-drop-target { outline: 2px dashed rgba(20, 140, 120, 0.5); outline-offset: -2px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-drop-hover { background-color: rgba(20, 140, 120, 0.12) !important; }
/* the row that would refuse the order without a question: red before the drop (review r2) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-drop-bad { background-color: rgba(176, 58, 46, 0.18) !important; box-shadow: inset 3px 0 0 #b03a2e; }
/* the row under the order when the suggestions have a reason against the lorry */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-drop-warn { background-color: var(--c-warn-wash) !important; box-shadow: inset 3px 0 0 var(--c-warn); }
/* every row while an order is dragged: a stripe on the lorry's label -- green suits, orange has a
   reason against it, red is blocked, grey nobody knows what fits (review r3, r4) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge { box-shadow: inset 4px 0 0 var(--judge, transparent); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge-ok { --judge: var(--c-ok); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge-warn { --judge: var(--c-warn); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge-bad { --judge: var(--c-bad); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge-unknown { --judge: var(--c-quiet); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group.dispatch-judge-bad { background-color: rgba(176, 58, 46, 0.06); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group.dispatch-judge-warn { background-color: color-mix(in srgb, var(--c-warn) 6%, transparent); }
.dispatch-drag-ghost[data-warning]:not([data-warning=""])::after { content: attr(data-warning); display: block; margin-top: 3px; padding: 2px 6px; background: #fff; color: #b03a2e; font-weight: 600; font-size: 11px; border-radius: var(--r); }
/* the reason under the ghost on a solid white label with dark words, its colour only in the stripe at
   its left: the washes were see-through over the red ghost and the words read at 1.75:1 (review r6) */
.dispatch-drag-ghost[data-warning]:not([data-warning=""])::after { background: #fff; color: #2a2f35; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 4px 0 0 #b03a2e; padding-left: 9px; }
.dispatch-drag-ghost.is-warn[data-warning]:not([data-warning=""])::after { box-shadow: inset 4px 0 0 var(--c-warn); }
.dispatch-drag-ghost.is-bad[data-warning]:not([data-warning=""])::after { box-shadow: inset 4px 0 0 var(--c-bad); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group.dispatch-judge-ok { background-color: color-mix(in srgb, var(--c-ok) 7%, transparent); }
/* the page never scrolls under the board: vis scrolled its own root into view and the axis went (review r5) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-timeline { overflow: clip; }
#dispatch-pool.dispatch-drop-target { outline: 2px dashed rgba(231, 76, 60, 0.5); outline-offset: -2px; }
#dispatch-pool .dispatch-drop-hover { background-color: rgba(231, 76, 60, 0.12) !important; }

/* Vehicle event milestones — vertical lines */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: 5 !important;
    cursor: pointer;
    transform-origin: top left;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event .vis-item-content {
    padding: 0 !important;
    width: 5px;
    height: 74px;
    position: relative;
}
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-event .vis-item-content { height: 54px; }
/* driver — green, codriver — purple, trailer — orange. Unassign/unhitch = semi-transparent */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-driver-assign .vis-item-content { background-color: #27ae60; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-driver-unassign .vis-item-content { background-color: #27ae60; opacity: 0.5; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-codriver-assign .vis-item-content { background-color: #9b59b6; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-codriver-unassign .vis-item-content { background-color: #9b59b6; opacity: 0.5; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-trailer-hitch .vis-item-content { background-color: #f39c12; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-trailer-unhitch .vis-item-content { background-color: #f39c12; opacity: 0.5; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event:hover .vis-item-content {
    width: 7px;
    margin-left: -1px;
    transition: width 0.1s ease;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event .vis-dot { display: none !important; }

/* Vehicle event modal — history row highlight + actions */
#modal-vehicleInfo #ve-tab-history tr.ve-current { background-color: var(--c-warn-wash) !important; font-weight: 600; }
#modal-vehicleInfo #ve-tab-history .ve-edit-btn,
#modal-vehicleInfo #ve-tab-history .ve-delete-btn { font-size: 13px; text-decoration: none; padding: 2px 6px; }
#modal-vehicleInfo #ve-tab-history .ve-edit-btn { margin-right: 6px; }
#modal-vehicleInfo #ve-tab-history .ve-edit-btn:hover { color: #3498db !important; }
#modal-vehicleInfo #ve-tab-history .ve-delete-btn:hover { color: #e74c3c !important; }
/* Accordion chevron — fixed width + smooth rotation */
.ve-form-chevron { display: inline-block; width: 12px; text-align: center; transition: transform 0.2s ease; }
.ve-form-chevron.ve-form-chevron-open { transform: rotate(90deg); }

/* Info tab — card-style sections with colored accents */
.ve-info-card { background: var(--c-white); border: 1px solid var(--c-line); border-left: 3px solid var(--c-quiet); margin-bottom: 12px; overflow: hidden; }
.ve-info-card-vehicle { border-left-color: #3498db; }
.ve-info-card-trailer { border-left-color: #f39c12; }
.ve-info-card-driver { border-left-color: #27ae60; }
.ve-info-card-codriver { border-left-color: #9b59b6; }
.ve-info-head { padding: 8px 14px; background: var(--c-ground-bar); border-bottom: 1px solid var(--c-line); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-soft); }
.ve-info-head i { margin-right: 6px; font-size: 14px; }
.ve-info-card-vehicle .ve-info-head i { color: #3498db; }
.ve-info-card-trailer .ve-info-head i { color: #f39c12; }
.ve-info-card-driver .ve-info-head i { color: #27ae60; }
.ve-info-card-codriver .ve-info-head i { color: #9b59b6; }
.ve-info-headline { padding: 10px 14px 6px 14px; }
.ve-info-reg { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px; font-weight: 700; color: var(--c-ink-strong); letter-spacing: 0.08em; background: var(--c-line-soft); padding: 4px 12px; display: inline-block; }
.ve-info-person { font-size: 15px; font-weight: 700; color: var(--c-ink-strong); }
.ve-info-body { padding: 4px 14px 10px 14px; }
.ve-info-dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; row-gap: 0; column-gap: 12px; font-size: 12px; }
.ve-info-dl dt { color: var(--c-muted); font-weight: 400; padding: 6px 0; border-bottom: 1px solid var(--c-ground); margin: 0; }
.ve-info-dl dd { color: var(--c-ink); padding: 6px 0; border-bottom: 1px solid var(--c-ground); margin: 0; word-break: break-word; }
.ve-info-dl > dt:last-of-type, .ve-info-dl > dd:last-of-type { border-bottom: none; }
.ve-info-dl a { color: #3498db; text-decoration: none; }
.ve-info-dl a:hover { text-decoration: underline; }
.ve-info-dash { color: var(--c-quiet); }
.ve-info-empty { padding: 14px 0; color: var(--c-muted); font-style: italic; text-align: center; font-size: 12px; }
.ve-info-empty i { margin-right: 6px; font-size: 14px; }
.ve-info-cargo-label { margin-top: 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); border-top: 1px solid var(--c-ground); padding-top: 8px; }
.ve-info-cargo { margin-top: 4px; }
.ve-info-cargo-idx { font-size: 10px; color: var(--c-muted); margin-top: 6px; font-weight: 600; }
.ve-info-dl-compact dt, .ve-info-dl-compact dd { padding: 4px 0; }

/* Summary chips above tabs — mini version of info cards */
.ve-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ve-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--c-white); border: 1px solid var(--c-line); border-left: 3px solid var(--c-quiet); padding: 6px 12px; font-size: 12px; flex: 1; min-width: 0; }
.ve-chip-driver { border-left-color: #27ae60; }
.ve-chip-codriver { border-left-color: #9b59b6; }
.ve-chip-trailer { border-left-color: #f39c12; }
.ve-chip > i { font-size: 14px; }
.ve-chip-driver > i { color: #27ae60; }
.ve-chip-codriver > i { color: #9b59b6; }
.ve-chip-trailer > i { color: #f39c12; }
.ve-chip-label { color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; font-weight: 600; }
.ve-chip-value { font-weight: 600; color: var(--c-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.ve-chip-empty .ve-chip-value { color: var(--c-quiet); font-weight: 400; }
.ve-chip-empty { border-left-color: var(--c-line) !important; }
.ve-chip-empty > i { color: var(--c-quiet); }
.ve-chip-vehicle { border-left-color: #3498db; }
.ve-chip-vehicle > i { color: #3498db; }
/* the driver's preview in the deployment plan (DispatchPlan/_modal-driverInfo.latte): papers and days off, a line each */
.di-papers, .di-off { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.di-papers li, .di-off li { padding: 6px 0; border-bottom: 1px solid var(--c-ground); }
.di-papers li:last-child, .di-off li:last-child { border-bottom: none; }
.di-off-now strong { color: var(--c-bad-ink); }
/* Vehicle event type badges — using standard .badge */
.badge.badge-ve-driver-assign { background-color: #27ae60; color: #fff; }
.badge.badge-ve-driver-unassign { background-color: #27ae60; color: #fff; opacity: 0.55; }
.badge.badge-ve-codriver-assign { background-color: #9b59b6; color: #fff; }
.badge.badge-ve-codriver-unassign { background-color: #9b59b6; color: #fff; opacity: 0.55; }
.badge.badge-ve-trailer-hitch { background-color: #f39c12; color: #fff; }
.badge.badge-ve-trailer-unhitch { background-color: #f39c12; color: #fff; opacity: 0.55; }
.transport-point.stop-service:hover .transport-point-top { background-color: #d35400; }

/* Order detail modal (dispatch timeline) */
.od-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
/* eight stat cards of a trip in two rows of four, not seven and one alone (review r13, Klára) */
.od-chips.od-chips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.od-chips.od-chips-grid > * { min-width: 0; }
.od-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--c-white); border: 1px solid var(--c-line); border-left: 3px solid var(--c-quiet); padding: 6px 12px; font-size: 12px; }
.od-chip > i { font-size: 14px; color: var(--c-muted); }
.od-chip-label { color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; font-weight: 600; }
.od-chip-value { font-weight: 600; color: var(--c-ink-strong); }
.od-chip-state.od-chip-success { border-left-color: #27ae60; }
.od-chip-state.od-chip-success > i { color: #27ae60; }
.od-chip-state.od-chip-warning { border-left-color: #f39c12; }
.od-chip-state.od-chip-warning > i { color: #f39c12; }
.od-chip-state.od-chip-info { border-left-color: #3498db; }
.od-chip-state.od-chip-info > i { color: #3498db; }
.od-chip-state.od-chip-danger { border-left-color: #e74c3c; }
.od-chip-state.od-chip-danger > i { color: #e74c3c; }
.od-chip-state.od-chip-primary { border-left-color: #2980b9; }
.od-chip-warning { border-left-color: #f39c12; }
.od-chip-warning > i { color: #f39c12; }

.od-info-card { background: var(--c-white); border: 1px solid var(--c-line); border-left: 3px solid #3498db; margin-bottom: 12px; overflow: hidden; }
.od-info-card .table { border-top: 1px solid var(--c-line); }
.od-info-head { padding: 10px 14px; background: var(--c-ground); font-weight: 600; color: var(--c-ink); }
.od-info-head i { color: #3498db; margin-right: 6px; }
/* the order's preview reads as the order's card (.form-part, David, 9. 10. 2026): a thin frame, the heading in
   the small grey capitals on the ground of a table head -- no blue edge. The trip's preview keeps its look
   until it is gone through (review: the vehicle's preview follows it) */
/* -- and the trip's card's tabs Vytížení and Ekonomika, the preview's own (13. 10. 2026) */
:is(#modal-orderDetail, #modal-tripDetail, #section-load, #section-eco) .od-info-card { border: 1px solid var(--c-line); border-radius: 3px; }
:is(#modal-orderDetail, #modal-tripDetail, #section-load, #section-eco) .od-info-head { background: var(--c-table-head); border-bottom: 1px solid var(--c-line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-label); }
:is(#modal-orderDetail, #modal-tripDetail, #section-load, #section-eco) .od-info-head i { color: var(--c-label); }
.od-info-body { padding: 12px 14px; }
.od-info-headline { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--c-ink); }
.od-info-empty { color: var(--c-quiet); font-style: italic; padding: 6px 0; }
.od-info-dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; row-gap: 0; column-gap: 12px; font-size: 12px; }
.od-info-dl .od-kv { display: contents; }
.od-info-dl dt { color: var(--c-muted); font-weight: 400; padding: 6px 0; border-bottom: 1px solid var(--c-ground); margin: 0; }
.od-info-dl dd { color: var(--c-ink); padding: 6px 0; border-bottom: 1px solid var(--c-ground); margin: 0; word-break: break-word; }
.od-info-dl .od-kv:last-child dt, .od-info-dl .od-kv:last-child dd { border-bottom: none; }
.od-dash { color: var(--c-quiet); }
.od-note { white-space: pre-wrap; font-size: 12px; color: var(--c-ink); }

/* tables in info cards — visually identical to the od-eco-dl rows,
   incl. the 12px column gap that interrupts the row separators (grid column-gap) */
.od-info-card .od-card-table {
	font-size: 12px;
	border: none !important;
	border-collapse: separate;
	border-spacing: 12px 0;
	margin: 0 -12px;
	width: calc(100% + 24px);
}
.od-card-table > thead > tr > th,
.od-card-table > tbody > tr > td {
	height: auto;
	padding: 5px 8px !important;
	border: none !important;
	border-top: 1px solid var(--c-line-soft) !important;
	font-size: 12px;
	line-height: 1.42857143;
	color: var(--c-ink);
	vertical-align: baseline;
	background: none;
}
.od-card-table > thead > tr > th:last-of-type,
.od-card-table > tbody > tr > td:last-of-type { border-right: none !important; }
.od-card-table > tbody > tr:first-child > td { border-top: 0 !important; }
.od-card-table > thead + tbody > tr:first-child > td { border-top: 1px solid var(--c-line-soft) !important; }
.od-card-table > thead > tr > th { border-top: 0 !important; color: var(--c-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
/* a card's small table keeps its light head: no dark lines of the listing head on it */
.table.od-card-table > thead > tr > th,
.table.od-card-table > thead > tr:first-child > th { box-shadow: none; }
.od-card-table > tbody > tr.od-card-total > td { border-top: 2px solid var(--c-line) !important; font-weight: 600; }
/* an amount never breaks before its currency ("5 565 / Kč") */
.od-card-table > tbody > tr > td.text-right { white-space: nowrap; }

.modal-dialog.modal-xl { width: 90%; max-width: 1300px; }
/* Right column of transport-point split into Info + Stazka subcolumns (cargo def stays full-width below) */
#modal-orderDetail .od-right-cols { display: flex; gap: 16px; }
#modal-orderDetail .od-right-cols .od-right-col { flex: 1 1 0; min-width: 0; }
/* Action icons in transport-point-top-buttons inside the modal — match the look of edit page (gray icons, no btn chrome) */
#modal-orderDetail .transport-point-top-buttons a,
#modal-orderDetail .transport-point-top-buttons .btn-group { color: rgba(255,255,255,0.85); }
#modal-orderDetail .transport-point-top-buttons a:hover { color: #fff; text-decoration: none; }
.od-assignment { padding: 4px 0; font-size: 12px; }
.od-assignment-extra { border-top: 1px dashed var(--c-line); padding-top: 6px; margin-top: 6px; }
.od-actions-cell { white-space: nowrap; }
.od-actions-cell .btn-xs { padding: 2px 6px; font-size: 11px; }
.od-actions-cell .btn-group { display: inline-block; }
.od-move-menu { max-height: 320px; overflow-y: auto; min-width: 240px; }
.od-move-search-li { padding: 6px 12px; }
.od-move-search-li input { width: 100%; }
.od-move-menu li.od-hidden-vehicle { display: none; }
#modal-orderDetail .od-move-menu a,
#modal-orderDetail .transport-point-top-buttons .od-move-menu a { font-size: 12px; color: var(--c-ink); }
#modal-orderDetail .od-move-menu a:hover,
#modal-orderDetail .od-move-menu a:focus,
#modal-orderDetail .transport-point-top-buttons .od-move-menu a:hover,
#modal-orderDetail .transport-point-top-buttons .od-move-menu a:focus { color: var(--c-ink-strong); background: var(--c-ground); text-decoration: none; }
#modal-orderDetail .od-move-search-li input { color: var(--c-ink); }

/* operation event timeline (13/F) */
.op-timeline { position: relative; padding: 6px 0 0 0; }
.op-timeline-day { position: relative; margin: 0 0 12px 0; padding-left: 44px; font-size: 11px; font-weight: bold; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.op-timeline-day:first-child { margin-top: 0; }
.op-timeline-day + .op-event { margin-top: 0; }
.op-event { position: relative; display: flex; padding-left: 44px; margin-bottom: 14px; }
.op-event:last-child { margin-bottom: 4px; }
/* the line is drawn as segments between markers, so it never sticks out above the first or below the last */
.op-event:not(:last-child):before { content: ''; position: absolute; left: 15px; top: 16px; bottom: -14px; width: 2px; background-color: var(--c-line-panel); }
.op-timeline-day:not(:first-child):before { content: ''; position: absolute; left: 15px; top: 0; bottom: -12px; width: 2px; background-color: var(--c-line-panel); }
.op-event-marker { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; background-color: var(--c-muted); box-shadow: 0 0 0 4px #ffffff; }
.op-event-marker i { font-size: 13px; }
.op-event-body { flex-grow: 1; border: 1px solid var(--c-line-panel); border-radius: 3px; padding: 8px 12px; background-color: var(--c-white); transition: border-color 200ms; }
.op-event:hover .op-event-body { border-color: var(--c-quiet); }
.op-event-head { display: flex; align-items: baseline; flex-wrap: wrap; }
.op-event-time { font-weight: bold; color: var(--c-ink); margin-right: 10px; white-space: nowrap; }
.op-event-type { color: var(--c-ink); }
.op-event-stop { color: var(--c-muted); margin-left: 8px; }
.op-event-actions { margin-left: auto; padding-left: 10px; opacity: 0; transition: opacity 200ms; }
.op-event:hover .op-event-actions { opacity: 1; }
.op-event-note { margin-top: 4px; color: var(--c-label); white-space: pre-line; }
.op-event-meta { margin-top: 6px; font-size: 11px; color: var(--c-muted); }
/* the timeline of a trip along its route (Trips/_timeline.latte, David, 13. 10. 2026): the stops as cards with
   the dot of the route, the legs between them quieter -- a dashed line, the way in words, what happened on it */
.tl-route { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.tl-stop { position: relative; display: flex; gap: 14px; padding: 6px 0; }
.tl-stop .tp-dot { margin-top: 10px; }
.tl-stop::before, .tl-leg::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--c-line); }
.tl-leg::before { background: none; border-left: 2px dashed var(--c-quiet); width: 0; }
.tl-route > li:first-child::before { top: 24px; }
.tl-route > li:last-child::before { bottom: auto; height: 24px; }
.tl-stop-card { flex: 1 1 auto; min-width: 0; padding: 10px 14px; background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-quiet); border-radius: var(--r); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.tp-stop-loading .tl-stop-card { border-left-color: var(--c-ok); }
.tp-stop-unloading .tl-stop-card { border-left-color: var(--c-bad); }
.tp-stop-both .tl-stop-card { border-left-color: var(--c-alt); }
.tl-stop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-stop-place { font-size: 15px; }
.tl-stop-kind { font-size: 12px; font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: 0.4px; color: var(--c-label); }
.tl-stop-street { font-size: 12px; }
.tl-stop-status { margin-left: auto; }
.tl-stop-times { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 12px; color: var(--c-soft); }
.tl-stop-actual { color: var(--c-ink); }
.tl-stop-events { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--c-line); }
.tl-leg { position: relative; padding: 4px 0 4px 42px; font-size: 12px; color: var(--c-muted); }
.tl-leg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 0; }
.tl-leg-head strong { color: var(--c-soft); font-weight: var(--fw-semi); }
.tl-leg-busy { padding-top: 6px; padding-bottom: 8px; }
.tl-leg-edge .tl-leg-head { font-weight: var(--fw-semi); color: var(--c-label); }
.tl-ev { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 12px; color: var(--c-ink); }
.tl-leg .tl-ev { margin-left: 2px; padding: 4px 10px; background: var(--c-ground); border-radius: var(--r); margin-top: 3px; }
.tl-ev-time { flex: none; min-width: 78px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.tl-ev-icon { flex: none; width: 14px; text-align: center; }
.tl-ev-body { flex: 1 1 auto; min-width: 0; }
.tl-ev-note { color: var(--c-soft); }
.tl-ev-meta { margin-left: 6px; font-size: 11px; color: var(--c-muted); }
.tl-ev-delete { flex: none; color: var(--c-muted); opacity: 0; transition: opacity 0.15s; }
.tl-ev:hover .tl-ev-delete { opacity: 1; }
.tl-ev-delete:hover { color: var(--c-bad-ink); }
.op-event-source { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; background-color: var(--c-line-quiet); color: var(--c-soft); }
.op-event-source-driver { background-color: var(--c-ok-wash); color: var(--c-ok-ink); }
.op-event-source-telematics { background-color: var(--c-link-wash); color: var(--c-link); }
.op-event-source-dispatcher { background-color: var(--c-alt-wash); color: var(--c-alt-ink); }
.op-event-source-system { background-color: var(--c-line-quiet); color: var(--c-muted); }
.op-timeline-empty { padding: 4px 0; }
.op-calls { display: flex; flex-wrap: wrap; gap: 6px; }
.op-call { display: inline-flex; align-items: baseline; border: 1px solid var(--c-line-panel); border-radius: 14px; padding: 3px 4px 3px 10px; background-color: var(--c-dashed); }
.op-call-number { color: var(--c-ink); font-size: 12px; }
.op-call-number i { color: #6a1b9a; margin-right: 4px; }
.op-call-role { color: var(--c-muted); font-size: 11px; margin-left: 6px; }
.op-call-log { color: var(--c-muted); font-size: 11px; margin-left: 8px; padding: 0 6px; border-left: 1px solid var(--c-line-panel); }
.op-call-log:hover { color: var(--c-ok); }
.op-event-call { margin-top: 4px; color: #6a1b9a; font-size: 12px; }
.op-event-call i { margin-right: 4px; }


/* morning worklist (13/I) */
.wl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--c-line-panel); }
.wl-summary { font-size: 15px; }
.wl-summary i { margin-right: 6px; }
/* the morning list used to carry its own lookalike of the check panels; it speaks .ff-check now,
   and a closing note is .ff-note like everywhere else */


/* vehicle held for an offer under negotiation (01/O) */
.vis-item.timeline-reservation { background-color: var(--c-alt-wash); border-color: var(--c-alt); border-style: dashed; color: var(--c-alt-ink); }
.vis-item.timeline-reservation .vis-item-content { font-style: italic; }

/* a date the relative period will overwrite (RE-08) */
.ff-input-derived { background: var(--c-sunk); color: var(--c-soft); }
/* estimate against reality (RE-07): two bars per case, no library */
.pr-chart { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.pr-chart-row { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 10px; font-size: 12px; }
.pr-chart-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-chart-bars { display: flex; flex-direction: column; gap: 2px; }
.pr-chart-bar { height: 8px; border-radius: 2px; min-width: 2px; }
.pr-chart-predicted { background: var(--c-accent); }
.pr-chart-actual { background: var(--c-ok); }
.pr-chart-error { text-align: right; font-variant-numeric: tabular-nums; }
.pr-chart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--c-soft); }
.pr-chart-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* cash-flow buckets (RE-07) */
.cf-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.cf-bucket { padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-ground); }
.cf-bucket-ok { border-color: var(--c-ok); }
.cf-bucket-bad { border-color: var(--c-warn); }
.cf-bucket-overdue { border-color: var(--c-bad); background: var(--c-bad-wash); }
/* DS13-04: a block's label is a sentence like a board card's name (DS12-02), not "DO 30 DNŮ · SALDO" */
.cf-bucket-title { font-size: 12px; font-weight: var(--fw-semi); color: var(--c-label); margin-bottom: 6px; }
.cf-bucket-title::first-letter { text-transform: uppercase; }
/* a cash-flow line beside the balance (RE5-04) */
.cf-row-outside > td { font-style: italic; }
.cf-row-outside .badge-soft { font-style: normal; }
.cf-bucket-row, .cf-bucket-net { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 2px 0; }
.cf-bucket-net { border-top: 1px solid var(--c-line); margin-top: 4px; padding-top: 6px; font-size: 14px; }
.cf-bucket-sources { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: 11px; }
/* the links of the red bucket and the grey words of an overdue row, dark enough for their ground (DS10-03): "Pohledávky"
   3.85:1 on the red wash, "· Beta Trans a.s." 3.86:1 on the red row */
.cf-bucket-overdue .cf-bucket-sources a { color: var(--c-link-strong); }
/* DS13-02: the grey words of a bucket at 11 px were 4.21:1 on its wash */
.cf-bucket-sources.text-muted { color: var(--c-muted-strong); }
.table > tbody > tr.danger .text-muted { color: var(--c-muted-strong); }
.table > tbody > tr.danger a:not(.btn, .row-as-link-target, [class*="text-"], [class*="badge"], .label) { color: var(--c-link-strong); }
/* the fill just saved is found by eye (FL-12), and the list sorts by its headers */
.ff-row-highlight > td { background: var(--c-warn-wash) !important; }
/* the bar on the row's edge, not on every cell's (the card of a fill, 1. 10. 2026) */
.ff-row-highlight > td:first-child { box-shadow: inset 3px 0 0 var(--c-warn); }
/* the record a card is open on, among its neighbours: told by shade, not by colour */
.ff-row-current > td { background: var(--c-ground) !important; font-weight: 600; }
.ff-row-current > td:first-child { box-shadow: inset 3px 0 0 var(--c-quiet); }
/* a period under one column of a listing: two dates side by side (the log book, 1. 10. 2026) */
.ff-period-filter { display: flex; align-items: center; gap: 4px; }
.ff-period-filter .form-control { min-width: 0; flex: 1 1 0; }
/* a line to copy whole -- the crontab of a tenant -- wraps instead of running out of its box */
.ff-crontab { white-space: pre-wrap; word-break: break-all; font-size: 12px; user-select: all; }
.ff-list-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ff-list-toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
/* which lorry carries the order, under the stop squares of the listing (DI-11) */
/* the vehicle and its driver are cut to the column: a long name widened the order listing past
   Full HD (testing, 1. 10. 2026); the whole of it is in the tooltip of the squares */
.dispatch-vehicles { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; max-width: 110px; }
/* the orders at 1366 px (DS2-06): the creation and the distance give way and the route, the customer and the set
   narrow, so the price and the margin are in view without scrolling; what is left past the edge fades. At 1920 px the
   route's minimum of 380 px pushed the papers 23 px past the edge; 350 px keeps the stops side by side */
.ol-table .ol-route-head { width: 350px!important; }
/* up to 1799 px: at 1600 and 1680 px the table was still 158 and 78 px wider than the window */
@media (max-width: 1799px) {
	.ol-table:not([data-colpick^="t"]) .ol-col-wide { display: none; }
	/* 220 px with the papers' column gone (data-priority, DS5-01): the table is the window's width at 1366 px */
	.ol-table .ol-route-head { width: 220px!important; }
	.ol-table > thead > tr > th:has(> .w-220),
	.ol-table > thead > tr > th > .w-220 { width: 190px!important; }
	.ol-table > thead > tr > th:has(> .w-230),
	.ol-table > thead > tr > th > .w-230 { width: 196px!important; }
	.ol-table td.ol-customer { max-width: 190px; }
	.ol-table .ol-customer .ff-clip { max-width: 178px; }
	.ol-table .ol-crew-carrier,
	.ol-table .ol-crew-people .person-tag { max-width: 188px; }
}
/* at 1366 px the papers and the invoice stay in view (DS6-02, priority 1 -- by them the clerk tells what to invoice):
   the 90 px they take come from the route, the customer and the set, whose words clip with the whole in the tooltip */
@media (max-width: 1439px) {
	.ol-table .ol-route-head { width: 196px!important; }
	.ol-table > thead > tr > th:has(> .w-220),
	.ol-table > thead > tr > th > .w-220 { width: 160px!important; }
	.ol-table > thead > tr > th:has(> .w-230),
	.ol-table > thead > tr > th > .w-230 { width: 168px!important; }
	.ol-table td.ol-customer { max-width: 160px; }
	.ol-table .ol-customer .ff-clip { max-width: 150px; }
	.ol-table .ol-crew-carrier,
	.ol-table .ol-crew-people .person-tag { max-width: 160px; }
	/* the standing column of the menu takes 214 px more: the route gives the last 30 (it was 21 px past the edge) */
	[data-menu="columns"] .ol-table .ol-route-head { width: 166px!important; }
	/* DS19-02: "bez ceny · bez nákladů" on one line made the margin 148 px and sent "Souprava · Řidiči" under
	   "+3 sloupce" (the table 21 px past the edge); two lines of it, broken at the dot, keep the margin as wide as the price.
	   So the warning under a price: "cena neobvyklá (obvykle 4,31 EUR/km)" made the price 266 px wide */
	.ol-table td > .ff-margin-tag.text-nowrap { white-space: normal; }
	.ol-table td > .ff-margin-tag.text-nowrap:only-child { display: inline-block; max-width: 6em; }
}
/* the same with the standing column of the menu, which takes 214 px: at 1920 px the margin was past the edge */
@media (min-width: 1500px) and (max-width: 1999px) {
	[data-menu="columns"] .ol-table:not([data-colpick^="t"]) .ol-col-wide { display: none; }
	[data-menu="columns"] .ol-table .ol-route-head { width: 236px!important; }
	[data-menu="columns"] .ol-table > thead > tr > th:has(> .w-220),
	[data-menu="columns"] .ol-table > thead > tr > th > .w-220 { width: 190px!important; }
	[data-menu="columns"] .ol-table > thead > tr > th:has(> .w-230),
	[data-menu="columns"] .ol-table > thead > tr > th > .w-230 { width: 196px!important; }
	[data-menu="columns"] .ol-table td.ol-customer { max-width: 190px; }
	[data-menu="columns"] .ol-table .ol-customer .ff-clip { max-width: 178px; }
	[data-menu="columns"] .ol-table .ol-crew-carrier,
	[data-menu="columns"] .ol-table .ol-crew-people .person-tag { max-width: 188px; }
}
/* the listing of orders: the set of each trip -- the plates over the drivers (David, 12. 10. 2026) -- and the papers
   and the invoice as two icons */
/* the line between two sets is an element of its own with a tooltip (DS10-02): 11 px to hover, the dash in its middle */
.ol-crew-split { height: 12px; margin: 0 0 1px; background: linear-gradient(to right, var(--c-line-strong, var(--c-line)) 50%, transparent 50%) left center / 6px 1px repeat-x; cursor: help; }
/* "Jak to funguje" of the route column, beside the head's own words */
.ol-route-howto { margin-left: 6px; }
.ol-crew-carrier { display: block; max-width: 230px; margin-bottom: 3px; font-size: 12px; color: var(--c-soft); }
.ol-crew-plates, .ol-crew-people { display: flex; flex-wrap: wrap; gap: 4px; }
.ol-crew-people { margin-top: 3px; }
.ol-crew-people .person-tag { max-width: 230px; }
.ol-papers { font-size: 15px; }
.ol-papers > * + * { margin-left: 8px; }
.ol-papers-off { opacity: .5; }
.ol-state-second { margin-top: 2px; }
/* the customer of a fixed width, a line each for the name and the address (David, 12. 10. 2026) */
.ol-customer .ff-clip { max-width: 220px; }
/* every row at least 65 px tall, the one-line ones too (David, 12. 10. 2026); a cell's height is its least */
.ol-table > tbody > tr > td { height: 65px; }
/* DS8-01: at 1366 x 768 the listing showed 5 orders -- rows of 64-115 px and filters on two and three floors. A row is
   52 px at least and 56 at most for an order of one set: the route one line (the first and the last stop, "+N" for
   those between, custom.js), the plates side by side over the driver; the second floor of the filters folds under
   "Další filtry" */
.ol-table > tbody > tr > td { height: 52px; padding-top: 4px !important; padding-bottom: 4px !important; }
.ol-table > tbody > tr > td.actions { padding-top: 0 !important; padding-bottom: 0 !important; }
/* two boxes at most (the first and the last stop), 20 px high: side by side where the column has room, one over the
   other at 1366 px -- still within the 56 px. One line of them widened the column and sent "Souprava" away */
.ol-table .ff-route { gap: 2px 4px; }
.ol-table .ff-route > .ff-route-stop { padding: 0 6px; line-height: 18px; }
.ol-table .ff-route > .ff-route-stop.ff-route-mid { display: none; }
.ol-table .ff-route > .ff-route-more { flex: 0 0 auto; padding: 0 5px; border-radius: 9px; background: var(--c-none-wash); color: var(--c-neutral-ink); font-size: 11px; font-weight: 600; line-height: 18px; cursor: help; }
/* the last stop's day only where it is another than the first's */
.ol-table .ff-route > .ff-route-stop.ff-route-sameday > .ff-route-day { display: none; }
/* the set takes its head's width too: the two plates on one line set the column at 256 px */
.ol-table .ol-crew { width: 0; min-width: 100%; }
.ol-table .ol-crew-plates { flex-wrap: nowrap; gap: 3px; }
.ol-table .ol-crew-plates > .licence-plate { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 5px; padding-right: 5px; }
.ol-table .ol-crew-plates > .licence-plate > i { margin-right: 3px; }
.ol-table .ol-crew-people { margin-top: 2px; flex-wrap: nowrap; }
.ol-table .ol-crew + .ol-crew { margin-top: 3px; padding-top: 3px; }
.ol-table .ol-state-second { margin-top: 1px; }
/* DS19-02: "Platná" was the first badge of 99 % of the rows (a row of 64 px, 8 orders at 1366 x 768): the listing shows
   only the exceptions (Koncept, Stornovaná, Blokováno, a valid one with a note); the operational state leads */
.ol-table .badge-business-state-valid:not([data-toggle]),
.ol-table .badge-business-state-valid:not([data-toggle]) + br { display: none; }
/* the plates and the driver as tall as the route's boxes (20 px): a row of one set is the 52 px of its least, so ten
   orders fit 1366 x 768 with "Souprava · Řidiči" in view */
.ol-table .ol-crew .licence-plate,
.ol-table .ol-crew .person-tag { height: 20px; line-height: 18px; }
.ol-filter-pair { display: flex; gap: 4px; }
.ol-filter-pair > .form-control { flex: 1 1 0; min-width: 0; }
/* a plain link in a row is in the link ink of the grey grounds: "stazka #3881" in Historie změn was 4.28:1 on a striped
   row (DS9-02); links with a class of their own (buttons, chips, plates) keep theirs */
.table > tbody > tr > td a:not([class]) { color: var(--c-link-ink); }
/* "Další filtry" in one line under the first filters, wrapping inside its cell: a select never widens the table (DS9-01) */
.ol-filters-more-row { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.table > thead > tr.filters .ol-filters-more-row .select2-container { flex: 0 1 auto; width: auto !important; min-width: 0; max-width: 100%; }
.ol-more-toggle { position: relative; padding-left: 7px; padding-right: 7px; }
.ol-more-toggle.is-on, .ol-more-toggle[aria-expanded="true"] { border-color: var(--c-link); color: var(--c-link-ink); }
.dispatch-vehicle { font-size: 11px; line-height: 1.4; white-space: nowrap; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
.dispatch-vehicle i { margin-right: 3px; color: var(--c-muted); }
.dispatch-vehicle small { margin-left: 4px; color: var(--c-soft); }
/* a page that waits for its data (the board, the deployment plan -- David, 9. 10. 2026): one loader in the
   middle of the white panel, everything else laid out but unseen until the first data are drawn, so vis can
   measure its rows; the script takes .ff-page-loading off */
.ff-page-loader { display: none; }
.panel-body.ff-page-loading { position: relative; }
.panel-body.ff-page-loading > :not(.ff-page-loader) { visibility: hidden; }
.panel-body.ff-page-loading > .ff-page-loader { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: var(--fs-sm); color: var(--c-muted); }
.ff-page-spinner { width: 32px; height: 32px; border: 3px solid var(--c-line); border-top-color: var(--c-info); border-radius: 50%; animation: ff-spin 800ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .ff-page-spinner { animation-duration: 2.4s; } }

/* the deployment plan says what it is doing (DI-11) */
.dp-status { font-size: 12px; }
#dispatch-plan-timeline.dp-loading .vis-timeline { opacity: .55; transition: opacity .15s; }
/* what the plan is busy with, over its middle (David, 9. 10. 2026: not words in the bar) */
#dispatch-plan-timeline .dp-busy { display: none; }
#dispatch-plan-timeline.dp-busy-on .dp-busy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 26px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); font-size: var(--fs-sm); color: var(--c-muted); pointer-events: none; }
#dispatch-plan-timeline.dp-is-empty { min-height: 120px; }
.dp-empty { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px 18px; border: 1px dashed var(--c-line); border-radius: var(--r); background: var(--c-ground); }
/* over the middle of the plan: under it the note fell below the screen and the grid looked blank (David, 9. 10. 2026) */
.panel-body.ff-board-body { position: relative; }
.panel-body > #dispatch-plan-empty { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); z-index: 20; width: min(640px, calc(100% - 32px)); margin: 0; border-style: solid; background: var(--c-white); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
#dispatch-plan-timeline.dp-busy-on ~ #dispatch-plan-empty { display: none; }
.dp-empty > i { font-size: 26px; color: var(--c-quiet); margin-top: 2px; }
.dp-empty p { margin: 4px 0 10px; color: var(--c-soft); font-size: 12px; line-height: 1.6; max-width: 640px; }
.ff-filter .ff-field-check { align-self: flex-end; padding-bottom: 6px; }
.fc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.fc-filter label { margin: 0 2px 0 6px; font-weight: normal; color: var(--c-muted); }
.fc-filter .form-control { width: auto; display: inline-block; }
.fc-filter .fc-checkbox { color: var(--c-label); }

.vis-labelset .group-owner { color: #6a1b9a; }


/* global search (16/B) */
/* the header carries a button; the search itself opens as a dialog with room to read results */
.global-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    /* .buttons next to it sits on margin-top: -4px; without the same offset the header is a step */
    margin: -4px 0 0 12px;
    padding: 0 10px 0 12px;
    background-color: var(--c-ground);
    border: 1px solid var(--c-line);
    border-radius: 17px;
    color: var(--c-muted);
    font-size: 13px;
}
.global-search-trigger:hover, .global-search-trigger:focus { background-color: var(--c-white); border-color: var(--c-line-input); color: var(--c-soft); outline: none; }
.global-search-trigger-label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-trigger-key {
    padding: 1px 6px;
    background-color: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 3px;
    box-shadow: none;
    color: var(--c-muted);
    font-size: 11px;
    font-family: inherit;
}

.search-palette { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1090; background-color: rgba(31, 41, 51, 0.45); }
.search-palette[hidden] { display: none; }
body.search-palette-open { overflow: hidden; }
.search-palette-dialog {
    width: 640px;
    max-width: calc(100% - 32px);
    margin: 12vh auto 0 auto;
    background-color: var(--c-white);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.search-palette-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--c-line-quiet); }
.search-palette-field > i { color: var(--c-quiet); font-size: 16px; }
.search-palette-field .global-search-input {
    flex: 1;
    height: 56px;
    padding: 0;
    border: none;
    box-shadow: none;
    font-size: 17px;
    color: var(--c-ink);
    background: transparent;
}
.search-palette-field .global-search-input:focus { outline: none; box-shadow: none; }
.search-palette-close { padding: 3px 9px; background-color: var(--c-ground); border: 1px solid var(--c-line); border-radius: 3px; color: var(--c-muted); font-size: 11px; }
.search-palette-close:hover { background-color: var(--c-head); color: var(--c-soft); }
.search-palette-hint kbd { padding: 1px 5px; margin: 0 2px; background-color: var(--c-white); border: 1px solid var(--c-line); border-radius: 3px; box-shadow: none; color: var(--c-soft); font-size: 10px; font-family: inherit; }
.search-palette-hint { padding: 8px 16px; background-color: var(--c-dashed); border-top: 1px solid var(--c-line-quiet); color: var(--c-muted); font-size: 11px; }

.global-search-results { display: none; max-height: 52vh; overflow-y: auto; }
.global-search-results.open { display: block; }
.global-search-hit { display: block; padding: 10px 16px; border-bottom: 1px solid var(--c-ground); color: var(--c-ink); }
.global-search-hit:last-child { border-bottom: 0; }
.global-search-hit:hover, .global-search-hit:focus { background-color: var(--c-ground); text-decoration: none; }
/* the hit Enter would open: marked at the edge so it cannot be confused with a hover */
.global-search-hit.is-active { background-color: var(--c-info-wash); box-shadow: inset 3px 0 0 var(--c-info); text-decoration: none; }
.global-search-hit.is-active .global-search-kind { color: var(--c-info-ink); }
.global-search-hit.is-active strong { color: var(--c-ink-strong); }
.global-search-hit small { color: var(--c-muted); }
.global-search-kind { display: inline-block; min-width: 128px; margin-right: 8px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.global-search-empty { padding: 16px; color: var(--c-muted); font-size: 12px; }

.open-in-window { margin-left: 8px; font-size: 13px; color: var(--c-muted); }
.open-in-window:hover { color: var(--c-ok); }
/* ‹ › to the vehicle's trip or order before and after (__inc/vehicleNav.latte, David, 19. 10. 2026) */
.ff-vehicle-nav { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.ff-vehicle-nav-off { display: inline-block; }
/* the arrow in the middle of its button, upright too (David, 19. 10. 2026) */
.ff-vehicle-nav-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding-top: 0; padding-bottom: 0; }
.ff-vehicle-nav-btn.btn-xs { height: 22px; }
.ff-vehicle-nav-btn.btn-sm { height: 30px; min-width: 30px; }
.ff-vehicle-nav-btn i { line-height: 1; }
.ff-title-actions .ff-vehicle-nav { margin-left: 0; }

.bulk-state { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.bulk-state .form-control { width: auto; display: inline-block; }

/* the job-run states speak the same soft badge as every other status in the admin; default,
   primary and the bootstrap names below let a tone decided in PHP keep working */
.badge-soft-default { background: var(--c-none-wash); color: var(--c-neutral-ink); }
.badge-soft-primary { background: var(--c-alt-wash); color: var(--c-alt-ink); }
/* the description of a job wraps in its column, not clipped to one line under a bare title (AD7-05) */
.jr-job-desc { white-space: normal; }

/* age of the last reading on the board (16/E) */
.vis-labelset .group-age { font-weight: bold; }
.vis-labelset .group-age-warning { color: #ef6c00; }
.vis-labelset .group-age-stale { color: #d9534f; }

/* what the driver has left, block / day (08/C) -- read at a glance beside the registration, because
   that is where the dispatcher's eye already is when they reach for an order */
.vis-labelset .group-driving { font-variant-numeric: tabular-nums; font-weight: var(--fw-semi); }
.vis-labelset .group-driving-ok { color: var(--c-soft); }
.vis-labelset .group-driving-warn { color: var(--c-warn-ink); }
.vis-labelset .group-driving-bad { color: var(--c-bad-ink); }

/* the driver is not at work -- holiday, sickness, rota rest (08/B) */
.vis-labelset .group-away {
	display: inline-block;
	padding: 0 5px;
	border-radius: var(--r-sm, 3px);
	background: var(--c-warn-wash);
	color: var(--c-warn-ink);
	font-size: 10px;
	font-weight: var(--fw-semi);
}


/* a small form that does something rather than narrowing something: create the record, send the
   statement, resolve the dispute. It reads left to right and its button follows its fields --
   the filter bar's habit of pushing actions to the far edge would separate the button from the
   field it belongs to */
.inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--sp-2) var(--sp-3);
}
.inline-form .ff-field { display: flex; flex-direction: column; gap: 3px; }
.inline-form .ff-field > label {
	margin: 0;
	font-size: var(--fs-micro);
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--c-soft);
}
.inline-form .form-control { height: var(--h-input-sm); width: auto; min-width: 150px; }
.inline-form .select2-container { width: auto !important; min-width: 170px; }
.inline-form .form-control[type="number"], .inline-form .w-90 { min-width: 0; }
.inline-form .btn { margin: 0; float: none; }
/* inside a section head the form shares the line with the heading, so it stays on one line -- and
   the button keeps its full width while the field beside it gives way */
.wl-actions .inline-form { flex-wrap: nowrap; }
.wl-actions .inline-form .btn { flex-shrink: 0; }
.wl-actions .inline-form .form-control,
.wl-actions .inline-form .select2-container { min-width: 90px; }

/* the paragraph that says why a screen exists -- most screens built in waves 2 and 3 open with
   one. Left to help-block it ran the full width of the monitor, where a line of eighty words is
   a line nobody reads; it now measures itself and sits above the filter rather than inside the
   panel with the data */
/* the gear of the e-mail templates in tabs (testing, 15. 9. 2026): the panes start under the tabs,
   a colour is a swatch the height of a field, the stored logo shows over its upload */
/* the tabs as in the previews (3. 11. 2026): on the grey of the dialog, the pane white under them */
#modal-screenSettings .modal-body:has(.slim-tabs) { background: var(--c-canvas); }
#modal-screenSettings .slim-tabs > .tab-content { padding: 12px; }
input.ff-color-input[type="color"] { height: 34px; padding: 3px 4px; cursor: pointer; }
.ff-envelope-logo { margin: 0 0 8px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-ground); display: inline-block; }
.ff-envelope-logo img { display: block; max-height: 48px; max-width: 220px; }

.screen-intro {
	max-width: 108ch;
	margin: 0 0 var(--sp-6) 0;
	color: var(--c-soft);
	font-size: var(--fs);
	line-height: 1.7;
}

/* an empty state standing in for the whole table: the cell must not impose a row height on it */
/* (David, 6. 11. 2026) a listing keeps its head with the row of filters, so the filter can be changed or reset: the
   grey block stands in the row across the table, a few px in from its edges. The row itself is the table's white in a
   striped, a hovered or a tab's table alike */
.table > tbody > tr > td.td-empty { height: auto; padding: 8px !important; border-top: 0; }
.table > tbody > tr:has(> td.td-empty), .table > tbody > tr:has(> td.td-empty):hover,
.table > tbody > tr > td.td-empty, .table-hover > tbody > tr:hover > td.td-empty { background: transparent !important; }
/* any other table with nothing in it is not drawn: no head of columns over an empty row, only the grey block in its
   place (a card's tab, a panel, a section, a modal). The template keeps one row with td.td-empty (__inc/emptyState.latte);
   which table that is, is read here -- a head with the row of filters (tr.filters) makes it a listing */
.table:not(:has(> thead > tr.filters)):has(> tbody > tr:only-child > td.td-empty) { min-width: 100%; width: 100%; border: 0; background: transparent; }
.table:not(:has(> thead > tr.filters)):has(> tbody > tr:only-child > td.td-empty) > :is(thead, tfoot) { display: none; }
.table:not(:has(> thead > tr.filters)):has(> tbody > tr:only-child > td.td-empty) > tbody > tr > td.td-empty { padding: 0 !important; border: 0; }

/* ==== fuelling (02/E): filter bar, checks, modal form ==== */

/* a whole stat card as a link -- .stat-card is already position:relative; overflow:hidden */
.stat-card .stat-card-link { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; }
.stat-card .stat-card-link:hover,
.stat-card .stat-card-link:focus { background: rgba(51, 58, 64, 0.03); }

.ff-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--c-ground-bar);
    border: 1px solid var(--c-line-panel);
    border-radius: 3px;
}
.ff-filter .ff-field { display: flex; flex-direction: column; gap: 3px; }
/* "Předat směnu" at the end of the filter row, its form folded under it (DS10-04) */
.ff-filter .sh-handover-toggle { margin-left: auto; }
.ff-filter .ff-field > label {
    margin: 0;
    font-size: 11px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--c-soft);
}
.ff-filter .ff-field .form-control { width: 100%; }
/* without this Select2 inside a shrink-to-fit flex item collapses to the width of its arrow */
.ff-filter .ff-field .select2-container { width: 100% !important; }
.ff-filter .ff-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
/* a filter is sometimes a yes/no rather than a value: it sits on the same baseline as the fields
   next to it rather than floating against the top of the bar */
.ff-filter .checkbox-inline {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	height: var(--h-input);
	font-size: var(--fs);
	color: var(--c-ink);
	white-space: nowrap;
}
.ff-filter .checkbox-inline input[type="checkbox"] { position: static; margin: 0; }
/* the theme wraps checkboxes in its own markup; inside a filter bar it has no label to align to */
.ff-filter .checkbox-inline .icheckbox_square-blue { margin-right: 0; }

.ff-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; flex-basis: 100%; }
.ff-preset {
    display: inline-block;
    padding: 4px 11px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-soft);
    background: var(--c-white);
    border: 1px solid var(--c-line-chip);
    border-radius: 13px;
    white-space: nowrap;
}
.ff-preset:hover, .ff-preset:focus { color: var(--c-ink); border-color: var(--c-quiet); background: var(--c-ground); text-decoration: none; }
.ff-preset.is-active { color: #ffffff; background: var(--c-ok-deep); border-color: var(--c-ok-deep); font-weight: 600; }
.ff-preset.is-active:hover, .ff-preset.is-active:focus { color: #ffffff; }
/* "Vlastní…" is a <button> (periodCustomPill.latte, DS6-04): the pill's font and border, not the browser's */
button.ff-preset { -webkit-appearance: none; appearance: none; margin: 0; font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
button.ff-preset:focus:not(:focus-visible) { outline: 0; }
/* the countries of the address picker as chips: flag, code, how many places (David, 2. 10. 2026) */
.ap-countries { margin-bottom: 12px; }
.ap-countries .ff-preset { display: inline-flex; align-items: center; gap: 6px; }
.ap-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; vertical-align: -1px; }
td > .ap-flag { margin-right: 5px; }
.ap-chip-count { font-size: 11px; opacity: 0.7; }

.ff-table-scroll { max-height: calc(100vh - 430px); min-height: 240px; overflow-y: auto; overflow-x: auto; }
.ff-num { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
/* one line per row: a wrapped name breaks the rhythm of every other row on the screen */
.ff-clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the customer of an order template in its fixed column, clipped with the whole name in the tooltip (David, 6. 11. 2026) */
.tpl-customer .ff-clip { max-width: 180px; }
/* a badge with a long name (the carrier of a trip in the listing) stays a badge, clipped to its cell */
.badge-soft.ff-clip { display: inline-block; max-width: 100%; vertical-align: middle; }
/* a name in a listing with a small way to its card beside it -- the row itself opens the record */
.ff-name-with-link { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* the second, small line of a cell: the time under the day, the customer's number under ours */
.ff-cell-sub { display: block; font-size: 11px; line-height: 1.35; color: var(--c-muted); }
/* the route of a document in a listing: a box per stop side by side, an arrow between (__inc/routeStops.latte) */
/* the main figure of a row, as the customer of a demand (David, 2. 10. 2026) */
.ff-cell-strong { font-weight: 600; color: var(--c-ink-strong); }
/* the snippet around the numbers of the footer: no box of its own, the footer lays them out as before */
.ff-doc-summary-wrap { display: contents; }
/* the currency and its rate in one row (__inc/currencyRateField.latte): the select, the rate and
   the button of the bank's rate (what the number is says the hint) -- joined as one input group; for the base currency the select alone */
.ff-currency-rate { display: flex; align-items: stretch; }
.ff-currency-rate .ff-cr-currency { flex: 0 0 74px; width: 74px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ff-currency-rate .ff-cr-rate { flex: 1 1 auto; width: auto; min-width: 0; margin-left: -1px; }
.ff-currency-rate .ff-cr-rate .ff-cr-value { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 70px; }
/* DS19-02 (ux-lint off-column): as a table the rate and its button kept the 70 px of the field and reached 7 px past the
   half column of the order's price at 1366 px; a row gives the field what the button leaves ("24,425" in 63 px) */
.ff-currency-rate .ff-cr-rate { display: flex; }
.ff-currency-rate .ff-cr-rate .ff-cr-value { flex: 1 1 auto; width: auto; min-width: 0; }
.ff-currency-rate .ff-cr-rate > .input-group-btn { display: block; flex: none; width: auto; }
.ff-currency-rate > .select2-container { flex: 0 0 74px; width: 74px !important; }
.ff-currency-rate > .select2-container .select2-selection { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ff-currency-rate.is-base .ff-cr-currency,
.ff-currency-rate.is-base > .select2-container { flex: 1 1 auto; width: auto !important; border-radius: 4px; }
.ff-currency-rate.is-base > .select2-container .select2-selection { border-radius: 4px; }
.ff-currency-rate.is-base .ff-cr-rate,
.ff-currency-rate.is-base + .ff-cr-hint { display: none; }
/* a rate typed by hand stands out from the bank's, which follows the day of the document */
.ff-currency-rate.is-manual .ff-cr-value { font-weight: 600; color: var(--c-ink-strong); }
.ff-currency-rate.is-loading .ff-cr-value { color: var(--c-muted); }
/* a hint across the whole row under a field half as wide: 6px under the field, as every hint */
.form-group.ff-group-tight { margin-bottom: 0; }
.ff-form-hint.ff-hint-row { margin: 6px 0 0; }
/* it keeps no bottom margin for the next hint to draw up over: that one stands its own 6px under it
   (the VAT line under the route's warning on the order card overlapped it, DS4-13) */
.ff-form-hint.ff-hint-row + .ff-form-hint { margin-top: 6px; }
.row.ff-row-spaced { margin-bottom: 15px; }
/* what the goods ask of the trailer, as icons in a listing (__inc/cargoRequirements.latte) */
.cr-icons { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.cr-icon { font-size: 13px; cursor: help; }
.cr-info { color: var(--c-info-ink); }
.cr-alt { color: var(--c-alt-ink); }
.cr-danger { color: var(--c-bad-ink); }
.cr-muted { color: var(--c-soft); }
.ff-route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
/* a stop as on the card of the transport (.tp-card, David, 12. 10. 2026): the grey box, its left edge in the
   colour of what happens there -- green loading, red unloading, half and half both */
.ff-route-stop { position: relative; display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; padding: 2px 8px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-quiet); border-radius: 4px; background: var(--c-ground); font-size: 12px; line-height: 18px; white-space: nowrap; }
.ff-route-country { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; color: var(--c-muted); }
.ff-route-flag { align-self: center; width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.ff-route-city { font-weight: 600; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
/* the day sits on the wash of its stop's chip: --c-label, the muted grey was 4.2-4.4:1 there (DS5-03) */
.ff-route-day { font-size: 11px; color: var(--c-label); }
.ff-route-stop.ff-tip-trigger { cursor: help; }
.ff-route-loading { border-left-color: var(--c-ok); }
.ff-route-unloading { border-left-color: var(--c-bad); }
.ff-route-both { border-left-color: var(--c-ok); }
.ff-route-both::before { content: ""; position: absolute; left: -3px; top: -1px; width: 3px; height: calc(50% + 1px); background: var(--c-bad); border-top-left-radius: 4px; }
/* how far a stop has got (the listing of orders), by the ground of its box in the washes of the state's badge on
   the card (TripStopsEntity::getStatusTone, David, 12. 10. 2026 -- a coloured frame was too faint): white and dashed
   on no trip, grey planned, violet on its way or there, green done; the left edge says what happens there */
.ff-route-stop.ff-route-unplanned { background: var(--c-white); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-top-color: var(--c-muted); border-right-color: var(--c-muted); border-bottom-color: var(--c-muted); }
.ff-route-stop.ff-route-state-muted { background: var(--c-none-wash); border-top-color: var(--c-quiet); border-right-color: var(--c-quiet); border-bottom-color: var(--c-quiet); }
.ff-route-stop.ff-route-state-alt { background: var(--c-alt-wash); border-top-color: var(--c-alt); border-right-color: var(--c-alt); border-bottom-color: var(--c-alt); }
.ff-route-stop.ff-route-state-success { background: var(--c-ok-wash); border-top-color: var(--c-ok); border-right-color: var(--c-ok); border-bottom-color: var(--c-ok); }/* the lorries under the route, side by side -- the narrow column of the dispatch they stood in is gone */
.ff-route + .dispatch-vehicles { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
/* its content in the tooltip of the plates (.dg-plate-tip, custom.js -- David, 12. 10. 2026) */
.ff-tip-box .ff-tip-head { display: block; font-weight: 600; margin-bottom: 4px; }
.ff-tip-box .ff-tip-sub { font-weight: 400; opacity: 0.8; }
.ff-tip-box .ff-tip-row { display: flex; gap: 8px; align-items: baseline; }
.ff-tip-box .ff-tip-row > i { flex: none; width: 13px; text-align: center; opacity: 0.7; font-size: 11px; }
.ff-name-with-link > .ff-clip { min-width: 0; }
.ff-row-icon-link { flex: none; font-size: 11px; color: var(--c-link); padding: 2px; }
.ff-row-icon-link:hover, .ff-row-icon-link:focus-visible { color: var(--c-link-hover, var(--c-link)); }
/* several badges in one cell: let them wrap with room to breathe rather than stack tight */
.ff-roles { line-height: 1.9; }
.ff-roles .badge-soft { margin-right: 3px; }
/* a row of tags that may wrap: a gap between them and between the rows they break into */
.ff-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
/* the VAT by rate under the lines of an invoice (first pass of the invoices, 2. 11. 2026) */
/* ... a summary box on the right, apart from the lines (David, 6. 11. 2026): its own wash and frame, a heading
   instead of a table head, the totals stronger; room between the text, the lines and the recap */
.table.ff-invoice-lines { margin-top: 22px; }
/* the note how the lines add up on the left, the recap on the right, both boxes of one height row */
.ff-vat-recap-row { display: flex; align-items: stretch; gap: 16px; margin-top: 32px; }
.ff-vat-recap-row-empty { margin-top: 16px; }
.ff-vat-recap-note { flex: 1 1 0; min-width: 0; display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r, 6px); background: var(--c-ground); color: var(--c-soft); font-size: 12px; line-height: 1.5; }
.ff-vat-recap-note > i { margin-top: 2px; color: var(--c-info-ink); }
.ff-vat-recap-box { flex: 0 0 620px; max-width: 100%; margin: 0; padding: 12px 16px 6px; border: 1px solid var(--c-line); border-radius: var(--r, 6px); background: var(--c-ground); }
@media (max-width: 1500px) { .ff-vat-recap-box { flex-basis: 560px; } }
/* without the rounding sentence beside it the recap keeps to the right (R11-8 a) */
.ff-vat-recap-box-alone { margin-left: auto; }
.ff-vat-recap-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--c-ink-strong); }
.ff-vat-recap-box .table.ff-vat-recap { margin: 0; background: transparent; }
.ff-vat-recap-box .table.ff-vat-recap > thead > tr > th { background: transparent; color: var(--c-label); border-bottom: 1px solid var(--c-line); font-weight: 600; text-transform: none; letter-spacing: 0; }
.ff-vat-recap-box .table.ff-vat-recap > tbody > tr > td { background: transparent; border-top: 0; }
.ff-vat-recap-box .table.ff-vat-recap > tfoot > tr > td { background: transparent; border-top: 1px solid var(--c-line-strong); font-size: 14px; padding-top: 8px; }
/* a row of tags over a table (the state of a rental, a plan, a card) sits on its own line, not
   glued to the head of the table (David, 1. 10. 2026) */
.ff-tags + table, .ff-tags + .table-responsive { margin-top: 16px; }
/* tags at the head of a form keep off the first label */
.form-part-content > .ff-tags + .row, .form-part-content > .ff-tags + .form-group { margin-top: 12px; }

/* the registration is what a fleet screen is indexed by -- giving it the shape of the plate itself
   makes a row scannable without reading it */
.licence-plate {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--c-quiet);
    border-radius: 3px;
    background: var(--c-white);
    color: var(--c-ink) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    /* an inline-flex box aligns on the baseline of its content, which sits the plate a pixel above
       the text in the neighbouring cells */
    vertical-align: middle;
}
/* the symbol of what the plate belongs to, when the column does not say it (a trailer beside a lorry) */
.licence-plate > i { margin-right: 5px; font-size: 11px; font-weight: 400; color: var(--c-muted); }
a.licence-plate:hover, a.licence-plate:focus,
a:hover > .licence-plate, a:focus > .licence-plate { background: var(--c-ground); border-color: var(--c-muted); text-decoration: none; }
/* a person as a tag, the way the plate is: the symbol of the role, the surname and the initial; the
   full name is in the tooltip (David, 22. 9. 2026). The frame of the plate, the weight of a name */
.person-tag, .ff-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    height: 22px;
    padding: 0 8px 0 6px;
    border: 1px solid var(--c-line-input);
    border-radius: 3px;
    background: var(--c-white);
    color: var(--c-ink) !important;
    font-size: 12px;
    font-weight: var(--fw-medium);
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.person-tag > i, .ff-tag > i { flex: none; font-size: 11px; color: var(--c-muted); }
a.person-tag:hover, a.person-tag:focus, a.ff-tag:hover, a.ff-tag:focus { background: var(--c-ground); border-color: var(--c-muted); text-decoration: none; }
/* a position as a tag (where a trailer stands): the numbers in tabular figures */
.ff-tag-gps { font-variant-numeric: tabular-nums; }
/* the map of a position in its modal (modal-position.latte) */
.ff-position-map { height: calc(100vh - 280px); min-height: 420px; border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; }

/* DS3-09: a map box says it is loading until its first tiles are drawn (map.js, ffMapSkeleton) -- the dark mode
   showed a black box for seconds */
.ff-map-is-loading { position: relative; }
.ff-map-skeleton { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--c-line-quiet); color: var(--c-muted-strong); font-size: 13px; pointer-events: none; transition: opacity 200ms; }
.ff-map-skeleton::before { content: ''; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ff-spin 700ms linear infinite; }
.ff-map-skeleton.is-done { opacity: 0; }
/* a browser without WebGL: a grey box that says why, not an empty white one (DS9-04, map.js ffMapNoWebGl) */
.ff-map-has-nogl { position: relative; min-height: 120px; }
.ff-map-nogl { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: var(--c-sunk); color: var(--c-label); font-size: 13px; text-align: center; }
.ff-map-nogl > i { color: var(--c-muted); font-size: 18px; }
/* a point in a message as a chat shows it: a small map with the pin over its label, a click opens the large one
   (David, 30. 10. 2026) */
/* a point drawn as a picture (David, 30. 10. 2026): no box, the map the width of a photo with its rounded corners, the
   label under it as a picture's text, the whole a link */
.dm-point { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.dm-point:hover, .dm-point:focus { color: inherit; text-decoration: none; }
.dm-point .dm-point-preview { border-radius: 8px; overflow: hidden; height: 200px; }
.dm-point:hover .dm-point-preview { box-shadow: 0 0 0 2px var(--c-info); }
.dm-point-preview { display: block; height: 140px; background: var(--c-ground); pointer-events: none; }
.dm-message-media > .dm-point > .dm-point-label { display: block; margin-top: 6px; padding: 0 8px; }
.dm-point-label i { color: var(--c-bad-ink); }
.ff-position-coords { margin-top: 8px; font-variant-numeric: tabular-nums; }
/* the second driver under the first: the same tag, a shade quieter */
.person-tag-quiet { color: var(--c-muted) !important; border-color: var(--c-line); background: var(--c-ground); font-weight: 400; }
.ff-tag-second { margin-top: 3px; }
/* rows that dim themselves (a partial fill, a disabled record) take the plate with them */
tr.disabled .licence-plate, .ff-row-partial .licence-plate { color: var(--c-muted) !important; border-color: var(--c-line-panel); }
.ff-cell-driver .ff-clip { max-width: 160px; }
.ff-cell-station .ff-clip { max-width: 520px; }
.ff-cell-document .ff-clip { max-width: 110px; font-size: 12px; }
/* DS13-02: --c-label, not --c-soft: "CZK" at 11 px was 4.16:1 on the grey of a closing check */
.ff-unit { margin-left: 3px; font-size: 11px; color: var(--c-label); }
/* every amount names its currency; a foreign one still has to stand out at a glance */
.ff-unit-foreign { font-weight: 600; color: var(--c-alt-ink); }
/* DS13-02: --c-muted-strong, not --c-soft: 12 px of a note on the grey of the page was 4.46:1 (Docházka) */
.ff-note { margin: 10px 0 0 0; font-size: 12px; color: var(--c-muted-strong); }
/* the paginator sits directly on the last row otherwise */
.ff-table-scroll + .paginator-container { margin-top: 18px; }
.ff-note i { margin-right: 5px; }

/* a section heading told the sections apart only by being small and grey, and they ran together
   (testing, 16. 9. 2026): room above it and darker letters give each section a start. The rule that
   stood in that room went again (18. 9. 2026); the room stayed as wide as it was with the rule in it,
   38 px, until it made the columns of the cards long (David, 30. 9. 2026) */
.ff-section-title {
    margin: 18px 0 14px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-label);
}
/* content a field switches on and off (initToggles() in custom.js): hidden until the script has
   looked at the field and said it shows. Shown by default and hidden from the script, all of it
   flashed on every reload before the script got to it. !important, since the target is often
   something with a display of its own to beat (.form-part-content is a grid) */
[data-show-on]:not(.is-shown) { display: none !important; }

/* a property that states itself only when it applies (a cargo space's temperature, its ADR classes):
   the box and the fields it opens are one block, and the block shows whether it is on (16. 9. 2026) */
/* it stands among fields, so it is edged, rounded and indented as a field is (.form-control):
   the box starts where the text of the field above it starts */
.ff-toggle-block {
    margin-bottom: 14px;
    padding: 0 10px;
    border: 1px solid var(--c-line-input);
    border-radius: 3px;
    background-color: var(--c-white);
}
.ff-toggle-block:has(> .checkbox input:checked) {
    background-color: var(--c-ground);
}
.ff-toggle-block > .checkbox { margin-top: 0; margin-bottom: 0; }
/* Bootstrap hangs the box 4 px down, which suits 14 px letters and a 13 px box; ours are 13 px and
   14 px and the box sat 2.5 px below the word. Centred by the row instead of by a number. The label
   fills the frame, less its two edges: shut, the frame is as tall as a field, and all of it ticks.
   The word is what this field holds, so it is in a field's ink and not in a label's grey */
.ff-toggle-block > .checkbox label { display: flex; align-items: center; gap: 6px; height: calc(var(--h-input) - 2px); min-height: 0; padding-left: 0; font-weight: var(--fw-medium); color: var(--c-ink-field); }
.ff-toggle-block > .checkbox label input[type="checkbox"] { position: static; margin: 0; flex: none; }
/* an icon after the word (an ADR class's symbol), pushed to the far end of the frame and in the grey
   of an icon that is off: it helps find the line and thirteen of them do not outshout the words */
.ff-toggle-block > .checkbox label > i { flex: none; margin-left: auto; color: var(--c-quiet); }
/* several of them as one mark (a group of a driving licence: the vehicle and its trailer) */
.ff-toggle-block > .checkbox label > .ff-toggle-marks { display: inline-flex; align-items: center; gap: 2px; flex: none; margin-left: auto; color: var(--c-quiet); }
/* a mark beside the tag of a state (a blocking defect on a lorry that is on the road) */
.ff-state-mark { margin-left: 4px; font-size: 14px; vertical-align: -1px; cursor: help; }
/* the bar of the workshop plan: a step back, the day it starts, a step forward, today -- and what is shown.
   Every .btn floats globally, so the bar is a flex row that ignores the float (testing, 24. 9. 2026) */
.ff-plan-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ff-plan-bar .btn { float: none; }
.ff-plan-bar .ff-plan-from { width: 120px; text-align: center; }
.ff-plan-bar .ff-plan-caption { margin-left: 10px; font-weight: var(--fw-medium); }
/* a mark that is a link (the inspection behind a document) keeps the colour of the text, not of a link (David, 22. 9. 2026) */
a.ff-state-mark, a.ff-state-mark:hover, a.ff-state-mark:focus { color: inherit; text-decoration: none; }
/* a row of buttons under a list inside a box: the button floats, and without this the frame closed
   above it (the "new" of the own cargo spaces, David 22. 9. 2026) */
.ff-toggle-block .row-links { display: flow-root; }
/* a link at the far end of the box's line (the way back to the type's cargo spaces) */
.ff-toggle-block > .checkbox label > .ff-toggle-aside { flex: none; margin-left: auto; font-weight: var(--fw-normal); font-size: 12px; }
.ff-toggle-block .form-group:last-child { margin-bottom: 0; }
/* what the box opens brings its own room below: hidden, it leaves the frame at a field's height.
   Named twice so that a form-group opened by the box keeps that room against the rule above */
.ff-toggle-block > .checkbox + *,
.ff-toggle-block > .checkbox + .form-group:last-child { margin-top: 6px; margin-bottom: 12px; }
/* a box with two contents, one for shut and one for open (the type's values, the lorry's own): the
   one that shows is not always the first after the box, and the frame sat on it (David, 22. 9. 2026) */
.ff-toggle-block > .checkbox ~ [data-show-on].is-shown { margin-top: 6px; margin-bottom: 12px; }
/* a card that stands for the role hides its box (a driver's card does not ask "is a driver"): what hangs
   on it then starts the frame, with the room above that it has below */
.ff-toggle-block > .checkbox.hidden + * { margin-top: 12px; }
/* what the box opens may be several rows of fields (a driver: the licence and the days, the note below):
   every field is the last of its column and so has no room below, the room is between the rows */
.ff-toggle-rows > .row + .row { margin-top: 12px; }
/* several of them side by side in a Bootstrap row, each only a box (a cargo space's loading methods,
   its ADR classes): the gap between two lines of them is the row's, not the frame's */
.ff-toggle-row { display: flex; flex-wrap: wrap; row-gap: 8px; }
/* the row's clearfix would be flex items of their own, and Safari wraps the last column over them */
.ff-toggle-row::before, .ff-toggle-row::after { display: none; }
.ff-toggle-row .ff-toggle-block { margin-bottom: 0; }
/* a frame inside an open block (an ADR class): ticked, it would take the ground the block around it
   already stands on and vanish into it. There the two colours change places: shut, it lies a shade
   above the ground -- still a frame to tick, not a hole in the block -- and ticked it turns white
   and steps out of it. A colour of its own and a darker grey were both tried and were too much and
   too little for a list of thirteen (18. 9. 2026) */
.ff-toggle-block .ff-toggle-block { background-color: var(--c-ground-soft); }
.ff-toggle-block .ff-toggle-block:has(> .checkbox input:checked) { background-color: var(--c-white); }
/* one of several ways, as the box above with the choices side by side in its head (whose fleet, where
   it is repaired -- David, 30. 9. 2026): the chosen one is a tab open into the box, the fields of it
   are opened under the head, the others wait beside it in white */
.ff-choice-block {
    margin-bottom: 14px;
    padding: 0 10px;
    border: 1px solid var(--c-line-input);
    border-radius: 3px;
    background-color: var(--c-ground);
}
.ff-choice-head { display: flex; margin: 0 -10px; }
.ff-choice-head > label { flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-width: 0; height: calc(var(--h-input) - 2px); margin: 0; padding: 0 10px; font-weight: var(--fw-normal); color: var(--c-soft); background-color: var(--c-white); border-bottom: 1px solid var(--c-line-input); cursor: pointer; transition: background-color .1s, color .1s; }
.ff-choice-head > label + label { border-left: 1px solid var(--c-line-input); }
.ff-choice-head > label:first-child { border-top-left-radius: 2px; }
.ff-choice-head > label:last-child { border-top-right-radius: 2px; }
.ff-choice-head > label:hover { color: var(--c-ink-field); }
.ff-choice-head > label:has(input:checked) { font-weight: var(--fw-medium); color: var(--c-ink-field); background-color: transparent; border-bottom-color: transparent; }
.ff-choice-head > label input[type="radio"] { position: static; margin: 0; flex: none; }
.ff-choice-head > label > i { flex: none; margin-left: auto; color: var(--c-quiet); }
.ff-choice-block > [data-show-on].is-shown { margin-top: 8px; margin-bottom: 12px; }
/* a hint of the box keeps off the switch when no field is shown between them -- the holder of a
   fuel card set to "nobody" (David, 1. 10. 2026); after a field the margins collapse as before */
.ff-choice-block:not(:has(> [data-show-on].is-shown)) > .ff-form-hint { margin-top: 8px; }
.ff-choice-block > [data-show-on] > .form-group:last-child { margin-bottom: 0; }
/* fields in a row of halves as the last thing of a choice keep no margin either (a trailer's select) */
.ff-choice-block > .row[data-show-on] > [class*="col-"] > .form-group,
.ff-choice-block > [data-show-on] > .row:last-child > [class*="col-"] > .form-group { margin-bottom: 0; }
/* the same box inside an open one is white, its waiting choices a shade of grey */
.ff-choice-block .ff-choice-block { margin-bottom: 0; background-color: var(--c-white); }
.ff-choice-block .ff-choice-block .ff-choice-head > label { background-color: var(--c-ground-soft); }
.ff-choice-block .ff-choice-block .ff-choice-head > label:has(input:checked) { background-color: transparent; }
.ff-choice-block .ff-choice-block + .ff-form-hint { margin-top: 6px; }
/* a frame that is a row of its own under the fields of an open block (the record of the temperature):
   the fields above are the last in their columns and keep no margin, so the frame sat right on them */
.ff-toggle-block .row > [class*="col-"] > .ff-toggle-block { margin-top: 10px; margin-bottom: 0; }
/* a longer list of them (ADR classes) in two columns read down and then across, not zigzag: a grid
   that flows by column. It has to be told how many rows make half the list -- the template sets
   --ff-rows -- since CSS columns, which would count for themselves, carried the last frame's margin
   over to the top of the second column in some browsers and the two columns stood out of line.
   The gutter is the one of a row here -- 10 px, the columns are padded by 5 -- so the two columns
   stand where two col-sm-6 would; it was Bootstrap's own 30 px and the first column ended 10 px
   short of the field above it (18. 9. 2026) */
.ff-toggle-cols { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--ff-rows), auto); gap: 8px 10px; }
.ff-toggle-cols > .ff-toggle-block { margin-bottom: 0; }
/* the same frames for short names, read across: four to a row (the groups of a driving licence, a row
   is a category) */
.ff-toggle-grid { display: grid; grid-template-columns: repeat(var(--ff-cols, 4), minmax(0, 1fr)); gap: 8px 10px; }
.ff-toggle-grid > .ff-toggle-block { margin-bottom: 0; }
.ff-toggle-grid > .ff-row-start { grid-column-start: 1; }
/* a frame that stands beside a field, in the other half of its row, under an empty label */
.ff-toggle-block .form-group > .ff-toggle-block { margin-bottom: 0; }
/* a hint under the frames is a span and its margin did nothing: it sat on the last frame's edge
   (under the columns too -- a column drops the margin of the last frame in it) */
.ff-toggle-row + .ff-form-hint,
.ff-toggle-cols + .ff-form-hint,
.ff-toggle-grid + .ff-form-hint { display: block; margin-top: 6px; }

/* marks at the far end of a name in a listing (a type whose spaces keep a temperature or take ADR):
   the name keeps the left, the marks line up down the right edge of the column. They carry the
   colours the same facts have as badges in the list of spaces, and say the rest in a tooltip */
.ff-name-marks { display: flex; align-items: center; gap: 10px; }
.ff-row-marks { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
.ff-row-marks i { cursor: help; }
/* the lock of a system record stands right behind the name (__inc/systemBadge.latte), in the grey of
   an icon that is off and a size under the text: a footnote to the row, not a mark on it */
.ff-system-mark { margin-left: 5px; font-size: 11px; color: var(--c-quiet); cursor: help; }
.ff-mark-info { color: var(--c-info-ink); }
.ff-mark-warn { color: var(--c-warn-ink); }
/* the shield of a secured space: red, so that it is not taken for the snowflake beside it */
.ff-mark-bad { color: var(--c-bad-ink); }

/* a table whose rows are fields to fill in (a cargo space's loading units): the row is as tall as
   the field at its filter-row height plus a hair, not the 44 px a row of text gets */
.table.ff-table-fields > tbody > tr > td { height: auto; padding: 3px 6px!important; }
.table.ff-table-fields > tbody > tr > td .form-control { height: var(--h-input-sm); padding-top: 3px; padding-bottom: 3px; }

/* the first one starts its box and needs no room above it */
.ff-section-title:first-child,
.ff-doc-new .ff-section-title,
.ff-notification-own .ff-section-title { margin-top: 0; }
.ff-section-title i { margin-right: 6px; }
/* sections of tables under one another (David, 6. 11. 2026: "Blokuje jízdu", "Brzy končí", "Ostatní" of the alerts,
   "Úhrada", "Úhrady", "Dobropisy k faktuře", the blocks of a card's overview ran together): the heading of a table, or
   of the block standing for an empty one, is set off from what is above it by 30px and a hairline, and sits close over
   its own table -- the gap between the sections is three times the gap inside one. The first one of its box keeps
   neither. A heading of a group of fields (followed by fields, not a table) keeps the 18px it had: a line between the
   groups of a form cut the form up (screenshots temp/claude/ui-sections-*.png) */
.ff-section-title:not(:first-child):has(+ :is(table, .table-responsive, .empty-state)),
:is(table, .table-responsive) ~ .ff-section-title {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line);
}
.ff-section-title:has(+ :is(table, .table-responsive, .empty-state)) { margin-bottom: 8px; }
/* a block that has to be seen at a glance -- the form of a screen among its texts: the grey ground
   of the side of the stop modal (.pf-side), framed (the upload of the import, David 6. 10. 2026) */
.ff-ground { padding: 16px 20px 18px; margin-bottom: 14px; background: var(--c-head); border: 1px solid var(--c-line); border-radius: 4px; }
.ff-ground > .ff-section-title:first-child { margin-top: 0; }
.ff-ground .form-group:last-of-type { margin-bottom: 12px; }
/* a line over a table: its hint on the left, its buttons on the right, a gap before the table */
.ff-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ff-bar > .ff-form-hint { margin: 0; }
/* steps of a process told in a sentence each, the number in a circle (the import, 6. 10. 2026) */
.ff-steps { list-style: none; counter-reset: ff-step; padding: 0; margin: 0 0 14px 0; }
.ff-steps > li { counter-increment: ff-step; position: relative; padding: 2px 0 10px 34px; color: var(--c-ink); }
.ff-steps > li::before {
    content: counter(ff-step); position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; line-height: 22px; border-radius: 50%; text-align: center;
    font-size: 12px; font-weight: 600; background: var(--c-ground-soft); border: 1px solid var(--c-line-panel); color: var(--c-label);
}
.ff-check {
    position: relative;
    padding: 14px 16px 14px 19px;
    margin-bottom: 14px;
    background: var(--c-ground-soft);
    border: 1px solid var(--c-line-panel);
    border-radius: 3px;
}
.ff-check:last-child { margin-bottom: 0; }
.ff-check::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: var(--c-line-chip);
}
.ff-check-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; }
.ff-check-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 14px;
    background: var(--c-none-wash-soft);
    color: var(--c-soft);
}
.ff-check-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-ink); }
.ff-check-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    margin-left: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border-radius: 9px;
    background: var(--c-none-wash);
    /* the neutral ink of a pill: --c-soft on the grey wash was 4.23:1 at 11 px (wave 4 check) */
    color: var(--c-neutral-ink);
    vertical-align: 1px;
}
.ff-check-why { margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--c-soft); }
.ff-check-body .table { margin-bottom: 0; background: var(--c-white); }
.ff-check-body .table > thead > tr > th {
    border-top: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--c-table-head-ink);
}
.ff-check-ok { margin: 0; font-size: 12px; line-height: 1.6; color: var(--c-soft); }
.ff-check-body .table-responsive + .ff-check-ok, .ff-check-body .ff-check-ok + .ff-check-ok { margin-top: 10px; }

/* .btn-addon floats left, which drops a call to action out of a centred empty state */
.empty-state .btn-addon { float: none; display: inline-flex; }
.ff-check-ok i { margin-right: 5px; color: var(--c-ok); }
/* the morning list worked from its rows (DI-10): inline actions, folded history, one-line checks */
.ff-check-head-text { flex: 1 1 auto; }
.ff-check-sub { font-weight: 400; color: var(--c-soft); margin-left: 4px; }
.ff-check-toggle { flex: 0 0 auto; align-self: center; }
.ff-check-toggle[aria-expanded="true"] .fa-chevron-down, .ff-check-fold-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.ff-check-toggle .fa-chevron-down, .ff-check-fold-toggle .fa-chevron-down { transition: transform .15s; font-size: 10px; margin-right: 4px; }
.ff-check-summary { font-size: 13px; color: var(--c-ink); }
.ff-check-collapse { margin-top: 8px; }
.ff-check-fold { margin-top: 10px; border-top: 1px dashed var(--c-line); padding-top: 6px; }
.ff-check-fold-toggle { float: none; padding-left: 0; color: var(--c-soft); }
.ff-check-actions { white-space: nowrap; }
.ff-check-actions .ff-inline-form { display: inline-block; margin: 0 0 0 3px; }
.ff-check-actions .btn-link { padding-left: 6px; padding-right: 0; }
.ff-check-actions-col { width: 380px; }
.ff-preset-disabled { opacity: .55; cursor: not-allowed; }
.ff-check-ok i.text-muted { color: var(--c-quiet); }

.ff-check-warning::before { background: var(--c-warn); }
.ff-check-warning .ff-check-icon,
.ff-check-warning .ff-check-count { background: var(--c-warn-wash); color: var(--c-warn-ink); }

.ff-check-danger::before { background: var(--c-bad); }
.ff-check-danger .ff-check-icon,
.ff-check-danger .ff-check-count { background: var(--c-bad-wash); color: var(--c-bad-ink); }

.ff-check-clear { background: var(--c-white); }
.ff-check-clear::before { background: var(--c-ok); }
.ff-check-clear .ff-check-icon { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-check-clear .ff-check-title { font-weight: 500; color: var(--c-muted); }
/* why a check is there, as a "?" beside its title; the empty checks named in one line, each with its why (S10-07) */
.ff-check-why-tip { margin-left: 5px; font-size: 12px; cursor: help; }
.ff-check-clear-name { cursor: help; border-bottom: 1px dotted var(--c-line-strong); }
/* "Co bude dál" folded like "Jak to funguje": the steps want the room of a short column (S10-07) */
.ff-doc-new-folded .ff-howto-body { width: min(44ch, 70vw); }
.ff-doc-new-folded .ff-doc-steps { gap: 8px; }

.ff-check-info::before { background: var(--c-info); }
.ff-check-info .ff-check-icon,
.ff-check-info .ff-check-count { background: var(--c-info-wash); color: var(--c-info-ink); }

.ff-check-success::before { background: var(--c-ok); }
.ff-check-success .ff-check-icon,
.ff-check-success .ff-check-count { background: var(--c-ok-wash); color: var(--c-ok-ink); }

/* a section with nothing in it says so on its own second line and stops there -- no body, no frame
   held open around an empty state; the finance morning list has seven of these and on a good day
   six of them are clear */
.ff-check-clear .ff-check-head:last-child { margin-bottom: 0; }
.ff-check[id] { scroll-margin-top: 16px; }
/* the seven sections only read as one list if their columns line up, and auto layout spreads the
   surplus across every column instead of the one that should soak it */
.wl-grid { table-layout: fixed; }
.wl-grid > tbody > tr > td { overflow: hidden; text-overflow: ellipsis; }
.wl-grid .inline-form { display: flex; gap: 4px; justify-content: flex-end; }
.wl-grid .inline-form .form-control { min-width: 0; }

/* the document a modal is about, restated at the top of it -- the row that opened it is behind an
   overlay by then and "which invoice was this" is not a question a form should leave open */
.ff-modal-subject {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: var(--c-ground-soft);
    border: 1px solid var(--c-line-panel);
    border-radius: 3px;
}
.ff-modal-subject-main strong { margin-right: 8px; }
.ff-modal-subject-num { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-modal-subject-num small { display: block; font-size: 11px; font-weight: 400; }

.ff-promise-log { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.ff-promise-log li {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 5px 0;
    border-bottom: 1px solid var(--c-line-panel);
}
.ff-promise-log li:last-child { border-bottom: none; }
.ff-promise-log i { width: 12px; text-align: center; }
.ff-promise-date { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-promise-note { flex: 1 1 auto; min-width: 0; color: var(--c-muted); }
.ff-promise-meta { margin-left: auto; padding-left: 10px; white-space: nowrap; font-size: 11px; color: var(--c-quiet); }

/* the claim a dispute was opened on, restated before anyone writes how it ended */
.ff-dispute-open {
    padding: 10px 12px;
    margin-bottom: 16px;
    background: var(--c-warn-wash);
    border-left: 3px solid var(--c-warn);
    border-radius: 0 3px 3px 0;
}
.ff-dispute-open-head { font-size: 11px; color: var(--c-warn-ink); margin-bottom: 4px; }
.ff-dispute-open-head i { margin-right: 5px; }
.ff-dispute-open-reason { font-size: 13px; color: var(--c-ink); }

/* two actions in one cell stay on one line and keep the row height */
.wl-grid > tbody > tr > td > .btn + .btn { margin-left: 4px; }
.ff-check-body .table > tbody > tr > td small { display: block; }
.ff-check-body .table > tbody > tr > td .badge-soft + small,
.ff-check-body .table > tbody > tr > td .ff-clip + .badge-soft { margin-top: 3px; }

.ff-form-legend {
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-soft);
    border-bottom: 1px solid var(--c-line-quiet);
}
.ff-form-section + .ff-form-section { margin-top: 18px; }
.ff-form-more-toggle { display: inline-block; margin: 18px 0 12px 0; font-size: 12px; color: var(--c-soft); }
.ff-form-more-toggle:hover, .ff-form-more-toggle:focus { color: var(--c-link); text-decoration: none; }
.ff-form-more-toggle i { margin-right: 6px; transition: transform 0.15s ease; }
.ff-form-more-toggle[aria-expanded="true"] i { transform: rotate(90deg); }
/* One rule for where a hint stands (David, 21. 9. 2026: "some are stuck on, some are miles away"):
   6 px under what it belongs to, a field's 15 px above what comes next. A hundred of them are a
   <span>, on which a top margin does nothing -- those sat on the edge of their field -- so a hint is
   a block whatever its tag. One that follows a frame, a row or a field group would stand that
   thing's bottom margin away, so it is drawn up over it. */
.ff-form-hint { display: block; margin: 6px 0 15px 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-soft); }
/* a hint the page hides by the attribute stays hidden: "display: block" above outweighed the browser's [hidden], so the
   warning of a vehicle with no service interval stood after its own interval was typed (FL11-05) */
.ff-form-hint[hidden] { display: none !important; }
/* the last thing of whatever holds it: the room below is the holder's */
.ff-form-hint:last-child,
/* ... or the last but for the empty place live-form-validation keeps for the message of the field */
.ff-form-hint:has(+ span[id$="_message"]:last-child) { margin-bottom: 0; }
.ff-toggle-block + .ff-form-hint { margin-top: -8px; }
.row + .ff-form-hint,
.form-group + .ff-form-hint,
/* two hints one after another are two paragraphs of one explanation */
.ff-form-hint + .ff-form-hint { margin-top: -9px; }
/* a row before a hint keeps its floated columns to itself: in a plain block (the body of a modal) the
   hint was drawn up over the row, but its line could not stand beside the floats and slid below
   them -- 16 px under the field, not 6 (David, 22. 9. 2026). In the grid of a section a row is a
   grid item and holds its floats anyway */
.row:has(+ .ff-form-hint) { display: flow-root; }
/* ... except a row of frames, which is a flex row of its own: flow-root took its row gap away and the frames of
   a partner's roles stood on one another (David, 5. 11. 2026) */
.row.ff-toggle-row:has(+ .ff-form-hint) { display: flex; }
/* the roles of a new partner stand as far apart as the roles of a person (personRoles.latte, the frame's 14 px) */
.row.ff-toggle-row.ff-toggle-row-roles { row-gap: 14px; }
/* said by hand where the frame it belongs to is not its sibling (a half-width frame in a column of a
   row, the hint across in the column after it) */
.ff-form-hint.ff-hint-under { margin-top: -8px; }
/* ... where that thing has no bottom margin there is nothing to draw up over: a frame that stands in a
   field group or among frames side by side, a row inside a frame (its fields are the last of their
   columns) */
.form-group > .ff-toggle-block + .ff-form-hint,
.ff-toggle-row > .ff-toggle-block + .ff-form-hint,
.ff-toggle-block .row + .ff-form-hint,
/* a row inside a field group narrows the field only (half the width, its hint across, the import 6. 10.
   2026): it holds no field group and has no bottom margin */
.form-group > .row + .ff-form-hint { margin-top: 6px; }
/* a hint that closes what a box opens speaks of the whole box (what the role of a driver means), not of
   the field above it: a little further from it */
.ff-toggle-rows > .row + .ff-form-hint { margin-top: 10px; }
/* a row of frames has no bottom margin to draw up over: the rule for a row of fields (-9px) came later
   in the file and won over the toggle-row rule above, so the hint sat on the frame (David, 24. 9. 2026) */
.row.ff-toggle-row + .ff-form-hint { margin-top: 6px; }
.ff-form-hint i { margin-right: 5px; }

@media (max-width: 991px) {
    .ff-filter .ff-actions { margin-left: 0; flex-basis: 100%; }
    .ff-table-scroll { max-height: none; }
}

/* icon-only row actions: td.actions strips its padding for full-bleed .btn, which leaves bare
   icon links glued to the left edge -- this variant gives them back a hit area of their own */
.table > tbody > tr > td.actions-icons { padding: 3px 8px !important; text-align: right; white-space: nowrap; }
.actions-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 2px;
    border-radius: 4px;
    color: var(--c-muted);
    font-size: 13px;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.actions-icons a:hover, .actions-icons a:focus { background: var(--c-link-wash); color: var(--c-link); text-decoration: none; }
.actions-icons a.action-danger:hover, .actions-icons a.action-danger:focus { background: var(--c-bad-wash); color: var(--c-bad-ink); }

/* ==== fuelling listing ==== */

/* the money is what the reader came for; the groundwork behind it can be quieter */
.ff-table .ff-amount { font-size: 14px; }
.ff-table .ff-amount strong { color: var(--c-ink-strong); }
.ff-table .ff-secondary { color: var(--c-muted); }
.ff-table .ff-quiet { color: var(--c-muted); }
.ff-table .ff-time { margin-left: 4px; font-size: 11px; color: var(--c-muted); }

/* a litre well over the period's average: cheaper to spot than a drifting consumption */
.ff-table .ff-expensive { color: var(--c-warn-ink); font-weight: 600; }
.ff-table .ff-expensive .ff-unit { color: var(--c-warn-ink); }

/* a fill the position check flagged, and one that cannot measure consumption */
.ff-table .ff-row-flagged > td:first-child { box-shadow: inset 3px 0 0 var(--c-bad); }
.ff-table .ff-row-partial .ff-amount strong,
.ff-table .ff-row-partial td { color: var(--c-muted); }


/* ============================================================================
   Login
   ----------------------------------------------------------------------------
   Its own layout: this page has no sidebar, no header and exactly one thing to
   do, so it does not borrow the admin chrome. It does borrow the tokens, which
   is what it was missing -- the fields were written in var() on a page that
   never loaded tokens.css, so they had no background and no border at all.
   ========================================================================== */

body.page-login {
	min-height: 100vh;
	background: var(--c-canvas);
	color: var(--c-ink);
}

.login-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 32px 16px;
}

.login-card {
	width: 100%;
	max-width: 380px;
	padding: 30px 30px 26px 30px;
	background: var(--c-white);
	border: 1px solid var(--c-line-panel);
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(31, 41, 51, 0.10);
}

.login-brand {
	margin-bottom: 6px;
	text-align: center;
}
.login-brand-name {
	font-size: 21px;
	font-weight: var(--fw-semi);
	letter-spacing: -0.2px;
	color: var(--c-ink-strong);
}

.login-intro {
	margin: 0 0 22px 0;
	text-align: center;
	font-size: var(--fs);
	line-height: 1.5;
	color: var(--c-soft);
}

/* a blocked address in the login log: the status edge on a plain row, not a red fill with dark text on it */
.table > tbody > tr.ff-row-blocked > td:first-child { box-shadow: inset var(--edge-w) 0 0 var(--c-bad); padding-left: 16px !important; }
.table > tbody > tr.ff-row-blocked > td { vertical-align: middle; }

/* a message of the last attempt, in the card between the name and the fields */
.login-messages { display: grid; gap: 8px; margin: 12px 0 16px 0; }
.login-message { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: var(--r-btn); font-size: var(--fs); line-height: 1.45; text-align: left; background: var(--c-ok-wash); color: var(--c-ok-ink); }
.login-message > i { flex: 0 0 auto; line-height: 1.45; }
.login-message-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.login-message-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.login-message-info { background: var(--c-info-wash); color: var(--c-info-ink); }

.login-form .form-group { margin-bottom: 14px; }
.login-form label {
	display: block;
	margin-bottom: 5px;
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
	color: var(--c-soft);
}
.login-form .form-control { height: 40px; font-size: 14px; }
.login-form .help-block { margin: 4px 0 0 0; font-size: var(--fs-sm); }

/* the reveal button sits inside the field, so the field keeps its full width */
.login-password { position: relative; }
.login-password .form-control { padding-right: 40px!important; }
.login-password-toggle {
	position: absolute;
	right: 1px;
	top: 1px;
	bottom: 1px;
	width: 38px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0 var(--r) var(--r) 0;
	color: var(--c-quiet);
	font-size: 13px;
	cursor: pointer;
	transition: color 120ms;
}
.login-password-toggle:hover,
.login-password-toggle:focus { color: var(--c-soft); outline: none; }
.login-password-toggle.is-on { color: var(--c-info-ink); }

.login-form .login-submit {
	float: none;
	width: 100%;
	height: 40px;
	margin: 20px 0 0 0;
	font-size: 14px;
	font-weight: var(--fw-medium);
}

.login-link {
	display: block;
	margin-top: 16px;
	text-align: center;
	font-size: var(--fs-sm);
	color: var(--c-muted);
	text-decoration: none;
}
.login-link:hover, .login-link:focus { color: var(--c-link); text-decoration: none; }
.login-link i { margin-right: 4px; font-size: 11px; }

/* the switch sits in the corner of the window, not in the card: the card has one job.
   Two classes deep, because .theme-toggle carries the header's -4px nudge and lives in a
   stylesheet that loads after this one. */
.login-screen .login-theme-toggle {
	position: fixed;
	top: 18px;
	right: 18px;
	margin: 0;
	z-index: 2;
}

.login-footer {
	margin: 18px 0 0 0;
	font-size: var(--fs-micro);
	color: var(--c-quiet);
}
.login-footer-sep { margin: 0 5px; }


/* ============================================================================
   Dashboard
   ========================================================================== */

/* which board -- only shown to an account that may open more than one */
.db-views { display: flex; gap: 4px; margin: 10px 0 14px 0; }
/* AD19-06: "Nastavit jako výchozí" at the end of the tabs, a chip of their look */
.db-views > .db-view-default { margin-left: auto; border-style: dashed; }
.db-view {
	padding: 5px 14px;
	background-color: var(--c-ground);
	border: 1px solid var(--c-line-chip);
	border-radius: var(--r-chip);
	font-size: var(--fs-sm);
	color: var(--c-soft);
	text-decoration: none;
	transition: background-color 120ms, color 120ms, border-color 120ms;
}
.db-view:hover, .db-view:focus { background-color: var(--c-head); color: var(--c-ink); text-decoration: none; }
.db-view.is-active {
	background-color: var(--c-ok-deep);
	border-color: var(--c-ok-deep);
	color: #ffffff;
}

/* the comparison that turns a number into news */
.db-delta { margin-left: 6px; font-weight: var(--fw-semi); }
/* a figure never split at its thousands ("+113 / 324" on the cash-flow card at 1366) */
.db-delta.is-up, .db-delta.is-down { white-space: nowrap; }
/* a delta with a tooltip stands above the card's link, or the link swallows its hover (RE4-07) */
.stat-card .db-delta[data-toggle] { position: relative; z-index: 2; }
.db-delta.is-up { color: var(--c-ok-ink); }
.db-delta.is-down { color: var(--c-bad-ink); }
/* a board card's label and note wrap rather than end in "MIMO …" at 1920 px (RE3-01); the note's own link sits
   above the card's whole-card link */
.stat-card .stat-label.db-label-wrap { white-space: normal; overflow: visible; }
/* RE6-11: a board card's label is not clamped (its overflow ran over the note under it at 1366 px), and the comparison
   stands on a line of its own under it */
.stat-card .stat-label.db-label-wrap { display: block; -webkit-line-clamp: unset; line-clamp: none; }
/* the manager's board at 1366 px: "TRŽBY ZA ŘÍJEN 2026 ZÁŘÍ TÉMĚŘ BEZ TRŽEB" ran the comparison in words into the
   label -- it goes on a line of its own, in the case it is written in; and the unit "CZK bez DPH" goes under the
   number whole, never "CZK bez / DPH" */
.stat-card .stat-label.db-label-wrap > .db-delta:not(.is-up, .is-down) { display: block; margin-left: 0; text-transform: none; letter-spacing: 0; }
/* the comparison under the name keeps the weight of a note (DS12-02: the name became semibold) */
.stat-card .stat-label .db-delta { font-weight: 400; }
.stat-card .stat-label .db-delta:not(.is-up, .is-down) { color: var(--c-soft); }
/* the note after a coloured result ("(bez nedokončených přeprav)") whole on one line and in a note's weight -- at 1366 px
   its "(bez" stayed at the end of the red line and read as part of the result (W13-3 UI 3, wave 4) */
.stat-card .stat-label.db-label-wrap > .db-delta:is(.is-up, .is-down) + .text-muted { white-space: nowrap; font-weight: 400; color: var(--c-soft); }
.stat-card .stat-value:has(> small) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.stat-card .stat-value > small { min-width: 0; }
.stat-card .db-card-delta { font-size: 11px; line-height: 1.35; margin-top: 2px; }
.stat-card .db-card-delta:empty { display: none; }
.stat-card .db-card-delta .db-delta { margin-left: 0; margin-right: 6px; display: inline-block; }
.stat-card .db-card-note .db-card-badge { position: relative; z-index: 2; }
/* the money chart's switch between the day a cost arose and the books (RE6-05) */
.db-chart-head-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.db-chart-head-switch .db-chart-hint { flex: 1 1 100%; }
.db-chart-switch { display: inline-flex; border: 1px solid var(--c-line-panel); border-radius: var(--r); overflow: hidden; margin-left: auto; }
.db-chart-switch-item { padding: 2px 10px; font-size: var(--fs-micro); color: var(--c-soft); text-decoration: none; }
.db-chart-switch-item + .db-chart-switch-item { border-left: 1px solid var(--c-line-panel); }
/* RE17-07: a chart with nothing to draw says why, in its place */
.db-chart-empty { margin: 24px 0; text-align: center; }
.db-chart-switch-item:hover, .db-chart-switch-item:focus { background-color: var(--c-head); color: var(--c-ink); text-decoration: none; }
.db-chart-switch-item.is-active { background-color: var(--c-ok-deep); color: #ffffff; }
.db-chart-note { margin: 8px 0 0 0; }
/* a tile of "Co hoří" keeps whole words: the label wraps, it is never cut in the middle (RE6-11) */
.db-pending-label { overflow-wrap: break-word; min-width: 0; }
.stat-card .db-card-note { font-size: 11px; line-height: 1.35; color: var(--c-muted); margin-top: 3px; white-space: normal; }
/* the second number of the result card (RE8-01, R8-12): with all the accruals, readable, not a footnote */
.stat-card .db-card-all { font-size: 13px; color: var(--c-ink); margin-top: 2px; }
.stat-card .db-card-all strong { font-weight: 600; white-space: nowrap; }
.stat-card .db-card-note-link { position: relative; z-index: 2; color: inherit; text-decoration: underline dotted; }
/* a word with a tooltip of its own inside a line of text, e.g. "jednotka X km" under the odometer (FL6-01) */
.ff-tip-word { text-decoration: underline dotted; cursor: help; }
/* a warning label on a card wraps, it is not cut at the card's edge (RE3-04) */
.stat-card .db-card-note .badge-soft { white-space: normal; display: inline-block; margin-top: 2px; }

.db-chart .panel-body { padding: 14px 16px 16px 16px; }
.db-chart-head { margin-bottom: 10px; }
.db-chart-title {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: var(--fw-semi);
	color: var(--c-ink-strong);
}
.db-chart-hint { margin: 3px 0 0 0; font-size: var(--fs-micro); line-height: 1.5; color: var(--c-soft); }
.db-chart-canvas { position: relative; height: 260px; }

/* counts with links: the board says how many, the section says which */
.db-pending { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.db-pending-item {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 190px;
	min-width: 0;
	padding: 9px 12px;
	background-color: var(--c-ground-soft);
	border: 1px solid var(--c-line-panel);
	border-left: var(--edge-w) solid var(--c-line-chip);
	border-radius: 0 var(--r) var(--r) 0;
	color: var(--c-ink);
	text-decoration: none;
	transition: background-color 120ms;
}
.db-pending-item:hover, .db-pending-item:focus { background-color: var(--c-head); color: var(--c-ink); text-decoration: none; }
.db-pending-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: var(--r-icon);
	background: var(--c-none-wash);
	color: var(--c-soft);
	font-size: 12px;
}
.db-pending-count { font-size: var(--fs-lg); font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; }
.db-pending-label { font-size: var(--fs-sm); line-height: 1.3; color: var(--c-soft); }

.db-pending-item.db-bad { border-left-color: var(--c-bad); }
.db-pending-item.db-bad .db-pending-icon { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.db-pending-item.db-warn { border-left-color: var(--c-warn); }
.db-pending-item.db-warn .db-pending-icon { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.db-pending-item.db-info { border-left-color: var(--c-info); }
.db-pending-item.db-info .db-pending-icon { background: var(--c-info-wash); color: var(--c-info-ink); }
/* nothing waiting is not a failed state, so it is quiet rather than absent */
.db-pending-item.is-clear { border-left-color: var(--c-ok); }
.db-pending-item.is-clear .db-pending-icon { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.db-pending-item.is-clear .db-pending-count { color: var(--c-muted); }

/* the life story of a defect: reported, confirmed, put on an order, repaired -- a list that reads
   downwards, because that is the order it happened in */
.ff-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.ff-timeline::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: var(--c-line);
}
.ff-timeline li { position: relative; padding: 0 0 12px 0; font-size: var(--fs); line-height: 1.6; }
.ff-timeline li:last-child { padding-bottom: 0; }
.ff-timeline li::before {
	content: '';
	position: absolute;
	left: -18px;
	top: 8px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-white);
	border: 2px solid var(--c-info);
}
.ff-timeline strong { font-weight: var(--fw-semi); margin-right: 4px; }

/* why a vehicle cannot be planned with, drawn behind the trips (08/A). Four sources, one look --
   hatching, because a striped band reads as "not available" without competing with the trips
   themselves for attention. */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable {
	background: repeating-linear-gradient(
		135deg,
		var(--c-bad-wash),
		var(--c-bad-wash) 7px,
		transparent 7px,
		transparent 14px
	);
	border: none;
	/* vis sizes a background item by what else is in the row, so a lorry with nothing planned --
	   exactly the one parked, rented out or broken down -- drew its block 0 px high. The row is a
	   fixed height anyway (74 px, 56 compact). */
	height: 74px !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.dispatch-unavailable { height: 54px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable .vis-item-overflow { overflow: visible; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable .vis-item-content {
	font-size: 11px;
	font-weight: var(--fw-semi);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-bad-ink);
	padding: 2px 6px;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-service {
	background: repeating-linear-gradient(135deg, var(--c-warn-wash), var(--c-warn-wash) 7px, transparent 7px, transparent 14px);
}
/* the warning ink taken toward the text colour: 3.87:1 on the hatch, now over 4.5 in either theme (review r3, r4) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-service .vis-item-content { color: color-mix(in srgb, var(--c-warn-ink) 65%, var(--c-ink)); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-rental,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-manual {
	background: repeating-linear-gradient(135deg, var(--c-alt-wash), var(--c-alt-wash) 7px, transparent 7px, transparent 14px);
}
/* the driver away (sick, on holiday): the lorry stands for want of him -- upright stripes in the blue
   of the people, so it is told from a workshop visit without reading (review r6: the same ochre
   hatch, only denser) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-away {
	background: repeating-linear-gradient(90deg, var(--c-info-wash), var(--c-info-wash) 3px, transparent 3px, transparent 9px);
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-away .vis-item-content { color: color-mix(in srgb, var(--c-info-ink) 70%, var(--c-ink)); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-rental .vis-item-content,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-manual .vis-item-content { color: var(--c-alt-ink); }

/* what a delay knocks over (13/A): a list read top-down, worst first, each line a sentence the
   dispatcher can act on rather than a figure they have to interpret */
.ff-impact-list { list-style: none; margin: 0; padding: 0; }
.ff-impact {
	position: relative;
	padding: 7px 10px 7px 30px;
	margin-bottom: 6px;
	border-radius: var(--r);
	font-size: var(--fs);
	line-height: 1.5;
	background: var(--c-sunk);
	color: var(--c-ink);
}
.ff-impact:last-child { margin-bottom: 0; }
.ff-impact i { position: absolute; left: 10px; top: 9px; }
.ff-impact-info i { color: var(--c-info-ink); }
.ff-impact-warning { background: var(--c-warn-wash); }
.ff-impact-warning i { color: var(--c-warn-ink); }
.ff-impact-critical { background: var(--c-bad-wash); }
.ff-impact-critical i { color: var(--c-bad-ink); }

.td-delay-toggle { color: var(--c-soft); padding: 0 4px; }
.td-delay-toggle:hover { color: var(--c-info-ink); }

/* a trip measured against the times it agreed to (08/G). Tight is worth a glance, late is worth a
   phone call -- so late gets the whole bar and tight only its edge. */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-tight { box-shadow: inset 0 0 0 2px var(--c-warn); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-late {
	box-shadow: inset 0 0 0 2px var(--c-bad);
	background-image: linear-gradient(0deg, var(--c-bad-wash), var(--c-bad-wash));
}

/* documents and equipment running out, per the threshold their own type carries (08/E) */
.vis-labelset .group-expiry { font-weight: var(--fw-semi); }
.vis-labelset .group-expiry-warn { color: var(--c-warn-ink); }
.vis-labelset .group-expiry-bad { color: var(--c-bad-ink); }

/* the fleet map (08/F): a list that indexes and a map that answers */
.fleet-map-layout { display: flex; gap: 16px; align-items: stretch; }
.fleet-map-list { flex: 0 0 300px; max-height: 640px; display: flex; flex-direction: column; }
/* the list switched off: the map takes the whole width (David, 9. 10. 2026) */
.fleet-map-layout.is-list-hidden .fleet-map-list { display: none; }
/* every vehicle a block of its own on a sunk ground, a stripe on its edge in the colour of its marker
   -- the rows ran together between thin lines (David, 1. 10. 2026) */
.fleet-map-rows { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--c-ground); border: 1px solid var(--c-line-panel); border-radius: var(--r); }
.fleet-map-row {
	flex: 0 0 auto;
	padding: 8px 10px 8px 13px;
	background: var(--c-white);
	border: 1px solid var(--c-line-panel);
	border-radius: 6px;
	box-shadow: inset 3px 0 0 #3d4753;
	cursor: pointer;
	transition: border-color 110ms, box-shadow 110ms;
}
.fleet-map-row-moving { box-shadow: inset 3px 0 0 #2e9e5b; }
.fleet-map-row-blocked { box-shadow: inset 3px 0 0 #e53935; }
.fleet-map-row-service { box-shadow: inset 3px 0 0 #e69500; }
.fleet-map-row-unavailable { box-shadow: inset 3px 0 0 #8e63e6; }
.fleet-map-row-old { box-shadow: inset 3px 0 0 #a3acb6; }
/* the card of the lorry in focus -- under the pointer, or its marker under the pointer on the map;
   an outline, not a shadow: the shadow is the stripe of its state */
.fleet-map-row:hover,
.fleet-map-row-hover { border-color: #64748b; outline: 1px solid #64748b; outline-offset: -1px; background: var(--c-ground-soft); }
.fleet-map-row-active, .fleet-map-row-active:hover { border-color: var(--c-info); background: var(--c-info-wash); }
/* dark: the cyan of the picked row lifts the ground -- the owner "PR" was 3.76:1, the last message 4.41:1 (DS16-01) */
[data-theme="dark"] .fleet-map-row-active .fleet-map-owner:not(.is-mine) { color: #c8c1f5; }
[data-theme="dark"] .fleet-map-row-active .fleet-map-row-meta { color: var(--c-label); }
.fleet-map-row-head + .fleet-map-row-meta { margin-top: 4px; }
.fleet-map-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fleet-map-row-meta { font-size: 11px; color: var(--c-soft); line-height: 1.5; }
/* the block as the board's column (David, 9. 10. 2026): lorry and trailer as one set of plates, the
   dispatcher's initials in the corner, the crew, then the state with the speed and the age */
.fleet-map-set { display: flex; gap: 4px; min-width: 0; flex-wrap: wrap; }
.fleet-map-owner { flex: none; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-alt-wash); color: var(--c-alt-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .3px; cursor: help; align-self: flex-start; }
.fleet-map-crew { color: var(--c-ink); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.fleet-map-crew-names { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-map-crew-names > i { color: var(--c-muted); width: 16px; }
/* the driving left and the warnings as the board draws them in its column (:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-hours,
   .group-chip; David, 9. 10. 2026) */
.fleet-map-hours { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: var(--fw-semi); color: var(--c-muted); font-variant-numeric: tabular-nums; cursor: help; }
.fleet-map-hours.group-driving-warn { color: var(--c-warn-ink); }
.fleet-map-hours.group-driving-bad { color: var(--c-bad-ink); }
.fleet-map-chips { flex: none; display: inline-flex; gap: 3px; align-items: center; margin-left: auto; }
.fleet-map-chip.group-age-stale { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.fleet-map-chip.group-age-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
/* the board's third line: the town and the age of the reading, the arrow, what the lorry does */
.fleet-map-where { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; margin-top: 3px; font-size: 11px; color: var(--c-muted); cursor: help; }
.fleet-map-where > .fa-location-dot { font-size: 10px; }
.fleet-map-place { flex: none; color: var(--c-label); }
.fleet-map-ago.is-warning { color: var(--c-warn-ink); font-weight: var(--fw-semi); }
/* an old reading grey, the place with it, as the legend says "stará poloha (šedě, s hodinami)" (UI review of wave 2) */
.fleet-map-ago.is-stale { color: var(--c-muted); font-style: italic; }
.fleet-map-where:has(.fleet-map-ago.is-stale) .fleet-map-place { color: var(--c-muted); font-style: italic; }
.fleet-map-arrow { flex: none; font-size: 9px; color: var(--c-quiet); }
.fleet-map-doing { overflow: hidden; text-overflow: ellipsis; color: var(--c-ink); font-weight: var(--fw-semi); }
.fleet-map-doing.is-moving { color: var(--c-ok-ink); }
.fleet-map-doing.is-blocked { color: var(--c-bad-ink); }
.fleet-map-doing.is-service { color: var(--c-warn-ink); }
.fleet-map-doing.is-unavailable { color: #6b3fc2; }
.fleet-map-doing.is-old { color: var(--c-muted); }
.fleet-map-chip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--r-sm, 3px); background: var(--veil-soft); color: var(--c-soft); font-size: 10px; cursor: help; }
.fleet-map-chip.group-note { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.fleet-map-chip.group-away, .fleet-map-chip.group-expiry-bad, .fleet-map-chip.group-driving-bad { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.fleet-map-chip.group-expiry-warn { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.fleet-map-owner.is-mine { background: var(--c-info-wash); color: var(--c-info-ink, var(--c-info)); }
.fleet-map-row-warn { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.fleet-map-row-warn .badge-soft { cursor: help; }
.fleet-map-row-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.fleet-map-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.fleet-map-dot-ok { background: var(--c-ok); }
.fleet-map-dot-warning { background: var(--c-warn); }
.fleet-map-dot-stale { background: var(--c-bad); }
.fleet-map-canvas { flex: 1 1 auto; }
#fleet-map { width: 100%; height: 640px; border-radius: var(--r); overflow: hidden; }
/* what the lorry is doing, said in words next to the plate (DI-09); an old reading is greyed as a whole */
.fleet-map-state { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.fleet-map-state-moving { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.fleet-map-state-standing { background: var(--c-none-wash); color: var(--c-neutral-ink); }
.fleet-map-state-blocked { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.fleet-map-state-service { background: var(--c-warn-wash); color: var(--c-warn-ink, var(--c-warn)); }
.fleet-map-state-unavailable { background: #efe6ff; color: #6b3fc2; }
.fleet-map-age i { margin-right: 3px; }
.fleet-map-search { position: relative; margin: 6px 0 8px; }
.fleet-map-search > i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-size: 12px; pointer-events: none; }
/* the theme sets every field's padding with !important, and the glass sat on the first letter
   (testing, 1. 10. 2026) */
.fleet-map-search .form-control { padding-left: 28px !important; }
/* up in the bar of the filters, level with the selects beside it */
.ff-filter .fleet-map-search { margin: 0; }
.fleet-map-none, .fleet-map-nearest-msg { padding: 14px 10px; font-size: 12px; color: var(--c-soft); }
/* RE-10: our own companies in the counterparty list -- there, but not shouting */
.table > tbody > tr.cb-internal > td { color: var(--c-soft); }
.table > tbody > tr.cb-internal > td a { color: var(--c-soft); }
/* RE-09: what the map cannot draw -- readings older than a day, vehicles that never reported */
/* the old readings as a label at the right of the filters, the explanation in its tooltip */
.ff-filter .fleet-map-labels { margin-left: auto; align-self: center; display: flex; gap: 8px; }
.fleet-map-labels > a { text-decoration: none; font-size: 12px; padding: 5px 10px; }
.fleet-map-labels > a:hover { text-decoration: none; filter: brightness(0.95); }

/* ── Small screens (DS-09, RE-12) ──────────────────────────────────────────────────────────────
   Above 768 px the layout is a rail and a fixed page frame. Below it the rail goes off-canvas
   behind a hamburger in the title bar and comes back as an accordion (a tap opens a section, a
   second tap goes to its first screen); the title bar is one row and sticks; the page scrolls as
   a page; the save bar stays at the bottom; cards and pills take one column. Before this the rail
   was an empty dark strip taking 45 % of a phone, the title bar covered the first cards, and the
   save buttons broke onto three lines. */
.ff-nav-toggle { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-white); color: var(--c-label); font-size: 15px; flex: 0 0 auto; }
@media (max-width: 991px) {
	.page-content .page-inner .bottom-container { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 8px; }
	.page-content .page-inner .bottom-container .btn { margin: 0!important; white-space: nowrap; }
}
@media (max-width: 767px) {
	.page-content { display: block; width: auto; height: auto; min-height: 100vh; }
	.page-content .page-sidebar, [data-menu="columns"] .page-content .page-sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw; z-index: 1001;
		display: flex!important; opacity: 1!important; visibility: visible!important;
		overflow-y: auto; overflow-x: hidden;
		transform: translateX(-100%); transition: transform 0.2s ease-out;
	}
	body.ff-nav-open .page-content .page-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.45); }
	body.ff-nav-open .overlay { display: block; }
	body.ff-nav-open { overflow: hidden; }
	.menu.accordion-menu { width: 100%; }
	.page-content .page-sidebar .accordion-menu > li > a { display: flex; align-items: center; gap: 12px; padding: 11px 16px!important; text-align: left; }
	.page-content .page-sidebar .accordion-menu a span.menu-icon { margin: 0; width: 22px; text-align: center; font-size: 16px; }
	.page-content .page-sidebar .accordion-menu > li > a > p { font-size: 13px!important; margin: 0; }
	.page-content .page-sidebar .accordion-menu > li.droplink > a::after { content: '\25BE'; margin-left: auto; font-size: 11px; opacity: 0.55; }
	.page-content .page-sidebar .accordion-menu > li.droplink.ff-open > a::after { content: '\25B4'; }
	/* the section panel is a list under its section, not a flyout; hover means nothing here */
	.page-content .page-sidebar .accordion-menu > li > .menu-panel,
	.hover-menu .accordion-menu > li:hover > .menu-panel,
	[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li.is-current-section > .menu-panel,
	[data-menu="classic"] .page-content .page-sidebar .accordion-menu > li > .menu-panel {
		display: none; position: static; width: auto!important; max-height: none; left: auto; top: auto; bottom: auto;
		padding: 4px 12px 12px 26px; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, 0.18);
	}
	.page-content .page-sidebar .accordion-menu > li.ff-open > .menu-panel { display: block!important; }
	.page-content .page-sidebar .menu-panel-inner { column-count: 1!important; }
	[data-menu="classic"] .menu-group > .menu-group-items { display: block!important; position: static; width: auto; box-shadow: none; padding: 0; }
	[data-menu="classic"] .menu-group-title-section { display: block; }
	[data-menu="classic"] .menu-group-arrow { display: none; }
	.page-content .page-sidebar .accordion-menu .menu-link { padding: 7px 9px; font-size: 14px; }
	.page-content .page-sidebar .accordion-menu.menu-bottom { padding-top: 0; }
	[data-menu] .page-content .page-inner { margin-left: 0!important; }
	/* one-row title bar that sticks; the search is an icon, the title gives way */
	.ff-nav-toggle { display: inline-flex; }
	.page-content .page-inner { min-height: 100vh; }
	.page-content .page-inner .page-title { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; z-index: 30; }
	.page-content .page-inner .page-title h1, .page-content .page-inner .page-title h3 { flex: 1 1 auto; min-width: 0; float: none!important; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.page-content .page-inner .page-title > .pull-left.m-l-lg { margin-left: 0!important; float: none!important; }
	.page-content .page-inner .page-title > .pull-right { float: none!important; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
	.page-content .page-inner .page-title .buttons { margin-top: 0; }
	.global-search-trigger { padding: 6px 8px; }
	.global-search-trigger-label, .global-search-trigger-key { display: none; }
	/* the page scrolls as a page; the frame's absolute boxes made the title cover the first cards */
	.page-content .page-inner .content-container { position: static; overflow: visible; padding: 6px 8px 84px; }
	.page-content .page-inner .bottom-container { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; flex-wrap: wrap; overflow: visible; }
	.page-content .page-inner .bottom-container .btn { flex: 1 1 auto; }
	.stat-cards { gap: 8px; }
	.stat-card { flex-basis: 100%; min-width: 0; padding: 10px 12px; }
	.stat-card .stat-label { white-space: normal; }
	.ff-filter .ff-field { flex: 1 1 100%; width: auto!important; }
	.form-part-content { padding: 10px; }
	.nav-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
	.nav-tabs > li { float: none; flex: 0 0 auto; }
	.table-responsive { border: 0; }
}
.fleet-map-refreshed { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.fleet-map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 11px; color: var(--c-soft); }
.fleet-map-legend-item { color: inherit; text-decoration: none; padding: 1px 6px; border-radius: 10px; }
.fleet-map-legend-item:hover, .fleet-map-legend-item:focus { color: var(--c-ink); background: var(--c-ground); text-decoration: none; }
.fleet-map-legend-item.is-active { color: var(--c-ink); background: var(--c-info-wash); font-weight: 600; }
.fleet-map-legend-count { margin-left: 3px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.fleet-map-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }
.fleet-map-legend-moving { background: #2e9e5b; }
.fleet-map-legend-standing { background: #3d4753; }
.fleet-map-legend-blocked { background: #e53935; }
.fleet-map-legend-service { background: #e69500; }
.fleet-map-legend-unavailable { background: #8e63e6; }
.fleet-map-legend-old { background: #a3acb6; }

/* the lorries stand out of the map (David, 1. 10. 2026): the map's own style is toned down in
   fleet-map.js, the markers -- elements of the page above it, not paint in it -- in full colour,
   larger, with a shadow */
/* smaller at rest, a fifth larger in focus -- the pointer over it or over its card (David, 1. 10. 2026) */
/* the map positions the marker by a transform of its own element, so the growth is the svg's */
/* the shadow is the circle's box-shadow, not a filter of the marker: a filtered element moved by the
   map's transforms left smears of its shadow behind while the map was dragged (David, 1. 10. 2026) */
.fleet-map-marker { position: relative; width: 28px; height: 28px; margin: -14px 0 0 -14px; cursor: pointer; }
/* a lorry in a circle of the colour of its state (David, 1. 10. 2026) */
.fleet-map-marker-dot {
	display: flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
	color: #fff; font-size: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	transform-origin: 50% 50%; transition: transform 140ms ease-out;
}
.fleet-map-marker-clock {
	position: absolute; top: -5px; right: -5px;
	width: 14px; height: 14px; border-radius: 50%; background: #fff;
	color: #5b6573; font-size: 9px; line-height: 14px; text-align: center;
}
.fleet-map-marker:hover .fleet-map-marker-dot,
.fleet-map-marker.is-focus .fleet-map-marker-dot { transform: scale(1.2); }
.fleet-map-marker.is-focus .fleet-map-marker-dot { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }

/* back to the whole fleet: a button over the map's corner (David, 1. 10. 2026) */
.fleet-map-canvas { position: relative; }
/* the tools over the map's top right corner (David, 9. 10. 2026): nearest, traffic, today's stops, board, all */
.fleet-map-tools { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 6px; }
.fleet-map-tools .btn { float: none; margin: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
/* the wash is translucent: laid over white, or the map's labels show through the button (David, 9. 10. 2026) */
.fleet-map-tools .btn.active, .fleet-map-tools .btn.active:hover, .fleet-map-tools .btn.active:focus { background: linear-gradient(var(--c-info-wash), var(--c-info-wash)), var(--c-white); border-color: var(--c-info); color: var(--c-info-ink, var(--c-info)); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.fleet-map-pick-hint { position: absolute; top: 56px; right: 10px; z-index: 5; padding: 7px 12px; border-radius: 6px; background: var(--c-ink); color: var(--c-white); font-size: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.fleet-map-pick-hint.hidden { display: none; }
#fleet-map.is-picking, #fleet-map.is-picking * { cursor: crosshair !important; }

/* lorries close together on the screen as one bubble with their count; the ring in the colour of the
   most urgent member */
.fleet-map-cluster { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--c-white); border: 3px solid #3d4753; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--c-ink); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35); cursor: pointer; }
.fleet-map-cluster-moving { border-color: #2e9e5b; }
.fleet-map-cluster-blocked { border-color: #e53935; }
.fleet-map-cluster-service { border-color: #e69500; }
.fleet-map-cluster-unavailable { border-color: #8e63e6; }
.fleet-map-cluster-old { border-color: #a3acb6; }
.fleet-map-cluster:hover, .fleet-map-cluster.is-focus { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }

/* the place "who is nearest" measures from */
.fleet-map-target { width: 28px; height: 34px; margin: -34px 0 0 -14px; color: var(--c-bad); font-size: 30px; line-height: 34px; text-align: center; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); pointer-events: none; }

/* today's loadings and unloadings as pins, in the application's marks of a point (green up-right, red down-right); their line under the pointer */
.fleet-map-pin { position: relative; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--c-white); background: var(--c-ok); border: 2px solid var(--c-white); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); cursor: pointer; }
.fleet-map-pin-unloading { background: var(--c-bad); }
.fleet-map-pin-both { background: #7c3aed; }
.fleet-map-pin-other { background: #64748b; }
.fleet-map-pin.is-done { opacity: 0.45; }
.fleet-map-pin-label { display: none; position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--c-ink); color: var(--c-white); font-size: 11px; font-weight: 400; pointer-events: none; }
.fleet-map-pin:hover .fleet-map-pin-label { display: block; }

/* the ranking of "who is nearest" in the place of the list */
.fleet-map-nearest { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; background: var(--c-ground); border: 1px solid var(--c-line-panel); border-radius: var(--r); padding: 6px; overflow-y: auto; }
.fleet-map-nearest.hidden { display: none; }
.fleet-map-nearest-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 8px; }
.fleet-map-nearest-head .btn { float: none; margin: 0; }
/* the blocks of the list in the ranking, one under another as in the list */
.fleet-map-nearest-body { display: flex; flex-direction: column; gap: 6px; }
.fleet-map-nearest-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #1f2937; color: var(--c-white); font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; }
/* its place, the time to the point, the road and when it is free -- over the block, under a line */
.fleet-map-row-rank { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--c-line-soft); font-size: 11px; color: var(--c-soft); }
.fleet-map-rank-time { font-size: 14px; color: var(--c-ink); }
.fleet-map-rank-free { margin-left: auto; font-weight: 600; }
.fleet-map-row-rank .fleet-map-route-btn { float: none; margin: 0; padding: 1px 7px; font-size: 11px; }
.fleet-map-rank-how.is-routed { color: var(--c-ok-ink); font-weight: 600; }

/* the board mode: the map's panel over the whole screen, the filters left out */
/* margin and corners by force: the page's panel rules left a 5 px gap at the top, the dark menu showing in it (David, 9. 10. 2026) */
.panel.fleet-map-board { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; margin: 0 !important; border-radius: 0; height: 100vh; display: flex; flex-direction: column; background: var(--c-white); }
.panel.fleet-map-board > .panel-body { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
.panel.fleet-map-board .ff-filter { display: none; }
.panel.fleet-map-board .fleet-map-layout { flex: 1 1 0; min-height: 0; }
.panel.fleet-map-board .fleet-map-list { max-height: none; }
.panel.fleet-map-board .fleet-map-canvas { display: flex; flex-direction: column; }
.panel.fleet-map-board #fleet-map { flex: 1 1 auto; height: auto; }

/* one lorry in focus, the others put aside (David, 1. 10. 2026) */
/* chosen, it is alone on the map */
.fleet-map-selected .fleet-map-marker:not(.is-focus) { display: none; }
/* the time line of the chosen lorry over the foot of the map, drawn as the map's own controls are
   -- the zoom and the choice of view (David, 1. 10. 2026): white, 40 px high, 5 px corners, the
   same soft shadow, borderless 40 px buttons with grey icons, thin dividers; its foot level with the
   button of the view, 24 px from the edges as the controls are */
.fleet-map-timeline {
	position: absolute; left: 24px; right: 76px; bottom: calc(26px + var(--fm-legend-h, 24px)); z-index: 6;
	display: flex; align-items: stretch; height: 40px; padding: 0;
	background: #fff; border: 0; border-radius: 5px;
	box-shadow: 0 0 4px 0 rgba(15, 22, 33, 0.6); font-size: 12px; color: rgb(31, 36, 42);
}
.fleet-map-timeline.hidden { display: none; }
.fleet-map-timeline .hidden { display: none !important; }
.fleet-map-timeline .btn {
	float: none; margin: 0; width: 40px; height: 40px; padding: 0; flex: 0 0 40px;
	display: inline-flex; align-items: center; justify-content: center; line-height: 1;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
	color: rgba(15, 22, 33, 0.6); font-size: 13px;
}
.fleet-map-timeline .btn:hover,
.fleet-map-timeline .btn:focus { background: rgba(15, 22, 33, 0.06); color: rgb(15, 22, 33); }
.fleet-map-timeline .btn[disabled] { opacity: 0.3; background: transparent; }
.fleet-map-timeline .btn > i { line-height: 1; display: block; }
.fleet-map-timeline .fm-tl-play { border-radius: 5px 0 0 5px; border-right: 1px solid rgba(15, 22, 33, 0.12); }
.fm-tl-day { display: flex; align-items: center; justify-content: center; min-width: 100px; font-weight: 600; white-space: nowrap; }
.fm-tl-track { position: relative; flex: 1 1 auto; margin: 0 16px; border-left: 0; }
.fleet-map-timeline .fm-tl-next { border-right: 1px solid rgba(15, 22, 33, 0.12); }
.fm-tl-track .fm-tl-range { position: absolute; left: 0; right: 0; top: 13px; }
/* a thin track filled in the colour of the links up to the moment (--p, set by the script) */
.fm-tl-range {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin: 0;
	border-radius: 2px; cursor: pointer; outline: none;
	background: linear-gradient(to right, var(--c-link) var(--p, 100%), var(--c-line) var(--p, 100%));
}
.fm-tl-range::-webkit-slider-thumb {
	-webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
	background: var(--c-white); border: 2px solid var(--c-link); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.fm-tl-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--c-white); border: 2px solid var(--c-link); }
.fm-tl-scale { position: absolute; left: 0; right: 0; top: 22px; height: 12px; }
.fm-tl-scale span { position: absolute; transform: translateX(-50%); font-size: 10px; color: rgba(15, 22, 33, 0.55); }
.fm-tl-time { display: flex; align-items: center; justify-content: center; min-width: 110px; padding: 0 12px; border-left: 1px solid rgba(15, 22, 33, 0.12); font-weight: 600; white-space: nowrap; }
.fm-tl-empty { display: flex; align-items: center; flex: 1 1 auto; padding: 0 16px; color: rgba(15, 22, 33, 0.6); }

/* the lorry where it was at the moment of the time line: an outline in the accent, the time beside it */
.fleet-map-ghost { position: relative; width: 28px; height: 28px; margin: -14px 0 0 -14px; pointer-events: none; }
.fleet-map-ghost .fleet-map-marker-dot { background: var(--c-white); color: var(--c-link); border-color: var(--c-link); }
.fleet-map-ghost-label {
	position: absolute; left: 34px; top: 4px; padding: 1px 6px; border-radius: var(--r);
	background: var(--c-link); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* a stop of the chosen lorry's trip, numbered as in the card */
.fleet-map-stop-marker {
	width: 22px; height: 22px; margin: -11px 0 0 -11px;
	border-radius: 50%; border: 2px solid #fff; background: #1f2937; color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.fleet-map-stop-marker.is-next { background: var(--c-link); }
.fleet-map-stop-marker.is-done { background: #a3acb6; }

/* the chosen lorry as a card floating over the map's corner (David, 1. 10. 2026): a head with the
   plate, a body that scrolls on its own, a foot with the links */
.fleet-map-detail {
	position: absolute; top: 10px; left: 10px; z-index: 6;
	width: 380px; max-height: calc(100% - 52px);
	display: flex; flex-direction: column;
	background: var(--c-white); border: 1px solid var(--c-line-panel); border-radius: 8px;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.18);
}
.fleet-map-detail.hidden { display: none; }
.fm-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--c-line-panel); }
.fm-card-title { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.fm-card-plate { display: inline-block; margin-bottom: 3px; text-decoration: none; }
.fm-card-plate:hover, .fm-card-plate:focus { text-decoration: none; }
.fm-card-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--c-soft); padding: 0 2px; cursor: pointer; }
.fm-card-close:hover { color: var(--c-ink-strong); }
.fm-card-body { overflow-y: auto; min-height: 0; padding: 12px 14px; font-size: 12px; }
.fm-card-now { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 10px; }
.fm-card-now > i { font-size: 18px; color: var(--c-soft); }
.fm-card-alert { margin: 0 0 10px; padding: 7px 10px; border-radius: 6px; background: var(--c-bad-wash); color: var(--c-bad-ink); font-weight: 600; }
.fm-card-facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0 0 4px; }
.fm-card-facts dt { color: var(--c-soft); font-weight: 400; }
.fm-card-facts dd { margin: 0; color: var(--c-ink); }
.fm-card-section { margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--c-line-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-label); }
.fm-card-section a { text-transform: none; letter-spacing: 0; }
.fm-card-section small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fm-card-phone { margin-left: 8px; white-space: nowrap; }
.fm-card-empty { margin: 0; }
.fm-card-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--c-line-panel); }
.fm-card-foot .btn { float: none; margin: 0; }
.fleet-map-stops { list-style: none; margin: 0; padding: 0; }
.fleet-map-stop { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--c-line-soft); }
.fleet-map-stop-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #1f2937; color: #fff; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; }
.fleet-map-stop.is-next .fleet-map-stop-n { background: #2563eb; }
.fleet-map-stop.is-done .fleet-map-stop-n { background: #a3acb6; }
.fleet-map-stop.is-done .fleet-map-stop-body { color: var(--c-soft); }
.fleet-map-stop-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.fleet-map-stop-meta { font-size: 11px; color: var(--c-soft); line-height: 1.5; }
.fleet-map-detail-links { margin-top: 12px; font-size: 12px; }

/* the whole height of the window (David, 1. 10. 2026): the page has no bar at its foot, the panel
   fills the frame, the map and the list take what the filters and the bars leave */
@media (min-width: 992px) {
	.page-content .page-inner .content-container.fleet-map-page { bottom: 0; display: flex; flex-direction: column; overflow-y: auto; }
	/* a basis of 0: the height is the window's, not the list's -- 78 rows pushed the map to 4 400 px */
	.fleet-map-page > .panel { flex: 1 1 0; display: flex; flex-direction: column; min-height: 560px; margin-bottom: 0; }
	.fleet-map-page > .panel > .panel-body { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
	.fleet-map-page .fleet-map-layout { flex: 1 1 0; min-height: 0; }
	.fleet-map-page .fleet-map-list { max-height: none; min-height: 0; }
	.fleet-map-page .fleet-map-rows { flex: 1 1 auto; min-height: 0; }
	.fleet-map-page .fleet-map-canvas { display: flex; flex-direction: column; min-height: 0; }
	.fleet-map-page #fleet-map { flex: 1 1 auto; height: auto; min-height: 400px; }
}

@media (max-width: 991px) {
	.fleet-map-layout { flex-direction: column; }
	.fleet-map-list { flex: 1 1 auto; max-height: 260px; }
	#fleet-map { height: 420px; }
}

/* kilometres per country, the figure tolls and diets are both counted from (01/D) */
.ff-country-km { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ── Reporting (11/1, 11/2) ────────────────────────────────────────────────────────────────── */

/* the catalogue: one card per report, with whatever people saved over it underneath */
/* putting a defect on a service order: a wide select with its button beside the field, under the
   table (David, 30. 9. 2026) */
.ff-defect-add { margin-top: 15px; }
div.ff-defect-add { display: flex; align-items: flex-end; gap: 10px; }
div.ff-defect-add > .form-group { flex: 0 1 60%; min-width: 0; margin-bottom: 0; }
div.ff-defect-add > .btn { flex: none; }

/* the summary of a service order: boxes side by side, each a section of its own with its hint at the
   bottom -- two columns ran into each other (David, 30. 9. 2026) */
.ff-summary-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ff-summary-boxes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ff-summary-box { display: flex; flex-direction: column; padding: 4px 14px 14px; border: 1px solid var(--c-line); border-radius: 3px; background: var(--c-white); }
.ff-summary-box > .ff-section-title { margin-top: 12px; }
.ff-summary-box > .ff-summary-table { margin-bottom: 0; }
.ff-summary-box > .ff-summary-table td { padding-left: 0 !important; padding-right: 0 !important; }
.ff-summary-box > .ff-summary-table tr.ff-summary-total td { font-weight: var(--fw-semi); border-top: 1px solid var(--c-line-strong, var(--c-line)); }
.ff-summary-box > .ff-summary-field { margin-top: 18px; margin-bottom: 0; }
.ff-summary-box > .ff-form-hint { margin-top: auto; padding-top: 12px; margin-bottom: 0; }
.ff-summary-figure { font-size: 24px; font-weight: var(--fw-semi); line-height: 1.2; padding: 6px 0 10px; }
.ff-summary-figure small { font-size: 13px; font-weight: var(--fw-normal); }
.ff-summary-figure-sub { display: block; font-size: 13px; font-weight: var(--fw-medium); }
@media (max-width: 1365px) { .ff-summary-boxes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ff-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ff-report-card .panel-body { height: 100%; }
.ff-report-card h4 a { color: inherit; }
/* the whole card opens the report (RE4-12): the title's link stretched over it, views and hints lifted above */
.ff-report-card { position: relative; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.ff-report-card:hover { border-color: var(--c-link); box-shadow: 0 2px 8px rgba(51, 58, 64, 0.08); }
.ff-report-card .panel-body { display: flex; flex-direction: column; }
.ff-report-card .ff-report-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ff-report-card .ff-view-list a, .ff-report-card [data-toggle="tooltip"] { position: relative; z-index: 2; }
.ff-report-card-open { margin-top: auto; padding-top: 12px; color: var(--c-link); font-weight: var(--fw-medium); font-size: 13px; }
.ff-report-card:hover .ff-report-card-open i { transform: translateX(2px); }
.ff-report-card-open i { transition: transform .15s; }
/* Naše firmy: the name of the company, then the button to its card -- a floated button stood before the name */
.ff-own-company-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ff-own-company-title .btn { float: none; margin: 0; }
.ff-view-list { list-style: none; padding: 0; margin: 12px 0 0 0; }
.ff-view-list li { padding: 4px 0; border-top: 1px solid var(--c-line); font-size: 13px; }
.ff-view-list li small { margin-left: 6px; }

/* the report's settings folded into one line once it shows rows (RE6-16); "Upravit" at the end of the line */
.ff-report-settings-summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ff-report-settings-summary::-webkit-details-marker { display: none; }
.ff-report-settings-summary .ff-report-settings-edit { order: 99; margin-left: auto; }
.ff-report-settings[open] .ff-report-settings-summary { margin-bottom: 10px; }
/* arranging a report: the whole form is a GET, so the arrangement lands in the url */
.ff-report-form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.ff-report-form-row .form-group { margin-bottom: 4px; }
/* a select as wide as its longest choice: "Sku", "vlastní data" and "Bez interních dokladů" were cut (RE3-09) */
.ff-report-form-row .select2-container--default { width: auto !important; min-width: 100%; }
.ff-report-form-row .select2-container--default .select2-selection--single .select2-selection__rendered { padding-right: 22px !important; overflow: visible; }
.ff-report-form-row input.date-picker { width: 120px; }
.ff-report-help { margin: -6px 0 14px; }
/* the folded reconciliations under the table sit below the Total row, never pulled up under it (W14-4 review 1) */
.ff-report-help.ff-report-help-foot { margin: 10px 0 0; }
.ff-report-help summary { cursor: pointer; color: var(--c-muted); font-size: 12px; }
.ff-report-help p { margin: 6px 0 0; max-width: 900px; }
.ff-report-picker { flex: 1 1 100%; }
.ff-report-form-actions { margin-top: 12px; display: flex; gap: 8px; align-items: center; }

.ff-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-weight: var(--fw-norm);
	font-size: 12px;
	cursor: pointer;
	margin: 0;
	transition: background-color 110ms, border-color 110ms;
}
.ff-chip:hover { background: var(--c-sunk); }
.ff-chip input { margin: 0; }
.ff-chip-on { border-color: var(--c-accent); background: var(--c-info-wash); font-weight: var(--fw-semi); }

/* saved views and the actions over them */
.ff-report-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ff-report-views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ff-report-view-actions { display: flex; gap: 6px; align-items: center; }

/* the table itself: dimensions on the left, numbers right-aligned, the total line heavier */
.ff-report-table th.ff-report-period { white-space: nowrap; }
/* a metric's label wraps within about twelve characters' worth, the sort icon stays on its last line (4th review) */
.ff-report-table .ff-th-label { display: inline-block; max-width: 13em; white-space: normal; text-wrap: balance; vertical-align: bottom; }
.ff-report-table .ff-report-total-col { border-left: 2px solid var(--c-line); }
.ff-report-subhead th { font-weight: var(--fw-norm); color: var(--c-soft); padding-top: 0; }
.ff-report-total-row th { border-top: 2px solid var(--c-line); font-weight: var(--fw-semi); }
/* the subtotal of a group under its rows, with two dimensions (RE5-09) */
.ff-report-subtotal td { font-weight: var(--fw-semi); border-bottom: 1px solid var(--c-line); }
.ff-report-cell { display: inline-block; }
.ff-report-meta { margin-top: 10px; font-size: 12px; }
.ff-checkbox-inline { margin-right: 16px; font-weight: var(--fw-norm); }
.ff-report-exports { display: flex; gap: 6px; align-items: center; }
/* queued exports, waiting to be collected by a link that expires (11/5) */
.ff-report-jobs { margin-bottom: 12px; font-size: 12px; }
.ff-report-jobs ul { list-style: none; padding: 0; margin: 4px 0 0 0; }
.ff-report-jobs li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.ff-report-job-format { font-weight: var(--fw-semi); }
/* why an allocated cost sits where it sits (11/7) */
.ff-allocation-note { font-size: 11px; color: var(--c-soft); margin-top: 2px; }
.ff-allocation-note strong { color: var(--c-ink); }
.ff-report-pages { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }

/* the estimate offered above an order's costs (06b/8) */
.ff-prediction { border: 1px solid var(--c-line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; background: var(--c-sunk); }
.ff-prediction-taken { border-color: var(--c-ok); }
.ff-prediction-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ff-prediction-total { font-size: 18px; font-weight: var(--fw-semi); }
.ff-prediction-lines { margin: 10px 0 6px 0; background: transparent; }
.ff-prediction-lines td { padding: 3px 6px; border: none; font-size: 12px; }
.ff-prediction-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* the bell and what hangs off it (08/M1) */
/* the same box as its neighbours, the menu switch and the theme switch (dark.css); it was a bare icon */
.notification-bell { position: relative; margin-left: 8px; }
.notification-trigger {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 34px; height: 34px; margin-top: -4px; padding: 0; cursor: pointer;
	background-color: var(--c-ground); border: 1px solid var(--c-line-input-sm); border-radius: var(--r-btn);
	color: var(--c-muted); font-size: 14px;
	transition: background-color 150ms, color 150ms, border-color 150ms;
}
.notification-trigger:hover,
.notification-trigger:focus,
.notification-bell.open .notification-trigger { background-color: var(--c-head); border-color: var(--c-line-input); color: var(--c-soft); outline: none; }
.notification-trigger:focus-visible { box-shadow: 0 0 0 1px var(--c-info), 0 0 0 4px var(--c-focus-ring); }
/* S3-17: the background stopped, for whoever cannot fix it -- a small ⚠ on the bell's lower left corner */
.notification-ops-warning {
	position: absolute; left: -6px; bottom: -3px; width: 16px; height: 16px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center; cursor: help;
	background: var(--c-warn); color: #1f242a; font-size: 11px; box-shadow: 0 0 0 2px var(--c-white);
}
.notification-ops-warning:focus-visible { outline: 2px solid var(--c-info); outline-offset: 1px; }
/* AD4-06: the same ⚠ for whoever hid the bar until tomorrow; a click brings the bar back */
.notification-ops-warning.ff-ops-restore { border: 0; padding: 0; cursor: pointer; }
/* DS11-01: the folded bar says how many problems it holds ("⚠ 3") */
.notification-ops-warning.ff-ops-restore:has(.ff-ops-count) { width: auto; min-width: 16px; padding: 0 4px; gap: 2px; }
.notification-ops-warning .ff-ops-count { font-size: 11px; font-weight: 700; line-height: 1; }
.notification-ops-warning[hidden] { display: none; }
.notification-count {
	position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px;
	border-radius: 8px; background: var(--c-bad); color: #fff; font-size: 11px; line-height: 16px;
	font-weight: var(--fw-semi); text-align: center; box-shadow: 0 0 0 2px var(--c-white);
}
.notification-panel {
	position: absolute; right: 0; top: 100%; width: 340px; z-index: 1200;
	/* --c-paper was never a token: the panel had no ground and the notifications ran into the page (testing, 15. 9. 2026) */
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.notification-head, .notification-foot {
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 12px; font-size: 12px; font-weight: var(--fw-semi);
}
.notification-head { border-bottom: 1px solid var(--c-line); }
.notification-foot { border-top: 1px solid var(--c-line); font-weight: 400; }
.notification-list { max-height: 380px; overflow-y: auto; }
.notification-item { display: block; padding: 8px 12px; border-bottom: 1px solid var(--c-line); color: inherit; }
.notification-item:hover { background: var(--c-sunk); }
.notification-item strong { display: block; font-size: 13px; }
.notification-item span { font-size: 11px; color: var(--c-soft); white-space: pre-line; } /* the loss alarm's three lines (S15-04) */
.notification-item.notification-warning { border-left: 3px solid var(--c-warn); }
.notification-item.notification-danger { border-left: 3px solid var(--c-bad); }
/* the record was deleted since (S2-09): the line stays readable, the struck title and the note say why it opens nothing */
.notification-item.notification-gone { cursor: default; }
.notification-item.notification-gone strong { color: var(--c-soft); text-decoration: line-through; }
.notification-gone-note { display: block; font-size: 11px; font-style: normal; color: var(--c-soft); margin-top: 2px; }
.ff-notification-gone td { color: var(--c-soft); }
.notification-empty { padding: 16px 12px; text-align: center; color: var(--c-soft); font-size: 12px; }
.notification-bell.open .notification-panel { display: block; }

.ff-notification-prefs td small { display: block; color: var(--c-soft); font-size: 11px; }
.ff-notification-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
/* two ways of doing one thing, side by side (DI-14): a radio list drawn as a segmented control */
/* each segment draws its own frame, so the chosen one is framed in its own colour and not in the grey
   of the group around it (David, 30. 9. 2026) */
.ff-segmented { display: inline-flex; }
.ff-segment { margin: 0; font-weight: normal; cursor: pointer; }
.ff-segment input { position: absolute; opacity: 0; width: 0; height: 0; }
.ff-segment > span { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 13px; color: var(--c-soft); background: var(--c-white); border: 1px solid var(--c-line-strong, #ccc); margin-left: -1px; transition: background .1s, color .1s, border-color .1s; }
.ff-segment:first-child > span { margin-left: 0; border-radius: 4px 0 0 4px; }
.ff-segment:last-child > span { border-radius: 0 4px 4px 0; }
.ff-segment input:checked + span { background: var(--c-ok-deep); border-color: var(--c-ok-deep); color: #fff; z-index: 1; }
/* the ring of the keyboard outside the segment, in the link's ink (4.6 : 1 on white, light on dark): --c-accent is no
   token of the app, so the rule fell away whole and the focus showed nothing (FI8-03) */
.ff-segment input:focus-visible + span { outline: 2px solid var(--c-link); outline-offset: 2px; z-index: 2; }
.ff-carrier-block { margin-top: 4px; }
.ff-carrier-block .ff-section-title { margin-bottom: 10px; }
.ff-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; cursor: pointer; }
.ff-switch input { margin: 0; }
.ff-switch-on, .ff-switch-off { font-size: 12px; }
.ff-switch-on { color: var(--c-ok-ink); }
.ff-switch-off { color: var(--c-soft); }
.ff-switch input:checked ~ .ff-switch-off { display: none; }
.ff-switch input:not(:checked) ~ .ff-switch-on { display: none; }
.ff-notification-unread td { font-weight: var(--fw-semi); }
/* the three screens of notifications, the role matrix and the person's own settings (AD-09) */
.ff-notification-locked td { background: var(--c-surface-2, #f7f7f8); }
.ff-notification-locked .ff-switch { opacity: .6; cursor: not-allowed; }
.ff-notification-own { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line, #e5e7eb); }
.ff-notification-own .ff-section-title { margin-top: 0; }
.ff-notification-role-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ff-notification-role-pick label { margin: 0; }
.ff-notification-role-pick select { width: auto; min-width: 220px; }
.ff-notification-digest-test { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-line, #e5e7eb); }
.ff-notification-subscribers td { vertical-align: top; font-size: 12px; }
.ff-notification-subscribers .badge-soft { margin-right: 6px; }
.ff-notification-person { white-space: nowrap; }

/* the second factor, set up once (09/B) */
.ff-2fa-setup { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.ff-2fa-qr img { border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; padding: 8px; }
.ff-2fa-manual { flex: 1 1 280px; }
.ff-2fa-manual code { font-size: 14px; letter-spacing: 1px; }
.ff-backup-codes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ff-backup-codes code { font-size: 14px; letter-spacing: 1px; padding: 4px 8px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 4px; }
.login-code { text-align: center; letter-spacing: 4px; font-size: 18px; }

/* one radio choice a line at the full width (HR10-03); never div.radio -- Uniform draws that 18 px wide */
.ff-radio-row > label { display: flex; gap: 6px; align-items: baseline; margin: 0 0 4px; font-weight: var(--fw-normal); cursor: pointer; }
.ff-radio-row > label > input[type="radio"] { margin: 0; flex: none; }

/* the diff, as short as it can be while still saying what happened (01/J) */
.ff-audit-changes { display: flex; flex-direction: column; gap: 2px; }
.ff-audit-change { display: flex; align-items: baseline; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.ff-audit-column { font-weight: var(--fw-semi); min-width: 140px; color: var(--c-soft); }
/* a long label ("Datum zdanitelného plnění") wraps in its column instead of pushing its value out of line (8th review) */
.ff-audit-change > .ff-audit-column { flex: 0 0 150px; min-width: 0; }
/* the value beside its label at 1366 px too, never under it (S10-10): one grid for the entry's changes -- the label at
   most 40 % of the cell and the same for every line, then "from → to" in three columns, a single value across all three;
   a long value wraps inside its own column */
.ff-audit-changes { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 6px; row-gap: 2px; align-items: baseline; font-size: 12px; }
.ff-audit-change { display: contents; }
.ff-audit-change > * { min-width: 0; overflow-wrap: break-word; }
.ff-audit-change > .ff-audit-column { grid-column: 1; }
.ff-audit-change > .ff-audit-from { grid-column: 2; }
.ff-audit-change > i { grid-column: 3; }
.ff-audit-change > i + .ff-audit-to { grid-column: 4; }
.ff-audit-change > .ff-audit-column + :last-child { grid-column: 2 / -1; }
/* one request is one line with what it wrote to unfold (R8-7): when, who and the record stay at its top */
.ff-audit-table > tbody > tr:not(.filters) > td { vertical-align: top; }
.ff-audit-table details > summary { cursor: pointer; }
/* "Více" under a hint (HR8-06): Bootstrap's summary { display: block } took its triangle, it read as plain text */
.ff-form-hint details > summary { display: list-item; cursor: pointer; }
.ff-audit-from { color: var(--c-soft); text-decoration: line-through; }
.ff-audit-to { color: var(--c-ink); }
.ff-audit-change i { font-size: 9px; color: var(--c-soft); }
.ff-audit-part { font-size: 12px; font-weight: var(--fw-semi); color: var(--c-ink); margin-bottom: 2px; }
/* the columns as wide as their headers say, the rest to Změny: a long subject type in the filter's select or a long
   record name widened Záznam to 390 px and left the changes 230 on 1366 (wave 4); "Od" over "Do" in the narrow Kdy */
.ff-audit-table { table-layout: fixed; width: 100%!important; }
.ff-audit-table > thead > tr > th.w-40:has(> .w-30) { width: 42px; }
.ff-audit-table > tbody > tr > td { overflow-wrap: break-word; }
.ff-audit-period { display: flex; flex-direction: column; gap: 4px; }
.ff-audit-period .form-control { min-width: 0; }
/* the filters' select2 is as wide as its longest option (min-width: max-content) -- "Vše kromě zobrazení" 158 px ran
   over Záznam in the fixed layout; here it keeps to its column and clips */
.ff-audit-table > thead > tr.filters .select2-container { min-width: 0; max-width: 100%; }
.ff-audit-table .ff-clip { display: inline-block; max-width: 100%; vertical-align: bottom; }

/* the shift, handed over (13/H) */
.ff-handover-group { margin-bottom: 16px; }
.ff-handover-group h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-soft); margin: 0 0 6px 0; }
.ff-handover-group ul, .ff-handover-notes { list-style: none; padding: 0; margin: 0; }
.ff-handover-group li, .ff-handover-notes li { padding: 4px 0; border-bottom: 1px solid var(--c-line); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ff-handover-timeline { display: flex; flex-direction: column; }
.ff-handover-event { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--c-line); font-size: 12px; flex-wrap: wrap; }
.ff-handover-time { min-width: 86px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.ff-handover-type { min-width: 150px; font-weight: var(--fw-semi); }
.ff-handover-subject { display: flex; gap: 6px; align-items: baseline; }
.ff-handover-note { color: var(--c-soft); flex: 1 1 200px; }
.ff-handover-source { font-size: 11px; }

/* Zprávy s řidičem (02/F) — konverzace: naše zprávy vpravo, z kabiny vlevo. */
.ff-messages { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.ff-message { max-width: 78%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ff-line, #e3e8ec); }
.ff-message-out { align-self: flex-end; background: var(--ff-accent-soft, #e8f5f2); }
.ff-message-in { align-self: flex-start; background: var(--ff-surface-sunk, #f4f6f8); }
.ff-message-body { white-space: pre-wrap; word-break: break-word; }
.ff-message-meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ff-message-out .ff-message-meta { justify-content: flex-end; }
/* the facts under a message in quiet small words a step away from it, parted by dots (David, 30. 10. 2026) */
/* the muted ink of the theme, not the grey of an icon that is off: "Test Claude" was 2.24:1 in the dark (DS16-01) */
.ff-message .dm-meta { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(0, 0, 0, .05); gap: 0; font-size: 11px; color: var(--c-muted); }
.dm-meta > * + *::before { content: '·'; margin: 0 6px; color: var(--c-muted); }
.dm-meta i { margin-right: 4px; font-size: 10px; }
.dm-meta a { color: var(--c-muted); }
.dm-meta a:hover { color: var(--c-link); text-decoration: none; }
.dm-meta .dm-meta-read { color: var(--c-soft); }
.dm-meta .dm-meta-bad { color: var(--c-bad-ink); }
.dm-meta .dm-meta-dot { font-size: 6px; vertical-align: 2px; }
/* the state, the readers and the link only as an icon, the words in its tooltip (David, 30. 10. 2026) */
.dm-meta .dm-meta-icon { cursor: default; }
.dm-meta a.dm-meta-icon { cursor: pointer; }
.dm-meta .dm-meta-icon i { margin-right: 0; font-size: 11px; }
/* wide enough that the facts under a short message stay on one line (David, 30. 10. 2026) */
.dm-messages .ff-message { min-width: 300px; }
/* deleting in the bubble's corner, seen when the mouse is over it -- in the line it broke to a row of its own */
.ff-message { position: relative; }
.dm-meta .dm-delete { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--c-white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); opacity: 0; transition: opacity 120ms; z-index: 1; }
.dm-meta .dm-delete::before { content: none; }
.dm-meta .dm-delete i { margin: 0; font-size: 11px; }
.ff-message:hover .dm-delete, .dm-meta .dm-delete:focus { opacity: 1; }
.dm-meta .dm-delete:hover { color: var(--c-bad-ink); }
.ff-message .ff-message-body + .dm-attachments { margin-top: 8px; }
/* Zprávy řidičům in three columns as the board and the fleet map (David, 30. 10. 2026): the vehicles narrow on the
   left, the conversation in the middle, what is at hand while talking on the right -- the whole height of the window */
.dm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ff-bar-end { display: inline-flex; gap: 6px; margin-left: auto; }
/* a field at the end of a bar, its label beside it ("Stav k" over the receivables' aging) */
.ff-bar-end .ff-bar-label { margin: 0 4px 0 0; align-self: center; font-weight: normal; color: var(--c-quiet); }
/* text kept as it was typed: line breaks stay (a reminder sent before the HTML templates) */
.ff-pre-wrap { white-space: pre-wrap; }
/* the reminder's text in its preview: white, as the mail looks, on the grey ground of the block */
.ff-reminder-body { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: 3px; padding: 12px 16px; }
.dm-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr) 430px; gap: 12px; }
.dm-col { margin-bottom: 0; min-width: 0; }
.dm-col > .panel-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
/* Bootstrap's clearfix became an item of the flex column and took a gap above the first card (David, 30. 10. 2026) */
.dm-col > .panel-body::before, .dm-col > .panel-body::after { content: none; }
.dm-filters { display: flex; flex-direction: column; gap: 6px; }
.dm-filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dm-vehicles { flex: 1 1 auto; min-height: 0; }
.dm-row, .dm-row:hover, .dm-row:focus { display: block; color: inherit; text-decoration: none; }
.dm-row[hidden] { display: none; }
.dm-row-end { display: inline-flex; align-items: center; gap: 4px; flex: none; }
/* the driver first, the set under him (David, 30. 10. 2026) */
.dm-row-name { font-weight: 600; color: var(--c-ink-strong); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row-name i { color: var(--c-muted); margin-right: 2px; }
.dm-row .fleet-map-row-meta .fleet-map-set { display: inline-flex; }
.dm-who-main { font-weight: 600; }
.dm-who-none { font-size: 12px; }
.dm-link { margin-top: 2px; display: flex; }
.dm-link .form-control { font-size: 11px; flex: 1 1 auto; min-width: 0; }
.dm-link .input-group-btn { display: flex; width: auto; }
.dm-link .input-group-btn .btn { float: none; }
.dm-row-unread { box-shadow: inset 3px 0 0 var(--c-bad); }
.dm-row-last { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.dm-row-body { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row-at { flex: none; color: var(--c-muted); }
.dm-talk-head { margin-bottom: 0; flex-wrap: wrap; }
.dm-messages { flex: 1 1 auto; min-height: 0; max-height: none; }
.dm-empty { margin: auto; }
.dm-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* pictures as a chat application shows them (David, 30. 10. 2026): the bubble the width of the picture, the picture on
   top and the text under it; several as a gallery of at most four squares, the fourth with "+N" */
.ff-message.dm-message-media { width: 400px; max-width: 78%; padding: 4px; }
.dm-message-media > .ff-message-body, .dm-message-media > .dm-attachments, .dm-message-media > .ff-message-meta { padding: 0 8px; }
.dm-message-media > .ff-message-body { margin-top: 6px; }
/* the line's gap above the facts as in a message of words -- the side padding took it (David, 30. 10. 2026) */
.dm-message-media > .ff-message-meta { padding-top: 6px; padding-bottom: 4px; }
.dm-gallery { display: grid; gap: 2px; border-radius: 8px; overflow: hidden; }
.dm-gallery-2 { grid-template-columns: 1fr 1fr; }
.dm-gallery-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dm-gallery-3 > .dm-gallery-tile:first-child { grid-row: span 2; aspect-ratio: auto; }
.dm-gallery-4 { grid-template-columns: 1fr 1fr; }
.dm-gallery-tile { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--c-ground); cursor: zoom-in; }
.dm-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-gallery-1 > .dm-gallery-tile { aspect-ratio: auto; }
.dm-gallery-1 img { height: auto; max-height: 360px; }
.dm-gallery-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 28px; font-weight: 600; }
.dm-pending-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; border: 1px solid var(--c-line); flex: none; }
.dm-pending-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the viewer of a message's pictures, over the page */
.dm-viewer { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 14, 20, .92); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; }
.dm-viewer[hidden] { display: none; }
.dm-viewer-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100% - 140px); max-height: 100%; }
.dm-viewer-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; background: #fff; }
.dm-viewer-figure figcaption { color: #e6ebf0; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.dm-viewer-figure figcaption a { color: #9fd0ff; }
.dm-viewer-count { color: #9aa6b2; }
.dm-viewer-nav, .dm-viewer-close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; flex: none; }
.dm-viewer-nav:hover, .dm-viewer-close:hover { background: rgba(255, 255, 255, .24); }
.dm-viewer-close { position: absolute; top: 16px; right: 16px; }
.dm-viewer.is-single .dm-viewer-nav { visibility: hidden; }
.dm-compose { border-top: 1px solid var(--c-line-panel); padding-top: 10px; }
.dm-compose-form textarea { resize: vertical; min-height: 64px; }
.dm-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.dm-pending:empty { display: none; }
.dm-compose-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
/* the empty spans live validation puts after each control took a gap of their own, the buttons a margin -- the row
   then started and ended inside the field's edges (David, 30. 10. 2026) */
.dm-compose-bar > span:empty { display: none; }
.dm-compose-bar > .btn { margin: 0; }
.dm-compose-bar .btn-success { margin-left: auto; }
.dm-compose-hint { margin: 0; }
/* the column of what is at hand as the previews' cards on their grey (David, 30. 10. 2026): each part a card with its
   head, so they no longer run together */
.dm-col-context.panel { background: var(--c-canvas); border: 0; box-shadow: none; }
.dm-col-context > .panel-body { gap: 10px; padding: 0; }
.dm-ctx-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; flex: none; }
.dm-ctx-head { margin: 0; padding: 8px 12px; background: var(--c-table-head); border-bottom: 1px solid var(--c-line); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--c-label); }
.dm-ctx-head i { margin-right: 6px; }
.dm-ctx-body { padding: 10px 12px; margin: 0; }
.dm-ctx-card-watch { border-color: var(--c-warn); }
.dm-ctx-card-watch .dm-ctx-head { background: var(--c-warn-wash); color: var(--c-warn-ink); border-bottom-color: var(--c-warn); }
.dm-ctx-card .td-item-card { margin: 0 0 8px; }
/* a long state in the narrow panel ("zmeškáno · Brno plán pá 30.10. 13:00" at 1366 px) wraps instead of being cut by the card */
.dm-ctx-card .badge-soft { white-space: normal; }
/* the crew, the lorry and the trailer as tabs in the card's head (David, 30. 10. 2026) */
.dm-ctx-tabs { display: flex; margin: 0; padding: 0; background: var(--c-table-head); border-bottom: 1px solid var(--c-line); }
.dm-ctx-tabs::before, .dm-ctx-tabs::after { content: none; }
.dm-ctx-tabs > li { float: none; }
.dm-ctx-tabs > li > a { display: block; padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .5px; color: var(--c-muted); }
.dm-ctx-tabs > li > a:hover, .dm-ctx-tabs > li > a:focus { background: transparent; color: var(--c-ink); }
.dm-ctx-tabs > li.active > a { color: var(--c-ink-strong); border-bottom-color: var(--c-info); }
.dm-ctx-tabs > li > a i { margin-right: 6px; }
.dm-facts-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.dm-facts-reg { font-size: 16px; font-weight: 700; color: var(--c-ink-strong); }
.dm-facts-head a { color: var(--c-muted); }
.dm-facts-head a:hover { color: var(--c-link); }
.dm-facts-cargo-label { margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--c-label); }
.dm-facts-cargo + .dm-facts-cargo { margin-top: 8px; }
.dm-facts-cargo-idx { font-size: 11px; font-weight: 600; color: var(--c-muted); margin-bottom: 2px; }
.dm-ctx-tabbed > .tab-content { padding: 0; }
/* the orders the trip carries (David, 30. 10. 2026) */
/* the orders as the trip's preview cards them (td-item-card) */
.dm-orders { margin-top: 4px; }
.dm-orders > .td-item-card { margin: 0; }
.dm-orders > .td-item-card + .td-item-card { margin-top: 8px; }
.dm-order .td-item-meta .fa-chevron-right { font-size: 9px; margin: 0 2px; }
.dm-trip-route { display: inline-block; margin-top: 10px; font-size: 12px; }
/* the trip's route on a large map: the stops on the left as the trip's preview lists them, the map on the right;
   the side scrolls, the list in it does not on its own */
.dm-route-side { flex: 0 0 340px; max-height: clamp(420px, calc(100vh - 220px), 900px); overflow-y: auto; padding-right: 6px; }
.dm-route-side .td-map-list { max-height: none; overflow: visible; padding-right: 0; }
.dm-route > .td-route-map-tab { height: clamp(420px, calc(100vh - 220px), 900px); }
.dm-route-now { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #1f6fd1; }
.dm-route-key { flex: none; display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: #1f6fd1; }
.dm-route-side .dm-orders { margin-top: 10px; }
.dm-crew-head { padding-bottom: 0; }
/* the codriver and the dispatcher under the driver's facts, apart from them */
.dm-ctx-body.dm-crew-rest { margin: 10px 12px 0; padding: 8px 0 10px; border-top: 1px solid var(--c-line); }
.dm-facts-combo { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--c-line); }
/* a floated button (btn-addon) left the card's body behind it, so it sat on the card's lower edge (David, 30. 10. 2026) */
.dm-ctx-body > .btn { float: none; display: inline-block; }
.dm-ctx-body > .btn:has(> i) { display: inline-flex; }
/* where the lorry is: the map with what it does over it, the place large under it */
.dm-where-map { position: relative; display: block; cursor: zoom-in; }
.dm-where-preview { height: 150px; }
.dm-where-state { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
	background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 12px; font-weight: 600; color: var(--c-ink); }
.dm-where-state i { color: var(--c-muted); }
.dm-where-state.is-moving { background: var(--c-ok-ink, #1e8e63); color: #fff; }
.dm-where-state.is-moving i { color: #fff; }
.dm-where-facts { padding-top: 8px; }
.dm-where-place { font-size: 16px; font-weight: 700; color: var(--c-ink-strong); line-height: 1.25; }
.dm-where-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 12px; }
.dm-where-age { color: var(--c-muted); }
/* an old position is grey with a clock and a tooltip, as on the board (plachta) -- red was an alarm it is not */
.dm-where-age.is-warning, .dm-where-age.is-stale { color: var(--c-muted); font-style: italic; cursor: help; }
/* one column of labels down the whole of the wider column -- "Pohotovostní hmotnost" on one line (David, 30. 10. 2026) */
.dm-ctx-dl { grid-template-columns: 150px 1fr; }
.dm-ctx-empty { margin: 0; font-size: 12px; }
.dm-ctx-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 12px; }
.dm-point-map { height: 380px; }
/* the hours and the age of the reading in the board's colours -- they were scoped to the board (review) */
.dm-col-context .group-driving-warn { color: var(--c-warn-ink); }
.dm-col-context .group-driving-bad { color: var(--c-bad-ink); }
.dm-col-context .dg-age.is-warning { color: var(--c-warn-ink); font-weight: var(--fw-semi); }
.dm-col-context .dg-age.is-stale { color: var(--c-bad-ink); font-weight: var(--fw-semi); }
@media (min-width: 992px) {
	.page-content .page-inner .content-container.dm-page { bottom: 0; display: flex; flex-direction: column; }
	.dm-page > .dm-layout { flex: 1 1 0; min-height: 560px; }
	.dm-layout > .dm-col { display: flex; flex-direction: column; min-height: 0; }
	.dm-layout > .dm-col > .panel-body { flex: 1 1 0; }
	.dm-col-context > .panel-body { overflow-y: auto; }
}
@media (max-width: 1399px) {
	.dm-layout { grid-template-columns: 310px minmax(0, 1fr) 390px; }
}

/* History tab (02/J, 03/H) — the same colour language the dispatch timeline uses for the same
   things: driver green, codriver purple, trailer orange, vehicle blue. A reader who learned it
   on the board should not have to learn it again here. */
.ff-history-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ff-history-period { color: var(--c-soft); font-size: 12px; }
.ff-history-actions { display: flex; gap: 6px; }
.ff-history-kind-driver { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-history-kind-codriver { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-history-kind-trailer { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.ff-history-kind-vehicle { background: var(--c-info-wash); color: var(--c-info-ink); }
/* a trip in its own colour: it used to share the lorry's, and the two are what the line tells apart */
.ff-history-kind-trip { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.ff-history-kind-service { background: var(--c-none-wash); color: var(--c-neutral-ink); }

/* the history as a time line (David, 22. 9. 2026): a line down the left, a dot on it for every
   period with the symbol of its kind in the kind's ink, the period's words beside it. Newest at the
   top; an open period -- a driver still in the lorry -- is ringed in the green of "to this day" */
/* (22. 9. 2026, later the same day) the symbol sits inside the bubble and there is no line and no
   arrow: bubbles one under another, a small gap between them */
/* "ff-hist", not "ff-timeline": that name is the life story of a defect, whose line and dots came
   through onto this one */
.ff-hist { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.ff-hist-item { position: relative; padding: 0 0 8px; }
.ff-hist-item:last-child { padding-bottom: 0; }
.ff-hist-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-white); border: 2px solid var(--c-line); color: var(--c-soft); font-size: 12px; }
.ff-hist-content { flex: 1 1 auto; min-width: 0; }
/* the mark of today (David, 22. 9. 2026): a dark pill among the bubbles, where the reader stands */
.ff-hist-today { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px 8px; }
.ff-hist-today-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-ink); color: var(--c-white); font-size: 12px; }
.ff-hist-today-text { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 14px; background: var(--c-ink); color: var(--c-white); font-size: var(--fs-sm); }
.ff-hist-today-text strong { margin-right: 4px; }
/* the time between two moments: a short dotted piece of rail under the symbol, the figure beside it */
.ff-hist-gap { display: flex; align-items: center; gap: 10px; padding: 0 0 8px 8px; min-height: 26px; }
.ff-hist-gap-line { flex: none; width: 28px; height: 18px; background: repeating-linear-gradient(var(--c-quiet) 0 3px, transparent 3px 7px) no-repeat center / 2px 100%; }
/* "14 dní bez záznamu" in the colour of words, not of an icon that is off: 1,88 : 1 (light), 3,04 : 1 (dark) -- ux-lint
   of the lazy tab Historie (wave 4 of round 19) */
.ff-hist-gap-text { color: var(--c-muted); font-size: var(--fs-sm); font-style: italic; }
/* every moment is a bubble in the colour of its kind, pointing at its dot (David, 22. 9. 2026): the
   people in green, the lorry in blue, the trailer in yellow, a trip in violet, the workshop in grey.
   The colour is a kind's ink on the edge and its wash inside, the same pair the badges use */
.ff-hist-body { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 8px; border: 1px solid var(--c-line); border-left-width: 3px; background: var(--c-ground); }
.ff-hist-driver .ff-hist-dot, .ff-hist-codriver .ff-hist-dot { border-color: var(--c-ok-ink); color: var(--c-ok-ink); }
.ff-hist-driver .ff-hist-body, .ff-hist-codriver .ff-hist-body { border-color: var(--c-ok-ink); background: var(--c-ok-wash); }
.ff-hist-trailer .ff-hist-dot { border-color: var(--c-warn-ink); color: var(--c-warn-ink); }
.ff-hist-trailer .ff-hist-body { border-color: var(--c-warn-ink); background: var(--c-warn-wash); }
.ff-hist-vehicle .ff-hist-dot { border-color: var(--c-info-ink); color: var(--c-info-ink); }
.ff-hist-vehicle .ff-hist-body { border-color: var(--c-info-ink); background: var(--c-info-wash); }
.ff-hist-trip .ff-hist-dot { border-color: var(--c-alt-ink); color: var(--c-alt-ink); }
.ff-hist-trip .ff-hist-body { border-color: var(--c-alt-ink); background: var(--c-alt-wash); }
.ff-hist-service .ff-hist-body { border-color: var(--c-soft); background: var(--c-none-wash); }
/* of a person: a day off in yellow, the terms of work in green (the greens of the people are on the
   card of a vehicle, where these two never are) */
.ff-hist-absence .ff-hist-dot { border-color: var(--c-warn-ink); color: var(--c-warn-ink); }
.ff-hist-absence .ff-hist-body { border-color: var(--c-warn-ink); background: var(--c-warn-wash); }
.ff-hist-employment .ff-hist-dot { border-color: var(--c-ok-ink); color: var(--c-ok-ink); }
.ff-hist-employment .ff-hist-body { border-color: var(--c-ok-ink); background: var(--c-ok-wash); }
.ff-history-kind-absence { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.ff-history-kind-employment { background: var(--c-ok-wash); color: var(--c-ok-ink); }
/* of a lorry: bought and sold, in the blue of the vehicle (which never stands on its own card) */
.ff-hist-ownership .ff-hist-dot { border-color: var(--c-info-ink); color: var(--c-info-ink); }
.ff-hist-ownership .ff-hist-body { border-color: var(--c-info-ink); background: var(--c-info-wash); }
.ff-history-kind-ownership { background: var(--c-info-wash); color: var(--c-info-ink); }
/* of a lorry too (FL8-07): a rental in the blue of a link, an inspection in the slate of a record that reports a result */
.ff-hist-rental .ff-hist-dot { border-color: var(--c-link-ink); color: var(--c-link-ink); }
.ff-hist-rental .ff-hist-body { border-color: var(--c-link-ink); background: var(--c-link-wash); }
.ff-history-kind-rental { background: var(--c-link-wash); color: var(--c-link-ink); }
.ff-hist-inspection .ff-hist-dot { border-color: var(--c-neutral-ink); color: var(--c-neutral-ink); }
.ff-hist-inspection .ff-hist-body { border-color: var(--c-neutral-ink); background: var(--c-neutral-wash); }
.ff-history-kind-inspection { background: var(--c-neutral-wash); color: var(--c-neutral-ink); }
/* FL19-03: a fuelling and a reading of the odometer in the slate of an inspection -- records that report a state */
.ff-hist-fuelling .ff-hist-dot,
.ff-hist-odometer .ff-hist-dot { border-color: var(--c-neutral-ink); color: var(--c-neutral-ink); }
.ff-hist-fuelling .ff-hist-body,
.ff-hist-odometer .ff-hist-body { border-color: var(--c-neutral-ink); background: var(--c-neutral-wash); }
.ff-history-kind-fuelling,
.ff-history-kind-odometer { background: var(--c-neutral-wash); color: var(--c-neutral-ink); }
/* a defect in the red of a fault, a tyre in the slate of the workshop's records (FL15-02) */
.ff-hist-defect .ff-hist-dot { border-color: var(--c-bad-ink); color: var(--c-bad-ink); }
.ff-hist-defect .ff-hist-body { border-color: var(--c-bad-ink); background: var(--c-bad-wash); }
.ff-history-kind-defect { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.ff-hist-tyre .ff-hist-dot { border-color: var(--c-neutral-ink); color: var(--c-neutral-ink); }
.ff-hist-tyre .ff-hist-body { border-color: var(--c-neutral-ink); background: var(--c-neutral-wash); }
.ff-history-kind-tyre { background: var(--c-neutral-wash); color: var(--c-neutral-ink); }
.ff-hist-item.is-open .ff-hist-dot { box-shadow: 0 0 0 3px var(--c-ok-wash); }
/* the moment of leaving is the same bubble, a shade quieter */
.ff-hist-event-end .ff-hist-body { background: var(--c-white); }
.ff-hist-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 28px; padding-top: 4px; }
/* the dot on the line carries the symbol of the kind; the badge beside it needs no bullet as well */
.ff-hist .badge-soft::before { display: none; }
.ff-hist-title { font-weight: var(--fw-medium); color: var(--c-ink); }
.ff-hist-when { color: var(--c-soft); font-size: var(--fs-sm); white-space: nowrap; }
.ff-hist-open { color: var(--c-ok-ink); font-weight: var(--fw-medium); }
.ff-hist-days { color: var(--c-quiet); }
.ff-hist-detail { color: var(--c-soft); font-size: var(--fs-sm); margin-top: 2px; }
/* the hint under the line has nothing to draw up over */
.ff-hist + .ff-form-hint { margin-top: 10px; }
/* a moment says what happened before the name of the thing: "nastoupil(a) do vozidla 009 PLZEN" */
.ff-hist-verb { color: var(--c-soft); }
.ff-hist-event-end .ff-hist-dot { background: var(--c-ground); }
.ff-hist-span { color: var(--c-soft); font-size: var(--fs-sm); white-space: nowrap; }
/* the chips above the line switch a kind off and on (custom.js); one switched off is hollow */
.ff-hist-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ff-hist-filters-label { color: var(--c-soft); font-size: var(--fs-sm); margin-right: 4px; }
.ff-hist-filters .ff-chip { cursor: pointer; border: 1px solid transparent; font-size: var(--fs-sm); padding: 3px 10px; border-radius: 12px; }
.ff-hist-filters .ff-chip[aria-pressed="false"] { background: transparent; color: var(--c-soft); border-color: var(--c-line); }
.ff-hist-filters .ff-chip[aria-pressed="false"] i { color: var(--c-quiet); }
.ff-hist-item.is-filtered { display: none; }
/* a trip opens into its stops: the time, the kind, the place, the orders served there */
.ff-hist-toggle { border: 0; background: transparent; padding: 0; color: var(--c-link); font-size: var(--fs-sm); cursor: pointer; }
.ff-hist-toggle i { font-size: 10px; margin-right: 3px; transition: transform 0.15s ease; }
.ff-hist-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
/* the dates, the length and "4 zastávky" stand on the wash of their kind, not on white: 4,16 / 1,59 / 3,86 : 1 in the
   ux-lint of the lazy tab Historie (wave 4 of round 19) -- the ink of heads and of links on the grey grounds */
.ff-hist-body .ff-hist-when, .ff-hist-body .ff-hist-span, .ff-hist-body .ff-hist-days,
.ff-hist-body .ff-hist-verb, .ff-hist-body .ff-hist-detail { color: var(--c-label); }
.ff-hist-body .ff-hist-toggle { color: var(--c-link-ink); }
/* the badge in a bubble of the same colour would drown: the bubble says the kind, the badge stays for the trip and the workshop */
.ff-hist-body .badge-soft { background: var(--c-white); }
/* the route of a trip inside its bubble (David, 22. 9. 2026): a white card, the stops on a rail down
   the left with the times before it, the legs between them saying the kilometres and the driving */
.ff-hist-route { margin: 8px 0 2px; padding: 4px 12px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; font-size: var(--fs-sm); }
.ff-hist-stop { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.ff-hist-stop-when { flex: none; width: 108px; display: flex; flex-direction: column; line-height: 1.25; color: var(--c-ink); }
.ff-hist-stop-when.is-planned { color: var(--c-soft); }
.ff-hist-stop-day { font-weight: var(--fw-medium); }
.ff-hist-stop-time { font-size: 11px; color: var(--c-soft); white-space: nowrap; }
.ff-hist-stop-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-alt-wash); color: var(--c-alt-ink); font-size: 11px; }
.ff-hist-stop-what { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ff-hist-stop-type { color: var(--c-soft); white-space: nowrap; text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }
.ff-hist-stop-place { color: var(--c-ink); font-weight: var(--fw-medium); }
.ff-hist-stop-orders { flex: none; display: flex; gap: 6px; }
.ff-hist-order { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; background: var(--c-ground); border: 1px solid var(--c-line); color: var(--c-link); white-space: nowrap; }
.ff-hist-order:hover { background: var(--c-sunk); text-decoration: none; }
/* the leg: a short piece of rail under the dot of the stop before, the figures beside it */
/* a moment inside the route of a trip (the crew changing, a trailer swapped): a stop's row with the
   symbol of its kind in the colour of its kind, and the words of the moment in place of the place */
.ff-hist-moment { background: var(--c-ground); margin: 2px -12px; padding: 5px 12px; }
.ff-hist-moment .ff-hist-stop-dot { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-hist-moment-trailer .ff-hist-stop-dot { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.ff-hist-moment-vehicle .ff-hist-stop-dot { background: var(--c-info-wash); color: var(--c-info-ink); }
.ff-hist-crew { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ff-hist-crew-seat { display: inline-flex; align-items: baseline; gap: 4px; }
.ff-hist-crew-arrow { color: var(--c-quiet); }
.ff-hist-crew-nobody { color: var(--c-quiet); font-style: italic; }
.ff-hist-leg { display: flex; align-items: center; gap: 10px; padding-left: 118px; min-height: 22px; }
.ff-hist-leg-line { flex: none; width: 24px; height: 22px; background: linear-gradient(var(--c-line), var(--c-line)) no-repeat center / 2px 100%; }
/* the chip that turns the line round stands first in the row of the chips, a little apart */
.ff-hist-filters .ff-hist-order { margin-right: 8px; }
.ff-hist-filters .ff-hist-order[aria-pressed="false"] { background: transparent; color: var(--c-soft); border-color: var(--c-line); }
.ff-hist-leg-info { color: var(--c-soft); white-space: nowrap; }
.ff-hist-leg-info i { color: var(--c-quiet); margin-right: 2px; }
.ff-hist-leg-info.is-unknown { color: var(--c-quiet); font-style: italic; }

/* ---- toasts: what the application says back (S-09, DS-08) ---------------------------------- */
.ff-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 10500; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.ff-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r, 6px); background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); border-left-width: 4px; box-shadow: 0 6px 24px rgba(31, 36, 42, 0.16); font-size: 13px; line-height: 1.45; pointer-events: auto; animation: ff-toast-in 180ms ease-out; }
.ff-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 200ms, transform 200ms; }
.ff-toast-icon { font-size: 16px; margin-top: 1px; }
.ff-toast-body { flex: 1 1 auto; }
.ff-toast-close { flex: 0 0 auto; border: 0; background: transparent; color: var(--c-soft); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.ff-toast-close:hover, .ff-toast-close:focus-visible { color: var(--c-ink); }
.ff-toast-success { border-left-color: var(--c-ok); } .ff-toast-success .ff-toast-icon { color: var(--c-ok-ink); }
.ff-toast-info { border-left-color: var(--c-info); } .ff-toast-info .ff-toast-icon { color: var(--c-info-ink); }
.ff-toast-warning { border-left-color: var(--c-warn); } .ff-toast-warning .ff-toast-icon { color: var(--c-warn-ink); }
.ff-toast-danger { border-left-color: var(--c-bad); } .ff-toast-danger .ff-toast-icon { color: var(--c-bad-ink); }
@keyframes ff-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ff-toast { animation: none; } .ff-toast.is-leaving { transition: none; } }

/* a button that is doing something says so and takes no second click */
.btn.is-busy, [type=submit].is-busy { position: relative; pointer-events: none; opacity: 0.75; }
.btn.is-busy::after, [type=submit].is-busy::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ff-spin 700ms linear infinite; }
/* a button with an icon: the spinner takes the icon's place instead of being added after it, so the
   button keeps its width -- the filter button in a table head widened its column and the table jumped
   (testing, 15. 9. 2026). The glyph is hidden, not removed, and comes back when the button is free. */
.btn.is-busy:has(> i:first-child)::after { content: none; }
.btn.is-busy > i:first-child { position: relative; }
.btn.is-busy > i:first-child::before { visibility: hidden; }
.btn.is-busy > i:first-child::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ff-spin 700ms linear infinite; }
@keyframes ff-spin { to { transform: rotate(360deg); } }

/* ---- compact document header: two rows that say what it is, the rest folded, items right under (S-10 / DS-03) ---- */
.ff-doc-header .panel-body { padding-bottom: 8px; }
.ff-doc-header .form-group { margin-bottom: 10px; }
.ff-doc-header .ff-form-hint { margin-top: 2px; }

/* the customer box of an order (OB-07): the search box, the option with its town, the line under it */
.ff-customer-pick .select2-container { display: table-cell; vertical-align: middle; }
.ff-customer-pick .select2-container--default .select2-selection--single { height: 34px; border-radius: 3px 0 0 3px; border-color: var(--c-line-strong, #ccc); }
/* the box and its two icons are one control (David, 2. 10. 2026): round corners on the outer ends
   only -- the box on the left, the last icon on the right --, the borders between them shared */
/* the select2 boxes have 3px !important everywhere (line ~594); this box joins its buttons */
.input-group.ff-customer-pick .select2-container .select2-selection { border-radius: 4px 0 0 4px !important; }
.input-group.ff-customer-pick.ff-partner-locked .select2-container .select2-selection { border-radius: 4px !important; }
/* a locked field has no buttons beside it, and the box shrank to its text (received invoice, 2. 11. 2026) */
.input-group.ff-customer-pick.ff-partner-locked { display: block; }
.input-group.ff-customer-pick.ff-partner-locked > .select2-container { display: block; width: 100% !important; }
/* DS19-02: as a table the box took the width of a long name (60+ characters) and pushed the magnifier and "+" out of
   their column (order 1366 px: the column ended at 494 px, "+" at 580 px) -- every addPartnerField. A row instead:
   the box takes what the two buttons leave and clips the name, the whole of it in the card under the field */
.input-group.ff-customer-pick { display: flex; width: 100%; }
.input-group.ff-customer-pick > .select2-container { display: block; flex: 1 1 auto; width: auto !important; min-width: 0; }
.input-group.ff-customer-pick > .input-group-btn { display: block; flex: none; width: auto; }
/* "Hledat podle názvu nebo IČO…" is how the field is used, not a hint to skip: 2,85 : 1 (light) and 3,04 : 1 (dark) */
.input-group.ff-customer-pick .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--c-muted); }
.input-group.ff-customer-pick .input-group-btn > .btn { border-radius: 0; margin-left: -1px; width: 38px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.input-group.ff-customer-pick .input-group-btn > .btn > i { line-height: 1; }
/* the focus a closed modal gives back to the magnifier is not drawn for the mouse, only for the keyboard */
.input-group.ff-customer-pick .input-group-btn > .btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.input-group.ff-customer-pick .input-group-btn:last-child > .btn { border-radius: 0 4px 4px 0; }
.input-group.ff-customer-pick .input-group-btn > .btn:hover, .input-group.ff-customer-pick .input-group-btn > .btn:focus { position: relative; z-index: 2; }
.ff-customer-pick .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 32px; }
.ff-customer-pick .select2-container--default .select2-selection--single .select2-selection__arrow { height: 32px; }
.ff-customer-option { display: flex; flex-direction: column; line-height: 1.3; }
.ff-customer-option small { color: var(--c-soft); }
.ff-customer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.ff-customer-line i { margin-right: 4px; }
/* the partner picked in a partner field, as a card under it (David, 2. 10. 2026): name and the way to
   the card, the numbers, the seat and whom to ring side by side, the terms and warnings as tags */
.ff-partner-card { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-ground); font-size: 12px; line-height: 1.45; }
.ff-partner-card[hidden] { display: none; }
/* inside an opened box (the carrier of a foreign vehicle, the garage of a service order) the grey
   card ran into the tint of the box: white there */
.ff-toggle-block .ff-partner-card, .ff-choice-block .ff-partner-card { background: var(--c-white); }
.ff-partner-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ff-partner-card-name { font-size: 14px; font-weight: 600; color: var(--c-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-partner-card-link { flex: none; font-size: 12px; white-space: nowrap; }
.ff-partner-card-link i { font-size: 10px; margin-right: 2px; }
.ff-partner-card-actions { flex: none; display: inline-flex; align-items: baseline; gap: 12px; }
.ff-partner-card-unlink { background: none; border: 0; padding: 0; font-size: 12px; color: var(--c-bad-ink); cursor: pointer; white-space: nowrap; }
.ff-partner-card-unlink:hover, .ff-partner-card-unlink:focus-visible { text-decoration: underline; }
.ff-partner-card-unlink i { font-size: 10px; margin-right: 2px; }
.ff-partner-card-ids { display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--c-muted); margin-top: 2px; }
.ff-partner-card-ids strong { color: var(--c-ink); font-weight: 600; }
.ff-partner-card-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-line); }
.ff-partner-card-cols > div { display: flex; flex-direction: column; min-width: 0; }
.ff-partner-card-cols > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-partner-card-cols i { color: var(--c-muted); font-size: 11px; width: 14px; }
/* DS13-04: "Sídlo", "Kontakt" as a sentence beside the board-style tiles of the card, not in capitals */
.ff-partner-card-caption { font-size: 12px; font-weight: var(--fw-semi); color: var(--c-label); margin-bottom: 2px; }
.ff-partner-card-tags { margin-top: 8px; }
/* the partner the field holds, in its address book: the row tinted with a bar, the tick filled
   (custom.js markPartnerPickers sets .selected from the field) */
.modal[id^="modal-customersPicker-"] tbody > tr.selected > td { background-color: var(--c-info-wash) !important; }
.modal[id^="modal-customersPicker-"] tbody > tr.selected > td:first-child { box-shadow: inset 3px 0 0 var(--c-info); }
.modal[id^="modal-customersPicker-"] tbody > tr.selected .row-as-link-target { background: var(--c-info) !important; border-color: var(--c-info) !important; color: #fff !important; }
.ff-customer-sep { color: var(--c-muted); margin: 0 3px; }
.ff-modal-section { margin: 14px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-label); }

/* the suggested price of the pricing panel (OB-05): the one number the salesperson came for, and the button that makes it the price */
.od-pricing-suggest { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--c-accent); border-radius: 4px; background: var(--c-info-wash); }
.od-pricing-suggest .od-kv dd strong { font-size: 16px; }
.od-pricing-apply { margin-top: 8px; }
.od-pricing-apply .input-group { max-width: 360px; }
.od-pricing-apply .ff-form-hint { margin-top: 4px; }
.ff-doc-more { border-top: 1px solid var(--c-line); margin-top: 4px; padding-top: 4px; }
.ff-doc-more-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-label); cursor: pointer; }
.ff-doc-more-toggle:hover, .ff-doc-more-toggle:focus-visible { color: var(--c-ink); }
.ff-doc-more-toggle .fa-chevron-down { transition: transform .15s; font-size: 10px; }
.ff-doc-more-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.ff-doc-more-hint, .ff-doc-more-count { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--c-muted); }
.ff-doc-more-count { padding: 1px 7px; border-radius: 999px; background: var(--c-info-wash); color: var(--c-info-ink); font-size: 11px; }
.ff-doc-more-body { padding-top: 10px; }
.ff-doc-more-body .form-group:last-child { margin-bottom: 4px; }
/* the files of a record as boxes (David, 30. 9. 2026): a preview or an icon of the type on top, the
   name, the type, size and day under it, the buttons at the bottom */
.ff-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.ff-file-box { position: relative; display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: 3px; background: var(--c-white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ff-file-box:hover { border-color: var(--c-line-strong, var(--c-line)); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ff-file-box.ui-sortable-helper { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.ff-file-box.ui-sortable-placeholder { visibility: visible !important; border: 1px dashed var(--c-line-strong, var(--c-line)); background: var(--c-ground); }
.ff-file-preview { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--c-ground); border-bottom: 1px solid var(--c-line); color: var(--c-quiet); text-decoration: none !important; }
/* laid over the preview, not in it: a tall picture stretched the box and the whole row with it */
.ff-file-preview { overflow: hidden; }
/* a pixel over each edge, cut off by the preview: on a box a fraction of a pixel wide the picture
   was drawn that fraction narrower and the grey showed as a line on the right (David, 30. 9. 2026) */
.ff-file-photo img { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; }
.ff-file-photo { background: transparent; }
.ff-file-zoom { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.ff-file-photo:hover .ff-file-zoom, .ff-file-photo:focus .ff-file-zoom { opacity: 1; }
.ff-file-doc { flex-direction: column; gap: 8px; }
.ff-file-doc > i { font-size: 44px; }
.ff-file-doc:hover > i { color: var(--c-soft); }
.ff-file-ext { font-size: 11px; font-weight: var(--fw-semi); letter-spacing: .5px; text-transform: uppercase; color: var(--c-soft); }
.ff-file-body { padding: 8px; }
.ff-file-name { margin: 0; display: block; width: 100%; }
.ff-file-name .form-control { height: var(--h-input-sm); float: none; width: 100%; }
/* the extension as a small tag, the size and the day after it split by a dot */
.ff-file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-top: 7px; font-size: 11px; line-height: 16px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.ff-file-type { padding: 0 5px; border: 1px solid var(--c-line); border-radius: 3px; background: var(--c-ground); font-size: 10px; font-weight: var(--fw-semi); letter-spacing: .4px; color: var(--c-ink-field); }
.ff-file-date::before { content: "·"; margin-right: 6px; color: var(--c-quiet); }
/* the buttons over the top right corner of the preview, only while the box is pointed at or a
   button in it has the focus */
.ff-file-actions { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; gap: 3px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ff-file-box:hover .ff-file-actions, .ff-file-box:focus-within .ff-file-actions, .ff-file-box.ui-sortable-helper .ff-file-actions { opacity: 1; pointer-events: auto; }
.ff-file-actions .btn { width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-color: transparent; background: var(--c-white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ff-file-actions .btn:hover { background: var(--c-ground); }
.ff-file-actions .ico_move { cursor: move; }

/* a wrapper that is there only to be redrawn: it takes no box, its content lays out as before */
.ff-snippet-contents { display: contents; }
.ff-doc-summary { display: inline-flex; flex-wrap: wrap; gap: 4px 22px; align-items: flex-end; float: right; margin: 0 6px; }
.ff-kv { display: flex; flex-direction: column; min-width: 80px; }
/* DS13-04: "Trasa", "Cena přepravy" in the order's summary as a sentence (the board's rule), not in 10 px capitals */
.ff-kv-label { font-size: 12px; font-weight: var(--fw-semi); color: var(--c-label); line-height: 1.25; }
.ff-kv-value { font-size: 15px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.ff-kv-value small { font-size: 11px; font-weight: 400; color: var(--c-muted); }
.ff-kv-ok { color: var(--c-ok-ink); }
.ff-kv-bad { color: var(--c-bad-ink); }
/* an incomplete margin is amber on the card as in the listing (S9-15, OrderMarginService::look) */
.ff-kv-warn { color: var(--c-warn-ink); }
/* "fix ze skut." beside the percentage of a margin (marginCell, S9-15) */
.ff-margin-tag { color: var(--c-muted); }
.ff-kv-muted { color: var(--c-muted); font-weight: 400; }
/* the second line of a figure: the base currency of a foreign one, the trip's km beside the order's (OB3-04) */
.ff-kv-sub { font-size: 11px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-kv-label .fa-circle-info { margin-left: 4px; font-size: 9px; }
.ff-doc-new .ff-section-title { margin-top: 0; }
/* each step on a line of its own (David, 30. 9. 2026) -- side by side they ran into each other */
.ff-doc-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ff-doc-steps li { counter-increment: step; position: relative; padding-left: 30px; color: var(--c-muted); line-height: 22px; margin: 0; }
.ff-doc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-line); text-align: center; font-size: 12px; font-weight: 600; color: var(--c-muted); background: var(--c-white); }
.ff-doc-steps li.ff-doc-step-now { color: var(--c-ink); font-weight: 600; }
.ff-doc-steps li.ff-doc-step-now::before { background: var(--c-info); border-color: var(--c-info); color: #fff; }
@media (max-width: 767px) { .ff-doc-summary { float: none; display: flex; margin: 0 0 8px; } }

/* process bar of a document (S-17): the road from demand to payment, and the one next step */
/* the steps as cards in a row (David, 2. 10. 2026): done green, waiting quiet, the current one wider
   and coloured, carrying the next step -- the action, the (i) with its sentence, what stops it */
.ff-flow .panel-body { padding: 10px; }
.ff-flow-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 14px; }
.ff-flow-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 9px 10px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-white); }
/* an arrow between two cards */
.ff-flow-step:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro"; font-weight: 400; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--c-quiet); z-index: 1; }
.ff-flow-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ff-flow-dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-muted); font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.ff-flow-text { display: flex; flex-direction: column; min-width: 0; }
.ff-flow-label { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-label); line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a detail may say its parts on lines of their own (the number of the demand, its date under it) */
.ff-flow-detail { font-size: 12px; color: var(--c-muted); line-height: 1.35; white-space: pre-line; }
.ff-flow-detail a { color: var(--c-link); }

.ff-flow-todo, .ff-flow-skipped { background: var(--c-ground, #f5f7f9); border-color: transparent; }
.ff-flow-todo .ff-flow-label, .ff-flow-skipped .ff-flow-label { color: var(--c-muted); font-weight: 500; }
.ff-flow-skipped .ff-flow-dot { border-style: dashed; background: transparent; }
.ff-flow-todo .ff-flow-dot { background: transparent; }
.ff-flow-done { border-color: var(--c-ok); box-shadow: inset 3px 0 0 var(--c-ok); }
/* DS11-03: the number in white on the base teal was 2.44:1 -- the deep teal of the white-on-green chips */
.ff-flow-done .ff-flow-dot { background: var(--c-ok-deep); border-color: var(--c-ok-deep); color: #fff; }
.ff-flow-done .ff-flow-label, .ff-flow-done .ff-flow-detail { color: var(--c-ink); }
.ff-flow-now { border-color: var(--c-info); background: var(--c-info-wash); }
.ff-flow-now .ff-flow-dot { background: var(--c-info); border-color: var(--c-info); color: #fff; }
.ff-flow-now .ff-flow-label { color: var(--c-info-ink); }
.ff-flow-now .ff-flow-detail { color: var(--c-ink); }
/* the step whose card this is (docFlow.latte, $here): the wide one, carrying the next step, with the pin
   in place of its number and its name in bold (David, 5. 10. 2026; a frame with a tag and a notch, then
   a bar under it, were not liked) */
.ff-flow-here .ff-flow-label { font-weight: 700; color: var(--c-ink-strong); }
.ff-flow-here .ff-flow-dot { background: var(--c-info-ink); border-color: var(--c-info-ink); color: #ffffff; }
/* white on the bright cyan of the step in progress read 2.6:1 (1.8 / 2.3:1 dark, where the pin's cyan is bright
   too): its number is dark ink, 6:1 and more (wave 4 of the eleventh UX review) */
/* -- in light mode not on the card's own step (the wizard's current one is both): its dot is the deep teal, the number
   stays white, 6:1 (dark "1" on it read 2.6:1, wave 4 of the thirteenth UX review) */
.ff-flow-now:not(.ff-flow-bad):not(:has(.ff-flow-next-blocked)):not(.ff-flow-here) .ff-flow-dot,
[data-theme="dark"] .ff-flow-here:not(.ff-flow-bad):not(:has(.ff-flow-next-blocked)) .ff-flow-dot { color: #0f2329; }
/* on such a card the step of the card is washed in the colour of its edge, the others stand back in grey */
.ff-flow-has-here .ff-flow-step:not(.ff-flow-here) { background: var(--c-ground); }
.ff-flow-has-here .ff-flow-here { background: var(--c-white); }
.ff-flow-has-here .ff-flow-here.ff-flow-done { background: var(--c-ok-wash); }
.ff-flow-has-here .ff-flow-here.ff-flow-now { background: var(--c-info-wash); }
.ff-flow-has-here .ff-flow-here.ff-flow-bad,
.ff-flow-has-here .ff-flow-here:has(.ff-flow-next-blocked) { background: var(--c-bad-wash); }
/* a step of another card that exists is its link, the whole block */
.ff-flow-step-go { position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.ff-flow-step .ff-flow-next { position: relative; z-index: 2; }
.ff-flow-linked { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ff-flow-linked:hover { border-color: var(--c-info); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.ff-flow-bad { border-color: var(--c-bad); background: var(--c-bad-wash); }
.ff-flow-bad .ff-flow-dot { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }
.ff-flow-bad .ff-flow-label, .ff-flow-bad .ff-flow-detail { color: var(--c-bad-ink); }

/* the card with the next step takes the room it needs, the others share the rest */
.ff-flow-host { flex: 2.6 1 0; min-width: 300px; }
.ff-flow-step:has(.ff-flow-next-blocked) { border-color: var(--c-bad); background: var(--c-bad-wash); }
.ff-flow-step:has(.ff-flow-next-blocked) .ff-flow-dot { background: var(--c-bad); border-color: var(--c-bad); }
.ff-flow-step:has(.ff-flow-next-blocked) .ff-flow-label { color: var(--c-bad-ink); }
.ff-flow-next { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ff-flow-next-action { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.ff-flow-next-title { font-size: 14px; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.ff-flow-next-blocked .ff-flow-next-title { color: var(--c-bad-ink); }
.ff-flow-next-title .fa-lock { font-size: 12px; margin-right: 2px; }
.ff-flow-next-done { color: var(--c-ok-ink); }
.ff-flow-next-info { color: var(--c-muted); font-size: 13px; cursor: help; }
.ff-flow-next-blockers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ff-flow-next-caption { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-label); margin-right: 4px; }
.ff-flow-next .badge-soft { background: var(--c-white); }
/* a blocker of a sentence (FI5-02 "Jako jednu fakturu…") ran 1 600 px out of its step: it wraps inside the step */
.ff-flow-next-blockers .badge-soft { white-space: normal; max-width: 100%; text-align: left; line-height: 1.35; }
/* white on the bright cyan read 2.6:1 light and 2.3:1 dark: the deep teal in both themes, 6:1 (wave 4 of the 13th review) */
.ff-flow-btn { max-width: 100%; white-space: normal; text-align: left; background: #086a7b; border-color: #086a7b; color: #fff !important; font-weight: 600; }
.ff-flow-btn:hover, .ff-flow-btn:focus { background: #05505d; border-color: #05505d; color: #fff; }
.ff-flow-btn .fa-arrow-right { margin-left: 4px; font-size: 11px; }
.ff-flow-btn-bad { background: var(--c-bad); border-color: var(--c-bad); }
.ff-flow-btn-bad:hover, .ff-flow-btn-bad:focus { background: var(--c-bad-ink); border-color: var(--c-bad-ink); }
/* narrower than 1400: the steps stay in their order left to right (W8-3 review: "5 Úhrada" stood over 1–4 at 1366); the
   host keeps the room it needs and the bar wraps as a whole only when even that does not fit */
@media (max-width: 1399px) { .ff-flow-steps { flex-wrap: wrap; } .ff-flow-step { flex: 1 1 150px; } .ff-flow-host { flex: 2.6 1 300px; } .ff-flow-step::after { display: none; } }

/* ---- dispatch board bar (DI-04): time, lorries, search; pool folds; the board takes the rest ---- */
/* the bar over the board: one height, one corner, one border for every control in it -- buttons,
   button groups, the date, the search and the three Select2 filters used to stand 30, 32 and 34 px
   tall with square, 3 px and 4 px corners (David, 6. 10. 2026) */
.dispatch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dispatch-bar-group { display: flex; align-items: center; gap: 6px; }
.dispatch-bar-right { margin-left: auto; }
#dispatch-timeline-controls .btn,
#dispatch-timeline-controls .form-control,
#dispatch-timeline-controls .select2-container .select2-selection--single {
	height: var(--h-input-sm) !important;
	border: 1px solid var(--c-line-input-sm) !important;
	border-radius: var(--r) !important;
	font-size: var(--fs-sm) !important;
	box-shadow: none;
}
#dispatch-timeline-controls .btn { padding: 0 10px !important; line-height: calc(var(--h-input-sm) - 2px); }
#dispatch-timeline-controls .form-control { padding: 0 9px; }
#dispatch-timeline-controls .select2-container .select2-selection--single { padding: 0 !important; }
/* a group is one control: rounded outside, square where its buttons meet */
#dispatch-timeline-controls .btn-group > .btn:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; margin-left: -1px; }
#dispatch-timeline-controls .btn-group > .btn:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
#dispatch-timeline-controls .btn .badge { font-size: 10px; padding: 2px 6px; margin-left: 2px; }
.dispatch-bar-date { width: 96px !important; }
.dispatch-bar-search { position: relative; flex: 0 1 190px; min-width: 120px; }
.dispatch-bar-search > .fa-search { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--c-quiet); pointer-events: none; z-index: 2; }
.dispatch-bar-search .form-control { width: 100% !important; padding-left: 27px !important; }
.dispatch-bar-count { font-size: var(--fs-micro); color: var(--c-muted); font-variant-numeric: tabular-nums; min-width: 0; white-space: nowrap; }
/* the search box shows where the typing goes, as the day boxes do (review r3, r4) */
.dispatch-bar-search .form-control:focus { border-color: var(--c-info) !important; box-shadow: 0 0 0 2px rgba(18, 175, 203, .25) !important; outline: none; }
.dispatch-bar-count:empty { display: none; }
/* "nic ve filtru — hledat u všech" whole, under the box: in the bar it was cut to "hl…" behind the next
   filter (review r12, Jana) */
.dispatch-bar-count.is-wide { position: absolute; left: 0; top: 100%; margin-top: 3px; z-index: 6; padding: 3px 8px; background: var(--c-white); border: 1px solid var(--c-line-panel); border-radius: var(--r); box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, .12)); font-size: var(--fs-sm); }
.dispatch-bar-count.is-wide a { font-weight: var(--fw-semi); }
/* placed over the left column by the script: it may wrap there instead of running over the days (review r14, Radek) */
.dispatch-bar-count.is-wide { white-space: normal; }
/* Select2 measured its width from the option and drew the arrow over the text */
#dispatch-timeline-controls .select2-container { width: auto !important; min-width: 104px; max-width: 150px; }
#dispatch-timeline-controls .select2-selection--single .select2-selection__rendered { line-height: calc(var(--h-input-sm) - 2px) !important; padding-left: 9px !important; padding-right: 24px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dispatch-timeline-controls .select2-selection--single .select2-selection__arrow { height: calc(var(--h-input-sm) - 2px) !important; right: 4px !important; }

/* the edge between the board and the pool: what is below, a fold, and a handle to drag */
.dispatch-pool-bar {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 26px;
	padding: 0 8px;
	/* the grey of a table head, with its edge: the red line above it is gone (David, 6. 10. 2026) */
	border-top: 1px solid var(--c-table-head-edge);
	border-bottom: 1px solid var(--c-table-head-line);
	background: var(--c-table-head);
	cursor: row-resize;
	user-select: none;
	touch-action: none;
}
.dispatch-pool-bar:focus-visible { outline: 2px solid var(--c-info); outline-offset: -2px; }
.dispatch-pool-bar.is-dragging { background: var(--c-bad-wash); }
.dispatch-pool-bar-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: none;
	padding: 0 4px;
	color: var(--c-table-head-ink);
	font-size: var(--fs-sm);
	cursor: pointer;
}
/* "Nepřiřazené (10)": plain words, the count in brackets (David, 6. 10. 2026) */
.dispatch-pool-bar-toggle { gap: 4px; }
/* the pool's orders outside the days on screen, a link that takes the board there (review r11, Klára) */
/* the board's links in the application's action colour, not Bootstrap's blue (review r13, Klára) */
.dispatch-pool-outside { font-size: var(--fs-sm); color: var(--c-ok-ink); margin-left: 2px; white-space: nowrap; }
.dispatch-pool-outside i { font-size: 10px; margin-right: 3px; }
.dispatch-pool-outside:hover, .dispatch-pool-outside:focus { color: var(--c-ok-ink); text-decoration: underline; }
.dispatch-bar-count a { color: var(--c-ok-ink); }
.dispatch-bar-count a:hover { color: var(--c-ok-ink); text-decoration: underline; }
.dispatch-pool-chevron { font-size: 10px; transition: transform .15s; }
#dispatch-pool-toggle[aria-expanded="false"] .dispatch-pool-chevron { transform: rotate(-90deg); }
/* the handle itself: three short lines in the middle of the edge */
.dispatch-pool-bar-grip { flex: 0 0 36px; height: 8px; margin: 0 auto; border-top: 2px solid var(--c-table-head-muted); border-bottom: 2px solid var(--c-table-head-muted); opacity: .7; }
.dispatch-pool-bar:hover .dispatch-pool-bar-grip { opacity: 1; }
#dispatch-pool.dispatch-pool-collapsed { display: none; }

/* ==== plachta: the board itself (review r1, 6. 10. 2026) ==== */
/* a filter that is on says so -- after a reload the box read "všichni" over a filtered board */
#dispatch-timeline-controls .select2-container.dispatch-filter-on .select2-selection--single { border-color: var(--c-info) !important; background: var(--c-info-wash); }
#dispatch-timeline-controls .select2-container.dispatch-filter-on .select2-selection__rendered { color: var(--c-ink-strong, #1f242a); font-weight: var(--fw-semi); }

/* a block lies under the trips: the trip on a parked lorry could not be taken, opened or dragged
   away, because the hatch caught every click; its word goes to the bottom edge, off the trip's line */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable { pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable .vis-item-content { position: absolute; left: 0; bottom: 1px; top: auto; }

/* hover is lighter, selected has a ring -- they were the same dark green */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order { background-color: #0f6e5f; border-color: #0b5348; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order:hover { background-color: #13806e; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.vis-selected { background-color: #0f6e5f; outline: 2px solid var(--c-info); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(18, 175, 203, .25); z-index: 6 !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip:hover { border-color: rgba(20, 140, 120, 0.9); }
#dispatch-pool .vis-item.timeline-pool-order { background-color: #b03a2e; }
#dispatch-pool .vis-item.timeline-pool-order.vis-selected { outline: 2px solid var(--c-info); outline-offset: 1px; }
/* an order nobody planned whose loading has already passed */
#dispatch-pool .vis-item.timeline-pool-order.is-overdue { background-color: #7b241c; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 6px, transparent 6px 12px); }
/* the order's own line starts under the trip's line, with a pixel between them */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order { top: 19px !important; height: 40px !important; }
/* the trip's own line ends at 13 px and the orders start at 18 -- it ran 2 px under them (review r2) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .trip-label { top: 1px; line-height: 12px; height: 12px; }
/* two lines in 36 px: the number and customer at 11, the route at 11 too (nothing under 11 px, twelfth review) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order .vis-item-content { line-height: 13px; padding: 4px 6px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order small { font-size: 11px; }
#dispatch-pool .vis-item.timeline-pool-order .vis-item-content { line-height: 13px; }
#dispatch-pool .vis-item.timeline-pool-order small { color: rgba(255, 255, 255, .88); opacity: 1; font-size: 11px; }
/* a narrow bar keeps its number, not the customer */
.vis-item.timeline-order.is-narrow .order-customer,
.vis-item.timeline-order.is-narrow small { display: none; }
.vis-item.timeline-order.is-narrow .vis-item-content { padding: 1px 3px; }
/* orders on a trip at the same time, each in its lane (a collection run, review r7) -- one line each */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-2 { height: 19px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-2.order-lane-1 { top: 40px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-3 { height: 13px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-3.order-lane-1 { top: 33px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-3.order-lane-2 { top: 47px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order.order-lanes-2 { height: 14px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order.order-lanes-2.order-lane-1 { top: 33px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order.order-lanes-3 { height: 9px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order.order-lanes-3.order-lane-1 { top: 28px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order.order-lanes-3.order-lane-2 { top: 38px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order[class*="order-lanes-"] small,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order[class*="order-lanes-"] br { display: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order[class*="order-lanes-"] .vis-item-content { padding-top: 1px; padding-bottom: 0; line-height: 16px; font-size: 11px; }
/* not under 11 px anywhere on the plachta (wave 3 of the twelfth review): a lane of three is 13 px high, one line fits */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-order.order-lanes-3 .vis-item-content { line-height: 12px; font-size: 11px; }
/* a bar too narrow for its number (one shape, "#0093", .on-num) says it beside itself where the row is free to the right
   (dispatch-timeline.js markBesideNumbers); otherwise only its tooltip does -- the bar stays at least 6 px, never a dot */
.vis-item.timeline-order > .on-beside {
	position: absolute; left: calc(100% + 3px); top: 50%; transform: translateY(-50%); z-index: 2;
	padding: 0 3px; border-radius: 3px; background: var(--c-white);
	color: var(--c-ink); font-size: 11px; font-weight: 600; line-height: 14px; white-space: nowrap; pointer-events: none;
}
.vis-item.timeline-order[class*="order-lanes-"] > .on-beside { font-size: 11px; line-height: 12px; }
/* a narrow trip keeps its number, a very narrow one says nothing -- "#1…" (review r9, Radek) */
.vis-item.timeline-trip.is-narrow .tl-rest { display: none; }
.vis-item.timeline-trip.is-nano .trip-label { visibility: hidden; }
/* narrower still: the short number whole, without the part -- "08 ·" and "1(" were cut (review r9) */
.vis-item.timeline-order.is-micro .on-part { display: none; }
.vis-item.timeline-order.is-nano .vis-item-content { visibility: hidden; }
/* a very short order or trip stays a bar, only never thinner than 6 px -- the tooltip says what it is
   (David, 4. 11. 2026: a bar, not the dot of DS3-04) */
:is(#dispatch-timeline, #dispatch-pool) .vis-item.vis-range:is(.timeline-trip, .timeline-order) { min-width: 6px; }

/* the weekend at home: a house on the edge between Friday and Saturday, quiet until the row is under
   the mouse or the weekend is marked; a marked weekend is a green wash over Saturday and Sunday */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; z-index: 7 !important; cursor: pointer; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home .vis-dot { display: none !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home .vis-item-content {
	position: relative; left: -11px; top: 40px; width: 20px; height: 20px; padding: 0 !important; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 11px;
	background: var(--c-white, #fff); color: var(--c-muted); border: 1px solid var(--c-line-input-sm, #c8ccd2); box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
	opacity: 0; transition: opacity .1s;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group:hover .vis-item.timeline-home .vis-item-content,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home:hover .vis-item-content { opacity: 1; color: var(--home-weekend); border-color: currentColor; }
/* a marked weekend says so by its orange and "DOMA"; its house only under the mouse, as an unmarked
   one -- it sat over the trip's words ("Praha⌂amburg", review r6) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home.is-home .vis-item-content { opacity: 0; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group:hover .vis-item.timeline-home.is-home .vis-item-content,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-home.is-home:hover .vis-item-content { opacity: 1; background: var(--home-weekend); border-color: var(--home-weekend); color: #fff; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-home .vis-item-content { top: 31px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.vis-background.dispatch-home-weekend { background: transparent; height: 74px !important; pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.vis-background.dispatch-home-weekend { height: 54px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-home-weekend .vis-item-content { display: none; }
/* the frame drawn over the trips (dispatch-timeline.js, drawHomeFrames) */
/* a saturated orange wash, no frame: "careful, the driver wants to be home" at a glance (David, 6. 10. 2026) */
:root { --home-weekend: #e8650c; }
[data-theme="dark"] { --home-weekend: #ff8a3d; }
.dispatch-home-overlay { position: absolute; overflow: hidden; pointer-events: none; z-index: 6; }
.dispatch-home-frame { position: absolute; background: color-mix(in srgb, var(--home-weekend) 26%, transparent); }
.dispatch-home-frame span { position: absolute; right: 3px; bottom: 2px; padding: 0 5px; border-radius: var(--r); background: var(--home-weekend); color: #fff; font-size: 10px; font-weight: var(--fw-semi); line-height: 15px; text-transform: uppercase; letter-spacing: .04em; }
.dispatch-home-frame span i { font-size: 9px; margin-right: 2px; }

/* where the lorry is on a day: a row of boxes under the day heads (David, 6. 10. 2026) */
/* flex-shrink: the board's column squeezed the row to 1-20 px, and at 1440 px it was gone (plachta review r4) */
.dispatch-day-filters { position: relative; flex-shrink: 0; height: 28px; margin-top: 4px; border: 1px solid var(--c-table-head-line); border-bottom: 0; background: var(--c-table-head); }
.dispatch-day-filters-label { color: var(--c-table-head-ink) !important; }
.dispatch-day-filters.is-active { background: var(--c-info-wash); }
/* the strip's switch in the bar (DS4-11): a condition on, folded or not, is said by the frame and the count */
#dispatch-day-filters-toggle.is-active { border-color: var(--c-info); color: var(--c-info-ink); background-color: var(--c-info-wash); }
#dispatch-day-filters-toggle.is-active .badge { background-color: var(--c-info-ink); color: var(--c-white); }
#dispatch-day-filters-toggle .badge { margin-left: 5px; }
#dispatch-day-filters-toggle .badge:empty { display: none; }
.dispatch-day-filters-label { position: absolute; left: 0; top: 0; bottom: 0; width: 160px; display: flex; align-items: center; gap: 5px; padding: 0 8px; font-size: var(--fs-micro); font-weight: var(--fw-semi); color: var(--c-muted); white-space: nowrap; }
.dispatch-day-filters-label #dispatch-day-filters-count { color: var(--c-info-ink, #1d6fa5); overflow: hidden; text-overflow: ellipsis; }
.dispatch-day-filters-label #dispatch-day-filters-count.is-empty { color: var(--c-bad-ink); }
.dispatch-day-filters-clear { margin-left: auto; border: 0; background: none; padding: 0 2px; color: var(--c-muted); cursor: pointer; }
.dispatch-day-filters-inputs { position: absolute; top: 0; bottom: 0; right: 0; overflow: hidden; }
/* one day: the "free" tick, the house under a Saturday, and the box for the place */
.dispatch-day-cell { position: absolute; top: 3px; height: 22px; display: flex; align-items: center; gap: 2px; }
.dispatch-day-free, .dispatch-day-home { flex: 0 0 20px; height: 20px; padding: 0; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--c-table-head-muted); font-size: 13px; line-height: 18px; cursor: pointer; }
/* the "free" tick is a box that looks like one: white, framed, a check when on (David, 6. 10. 2026) */
.dispatch-day-free { flex: 0 0 16px; width: 16px; height: 16px; margin: 0 2px; background: var(--c-white, #fff); border-color: var(--c-line-input); font-size: 10px; line-height: 14px; color: #fff; }
.dispatch-day-free.is-on { background: var(--c-info); border-color: var(--c-info); color: #fff; }
.dispatch-day-free:hover { border-color: var(--c-muted); }
.dispatch-day-home:hover { color: var(--c-ink); background: var(--c-white, #fff); border-color: var(--c-line-input-sm); }
.dispatch-day-home.is-on { color: var(--c-info-ink, #1d6fa5); background: var(--c-white, #fff); border-color: var(--c-info); }
.dispatch-day-home.is-no { color: var(--c-bad-ink); border-color: currentColor; }
.dispatch-day-filter { flex: 1 1 auto; min-width: 0; height: 22px; padding: 0 5px; font-size: 11px; border: 1px solid var(--c-line-input); border-radius: var(--r); background: var(--c-white, #fff); color: var(--c-ink); }
/* readable: the quiet grey was 1.9:1 (review r4) */
.dispatch-day-filter::placeholder { color: var(--c-muted); }
/* at 1366 px a day of two weeks is 63 px: the box got 43 px, beside the house of a Saturday 23 px, and "Kde…" was
   "Kd" (wave 4). The house and the gaps give a little, and a box being typed into, or holding a place, opens over
   the next day so the place can be read */
.dispatch-day-cell .dispatch-day-home { flex-basis: 16px; }
.dispatch-day-filter { padding: 0 4px; }
.dispatch-day-filter:focus,
.dispatch-day-filter.has-value:hover { flex: 0 0 auto; width: 120px; position: relative; z-index: 3; }
/* a day the filter is on */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.vis-background.dispatch-day-filtered { background: var(--c-info-wash); pointer-events: none; }
/* a day filter that matches nothing: the board dimmed, the answer over it (review r5) */
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-filter-empty .vis-panel.vis-center,
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-filter-empty .vis-panel.vis-background,
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-filter-empty .vis-panel.vis-left { opacity: .25; } /* the weekends at home too (review r6) */
.dispatch-filter-empty-note { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 20; max-width: 520px; padding: 16px 20px; text-align: center;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.dispatch-filter-empty-note p { margin: 0 0 10px; font-weight: var(--fw-semi); color: var(--c-ink); }
/* the month and year in the corner above the lorries, now that the axis shows the days only */
:is(#dispatch-timeline, #dispatch-plan-timeline) { position: relative; }
.dispatch-axis-month { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; padding: 0 10px; font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--c-label); pointer-events: none; text-transform: capitalize; }
.dispatch-day-filter:focus { outline: none; border-color: var(--c-info); box-shadow: 0 0 0 2px rgba(18, 175, 203, .25); }
.dispatch-day-filter.has-value { border-color: var(--c-info); background: #fff; font-weight: var(--fw-semi); }

/* a filter's icon only where the bar is narrow; a chosen value never with its prefix (review r8) */
#dispatch-timeline-controls .dsel-ico { display: none; margin-right: 5px; color: var(--c-muted); font-size: 11px; }
#dispatch-timeline-controls .dispatch-filter-on .dsel-pre { display: none; }
#dispatch-timeline-controls .dsel-short { display: none; }
@media (max-width: 1599px) {
	#dispatch-timeline-controls .dsel-full { display: none; }
	#dispatch-timeline-controls .dsel-short { display: inline; }
}
#dispatch-timeline-controls .select2-container.dispatch-filter-on { max-width: 190px; }
/* the bar on one line below 1600 px: narrower filters and search (review r4, r5: two lines at 1440) */
@media (max-width: 1599px) {
	#dispatch-timeline-controls .select2-container { min-width: 86px; max-width: 112px; }
	#dispatch-timeline-controls .dispatch-bar-search { flex-basis: 140px; min-width: 100px; }
	/* and on 1366 too: the bar on two lines took a row of lorries (DS3-04) */
	#dispatch-timeline-controls { column-gap: 8px !important; }
	#dispatch-timeline-controls .dispatch-bar-search { flex-basis: 96px; min-width: 88px; }
	/* the value without "Dispečer: " -- "Dispečerov…" did not say who (review r6); the prefix stays in
	   the tooltip and the dropdown */
	#dispatch-timeline-controls .dsel-pre { display: none; }
	#dispatch-timeline-controls .dsel-ico { display: inline-block; }
	/* "všichni" needs little room, a chosen name more */
	#dispatch-timeline-controls .select2-container { min-width: 70px; max-width: 92px; }
	#dispatch-timeline-controls .select2-container.dispatch-filter-on { max-width: 140px; }
	/* the house and the tick under a day narrower, so the place box keeps more than "kd" */
	.dispatch-day-home { flex-basis: 15px; font-size: 11px; }
	.dispatch-day-free { margin: 0 1px; }
	#dispatch-timeline-controls .dispatch-bar-date { width: 92px !important; }
	#dispatch-timeline-controls .btn-group-sm > .btn[data-dispatch-range] { padding-left: 7px; padding-right: 7px; }
}
/* the words beside the split and partial icons come back where there is room for them */
#dispatch-timeline-controls .dispatch-bar-label { display: none; }
@media (min-width: 1700px) { #dispatch-timeline-controls .dispatch-bar-label { display: inline; } }
/* the order of the rows always says which it is -- an icon alone hid whether the waterfall was on (review r6) */
#dispatch-timeline-controls #dispatch-sort-label { display: inline; }
/* the waterfall held while working: a dot says a new sort would put the rows otherwise */
:is(#dispatch-timeline, #dispatch-plan-timeline):focus, #dispatch-pool:focus { outline: none; }
/* one focus ring on the bar, the same on a button, the search and a select: the search had a 25 % wash
   (1.3:1), the buttons a light outline and the selects the browser's own (review r6, r7, Klára) */
#dispatch-timeline-controls .btn:focus-visible,
#dispatch-timeline-controls .form-control:focus,
#dispatch-timeline-controls .select2-container--focus .select2-selection,
#dispatch-timeline-controls .select2-container--open .select2-selection,
#dispatch-day-filters input:focus,
#dispatch-day-filters button:focus-visible { outline: none !important; box-shadow: 0 0 0 2px var(--c-white, #fff), 0 0 0 4px #0b7f93 !important; }
.dispatch-legend .lg-chip-home { text-transform: uppercase; }
/* the words first, the button at the right end (review r7) */
.ff-toast .ff-toast-split { display: flex; align-items: center; gap: 10px; }
.ff-toast .ff-toast-split .btn { margin-left: auto; flex: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-owner { font-size: 11px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-plan-end { display: none; overflow: hidden; text-overflow: ellipsis; color: var(--c-ink); font-weight: var(--fw-semi); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-plan-end.is-now { color: var(--c-ok-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline).sort-plan .dg-plan-end { display: inline; }
:is(#dispatch-timeline, #dispatch-plan-timeline).sort-plan .dg-free { display: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free-short { display: none; margin-left: auto; flex: none; font-size: 10.5px; font-weight: var(--fw-semi); color: var(--c-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free-short.is-now { color: var(--c-ok-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free-short.is-out { color: var(--c-bad-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact.sort-waterfall .dg-free-short { display: inline; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact.sort-waterfall .dg .group-owner { display: none; }
#dispatch-pool.has-more { box-shadow: inset 0 -14px 12px -10px rgba(0, 0, 0, .28); }
#dispatch-sort.is-stale > .btn { position: relative; }
#dispatch-sort.is-stale > .btn::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-info); box-shadow: 0 0 0 1.5px var(--c-white); }

/* the legend */
/* never taller than the window: it was 1030 px and ran off the bottom (plachta review r4) */
/* the legend in a modal, wide enough for the longer lines to sit beside their sample (David, 6. 10. 2026) */
.modal-legend-dialog { width: min(1080px, calc(100vw - 40px)); max-width: none; }
#modal-legend .modal-body { max-height: calc(100vh - 200px); overflow-y: auto; }
.dispatch-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: var(--fs-sm); }
/* each column a grid: the samples in a column as wide as the widest, the words beside them wrapping
   in their own column, never under the sample (David, 6. 10. 2026) */
.dispatch-legend-col { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 7px; align-content: start; }
.dispatch-legend-col > p { display: contents; }
.dispatch-legend-col > p.dispatch-legend-head { display: block; grid-column: 1 / -1; }
.dispatch-legend .lg-s { display: flex; align-items: center; gap: 6px; min-height: 20px; align-self: start; white-space: nowrap; }
.dispatch-legend .lg-t { line-height: 20px; }
.dispatch-legend-head { font-weight: var(--fw-semi); color: var(--c-muted); text-transform: none; margin-top: 6px !important; }
.dispatch-legend .lg { display: inline-block; flex: 0 0 auto; width: 34px; height: 14px; border: 1px solid transparent; position: relative; }
.dispatch-legend .lg-trip { background: rgba(20, 140, 120, .15); border-color: rgba(20, 140, 120, .5); }
.dispatch-legend .lg-order { background: #0f6e5f; }
.dispatch-legend .lg-pool { background: #b03a2e; }
.dispatch-legend .lg-pool-overdue { background: #7b241c repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.dispatch-legend .lg-late { box-shadow: inset 0 0 0 2px #e74c3c; }
.dispatch-legend .lg-tight { box-shadow: inset 0 0 0 2px var(--c-warn); }
.dispatch-legend .lg-conflict { outline: 2px dashed var(--c-bad-ink); outline-offset: -2px; }
.dispatch-legend .lg-ico-bad { color: var(--c-bad-ink); }
.dispatch-legend .lg-cap { background: rgba(20, 140, 120, .15); border-color: rgba(20, 140, 120, .5); }
.dispatch-legend .lg-cap-g { position: absolute; left: 0; bottom: 0; height: 4px; width: 70%; background: #27ae60; }
.dispatch-legend .lg-split { border-left: 3px dashed #f39c12; border-right: 3px dashed #f39c12; }
.dispatch-legend .lg-ghost { background: transparent; border: 1px dashed rgba(120,125,130,.7); }
.dispatch-legend .lg-partial { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,200,0,.6) 4px 7px); }
.dispatch-legend .lg-hatch-bad { background: repeating-linear-gradient(135deg, var(--c-bad-wash) 0 4px, transparent 4px 8px); border-color: var(--c-line); }
.dispatch-legend .lg-hatch-warn { background: repeating-linear-gradient(135deg, var(--c-warn-wash) 0 4px, transparent 4px 8px); border-color: var(--c-line); }
.dispatch-legend .lg-hatch-alt { background: repeating-linear-gradient(135deg, var(--c-alt-wash) 0 4px, transparent 4px 8px); border-color: var(--c-line); }
.dispatch-legend .lg-res { background: var(--c-alt-wash); border: 1px dashed var(--c-alt); }
.dispatch-legend .lg-ban-guess { outline: 2px dashed var(--c-warn); outline-offset: -2px; }
.dispatch-legend .lg-note { background: linear-gradient(90deg, #f6c343 0 50%, #e05d4b 50% 100%); }
.dispatch-legend .lg-judge { width: 22px; box-shadow: inset 4px 0 0 var(--judge); }
.dispatch-legend .lg-judge-ok { --judge: var(--c-ok); background: color-mix(in srgb, var(--c-ok) 12%, transparent); }
.dispatch-legend .lg-judge-warn { --judge: var(--c-warn); background: color-mix(in srgb, var(--c-warn) 12%, transparent); }
.dispatch-legend .lg-judge-bad { --judge: var(--c-bad); background: var(--c-bad-wash); }
.dispatch-legend .lg-hatch-away { background: repeating-linear-gradient(90deg, var(--c-info-wash) 0 3px, transparent 3px 7px); border-color: var(--c-line); }
.dispatch-legend .lg-chip { display: inline-flex; gap: 3px; align-items: center; padding: 0 5px; border-radius: var(--r); background: var(--veil-soft); font-size: 10px; line-height: 15px; }
.dispatch-legend .lg-chip-warn { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.dispatch-legend .lg-chip-bad { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.dispatch-legend .lg-chip-note { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.dispatch-legend .lg-chip-home { background: var(--home-weekend); color: #fff; }
/* the vehicle column (variant J): drawn with the board's own pieces, at the size they have there */
.dispatch-legend .lg-stripe { display: inline-block; width: 3px; height: 20px; background: var(--c-ok); }
.dispatch-legend .lg-stripe-warn { background: var(--c-warn); }
.dispatch-legend .lg-stripe-bad { background: var(--c-bad); }
.dispatch-legend .lg-plate { height: 20px; line-height: 18px; padding: 0 6px; font-size: 12px; }
.dispatch-legend .lg-plate-none { border-style: dashed; color: var(--c-quiet) !important; font-weight: var(--fw-semi); font-size: 11px; letter-spacing: 0; }
.dispatch-legend .lg-marks { display: inline-flex; gap: 4px; margin-left: 5px; padding-left: 5px; border-left: 1px solid var(--c-line-panel); }
.dispatch-legend .lg-marks i, .dispatch-legend .lg-mark i { font-size: 11px; }
.dispatch-legend .lg-mark { display: inline-flex; width: 16px; justify-content: center; }
.dispatch-legend .lg-ini { min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-alt-wash); color: var(--c-alt-ink); font-size: 9.5px; font-weight: 700; }
.dispatch-legend .lg-quiet { color: var(--c-muted); }
.dispatch-legend .lg-hours { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: var(--fw-semi); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.dispatch-legend .lg-hours-warn { color: var(--c-warn-ink); }
.dispatch-legend .lg-ico { width: 18px; height: 18px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; background: var(--veil-soft); }
.dispatch-legend .lg-ico-warn { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.dispatch-legend .lg-ico-bad { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.dispatch-legend .lg-ico-note { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.dispatch-legend .lg-where { font-size: 11px; color: var(--c-label); }
/* the "now" line as the board draws it (vis-current-time) */
.dispatch-legend .lg-now { display: inline-block; width: 2px; height: 16px; background: #e74c3c; vertical-align: middle; }
.dispatch-legend .lg-where > i:first-child { margin-right: 4px; color: var(--c-muted); }
.dispatch-legend .lg-where b { color: var(--c-ink); font-weight: var(--fw-semi); }
.dispatch-legend .lg-where b.lg-ok { color: var(--c-ok-ink); }
.dispatch-legend .lg-where b.lg-bad { color: var(--c-bad-ink); }

/* what cannot be undone has a red button named by what it does */
#alertify.alertify-danger #alertify-ok { background: var(--c-bad-ink, #c0392b) !important; border-color: var(--c-bad-ink, #c0392b) !important; color: #fff !important; }
/* the question reads from the left, the reservations one per line (plachta review r4) */
#alertify.alertify-danger .alertify-message { text-align: left; }
/* the whole question to the left, its buttons too, as the dialog of a moved trip is -- the heading and
   the list sat left, the lead, the question and the buttons in the middle (review r6, Radek) */
#alertify.alertify-danger .alertify-inner,
#alertify.alertify-danger .alertify-message *,
#alertify.alertify-danger .alertify-buttons { text-align: left; }
#alertify .alertify-sub, #modal-choose .alertify-sub { margin: 6px 0 2px; color: var(--c-muted); }
#alertify .alertify-sub strong, #modal-choose .alertify-sub strong { color: var(--c-ink); }
#modal-choose .alertify-warn { color: var(--c-warn-ink); }
/* the legs that stay put, quietly, under the ones that move (review r12, Radek) */
#modal-choose .alertify-quiet { color: var(--c-muted); }
#modal-choose .alertify-ok { color: var(--c-ok-ink); }
/* news, not a reservation: the lorry's plan changed meanwhile (review r19, Klára) */
#modal-choose .alertify-info { color: var(--c-info-ink, #0b6e80); background: var(--c-info-wash, #e6f6f9); border-radius: var(--r); padding: 6px 10px; }
/* a conflict in a question is red and marked; a reservation stays plain (review r13, Radek, the critic) */
#modal-choose .alertify-bad { color: var(--c-bad-ink); font-weight: var(--fw-semi); }
#modal-choose li.alertify-bad i { margin-right: 4px; }
/* the order the search found in the pool */
#dispatch-pool .vis-item.timeline-order.dispatch-pool-hit { box-shadow: 0 0 0 3px var(--c-info); outline: 2px solid var(--c-white); outline-offset: 0; z-index: 3; animation: dispatch-pool-hit-pulse 1.2s ease-in-out 3; }
/* the rest of the pool steps back while a search found something in it: the found order looked like the red
   ones beside it (review r14, Radek) */
#dispatch-pool.has-pool-hit .vis-item.timeline-order:not(.dispatch-pool-hit) { opacity: .35; }
@keyframes dispatch-pool-hit-pulse { 50% { box-shadow: 0 0 0 6px rgba(18, 175, 203, .45); } }
/* the parts of a split written by hand: kg and pallets side by side, the last one counted (David, 6. 10. 2026) */
.split-table { width: auto; margin: 4px 0 4px; }
.split-table th, .split-table td { border-top: 0 !important; padding: 3px 8px 3px 0 !important; vertical-align: middle !important; font-weight: var(--fw-semi); }
.split-table .input-group { width: 140px; }
.split-table input[readonly] { background: var(--c-head); }
/* the split dialog of its own (review r7): the lead muted, the check under the table coloured, the
   server's refusal in a red box that stays with the numbers written */
#modal-split .alertify-sub { margin: 6px 0 2px; color: var(--c-muted); }
#modal-split #split-check.text-danger { color: var(--c-bad-ink); font-weight: var(--fw-semi); }
#modal-split #split-check.text-warning { color: var(--c-warn-ink); font-weight: var(--fw-semi); }
#modal-split .split-error { margin-top: 10px; }
#modal-choose .modal-body { font-size: var(--fs-md, 14px); }
/* wide enough for "Zrušit" and two long actions on one line, left as the other questions (review r9) */
#modal-choose .modal-dialog { width: 680px; max-width: calc(100vw - 32px); }
/* a question asked from a preview stands over it (review r10, Klára: the dialogs piled up) */
/* (the app's modals stand at 9999 -- at 1080 the question lay under the preview and nothing could be
   clicked, review r11, all five) */
#modal-choose { z-index: 10010; }
#modal-choose .modal-footer .btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
#modal-choose .alertify-list { margin: 4px 0 0; padding-left: 18px; }
#modal-choose .alertify-list li { margin: 2px 0; }
#alertify .alertify-list { margin: 0 0 12px; padding-left: 18px; text-align: left; }
#alertify .alertify-list li { margin: 2px 0; text-align: left; }
/* the whole question reads from the left, the bullets beside their words (review r5) */
#alertify .alertify-message:has(.alertify-list) { text-align: left; }

/* the side menu fits the window: fifteen items of 72 px made every page 1109 px high at 1080 and 900,
   and the dispatch board's pool went under the edge (review r6-r10, the critic, Klára) */
@media (min-width: 768px) and (max-height: 1120px) {
	.page-content .page-sidebar .accordion-menu > li > a { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 768px) and (max-height: 960px) {
	.page-content .page-sidebar .accordion-menu > li > a { padding-top: 7px; padding-bottom: 7px; }
}
/* 1366×768 (DS2-01): fourteen items fit without the rail's own scroll, which stays only as the fallback */
@media (min-width: 768px) and (max-height: 860px) {
	.page-content .page-sidebar .accordion-menu { padding: 10px 0; }
	.page-content .page-sidebar .accordion-menu > li > a,
	[data-menu="columns"] .page-content .page-sidebar .accordion-menu > li > a { padding-top: 5px; padding-bottom: 5px; }
	.page-content .page-sidebar .accordion-menu a span.menu-icon { margin-bottom: 2px; }
}

/* a trip in conflict: the lorry cannot go, the driver is away, two orders at once, no trailer */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.timeline-trip-conflict { outline: 2px dashed var(--c-bad-ink); outline-offset: -2px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .trip-conflict-mark { position: absolute; right: 18px; top: 1px; font-size: 11px; color: var(--c-bad-ink); pointer-events: none; }
/* a stop or the way in a lorry ban: an orange frame and the ban sign, as in the legend (review r10) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.timeline-trip-ban:not(.timeline-trip-conflict) { box-shadow: inset 0 0 0 2px var(--c-warn); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .trip-ban-mark { position: absolute; right: 32px; top: 1px; font-size: 11px; color: var(--c-warn-ink); pointer-events: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.timeline-trip-ban:not(.timeline-trip-conflict) .trip-ban-mark { right: 18px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.timeline-trip-ban.timeline-trip-ban-guess:not(.timeline-trip-conflict) { box-shadow: none; outline: 2px dashed var(--c-warn); outline-offset: -2px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-ban-guess .trip-ban-mark { opacity: .6; }
/* on a narrow trip the number makes room for the marks instead of running under them -- "#❗…" on
   #1688, and the ban sign hidden with a conflict so nobody saw the ban (review r11, r12, Klára, the critic) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-narrow .trip-label { right: 20px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-narrow.timeline-trip-ban .trip-label,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-narrow.timeline-trip-conflict .trip-label { right: 32px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-narrow.timeline-trip-ban.timeline-trip-conflict .trip-label { right: 46px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-nano .trip-ban-mark,
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.is-nano .trip-conflict-mark { display: none; }
/* the ban sign stays beside the exclamation mark on a trip in conflict: with the conflict solved the ban is
   still there and the board has to say so (review r12, Jana, the critic, Klára) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip.timeline-trip-ban.timeline-trip-conflict .trip-ban-mark { right: 32px; display: block; }

/* a hold for an offer reads like the other bars: no italics, the same type */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-reservation .vis-item-content { font-style: normal; font-size: 11px; font-weight: var(--fw-semi); }
/* a hold for an offer drawn the way a note is -- the same height and place in the row, square, edged
   top and bottom with the ends marked -- only in its own violet (David, 6. 10. 2026) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-reservation {
	top: 42px !important; height: 28px !important; box-sizing: border-box; border-radius: 0 !important;
	border-style: solid !important; border-width: 1px 0 !important; border-color: var(--c-alt) !important;
	background-color: var(--c-alt-wash) !important; color: var(--c-alt-ink) !important;
	clip-path: inset(0 2px 0 2px); box-shadow: inset 3px 0 0 0 var(--c-alt), inset -3px 0 0 0 var(--c-alt); z-index: 3 !important;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-reservation .vis-item-content { padding: 4px 8px; line-height: 1.3; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-reservation { top: 28px !important; height: 24px !important; }
/* a hold over the driver's weekend at home: a conflict, framed and marked as a trip is (review r6) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-reservation.timeline-reservation-conflict { outline: 2px dashed var(--c-bad-ink); outline-offset: -2px; z-index: 8 !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .reservation-conflict-mark { color: var(--c-bad-ink); }

/* the lorry's label in three lines (David, 6. 10. 2026, variant J of the artifact "Sloupec vozidel
   plachty"): the set -- the lorry and the trailer as plates of one size, the kind of their cargo space
   inside the frame -- and the dispatcher's initials; the crew, the driving left and the warnings as
   icons; where the lorry is and when and where it is free. A stripe on the left edge says whether it
   can go. The row is 74 px, compact 56 px without the third line (the trips, bars and hatches are
   drawn to it, see "the row's height" below). */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-labelset .vis-label.dispatch-group,
#dispatch-pool .vis-labelset .vis-label { min-width: 290px; max-width: 290px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner { padding: 0 8px 0 11px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner::after { content: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div.dg { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* the stripe an element of its own, with a tooltip saying why (review r7); 3 px of colour in a 9 px
   strip the mouse can find */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; z-index: 1; cursor: help;
	--stripe: var(--c-ok); background: linear-gradient(to right, var(--stripe) 3px, transparent 3px); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg.dg-state-warn .dg-stripe { --stripe: var(--c-warn); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg.dg-state-bad .dg-stripe { --stripe: var(--c-bad); }
/* while an order is dragged the judgement of the row speaks, not its standing state */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-judge .dg-stripe { display: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-set, :is(#dispatch-timeline, #dispatch-plan-timeline) .dg-people, :is(#dispatch-timeline, #dispatch-plan-timeline) .dg-where { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-set { gap: 5px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .licence-plate { height: 20px; line-height: 18px; padding: 0 6px; font-size: 12px; flex: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .licence-plate.is-none { border-style: dashed; color: var(--c-quiet) !important; font-weight: var(--fw-semi); font-size: 11px; letter-spacing: 0; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-marks { display: inline-flex; align-items: center; gap: 4px; margin-left: 5px; padding-left: 5px; border-left: 1px solid var(--c-line-panel); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-marks i { font-size: 11px; cursor: help; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-owner { margin-left: auto; flex: none; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-alt-wash); color: var(--c-alt-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .3px; cursor: help; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-crew { font-size: 12px; font-weight: 400; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-crew > i { margin-right: 4px; font-size: 10.5px; color: var(--c-muted); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-hours { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: var(--fw-semi); color: var(--c-muted); font-variant-numeric: tabular-nums; cursor: help; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-hours.group-driving-warn { color: var(--c-warn-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-hours.group-driving-bad { color: var(--c-bad-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-people .group-chips { margin-left: auto; flex: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip { width: 18px; height: 18px; padding: 0; justify-content: center; font-size: 10px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip i { font-size: 10px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-note { color: var(--c-alt-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-away,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-expiry-bad,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-age-stale { background: var(--c-bad-wash); color: var(--c-bad-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-expiry-warn,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-age-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-where { gap: 5px; font-size: 11px; font-weight: 400; color: var(--c-muted); }
/* while an order is dragged, why a coloured row would not suit, on the row (review r9, Petr) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-where.dg-judge-why { display: block; text-overflow: ellipsis; font-weight: 600; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-judge-bad .dg-judge-why { color: var(--c-bad-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dispatch-judge-warn .dg-judge-why { color: var(--c-warn-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place { flex: none; color: var(--c-label); cursor: help; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place > i { margin-right: 4px; font-size: 10px; color: var(--c-muted); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-age.is-warning { color: var(--c-warn-ink); font-weight: var(--fw-semi); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-age.is-stale { color: var(--c-bad-ink); font-weight: var(--fw-semi); }
/* an old GPS reading is a gap in the telematics, not a reason the lorry cannot go: grey, the why in the
   tooltip (DS3-04); the mark of where the place comes from (a confirmed stop, a trip's plan, the depot) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-age-quiet { background: transparent; color: var(--c-quiet); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place .dg-age { color: var(--c-quiet); font-weight: 400; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place > i.dg-src { margin: 0; font-size: 9px; color: var(--c-quiet); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-arrow { flex: none; font-size: 9px; color: var(--c-quiet); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free { overflow: hidden; text-overflow: ellipsis; color: var(--c-ink); font-weight: var(--fw-semi); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free.is-now { color: var(--c-ok-ink); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-free.is-out { color: var(--c-bad-ink); }
/* the tooltip of a plate: what the lorry or the trailer is -- the application's tooltip, wider, with
   label and value in two columns and a block per cargo space */
.tooltip.dg-plate-tip .tooltip-inner { max-width: 340px; padding: 8px 10px; text-align: left; font-size: 11.5px; line-height: 1.4; }
.dg-plate-tip .pi-head { font-weight: 700; font-size: 12.5px; letter-spacing: .4px; margin-bottom: 5px; }
.dg-plate-tip .pi-head i { margin-right: 4px; opacity: .75; }
.dg-plate-tip .pi-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1px 10px; margin: 0; }
.dg-plate-tip .pi-dl dt { font-weight: 400; opacity: .7; }
.dg-plate-tip .pi-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dg-plate-tip .pi-space { margin: 7px 0 3px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }
.dg-plate-tip .pi-note { margin-top: 6px; opacity: .75; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-plate { cursor: help; }
/* "Skrýt nepojízdná" keeps a lorry that cannot go but has a trip in the window -- dimmed, its reason on the
   stripe (DI3-05) */
#dispatch-timeline .vis-label.dispatch-group-dim .dg > :not(.dg-stripe) { opacity: .5; }
/* compact: the same two first lines, the third left out */
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-label.dispatch-group .vis-inner > div.dg { gap: 4px; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .dg-where { display: none; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .dg .licence-plate { height: 19px; line-height: 17px; font-size: 11.5px; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .dg .group-owner { min-width: 20px; height: 20px; }
/* the gear with something hidden: a dot, the list in its tooltip (review r5) */
#dispatch-settings-btn { position: relative; }
#dispatch-settings-btn.has-off::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-warn); box-shadow: 0 0 0 1.5px var(--c-white); }
/* a loose button in the bar keeps the bar's gap only: the global 5 px margin made compact, the gear
   and the legend stand further apart than the rest (David, 6. 10. 2026) */
#dispatch-timeline-controls .dispatch-bar-group > .btn { margin: 0; }

/* the parts a dispatcher has switched off in the board's settings (dispatch-timeline.js, boardOff) */
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-crew .dg-crew,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-trailer .dg-trailer,
#dispatch-plan-timeline.ds-off-trailer .dg-plate,
#dispatch-plan-timeline.ds-off-trailer .dp-no-vehicle,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-owner .group-owner,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-chipNote .group-chip.group-note,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-chipExpiry .group-chip.group-expiry,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-chipAway .group-chip.group-away,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-chipDriving .dg-hours,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-cargoMarks .dg-marks,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-state .dg-stripe,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-chipGps .group-chip.group-age,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-tripLabel .vis-item.timeline-trip .trip-label,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-capacity .trip-cap-strip,
:is(#dispatch-timeline, #dispatch-plan-timeline).ds-off-capacity .trip-cap-warn { display: none !important; }
#modal-boardSettings .form-part-content { padding: 12px 14px; }
#modal-boardSettings .ff-toggle-block .ff-form-hint { display: block; margin: -4px 0 8px 20px; }

/* the lorry's label: nothing under 11 px (wave 3 of the twelfth review) */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div strong { font-size: 13px; line-height: 15px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div small { font-size: 11px; line-height: 12.5px; max-width: 140px; }
.vis-labelset .group-chip { font-size: 10px; line-height: 12px; }
.vis-labelset .group-owner { color: var(--c-alt-ink); }
#dispatch-pool .dispatch-group-pool small { color: var(--c-muted); font-weight: 400; font-size: 11px; }

/* a change of driver or trailer: a marker with its icon over a thin line, not a 5 px stripe */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event .vis-item-content { width: 2px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event .vis-item-content::before {
	position: absolute; top: 2px; left: -7px; width: 16px; height: 16px; border-radius: 50%;
	background: inherit; color: #fff; font-family: 'Font Awesome 6 Pro'; font-weight: 900; font-size: 8px;
	line-height: 16px; text-align: center; opacity: 1;
}
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-driver-assign .vis-item-content::before { content: '\f007'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-driver-unassign .vis-item-content::before { content: '\f503'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-codriver-assign .vis-item-content::before { content: '\f500'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-codriver-unassign .vis-item-content::before { content: '\f503'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-trailer-hitch .vis-item-content::before { content: '\f0c1'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event-trailer-unhitch .vis-item-content::before { content: '\f127'; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-event:hover .vis-item-content { width: 2px; margin-left: 0; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group.dispatch-group-hit { background-color: var(--c-info-wash); box-shadow: inset 3px 0 0 var(--c-info); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group.dispatch-group-miss .vis-inner { opacity: 0.35; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group.dispatch-group-miss { opacity: 0.35; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-foreground .vis-group.dispatch-group-hit { background-color: var(--c-info-wash); }

/* compact rows (DI-04): the label without its third line, 54 px; the rows are 74 px otherwise -- both
   leave about 6-7 px above and under the label, so the rows stand apart (David, 6. 10. 2026); 54, not 56,
   so 9 lorries fit on 1366×768 (DI6-11) */
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-label.dispatch-group,
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-label.dispatch-group .vis-inner,
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-foreground .vis-group { height: 54px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-trip { height: 50px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order { top: 18px !important; height: 30px !important; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-order .vis-item-content { line-height: 12px; padding: 2px 6px; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .vis-item.timeline-note { top: 28px !important; height: 24px !important; }
#dispatch-compact-toggle[aria-pressed="true"] { background-color: var(--c-info-wash); color: var(--c-info-ink); border-color: var(--c-info); }

/* the trip says what it is (DI-05): number, route, driver -- one line along the top of the bar */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .trip-label { position: absolute; left: 6px; right: 6px; top: 2px; font-size: 11px; font-weight: 600; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0.85; }
/* a done trip's label greys by its colour alone (DS7-05): --c-muted at 85 % on the grey bar was 3.37:1 at 10 px */
/* DS9-02: --c-label, not --c-muted: 10 px of "#2461" on the grey of a completed trip was 4.43:1 */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip-completed .trip-label { color: var(--c-label); opacity: 1; }
/* "čeká na potvrzení" on the bar's 12 px label line (R11-4 a): a full badge (20 px) cut the label in half */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.timeline-trip .trip-label .badge-soft { padding: 0 6px 0 5px; font-size: 11px !important; line-height: 12px; vertical-align: top; }
.vis-labelset .group-note { color: var(--c-alt-ink, #6a1b9a); }

/* the warnings of a lorry as chips on one line (the row holds the plate and three small lines);
   each says the short of it, the tooltip the whole */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-label.dispatch-group .vis-inner > div small:has(.group-chips) { max-width: 150px; overflow: visible; }
.vis-labelset .group-chips { display: inline-flex; gap: 3px; align-items: center; }
.vis-labelset .group-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 0 4px;
	border-radius: var(--r-sm, 3px);
	background: var(--veil-soft);
	font-size: 9px;
	line-height: 13px;
	cursor: help;
}
.vis-labelset .group-chip i { font-size: 8px; }
.vis-labelset .group-chip.group-away,
.vis-labelset .group-chip.group-expiry-warn,
.vis-labelset .group-chip.group-driving-warn,
.vis-labelset .group-chip.group-age-warning { background: var(--c-warn-wash); }
.vis-labelset .group-chip.group-expiry-bad,
.vis-labelset .group-chip.group-driving-bad,
.vis-labelset .group-chip.group-age-stale { background: var(--c-bad-wash); }
.vis-labelset .group-chip.group-note { background: var(--c-alt-wash); }

/* ---- the modal size L and a footer that stays in view (DS-06); a size goes on .modal-dialog ---- */
@media (min-width: 1020px) { .modal-l { width: 960px; } }
.ff-modal-body { max-height: calc(100vh - 200px); overflow-y: auto; }
.ff-modal-footer { position: sticky; bottom: 0; background-color: var(--c-white); z-index: 2; }
.ff-step { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--c-info); color: #fff; font-size: 11px; font-weight: 600; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 2px; }
/* the steps numbered by what is shown: a section hidden (the order points of a stop that is no order point) takes no
   number -- "1, 2, 4, 5" (DI4-14) */
.ts-steps { counter-reset: ts-step; }
.ts-steps .ff-step-auto::before { counter-increment: ts-step; content: counter(ts-step); }
.ff-subsection-title { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-label); margin: 14px 0 4px; }
.ff-point-map .address-map-control .address-map-container { height: 220px; min-height: 220px; }
/* the modal of a stop (__inc/modal-pointsForm.latte, David, 2. 10. 2026): the kind as a switch across the
   top, "where" on the left, "when, cargo, details" on the right on a grey ground of their own, so the two
   halves do not run into each other */
.modal-body.pf { padding: 0; margin-top: 0; }
.pf-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
/* the chosen kind in the colour it has on the route: green loading, red unloading, grey the rest */
.pf-type .pf-type-unloading input:checked + span { background: var(--c-bad-ink); border-color: var(--c-bad-ink); }
.pf-type .pf-type-other input:checked + span,
.pf-type .pf-type-auto input:checked + span { background: var(--c-label); border-color: var(--c-label); }
.pf-columns { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* two even halves (the rule of the required documents) */
.pf-columns.pf-halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pf-columns > .hidden { display: none; }
.pf-where > .ff-section-title:first-child, .pf-side > .ff-section-title:first-child { margin-top: 0; }
.pf-where { padding: 20px 20px 22px; }
.pf-side { padding: 20px 20px 22px; background: var(--c-head); border-left: 1px solid var(--c-line); }
/* on the grey ground the slot block stays white, open or closed */
.pf-side .ff-toggle-block, .pf-side .ff-toggle-block:has(> .checkbox input:checked) { background-color: var(--c-white); }
.pf-slot .row + .row { margin-top: 12px; }
.pf-cargo { margin-top: 0; margin-bottom: 6px; }
.pf-gps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.pf-gps .form-control { width: 120px; }
.pf-gps-label { font-size: 12px; font-weight: 600; color: var(--c-label); }
.pf-gps-hint { flex: 1 1 200px; font-size: 12px; color: var(--c-soft); }
.ff-crossing-map .address-map-control .address-map-container { height: 480px; min-height: 480px; }
/* the stop just saved: a soft blue wash and a faint ring, which then fade away slowly (David, 2. 10. 2026) */
.tp-card.transport-point-flash { background: var(--c-info-wash); border-top-color: rgba(18, 175, 203, 0.35); border-right-color: rgba(18, 175, 203, 0.35); border-bottom-color: rgba(18, 175, 203, 0.35); box-shadow: 0 0 0 2px rgba(18, 175, 203, 0.10); }
.tp-card.transport-point-fade { transition-duration: 1s; }
/* the route on the card of a document (__inc/transportPoints.latte, David, 2. 10. 2026): the stops on a
   line down the left, a numbered dot green where goods are loaded and red where unloaded, the leg on
   the line between two stops, each stop one compact block */
.tp { padding: 0 0 12px; }
/* the summary is the head of the block: a band of its own, as the head of a form section */
/* in two lines: the towns with their flags and the buttons, then the time, stops, km and cargo */
.tp-summary { padding: 12px 20px; border-bottom: 1px solid var(--c-line); background: var(--c-head); color: var(--c-label); font-size: 13px; }
.tp-summary-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.tp-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 6px; }
.tp-summary-item i { margin-right: 6px; color: var(--c-muted); }
.tp-summary-route { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--c-ink); }
.tp-summary-route > i { font-size: 11px; color: var(--c-muted); }
.tp-summary-town { display: inline-flex; align-items: center; }
.tp-summary-buttons { margin-left: auto; display: inline-flex; gap: 8px; }
/* the buttons end where the stops end: no margin of their own, the gap keeps them apart */
.tp-summary-buttons .btn { margin: 0; }
/* what the whole route lacks, said once above the stops instead of at every one of them */
.tp-warnings { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 12px 20px 0; }
.tp-warnings i { margin-right: 4px; }
.tp-list { list-style: none; margin: 8px 20px 0; padding: 0; position: relative; }
/* the line between the dots, drawn in pieces: each stop and each leg its own part, the first stop from its dot down, the last from the top to its dot -- nothing beyond the last number (David, 2. 10. 2026); the dot's centre is 8px + 6px + 14px down */
.tp-stop::before, .tp-leg::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--c-line); }
.tp-stop:first-child::before { top: 28px; }
.tp-stop:last-child::before { bottom: auto; height: 28px; }
.tp-stop:only-child::before { display: none; }
/* the orders of a trip as lanes left of the numbers (TripStopLanes, __inc/stopLanes.latte, David, 13. 10. 2026): an
   order its colour and lane from its first stop to its last, a ringed dot where it is served; interleaving orders
   run side by side. 12px a lane; the dot's centre 28px down as the number's */
.tp-list-laned { padding-left: calc(var(--lanes) * 12px + 6px); }
.tp-lanes { position: absolute; top: 0; bottom: 0; left: calc(var(--lanes) * -12px - 6px); width: calc(var(--lanes) * 12px); pointer-events: none; }
.tp-lane { position: absolute; left: calc(var(--lane) * 12px + 3px); width: 3px; background: var(--lc); border-radius: 2px; }
.tp-lane-full { top: 0; bottom: 0; }
.tp-lane-start { top: var(--lane-mid, 28px); bottom: 0; }
.tp-lane-end { top: 0; height: var(--lane-mid, 28px); }
.tp-lane-none { display: none; }
.tp-lane-dot { position: absolute; z-index: 1; left: calc(var(--lane) * 12px - 1px); top: calc(var(--lane-mid, 28px) - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 2px var(--c-white); pointer-events: auto; cursor: help; }
/* the list beside the map: smaller numbers (24px, 4px down in a row padded 4px) -- their centre 20px down */
.td-map-list { --lane-mid: 20px; }
/* a block of an order (the Objednávky tabs of the card and the preview) edged in its lane's colour */
.td-item-card.tp-order-lane { border-left: 3px solid var(--lc); }
.tp-lc-0 { --lc: #2f6fde; }
.tp-lc-1 { --lc: #e07b00; }
.tp-lc-2 { --lc: #8b5cf6; }
.tp-lc-3 { --lc: #0e9aa7; }
.tp-lc-4 { --lc: #d63384; }
.tp-lc-5 { --lc: #6b7f2a; }
.tp-lc-6 { --lc: #8d6e63; }
.tp-lc-7 { --lc: #4f46e5; }
/* the order's button at the stop in its lane's colour */
.btn.tp-order-lane { border-left: 3px solid var(--lc); }
.tp-stop { position: relative; display: flex; gap: 14px; padding: 8px 0; }
.tp-dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; margin-top: 6px; border-radius: 50%; background: var(--c-white); border: 2px solid var(--c-muted); color: var(--c-ink); font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; }
.tp-stop-loading .tp-dot { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.tp-stop-unloading .tp-dot { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }
/* unloads and loads: the turning point of a round trip, half red half green */
.tp-stop-both .tp-dot { background: linear-gradient(90deg, var(--c-bad) 50%, var(--c-ok) 50%) border-box; border-color: transparent; color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, 0.35); }
/* each stop a block of its own: a grey ground and an edge on the left in the colour of what happens there */
.tp-card { flex: 1 1 auto; min-width: 0; padding: 10px 14px; cursor: pointer; border: 1px solid var(--c-line); border-left: 4px solid var(--c-quiet); border-radius: 6px; background: var(--c-ground); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tp-stop-loading .tp-card { border-left-color: var(--c-ok); }
.tp-stop-unloading .tp-card { border-left-color: var(--c-bad); }
.tp-stop-both .tp-card { position: relative; border-left-color: var(--c-ok); }
.tp-stop-both .tp-card::before { content: ""; position: absolute; left: -4px; top: -1px; width: 4px; height: 50%; background: var(--c-bad); border-top-left-radius: 6px; }
.tp-card:hover { border-top-color: var(--c-line-input); border-right-color: var(--c-line-input); border-bottom-color: var(--c-line-input); background: var(--c-head); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.tp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
/* town and time in columns, so the times of all stops read down one line */
.tp-where { flex: none; display: flex; align-items: baseline; gap: 10px; width: 560px; min-width: 0; overflow: hidden; }
.tp-place { flex: none; white-space: nowrap; }
.tp-place strong { font-size: 15px; color: var(--c-ink); }
.tp-country { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--c-muted); }
.tp-flag { width: 20px; height: 15px; margin-right: 7px; vertical-align: -1px; border-radius: 2px; object-fit: cover; }
.tp-time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.tp-time i { color: var(--c-muted); margin-right: 2px; font-weight: 400; }
.tp-missing, .tp-missing i { color: var(--c-bad-ink) !important; }
.tp-time.tp-missing { font-weight: 400; font-size: 13px; }
/* a booked slot stands in for the time: the same type, its icon blue, the number of the booking beside it; the customer's window after it in grey */
.tp-time-slot i { color: var(--c-info-ink); }
.tp-slot-ref { margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--c-info-wash); color: var(--c-info-ink); font-size: 11px; font-weight: 600; vertical-align: 1px; }
a.tp-missing-link:hover { text-decoration: underline; }
/* the map and the three dots: square buttons of the height of the cargo tags, the icon in the middle */
.tp-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.tp-actions .tp-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; margin: 0; padding: 0; line-height: 1 !important; }
.tp-actions .tp-btn i { display: block; margin: 0; font-size: 13px; line-height: 1; }
.tp-menu { min-width: 150px; }
.tp-menu > li > a { padding: 6px 14px; }
.tp-menu > li > a i { margin-right: 6px; color: var(--c-muted); }
/* deleting turns red under the pointer */
.tp-menu > li > a.tp-action-delete:hover, .tp-menu > li > a.tp-action-delete:focus-visible,
.tp-menu > li > a.tp-action-delete:hover i { color: var(--c-bad); }
.tp-street { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--c-ink); }
.tp-place-name { color: var(--c-muted); }
.tp-cargo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
/* the tag of the cargo and the buttons beside it share one geometry: 26px high, the icon centred, the same gaps */
.tp-cargo-item, .tp-cargo .tp-cargo-btn { box-sizing: border-box; margin: 0; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 4px; font-size: 12px; line-height: 1 !important; border-width: 1px; border-style: solid; }
.tp-cargo-item i, .tp-cargo .tp-cargo-btn i { display: block; width: auto; height: auto; margin: 0 !important; font-size: 11px; line-height: 1; vertical-align: 0; float: none; opacity: 1; }
.tp-cargo-load { background: var(--c-ok-wash); border-color: rgba(34, 186, 160, 0.35); color: var(--c-ok-ink); }
.tp-cargo-unload { background: var(--c-bad-wash); border-color: rgba(242, 86, 86, 0.35); color: var(--c-bad-ink); }
.tp-cargo-item > span { color: var(--c-ink); }
/* the note of a line on the coloured wash: the muted grey was 4.39:1 on the green (DS9-02) */
.tp-cargo-item .text-muted { color: var(--c-label); }
/* a button inside a strip's sentence stays in its line (a copy over the credit limit, OB8-02): floated it covered the text */
.ff-history-lock > .btn { float: none; margin-right: 0; }
/* a quiet action under the card's tiles with its hint beside it ("Označit jako prohranou", OB8-06) */
.ff-card-aside-action { display: flex; align-items: center; gap: 10px; padding-left: 14px; }
.ff-card-aside-action .btn { float: none; margin: 0; }
/* the line's note on the chip's one line, clipped -- a block ff-clip wrapped it under the chip (OB8-05) */
.tp-cargo-item .ff-clip { display: inline-block; max-width: 220px; line-height: 14px; vertical-align: -2px; }
/* the tag of a line of cargo opens it: a link that looks like the tag, darker under the pointer */
a.tp-cargo-item, a.tp-cargo-item:hover, a.tp-cargo-item:focus { text-decoration: none; cursor: pointer; }
a.tp-cargo-item:hover, a.tp-cargo-item:focus-visible { filter: brightness(0.95); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.tp-cargo-none { font-size: 12px; color: var(--c-muted); font-style: italic; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12px; color: var(--c-muted); }
/* the leg between two stops, written on the line */
.tp-leg { position: relative; padding: 2px 0 2px 42px; font-size: 12px; color: var(--c-muted); }
/* a relay among the points (TripRelayService::getForOrder, David, 19. 10. 2026): its own row on the line, a violet
   trailer in place of a number, so the route says where the cargo changes lorry -- and the points it moved a tag */
.tp-relay { position: relative; display: flex; align-items: center; gap: 14px; margin: 4px 0; font-size: 12px; color: var(--c-alt-ink); }
.tp-relay::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--c-line); }
.tp-relay-dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-alt-wash); border: 2px dashed var(--c-alt-ink); color: var(--c-alt-ink); line-height: 24px; text-align: center; }
.tp-relay-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 10px; border: 1px dashed var(--c-alt-ink); border-radius: var(--r-btn, 3px); background: var(--c-alt-wash); }
.tp-relay-who i { margin: 0 3px; font-size: 10px; }
.tp-relay-trailer { color: var(--c-muted); }
.tp-relay-tag i { margin-right: 3px; }
/* the approach at the head of a trip's stops (Dispatch/templates/_approachRows.latte, David, 19. 10. 2026): the place the
   lorry comes from -- not a stop of this trip, so no number, a grey flag in a dashed ring, a muted dashed box --
   and the empty drive to the first stop on a dashed grey line, the colour the map draws the approach in */
/* the point of a route the approach comes from: the shape of a stop (.tp-stop / .tp-card), drawn apart -- grey, dashed,
   a flag for the number (David, 19. 10. 2026: the same format as a point, another look) */
.tp-approach-from { position: relative; display: flex; gap: 14px; padding: 8px 0; }
/* the line on the left solid, in the light grey of the other stops (David, 19. 10. 2026) */
.tp-approach-from::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 2px solid var(--c-line); }
/* as a stop's dot -- filled, a white sign in it -- in grey (David, 19. 10. 2026) */
.tp-dot.tp-approach-dot { border: 2px solid #8a929b; background: #8a929b; color: #fff; font-weight: 400; }
.tp-card.tp-approach-card { cursor: default; border-style: dashed; border-left: 4px solid #8a929b; background: transparent; color: var(--c-muted); }
.tp-card.tp-approach-card:hover { box-shadow: none; background: transparent; }
.tp-approach-tag a { font-weight: 600; }
.tp-approach-leg { position: relative; padding: 2px 0 2px 42px; font-size: 12px; color: var(--c-muted); }
.tp-approach-leg::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; border-left: 2px solid var(--c-line); }
/* through the token (DS7-05): the fixed #6c757d was 3.57:1 on the dark card */
.tp-approach-empty { margin-left: 10px; color: var(--c-muted); }
.tp-approach-empty i { margin-right: 3px; }
.td-map-list .tp-approach-from::before, .td-map-list .tp-approach-leg::before { left: 11px; }
.td-map-list .tp-approach-leg { padding-left: 32px; }
.td-map-list .tp-approach-dot { width: 24px; height: 24px; line-height: 20px; font-size: 11px; margin-top: 4px; }
/* beside the map as the stops there: their gap and padding -- the approach's box stood further right (David, 19. 10. 2026) */
.td-map-list .tp-approach-from { gap: 8px; padding: 4px 0; }
.td-map-list .tp-approach-from::before { top: 20px; }
.td-map-list .tp-approach-leg { padding: 2px 0 2px 32px; }
/* lit with its pin and its line on the map, as a stop's row is (19. 10. 2026) */
.td-map-list .tp-approach-from:hover .tp-card, .td-map-list .tp-approach-from.td-map-on .tp-card { border-top-color: var(--c-ink); border-right-color: var(--c-ink); border-bottom-color: var(--c-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.td-map-list .tp-approach-leg:hover { color: var(--c-ink); font-weight: var(--fw-semi); }
.tp-leg-missing { color: var(--c-bad-ink); }
.tp-leg-late { margin-left: 10px; color: var(--c-bad-ink); font-weight: 600; cursor: help; }
.tp-leg-late i { margin-right: 3px; }
.tp-leg-refresh { margin-left: 6px; color: var(--c-muted); font-size: 11px; }
.tp-leg-refresh:hover { color: var(--c-link); }
.tp-empty { margin: 20px 20px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; border: 2px dashed var(--c-line); border-radius: 8px; color: var(--c-muted); text-align: center; }
.tp-empty i { font-size: 26px; color: var(--c-link); }
.tp-empty strong { font-size: 15px; color: var(--c-ink); }
.tp-empty:hover { border-color: var(--c-link); text-decoration: none; }
/* the price of a transport as blocks (__inc/orderPrices.latte, David, 4. 10. 2026): the head of the route
   with the total, a block per line -- its icon, what it is and how it is counted, the amount on the right */
.op-total { display: inline-flex; align-items: baseline; gap: 8px; color: var(--c-ink); }
.op-total-label { font-size: 13px; color: var(--c-label); }
.op-total strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--c-ink-strong); }
.op-currency { font-size: 12px; color: var(--c-muted); }
/* on the grey of the price's summary and its cards the muted unit was 4,43 : 1 (ux-lint of the lazy tab, round 19) */
.tp-summary .op-currency, .op-card .op-currency, .tp-summary .text-muted, .tp-summary .pc-base { color: var(--c-label); }
.op-list { list-style: none; margin: 8px 20px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.op-card { display: flex; align-items: center; gap: 14px; border-left-color: var(--c-info); }
.op-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-white); color: var(--c-info-ink); font-size: 15px; box-shadow: 0 0 0 1px var(--c-line); }
.op-body { flex: 1 1 auto; min-width: 0; }
.op-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.op-type { font-size: 14px; color: var(--c-ink-strong); }
.op-auto { font-size: 11px; color: var(--c-info-ink); background: var(--c-info-wash); border-radius: 3px; padding: 1px 6px; cursor: help; }
.op-auto i { font-size: 10px; margin-right: 2px; }
.op-formula { margin-top: 2px; font-size: 13px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.op-note { margin-top: 4px; font-size: 12px; color: var(--c-muted); }
.op-amount { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.op-amount strong { font-size: 16px; color: var(--c-ink-strong); }
.op-card .tp-actions { margin-left: 4px; }

/* the rounds of an offer as blocks (Offers/templates/_versions.latte): the edge says the state, the
   circle the round, the one on the screen stands out; the move of the price under the price */
.ov-card { border-left-color: var(--c-quiet); }
.ov-card.ov-sent { border-left-color: var(--c-info); }
.ov-card.ov-accepted { border-left-color: var(--c-ok); }
.ov-card.ov-rejected { border-left-color: var(--c-bad); }
.ov-card.ov-current { background: var(--c-info-wash); border-top-color: var(--c-line-input); border-right-color: var(--c-line-input); border-bottom-color: var(--c-line-input); cursor: default; }
.ov-card.ov-current:hover { box-shadow: none; background: var(--c-info-wash); }
.ov-badge { font-size: 13px; font-weight: 700; color: var(--c-ink-strong); }
.ov-current .ov-badge { background: var(--c-info-ink); color: #ffffff; box-shadow: none; }
.ov-here { font-size: 12px; color: var(--c-info-ink); }
.ov-sent i { margin-right: 4px; }
.ov-sent a { white-space: nowrap; }
.op-amount .ov-diff-line { display: block; margin-top: 2px; font-size: 12px; }
.ov-diff { font-size: 13px; font-variant-numeric: tabular-nums; }
.ov-down { color: var(--c-bad-ink); }
.ov-up { color: var(--c-ok-ink); }
.ov-move { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.ov-move strong { font-size: 16px; }
.ov-info { margin-left: 4px; font-size: 13px; color: var(--c-muted); cursor: help; }
.ov-actions { min-width: 108px; justify-content: flex-end; }
/* the confirmations sent to the customer, above the files of the order: a block per sending, the PDF beside it */
.ocf-list { margin-top: 14px; }
.ocf-card { cursor: default; border-left-color: var(--c-info); }
.ocf-card:hover { box-shadow: none; background: var(--c-ground); border-top-color: var(--c-line); border-right-color: var(--c-line); border-bottom-color: var(--c-line); }

/* the dialog of the chain (__inc/chainPropagation.latte): what changed, and the records it may go to */
.ff-chain-changes { list-style: none; margin: 10px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ff-chain-changes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-ground); }
.ff-chain-field { flex: 0 0 170px; color: var(--c-label); font-size: 12px; }
.ff-chain-old { color: var(--c-muted); text-decoration: line-through; }
.ff-chain-changes i { color: var(--c-muted); font-size: 11px; }
.ff-chain-docs { display: flex; flex-direction: column; gap: 6px; }
.ff-chain-doc { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 6px; font-weight: normal; cursor: pointer; }
.ff-chain-doc:hover { border-color: var(--c-line-input); background: var(--c-head); }
.ff-chain-doc input { margin: 0; }
.ff-chain-doc small { margin-left: auto; color: var(--c-muted); }
.ff-chain-doc .ff-chain-sent { color: var(--c-warn-ink); }
.ff-chain-doc-locked { cursor: default; color: var(--c-muted); background: var(--c-ground); }
.ff-chain-doc-locked:hover { border-color: var(--c-line); background: var(--c-ground); }

/* what a vehicle does around an order, in the dialog that puts the order on it
   (Orders/templates/_assignVehicleSchedule.latte): its stops, the order's among them, the way between */
.avs:empty { display: none; }
.avs-title { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; font-weight: 600; color: var(--c-ink); }
.avs-days { font-weight: 400; font-size: 12px; color: var(--c-muted); }
.avs-verdict { padding: 8px 12px; margin-bottom: 10px; border: 1px solid var(--c-line-input); border-left-width: 4px; border-radius: 6px; font-size: 13px; }
.avs-verdict i { margin-right: 6px; }
.avs-verdict.avs-ok { border-color: rgba(34, 186, 160, 0.45); border-left-color: var(--c-ok); background: var(--c-ok-wash); }
.avs-verdict.avs-warn { border-color: var(--c-warn); background: var(--c-warn-wash); }
.avs-verdict.avs-bad { border-color: var(--c-bad); background: var(--c-bad-wash); }
.avs-list { list-style: none; margin: 0 0 8px; padding: 0; max-height: 340px; overflow-y: auto; }
.avs-stop { display: flex; align-items: baseline; gap: 12px; padding: 6px 10px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-quiet); border-radius: 6px; background: var(--c-ground); font-size: 13px; }
.avs-stop.avs-own { border-left-color: var(--c-info); background: var(--c-info-wash); }
.avs-time { flex: none; width: 190px; font-variant-numeric: tabular-nums; color: var(--c-soft); }
.avs-place { flex: 1 1 auto; min-width: 0; }
.avs-country { margin-right: 6px; font-size: 11px; color: var(--c-muted); }
.avs-what { flex: none; color: var(--c-soft); }
.avs-gap { padding: 4px 10px 4px 24px; font-size: 12px; color: var(--c-muted); }
.avs-gap i { margin-right: 4px; }
.avs-gap.avs-ok { color: var(--c-ok-ink); }
.avs-gap.avs-warn { color: var(--c-warn-ink); }
.avs-gap.avs-bad { color: var(--c-bad-ink); }
.avs-gap strong { margin-left: 4px; }
/* the approach the program begins with (DI7-04): the place the lorry sets out from and when at the latest, dashed --
   a drive to make, not a stop; a stop at its real time is marked so, with the day of its plan when another (S7-04) */
.avs-stop.avs-approach { border-style: dashed; border-left-style: solid; border-left-color: var(--c-muted); }
/* the bar of a trip not closed past its plan on the board (wave 7-1 agent 2, S7-08): its text as written, not upper case */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable.dispatch-open-trip-tail .vis-item-content { text-transform: none; letter-spacing: normal; }
/* ... and never under the next bar of the row (DI10-09): the arrow ends where that bar begins, a narrow gap cuts its
   words with an ellipsis, the whole sentence is in its tooltip */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable.dispatch-open-trip-tail .vis-item-overflow { overflow: hidden; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable.dispatch-open-trip-tail .vis-item-content { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avs-actual { margin-left: 6px; padding: 1px 6px; border-radius: 8px; font-size: 11px; background: var(--c-ok-wash); color: var(--c-ok-ink); white-space: nowrap; }

/* what can be done with a deal now, as tiles in a row over the tabs of its card (__inc/cardActions.latte):
   an icon, the action and a line of what it does; the whole of it in the tooltip. */
.ff-tiles-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 14px 0; }
.ff-tiles-head strong { font-size: 14px; color: var(--c-ink-strong); }
.ff-tiles-head span { font-size: 12px; color: var(--c-muted); }
.ff-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 10px 12px 12px; }
.ff-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--c-line-input); border-radius: 6px; background: var(--c-white); color: var(--c-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
a.ff-tile:hover, a.ff-tile:focus-visible { border-color: var(--c-link); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); color: var(--c-ink); text-decoration: none; }
.ff-tile-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-ground); color: var(--c-link); font-size: 14px; }
.ff-tile-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ff-tile-body strong { font-size: 13px; color: var(--c-ink-strong); }
.ff-tile-body small { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-tile-bad { border-color: var(--c-bad); background: var(--c-bad-wash); }
.ff-tile-bad .ff-tile-icon { background: var(--c-bad); color: #fff; }
.ff-tile-off, .ff-tile-wait { cursor: default; background: var(--c-ground); }
.ff-tile-off .ff-tile-icon, .ff-tile-wait .ff-tile-icon { background: var(--c-white); color: var(--c-muted); }
.ff-tile-off .ff-tile-body strong { color: var(--c-soft); }
.ff-tile-body small.ff-tile-stop { color: var(--c-bad-ink); }
.ff-tile-body small.ff-tile-warn { color: var(--c-warn-ink); }

/* the economics of an order (__inc/orderEconomics.latte): the lines of the book and the estimate, its trips */
.oe-card { cursor: default; }
.oe-card:hover { box-shadow: none; background: var(--c-ground); border-top-color: var(--c-line); border-right-color: var(--c-line); border-bottom-color: var(--c-line); }
.oe-card.oe-estimate { border-left-color: var(--c-quiet); }
.oe-line { align-items: flex-start; }
.oe-line-name { color: var(--c-ink); }
.oe-line-name .badge-soft { margin-left: 6px; }
.oe-line-meta { display: block; margin-top: 1px; font-size: 12px; color: var(--c-muted); }
.oe-line-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oe-cat-icon { width: 16px; margin-right: 4px; color: var(--c-muted); }
.pc-line-total > span, .pc-line-total > strong { font-weight: 600; color: var(--c-ink-strong); }
.oe-versus { margin-top: 8px; font-size: 13px; color: var(--c-label); }
.oe-discard { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.oe-discard .ff-form-hint { margin: 0; }
.oe-trips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oe-trip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-white); font-size: 12px; color: var(--c-ink); }
.oe-trip:hover { border-color: var(--c-info); text-decoration: none; }
.oe-trip small { color: var(--c-muted); }
.oe-prediction .alert, .oe-prediction > * { margin-bottom: 0; }

/* the forwarding of an order (Orders/templates/_forwarding.latte): a block per carrier's trip, its edge the state */
.ofw-card { position: relative; border-left-color: var(--c-info); }
.ofw-card.ofw-active { border-left-color: var(--c-warn); }
.ofw-card.ofw-completed { border-left-color: var(--c-ok); }
.ofw-card .op-icon { color: var(--c-info-ink); }
.ofw-card .op-head .badge-soft i { margin-right: 3px; }
.ofw-empty-off { cursor: default; }
.ofw-empty-off:hover { border-color: var(--c-line); }
.ofw-empty-off i { color: var(--c-muted); }

/* the papers an order owes as blocks (__inc/orderDeliverables.latte), washed in their tone: green it is
   here, red with a red frame it is owed, grey it is awaited -- the transport or a lorry of ours to come */
.odl .op-list { margin: 8px 0 20px; }
.odl-card, .odl-card:hover { border-color: var(--c-line-input); border-left-color: var(--c-quiet); background: var(--c-ground); }
.odl-card:hover { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.odl-card.odl-ok, .odl-card.odl-ok:hover { border-color: rgba(34, 186, 160, 0.45); border-left-color: var(--c-ok); background: var(--c-ok-wash); }
.odl-card.odl-owed, .odl-card.odl-owed:hover { border-color: var(--c-bad); background: var(--c-bad-wash); }
.odl-card .op-icon { color: var(--c-muted); }
.odl-card.odl-ok .op-icon { color: var(--c-ok-ink); }
.odl-card.odl-owed .op-icon { color: var(--c-bad-ink); }
.odl-card.odl-static { cursor: default; }
.odl-card.odl-static:hover { box-shadow: none; }
.odl-card .op-head .badge-soft i { margin-right: 3px; }
.odl-flag { font-size: 12px; color: var(--c-soft); }
.odl-flag i { margin-right: 3px; }
.odl-label { color: var(--c-muted); }
.odl-holder { margin-top: 4px; font-size: 13px; }
.odl-holder > i { margin-right: 4px; }
.odl-holder-valid > i { color: var(--c-ok-ink); }
.odl-holder-missing > i, .odl-holder-expired > i { color: var(--c-bad-ink); }
.odl-card > .btn { flex: none; margin: 0; }
.odl-actions { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.odl-actions .btn { margin: 0; }
.odl-card .op-note i { margin-right: 4px; }

/* whether an order can be invoiced, point by point (Orders/templates/_invoicingCheck.latte) */
.ic { margin-bottom: 20px; }
.ic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border: 1px solid var(--c-line-input); border-left-width: 4px; border-radius: 6px; background: var(--c-ground); }
.ic-head > i { font-size: 16px; }
.ic-head-ok { border-color: rgba(34, 186, 160, 0.45); border-left-color: var(--c-ok); background: var(--c-ok-wash); }
.ic-head-ok > i, .ic-head-done > i { color: var(--c-ok-ink); }
.ic-head-done { border-left-color: var(--c-ok); }
.ic-head-bad { border-color: var(--c-bad); background: var(--c-bad-wash); }
.ic-head-bad > i { color: var(--c-bad-ink); }
.ic-head-list { color: var(--c-ink); }
.ic-head-note { color: var(--c-muted); font-size: 12px; }
.ic-head-btn { margin: 0 0 0 auto; }
.ic-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.ic-point > i { margin-right: 6px; }
.ic-ok > i { color: var(--c-ok-ink); }
.ic-bad { color: var(--c-bad-ink); }
.ic-warn { color: var(--c-bad-ink); }
.ic-warn > i { color: var(--c-warn-ink); }
/* said, not a problem yet: the papers to deliver before the transport starts (OB2-08) */
.ic-muted { color: var(--c-muted); }
/* a tile with a menu of its own (cardActions.latte, "Kopírovat", OB2-11): the tile fills its cell */
.ff-tile-dropdown { display: flex; min-width: 0; }
.ff-tile-dropdown > .ff-tile { flex: 1 1 auto; }
/* the margin of a hand-over to a carrier while the price is typed (OB2-06) */
.ff-forward-margin { margin: -6px 0 12px; font-size: 13px; }

/* generating orders from a template (Templates/templates/_generate.latte): the period in the head, a
   block per day -- generated green, waiting quiet -- and the orders made, each a block */
.otg-period { display: inline-flex; align-items: center; gap: 8px; }
.otg-period .form-control { width: 120px; }
.otg-period .btn { margin: 0; }
.otg-one { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.otg-one .form-control { width: 120px; }
.otg-one .btn { margin: 0; }
.otg-one-label { color: var(--c-label); font-weight: 600; }
.otg-refusal { margin-top: 8px; padding: 6px 10px; border: 1px solid var(--c-bad); background: var(--c-bad-wash); color: var(--c-bad-ink); font-size: 13px; }
.otg-refusal i { margin-right: 6px; }
.otg .op-list { gap: 6px; }
.otg-card { padding: 6px 12px; }
.otg-card .op-icon { width: 28px; height: 28px; font-size: 13px; }
.otg-card.otg-done { border-left-color: var(--c-ok); }
.otg-card.otg-done .op-icon { color: var(--c-ok-ink); }
.otg-card.otg-pending { border-left-color: var(--c-quiet); cursor: default; }
.otg-card.otg-pending:hover { box-shadow: none; }
.otg-card > .btn { flex: none; margin: 0; }
.otg-title { margin: 20px 20px 0; }
.otg-bulk { display: flex; align-items: center; gap: 8px; margin: 8px 20px 0; }
.otg-bulk .btn { margin: 0; }
.otg-bulk-all { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 0 13px; font-weight: 500; cursor: pointer; }
.otg-pick { flex: none; display: inline-flex; width: 16px; justify-content: center; }
.otg-pick input { margin: 0; cursor: pointer; }
.otg-none { margin: 8px 20px 0; }

/* the trips of our own an order is on (Orders/templates/_trips.latte): its stops on the trip in a row,
   the ones set off for or done in the colour of done */
.otr-card { position: relative; }
.otr-stops { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.otr-stop strong { color: var(--c-ink); font-weight: 600; }
.otr-stop-started, .otr-stop-started strong { color: var(--c-ok-ink); }

/* the vehicles held for an offer as blocks (Offers/templates/_reservations.latte): a hold that stands
   is green on the edge and opens for editing, one that ended is grey, quieter and opens nothing */
.orv-card.orv-held { border-left-color: var(--c-ok); }
.orv-card.orv-held .op-icon { color: var(--c-ok-ink); }
.orv-card.orv-done { border-left-color: var(--c-quiet); cursor: default; }
.orv-card.orv-done .op-body, .orv-card.orv-done .op-icon { opacity: .7; }
.orv-card.orv-done:hover { box-shadow: none; background: var(--c-ground); border-top-color: var(--c-line); border-right-color: var(--c-line); border-bottom-color: var(--c-line); }
.orv-type { font-size: 13px; color: var(--c-soft); }
.orv-version { font-size: 12px; color: var(--c-muted); }
.orv-note { font-style: italic; }
.orv-soon { color: var(--c-warn-ink); font-weight: 600; }
.orv-empty-off { cursor: default; }
.orv-empty-off:hover { border-color: var(--c-line); }
.orv-empty-off i { color: var(--c-muted); }
/* the pricing as the route and the price (__inc/orderPricing.latte, David, 4. 10. 2026): the figures in the
   head, the recount on the right, a block each for the costs, the price at the margin, the relation, the credit */
.pc-figures { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; }
.pc-figure { display: inline-flex; align-items: baseline; gap: 6px; color: var(--c-ink); }
.pc-figure-label { font-size: 13px; color: var(--c-label); }
.pc-figure strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--c-ink-strong); }
.pc-figure.pc-profit strong, .pc-figure.pc-profit .pc-percent { color: var(--c-ok-ink); }
.pc-figure.pc-loss strong, .pc-figure.pc-loss .pc-percent, .pc-figure.pc-loss i { color: var(--c-bad-ink); }
/* a margin under the company's target (R11-5 a): amber, as the listing and the wizard */
.pc-figure.pc-under strong, .pc-figure.pc-under .pc-percent { color: var(--c-warn-ink); }
.pc-percent { font-size: 13px; font-weight: 600; }
/* the base currency of an amount in a foreign one (OB3-04) */
.pc-base { font-size: 11px; color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-recount { align-items: center; }
.pc-recount select { box-sizing: border-box; width: 260px; height: 32px; padding-top: 0; padding-bottom: 0; }
/* select2 draws it at "100 %" of a flex row, which is as narrow as its text: the arrow ran over the words */
.pc-recount .select2-container { flex: 0 0 240px; width: 240px !important; }
.pc-blocks { margin: 8px 20px 0; display: flex; flex-direction: column; gap: 10px; }
/* the empty pricing stands in the blocks, which already keep it off the edges: its own margin doubled them */
.pc-blocks > .tp-empty { margin: 12px 0 0; }
.pc-card { cursor: default; border-left-color: var(--c-info); }
.pc-card:hover { background: var(--c-ground); box-shadow: none; }
.pc-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--c-label); }
.pc-title i { margin-right: 6px; color: var(--c-muted); }
.pc-title small { margin-left: 8px; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--c-muted); }
.pc-title .badge-soft { margin-left: 8px; text-transform: none; letter-spacing: 0; }
.pc-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pc-country { font-size: 11px; padding: 1px 7px; border-radius: 3px; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); color: var(--c-soft); }
.pc-lines { margin: 0; }
.pc-line { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 13px; }
.pc-line:last-child { border-bottom: 0; }
.pc-line dt { font-weight: 400; color: var(--c-ink); }
.pc-line dt small, .pc-line dd small { margin-left: 6px; color: var(--c-muted); }
.pc-line dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--c-ink); }
/* how a cost came about, under its name */
.pc-calc { display: block; margin-top: 1px; font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.pc-line dd { align-self: flex-start; }
.pc-line-total { border-top: 1px solid var(--c-line); margin-top: 2px; }
.pc-line-total dt, .pc-line-total dd { font-weight: 600; color: var(--c-ink-strong); }
.pc-line.pc-loss dt, .pc-line.pc-loss dd { color: var(--c-bad-ink); font-weight: 600; }
.pc-warning { margin: 8px 0 0; font-size: 12px; color: var(--c-warn-ink); }
.pc-warning i { margin-right: 4px; }
.pc-foot { margin: 8px 0 0; font-size: 12px; color: var(--c-muted); }
.pc-empty { margin: 0; font-size: 13px; color: var(--c-muted); }
.pc-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.pc-suggest-amount strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--c-ink-strong); }
.pc-suggest-amount small { margin-left: 6px; color: var(--c-muted); }
.pc-apply { margin: 0; min-width: 360px; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 8px; }
.pc-stat { display: inline-flex; flex-direction: column; font-size: 12px; color: var(--c-label); }
.pc-stat strong { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--c-ink-strong); }
.pc-stat small { color: var(--c-muted); }
.vis-labelset .group-note i { font-size: 8px; }

/* required and refused, said at the field (DS-01): an asterisk on the label of a required control,
   the message under the field, a red dot on the tab that holds an error */
label.ff-required::after, h3.ff-required::after { content: " *"; color: var(--c-bad-ink); font-weight: 600; }
.form-group .help-block.text-danger { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.35; color: var(--c-bad-ink); }
.nav-tabs a.has-error::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-bad-ink); margin-right: 6px; vertical-align: 1px; }
.form-group.has-error label { color: var(--c-bad-ink); }
/* a partner field in error: the box of Select2 and its two buttons are framed red as one control (DS2-03) */
.form-group.has-error .ff-customer-pick .select2-selection,
.form-group.has-error .ff-customer-pick .btn { border-color: var(--c-bad-ink); }
/* a record stored without a field required now: the field asks for it, the save is not blocked (DS2-03) */
.form-group .ff-required-missing { margin: 4px 0 0; color: var(--c-warn-ink); }
.form-group.has-warning label { color: inherit; }
.form-group.has-warning .form-control,
.form-group.has-warning .select2-selection { border-color: var(--c-warn); }
/* the warning line under a field (an expired document, HR10-05): Bootstrap's #8a6d3b was 3.45:1 in the dark theme */
.form-group.has-warning .help-block.text-warning { color: var(--c-warn-ink); }

/* the one dialog that asks (custom.js ffChoose, DS2-04): over a modal it stands, with its backdrop, on top */
.modal.ff-confirm { z-index: 1070; }
.modal-backdrop.ff-confirm-backdrop { z-index: 1065; }
.modal.ff-confirm .ff-confirm-prompt { margin: 12px 0 0; }

/* the card of a vehicle (FL-07): state chips and a grid of labelled values */
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.4; background: var(--c-none-wash); color: var(--c-ink); }
.ff-chip a { color: inherit; text-decoration: underline; }
.ff-chip-success { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-chip-info { background: var(--c-info-wash); color: var(--c-info-ink, var(--c-info)); }
.ff-chip-warning { background: var(--c-warn-wash); color: var(--c-warn-ink, var(--c-warn)); }
.ff-chip-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.ff-chip-muted { background: var(--c-none-wash); color: var(--c-neutral-ink); }
.ff-kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; }
/* the values of a type under a closed box of a card: four of them in one row of the section */
.ff-kv-grid-compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 14px; margin-top: 4px; }
.ff-kv-grid-compact .ff-kv-value { font-size: 14px; }
.ff-kv-grid .ff-kv-value { white-space: normal; }
.ff-kv-grid .ff-kv-value small { display: block; }

/* the permission matrix of a role (AD-02) */
.ff-matrix-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.ff-matrix-tools .ff-matrix-search { max-width: 320px; }
.ff-matrix-tools .ff-matrix-bulk { display: flex; gap: 6px; margin-left: auto; }
.ff-matrix-tools .ff-matrix-bulk .btn { float: none; margin: 0; }
.ff-matrix thead th { position: sticky; top: 0; background: var(--c-white); z-index: 2; box-shadow: inset 0 -1px 0 var(--c-line); }
/* a right's cell is wide enough for its checkbox with the right's name beside it, "Osobní údaje" included */
.ff-matrix .ff-matrix-row > td + td { width: 124px; min-width: 124px; }
.ff-matrix-col-toggle, .ff-matrix-section-toggle, .ff-matrix-row-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: inherit; cursor: pointer; }
.ff-matrix-col-toggle input, .ff-matrix-section-toggle input, .ff-matrix-row-toggle input { margin: 0; }
/* a section of the matrix in the blue-grey of the heads, a step lighter than the matrix head (15. 9. 2026) */
.ff-matrix-section th { background: var(--c-head); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; padding-top: 10px; }
.ff-matrix-row td { vertical-align: middle; }
.ff-matrix-row td small { display: block; font-size: 10px; }
/* a right is its checkbox with its name beside it, on one line */
.ff-matrix .ff-matrix-cell { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; white-space: nowrap; cursor: pointer; }
/* the screen's checkbox stands under its section's checkbox: the row cell takes the section head's 15px */
.ff-matrix .ff-matrix-row > td:first-child { padding-left: 15px !important; }
/* the same size as the section's and the screen's checkbox: the browser's own, not a larger 16px */
.ff-matrix .ff-matrix-cell input { margin: 0; cursor: pointer; }
/* the hover every table uses, not the info blue */
.ff-matrix-row:hover td { background: var(--c-row-hover); }
/* AD7-06: with Naše firmy and Cash-flow the matrix did not fit 1366 px -- the cells take what their name needs */
.ff-matrix .ff-matrix-row > td + td { width: auto; min-width: 0; padding-left: 4px; padding-right: 4px; }
.ff-matrix .ff-matrix-cell { gap: 4px; }

/* ==== document listings (S-11): the key column stays while the rest scrolls, the total sits under it ==== */

/* every row paints its own ground so a sticky cell has something to cover the scrolled cells with;
   the striped and hover rules are more specific and keep winning */
.ff-table-sticky tbody tr,
.ff-table-sticky tfoot tr { background-color: var(--c-white); }
.ff-table-sticky .ff-col-actions,
.ff-table-sticky .ff-col-key { position: sticky; z-index: 2; background-color: inherit; }
.ff-table-sticky .ff-col-actions { left: 0; }
/* each sticky cell is a layer of its own, so a row's menu went under the sticky cells of the rows
   below it (testing, 15. 9. 2026); the cell with an open menu comes above them and the heading */
.ff-table-sticky .ff-col-actions:has(.open) { z-index: 4; }
/* the hover colour is translucent and lies on the row; a sticky cell inherited it and painted it a
   second time over the row's own, so the first columns went darker under the pointer (testing,
   15. 9. 2026). A sticky cell has to be opaque, so it gets the row ground with the hover laid over once. */
.ff-table-sticky > .table.table-hover > tbody > tr:hover > td.ff-col-check,
.ff-table-sticky > .table.table-hover > tbody > tr:hover > td.ff-col-actions,
.ff-table-sticky > .table.table-hover > tbody > tr:hover > td.ff-col-key { background-color: var(--c-white); background-image: linear-gradient(var(--c-row-hover), var(--c-row-hover)); }
.ff-table-sticky .ff-col-key { left: 40px; }
/* the header is sticky on top already; its key cell is the corner and must sit above both */
.ff-table-sticky > table > thead > tr > th.ff-col-actions,
.ff-table-sticky > table > thead > tr > th.ff-col-key { z-index: 3; background-color: var(--c-table-head); }
/* the edge appears only once something has scrolled under it */
.ff-table-scroll.is-scrolled-x .ff-col-key { box-shadow: inset -1px 0 0 var(--c-line), 6px 0 8px -4px rgba(31, 36, 42, 0.18); }

.ff-table .ff-totals td {
    position: sticky;
    bottom: 0;
    padding-top: 9px;
    padding-bottom: 9px;
    border-top: 2px solid var(--c-line);
    border-bottom: 0;
    background-color: var(--c-ground-bar);
    font-size: 13px;
    vertical-align: middle;
}
.ff-table .ff-totals tr + tr td { border-top: 1px solid var(--c-line-soft); }
/* a footer of more rows -- a total per currency: every cell stuck to bottom 0 laid the rows over each other and the
   CZK total hid under the EUR one (faktury vydané, 4th review). The whole footer sticks instead, its cells only
   keep their sideways stick, and the strip under it hangs off the last row alone. */
.ff-table tfoot:has(> tr + tr) { position: sticky; bottom: 0; z-index: 3; }
.ff-table tfoot:has(> tr + tr) td { bottom: auto; }
.page-inner .content-container .ff-table tfoot:has(> tr + tr) > tr:not(:last-child) td::after { display: none; }
/* DS6-03: at 768 px the stuck footer of two currencies took ~150 px of a screen of seven rows -- on a low window
   its rows are compact (the footer still sticks whole: rows stuck one by one lay over each other) */
@media (max-height: 860px) {
	.ff-table .ff-totals td { padding-top: 3px; padding-bottom: 3px; font-size: 12px; line-height: 1.3; }
	.ff-table .ff-totals .ff-totals-currencies,
	.ff-table .ff-totals .ff-totals-currencies:first-child { margin-top: 0; font-size: 12px; line-height: 1.3; }
	/* a footer of four rows and more (Stojné by state: six, 224 px) stays under the table: stuck it left one row of
	   the listing on 1366 x 768 */
	.ff-table tfoot:has(> tr:nth-child(4)) { position: static; }
}
/* a total over more currencies: the converted figure, each currency as paid under it (FL2-02) */
.ff-table .ff-totals .ff-totals-currencies { margin-top: 2px; font-size: 12px; line-height: 1.35; }
.ff-table .ff-totals .ff-totals-currencies:first-child { margin-top: 0; font-size: 13px; }
/* the totals stick to the page's frame, whose padding left the rows showing through under them
   (David, 1. 10. 2026) -- a strip of the panel's ground covers the gap, as above a stuck heading */
.page-inner .content-container .ff-table .ff-totals td::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: var(--c-white); pointer-events: none; }
.ff-table-sticky .ff-totals .ff-col-actions,
.ff-table-sticky .ff-totals .ff-col-key { z-index: 3; background-color: var(--c-ground-bar); }
.ff-table .ff-totals strong { color: var(--c-ink-strong); }

/* the filter bar carries the form's own submit; its buttons align with the fields' baseline */
.ff-filter .ff-actions .btn-addon { white-space: nowrap; }
.ff-filter .ff-presets .ff-preset:hover { text-decoration: none; }

/* a listing with a tick column: the tick is the first sticky cell, the others move over by its width */
.ff-table-sticky.ff-table-sticky-check .ff-col-check { position: sticky; left: 0; z-index: 2; background-color: inherit; }
.ff-table-sticky.ff-table-sticky-check .ff-col-actions { left: 30px; }
.ff-table-sticky.ff-table-sticky-check .ff-col-key { left: 70px; }
.ff-table-sticky.ff-table-sticky-check > table > thead > tr > th.ff-col-check { z-index: 3; background-color: var(--c-table-head); }
.ff-table-sticky-check .ff-totals .ff-col-check { z-index: 3; background-color: var(--c-ground-bar); }
.ff-table .ff-col-check input[type="checkbox"] { margin: 0; vertical-align: middle; }

/* what happens to the ticked rows sits right under them */
.ff-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ff-bulk-bar .ff-bulk-label { font-weight: 600; color: var(--c-ink); }
.ff-bulk-bar .ff-quiet { flex-basis: 100%; }
/* under a long listing (Poptávky, Faktury) the bar stays at the foot of the window while the listing is on screen, as
   the bulk buttons of Objednávky stay in the head (W8-3 review: it was below all the rows) */
.ff-bulk-sticky { position: sticky; bottom: 0; z-index: 5; background: var(--c-white); border-top: 1px solid var(--c-line); box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06); padding: 8px 12px; margin-left: -12px; margin-right: -12px; }
/* the paginator reads "1–100 z 1 135" with an arrow each way; an arrow with nowhere to go is quiet */
/* a disabled arrow in the quiet ink, not faded: at 40 % it was 2.17:1 (DS8-05); --c-muted holds 4.7:1 */
.paginator-container .paginator-pages > a.disabled { pointer-events: none; opacity: 1; color: var(--c-muted) !important; border-color: var(--c-line-soft); }
.paginator-container .paginator-pages > span { border-color: transparent; color: var(--c-muted) !important; cursor: default; }

/* a bulk action that needs a value -- which dispatcher, which group -- keeps its select next to its button */
.ff-bulk-bar .ff-bulk-group { display: inline-flex; align-items: center; gap: 4px; }
.ff-bulk-bar .ff-bulk-group .form-control { width: auto; min-width: 160px; height: 30px; }
.ff-bulk-bar .ff-bulk-group .select2-container { width: 180px !important; }
/* a listing's key cell carries a second, quieter line: the code under the name, the registration number under the company */
.ff-table .ff-col-key > small { display: block; margin-top: 1px; }
.ff-table .ff-col-key > strong.ff-clip { max-width: 220px; }
/* strength of a new password (ffPasswordStrength): five segments, the word, and what would help; it
   advises only, the form refuses a password for its length alone */
.ff-pw-strength { margin-top: 6px; }
.ff-pw-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.ff-pw-bar i { display: block; height: 4px; border-radius: 2px; background: var(--c-line); transition: background-color .15s; }
.ff-pw-strength[data-level="0"] .ff-pw-bar i:nth-child(-n+1),
.ff-pw-strength[data-level="1"] .ff-pw-bar i:nth-child(-n+2) { background: var(--c-bad); }
.ff-pw-strength[data-level="2"] .ff-pw-bar i:nth-child(-n+3) { background: var(--c-warn); }
.ff-pw-strength[data-level="3"] .ff-pw-bar i:nth-child(-n+4),
.ff-pw-strength[data-level="4"] .ff-pw-bar i { background: var(--c-ok); }
.ff-pw-label { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-soft); }
.ff-pw-label strong { font-weight: 600; }
.ff-pw-strength[data-level="0"] .ff-pw-label strong,
.ff-pw-strength[data-level="1"] .ff-pw-label strong { color: var(--c-bad-ink); }
.ff-pw-strength[data-level="2"] .ff-pw-label strong { color: var(--c-warn-ink); }
.ff-pw-strength[data-level="3"] .ff-pw-label strong,
.ff-pw-strength[data-level="4"] .ff-pw-label strong { color: var(--c-ok-ink); }
.ff-pw-tips { margin: 2px 0 0; padding-left: 16px; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-soft); }
.ff-pw-strength[data-level="-1"] .ff-pw-label,
.ff-pw-advice[data-level="-1"] .ff-pw-tips,
.ff-pw-advice:not([data-level="-1"]) .ff-pw-hint { display: none; }
/* a form that keeps a full-width place for the advice (the account page) */
[data-password-advice] { margin-bottom: 10px; }
[data-password-advice] .ff-pw-hint { margin-top: 0; }

/* two filters under one column of a listing (the partner of a record of the directory: a piece of
   its name, and whether the record has a partner at all) */
.ff-filter-pair { display: flex; gap: 6px; }
.ff-filter-pair > .form-control:first-child { flex: 1 1 auto; min-width: 0; }
.ff-filter-pair > select.form-control { flex: 0 0 128px; width: 128px; }

/* ==== plachta: náhledy (review r1) ==== */
/* the three previews of the board (order, trip, vehicle) are one family: the same width, a fixed
   height the screen can hold, the head, the figures and the tabs standing still and only the body
   scrolling -- they used to run past the bottom of a Full HD screen and jump with every tab */
#modal-orderDetail .modal-dialog,
#modal-tripDetail .modal-dialog,
#modal-vehicleInfo .modal-dialog,
#modal-driverInfo .modal-dialog { width: 95%; max-width: 1400px; height: calc(100vh - 60px); margin: 30px auto; }
#modal-orderDetail .modal-content,
#modal-tripDetail .modal-content,
#modal-vehicleInfo .modal-content,
#modal-driverInfo .modal-content { height: 100%; display: flex; flex-direction: column; }
#modal-orderDetail .modal-header, #modal-orderDetail .modal-footer,
#modal-tripDetail .modal-header, #modal-tripDetail .modal-footer,
#modal-vehicleInfo .modal-header, #modal-vehicleInfo .modal-footer,
#modal-driverInfo .modal-header, #modal-driverInfo .modal-footer { flex: 0 0 auto; }
#modal-orderDetail .modal-body,
#modal-tripDetail .modal-body,
#modal-vehicleInfo .modal-body,
#modal-driverInfo .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: 0; }
.ff-modal-top { position: sticky; top: 0; z-index: 6; background: var(--c-white); padding-top: 15px; margin-bottom: 4px; }
.ff-modal-top .od-chips, .ff-modal-top .ve-chips { margin-bottom: 12px; }
/* the order's preview (David, 9. 10. 2026): the tabs of the order's card over a line, the active one open into
   the white below; the route card holds the card's own drawing of the route edge to edge, the map under its
   summary, and under each stop the dispatcher's line (_orderDetailStopExtra.latte) */
/* the page of the order's card inside the modal (David, 9. 10. 2026): the grey ground, the tabs on it grey, the
   chosen one white and open into the white panel of its content -- on white the tabs did not read as tabs */
/* every preview the same (David, 30. 10. 2026): the lorry's on the board and the driver's in the deployment plan too */
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .modal-body { margin-top: 0; background: var(--c-canvas); }
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .ff-modal-top { background: var(--c-canvas); margin-bottom: 0; }
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .tab-content { margin-top: 0 !important; padding: 12px; background: var(--c-white); box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1); }
/* the main facts of the order over its tabs, as pills (David, 9. 10. 2026): a quiet edge, the margin green or red */
.od-chip-fact { border-left-color: var(--c-line-input); }
.od-chip-fact .od-chip-value .badge-soft { margin-right: 2px; }
.od-chip-sub { font-size: 11px; color: var(--c-muted); }
.od-chip-profit { border-left-color: var(--c-ok); }
.od-chip-profit .od-chip-value { color: var(--c-ok-ink, #1e8e63); }
.od-chip-loss { border-left-color: var(--c-bad); }
.od-chip-loss .od-chip-value { color: var(--c-bad-ink); }
.od-chip-muted .od-chip-value { color: var(--c-muted); }
/* the buttons under the grey page need no line over them (David, 9. 10. 2026) */
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .modal-footer > .btns { border-top: 0; }
/* the buttons in the order of the markup -- the card to open in green, then Zavřít (review r4): the theme floats a bare
   .btn left, so Zavřít overtook the green one held in its snippet's inline box on three previews of four */
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .modal-footer > .btns { display: flex; align-items: center; gap: 6px; }
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .modal-footer > .btns > [id^="snippet-"] { display: inline-flex !important; gap: 6px; }
:is(#modal-orderDetail, #modal-tripDetail, #modal-vehicleInfo, #modal-driverInfo) .modal-footer > .btns .btn { float: none; margin: 0; }
/* the buttons of a card sit in its flow: the theme floats .btn and they stuck to the card's bottom edge */
.od-info-body .btn { float: none; }
.od-info-body .m-t-xs:has(> .btn) { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* the card's own drawing read only: nothing to click on a stop or a price line */
.tp-readonly .tp-card { cursor: default; }
.tp-readonly .tp-card:hover { border-top-color: var(--c-line); border-right-color: var(--c-line); border-bottom-color: var(--c-line); background: var(--c-ground); box-shadow: none; }
/* the customer's credit under the customer, as the order's pricing card says it */
.od-credit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-line); }
.od-credit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--c-label); }
.od-credit-head i { margin-right: 4px; color: var(--c-muted); }
.od-credit-warning { margin: 6px 0 0; font-size: 12px; color: var(--c-warn-ink, #8a5a00); }
.od-credit-note { margin: 4px 0 0; font-size: 12px; color: var(--c-soft); font-style: italic; }
.od-assign-list { display: flex; flex-direction: column; gap: 8px; }
.od-assign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.od-assign-row .od-trip-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.tp-readonly .tp-empty, .tp-readonly .tp-empty:hover { cursor: default; border-color: var(--c-line); }
.od-route-card { overflow: visible; }
.od-route-card > .od-info-body { padding: 0; }
.od-route-card .tp { padding-bottom: 4px; }
.od-route-card .tp-summary { border-bottom: 0; }
.od-route-map { height: 300px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.od-stop-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c-line); font-size: 12px; }
.od-stop-trip { display: inline-flex; align-items: center; gap: 6px; color: var(--c-soft); }
/* the trip's preview (David, 13. 10. 2026): what a delay would knock over, under the stop it was asked at; the
   notes of the route card off its edges; the map of a route not stored in a tab of its own; the phone under a name */
.td-delay-impact { margin-top: 10px; padding: 10px 12px; background: var(--c-white); border: 1px solid var(--c-line); }
.td-delay-impact-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: var(--fw-semi); color: var(--c-ink); }
.td-delay-impact-head i { color: var(--c-soft); }
.td-delay-impact .ff-note { margin: 0; }
.td-route-note { margin: 12px 16px 0; }
.td-map-note { display: flex; align-items: center; gap: 10px; }
.td-map-note > span { flex: 1 1 auto; }
.td-route-map-tab { height: clamp(420px, calc(100vh - 420px), 900px); border: 1px solid var(--c-line); }
/* the big map with its stops and legs on the left (David, 13. 10. 2026) */
.td-map-layout { display: flex; gap: 14px; align-items: stretch; }
.td-map-layout > .td-route-map-tab { flex: 1 1 auto; min-width: 0; }
/* small boxes in the look of the stops' cards, the place, the time and the state only (__inc/routeMapList.latte) */
.td-map-list { flex: 0 0 320px; max-height: clamp(420px, calc(100vh - 420px), 900px); overflow-y: auto; padding-right: 6px; }
.td-map-list .tp-stop { gap: 8px; }
.td-map-list .tp-dot { width: 24px; height: 24px; line-height: 20px; font-size: 11px; margin-top: 4px; }
.td-map-list .td-map-box { padding: 6px 10px; transition: border-color .1s, box-shadow .1s; }
.td-map-box-place { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.td-map-box-place .tp-flag { align-self: center; }
.td-map-box-place .tp-street { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.td-map-box-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 12px; color: var(--c-soft); }
.td-map-list .tp-list { margin: 0; }
.td-map-list .tp-stop { padding: 4px 0; }
/* the line through the smaller dots: their centre 4px + 4px + 12px down */
.td-map-list .tp-stop::before, .td-map-list .tp-leg::before { left: 11px; }
.td-map-list .tp-stop:first-child::before { top: 20px; }
.td-map-list .tp-stop:last-child::before { height: 20px; }
.td-map-list .tp-leg { padding: 2px 0 2px 32px; font-size: 12px; }
.td-map-list .tp-stop:hover .tp-card, .td-map-list .tp-stop.td-map-on .tp-card { border-top-color: var(--c-ink); border-right-color: var(--c-ink); border-bottom-color: var(--c-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.td-map-list .tp-leg { cursor: default; }
.td-map-list .tp-leg:hover { color: var(--c-ink); font-weight: var(--fw-semi); }
.td-crew-phone { margin-top: 4px; font-size: 12px; }
.td-map-missing { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--c-ground); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); color: var(--c-soft); }
.td-map-missing > i { font-size: 20px; color: var(--c-quiet); }
.td-map-missing > span { flex: 1 1 auto; }
/* the crew's cards: the plate or the driver as a tag, under it all that is known, in sections as in the tooltip */
.td-crew-card .od-info-head { display: flex; align-items: center; }
.td-crew-card .od-info-head > i + span { flex: 1 1 auto; }
.td-crew-card .td-assign-group { float: none !important; flex: none; }
.td-crew-headline { margin-bottom: 8px; }
.td-crew-section { margin: 12px 0 2px; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: 11px; font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-label); }
.td-crew-note { margin-top: 10px; color: var(--c-muted); font-size: 12px; }
.td-crew-extra { border-top: 1px solid var(--c-ground); }
/* the card of a trip (Trips/templates/_stops.latte, _modal-tripStopsForm.latte, David, 13. 10. 2026): the stops as an
   order's route, the order's number among the goods, the points of the orders in the stop's modal, the orders as blocks */
.ts-empty-buttons { margin-top: 10px; text-align: center; }
.ts-op { margin-bottom: 10px; }
/* the crew of a trip by actions at its stops (TripCrewService, David, 13. 10. 2026): the box in the head, the
   actions as tags on the stop and in its modal, the crew of a leg where it changed */
.ts-crew { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-ground); padding: 8px 10px; }
.ts-crew-row { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.ts-crew-row + .ts-crew-row { border-top: 1px dashed var(--c-line); }
.ts-crew-label { flex: 0 0 90px; font-size: 12px; color: var(--c-label); padding-top: 3px; }
.ts-crew-items { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.ts-crew-source { font-size: 12px; color: var(--c-muted); padding: 2px 0 4px 100px; }
/* the trip it was taken over from, a link on the grey of the crew box: #337ab7 was 4.28:1 (DS10-03) */
.ts-crew a:not(.btn, [class*="text-"], [class*="badge"], .label) { color: var(--c-link-ink); }
.ts-crew-mismatch { margin: 6px 0; font-size: 12px; }
.ts-crew-mismatch .btn { display: table; float: none; margin: 6px 0 0; }
.ts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.ts-action { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid var(--c-alt); border-radius: 12px; background: var(--c-alt-wash); color: var(--c-ink); font-size: 12px; line-height: 20px; white-space: nowrap; }
.ts-action > i:first-child { color: var(--c-alt); }
.ts-action-done { border-color: var(--c-ok); background: var(--c-ok-wash); }
.ts-action-done > i { color: var(--c-ok-ink) !important; }
.ts-action-delete { color: var(--c-muted); margin-left: 2px; }
.ts-action-delete:hover { color: var(--c-bad-ink); }
.ts-action-problem { font-size: 12px; color: var(--c-bad-ink); }
.ts-action-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ts-action-form > select, .ts-action-form > .select2-container { flex: 1 1 100%; }
.ts-action-field { flex: 1 1 100%; min-width: 0; }
.ts-action-field .select2-container { width: 100% !important; }
.ts-action-form .btn { float: none; }
.ts-leg-crew { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 6px; }
/* where the trip is with the terminal, and the button that sends it (David, 13. 10. 2026) */
.ts-terminal { margin: 0 0 14px; }
.ts-terminal-body { display: flex; align-items: flex-start; gap: 12px; }
.ts-terminal-body > i { font-size: 18px; margin: 3px 0 0; }
.ts-terminal-body > div { flex: 1 1 auto; min-width: 0; }
.ts-terminal-body > .btn { flex: none; float: none; }
.ts-terminal-text { color: var(--c-muted-strong); font-size: 12px; line-height: 1.5; }
.ts-terminal-log { margin-top: 8px; font-size: 12px; }
.ts-terminal-log summary { cursor: pointer; color: var(--c-soft); }
.ts-terminal-log .table { margin: 6px 0 0; background: transparent; }
.ts-op-add { margin-bottom: 14px; }
.ts-op-add .btn { float: none; }
.pf-type.ts-type { display: block; padding-bottom: 4px; }
.pf-type.ts-type .ff-form-hint { margin-top: -4px; }
.ts-op-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.ts-order-card { cursor: pointer; }
.ts-order-right { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
/* the orders' shares of the trip as a table; the row opens the order's preview */
/* the summaries of the trip's preview as tables (.od-card-table, David, 13. 10. 2026): the margin's row coloured */
.od-card-table > tbody > tr.od-card-margin > td { font-size: 13px; }
.od-card-table > tbody > tr.od-card-profit > td { color: var(--c-ok-ink); background: var(--c-ok-wash); }
.od-card-table > tbody > tr.od-card-loss > td { color: var(--c-bad-ink); background: var(--c-bad-wash); }
.td-alloc-table > tbody > tr { cursor: pointer; }
.td-alloc-table > tbody > tr:hover > td { background: var(--c-ground); }
.td-alloc-table > tbody > tr > td { white-space: nowrap; }
.td-alloc-table > tbody > tr > td:first-child { white-space: normal; }
.td-alloc-note { margin-top: 8px; font-size: 12px; }
/* 1366 px: the table was 437 px in a card of 383 -- the customer's name under the number clips (whole in its
   tooltip), the gaps between the columns narrow, the figures stay whole */
@media (max-width: 1599px) {
	.od-info-card .td-alloc-table { border-spacing: 6px 0; margin: 0 -6px; width: calc(100% + 12px); }
	.td-alloc-table > thead > tr > th,
	.td-alloc-table > tbody > tr > td { padding: 4px 4px !important; }
	.td-alloc-table > thead > tr > th { white-space: normal; }
	.td-alloc-table > tbody > tr > td:first-child { width: 100%; max-width: 0; }
	.td-alloc-table > tbody > tr > td:first-child > .ff-clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* the stop's actions under its three dots, the move to another lorry as a searchable list inside (_orderDetailStopActions.latte) */
.od-stop-menu { min-width: 260px; }
/* the narrower card of the preview: the place gives way, the time and the three dots stay on its line at the right */
.tp-readonly .tp-head { flex-wrap: nowrap; }
.tp-readonly .tp-where { flex: 1 1 auto; width: auto; }
.tp-readonly .tp-head > .tp-time { flex: none; }
.od-stop-menu .od-stop-move { padding: 0; }
.od-stop-menu .od-move-menu { list-style: none; margin: 0; padding: 0 0 4px; max-height: 260px; min-width: 0; }
.od-stop-menu .od-move-menu > li > a { display: block; padding: 5px 14px; white-space: nowrap; }

/* card heads as in the order preview: Title case 14/600, no capitals, no Helvetica with tracking */
/* the cards and the chips of the lorry's and the driver's previews as those of the trip's and the order's (David, 30. 10.
   2026): a quiet frame without the coloured edge, the head in small capitals on the table's grey, the chips with a quiet
   edge -- they had coloured edges and title-case heads, and the four previews read as two applications */
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-card { border: 1px solid var(--c-line); border-radius: 3px; }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-head { padding: 10px 14px; background: var(--c-table-head); border-bottom: 1px solid var(--c-line); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-label); }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-head i { color: var(--c-label) !important; }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-dl { grid-template-columns: 160px 1fr; }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-chip { flex: 0 1 auto; border-left-color: var(--c-line-input); }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-chip > i { color: var(--c-muted); }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-reg { font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border-radius: var(--r); }

/* the head of a stop or a point: grey with dark text in both previews -- the "stop-*" rule meant for a
   strong header painted it white on a pale wash, and the detach / move icons white on grey; the state
   is the badge and the coloured left edge */
#modal-tripDetail .transport-point .transport-point-top,
#modal-orderDetail .transport-point .transport-point-top { background-color: var(--c-head) !important; color: var(--c-ink) !important; }
#modal-tripDetail .transport-point .transport-point-top-buttons a,
#modal-orderDetail .transport-point .transport-point-top-buttons a { color: var(--c-soft) !important; border: 1px solid var(--c-line-input-sm); background: var(--c-white); width: 26px; height: 26px; line-height: 24px; border-radius: var(--r); }
#modal-tripDetail .transport-point .transport-point-top-buttons a:hover,
#modal-orderDetail .transport-point .transport-point-top-buttons a:hover { color: var(--c-link) !important; background: var(--c-link-wash); }

/* figures in the head of a preview: a delay, a margin the estimate cannot vouch for */
.od-chip.od-chip-warning { background: var(--c-warn-wash); border-color: var(--c-warn); color: var(--c-warn-ink); }
.od-chip.od-chip-incomplete .od-chip-value { color: var(--c-muted); }
.od-chip .badge-soft { margin-left: 4px; }
.od-step-eta { margin-left: 4px; }
.ff-costs-incomplete { margin-bottom: 10px; }
.od-kv.od-kv-margin.od-kv-incomplete dt, .od-kv.od-kv-margin.od-kv-incomplete dd { background: var(--c-ground) !important; color: var(--c-muted) !important; }
/* the assignment's "přínos" over the shared-out margin, with what it is made of under its name (review r9) */
.od-kv-contribution .od-contribution-parts { display: block; font-weight: 400; margin-top: 2px; }
.od-contributions { margin-bottom: 12px; }
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-block-note { margin-bottom: 8px; }

/* the chosen colour of a note is a ring, not a bigger dot -- the row jumped when it grew */
#modal-noteForm .dispatch-note-swatch,
#modal-noteForm .dispatch-note-swatch:hover,
#modal-noteForm .dispatch-note-swatch.selected { transform: none; border: 2px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-line-input-sm); }
#modal-noteForm .dispatch-note-swatch:hover { box-shadow: 0 0 0 2px var(--c-soft); }
#modal-noteForm .dispatch-note-swatch.selected { box-shadow: 0 0 0 3px var(--c-ink); }
#modal-noteForm .dispatch-note-swatch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-info); }
:is(#modal-vehicleInfo, #modal-driverInfo) :is(.badge-warning, .badge-default) { border-radius: var(--r-pill); }

/* review r2: what is wrong with a trip, said in the previews as the board marks it */
/* a split order said at the top of its preview, with the way back (plachta review r4) */
.ff-info-box { border: 1px solid var(--c-info); border-left-width: 4px; background: var(--c-info-wash); color: var(--c-ink); border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; }
.td-conflict-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* the ways out of a conflict grouped by the order (review r20, Klára) */
.td-order-actions { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--c-line-panel); }
.td-order-actions:last-child { border-right: 0; }
.td-order-actions-label { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--c-ink); }
/* a long button stays inside its box and wraps its words (review r20, Jana) */
.td-conflict-actions .btn { white-space: normal; text-align: left; max-width: 100%; height: auto; }
/* the trip in the lorry's plan: a conflict red as on the board, the card opens the trip (review r20, Klára) */
.vi-plan-trip.has-conflict { border-left: 3px solid var(--c-bad, #cf3434) !important; }
.vi-plan-conflict, .vi-plan-conflict i { color: var(--c-bad-ink, #cf3434) !important; }
.vi-plan-trip[data-open-trip] { cursor: pointer; }
.od-trip-actions { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.od-split-banner, .ff-stale-strip { display: flex; align-items: center; gap: 12px; }
/* "Změněno jinde" in the header beside the close button: it moves nothing under the cursor (review r8) */
#modal-orderDetail .modal-header, #modal-tripDetail .modal-header { position: relative; }
.modal-header .ff-stale-strip { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); gap: 8px; padding: 3px 4px 3px 10px;
	border-radius: var(--r); background: var(--c-info-wash); color: var(--c-info-ink); font-size: 12px; font-weight: var(--fw-semi); white-space: nowrap; }
/* the detail of a toast's margin under the mouse (review r8) */
.ff-toast .ff-toast-info { cursor: help; }
.od-split-banner .od-split-text, .ff-stale-strip .od-split-text { flex: 1; min-width: 0; }
.od-split-banner .od-split-actions, .ff-stale-strip .od-split-actions { flex: none; display: inline-flex; gap: 6px; }
.ff-conflict-box { border: 1px solid var(--c-bad-ink); border-left-width: 4px; background: var(--c-bad-wash); color: var(--c-bad-ink); border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; }
.ff-conflict-head { font-weight: var(--fw-semi); margin-bottom: 4px; }
.ff-conflict-box ul { margin: 0; padding-left: 20px; color: var(--c-ink); }
/* a lorry ban on a stop: a reservation, in the warning colours (Driving bans, 6. 10. 2026) */
.ff-conflict-box.ff-ban-box { border-color: var(--c-warn); background: var(--c-warn-wash); color: var(--c-warn-ink); }
/* the way out under each ban (review r11, Radek) */
.ff-conflict-box.ff-ban-box .ff-ban-remedy { margin-top: 2px; color: var(--c-ink); font-weight: var(--fw-semi); }
.ff-conflict-box li { margin: 2px 0; }
/* a trip's warnings in a tab of their own, over them one line that says it -- red when the trip cannot go as
   planned, orange when it only needs watching (card and preview, David, 13. 10. 2026); orange, not the yellow
   ink, which does not read */
:root { --c-warn-orange: #c25e00; }
:root[data-theme="dark"] { --c-warn-orange: #f08a24; }
.ff-warn-notice { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 12px; border: 1px solid; border-left-width: 4px; border-radius: var(--r); font-size: inherit; text-decoration: none !important; cursor: pointer; }
.ff-warn-notice > i { flex: none; }
.ff-warn-notice > span:first-of-type { flex: 1; min-width: 0; color: var(--c-ink); }
.ff-warn-notice .ff-warn-notice-link { flex: none; font-weight: var(--fw-semi); white-space: nowrap; }
.ff-warn-notice-danger { border-color: var(--c-bad-ink); background: var(--c-bad-wash); color: var(--c-bad-ink) !important; }
.ff-warn-notice-warning { border-color: var(--c-warn-orange); background: var(--c-warn-wash); color: var(--c-warn-orange) !important; }
.ff-warn-notice:hover .ff-warn-notice-link { text-decoration: underline; }
/* the colour on a span inside the link: the snippet redraws what is in the link, the link keeps the tab memory */
.nav-tabs > li > a .ff-warn-tab-danger { color: var(--c-bad-ink); font-weight: var(--fw-semi); }
.nav-tabs > li > a .ff-warn-tab-warning { color: var(--c-warn-orange); font-weight: var(--fw-semi); }
.nav-tabs > li > a .ff-warn-tab-danger .badge { background: var(--c-bad-ink); color: #fff; }
.nav-tabs > li > a .ff-warn-tab-warning .badge { background: var(--c-warn-orange); color: #fff; }
/* while the board is asked: the last known state, muted -- no count or colour jumping (review, 13. 10. 2026) */
.ff-warn-loading { opacity: .55; transition: opacity .15s; }
.ff-warn-notice-loading { border-color: var(--c-line); background: var(--c-ground); color: var(--c-muted) !important; cursor: default; }
/* the crew's papers as a warning: orange as the line and the tab, not the ban's yellow */
.ff-conflict-box.ff-warn-box { border-color: var(--c-warn-orange); background: var(--c-warn-wash); color: var(--c-warn-orange); }
.ff-trip-warnings-none { padding: 6px 0; }
.od-chip.ff-chip-link { cursor: pointer; }
/* the order's Ekonomika tab greys a margin the costs behind which are half known */
.od-costs-incomplete-wrap .od-kv.od-kv-margin dt,
.od-costs-incomplete-wrap .od-kv.od-kv-margin dd { background: var(--c-ground) !important; color: var(--c-muted) !important; }
/* the badge "neúplná" is the breakdown's own (orderCostsBreakdown.latte) -- a second one from here stood beside it (review r9, Radek) */
/* the vehicle's "limited by the combination weight" label: dark ink on the warning wash (was 1.5:1) */
#modal-vehicleInfo .badge.badge-warning { background: var(--c-warn-wash) !important; color: #6b4d00 !important; border: 1px solid var(--c-warn); font-weight: var(--fw-semi); }
/* suggestions: why a vehicle is where it is in the list */
.vs-why { font-size: var(--fs-sm); color: var(--c-ink); }
.vs-problems { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
/* a long reason wraps inside the card -- the ban ran out over its right edge (review r11, Radek) */
.vs-problems .badge-soft { white-space: normal; max-width: 100%; text-align: left; line-height: 1.35; }
.vs-common-bans > div + div { margin-top: 3px; }
/* the groups of the suggestions, headed (review r8, UX) */
.vs-group-head { margin: 10px 0 4px; font-size: var(--fs-micro, 11px); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.vs-group-head:first-child { margin-top: 0; }
.td-item-card.vs-problem { opacity: .85; border-left: 3px solid var(--c-bad-ink); }
.td-item-card.vs-unknown { border-left: 3px solid var(--c-warn); }
[data-theme="dark"] #modal-vehicleInfo .badge.badge-warning { color: #f1d36b !important; }
/* an incomplete calculation as a list of what is missing or guessed (review r3) */
.ff-costs-incomplete-list { margin: 4px 0 0 18px; padding: 0; }
.ff-costs-incomplete-list li { margin: 1px 0; }

/* ==== plachta: náhledy kolo 5 (fork) ==== */
/* the part of a split order: a tag on its steps, a head over its points, the current one marked */
.od-step-part { margin-left: 6px; padding: 0 5px; border-radius: var(--r); background: var(--c-info-wash); color: var(--c-info-ink); font-size: 10px; font-weight: var(--fw-semi); line-height: 15px; }
.od-part-head { margin: 10px 0 6px; padding: 6px 10px; border-left: 3px solid var(--c-info); background: var(--c-info-wash); font-weight: var(--fw-semi); color: var(--c-ink); }
.od-kv.od-kv-current dt { color: var(--c-info-ink); font-weight: var(--fw-semi); }
/* a costing that misses costs: grey, not a green profit (review r5) */
.td-item-card-incomplete { border-left-color: var(--c-quiet); }
/* the approach under the route figure on the trip preview */
.od-chip-sub { margin-left: 6px; font-size: 10px; color: var(--c-muted); }
/* why the contribution and the margin differ, under them (review r10, Petr, Klára) */
.od-contribution-diff { margin: 4px 0 0; font-size: var(--fs-sm, 12px); line-height: 1.4; }

/* the deployment plan's driver block: the board's column of a lorry turned to the driver (David, 9. 10. 2026)
   -- the name and the dispatcher's initials, the set with the hours and the chips, where the lorry is; the
   same classes and sizes as the board's (:is(#dispatch-timeline, #dispatch-plan-timeline) .dg …) */
#dispatch-plan-timeline .dp-driver-name { font-size: 13px; font-weight: var(--fw-semi); color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
/* words, not a switched-off icon: --c-quiet was 1.88:1 (DS10-03) */
#dispatch-plan-timeline .dp-no-vehicle { font-size: 11px; color: var(--c-muted); }

/* the board inside another screen's frame (?embed=1, David, 9. 10. 2026): only its previews, their backdrop,
   the dialogs and the toasts are seen, over the screen that opened it */
html.ff-embed-html, body.ff-embed { background: transparent !important; }
body.ff-embed * { visibility: hidden; }
body.ff-embed .modal, body.ff-embed .modal *,
body.ff-embed .modal-backdrop,
body.ff-embed .tooltip, body.ff-embed .tooltip *,
body.ff-embed .alertify, body.ff-embed .alertify *,
body.ff-embed .alertify-cover,
body.ff-embed .dispatch-fast-tooltip, body.ff-embed .dispatch-fast-tooltip *,
body.ff-embed [class*="ff-toast"], body.ff-embed [class*="ff-toast"] * { visibility: visible; }

/* the frame over the deployment plan holding the board's preview */
.dp-preview-frame { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; border: 0; z-index: 9990; background: transparent; }

/* the real time of a stop, asked before it is written (stop-times.js, S2-02): over the board's preview as the
   board's own questions are (#modal-choose), narrow -- two times side by side */
#modal-stopTime { z-index: 10010; }
#modal-stopTime .modal-dialog { width: 480px; max-width: calc(100vw - 32px); }
/* "Uzavřít stazku #N" (DI8-01): a row per stop with two times -- the 480 px broke the dates and the plan in two */
#modal-stopTime .modal-dialog.modal-lg { width: 780px; }
#modal-stopTime .st-rows { margin-bottom: 0; }
#modal-stopTime .st-rows td { vertical-align: top; }
#modal-stopTime .st-rows td:first-child { width: 40%; }
#modal-stopTime .st-rows .st-fixed { display: inline-block; padding-top: 6px; white-space: nowrap; }
#modal-stopTime .st-rows .st-row-note td { padding-top: 0; border-top: 0; }
/* a time the leg cannot fit, marked as a refused field is (the theme's .has-error asks for a .form-group) */
#modal-stopTime .st-rows td.has-error .form-control { border-color: var(--c-bad-ink); background-color: var(--c-bad-wash); }
#modal-stopTime .st-error { margin: 10px 0 0; }
#modal-stopTime .checkbox { margin: 6px 0 0; }
/* the picker of a time opened from that dialog stands over it (the plugin's 9999 lay under the 10010) */
.xdsoft_datetimepicker { z-index: 10020; }
/* the real times of a stop under its planned ones in the stop's modal, with who said them */
.ts-actual-source { display: block; margin-top: 4px; color: var(--c-muted); font-size: var(--fs-sm, 12px); }

/* DI2-05: an order nobody planned is work waiting, not an alarm -- neutral; red only once its loading has passed */
#dispatch-pool .vis-labelset .vis-label { color: var(--c-label); }
#dispatch-pool .vis-item.timeline-pool-order { background-color: #4f6177; border-color: #3e4e61; }
#dispatch-pool .vis-item.timeline-pool-order:hover,
#dispatch-pool .vis-item.timeline-pool-order.vis-selected { background-color: #43546a; border-color: #34424f; }
#dispatch-pool .vis-item.timeline-pool-order.is-overdue,
#dispatch-pool .vis-item.timeline-pool-order.is-overdue:hover { background-color: #b03a2e; border-color: #7b241c; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 6px, transparent 6px 12px); }
/* two blocks of one lorry at once: the later one's word a line higher ("BLOKUJSERVIS") */
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-stack-1 .vis-item-content { bottom: 15px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .vis-item.dispatch-unavailable-stack-2 .vis-item-content { bottom: 29px; }
/* "Mohou jet": pressed like the other toggles of the bar */
#dispatch-cango-toggle.active { background-color: var(--c-info-wash); border-color: var(--c-info); color: var(--c-info-ink); }
#dispatch-cango-toggle .badge:empty { display: none; }

/* S3-17: the bar of the background is one slim line under the title, not a 50 px block over the data */
.ff-ops-alerts { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; margin-bottom: 10px; font-size: var(--fs-sm, 12px); line-height: 1.4; }
.ff-ops-alerts .ff-ops-alerts-list { flex: 1 1 auto; min-width: 0; }
/* DS11-01: one line at 1366 (two lines took 90 px of every screen): the first sentence ends in "…", its link and
   "a další N" stay; a click on the sentence or "a další" unfolds it (.ff-ops-open, custom.js) */
.ff-ops-alerts:not(.ff-ops-open) .ff-ops-alerts-list { display: flex; align-items: baseline; gap: 0 4px; white-space: nowrap; }
.ff-ops-alerts:not(.ff-ops-open) .ff-ops-alerts-list > .ff-ops-alert { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.ff-ops-alerts:not(.ff-ops-open) .ff-ops-alert-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ff-ops-alerts .ff-ops-alert-text { cursor: pointer; }
/* DS17-01: unfolded, the other problems are a list under the first, one a line -- in one line with "·" the bar had six
   parts; the "·" between them stays in the source for the folded line and takes no room here */
.ff-ops-alerts.ff-ops-open .ff-ops-rest:not([hidden]) { display: block; margin-top: 2px; font-size: 0; }
.ff-ops-alerts.ff-ops-open .ff-ops-rest > .ff-ops-alert { display: block; font-size: var(--fs-sm, 12px); }
.ff-ops-alerts .ff-ops-alerts-list > .ff-ops-alert > a,
.ff-ops-alerts .ff-ops-more { flex: 0 0 auto; }
/* a real button in the ink of the bar (David, 6. 11. 2026: the underlined link was lost); .btn floats left */
.ff-ops-alerts .ff-ops-dismiss { flex: 0 0 auto; float: none !important; padding: 2px 10px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 600; line-height: 1.4; }
.ff-ops-alerts .ff-ops-dismiss i { margin-right: 5px; }
/* S8-21: the morning overview says why it does not hide, in the button's place and of its height */
/* DS9-02: in the full ink of the bar -- faded to .85 it was 4.21:1 on the amber wash */
.ff-ops-alerts .ff-ops-not-hidden { flex: 0 0 auto; padding: 3px 0; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.ff-ops-alerts .ff-ops-dismiss:hover,
.ff-ops-alerts .ff-ops-dismiss:focus { color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); text-decoration: none; }

/* DS3-07: the reset of a listing's filters says how many are on -- the red funnel and a count */
/* the count sits on the button's top right corner, out of the flow (David, 6. 11. 2026: inline it widened the
   button, ran over its edge and pushed the funnel aside) */
.btn:has(> .ff-filter-count) { position: relative; overflow: visible; white-space: nowrap; }
/* the count is a chip that reads (DS4-07): the colour of the framed filter fields, AA in both themes; the ring in
   the page's colour keeps it apart from the button's border */
.ff-filter-count { position: absolute; top: -7px; right: -7px; z-index: 2; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-link); color: var(--c-white); box-shadow: 0 0 0 2px var(--c-white); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; pointer-events: none; }

/* AD4-07: while a temporary password must be changed the menu leads nowhere -- it says so by being greyed */
body.ff-must-change #ff-sidebar .menu:not(.menu-bottom) { opacity: .4; pointer-events: none; filter: grayscale(1); }
/* ... said more plainly on the dark rail, where 40 % of a light grey still read as a working menu (wave 4):
   fainter, and crossed by the hatching the app uses for what is blocked */
body.ff-must-change #ff-sidebar .menu:not(.menu-bottom) {
	opacity: 1;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 9px);
}
body.ff-must-change #ff-sidebar .menu:not(.menu-bottom) > * { opacity: .25; }
/* AD7-11: "Nastavení" at the bottom stayed lit; the account and signing out are under the name in the title bar */
body.ff-must-change #ff-sidebar .menu-bottom { opacity: .25; pointer-events: none; filter: grayscale(1); }
.ff-must-change-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

/* ==== DS5-01: the main listings fit 1366 px ==================================================================
   A column of lower priority gives way below 1600 px, so the state and the figures the listing is for stay
   in the window (13 of 20 listings were 115-590 px wider than the window at 1366 x 768; UX review 5).
   - A plain table: data-priority="3" on the th of the first head row; the cell of that column goes in
     every row without a colspan (the filter row, the rows). nth-child counts the elements, not what is shown,
     so a column already hidden by another rule (the orders' .ol-col-wide) keeps the count right.
   - A table whose footer spans the column with a colspan (the invoices' and the ledgers' totals): there
     display: none would shift every cell after the span, so the column is collapsed through a <colgroup>
     (data-priority="3" on the col) and its cells only hidden -- the grid stays as it was.
   Up to 1919 px, not 1599: at 1680 px eight of the listings were still 80-270 px wider than the window. */
@media (max-width: 1919px) {
	.table:not([data-colpick^="t"]) > colgroup > col[data-priority="3"] { visibility: collapse; }
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(1)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(1),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(2)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(2),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(3)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(3),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(4)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(4),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(5)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(5),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(6)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(6),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(7)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(7),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(8)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(8),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(9)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(9),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(10)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(10),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(11)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(11),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(12)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(12),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(13)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(13),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(14)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(14),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(15)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(15),
	.table:not([data-colpick^="t"], :has(> colgroup)):has(> thead > tr:first-child > th:nth-child(16)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(16) { display: none; }
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(1)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(1),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(2)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(2),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(3)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(3),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(4)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(4),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(5)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(5),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(6)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(6),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(7)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(7),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(8)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(8),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(9)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(9),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(10)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(10),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(11)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(11),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(12)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(12),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(13)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(13),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(14)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(14),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(15)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(15),
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(16)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(16) { visibility: hidden; width: 0; padding: 0 !important; font-size: 0; }
	/* ... and without a width of their own: the room a collapsed column kept went to it, not to the name,
	   and the table ended short of its panel */
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(1)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(1) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(2)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(2) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(3)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(3) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(4)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(4) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(5)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(5) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(6)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(6) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(7)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(7) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(8)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(8) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(9)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(9) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(10)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(10) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(11)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(11) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(12)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(12) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(13)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(13) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(14)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(14) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(15)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(15) > *,
	.table:not([data-colpick^="t"]):has(> colgroup > col:nth-child(16)[data-priority="3"]) > * > tr:not(:has(> [colspan]:not([colspan="1"]))) > :nth-child(16) > * { display: none; }
	/* the widest heads give a little: a name, a route, a customer wraps or clips instead of pushing the figures out */
	.table > thead > tr > th > :is(.w-200, .w-210, .w-220) { width: 180px; }
	.table > :is(thead, tbody) > tr > :is(th, td) > :is(.w-240, .w-250) { width: 200px; }
	.table > thead > tr > th > :is(.w-340, .w-380) { width: 280px; }
	/* the ledgers: a clipped type and name took their whole text as the column's least width (the name of a
	   revenue 625 px); they clip to the column instead, and the name, the one column without a width, takes
	   what is left */
	#ff-ledger-filters .table > tbody > tr > td > .ff-clip { max-width: 150px; }
	#ff-ledger-filters .table > tbody > tr > td:nth-child(5) > .ff-clip { width: 0; min-width: 100%; max-width: none; }
	#ff-ledger-filters .table > thead > tr:first-child > th:not([class]) { width: 100%; }
}
/* ...and on a wide screen too: the type "Kurzové a haléřové rozdíly, bankovní poplatky" alone made the cost book
   125 px wider than the window at 1920 px */
@media (min-width: 1920px) {
	#ff-ledger-filters .table > tbody > tr > td > .ff-clip { max-width: 220px; }
	#ff-ledger-filters .table > tbody > tr > td:nth-child(5) > .ff-clip { width: 0; min-width: 100%; max-width: none; }
	#ff-ledger-filters .table > thead > tr:first-child > th:not([class]) { width: 100%; }
}

/* DS5-12: the period bar of a listing on one line -- the presets, then Od and Do with their word beside the
   field, not over it. Two lines of ~110 px pushed the first row of a book to y = 347 at 1366 x 768. */
.ff-filter:has(> .ff-presets) > .ff-presets { flex-basis: auto; }
.ff-filter:has(> .ff-presets) { align-items: center; padding-top: 7px; padding-bottom: 7px; margin-bottom: 6px; }
.ff-filter:has(> .ff-presets) > .ff-field:has(> .date-picker) { flex-direction: row; align-items: center; gap: 6px; width: auto !important; }
.ff-filter:has(> .ff-presets) > .ff-field:has(> .date-picker) > label { white-space: nowrap; }
.ff-filter:has(> .ff-presets) > .ff-field:has(> .date-picker) > .form-control { width: 112px; }

/* ==== DS5-04: what was left under 4.5:1 ==================================================================== */
/* the bar Provoz: its text and its links in the ink of its own red, the links told by the underline -- the
   link blue on the pink was 3.4:1, the text 4.36 */
/* every coloured message as the bar Provoz (David, 6. 11. 2026: the blue "filtered" note and the green ones melted
   into the page): its wash, a frame in its own ink and the thicker edge on the left, the text in the ink */
/* one corner for every message, the slight one of panels and fields (David, 6. 11. 2026): the base theme squared .alert,
   the strips of the app's own were rounded */
.alert, .ff-linked-filter, .fm-card-alert, #modal-choose .alertify-info { border-radius: var(--r); }
.alert.alert-success { background-color: var(--c-ok-wash); border: 1px solid color-mix(in srgb, var(--c-ok-ink) 45%, transparent); border-left: 4px solid var(--c-ok-ink); color: var(--c-ok-ink); }
.alert.alert-info { background-color: var(--c-info-wash); border: 1px solid color-mix(in srgb, var(--c-info-ink) 45%, transparent); border-left: 4px solid var(--c-info-ink); color: var(--c-info-ink); }
.alert.alert-warning { background-color: var(--c-warn-wash); border: 1px solid color-mix(in srgb, var(--c-warn-ink) 45%, transparent); border-left: 4px solid var(--c-warn-ink); color: var(--c-warn-ink); }
.alert.alert-danger { background-color: var(--c-bad-wash); border: 1px solid color-mix(in srgb, var(--c-bad-ink) 45%, transparent); border-left: 4px solid var(--c-bad-ink); color: var(--c-bad-ink); }
/* framed in its own ink, the thicker edge on the left (David, 6. 11. 2026: the wash alone was too faint) */
.alert.ff-ops-alerts { background-color: var(--c-bad-wash); border: 1px solid color-mix(in srgb, var(--c-bad-ink) 45%, transparent); border-left: 4px solid var(--c-bad-ink); color: var(--c-bad-ink); }
/* a warning, not an error (S6-15): the scheduler not running is amber; red stays for a "danger" problem */
.alert.ff-ops-alerts.ff-ops-warn { background-color: var(--c-warn-wash); border-color: color-mix(in srgb, var(--c-warn-ink) 45%, transparent); border-left-color: var(--c-warn-ink); color: var(--c-warn-ink); }
.ff-ops-alerts a,
.ff-ops-alerts a:hover,
.ff-ops-alerts a:focus { color: inherit; text-decoration: underline; }
/* DS11-03: a plain link and second-rank text on a coloured message -- "Historie změn" in the head of a locked
   invoice was 4.02:1 on the teal wash, "(odemčeno …)" 4.39:1 */
.alert:is(.alert-success, .alert-info, .alert-warning, .alert-danger):not(.ff-ops-alerts) a:not(.btn, .alert-link, [class*="text-"], [class*="badge"], .label) { color: var(--c-link-strong); }
.alert:is(.alert-success, .alert-info, .alert-warning, .alert-danger) .text-muted { color: var(--c-muted-strong); }
/* the base theme's white on yellow was 1.46:1 ("po termínu" in the orders, orderLateBadge.latte): the amber wash in its ink */
/* DS16-01: "propadlá" / "po termínu" under the states of an order is a state too -- the same pill with its dot as
   "Platná" and "Nepřiřazená" (the warning variant of badge-soft), not a framed oblong */
.badge.badge-warning { display: inline-block; padding: 3px 10px 3px 8px !important; border: 0; border-radius: 20px; background: var(--c-warn-wash); color: var(--c-warn-ink); font-size: 11px !important; font-weight: 600; line-height: 14px; letter-spacing: 0.2px; white-space: nowrap; }
.badge.badge-warning::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.nav-tabs .badge.badge-warning::before { display: none; }
/* a hint standing on the page's grey ground and not on a panel (the manager's board, "Šrafované týdny …" 4.46:1) */
.content-container > .row > [class*="col-"] > .ff-form-hint { color: var(--c-muted-strong); }
/* the count on the bell: white on the base red was 3.36:1 (3.0 in the dark) */
.notification-count { background: var(--c-bad-deep); }
/* the words in front of a field of a bar (Pohledávky: "Vlastní firmy", "Stav k") read as a disabled field at 1.88:1 */
.ff-bar-end .ff-bar-label { color: var(--c-soft); }
/* the plan: the age of a place and a missing trailer are quiet, but text -- 3.04:1 in the dark */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place .dg-age,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .group-chip.group-age-quiet,
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg .licence-plate.is-none { color: var(--c-muted) !important; }
/* a chip of a state in a row stays one line, clipped as .ff-clip; its tooltip says the whole (the vehicles: "Propadlé
   kalibrace friga návěsu 1CA 0556" ran on three lines at 1366 px) */
.table > tbody > tr > td > .ff-chip[data-toggle="tooltip"] { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* a small word inside a link is the link ("Dohadné položky →"), not the theme's grey #777 */
a > small { color: inherit; }

/* the checks of a month as a checklist (HR6-04, Mzdové podklady): a row a check, one sentence, the names folded away
   under a link-like "11 řidičů ▾" -- on white, never links on the yellow wash (4,05 : 1) */
.ff-checklist .table > tbody > tr > td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
.ff-checklist .table > tbody > tr:first-child > td { border-top: 0; }
.ff-checklist-hint { color: var(--c-ink); }
.ff-checklist-names { display: inline; margin-left: 4px; }
.ff-checklist-names + .ff-checklist-names { margin-left: 10px; }
.ff-checklist-names > summary { display: inline; cursor: pointer; color: var(--c-link); white-space: nowrap; list-style: none; }
.ff-checklist-names > summary::-webkit-details-marker { display: none; }
.ff-checklist-names > summary::after { content: ' \25BE'; }
.ff-checklist-names[open] { display: block; margin: 4px 0 0; }
.ff-checklist-names[open] > summary::after { content: ' \25B4'; }
/* the checklist of the payroll sheets folds to its heading (DS7-02) */
.ff-checklist-summary { cursor: pointer; list-style: none; }
.ff-checklist-summary::-webkit-details-marker { display: none; }
.ff-checklist-summary h3::before { content: '\25B8'; display: inline-block; width: 18px; color: var(--c-link); }
details[open] > .ff-checklist-summary h3::before { content: '\25BE'; }
#ss-checklist { margin-bottom: 12px; }
#ss-checklist > details.panel-body { padding-top: 12px; padding-bottom: 12px; }
/* the month in the head of the page (DS7-02) and the person as wide as in Řidiči (HR7-17) */
.ss-period-head { display: inline-block; vertical-align: middle; width: 170px; margin-left: 8px; }
th.ss-col-person { min-width: 240px; }
#ss-wage-impact > summary { cursor: pointer; }
/* the cards of the attendance: one row in the width of the filter panel (HR7-07) */
.ts-stats .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ts-stats .stat-card { min-width: 0; }
.ff-checklist-names[open] + .ff-checklist-names { margin-left: 0; }

/* ==== DS6-01, DS6-02: the columns of a listing at 1366 px (www/js/admin/column-picker.js) ======================
   A listing fits its panel: the columns of the lowest priority give way, and the chip "+3 sloupce" in the head says
   so and brings them back -- what the reader ticks is kept on his account. The chip sits in the last shown cell of
   the head row, under its words and to its right, in the link's colours so it reads as a control. */
.table > * > tr > .ff-col-gone { display: none !important; }
.ff-colpick-chip {
	display: flex; align-items: center; gap: 4px; width: max-content; margin: 4px 0 0 auto;
	padding: 1px 7px; border: 1px solid var(--c-link); border-radius: 10px;
	/* a panel ground, not the wash: blue on the wash over the grey head was 3.1:1 (contrast-multi, wave 4) */
	background: var(--c-white); color: var(--c-link-ink);
	font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; cursor: pointer;
	text-transform: none; letter-spacing: 0;
}
/* DS8-03: the head row holding the chip has its words at the top: the chip under the words of the last cell lifted that
   title 12 px over the others, which stood in the middle of the taller row */
.table > thead > tr:first-child:has(> th.ff-colpick-host) > th { vertical-align: top; }
/* DS8-02: a table wider than its box fades at the edge it goes on past, while there is more to scroll to */
.ff-hscroll-shadow { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to right, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); }
.ff-hscroll-shadow-left { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px); mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px); }
.ff-hscroll-shadow.ff-hscroll-shadow-left { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); }
/* DS9-01: the 10 px fade of DS2-06 (.ff-more-right, three classes) outweighed the 36 px one and was all that showed --
   "Doklady" cut in the middle of a word read as the end of the table. The column picker's fade wins where both are set,
   and a "›" at the middle of the panel's right edge says the table goes on (the panel, not the wrapper: the wrapper
   scrolls, and its mask would fade the mark too) */
.table-responsive.ff-hscroll-shadow.ff-more-right:not(.ff-hscroll-shadow-left) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to right, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); }
.table-responsive.ff-hscroll-shadow.ff-hscroll-shadow-left.ff-more-right { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, .25) 100%); }
.panel-body:has(> .table-responsive.ff-hscroll-shadow, > form > .table-responsive.ff-hscroll-shadow) { position: relative; }
.panel-body:has(> .table-responsive.ff-hscroll-shadow, > form > .table-responsive.ff-hscroll-shadow)::before {
	content: '\203A'; display: flex; align-items: center; justify-content: center;
	position: absolute; right: 6px; top: 50%; z-index: 4; width: 22px; height: 22px; margin-top: -11px;
	border: 1px solid var(--c-line-chip); border-radius: 50%; background: var(--c-white); color: var(--c-link-ink);
	box-shadow: var(--shadow-card); font-size: 16px; font-weight: 700; line-height: 1; pointer-events: none;
}
.ff-colpick-chip:hover, .ff-colpick-chip:focus-visible { background: var(--c-link); color: var(--c-white); outline: 0; }
.ff-colpick-chip.is-quiet { padding: 1px 5px; border-color: var(--c-line-chip); background: transparent; color: var(--c-soft); }
.ff-colpick-chip.is-quiet:hover, .ff-colpick-chip.is-quiet:focus-visible { border-color: var(--c-link); background: var(--c-link-wash); color: var(--c-link); }
.ff-colpick-pop {
	position: fixed; z-index: 1060; width: 300px; max-height: calc(100vh - 16px); overflow: auto;
	padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 4px;
	background: var(--c-white); color: var(--c-ink); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.ff-colpick-title { font-weight: 600; margin-bottom: 2px; }
.ff-colpick-hint { margin: 0 0 8px; font-size: 12px; color: var(--c-soft); }
.ff-colpick-list > label { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 3px 0; font-weight: 400; cursor: pointer; }
.ff-colpick-list > label > input { margin: 0; flex: 0 0 auto; }
/* DS7-01: under a column's name what keeps it hidden and what ticking it would send away; the identification and the
   state are listed too, ticked and greyed ("vždy vidět"), so the list has every column of the listing */
.ff-colpick-list > label { flex-wrap: wrap; }
.ff-colpick-list > label > span { flex: 1 1 0; min-width: 0; }
.ff-colpick-note { flex: 0 0 100%; padding-left: 21px; font-size: 11px; line-height: 1.35; color: var(--c-soft); }
.ff-colpick-note:empty { display: none; }
.ff-colpick-list > label { row-gap: 0; }
.ff-colpick-list > label.is-fixed { flex-wrap: nowrap; cursor: default; color: var(--c-soft); }
.ff-colpick-list > label.is-fixed > .ff-colpick-note { flex: 0 0 auto; padding-left: 0; }
.ff-colpick-notice:empty { display: none; }
.ff-colpick-notice { margin: 0 0 8px; padding: 6px 8px; border-radius: 4px; background: var(--c-warn-wash); color: var(--c-ink); font-size: 12px; }
.ff-colpick-notice > p { margin: 0; }
.ff-colpick-notice > p + p { margin-top: 4px; }
/* inline after the sentence: a theme rule floats a .btn-xs to the left, which put "Vrátit" in the middle of it */
.ff-colpick-notice .btn-link { float: none !important; display: inline; border: 0; padding: 0 2px; font-size: 12px; font-weight: 600; vertical-align: baseline; color: var(--c-link-ink); }
.ff-colpick-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-line-quiet); }

/* DS6-08, the listing of orders: "≈ 1 948 CZK" and "14,3 %" stay whole -- the code of the currency on a line of its
   own read as a fourth figure; a box that cannot be ticked tells why on hover (a disabled input takes no pointer) */
.ol-table > tbody > tr > td > small,
.ol-table > tbody > tr > td > strong { white-space: nowrap; }
/* DS7-03: the sentences under the margin -- "zastaralý odhad · přepočet by dal 11 490 (−504)", "vč. dobropisy" -- wrap
   under the figure: kept whole they made the column 263 px wide and sent "Stav" and "Souprava" away at 1366 px */
.ol-table > tbody > tr > td > small:is(.text-muted, .text-warning) { white-space: normal; }
.ol-table > tbody > tr > td:has(> .margin-incomplete-icon, > small.text-muted, > small.text-warning) { max-width: 150px; }
/* the same on the offers (DS7-01): "46,9 % · vč. dobropisy −365 · ≈ 9 252 CZK" on one line made the margin 221 px
   wide, and the margin -- the listing's point -- was the first to go; at 1366 px the customer and the route narrow */
.table:has(> thead select[name="offer_state"]) > tbody > tr > td:last-child { white-space: normal; max-width: 150px; }
.table:has(> thead select[name="offer_state"]) > tbody > tr > td:last-child > strong { white-space: nowrap; }
@media (max-width: 1439px) {
	.table:has(> thead select[name="offer_state"]) > thead > tr > th > .w-220 { width: 170px!important; }
	/* the route is w-300 since OB19-03 */
	.table:has(> thead select[name="offer_state"]) > thead > tr > th > :is(.w-380, .w-300) { width: 230px!important; }
	.table:has(> thead select[name="offer_state"]) > thead > tr > th:is(.w-380, .w-300) { width: 230px!important; }
	.table:has(> thead select[name="offer_state"]) > tbody > tr > td .ff-name-with-link { max-width: 170px; }
}
/* the invoices at 1366 px with the standing column of the menu: both states are 1s (DS7-01) and the total stays; the
   number, the dates, the customer and the total give the 160 px (the customer clips, the whole in the tooltip) */
@media (max-width: 1439px) {
	.table:has(#inv-check-all) > thead > tr > th > .w-240 { width: 180px!important; }
	.table:has(#inv-check-all) > thead > tr > th > .w-140 { width: 118px!important; }
	.table:has(#inv-check-all) > thead > tr > th > .w-110 { width: 88px!important; }
	.table:has(#inv-check-all) > thead > tr > th > .w-150 { width: 128px!important; }
	.table:has(#inv-check-all) > thead > tr > th > .w-120 { width: 110px!important; }
	.table:has(#inv-check-all) > tbody > tr > td .ff-clip { max-width: 176px; }
}
/* the state of an order wraps inside its badge ("Blokovaná kreditem") rather than widening the column by 40 px */
@media (max-width: 1439px) {
	.ol-table > tbody > tr > td > .badge { white-space: normal; max-width: 112px; text-align: left; line-height: 1.25; }
	/* the number takes 74 px at most ("POPT-SEED-09"): with the standing column of the menu the table was 3 px over */
	.ol-table > thead > tr:first-child > th:nth-child(4) > .w-100 { width: 88px!important; }
}
.ol-table > tbody > tr > td > span[data-toggle="tooltip"]:has(> .js-order-select-off) { display: inline-block; cursor: help; }
.ol-table .js-order-select-off { pointer-events: none; }

/* DS6-03: a panel over a listing folds (column-picker.js, data-ff-fold); folded, its head stays -- or everything
   but the parts marked data-ff-fold-body, so a check keeps its title and count */
.ff-fold-head:not(form) { display: flex; align-items: center; gap: 8px; }
form.ff-fold-head > .ff-fold-toggle { align-self: flex-end; margin-bottom: 8px; }
.ff-fold-toggle {
	margin-left: auto; padding: 1px 8px; border: 1px solid var(--c-line-chip); border-radius: 10px;
	background: transparent; color: var(--c-link-ink); font-size: 11px; font-weight: 600; line-height: 18px;
	text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer;
}
.ff-fold-toggle:hover, .ff-fold-toggle:focus-visible { border-color: var(--c-link); background: var(--c-link-wash); outline: 0; }
[data-ff-fold].is-folded [data-ff-fold-body],
[data-ff-fold].is-folded .ff-check :is(.ff-check-body, .ff-check-why) { display: none !important; }
[data-ff-fold].is-folded:not(:has([data-ff-fold-body], .ff-check)) > .panel-body > :not(.ff-fold-head, :has(.ff-fold-head)),
[data-ff-fold].is-folded:not(:has([data-ff-fold-body], .ff-check)) > :not(.panel-body, .ff-fold-head, :has(.ff-fold-head)) { display: none !important; }
[data-ff-fold].is-folded .ff-section-title.ff-fold-head { margin-bottom: 8px; }
/* folded, the filter, the result and its one warning sit close (DS8-01: Uzávěrkové kontroly at 1366 x 768) */
[data-ff-fold].is-folded form.ff-fold-head { margin-bottom: 6px; }
[data-ff-fold].is-folded > .panel-body > p:not([data-ff-fold-body]) { margin-bottom: 0; }
/* folded checks stand side by side, each its icon, title and count on one line */
[data-ff-fold].is-folded .panel-body:has(> .ff-check) { display: flex; flex-wrap: wrap; gap: 8px; }
[data-ff-fold].is-folded .panel-body:has(> .ff-check) > .ff-fold-head { flex: 0 0 100%; margin-bottom: 0; }
/* ... the title and its "Rozbalit" on the same line as them where the row has room (DS8-01: Tankování at 1366 x 768) */
@media (min-width: 1200px) {
	[data-ff-fold].is-folded .panel-body:has(> .ff-check) { align-items: center; }
	[data-ff-fold].is-folded .panel-body:has(> .ff-check) > .ff-fold-head { flex: 0 0 auto; order: -1; margin: 0 4px 0 0; }
	[data-ff-fold].is-folded .panel-body:has(> .ff-check) > .ff-fold-head > .ff-fold-toggle { margin-left: 4px; }
}
[data-ff-fold].is-folded .ff-check { flex: 1 1 0; min-width: 220px; margin: 0; padding: 6px 10px 6px 13px; }
[data-ff-fold].is-folded .ff-check-head { margin-bottom: 0; align-items: center; }
/* folded, a check's title and count stay one line, the title clipped (DS8-01: "Natankováno víc, než odpovídá km 35" took
   two lines and every folded check with it) */
[data-ff-fold].is-folded .ff-check-head > div:last-child { min-width: 0; }
[data-ff-fold].is-folded .ff-check-title { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
/* the count ahead of the words: a long title ("Natankováno víc, než odpovídá km") pushed it out of the chip on 1366 */
[data-ff-fold].is-folded .ff-check-title > .ff-check-count { flex: 0 0 auto; order: -1; margin: 0 6px 0 0; }
[data-ff-fold].is-folded .ff-check-icon { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
[data-ff-fold].is-folded .ff-check-title { font-size: 13px; }

/* Volné kapacity at 1366 px: the longer words of R6-6 under "Volné od" ("konec podle zbytku plánu…") and the badges
   under "Kde bude" wrap in their column instead of widening it; the date and its time stay on one line */
@media (max-width: 1599px) {
	.table:has(> thead input[name="until"]) > tbody > tr > td:nth-child(6) { white-space: normal; max-width: 160px; }
	.table:has(> thead input[name="until"]) > tbody > tr > td:nth-child(6) > .ff-time { white-space: nowrap; }
	.table:has(> thead input[name="until"]) > tbody > tr > td > .ff-clip { display: inline; white-space: normal; overflow: visible; }
	.table:has(> thead input[name="until"]) > tbody > tr > td > .ff-clip > .badge-soft { white-space: nowrap; }
	.table:has(> thead input[name="until"]) > thead > tr > th:is(.w-200, .w-180) { width: 150px; }
	.table:has(> thead input[name="until"]) > thead > tr > th.w-250 { width: 200px; }
}

/* DS6-05: a long modal at 768 px -- "Nová adresa" 972 px high, its buttons at y = 948 -- keeps its footer in view:
   the footer sticks to the bottom of the window on the panel's own surface, the body scrolls under it */
.modal .modal-content > .modal-footer,
.modal .modal-content > form > .modal-footer,
.modal .modal-content > [id^="snippet-"] > .modal-footer,
.modal .modal-content > [id^="snippet-"] > form > .modal-footer {
	position: sticky; bottom: 0; z-index: 3;
	background: var(--c-white); border-radius: 0 0 6px 6px;
	box-shadow: 0 -1px 0 var(--c-line-quiet);
}

/* ==== 7th UX round, wave 3: the design system (DS7-02 … DS7-08) ============================================== */
/* DS7-02, Cash-flow: "Jak to počítáme" folded under the title; a warning about the wages wraps in its box instead of
   running out of the panel at 1366 px */
.cf-help { margin: -4px 0 10px; }
/* DS7-08: a filter set by a link (the board) says so over the listing while it stands */
.ff-linked-filter {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0 0 10px; padding: 8px 12px;
	border-radius: var(--r); background: var(--c-info-wash); color: var(--c-ink); font-size: 13px;
	/* framed like every coloured message (David, 6. 11. 2026) */
	border: 1px solid color-mix(in srgb, var(--c-info-ink) 45%, transparent); border-left: 4px solid var(--c-info-ink);
}
.ff-linked-filter > i { color: var(--c-link-ink); }
.ff-linked-filter > strong { font-weight: 600; }
.ff-linked-filter-reset { margin-left: 6px; font-weight: 600; color: var(--c-link-ink); text-decoration: underline; }
#cashflow .badge-soft { white-space: normal; text-align: left; line-height: 1.4; }
/* the partner card at 1366 px: how they pay is a sentence, not a figure -- "platí pozdě · dluh 40 dní po splatnosti"
   was cut at the tile's edge; it wraps in a smaller type. A figure stays on one line */
.stat-card:has(> .stat-icon .fa-handshake) .stat-value { white-space: normal; font-size: 16px; line-height: 1.25; }
.stat-card .stat-value { min-width: 0; }
/* the loader of a block read when first shown (__inc/lazyTabLoader.latte, custom.js ffLazyTabs): the page's spinner
   inline in the empty state, no longer a style attribute */
.ff-lazy-spinner { display: inline-block; vertical-align: middle; }

/* ==== K fakturaci (David, 6. 11. 2026): one table of a customer's revenues, the invoices as subheadings ======== */
/* whose page it is: the customer's name as the heading on a panel marked by the accent, the reg. number and the rules
   quiet under it, "Upravit pravidla" at the right */
.inv-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
	margin: 0 0 14px; padding: 14px 18px;
	background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-link); border-radius: var(--r);
	box-shadow: var(--shadow-card);
}
.inv-head-main { min-width: 0; }
.inv-head-name { margin: 0; font-size: var(--fs-xl, 19px); font-weight: var(--fw-semi); line-height: 1.3; color: var(--c-ink-strong, var(--c-ink)); }
.inv-head-name a { color: inherit; }
.inv-head-name a:hover { color: var(--c-link); }
.inv-head-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 3px; color: var(--c-soft); font-size: 13px; }
/* the choosing of the whole customer over the table */
.inv-pickbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.inv-pickbar-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* the drafts: title, question mark and "Vystavit vybrané" on one line */
.inv-drafts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; min-height: 30px; }
.inv-drafts-head .ff-section-title { margin: 0; }
.inv-drafts .ff-table .table { margin-bottom: 0; }
/* a long reason (a filed month, a late DUZP) wraps in its badge, the figures and the buttons keep their width */
.inv-drafts .table { table-layout: auto; width: 100%; }
.inv-drafts .badge-soft { white-space: normal; text-align: left; line-height: 1.35; }
.inv-drafts td.text-nowrap, .inv-drafts td:last-child { white-space: nowrap; }
/* the subheading of one invoice: the tick of the whole, its figures, its buttons at the right */
.inv-table > tbody.inv-group > tr.inv-group-head > td {
	/* !important against the listing's own "td: border-top none, padding 6px" (custom.css .table > tbody > tr > td) */
	background: var(--c-ground-soft); border-top: 2px solid var(--c-line-panel) !important; padding-top: 8px !important; padding-bottom: 8px !important;
}
.inv-table > tbody.inv-group:first-of-type > tr > td { border-top: 0 !important; }
/* the theme's own line between two bodies of a table stood white in the dark mode; the subheading draws it */
.inv-table > tbody + tbody { border-top: 0; }
.inv-table > tbody.inv-group-future > tr.inv-group-head > td { color: var(--c-soft); }
.inv-group-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.inv-group-title strong { color: var(--c-ink); font-weight: var(--fw-semi); }
.inv-group-label { margin-left: 6px; color: var(--c-soft); }
.inv-group-meta { color: var(--c-soft); font-size: 13px; }
.inv-group-meta .ff-num { color: var(--c-ink); font-weight: var(--fw-semi); }
.inv-group-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.inv-table > tbody.inv-group-future > tr:not(.inv-group-head) > td { color: var(--c-soft); }
/* a long blocker wraps in its badge rather than running out of the column */
.inv-table .badge-soft.inv-wrap { white-space: normal; text-align: left; line-height: 1.35; }
.inv-table a.badge-soft.inv-wrap:hover { text-decoration: underline; }
/* the items of an invoice of more stand indented under its heading, a quiet line on their left */
.inv-table > tbody > tr.inv-row-child > td:first-child { padding-left: 28px !important; box-shadow: inset 14px 0 0 -12px var(--c-line-strong); }
.inv-table > tbody > tr.inv-row-child > td:first-child + td { padding-left: 4px !important; }
/* the buttons of K fakturaci stand in their rows, not floated; the icon on the word's centre line is the rule of every
   button now (.btn:where(:has(> i)) at BUTTONS) */
.inv-head .btn-addon, .inv-pickbar .btn-addon, .inv-group-actions .btn-addon, .inv-selbar .btn-addon, .inv-drafts-head .btn-addon { float: none; }
.inv-pickbar .btn-xs.btn-addon i, .inv-group-actions .btn-xs.btn-addon i { font-size: 11px; }
/* the bar of the ticked revenues, stuck to the bottom of the window while there is a selection */
.inv-selbar {
	display: none; position: sticky; bottom: 0; z-index: 20; margin: 12px 0 0; padding: 10px 16px;
	align-items: center; flex-wrap: wrap; gap: 8px 14px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-card), 0 -4px 12px rgba(0, 0, 0, .08);
}
body.inv-has-selection .inv-selbar { display: flex; }
/* room under the table for the bar, so "Nahrát CMR" of the last rows is never under it (FI10-03) */
body.inv-has-selection #snippet--invTable { padding-bottom: 64px; }
/* the number of a group's draft, counted anew by the selection (FI10-03) */
.inv-group-no { font-variant-numeric: tabular-nums; }
.inv-selbar-label { color: var(--c-soft); }
.inv-selbar-label strong { color: var(--c-ink); font-weight: var(--fw-semi); }
.inv-selbar-sum { font-weight: var(--fw-semi); color: var(--c-ink); }
.inv-selbar-note:empty { display: none; }
/* the drafts by DUZP on one line, cut short first when the one-line bar is narrow -- not a column one date wide
   at 1366 (FI9-04); each invoice's subheading says the same in full */
.inv-selbar-breakdown { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-selbar-breakdown:empty { display: none; }
/* the blocked among the ticked, said in the bar with the way to leave them out (FI8-02, R8-9 b) */
.inv-selbar-blocked { display: inline-flex; align-items: center; gap: 4px; color: var(--c-bad-ink); font-weight: var(--fw-semi); white-space: nowrap; }
.inv-selbar-blocked[hidden] { display: none; }
.inv-selbar-blocked .btn-link { padding: 0 2px; font-weight: var(--fw-normal); }
/* the three ways of cutting the ticked, the app's segmented control at the bar's height */
.inv-selbar-mode .ff-segment > span { padding: 6px 12px; white-space: nowrap; }
.inv-selbar .inv-short { display: none; }
/* the table while the way switched cuts it anew */
#snippet--invTable.inv-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.inv-selbar-sum, .inv-selbar-label, #inv-sel-submit { white-space: nowrap; }
/* under 1500 px the bar keeps to one line (FI8-15, 1366 × 768): the short names of the ways, "Zrušit výběr" an icon */
@media (max-width: 1499px) {
	.inv-selbar { flex-wrap: nowrap; gap: 8px 10px; padding: 8px 12px; }
	.inv-selbar .inv-long { display: none; }
	.inv-selbar .inv-short { display: inline; }
	.inv-selbar-mode .ff-segment > span { padding: 6px 9px; }
}
/* the listing: Frekvence and Členění side by side under Pravidlo; "K datu" labelled in its cell */
.inv-filter-pair { display: flex; gap: 4px; }
.inv-filter-pair .form-control { flex: 1 1 0; min-width: 0; }
.inv-on { display: flex; align-items: center; gap: 6px; }
/* on the grey of the filter row the head's own muted ink: --c-soft there was 3.76 : 1 (FI8-15) */
.inv-on-label { font-size: var(--fs-micro); color: var(--c-table-head-muted, var(--c-label)); white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.inv-on .form-control { min-width: 0; }
.inv-col-customer { min-width: 180px; }

/* the tab Doklady of an invoice: a block per order with the papers it owes (6. 11. 2026) */
.inv-doc-summary { margin: 0 0 6px; font-size: 13px; }
.inv-doc-summary i { margin-right: 5px; }
.inv-doc-summary-bad { color: var(--c-bad); }
.inv-doc-summary-ok i { color: var(--c-ok); }
/* a framed panel per order, its head the subheading of K fakturaci (.inv-group-head) */
.inv-doc-order { margin-top: 14px; border: 1px solid var(--c-line-panel); border-radius: var(--r); overflow: hidden; }
.inv-doc-head { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; background: var(--c-ground-soft); border-bottom: 1px solid var(--c-line-panel); }
.inv-doc-number { font-size: 15px; font-weight: var(--fw-semi); white-space: nowrap; color: var(--c-ink); }
.inv-doc-number i { margin-right: 6px; color: var(--c-soft); }
.inv-doc-route { flex: 1 1 auto; min-width: 0; color: var(--c-soft); font-size: 13px; }
.inv-doc-route i { margin: 0 3px; font-size: 11px; }
.inv-doc-order > .op-list { margin: 0; padding: 12px 14px 4px; }
/* the line of a missing paper among the blockers: its order and "Nahrát" */
.ff-doc-blocker .btn.btn-addon { float: none; margin: -2px 0 0 8px; }

/* ==== Upomínky, the detail of one invoice (David, 6. 11. 2026): the head as K fakturaci's (.inv-head), the reminder
   going out next, the reminders sent ============================================================================== */
.rem-head { align-items: flex-start; flex-wrap: wrap; }
/* the tags wrap beside the actions, which keep the right edge at 1366 too */
.rem-head > .inv-head-main { flex: 1 1 480px; }
.rem-head-actions { flex: none; }
.rem-head-customer { margin-top: 2px; font-size: 15px; font-weight: var(--fw-semi); color: var(--c-ink); }
.rem-head-customer a { color: inherit; }
.rem-head-customer a:hover { color: var(--c-link); }
.rem-head-tags { margin: 10px 0 0; }
.rem-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* "Naúčtovat úrok" under the head's figures, a quiet line above it */
.rem-head-foot {
	flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	margin: 0; padding-top: 12px; border-top: 1px solid var(--c-line);
}
.rem-head-foot-end { display: inline-flex; align-items: center; gap: 6px; }
/* not floated; the icon on the word's centre line is the rule of every button (.btn:where(:has(> i)) at BUTTONS) */
.rem-head .btn-addon, .rem-btns .btn-addon { float: none; }
.rem-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rem-btns .btn { margin: 0; }
/* a long note of a promise or a reason of a cancelling wraps in its tag */
.badge-soft.rem-wrap { white-space: normal; text-align: left; line-height: 1.35; }
.rem-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rem-title .badge-soft { text-transform: none; letter-spacing: 0; }
.rem-level-pick .ff-form-hint { margin-top: 4px; }
/* the e-mail: the envelope on the ground, the letter on white paper -- white in the dark mode too, as it is printed */
.rem-mail { max-width: 880px; margin: 0 0 8px; padding: 12px 16px 16px; background: var(--c-ground-soft); border: 1px solid var(--c-line); border-radius: var(--r); }
.rem-mail-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 12px; }
.rem-mail-head dt { color: var(--c-soft); font-weight: normal; }
.rem-mail-head dd { margin: 0; color: var(--c-ink); overflow-wrap: anywhere; }
.rem-letter {
	max-width: 820px; padding: 20px 26px; background: #fff; color: #1f2328; border: 1px solid #d5dae1; border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-size: 14px; line-height: 1.55;
}
.rem-letter p { margin: 0 0 10px; }
.rem-letter p:last-child { margin-bottom: 0; }
.rem-letter a { color: #0b57d0; }
.rem-letter strong { color: #111; }
/* the draft's text is a field like the others (the theme's colours in either mode), set as a letter */
textarea.form-control.rem-letter-input { padding: 14px 18px; font-size: 14px; line-height: 1.55; }
/* the reminders sent: a copy under its address, a cancelled one struck through but for its state */
.rem-history .rem-sub { display: block; margin-top: 1px; color: var(--c-soft); }
.rem-history .rem-row-cancelled .rem-struck { color: var(--c-soft); text-decoration: line-through; }
#modal-reminderText .rem-mail, #modal-reminderText .rem-letter { max-width: none; }
#ff-reminder-draft { max-width: 880px; }
/* a button that posts its own little form sits in the row of the others */
.rem-inline-form { display: contents; }
.rem-draft-strip { max-width: 880px; margin-bottom: 10px; }

/* ==== Přiřadit na vozidlo (8th review, wave 1): the lorries that cannot carry the order folded away (DI8-08), what the
   picked lorry leaves as the card will show it, with what speaks against the number as tags as plain as the loss
   (S8-04, DI8-02, R8-5) ============================================================================================ */
.av-cannot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; }
.av-cannot-toggle { font-weight: var(--fw-semi); white-space: nowrap; }
.av-cannot-toggle i { margin-right: 4px; }
.av-cannot-why { color: var(--c-muted); }
.avs-margin { margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-ground); font-size: 13px; }
.avs-margin-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.avs-margin-label { color: var(--c-soft); }
.avs-margin-line strong { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.avs-margin-line strong.avs-margin-loss { color: var(--c-bad-ink); }
.avs-margin-contribution { color: var(--c-soft); font-variant-numeric: tabular-nums; }
.avs-tag { white-space: normal; text-transform: none; letter-spacing: 0; }
.avs-margin-note { margin-top: 4px; color: var(--c-soft); font-size: 12px; }
.avs-margin-note i { width: 14px; margin-right: 4px; color: var(--c-muted); }

/* the assignment dialog's table instead of a select (S9-08): eight lorries and more visible at once, the long words
   clamped with a tooltip, a row picked by a click anywhere on it (custom.js) */
.av-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; color: var(--c-soft); font-size: 13px; }
/* "Nejlépe pro firmu: 9C5 3652 · firma celkem +6 765 CZK" above the table, always (DI16-01) */
.av-firm-best { margin: 0 0 8px; font-weight: var(--fw-semi); }
.av-table-wrap { max-height: 58vh; overflow-y: auto; border: 1px solid var(--c-line); border-radius: 6px; }
.av-table { margin: 0; font-size: 12.5px; }
.av-table > thead > tr > th { position: sticky; top: 0; z-index: 2; background: var(--c-head); white-space: nowrap; }
.av-table > tbody > tr > td { padding: 5px 8px; vertical-align: top; border-top: 1px solid var(--c-line); line-height: 1.35; }
.av-table > tbody + tbody { border-top: 1px solid var(--c-line); }
.av-table > tbody.av-group > tr.av-group-head > th { padding: 5px 8px; background: var(--c-ground); font-size: 12px; font-weight: var(--fw-semi); color: var(--c-soft); border-top: 1px solid var(--c-line); }
.av-table > tbody.av-group > tr.av-group-note > td { padding: 6px 8px 2px; border-top: 0; }
.av-table > tbody.av-group-ok > tr.av-group-head > th { color: var(--c-ok-ink); }
.av-table > tbody.av-group-warn > tr.av-group-head > th { color: var(--c-warn-ink); }
.av-table > tbody.av-group-bad > tr.av-group-head > th,
.av-table > tbody.av-group-cannot > tr.av-group-head > th { color: var(--c-bad-ink); }
.av-table tr.av-row { cursor: pointer; }
.av-table tr.av-row:hover > td { background: var(--c-row-hover); }
.av-table tr.av-row.av-picked > td { background: var(--c-info-wash); }
.av-table .av-col-pick { width: 28px; text-align: center; }
.av-table .av-col-pick input { margin: 2px 0 0; cursor: pointer; }
.av-table .av-col-vehicle { width: 17%; }
.av-table .av-col-margin { width: 15%; white-space: nowrap; }
.av-table .av-col-approach { width: 22%; }
.av-table .av-col-impact { width: 21%; }
.av-table td.av-col-margin { white-space: normal; }
.av-table .av-plate { display: block; margin: 0; font-weight: var(--fw-semi); color: var(--c-ink); cursor: pointer; white-space: nowrap; }
.av-table .av-sub { display: block; color: var(--c-muted); font-size: 11.5px; line-height: 1.35; }
.av-table .av-margin { font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; margin-right: 4px; }
.av-table .av-margin.av-loss { color: var(--c-bad-ink); }
/* the margin by the company's target (R11-5 a): green at the target, amber from zero to it, red a loss */
.av-table .av-margin.av-tone-good { color: var(--c-ok-ink); }
.av-table .av-margin.av-tone-warn { color: var(--c-warn-ink); }
.av-table .av-margin.av-tone-bad { color: var(--c-bad-ink); }
.av-table .avs-tag { margin-right: 3px; font-size: 11px; }
.av-table .av-bundle { display: inline-block; margin-bottom: 2px; }
.av-table .av-tip { border-bottom: 1px dotted var(--c-muted); }
.av-table .av-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.av-table .av-col-reason { color: var(--c-warn-ink); }
.av-table tbody.av-group-bad .av-col-reason, .av-table tbody.av-group-cannot .av-col-reason { color: var(--c-bad-ink); }
.av-table tbody.av-group-ok .av-col-reason { color: var(--c-soft); }
/* each trip reached on a line of its own (DI10-04); without any the column is not drawn and the reason takes its room */
.av-table .av-impact-line + .av-impact-line { margin-top: 3px; }
.av-table.av-no-impact .av-col-approach { width: 26%; }
/* what speaks against a confirmed step, apart under its question (R10-4, custom.js confirmTextOf) -- as the wizard says it */
.ff-confirm-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--c-warn); border-left-width: 4px;
	background: var(--c-warn-wash); color: var(--c-warn-ink); font-weight: var(--fw-semi); }
.ff-confirm-warn > i { margin-right: 4px; }
/* what blocks rather than warns, above the yellow line (OB12-09: the credit overdrawn when an offer is accepted) */
.ff-confirm-warn.ff-confirm-danger { border-color: var(--c-bad); background: var(--c-bad-wash); color: var(--c-bad-ink); }

/* the rank and the tags said once above the table (DI10-05) */
.av-sort-note { margin: -4px 0 8px; font-size: 12px; }
.av-sort-note > i { margin-right: 4px; color: var(--c-muted); }
/* the legend's bubble beside the sentence, not alone on a line of its own (UI check of wave 3, 14th round) */
.av-sort-note .av-legend { display: inline-block; margin-left: 4px; color: var(--c-muted); cursor: help; }

/* ==== Záložky "Další" (tabs-overflow.js, David, 6. 11. 2026): the tabs that do not fit one row hidden in the strip and
   listed in its last tab, a dropdown; with the active tab among them "Další: <its name>" stands as the active tab ===== */
.nav-tabs > li.ff-tabs-more-hidden { display: none!important; }
.nav-tabs > li.ff-tabs-more { position: relative; }
.nav-tabs > li.ff-tabs-more > .ff-tabs-more-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; user-select: none; }
.slim-tabs > .nav-tabs > li.ff-tabs-more > .ff-tabs-more-toggle { display: flex; }
.ff-tabs-more-label { display: inline-flex; align-items: center; gap: 4px; }
.ff-tabs-more-caret { font-size: 11px; color: var(--c-soft); }
.nav-tabs > li.ff-tabs-more.open > .ff-tabs-more-toggle { background-color: var(--c-ground); color: var(--c-ink); }
.slim-tabs > .nav-tabs > li.ff-tabs-more.open > .ff-tabs-more-toggle { background: var(--c-line); }
/* the active tab hidden here: "Další" is the active tab, as the tab would be */
.nav-tabs > li.ff-tabs-more.ff-tabs-more-active > .ff-tabs-more-toggle {
	color: var(--c-ink-strong);
	font-weight: 600;
	background-color: var(--c-white);
	border-bottom: 3px solid var(--c-info)!important;
	box-shadow: 0 -1px 0 var(--c-line-input), 1px 0 0 var(--c-line-input), -1px 0 0 var(--c-line-input);
}
.slim-tabs > .nav-tabs > li.ff-tabs-more.ff-tabs-more-active > .ff-tabs-more-toggle {
	position: relative; z-index: 1;
	background: var(--c-white); border-color: transparent!important; border-bottom: 0!important; box-shadow: none; font-weight: 500;
}
.ff-tabs-more-active .ff-tabs-more-word { color: var(--c-soft); font-weight: 500; }
.ff-tabs-more-menu { z-index: 1060; max-height: 70vh; overflow-y: auto; }
.nav-tabs .ff-tabs-more-menu > li > a { cursor: pointer; color: var(--c-ink); font-weight: 500; }
.nav-tabs .ff-tabs-more-menu > li > a:hover, .nav-tabs .ff-tabs-more-menu > li > a:focus { color: var(--c-ink-strong); }
.nav-tabs .ff-tabs-more-menu > li.active > a { color: var(--c-ink-strong); font-weight: 600; background-color: var(--c-info-wash, var(--c-head)); }
.ff-tabs-more-menu > li > a.has-error { color: var(--c-bad)!important; }
.ff-tabs-more-menu .badge { margin-left: 4px; }
[data-theme="dark"] .nav-tabs > li.ff-tabs-more.ff-tabs-more-active > .ff-tabs-more-toggle { background-color: var(--c-white); color: var(--c-ink-strong); }
/* the items are links to dark.css, which paints every link blue */
[data-theme="dark"] .nav-tabs .ff-tabs-more-menu > li > a { color: var(--c-ink); }
[data-theme="dark"] .nav-tabs .ff-tabs-more-menu > li.active > a { background-color: var(--c-head); color: var(--c-ink-strong); }

/* ==== Odsazení obsahu záložek (.ff-tab-pad, David, 6. 11. 2026): one inset for the content of every tab of a card and
   of its sub-tabs -- the padding of the white of the tab (.tab-content), --ff-tab-inset, 10px, the smaller of the two
   the tabs had ("Definice nákladového prostoru"); the 14px of .form-part-content came on top of it in most tabs and
   is dropped on a card's tab. A block's box -- a table, a field, a card, an empty state, the grey head of the route --
   starts at the inset; text inside a box keeps the box's own padding. Measured on the cards of a vehicle, a trailer,
   a person, an order, an invoice, a partner, a trip and a service order; the modals' previews keep their own ====== */
/* a little more air above and below than at the sides (David, 6. 11. 2026: the content stuck to the tabs) */
:root { --ff-tab-inset: 10px; --ff-tab-inset-y: 18px; }
.panel-body.slim-tabs > .tab-content { padding: var(--ff-tab-inset-y) var(--ff-tab-inset); }
.panel-body.slim-tabs > .tab-content > .tab-pane .form-part-content { padding: 0; }
/* an empty tab or sub-tab is a grey block, not a gap on the white (David, 6. 11. 2026: "žádné ruční odstávky" floated):
   the grey block of .empty-state is now the one of the whole application ("Prázdný stav" above) */
/* the heading of the cargo spaces (__inc/cargoSpacesList.latte) repeats the name of the tab on a grey band no other tab
   has: on a card's tab the name of the tab says it */
.panel-body.slim-tabs > .tab-content > .tab-pane #snippet--cargoSpacesList > h3 { display: none; }
/* the route, the prices, the economics, the trips and the forwarding of a deal (.tp blocks) set their lists 20px in from
   the band: at the inset on a card's tab, as everything else; the grey head keeps its padding as a table's head does */
.panel-body.slim-tabs > .tab-content .form-part > .tp :is(.tp-list, .op-list, .pc-blocks, .otg-title, .otg-bulk, .otg-none, .tp-empty) { margin-left: 0; margin-right: 0; }
.panel-body.slim-tabs > .tab-content .form-part > .tp .tp-warnings { padding-left: 0; padding-right: 0; }

/* ---- the follow-up of an inspection (David, 6. 11. 2026; VehicleInspections/_badges.latte, followUpAction) ---- */
.vi-next { display: inline-block; margin-left: 6px; vertical-align: middle; }
.vi-next .btn-xs.btn-addon { padding-top: 1px; padding-bottom: 1px; }
.vi-next-exists { font-size: 12px; color: var(--c-soft); white-space: nowrap; }
.vi-next-exists i { margin-right: 3px; }
.vi-next-card { margin-bottom: 10px; }
.vi-next-hint { padding: 8px 10px; margin-bottom: 12px; border-radius: 4px; background: var(--c-info-wash); color: var(--c-info-ink); }
.vi-next-hint i { margin-right: 4px; }

/* ---- groups of tabs with their sub-tabs (David, 6. 11. 2026; __inc/tabGroups.latte, tab-groups.js) ----
   the sub-tabs a smaller segmented row under the main strip, so they are not taken for main tabs */
/* the row is a part of the group's content (David, 6. 11. 2026, 2nd look): inset as the content (--ff-tab-pad), text tabs
   with the active one underlined in the accent, a fine line between the row and what is under it */
.ff-tabgroup-sub { display: flex; flex-wrap: wrap; gap: 0 22px; margin: calc(-1 * var(--ff-tab-inset-y, 18px) + 6px) 0 var(--ff-tab-inset-y, 18px); padding: 0; list-style: none; border-bottom: 1px solid var(--c-line); }
.ff-tabgroup-sub::before, .ff-tabgroup-sub::after { display: none; }
.ff-tabgroup-sub > li { float: none; margin: 0 0 -1px; }
.ff-tabgroup-sub > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 0 8px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--c-soft); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.ff-tabgroup-sub > li > a:hover, .ff-tabgroup-sub > li > a:focus { color: var(--c-ink-strong); background: none; text-decoration: none; }
.ff-tabgroup-sub > li > a:focus-visible { outline: 2px solid var(--c-accent, var(--c-info)); outline-offset: 2px; }
.ff-tabgroup-sub > li.active > a, .ff-tabgroup-sub > li.active > a:hover, .ff-tabgroup-sub > li.active > a:focus { color: var(--c-ink-strong); font-weight: 600; border-bottom-color: var(--c-info); background: none; }
/* the content of a sub-tab sits on the white of the tab as the content of a main tab does: no frame of its own, and
   no inset of the theme's .tab-content on top of the content's own */
.ff-tabgroup-pane > .tab-content { padding: 0; }
.ff-tabgroup-pane > .tab-content > .tab-pane > .form-part,
.ff-tabgroup-pane > .tab-content > .tab-pane > [id^="snippet-"] > .form-part { margin-bottom: 0; border: 0; border-radius: 0; box-shadow: none; }
.ff-tabgroup-sub .ff-tabgroup-badge { font-size: 10.5px; line-height: 15px; min-width: 16px; padding: 0 5px; }
/* the number of records of a tab (tabGroups.latte ffTabCount): one muted badge everywhere, the tone of an alert when
   the tab holds something to solve; a group only a dot (ffTabDot) */
.ff-tabgroup-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; vertical-align: 1px; background: var(--c-none-wash); color: var(--c-neutral-ink); }
.ff-tabgroup-sub .ff-tabgroup-count { font-size: 10.5px; line-height: 15px; min-width: 16px; }
.ff-tabgroup-count-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.ff-tabgroup-count-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.ff-tabgroup-count-info { background: var(--c-info-wash); color: var(--c-info-ink); }
.ff-tabgroup-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; vertical-align: 1px; }
.ff-tabgroup-dot.ff-tabgroup-badge-danger { background: var(--c-bad); }
.ff-tabgroup-dot.ff-tabgroup-badge-warning { background: var(--c-warn); }
.ff-tabgroup-dot.ff-tabgroup-badge-info { background: var(--c-info); }
.ff-tabgroup-pane .row-links + .ff-form-hint { clear: both; padding-top: 6px; }
.ff-tabgroup-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; vertical-align: 1px; }
.ff-tabgroup-badge-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.ff-tabgroup-badge-warning { background: var(--c-warn-wash); color: var(--c-warn-ink); }
.ff-tabgroup-badge-info { background: var(--c-info-wash); color: var(--c-info-ink); }
.ff-tabgroup-badge-muted { background: var(--c-none-wash); color: var(--c-neutral-ink); }
/* dark: the red count on the lighter ground of a tab was 4.46:1 with --c-bad-ink, now 5.4:1 (DS16-01) */
[data-theme="dark"] .ff-tabgroup-count-danger, [data-theme="dark"] .ff-tabgroup-badge-danger:not(.ff-tabgroup-dot) { color: #ffa8a8; }
/* the tab "Upozornění" in the colour of the worst of it */
.nav-tabs > li.ff-tabgroup-alert-danger > a, .nav-tabs > li.ff-tabgroup-alert-danger > a:hover { color: var(--c-bad-ink); }
.nav-tabs > li.ff-tabgroup-alert-warning > a, .nav-tabs > li.ff-tabgroup-alert-warning > a:hover { color: var(--c-warn-ink); }
.nav-tabs > li.ff-tabgroup-alert-danger.active > a { border-bottom-color: var(--c-bad)!important; }
.nav-tabs > li.ff-tabgroup-alert-warning.active > a { border-bottom-color: var(--c-warn)!important; }
/* the tab Upozornění (__inc/cardAlertsTab.latte): the list of the order's invoicing check (.ic), a line a warning --
   its level's icon and colour, what in ink, why/when muted, where on the card, a small action on the right */
.ff-alerts-head-warn { border-color: var(--c-warn); border-left-color: var(--c-warn); background: var(--c-warn-wash); }
.ff-alerts-head-warn > i { color: var(--c-warn-ink); }
.ff-alerts-level { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: 12px; font-weight: 600; }
.ff-alerts-level-bad { color: var(--c-bad-ink); }
.ff-alerts-level-warn { color: var(--c-warn-ink); }
.ff-alerts-level-muted { color: var(--c-muted); }
/* "Ostatní 1" on the yellow of a head with warnings was 4,43 : 1 (ux-lint, round 19) */
.ff-alerts-head-warn .ff-alerts-level-muted { color: var(--c-label); }
.ff-alerts-list { gap: 0; padding: 0; }
.ff-alerts-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--c-line); }
.ff-alerts-item:last-child { border-bottom: 0; }
.ff-alerts-item > i { flex: 0 0 auto; margin: 0; font-size: 14px; }
.ff-alerts-item.ic-bad > i { color: var(--c-bad-ink); }
.ff-alerts-item.ic-warn > i { color: var(--c-warn-ink); }
.ff-alerts-item.ic-muted > i { color: var(--c-soft); }
/* the text in ink whatever the level: the icon carries it (the order's list paints the line red, a list of ten red
   lines read as shouting) */
.ff-alerts-item.ic-bad, .ff-alerts-item.ic-warn, .ff-alerts-item.ic-muted { color: var(--c-ink); }
.ff-alerts-body { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ff-alerts-what { font-weight: 600; }
.ff-alerts-thing { margin-right: 6px; color: var(--c-soft); }
.ff-alerts-why { font-size: 12px; }
.ic-bad .ff-alerts-why { color: var(--c-bad-ink); }
.ic-warn .ff-alerts-why { color: var(--c-warn-ink); }
.ic-muted .ff-alerts-why { color: var(--c-muted); }
.ff-alerts-when { font-size: 12px; color: var(--c-muted); }
.ff-alerts-where { font-size: 12px; }
.ff-alerts-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.ff-alerts-actions .btn { float: none; margin: 0; }
.ff-alerts + .ff-form-hint { margin-top: 14px; }

/* ---- Servis → Tachometr a spotřeba (David, 6. 11. 2026; vehicle-odometer.js): the chart's tokens, light and dark --
   three categorical slots of the dataviz palette (all-pairs safe), the status colours of the application */
.ff-odo {
	--odo-s1: #2a78d6; --odo-s2: #eb6834; --odo-s3: #1baf7a;
	--odo-line: var(--c-soft); --odo-grid: var(--c-line); --odo-text: var(--c-ink); --odo-muted: var(--c-soft);
	--odo-surface: var(--c-white); --odo-bad: var(--c-bad); --odo-warn: var(--c-warn);
	--odo-tip-bg: #333a40; --odo-tip-text: #ffffff;
}
[data-theme="dark"] .ff-odo { --odo-s1: #3987e5; --odo-s2: #d95926; --odo-s3: #199e70; --odo-tip-bg: #e9edf1; --odo-tip-text: #15191d; }
.ff-odo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ff-odo-head .ff-section-title { margin: 0; }
.ff-odo-range .ff-segment span { padding: 4px 12px; font-size: 12px; }
.ff-odo-canvas { position: relative; height: 320px; margin-bottom: 6px; }
.ff-odo-canvas-low { height: 240px; }
.ff-odo-table { margin-bottom: 18px; }
/* dark.css paints every link blue: the row keeps the colours of the text */
[data-theme="dark"] .nav.ff-tabgroup-sub > li > a { color: var(--c-soft); }
[data-theme="dark"] .nav.ff-tabgroup-sub > li > a:hover, [data-theme="dark"] .nav.ff-tabgroup-sub > li.active > a { color: var(--c-ink-strong); }

/* the tab Přehled of a vehicle, a trailer and a person (David, 6. 11. 2026; __inc/cardSituation.latte): a band of the
   state on top, the map and the crew side by side, then cards in the look of the stat cards (.stat-card) -- an icon in a
   coloured ring, a grey label in capitals, a strong value, "—" grey where there is nothing. Light and dark by the tokens */
/* the label is written as a sentence like the tiles' captions, no longer in capitals (DS13-04) */
.ff-now-label { font-size: 12px; font-weight: 600; color: var(--c-muted); line-height: 1.3; }
.ff-now-label i { margin-right: 3px; }
.ff-now-value { font-size: 15px; font-weight: 600; color: var(--c-ink-strong); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.ff-now-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--c-soft); overflow-wrap: anywhere; }
.ff-now-sub i { width: 14px; text-align: center; color: var(--c-muted); }
.ff-now-inline { margin-top: 0; }
.ff-now-empty { color: var(--c-muted); font-weight: 500; }
.ff-now-tone-danger { color: var(--c-bad-ink); }
.ff-now-tone-warning { color: var(--c-warn-ink, var(--c-warn)); }
.ff-now-tone-success { color: var(--c-ok-ink); }

/* the ring of an icon: the stat card's square, round, in the colour of what it says */
.ff-now-ring { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; background: var(--c-none-wash-soft, var(--c-none-wash)); color: var(--c-soft); }
.ff-now-ring-lg { width: 52px; height: 52px; font-size: 22px; }
.ff-now-ring-success { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-now-ring-info { background: var(--c-info-wash); color: var(--c-info-ink); }
.ff-now-ring-warning { background: var(--c-warn-wash); color: var(--c-warn-ink, var(--c-warn)); }
.ff-now-ring-danger { background: var(--c-bad-wash); color: var(--c-bad-ink); }
.ff-now-ring-purple { background: var(--c-alt-wash); color: var(--c-alt-ink); }

/* the partner's tiles in half of the card: without icons, three in a row at 1366 without a label broken into a column */
.ff-now-tiles .stat-card { flex-basis: 150px; min-width: 150px; padding: 12px 14px 12px 16px; }
.ff-now-tiles .stat-card > .stat-icon { display: none; }
/* the band of the state: the verdict large, free from and the place beside it, the chips under them */
.ff-now-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding: 16px 18px 16px 21px; margin-bottom: 14px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; }
.ff-now-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-line-chip); }
.ff-now-hero-success::before { background: var(--c-ok); }
.ff-now-hero-warning::before { background: var(--c-warn); }
.ff-now-hero-danger::before { background: var(--c-bad); }
.ff-now-hero-success { background: linear-gradient(90deg, var(--c-ok-wash), var(--c-white) 45%); }
.ff-now-hero-warning { background: linear-gradient(90deg, var(--c-warn-wash), var(--c-white) 45%); }
.ff-now-hero-danger { background: linear-gradient(90deg, var(--c-bad-wash), var(--c-white) 45%); }
.ff-now-hero-state { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 300px; }
.ff-now-hero-text { min-width: 0; }
.ff-now-verdict { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ff-now-reasons { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.ff-now-reasons span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-ink); }
.ff-now-hero-item { flex: 0 1 auto; min-width: 150px; max-width: 360px; }
.ff-now-hero-value { font-size: 17px; font-weight: 600; color: var(--c-ink-strong); margin-top: 3px; line-height: 1.3; }
.ff-now-age { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--c-info-wash); color: var(--c-info-ink); vertical-align: 2px; }
.ff-now-age-old { background: var(--c-warn-wash); color: var(--c-warn-ink, var(--c-warn)); }
.ff-now-chips { flex: 1 0 100%; margin-top: -2px; }

/* the map and the crew: two columns from 1500 px of the screen, one under another below (the right column at 1366) */
.ff-now-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (min-width: 1500px) { .ff-now-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ff-now-panel { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; padding: 14px 16px; min-width: 0; }
.ff-now-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ff-now-panel-link { font-size: 12.5px; }
.ff-now-map { height: 220px; border-radius: 5px; overflow: hidden; background: var(--c-ground); border: 1px solid var(--c-line); }
.ff-now-map-none { height: 120px; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--c-ground); color: var(--c-muted); font-weight: 500; }
.ff-now-where-text { margin-top: 10px; }
.ff-now-lastknown { display: flex; align-items: center; gap: 6px; }
.ff-now-lastknown .badge-soft { text-transform: none; letter-spacing: 0; }
/* an old place: the map a shade paler, the pin grey (card-now-map.js) */
.ff-now-map.is-old { filter: saturate(0.55); }

/* the people and the plates of the crew */
.ff-now-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ff-now-person { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 6px; min-width: 0; }
.ff-now-person.is-empty { border-style: dashed; }
.ff-now-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
	background: var(--c-none-wash); color: var(--c-muted); }
/* the colours of the crew of the board: the driver green, the second driver violet, the lorry blue, the trailer orange */
.ff-now-avatar-driver { background: var(--c-ok-wash); color: var(--c-ok-ink); }
.ff-now-avatar-codriver { background: var(--c-alt-wash); color: var(--c-alt-ink); }
.ff-now-avatar-vehicle { background: var(--c-info-wash); color: var(--c-info-ink); }
.ff-now-avatar-trailer { background: var(--c-warn-wash); color: var(--c-warn-ink, var(--c-warn)); }
.ff-now-person-body { min-width: 0; }
.ff-now-person-name { font-size: 15px; font-weight: 600; color: var(--c-ink-strong); line-height: 1.3; overflow-wrap: anywhere; }

/* the cards under them: the stat card's look on the card's white */
.ff-now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 10px; }
.ff-now-card { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; min-width: 0; }
.ff-now-card-body { min-width: 0; flex: 1; }
.ff-now-card-wide { grid-column: 1 / -1; }
.ff-now-trip + .ff-now-trip { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--c-line); }
.ff-now-trip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.ff-now-trip-id { font-size: 16px; font-weight: 700; }
.ff-now-route { font-size: 15px; font-weight: 600; color: var(--c-ink-strong); }
.ff-now-route i { color: var(--c-muted); margin: 0 3px; }
.ff-now-orders { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.ff-now-orders > i { color: var(--c-muted); }
/* the stops of a trip as dots on a line: done filled, the one it is at ringed, the next one outlined */
.ff-now-stops { display: flex; align-items: center; list-style: none; padding: 0; margin: 10px 0 4px; max-width: 520px; }
.ff-now-stops li { flex: 1 1 0; display: flex; align-items: center; position: relative; }
.ff-now-stops li:last-child { flex: 0 0 auto; }
.ff-now-stops li::after { content: ''; flex: 1; height: 3px; background: var(--c-line); margin: 0 2px; border-radius: 2px; }
.ff-now-stops li:last-child::after { display: none; }
.ff-now-stops li.is-done::after { background: var(--c-ok); }
.ff-now-stops li span { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--c-white); border: 2px solid var(--c-line-input, var(--c-line)); }
.ff-now-stops li.is-done span { background: var(--c-ok); border-color: var(--c-ok); }
.ff-now-stops li.is-here span { width: 16px; height: 16px; background: var(--c-info); border-color: var(--c-info); box-shadow: 0 0 0 4px var(--c-info-wash); }
.ff-now-stops li.is-next span { border-color: var(--c-info); border-width: 3px; }
.ff-now-stops li span { cursor: default; }
.ff-now-stops li span:focus-visible { outline: 2px solid var(--c-info); outline-offset: 2px; }
/* the tooltip of a stop: the board's lines, one under another */
.tooltip.ff-stop-tip .tooltip-inner { white-space: pre-line; text-align: left; max-width: 320px; }
/* what runs out stands above the documents of the tab Doklady, the documents' own box under it: the gap and the fine line
   of a section after a table (.ff-section-title after a table: 30 px + line), the box of the documents has no heading */
.ff-card-expiry .ff-full { padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.ff-card-expiry + * > .form-part { padding-top: 14px; }

/* a stat card's number in a colour of its own: the result of a vehicle green or red (statCards.latte valueClass) */
.stat-card .stat-value.text-success { color: var(--c-ok-ink); }
.stat-card .stat-value.text-danger { color: var(--c-bad-ink); }

/* Ekonomika → Výsledek: the costs by kind as bars of their share (Vehicles/_resultTab.latte) -- one hue for the
   magnitude, a thin bar on a muted track with a rounded end, the numbers in ink beside it, never in the bar's colour */
.ff-bars { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 2fr) 70px 140px 90px; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.ff-bars-row { display: contents; }
.ff-bars-row > span { padding: 7px 8px; border-bottom: 1px solid var(--c-line); align-self: stretch; display: flex; align-items: center; min-width: 0; }
.ff-bars-row > span.text-right { justify-content: flex-end; }
.ff-bars-head > span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-label); background: var(--c-none-wash-soft); }
.ff-bars-row:not(.ff-bars-head):not(.ff-bars-total):hover > span { background: var(--c-none-wash-soft); }
.ff-bars-name { flex-direction: column; align-items: flex-start !important; justify-content: center; }
.ff-bars-name small { display: block; font-size: 11px; line-height: 1.3; }
.ff-bars-track { position: relative; }
.ff-bars-track::before { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 10px; margin-top: -5px; border-radius: 4px; background: var(--c-none-wash); }
.ff-bars-fill { position: relative; display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--c-info); min-width: 0; }
.ff-bars-total > span { border-bottom: 0; border-top: 2px solid var(--c-line); font-weight: 600; }
.ff-bars.ff-bars-4 { grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 2fr) 70px 140px; }
@media (max-width: 1500px) {
	.ff-bars { grid-template-columns: minmax(140px, 1.2fr) minmax(80px, 1.4fr) 62px 125px 80px; }
	.ff-bars.ff-bars-4 { grid-template-columns: minmax(140px, 1.2fr) minmax(80px, 1.4fr) 62px 125px; }
}

/* the card of a partner (David, 6. 11. 2026): Obchod → Objednávky / Nabídky / Poptávky, the summary and the switch above
   the rows (Customers/templates/_documentsTab.latte) */
.ff-partner-docs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 12px; }
.ff-partner-docs-figures { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.ff-partner-docs-figure { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ff-partner-docs-figure strong { font-size: 16px; color: var(--c-ink-strong); }
.ff-partner-docs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ff-partner-docs-actions .btn-group .ff-tabgroup-count { margin-left: 4px; }
.ff-partner-docs-actions .btn-primary .ff-tabgroup-count { background: rgba(255, 255, 255, 0.25); color: inherit; }
.ff-partner-docs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* the listings of Obchod in the card's column (~600 px at 1366): a long driver's name, a stop and the margin's lines wrap
   instead of pushing the table past the edge (the orders' table was 715 px in 598) */
.ff-partner-docs-table .dispatch-vehicle, .ff-partner-docs-table .dispatch-vehicle small, .ff-partner-docs-table .ff-route-stop,
.ff-partner-docs-table .ff-partner-docs-margin small { white-space: normal; }

/* "+ Nový" in the title bar (David, 9. 11. 2026; quick-new.js): a round green "+" between the search and the bell,
   its menu a panel under it as the bell's, by the tokens -- the dark theme comes with them */
.ff-quick-new { position: relative; margin-left: 8px; }
.ff-quick-new-trigger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin-top: -4px; padding: 0; cursor: pointer;
	background-color: var(--c-ok-deep); border: 1px solid var(--c-ok-deep); border-radius: 50%;
	color: #ffffff; font-size: 15px;
	transition: background-color 150ms, box-shadow 150ms;
}
.ff-quick-new-trigger:hover,
.ff-quick-new.open .ff-quick-new-trigger { filter: brightness(.88); outline: none; }
.ff-quick-new-trigger:focus { outline: none; }
.ff-quick-new-trigger:focus-visible { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-info); }
/* the dialog: the search's (.search-palette-dialog, -field, -close, -hint), wider for three panels to a row */
.ff-quick-new-palette { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1090; background-color: rgba(31, 41, 51, 0.45); }
.ff-quick-new-palette[hidden] { display: none; }
[data-theme="dark"] .ff-quick-new-palette { background-color: rgba(0, 0, 0, 0.6); }
.search-palette-dialog.ff-quick-new-dialog { display: flex; flex-direction: column; width: 900px; margin-top: 8vh; max-height: 84vh; }
.ff-quick-new-dialog .search-palette-field > i { color: var(--c-ok-deep); }
.ff-quick-new-filter {
	flex: 1; min-width: 0; height: 56px; padding: 0; border: none; box-shadow: none;
	font-size: 17px; color: var(--c-ink-strong); background: transparent;
}
.ff-quick-new-filter:focus { outline: none; box-shadow: none; }
.ff-quick-new-filter::placeholder { color: var(--c-quiet); }
.ff-quick-new-context { padding: 8px 16px; background: var(--c-info-wash); color: var(--c-info-ink); font-size: 12px; border-bottom: 1px solid var(--c-line-quiet); }
.ff-quick-new-context i { margin-right: 4px; }
.ff-quick-new-list { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px 14px; }
.ff-quick-new-group { margin-top: 10px; }
.ff-quick-new-group.is-filtered, .ff-quick-new-item.is-filtered, .ff-quick-new-group[hidden], .ff-quick-new-empty[hidden] { display: none; }
/* DS14-01: a section's name is a sentence like a board card's name (DS12-02), not "FLOTILA A SERVIS" */
.ff-quick-new-head { margin: 0 0 5px; color: var(--c-label); font-size: 12px; font-weight: var(--fw-semi); line-height: 1.4; }
/* three to a row on Full HD and on 1366 px alike, only narrower */
.ff-quick-new-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-quick-new-item {
	display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; min-height: 64px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px;
	color: var(--c-ink); text-decoration: none; transition: border-color 120ms, background-color 120ms;
}
.ff-quick-new-item:hover { background: var(--c-ground); border-color: var(--c-line-input); color: var(--c-ink); text-decoration: none; }
.ff-quick-new-item:focus { outline: none; text-decoration: none; }
.ff-quick-new-item.is-active, .ff-quick-new-item:focus-visible {
	background: var(--c-info-wash); border-color: var(--c-info); box-shadow: 0 0 0 3px var(--c-focus-ring); color: var(--c-ink);
}
.ff-quick-new-icon {
	flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--c-ok-wash); color: var(--c-ok-ink); font-size: 14px;
}
.ff-quick-new-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ff-quick-new-label { color: var(--c-ink-strong); font-size: 13px; font-weight: var(--fw-semi); line-height: 1.3; }
.ff-quick-new-desc { color: var(--c-muted); font-size: 12px; line-height: 1.35; }
.ff-quick-new-with {
	align-self: flex-start; margin-top: 3px; padding: 1px 6px; border-radius: var(--r); background: var(--c-info-wash); color: var(--c-info-ink);
	font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ff-quick-new-empty { padding: 24px 12px; text-align: center; color: var(--c-soft); font-size: 13px; }
/* R9-5 / S9-13: the sections in four columns, the same on every page; a panel is its icon and name (its description
   in the hint line under the dialog), so all of them fit 1366 x 768 without scrolling */
.search-palette-dialog.ff-quick-new-dialog { width: min(1160px, calc(100vw - 32px)); margin-top: 5vh; max-height: 90vh; }
.ff-quick-new-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.ff-quick-new-column .ff-quick-new-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
/* S14-12: a panel 36 px high, so the catalog and the row of the page's record fit 1366 x 768 without scrolling */
.ff-quick-new-column .ff-quick-new-item, .ff-quick-new-for .ff-quick-new-item { align-items: center; min-height: 0; padding: 5px 10px; gap: 8px; }
.ff-quick-new-column .ff-quick-new-icon, .ff-quick-new-for .ff-quick-new-icon { flex: 0 0 24px; width: 24px; height: 24px; font-size: 12px; }
.ff-quick-new-column .ff-quick-new-text, .ff-quick-new-for .ff-quick-new-text { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; }
.ff-quick-new-column .ff-quick-new-desc, .ff-quick-new-for .ff-quick-new-desc { display: none; }
/* S14-12: "Předvyplní se vozidlo 009 PLZEN" -- at most six panels in one row over the catalog, apart from it by a line */
.ff-quick-new-for { margin: 8px 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line-quiet); }
.ff-quick-new-for .ff-quick-new-head { color: var(--c-info-ink); }
.ff-quick-new-for .ff-quick-new-head i { margin-right: 3px; }
.ff-quick-new-for .ff-quick-new-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
/* S15-10: the whole name, on two lines if it must ("Objednávka průvo…" was cut); eight panels of a vehicle in two rows */
.ff-quick-new-for .ff-quick-new-label { white-space: normal; overflow-wrap: break-word; }
.ff-quick-new-for .ff-quick-new-text { flex-wrap: nowrap; }
.ff-quick-new-for .ff-quick-new-grid:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* S15-10: the sections of neither the record nor the role, folded under "Vše…" */
.ff-quick-new-more { display: block; margin-top: 10px; border-top: 1px solid var(--c-line-quiet); }
.ff-quick-new-more-toggle { display: block; float: none; padding: 6px 0; font-size: 12px; font-weight: var(--fw-semi); color: var(--c-link-ink); }
.ff-quick-new-more-toggle i { margin-left: 3px; transition: transform 120ms; }
.ff-quick-new-more.is-open .ff-quick-new-more-toggle i { transform: rotate(180deg); }
.ff-quick-new-more:not(.is-open) .ff-quick-new-more-list { display: none; }
.ff-quick-new-column .ff-quick-new-with { margin-top: 0; }
/* the panel prefilled from the record of the page: a quiet mark, the record itself is named once in the band above */
.ff-quick-new-with.is-mark { padding: 0; background: none; color: var(--c-info); font-size: 11px; }
/* the panel used last: marked in its place, nothing moves */
.ff-quick-new-item.is-recent { border-color: var(--c-ok); box-shadow: inset 3px 0 0 var(--c-ok); }
.ff-quick-new-recent-tag { color: var(--c-ok-ink); font-size: 11px; font-weight: 400; }
.search-palette-hint.is-description { color: var(--c-ink); }
/* nothing matches: the word goes on to the search of the records */
.ff-quick-new-search-records {
	display: block; margin: -14px auto 10px; padding: 6px 12px; cursor: pointer;
	background: var(--c-white); border: 1px solid var(--c-line-input); border-radius: 6px; color: var(--c-link-ink); font-size: 13px;
}
.ff-quick-new-search-records[hidden] { display: none; }
.ff-quick-new-search-records:hover, .ff-quick-new-search-records:focus-visible { background: var(--c-info-wash); border-color: var(--c-info); outline: none; }
/* "Nahrát doklad" (quick-new.js): the steps in place of the menu, in its own measures -- "Zpět" in the field's row
   where the "+" is, the panels of whose document as a section of the menu, then the records in the rows of ⌘K */
.ff-quick-new-list[hidden], .ff-quick-new-step[hidden], .ff-quick-new-back[hidden], .search-palette-field > i[hidden] { display: none; }
.ff-quick-new-back { flex: 0 0 auto; white-space: nowrap; }
.ff-quick-new-back i { margin-right: 3px; }
.ff-quick-new-step { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px 14px; }
.ff-quick-new-step.is-records { padding: 0 0 6px; }
.ff-quick-new-step-head { padding: 10px 16px 6px; }
.ff-quick-new-step-head .ff-quick-new-head { margin: 0; }
.ff-quick-new-step .ff-quick-new-item.is-filtered { display: none; }
.ff-quick-new-hits.global-search-results { max-height: none; overflow: visible; }
.ff-quick-new-hit strong { color: var(--c-ink-strong); }
.ff-quick-new-hit-tag { margin-left: 6px; padding: 1px 6px; border-radius: var(--r); background: var(--c-info-wash); color: var(--c-info-ink); font-size: 11px; }

/* "Jak to funguje" (DS8-01): the sentence that explains a screen folded into a link beside its title -- at 1366 x 768
   the intros of Ranní přehled financí, Uzávěrky and Požadované doklady pushed the first row under y = 360. Open, the
   text floats over the page as a popover, so nothing under it moves; Esc or a click elsewhere closes it (custom.js) */
details.ff-howto { position: relative; display: inline-block; margin: 0; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.4; vertical-align: baseline; }
details.ff-howto > summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--c-link-strong); list-style: none; white-space: nowrap; border-radius: var(--r); }
details.ff-howto > summary::-webkit-details-marker { display: none; }
details.ff-howto > summary:hover { text-decoration: underline; }
details.ff-howto > summary:focus-visible { outline: 2px solid var(--c-info); outline-offset: 2px; }
details.ff-howto > summary i { margin: 0 !important; font-size: 12px; }
details.ff-howto > .ff-howto-body {
	position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(62ch, 70vw); padding: 10px 12px;
	background: var(--c-white); border: 1px solid var(--c-line-strong); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	color: var(--c-ink); font-size: 12px; line-height: 1.55; white-space: normal;
}
details.ff-howto.ff-howto-end > .ff-howto-body { left: auto; right: 0; }
details.ff-howto > .ff-howto-body p { margin: 0; }
details.ff-howto > .ff-howto-body p + p { margin-top: 6px; }
/* beside a section title: the title keeps its line, the link sits after it */
.ff-section-title:has(> details.ff-howto) { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.ff-section-title > details.ff-howto { margin-left: 4px; }
/* the manager's board at 1366 px (wave 2 check): the result card ran to 750 px, its notes broken into 140 px. The
   result takes two shares of the row, and below 1600 px the icons give way to the words */
.stat-cards:has(.db-card-all) > .stat-card:has(.db-card-all) { flex: 2 1 340px; }
@media (max-width: 1599px) {
	.stat-cards:has(.db-card-all) > .stat-card { padding: 12px 14px 12px 16px; }
	.stat-cards:has(.db-card-all) > .stat-card > .stat-icon { display: none; }
}
/* the title bar that would wrap (custom.js ffFitTitleBar): its quiet buttons icon only, the words in their tooltip */
/* -- except the ones whose words are the point (.ff-keep-words: "Dobropis", "Odemknout" on the invoice, FI12) */
header.page-title.ff-title-tight .ff-title-actions .btn-default.btn-addon:not(.ff-keep-words) { font-size: 0; gap: 0; padding-left: 10px; padding-right: 10px; }
header.page-title.ff-title-tight .ff-title-actions .btn-default.btn-addon:not(.ff-keep-words) > i { font-size: 14px; margin: 0; }
/* DS13-02: the words stay for a screen reader at a size of their own (font-size 0 counted as text under 11 px) */
header.page-title.ff-title-tight .ff-title-actions .btn-default.btn-addon:not(.ff-keep-words) > .ff-btn-words { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; font-size: 11px; }
/* Stojné (DS8-01): the strips over the listing as low as the bar Provoz, the first claim above y = 360 */
.content-container > .alert:has(~ #ff-demurrages-filters) { padding: 6px 12px; margin-bottom: 6px; }
/* a heading cell in a table's body (a sum, "Rozdíl" of the VAT reconciliation) sits on the grid of the rows: the theme's
   15 px set it 9 px off its column (wave 2 check) */
.table > tbody > tr > th { padding: 6px 6px !important; vertical-align: middle; }
/* a table of figures only, as wide as its columns (Kontroly tankování: "Km bez tankování" stood at the far right edge) */
.table.ff-table-fit { width: auto; min-width: 0; }
/* Volné kapacity (DS8-03): the place clips and the notes under "Volné od" wrap, so on 1920 px no column has to
   give way -- "Kde bude" was 583 px for one place with its badge and pushed "Dispečer" out */
.fc-table > tbody > tr > td:nth-child(6) { white-space: normal; }
.fc-table > tbody > tr > td:nth-child(6) > :is(a, span) { white-space: normal; }
.fc-table > tbody > tr > td:nth-child(8) .ff-clip { max-width: 340px; }
/* beside the fields of a filter, level with the fields' line */
.ff-filter .ff-field-howto { align-self: flex-end; padding-bottom: 8px; }
/* a bar of one or two fields with its "Jak to funguje" (Rozpouštění režie): one line, the word beside its field, as the
   period bar of the listings (DS5-12) -- the first cost was at y = 379 */
.ff-filter:has(> .ff-field-howto) { align-items: center; padding-top: 7px; padding-bottom: 7px; margin-bottom: 8px; }
.ff-filter:has(> .ff-field-howto) > .ff-field { flex-direction: row; align-items: center; gap: 6px; }
.ff-filter:has(> .ff-field-howto) > .ff-field > label { white-space: nowrap; margin: 0; }
.ff-filter:has(> .ff-field-howto) > .ff-field-howto { align-self: center; padding-bottom: 0; }

/* Ranní přehled financí (DS8-01): six cards in a row on 1366 px were 145 px tall -- the balance broke into four
   lines. The figures one line each, "příjmy / výdaje" one line under the name; the icon gives way below 1600 px */
.wl-stats .stat-cards { margin-top: 0; margin-bottom: 10px; gap: 10px; }
.wl-stats .stat-card .stat-label .stat-label-note { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-stats + .ff-section-title { margin: 4px 0 10px; }
/* DS13-02: Bootstrap's 85 % / 75 % "small" fell under 11 px in 12- and 13-px text (Časové rozlišení totals 10.2 px,
   the heading note of Uzávěrky 9.75 px, the wizard's recent chips 10.2 px) -- never under 11 px */
small, .small { font-size: max(85%, 11px); }
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) :is(small, .small) { font-size: max(75%, 11px); }
/* DS13-02: no words under 11 px -- the initials, hours and states of the fleet map and of the plachta's rows, the
   legend and the counts of the sub-tabs (9.5 and 10.5 px, "DD", "PR" on /fleet-map/) */
.fleet-map-owner, .fleet-map-hours, .fleet-map-state, .dispatch-legend :is(.lg-ini, .lg-hours, .lg-chip),
.ff-tabgroup-sub :is(.ff-tabgroup-badge, .ff-tabgroup-count) { font-size: 11px; }
:is(#dispatch-timeline, #dispatch-plan-timeline) :is(.dg .group-owner, .dg-hours, .dg-free-short) { font-size: 11px; }
/* DS13-02: the filter's name over its value on the narrow plachta bar (dispatch-timeline.js writes 9 px inline) */
#dispatch-timeline-controls .dsel-cap { font-size: 11px !important; line-height: 12px !important; }
/* DS13-02: white words on the dark theme's red button were 4.09:1 ("Zrušit stazku"); dark.css #d45253 / #ef6a6b */
:root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-danger.disabled, :root[data-theme="dark"] .btn-danger[disabled] { background-color: #b93a3b; }
:root[data-theme="dark"] .btn-danger:is(:hover, :focus, :active, .active) { background-color: #c94546; }
/* DS13-04: the wizard's summary ("Zákazník", "Trasa", "Termín") as a sentence like every other block label
   (order-wizard.css wrote it in capitals; this is the one rule) */
body .ow-row dt { text-transform: none; letter-spacing: 0; }
@media (max-width: 1599px) {
	.wl-stats .stat-card { flex-basis: 150px; min-width: 150px; padding: 10px 12px 10px 14px; }
	.wl-stats .stat-card .stat-icon { display: none; }
	.wl-stats .stat-card .stat-value { font-size: 18px; }
}

/* DS14-01: the name of a block is a sentence everywhere, by this one rule (the board's cards, DS12-02; DS13-04 did it
   screen by screen and left "HLAVNÍ ÚDAJE" beside "Platby", "OBDOBÍ", "CASH-FLOW 30 / 60 / 90 DNÍ" and the wizard's
   "ZÁKAZNÍK"). Capitals stay only where they mark a tag or a table's column head */
.panel > .panel-heading, .form-part h3, .form-part h3 label, .ff-section-title, .chart-panel-title, .ff-form-legend,
.ff-flow-label, .ff-flow-next-caption, .ff-subsection-title, .ff-modal-section, .ff-doc-more-toggle, .pc-title,
.fm-card-section, .td-crew-section, .ve-info-head, .ve-info-cargo-label, .dm-ctx-head, .dm-facts-cargo-label,
.ff-handover-group h5, .vs-group-head, .transport-point span.grey, .tl-stop-kind, .op-timeline-day,
.ff-filter .ff-field > label, .inline-form .ff-field > label {
	text-transform: none; letter-spacing: normal;
}
:is(#modal-orderDetail, #modal-tripDetail, #section-load, #section-eco) .od-info-head,
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-head { text-transform: none; letter-spacing: normal; }
/* the wizard's "Marže po plném nákladu", its summary's names and sub-heads (order-wizard.css loads after this file) */
body .ow-sub, body .ow-margin-label, body .ow-row dt { text-transform: none; letter-spacing: normal; }
body .ow-margin-label { font-size: 12px; }
/* in small capitals 10-11 px read as a heading; as a sentence they need the board's 12 px */
.panel > .panel-heading, .form-part h3, .form-part h3 label, .ff-form-legend, .ff-flow-label, .ff-flow-next-caption,
.ff-subsection-title, .ff-modal-section, .ff-doc-more-toggle, .fm-card-section, .td-crew-section, .ve-info-cargo-label, .dm-ctx-head,
.dm-facts-cargo-label, .vs-group-head, .transport-point span.grey, .op-timeline-day { font-size: 12px; }
:is(#modal-orderDetail, #modal-tripDetail, #section-load, #section-eco) .od-info-head,
:is(#modal-vehicleInfo, #modal-driverInfo) .ve-info-head { font-size: 12px; }
/* DS14-03: the arrows of the month beside its select, as "‹ Dnes ›" on the board -- the filter's actions went to the
   far right, ~420 px away */
#ov-filters .ff-filter > .ff-actions { margin-left: 0; }
/* DS14-04: the day's breakdown once a day, a cell over its rows: its lines take the height of the day's two rows
   instead of making each 90 px; wide enough that the amounts beside it keep to one line */
.ff-table th.ff-col-breakdown, .ff-table td.ff-col-breakdown { min-width: 300px; }
td.ff-col-breakdown[rowspan] { vertical-align: middle; }
/* at 1366 the table was 1063 px in 807: the date's tags go under the date and the breakdown narrows, so the day
   fits without a sideways scroll (W14-4 review 2); Full HD keeps one line */
@media (max-width: 1599px) {
	.ff-table td.ff-col-day { white-space: normal; min-width: 96px; }
	.ff-table td.ff-col-day > .badge-soft { display: inline-block; margin: 2px 4px 0 0; white-space: nowrap; }
	.ff-table th.ff-col-breakdown, .ff-table td.ff-col-breakdown { min-width: 170px; }
}
/* DS14-02: a superscript ("m²", "m³") was 75 % of 13 px; at least 11 px everywhere */
sup, sub { font-size: max(11px, 75%); }
/* DI16-04: compact rows of the board leave the line of the place out -- the town stands by the driver then */
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place-short { display: none; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 400; color: var(--c-label); cursor: help; }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place-short > i { margin-right: 3px; font-size: 10px; color: var(--c-muted); }
:is(#dispatch-timeline, #dispatch-plan-timeline) .dg-place-short .dg-age { color: var(--c-quiet); }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .dg-place-short { display: inline-block; }
:is(#dispatch-timeline, #dispatch-plan-timeline).dispatch-compact .dg-people .dg-crew { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* DI16-03: the date of "Volné do" whole, ten characters -- "23.11.20" was cut */
.fc-until.form-control { min-width: 96px; }
/* OB16-04: the wizard's other choices folded under "▸ další možnosti" -- the text carries its own arrow, so no browser
   marker beside it; a small link-like line under the number, the choices indented under it */
body details.ow-margin-more { margin-top: 4px; }
body details.ow-margin-more > summary { display: inline-block; list-style: none; cursor: pointer; font-size: 12px; user-select: none; }
body details.ow-margin-more > summary::-webkit-details-marker { display: none; }
body details.ow-margin-more > summary:hover, body details.ow-margin-more > summary:focus-visible { color: var(--c-link, #2a6fdb) !important; text-decoration: underline; }
body details.ow-margin-more[open] > summary { margin-bottom: 2px; }
body details.ow-margin-more > :not(summary) { padding-left: 12px; }

/* AD18-06: the invitation as its first recipient gets it, in the dialog of the accounts (the e-mail is white in both themes) */
body .ff-invitation-preview { display: block; width: 100%; height: 460px; border: 1px solid var(--c-line); border-radius: 4px; background: #fff; }

/* DI18-04: the compact board in one line of 36 px -- tractor · trailer · driver · place, the dispatcher's initials
   at the end -- so 20+ lorries of a hundred fit on 1920 × 1080 (two lines of 54 px left 13). The dispatch board
   only: the deployment plan keeps its rows. The bars are drawn to the row: the trip's line on top, its order
   under it in one line, two or three orders at once in strips of 9 / 6 px (never a dot). */
#dispatch-timeline.dispatch-compact .vis-label.dispatch-group,
#dispatch-timeline.dispatch-compact .vis-label.dispatch-group .vis-inner,
#dispatch-timeline.dispatch-compact .vis-foreground .vis-group { height: 36px !important; }
#dispatch-timeline.dispatch-compact .vis-label.dispatch-group .vis-inner > div.dg { flex-direction: row; align-items: center; gap: 5px; overflow: hidden; }
#dispatch-timeline.dispatch-compact .dg-set,
#dispatch-timeline.dispatch-compact .dg-people { display: contents; }
#dispatch-timeline.dispatch-compact .dg .licence-plate { height: 18px; line-height: 16px; padding: 0 4px; font-size: 11px; }
#dispatch-timeline.dispatch-compact .dg .licence-plate > i { display: none; }
#dispatch-timeline.dispatch-compact .dg .licence-plate.is-none { font-size: 10.5px; }
/* the driver whole ("Klodvig V."), the place gives way first, then two drivers or a row of chips down to 56 px --
   the dispatcher's initials at the end stay in */
#dispatch-timeline.dispatch-compact .dg-people .dg-crew { flex: 0 1 auto; min-width: 56px; max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dispatch-timeline.dispatch-compact .dg-crew > i { display: none; }
#dispatch-timeline.dispatch-compact .dg-place-short { flex: 0 10 auto; min-width: 0; white-space: nowrap; }
#dispatch-timeline.dispatch-compact .dg-hours,
#dispatch-timeline.dispatch-compact .dg-people .group-chips { flex: none; margin-left: 0; }
#dispatch-timeline.dispatch-compact .dg .group-chip { width: 16px; height: 16px; }
#dispatch-timeline.dispatch-compact .dg .group-owner,
#dispatch-timeline.dispatch-compact .dg-free-short { order: 9; margin-left: auto; }
#dispatch-timeline.dispatch-compact .dg .group-owner { min-width: 18px; height: 18px; }
#dispatch-timeline.dispatch-compact.sort-waterfall .dg-free-short { order: 9; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-trip { height: 32px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-trip .trip-label { top: 1px; line-height: 11px; height: 11px; font-size: 10.5px; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order { top: 14px !important; height: 19px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order .vis-item-content { line-height: 13px; padding: 2px 6px; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order.order-lanes-2 { height: 9px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order.order-lanes-2.order-lane-1 { top: 24px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order.order-lanes-3 { height: 6px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order.order-lanes-3.order-lane-1 { top: 21px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order.order-lanes-3.order-lane-2 { top: 28px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-order:is(.order-lanes-2, .order-lanes-3) .vis-item-content { font-size: 0; padding: 0; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-note,
#dispatch-timeline.dispatch-compact .vis-item.timeline-reservation { top: 16px !important; height: 18px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-note .vis-item-content,
#dispatch-timeline.dispatch-compact .vis-item.timeline-reservation .vis-item-content { padding: 2px 6px; line-height: 13px; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-event .vis-item-content { height: 36px; }
#dispatch-timeline.dispatch-compact .vis-item.dispatch-unavailable,
#dispatch-timeline.dispatch-compact .vis-item.vis-background.dispatch-home-weekend { height: 36px !important; }
#dispatch-timeline.dispatch-compact .vis-item.timeline-home .vis-item-content { top: 16px; width: 18px; height: 18px; }
/* DI19-01: the state of a compact row in a word -- hidden in the full rows, a soft badge in the compact ones */
.dg-state-short { display: none; }
#dispatch-timeline.dispatch-compact .dg-state-short { display: inline-block; flex: 0 1 auto; max-width: 92px; padding: 0 4px; border-radius: 3px; font-size: 10.5px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dispatch-timeline.dispatch-compact .dg-state-short-out { background: var(--c-bad-wash); color: var(--c-bad-ink); }
#dispatch-timeline.dispatch-compact .dg-state-short-close { background: var(--c-warn-wash); color: var(--c-warn-ink); }
#dispatch-timeline.dispatch-compact .dg-place-short { min-width: 8ch; }
/* DI19-01 check (wave 4): in 290 px the state of a compact row shrank to its 8 px of padding -- "uzavřít #49030" and
   "nemůže jet" were a coloured dot. The state never gives way, the driver gives down to 44 px (whole in the tooltip),
   and on Full HD the column of the rows takes 400 px -- the full rows too and the pool under them, so the days stay one
   above the other whichever way "Kompaktní" is switched (the pool is not redrawn by the switch); the plan keeps 290 px */
#dispatch-timeline.dispatch-compact .dg-state-short { flex: 0 0 auto; }
#dispatch-timeline.dispatch-compact .dg-people .dg-crew { min-width: 44px; }
/* wave 4 review: with the state kept whole the place and the dispatcher's initials ran out of the 290/400 px column
   ("uzavřít #4899" cut by the edge, "MT" gone) -- the place gives way first, down to nothing (whole in the tooltip),
   the dispatcher's initials never */
#dispatch-timeline.dispatch-compact .dg-place-short { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; }
#dispatch-timeline.dispatch-compact .group-owner { flex: 0 0 auto; }
/* in the 290 px column (below Full HD) that is still too much: an empty trailer is its icon, the state and the driver
   shrink with an ellipsis (whole in their tooltips) -- the plate, the chips and the initials stay */
@media (max-width: 1799px) {
	#dispatch-timeline.dispatch-compact .dg-trailer.is-none { max-width: 22px; overflow: hidden; flex: 0 0 auto; }
	#dispatch-timeline.dispatch-compact .dg-state-short { flex: 0 1 auto; min-width: 44px; }
	#dispatch-timeline.dispatch-compact .dg-people .dg-crew { min-width: 30px; }
	/* past four chips the row keeps the first of them (the rest in the full row and the trip), never the initials */
	#dispatch-timeline.dispatch-compact .dg .group-chips { flex: 0 1 auto; min-width: 14px; overflow: hidden; }
}
#dispatch-timeline.dispatch-compact .dg .group-chip { width: 14px; height: 14px; }
@media (min-width: 1800px) {
	#dispatch-timeline .vis-labelset .vis-label.dispatch-group,
	#dispatch-timeline .vis-labelset .vis-label,
	#dispatch-pool .vis-labelset .vis-label { min-width: 400px; max-width: 400px; }
}

/* DS18-01: a tooltip that is a list (the reasons of a row of the assignment dialog), one thing a line */
.tooltip.ff-list-tip .tooltip-inner { text-align: left; max-width: 380px; }

/* DS18-01 contrast, light mode (ux-lint after the clicks): the greys of the wizard's margin block on its tone
   (4,43 : 1), the greys and the links of the assignment dialog (4,28-4,37 : 1) and a link inside a soft badge
   ("Doplnit sazby a cenu PHM →" 4,05 : 1) -- the strong greys and links of a coloured ground */
:root:not([data-theme="dark"]) .ow-margin,
:root:not([data-theme="dark"]) .ow-margin *,
:root:not([data-theme="dark"]) #modal-assignVehicleForm .modal-body,
:root:not([data-theme="dark"]) #modal-assignVehicleForm .modal-body * {
	--c-muted: var(--c-muted-strong);
	--c-soft:  var(--c-muted-strong);
}
:root:not([data-theme="dark"]) #modal-assignVehicleForm .modal-body a:not([class*="btn"]):not([class*="badge"]):not(.licence-plate),
:root:not([data-theme="dark"]) [class*="badge-soft-"] a:not([class*="btn"]) { color: var(--c-link-strong); }

/* S19-15: the areas of Před pilotem -- a folded area is one line, its marker the browser's */
.ff-pilot-area > summary { cursor: pointer; list-style-position: inside; }
.ff-pilot-area > summary .badge-soft { vertical-align: middle; }
.ff-parallel-run { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }

/* S19-05: the assignment dialog's rows drawn as bars until its signal has judged the lorries */
.av-skeleton { margin-top: 8px; }
.av-skeleton .av-skeleton-row td { padding-top: 12px; padding-bottom: 12px; }
.av-skeleton .av-skeleton-bar { display: inline-block; height: 10px; border-radius: 4px; background: var(--c-line-quiet); animation: av-skeleton-pulse 1.2s ease-in-out infinite; }
@keyframes av-skeleton-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .av-skeleton .av-skeleton-bar { animation: none; } }

/* FL19-04: the folded line of the fuelling checks, the gear of Tankování */
.ff-fuelling-checks-head { flex-wrap: wrap; row-gap: 4px; }
.ff-fuelling-checks-head > .ff-section-title { margin: 0; }
.ff-fuelling-mode { display: inline-block; }
.ff-fuelling-mode > .dropdown-menu { padding: 12px; min-width: 320px; }

/* OB19-02: a whole lorry asks no pieces -- the count and the packaging hidden while "Celý kamion" is ticked */
#modal-cargoItemsForm .modal-body:has(.js-cargo-whole-lorry:checked) .ff-cargo-pieces { display: none; }

/* ------------------------------------------------------------------ Edice a předplatné (24. 11. 2026)
   The editions are the stops of a route, as the stops of a trip are drawn: the tenant's stop marked, the road to it
   in the edition's colour. Everything else on the page is quiet -- the tokens of the application, one accent each
   edition brings (--ed-color, from the administration). */
.ed-page { max-width: 1240px; }
/* the sections are .form-part in a .panel-white (David, 23. 11. 2026: the panels as anywhere else), the hero is
   only the grid inside its section */
.ed-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 6px 4px; }
.ed-hero-title { margin: 0 0 8px; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--c-ink-strong); letter-spacing: -0.01em; }
.ed-hero-lede { margin: 0; color: var(--c-soft); font-size: 14px; line-height: 1.55; max-width: 52ch; }
.ed-hero-pending { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--c-info); background: var(--c-ground); color: var(--c-ink); font-size: 13px; }
.ed-inline-form { display: inline; }

/* the route: a line through the stops, coloured up to the tenant's stop */
.ed-route { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.ed-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 34px; }
/* ::before the grey road between the stops, ::after the part travelled (up to the tenant's stop) in its colour */
.ed-stop::before, .ed-stop::after { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 4px; }
.ed-stop::before { background: var(--c-line); }
.ed-stop:first-child::before, .ed-stop:first-child::after { left: 50%; }
.ed-stop:last-child::before, .ed-stop:last-child::after { right: 50%; }
.ed-stop.is-passed::after { background: var(--ed-color); }
.ed-stop.is-current::after { right: 50%; }
.ed-stop-dot { position: absolute; z-index: 1; top: 6px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
	background: var(--c-white); border: 4px solid var(--c-line); }
.ed-stop.is-passed .ed-stop-dot { border-color: var(--ed-color); background: var(--ed-color); }
.ed-stop.is-current .ed-stop-dot { top: 0; width: 30px; height: 30px; margin-left: -15px; background: var(--c-white); border-width: 7px; border-color: var(--ed-color);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--ed-color) 18%, transparent); }
.ed-stop-name { font-size: 16px; font-weight: 600; color: var(--c-ink-strong); }
.ed-stop.is-current .ed-stop-name { color: var(--ed-color); font-size: 18px; }
.ed-stop-price { font-size: 13px; color: var(--c-soft); margin-top: 2px; }
.ed-stop-note { font-size: 12px; color: var(--ed-color); font-weight: 600; margin-top: 2px; }

.ed-fineprint { margin: 14px 0 0; font-size: 12px; color: var(--c-soft); max-width: 90ch; }

/* what is spent: a gauge each */
.ed-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px; }
.ed-meter-name { font-size: 13px; color: var(--c-label); }
.ed-meter-figure { margin: 4px 0 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ed-meter-figure strong { font-size: 22px; font-weight: 600; color: var(--c-ink-strong); font-variant-numeric: tabular-nums; }
.ed-meter-figure span { font-size: 13px; color: var(--c-soft); }
.ed-meter-track { height: 6px; border-radius: 3px; background: var(--c-line-soft); overflow: hidden; }
.ed-meter-track > span { display: block; height: 100%; border-radius: 3px; background: var(--c-ok); }
.ed-meter-track.ed-tone-near > span { background: var(--c-warn, #f2a900); }
.ed-meter-track.ed-tone-over > span { background: var(--c-bad, #e5533d); }
.ed-meter-note { margin-top: 6px; font-size: 12px; color: var(--c-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* the editions side by side: a coloured edge, the price first, one button */
.ed-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ed-column { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-top: 4px solid var(--ed-color); border-radius: 0; padding: 18px 20px; background: var(--c-white); }
.ed-column.is-current { border-color: var(--ed-color); box-shadow: 0 0 0 1px var(--ed-color); }
.ed-column-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ed-column-head h4 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ed-color); }
.ed-column-mark { font-size: 12px; font-weight: 600; color: var(--ed-color); }
.ed-column-tagline { margin: 6px 0 14px; font-size: 13px; color: var(--c-soft); line-height: 1.5; }
.ed-column-price { padding: 12px 0; border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); color: var(--c-soft); font-size: 13px; }
.ed-column-price strong { font-size: 24px; font-weight: 600; color: var(--c-ink-strong); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ed-column-price-sub { margin-top: 2px; }
/* the month by the tenant's own numbers, under the prices */
.ed-basis { margin: 0 0 14px; font-size: 13px; color: var(--c-ink); }
.ed-basis .fa-calculator { color: var(--c-soft); margin-right: 4px; }
.ed-column-estimate { padding: 12px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 13px; color: var(--c-soft); }
.ed-column-estimate-label { font-size: 12px; font-weight: 600; color: var(--ed-color); }
.ed-column-estimate strong { font-size: 20px; font-weight: 600; color: var(--c-ink-strong); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ed-column-estimate-how { margin-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.ed-column-estimate-min { display: block; color: var(--c-warn-ink, var(--c-soft)); }
.ed-column-list { margin-top: 14px; }
.ed-column-list-title { font-size: 12px; font-weight: 600; color: var(--c-label); margin-bottom: 6px; }
.ed-column-list ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--c-ink); line-height: 1.55; }
.ed-column-list li::marker { color: var(--ed-color); }
.ed-column-limits { margin: 12px 0 0; font-size: 12px; color: var(--c-soft); line-height: 1.5; }
.ed-column-foot { margin-top: auto; padding-top: 16px; }
.ed-column-here { font-size: 13px; font-weight: 600; color: var(--ed-color); }
.ed-column-cta { width: 100%; background: var(--ed-color); border-color: var(--ed-color); color: #fff; }
.ed-column-cta:hover, .ed-column-cta:focus { background: color-mix(in srgb, var(--ed-color) 85%, #000); border-color: color-mix(in srgb, var(--ed-color) 85%, #000); color: #fff; }
.ed-column-cta:focus-visible { outline: 2px solid var(--ed-color); outline-offset: 2px; }
.ed-note { margin-bottom: 8px; font-size: 12px; }
.ed-note summary { cursor: pointer; color: var(--c-soft); }
.ed-note textarea { margin-top: 6px; }

/* the modules by section, folded; the counts of each edition in the section's head */
.ed-section { border-top: 1px solid var(--c-line-soft); }
.ed-section:last-child { border-bottom: 1px solid var(--c-line-soft); }
.ed-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; cursor: pointer; list-style: none; }
.ed-section > summary::-webkit-details-marker { display: none; }
.ed-section > summary::before { content: "\f054"; font-family: "Font Awesome 6 Pro"; font-weight: 400; font-size: 11px; color: var(--c-soft); width: 14px; transition: transform .15s; }
.ed-section[open] > summary::before { transform: rotate(90deg); }
.ed-section-name { flex: 1; font-weight: 600; color: var(--c-ink-strong); }
.ed-section-counts { display: flex; gap: 14px; font-variant-numeric: tabular-nums; color: var(--c-ink); font-size: 13px; }
.ed-count { display: inline-flex; align-items: center; gap: 5px; min-width: 30px; }
.ed-count-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ed-color); }
.ed-matrix { margin: 0 0 12px; }
.ed-matrix th[style] { color: var(--ed-color); }
.ed-matrix td.is-current { background: var(--c-ground); }
.ed-matrix .fa-check { color: var(--c-ok-ink); }
.ed-matrix .ed-no { color: var(--c-quiet); }
.ed-matrix tr.is-off .ed-matrix-name { color: var(--c-soft); }
.ed-matrix-lock { margin-left: 6px; color: var(--c-quiet); }
.ed-matrix-desc { font-size: 12px; color: var(--c-soft); }
.ed-matrix-fn td:first-child { padding-left: 24px; font-size: 12px; color: var(--c-soft); }

/* the terms in words */
.ed-terms { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; margin: 0; font-size: 13px; }
.ed-terms dt { font-weight: 400; color: var(--c-label); }
.ed-terms dd { margin: 0; color: var(--c-ink-strong); text-align: right; }

@media (max-width: 991px) {
	.ed-hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.ed-section > summary::before { transition: none; }
}
