/* ═══════════════════════════════════════════════════════════════════════════════════════════
   The palette (6. 9. 2026, step 1 of the dark mode: "úklid barev bez viditelné změny").
   Every colour the application paints is a custom property here and NOWHERE else — the pages,
   the scoped stylesheets and the inline styles all say var(--k-…). The values are exactly what
   the code had hard-wired before, so this file changes nothing on the screen; it only gives the
   dark theme (step 2) one place to redefine them. Names say the ROLE, not the hue: a dark theme
   swaps roles, and the same hex used to play several of them.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
:root {
    /* Surfaces — page, cards and tables, subtle panels, neutral tiles, hovers. */
    --k-page-bg: #f4f6f9;
    --k-surface: #ffffff;
    --k-surface-2: #f8fafc;
    --k-surface-3: #f8f9fa;
    --k-surface-4: #f1f5f9;
    --k-border: #e2e8f0;
    --k-border-2: #cbd5e1;
    --k-border-3: #dee2e6;
    --k-backdrop: rgba(0, 0, 0, 0.5);
    --k-focus-row-bg: #e8f0fe;

    /* Text — strong to faint, plus the two heading colours and what sits on a coloured background. */
    --k-text: #111827;
    --k-text-2: #1e293b;
    --k-text-3: #334155;
    --k-text-4: #475569;
    --k-text-muted: #64748b;
    --k-text-faint: #94a3b8;
    --k-text-body: #333333;
    --k-heading-detail: #190649;
    --k-heading-overview: #1e3a5f;
    --k-on-accent: #ffffff;

    /* Primary blue and its tints; the selection box of bulk actions. */
    --k-primary: #2563eb;
    --k-primary-light: #3b82f6;
    --k-primary-soft-bg: #eff6ff;
    --k-primary-soft-border: #bfdbfe;
    --k-primary-tint: #f0f4ff;
    --k-selection-bg: #eef2ff;
    --k-selection-border: #c7d2fe;
    --k-selection-text: #4f46e5;

    /* Tiles — each family is a background, a border and the text/icon colour. These carry
       MEANING (red = overdue, amber = waiting, green = delivered, purple = unanswered), so the
       dark theme must keep them apart, not invert them. */
    --k-tile-blue-bg: #f4f9ff;     --k-tile-blue-border: #cce5ff;     --k-tile-blue-text: #0d6efd;
    --k-tile-red-bg: #fff4f4;      --k-tile-red-border: #ffcccc;      --k-tile-red-text: #dc3545;
    --k-tile-orange-bg: #fff8f0;   --k-tile-orange-border: #ffdeb3;   --k-tile-orange-text: #fd7e14;
    --k-tile-yellow-bg: #fffdf5;   --k-tile-yellow-border: #ffeeba;   --k-tile-yellow-text: #d39e00;   --k-tile-yellow-icon: #eab308;
    --k-tile-purple-bg: #f9f5ff;   --k-tile-purple-border: #e2c2ff;   --k-tile-purple-text: #6f42c1;
    --k-tile-gray-bg: var(--k-surface-3); --k-tile-gray-border: #e2e3e5; --k-tile-gray-text: #6c757d;
    --k-tile-amber-bg: #fff8e6;    --k-tile-amber-border: #f5d78e;    --k-tile-amber-text: #d39e00;
    --k-tile-green-bg: #f0fdf4;    --k-tile-green-border: #86efac;    --k-tile-green-text: #16a34a;
    --k-tile-rose-bg: #fff1f2;     --k-tile-rose-border: #fda4af;     --k-tile-rose-text: #dc2626;

    /* The traffic light of Stav serveru and the delivery dots. */
    --k-ok: #16a34a;
    --k-warn: #d39e00;
    --k-crit: #dc2626;
    --k-dot-gray: #adb5bd;

    /* Importance of a received message: the left bar of the row, the legend dots, the badges. */
    --k-prio-critical: #ef4444;
    --k-prio-high: #f97316;
    --k-prio-warning: #fde047;
    --k-prio-resolved: #22c55e;
    --k-resolved-row-bg: #f0fdf4;
    --k-resolved-row-hover: #dcfce7;
    --k-purple: #a855f7;
    --k-purple-border: #d8b4fe;
    --k-badge-danger-bg: #fef2f2;   --k-badge-danger-border: #fca5a5;
    --k-badge-warning-bg: #fffbeb;  --k-badge-warning-text: #f59e0b;  --k-badge-warning-border: #fcd34d;
    --k-info: #0ea5e9;
    --k-info-border: #7dd3fc;

    /* The archive: the open tile and the banner above the list. */
    --k-archive: #115e59;
    --k-archive-hover: #0f766e;

    /* Quick-filter chips — eight colours × resting / active / "add" outline. */
    --k-qf-blue-bg: #eff6ff;   --k-qf-blue-text: #1d4ed8;   --k-qf-blue-border: #bfdbfe;   --k-qf-blue-active: #2563eb;   --k-qf-blue-add-border: #93c5fd;   --k-qf-blue-shadow: rgba(37, 99, 235, 0.25);
    --k-qf-purple-bg: #f5f3ff; --k-qf-purple-text: #6d28d9; --k-qf-purple-border: #ddd6fe; --k-qf-purple-active: #7c3aed; --k-qf-purple-add-border: #c4b5fd; --k-qf-purple-shadow: rgba(124, 58, 237, 0.25);
    --k-qf-yellow-bg: #fefce8; --k-qf-yellow-text: #a16207; --k-qf-yellow-border: #fde68a; --k-qf-yellow-active: #d39e00; --k-qf-yellow-active-border: #b7870a; --k-qf-yellow-add-border: #fcd34d; --k-qf-yellow-shadow: rgba(211, 158, 0, 0.25);
    --k-qf-green-bg: #f0fdf4;  --k-qf-green-text: #15803d;  --k-qf-green-border: #bbf7d0;  --k-qf-green-active: #16a34a;  --k-qf-green-add-border: #86efac;  --k-qf-green-shadow: rgba(22, 163, 74, 0.25);
    --k-qf-red-bg: #fef2f2;    --k-qf-red-text: #b91c1c;    --k-qf-red-border: #fecaca;    --k-qf-red-active: #dc2626;    --k-qf-red-add-border: #fca5a5;    --k-qf-red-shadow: rgba(220, 38, 38, 0.25);
    --k-qf-teal-bg: #f0fdfa;   --k-qf-teal-text: #0f766e;   --k-qf-teal-border: #99f6e4;   --k-qf-teal-active: #0f766e;   --k-qf-teal-active-border: #115e59; --k-qf-teal-add-border: #5eead4; --k-qf-teal-shadow: rgba(15, 118, 110, 0.25);
    --k-qf-orange-bg: #fff7ed; --k-qf-orange-text: #c2410c; --k-qf-orange-border: #fed7aa; --k-qf-orange-active: #ea580c; --k-qf-orange-add-border: #fdba74; --k-qf-orange-shadow: rgba(234, 88, 12, 0.25);
    --k-qf-pink-bg: #fdf2f8;   --k-qf-pink-text: #be185d;   --k-qf-pink-border: #fbcfe8;   --k-qf-pink-active: #db2777;   --k-qf-pink-add-border: #f9a8d4;   --k-qf-pink-shadow: rgba(219, 39, 119, 0.25);
    --k-qf-gray-active: #94a3b8;

    /* The navbar and the login page — dark already, by design. */
    --k-nav-bg: #081b33;
    --k-nav-border: #1a2a40;
    --k-nav-muted: #7f92aa;
    --k-login-bg: #121212;
    --k-login-card: #1e1e1e;
    --k-login-input: #2d2d2d;
    --k-login-input-border: #444444;
    --k-login-text-2: #aaaaaa;
    --k-login-text-3: #cccccc;

    /* Leftovers of the Blazor template that still paint something (links, validation, loader). */
    --k-link: #0071c1;
    --k-btn-legacy: #1b6ec2;
    --k-btn-legacy-border: #1861ac;
    --k-focus-ring: #258cfb;
    --k-valid: #26b050;
    --k-loading-track: #e0e0e0;
    --k-validation-error: #c02d76;
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   Tmavý režim (step 2, 6. 9. 2026). Bootstrap 5.3 switches its own components on data-bs-theme;
   this block swaps OUR roles. Designed by hand, not inverted: the colours that carry meaning
   (red = overdue, amber = waiting, green = delivered, purple = unanswered, teal = archive) keep
   their hue and only move to a dark background — a deep tint behind, a mid border, a bright text.
   Slate (#0f172a … #f1f5f9) is the neutral scale, the same family the light theme uses.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
:root[data-bs-theme="dark"] {
    color-scheme: dark;

    --k-page-bg: #0f172a;
    --k-surface: #1e293b;
    --k-surface-2: #172033;
    --k-surface-3: #182235;
    --k-surface-4: #273449;
    --k-border: #334155;
    --k-border-2: #475569;
    --k-border-3: #3b4a60;
    --k-backdrop: rgba(0, 0, 0, 0.65);
    --k-focus-row-bg: #1e3a5f;

    --k-text: #f1f5f9;
    --k-text-2: #e2e8f0;
    --k-text-3: #cbd5e1;
    --k-text-4: #b6c2d1;
    --k-text-muted: #94a3b8;
    --k-text-faint: #64748b;
    --k-text-body: #e2e8f0;
    --k-heading-detail: #c7d2fe;
    --k-heading-overview: #dbeafe;
    --k-on-accent: #ffffff;

    --k-primary: #3b82f6;
    --k-primary-light: #60a5fa;
    --k-primary-soft-bg: #1e3a5f;
    --k-primary-soft-border: #1d4ed8;
    --k-primary-tint: #1e293b;
    --k-selection-bg: #1e1b4b;
    --k-selection-border: #4338ca;
    --k-selection-text: #a5b4fc;

    --k-tile-blue-bg: #172554;     --k-tile-blue-border: #1e40af;     --k-tile-blue-text: #60a5fa;
    --k-tile-red-bg: #3f1d1d;      --k-tile-red-border: #7f1d1d;      --k-tile-red-text: #f87171;
    --k-tile-orange-bg: #431407;   --k-tile-orange-border: #9a3412;   --k-tile-orange-text: #fb923c;
    --k-tile-yellow-bg: #3b2f0a;   --k-tile-yellow-border: #854d0e;   --k-tile-yellow-text: #facc15;   --k-tile-yellow-icon: #facc15;
    --k-tile-purple-bg: #2e1065;   --k-tile-purple-border: #5b21b6;   --k-tile-purple-text: #c084fc;
    --k-tile-gray-bg: #1f2937;     --k-tile-gray-border: #374151;     --k-tile-gray-text: #9ca3af;
    --k-tile-amber-bg: #3b2f0a;    --k-tile-amber-border: #a16207;    --k-tile-amber-text: #fbbf24;
    --k-tile-green-bg: #052e16;    --k-tile-green-border: #15803d;    --k-tile-green-text: #4ade80;
    --k-tile-rose-bg: #4c0519;     --k-tile-rose-border: #9f1239;     --k-tile-rose-text: #fb7185;

    --k-ok: #4ade80;
    --k-warn: #fbbf24;
    --k-crit: #f87171;
    --k-dot-gray: #6b7280;

    --k-prio-critical: #f87171;
    --k-prio-high: #fb923c;
    --k-prio-warning: #facc15;
    --k-prio-resolved: #4ade80;
    --k-resolved-row-bg: #0b2e1a;
    --k-resolved-row-hover: #14532d;
    --k-purple: #c084fc;
    --k-purple-border: #6d28d9;
    --k-badge-danger-bg: #450a0a;   --k-badge-danger-border: #991b1b;
    --k-badge-warning-bg: #3b2f0a;  --k-badge-warning-text: #fbbf24;  --k-badge-warning-border: #a16207;
    --k-info: #38bdf8;
    --k-info-border: #0369a1;

    --k-archive: #134e4a;
    --k-archive-hover: #0f766e;

    --k-qf-blue-bg: #172554;   --k-qf-blue-text: #93c5fd;   --k-qf-blue-border: #1e40af;   --k-qf-blue-active: #2563eb;   --k-qf-blue-add-border: #1d4ed8;
    --k-qf-purple-bg: #2e1065; --k-qf-purple-text: #c4b5fd; --k-qf-purple-border: #5b21b6; --k-qf-purple-active: #7c3aed; --k-qf-purple-add-border: #6d28d9;
    --k-qf-yellow-bg: #3b2f0a; --k-qf-yellow-text: #fde047; --k-qf-yellow-border: #854d0e; --k-qf-yellow-active: #d39e00; --k-qf-yellow-active-border: #b7870a; --k-qf-yellow-add-border: #a16207;
    --k-qf-green-bg: #052e16;  --k-qf-green-text: #86efac;  --k-qf-green-border: #166534;  --k-qf-green-active: #16a34a;  --k-qf-green-add-border: #15803d;
    --k-qf-red-bg: #450a0a;    --k-qf-red-text: #fca5a5;    --k-qf-red-border: #991b1b;    --k-qf-red-active: #dc2626;    --k-qf-red-add-border: #b91c1c;
    --k-qf-teal-bg: #042f2e;   --k-qf-teal-text: #5eead4;   --k-qf-teal-border: #115e59;   --k-qf-teal-active: #0f766e;   --k-qf-teal-active-border: #134e4a; --k-qf-teal-add-border: #0f766e;
    --k-qf-orange-bg: #431407; --k-qf-orange-text: #fdba74; --k-qf-orange-border: #9a3412; --k-qf-orange-active: #ea580c; --k-qf-orange-add-border: #c2410c;
    --k-qf-pink-bg: #500724;   --k-qf-pink-text: #f9a8d4;   --k-qf-pink-border: #9d174d;   --k-qf-pink-active: #db2777;   --k-qf-pink-add-border: #be185d;
    --k-qf-gray-active: #64748b;

    --k-link: #60a5fa;
    --k-loading-track: #334155;
}

/* Bootstrap utilities with a colour baked in — 5.3 does not swap them, so they would leave white
   islands on a dark page. Mapped to our roles under the theme only. */
:root[data-bs-theme="dark"] .bg-white { background-color: var(--k-surface) !important; }
:root[data-bs-theme="dark"] .bg-light { background-color: var(--k-surface-2) !important; }
:root[data-bs-theme="dark"] .text-dark { color: var(--k-text) !important; }
:root[data-bs-theme="dark"] .border-light { border-color: var(--k-border) !important; }
:root[data-bs-theme="dark"] .table-light {
    --bs-table-bg: var(--k-surface-2);
    --bs-table-color: var(--k-text-4);
    --bs-table-border-color: var(--k-border);
}
:root[data-bs-theme="dark"] .btn-light {
    --bs-btn-bg: var(--k-surface-4);
    --bs-btn-border-color: var(--k-border-2);
    --bs-btn-color: var(--k-text);
    --bs-btn-hover-bg: var(--k-border-2);
    --bs-btn-hover-border-color: var(--k-border-2);
    --bs-btn-hover-color: var(--k-text);
    --bs-btn-active-bg: var(--k-border-2);
    --bs-btn-active-border-color: var(--k-border-2);
    --bs-btn-active-color: var(--k-text);
    --bs-btn-disabled-bg: var(--k-surface-4);
    --bs-btn-disabled-border-color: var(--k-border);
    --bs-btn-disabled-color: var(--k-text-muted);
}
/* The yellow and red rows of Historie změn: the same warning, on a dark table. */
:root[data-bs-theme="dark"] .table-warning {
    --bs-table-bg: #3b2f0a; --bs-table-color: var(--k-text);
    --bs-table-hover-bg: #4a3b0d; --bs-table-hover-color: var(--k-text);
    --bs-table-striped-bg: #3b2f0a; --bs-table-border-color: var(--k-border);
}
:root[data-bs-theme="dark"] .table-danger {
    --bs-table-bg: #450a0a; --bs-table-color: var(--k-text);
    --bs-table-hover-bg: #5c1010; --bs-table-hover-color: var(--k-text);
    --bs-table-striped-bg: #450a0a; --bs-table-border-color: var(--k-border);
}

html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--k-page-bg);
    color: var(--k-text-body);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--k-link);
}

.btn-primary {
    color: var(--k-on-accent);
    background-color: var(--k-btn-legacy);
    border-color: var(--k-btn-legacy-border);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--k-surface), 0 0 0 0.25rem var(--k-focus-ring);
}

/* No extra padding-top (the Blazor template ships 1.1rem): the 16px from the layout's py-3
   is enough air under the navbar, and every extra pixel above the content pushes a message
   row off the accountant's screen (the 30. 8. vertical-space batch). */
.content {
    padding-top: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--k-valid);
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--k-on-accent);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--k-loading-track);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--k-btn-legacy);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: var(--k-validation-error);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Vylepseny design dropdown menu */
.dropdown-menu {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem !important;
}
.dropdown-item {
    border-radius: 0.25rem;
}
.dropdown-item:hover {
    background-color: var(--k-surface-3);
}

/* Row focus, the site-wide pattern (5. 9. 2026, Web.Services.RowFocus): the marked row is the
   focus ring, so the table's own ring is off. A tint over the row plus a blue bar in the first
   cell. !important beats Bootstrap's per-cell background variable on .table and .table-warning. */
table.focusable:focus { outline: none; }
table.focusable tbody tr.row-focused > td { background-color: var(--k-focus-row-bg) !important; }
table.focusable tbody tr.row-focused > td:first-child { box-shadow: inset 3px 0 0 var(--k-primary); }

/* ── Shared list furniture (moved from DataBoxMessages.razor.css on 5. 9. 2026, when the Odeslané page
   and the shared components in Web/Shared started using the same classes; scoped CSS cannot reach
   into a child component, so these live here) ─────────────────────────────────────────────── */
.kontor-module {
    background-color: transparent;
    color: var(--k-text-body);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Filters (new design) */
.filter-box {
    background-color: var(--k-surface);
    border: 1px solid var(--k-border);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 140px;
}

.filter-box-group {
    background-color: var(--k-surface);
    border: 1px solid var(--k-border);
    border-radius: 8px;
    flex-grow: 1;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--k-text-4);
}
.vertical-divider {
    width: 1px;
    background-color: var(--k-border);
    height: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

.filter-btn-hover:hover {
    background-color: var(--k-surface-2);
}
/* Quick-filter chips (1.5.0, docs/Koncept_Rychle_Volby.md part II): coloured by KIND — blue client,
   purple accountant, yellow "bez účetní". Pastel at rest, solid when active, grey when the chip
   lost what it pointed at. The colour keys come from Core.Services.QuickFilterKinds. */
.qf-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    line-height: 1.4;
}

.qf-chip .qf-remove { opacity: 0.55; }
.qf-chip .qf-remove:hover { opacity: 1; }

.qf-blue { background-color: var(--k-qf-blue-bg); color: var(--k-qf-blue-text); border-color: var(--k-qf-blue-border); }
.qf-blue.qf-active { background-color: var(--k-qf-blue-active); color: var(--k-on-accent); border-color: var(--k-qf-blue-text); box-shadow: 0 2px 4px var(--k-qf-blue-shadow); }

.qf-purple { background-color: var(--k-qf-purple-bg); color: var(--k-qf-purple-text); border-color: var(--k-qf-purple-border); }
.qf-purple.qf-active { background-color: var(--k-qf-purple-active); color: var(--k-on-accent); border-color: var(--k-qf-purple-text); box-shadow: 0 2px 4px var(--k-qf-purple-shadow); }

.qf-yellow { background-color: var(--k-qf-yellow-bg); color: var(--k-qf-yellow-text); border-color: var(--k-qf-yellow-border); }
.qf-yellow.qf-active { background-color: var(--k-qf-yellow-active); color: var(--k-on-accent); border-color: var(--k-qf-yellow-active-border); box-shadow: 0 2px 4px var(--k-qf-yellow-shadow); }

.qf-gray, .qf-unavailable { background-color: var(--k-surface-4); color: var(--k-text-muted); border-color: var(--k-border-2); cursor: default; }

/* The "+ …" bubbles that pin a new chip: dashed, in the kind's colour, on the bar's grey. */
.qf-add {
    background-color: var(--k-surface);
    border-style: dashed;
    border-width: 2px;
    font-weight: 600;
}
.qf-add-blue { color: var(--k-qf-blue-text); border-color: var(--k-qf-blue-add-border); }
.qf-add-purple { color: var(--k-qf-purple-text); border-color: var(--k-qf-purple-add-border); }
.qf-add-yellow { color: var(--k-qf-yellow-text); border-color: var(--k-qf-yellow-add-border); }
.qf-chip.qf-add:hover { background-color: var(--k-surface-2); }
.input-group-text.qf-add { border-style: solid; border-width: 1px; }

/* The rest of the palette (Core.Services.QuickFilterKindLook) — the administrator may give a kind
   any of these since step 2. Same scheme: pastel at rest, solid when active, dashed "+" bubble. */
.qf-green { background-color: var(--k-qf-green-bg); color: var(--k-qf-green-text); border-color: var(--k-qf-green-border); }
.qf-green.qf-active { background-color: var(--k-qf-green-active); color: var(--k-on-accent); border-color: var(--k-qf-green-text); box-shadow: 0 2px 4px var(--k-qf-green-shadow); }
.qf-red { background-color: var(--k-qf-red-bg); color: var(--k-qf-red-text); border-color: var(--k-qf-red-border); }
.qf-red.qf-active { background-color: var(--k-qf-red-active); color: var(--k-on-accent); border-color: var(--k-qf-red-text); box-shadow: 0 2px 4px var(--k-qf-red-shadow); }
.qf-teal { background-color: var(--k-qf-teal-bg); color: var(--k-qf-teal-text); border-color: var(--k-qf-teal-border); }
.qf-teal.qf-active { background-color: var(--k-qf-teal-text); color: var(--k-on-accent); border-color: var(--k-qf-teal-active-border); box-shadow: 0 2px 4px var(--k-qf-teal-shadow); }
.qf-orange { background-color: var(--k-qf-orange-bg); color: var(--k-qf-orange-text); border-color: var(--k-qf-orange-border); }
.qf-orange.qf-active { background-color: var(--k-qf-orange-active); color: var(--k-on-accent); border-color: var(--k-qf-orange-text); box-shadow: 0 2px 4px var(--k-qf-orange-shadow); }
.qf-pink { background-color: var(--k-qf-pink-bg); color: var(--k-qf-pink-text); border-color: var(--k-qf-pink-border); }
.qf-pink.qf-active { background-color: var(--k-qf-pink-active); color: var(--k-on-accent); border-color: var(--k-qf-pink-text); box-shadow: 0 2px 4px var(--k-qf-pink-shadow); }
.qf-add-green { color: var(--k-qf-green-text); border-color: var(--k-qf-green-add-border); }
.qf-add-red { color: var(--k-qf-red-text); border-color: var(--k-qf-red-add-border); }
.qf-add-teal { color: var(--k-qf-teal-text); border-color: var(--k-qf-teal-add-border); }
.qf-add-orange { color: var(--k-qf-orange-text); border-color: var(--k-qf-orange-add-border); }
.qf-add-pink { color: var(--k-qf-pink-text); border-color: var(--k-qf-pink-add-border); }
