/* ──────────────────────────────────────────────────────────────────────────
   Dispo — design systém
   Paleta:
     Primary:        #1a56db   — akce, tlačítka, akcenty
     Primary dark:   #1343b0   — hover primary
     Primary light:  #eff6ff   — pozadí vybraných položek
     Surface:        #ffffff   — karty, panely
     Background:     #f5f7fb   — stránkové pozadí
     Border:         #e5e7eb   — oddělovače
     Text:           #111827   — základní text
     Muted:          #6b7280   — sekundární text, popisky
   ────────────────────────────────────────────────────────────────────────── */

/* ── Proměnné ─────────────────────────────────────────────────────────────── */
:root {
    --dispo-blue:         #1a56db;
    --dispo-blue-dark:    #1343b0;
    --dispo-blue-light:   #eff6ff;
    --dispo-blue-mid:     #dbeafe;
    --dispo-header-h:     56px;
    --dispo-sidebar-w:    220px;
    --dispo-drawer-w:     272px;
    --dispo-bg:           #f5f7fb;
    --dispo-surface:      #ffffff;
    --dispo-border:       #e5e7eb;
    --dispo-border-light: #f0f2f5;
    --dispo-text:         #111827;
    --dispo-muted:        #6b7280;
    --dispo-success:      #16a34a;
    --dispo-danger:       #dc2626;
    --dispo-radius:       8px;
    --dispo-radius-lg:    12px;
    --dispo-shadow-sm:    0 1px 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.04);
    --dispo-shadow:       0 4px 16px rgba(0,0,0,.1);
    --dispo-shadow-drawer:0 8px 32px rgba(0,0,0,.18);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.dispo-app {
    background: var(--dispo-bg);
    color: var(--dispo-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */

.dispo-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--dispo-surface);
    border-bottom: 1px solid var(--dispo-border);
    box-shadow: var(--dispo-shadow-sm);
    height: var(--dispo-header-h);
}

.dispo-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 4px;
}

/* Branding */
.dispo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dispo-text);
    flex-shrink: 0;
}

.dispo-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--dispo-blue);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.dispo-brand-text {
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: -.025em;
    color: var(--dispo-text);
}

.dispo-brand-logo {
    max-height: 32px !important;
    max-width: 120px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Oddělovač logo / nav */
.dispo-header-sep {
    display: block;
    width: 1px;
    height: 20px;
    background: var(--dispo-border);
    margin: 0 8px;
    flex-shrink: 0;
}
@media (max-width: 767px) { .dispo-header-sep { display: none; } }

/* Hlavní navigace (desktop) */
.dispo-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
@media (max-width: 767px) { .dispo-nav { display: none; } }

.dispo-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--dispo-radius);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--dispo-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background .13s, color .13s;
}
.dispo-nav-link i { font-size: .875rem; }
.dispo-nav-link:hover {
    background: var(--dispo-bg);
    color: var(--dispo-text);
}
.dispo-nav-link.active {
    background: var(--dispo-blue-light);
    color: var(--dispo-blue);
    font-weight: 600;
}

/* Pravá část */
.dispo-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Ikonové tlačítko */
.dispo-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--dispo-radius);
    color: var(--dispo-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: background .13s, color .13s;
    flex-shrink: 0;
}
.dispo-icon-btn:hover { background: var(--dispo-bg); color: var(--dispo-text); }
.dispo-icon-btn.active { background: var(--dispo-blue-light); color: var(--dispo-blue); }

/* Tlačítko Done pod kalendářem Flatpickru: nativní výběr data ho nemá
   a zavírá se až kliknutím mimo */
.flatpickr-calendar .fp-done { display: block; margin: 6px; width: calc(100% - 12px); }

/* Počet nepřečtených notifikací nad zvonečkem v hlavičce */
.dispo-icon-btn-badged { position: relative; }
.dispo-icon-badge[hidden] { display: none; }
.dispo-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--bs-danger, #dc3545);
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
}

/* Vertikální oddělovač v actions */
.dispo-header-vsep {
    display: block;
    width: 1px;
    height: 20px;
    background: var(--dispo-border);
    margin: 0 6px;
    flex-shrink: 0;
}
@media (max-width: 767px) { .dispo-header-vsep { display: none; } }

/* Avatar */
.dispo-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dispo-blue) 0%, var(--dispo-blue-dark) 100%);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.dispo-avatar-md { width: 40px; height: 40px; font-size: .875rem; }

/* User button */
.dispo-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 5px 8px;
    border-radius: var(--dispo-radius);
    cursor: pointer;
    color: var(--dispo-text);
    transition: background .13s;
    margin-left: 4px;
}
.dispo-user-btn:hover { background: var(--dispo-bg); }
.dispo-user-btn::after { display: none !important; }

.dispo-user-btn-name {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--dispo-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 991px) { .dispo-user-btn-name { display: none; } }

.dispo-user-btn-chevron {
    font-size: .625rem;
    color: var(--dispo-muted);
    flex-shrink: 0;
}
@media (max-width: 767px) { .dispo-user-btn-chevron { display: none; } }

/* User dropdown */
.dispo-user-dropdown {
    min-width: 220px;
    padding: 6px;
    border-radius: var(--dispo-radius-lg);
    border: 1px solid var(--dispo-border);
    box-shadow: var(--dispo-shadow);
    margin-top: 6px !important;
}
.dispo-user-dropdown-header {
    padding: 8px 10px 10px;
}
.dispo-user-dropdown-name {
    font-weight: 600;
    font-size: .8125rem;
    color: var(--dispo-text);
}
.dispo-user-dropdown-tenant {
    font-size: .75rem;
    color: var(--dispo-muted);
    margin-top: 1px;
}
.dispo-user-dropdown .dropdown-item {
    border-radius: var(--dispo-radius);
    font-size: .8125rem;
    padding: 7px 10px;
    color: var(--dispo-text);
}
.dispo-user-dropdown .dropdown-item:hover { background: var(--dispo-bg); }
.dispo-user-dropdown .dropdown-item.text-danger:hover { background: #fef2f2; }

/* ── Hamburger ────────────────────────────────────────────────────────────── */
.dispo-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: var(--dispo-radius);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-right: 4px;
    transition: background .13s;
}
.dispo-hamburger:hover { background: var(--dispo-bg); }

.dispo-hamburger span {
    display: block;
    height: 2px;
    background: var(--dispo-text);
    border-radius: 2px;
    transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s;
    transform-origin: center;
}

/* Animace → X při otevřeném draweru */
.dispo-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dispo-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dispo-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) { .dispo-hamburger { display: flex; } }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OVERLAY + DRAWER
   ══════════════════════════════════════════════════════════════════════════ */

.dispo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.dispo-overlay.open { opacity: 1; visibility: visible; }

.dispo-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--dispo-drawer-w);
    height: 100dvh;
    background: var(--dispo-surface);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    box-shadow: var(--dispo-shadow-drawer);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}
.dispo-drawer.open { transform: translateX(0); }

/* Drawer header */
.dispo-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dispo-border-light);
    flex-shrink: 0;
}

.dispo-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: var(--dispo-radius);
    color: var(--dispo-muted);
    cursor: pointer;
    font-size: .875rem;
    transition: background .13s, color .13s;
}
.dispo-drawer-close:hover { background: var(--dispo-bg); color: var(--dispo-text); }

/* Drawer user info */
.dispo-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--dispo-border-light);
    flex-shrink: 0;
}
.dispo-drawer-user-info { min-width: 0; }
.dispo-drawer-user-name {
    font-weight: 600;
    font-size: .875rem;
    color: var(--dispo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dispo-drawer-user-tenant {
    font-size: .75rem;
    color: var(--dispo-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drawer navigation */
.dispo-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 10px 4px;
}

.dispo-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--dispo-radius);
    font-size: .875rem;
    font-weight: 500;
    color: var(--dispo-text);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.dispo-drawer-link i { font-size: .9375rem; color: var(--dispo-muted); flex-shrink: 0; }
.dispo-drawer-link:hover { background: var(--dispo-bg); }
.dispo-drawer-link.active {
    background: var(--dispo-blue-light);
    color: var(--dispo-blue);
    font-weight: 600;
}
.dispo-drawer-link.active i { color: var(--dispo-blue); }
.dispo-drawer-link-danger { color: var(--dispo-danger); }
.dispo-drawer-link-danger i { color: var(--dispo-danger); }
.dispo-drawer-link-danger:hover { background: #fef2f2; }

.dispo-drawer-divider {
    height: 1px;
    background: var(--dispo-border-light);
    margin: 6px 10px;
    flex-shrink: 0;
}

.dispo-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 10px 16px;
    margin-top: auto;
    border-top: 1px solid var(--dispo-border-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */

.dispo-main {
    min-height: calc(100vh - var(--dispo-header-h));
}

/* ── Content sidebar (sekundární sidebar uvnitř stránky) ─────────────────── */
.dispo-sidebar-layout {
    display: flex;
    min-height: calc(100vh - var(--dispo-header-h));
}

.dispo-sidebar {
    width: 52px;
    flex-shrink: 0;
    background: var(--dispo-surface);
    border-right: 1px solid var(--dispo-border);
    padding: 6px 4px 24px;
    position: sticky;
    top: var(--dispo-header-h);
    height: calc(100vh - var(--dispo-header-h));
    overflow-y: auto;
    overflow-x: hidden;
}

.dispo-sidebar-section,
.dispo-sidebar-label {
    display: none;
}

.dispo-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: var(--dispo-radius);
    color: var(--dispo-muted);
    text-decoration: none;
    font-size: 0;
    transition: background .12s, color .12s;
    width: 44px;
    margin: 0 auto;
}
.dispo-sidebar-link i {
    font-size: 1.125rem;
    flex-shrink: 0;
    text-align: center;
}
.dispo-sidebar-link:hover {
    background: var(--dispo-bg);
    color: var(--dispo-text);
}
.dispo-sidebar-link.active {
    background: var(--dispo-blue-light);
    color: var(--dispo-blue);
}
.dispo-sidebar-link.active i { color: var(--dispo-blue); }

/* Sidebar toggle button */
.dispo-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--dispo-muted);
    border-radius: var(--dispo-radius);
    cursor: pointer;
    margin: 4px auto 8px;
    transition: background .12s, color .12s;
}
.dispo-sidebar-toggle:hover { background: var(--dispo-bg); color: var(--dispo-text); }

/* Expanded sidebar state */
.dispo-sidebar.expanded {
    width: 190px;
    padding: 6px 8px 24px;
}
.dispo-sidebar.expanded .dispo-sidebar-toggle { margin-left: auto; margin-right: 4px; }
.dispo-sidebar.expanded .dispo-sidebar-link {
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    padding: 9px 10px;
    font-size: .85rem;
    font-weight: 500;
}
.dispo-sidebar.expanded .dispo-sidebar-link i { font-size: 1rem; }
.dispo-sidebar-link .sidebar-label { display: none; }
.dispo-sidebar.expanded .dispo-sidebar-link .sidebar-label { display: inline; }

/* Group headers — visible only when the sidebar is expanded */
.dispo-sidebar.expanded .dispo-sidebar-label {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dispo-muted);
    margin: 16px 10px 4px;
}
.dispo-sidebar.expanded .dispo-sidebar-toggle + .dispo-sidebar-label { margin-top: 6px; }

/* Nav badge — collapsed: small count bubble over the icon corner */
.dispo-sidebar-link { position: relative; }
.dispo-sidebar-link .badge {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: .6rem;
    line-height: 1;
    padding: 3px 5px;
    margin: 0 !important;
}
.dispo-sidebar.expanded .dispo-sidebar-link .badge {
    position: static;
    margin-left: auto !important;
    font-size: .65rem;
}

/* Mobile: sidebar → horizontální tab-bar */
@media (max-width: 767px) {
    .dispo-sidebar-layout { flex-direction: column; }

    .dispo-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--dispo-border);
        padding: 0 8px;
        display: flex;
        flex-direction: row;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
    .dispo-sidebar::-webkit-scrollbar { display: none; }

    .dispo-sidebar-section,
    .dispo-sidebar-label { display: none; }

    .dispo-sidebar-link {
        flex-shrink: 0;
        padding: 10px 14px;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        font-size: 0;
        width: auto;
        margin: 0;
    }
    .dispo-sidebar-link i { font-size: 1.1rem; display: block; }
    .dispo-sidebar-link:hover { background: none; color: var(--dispo-text); }
    .dispo-sidebar-link.active {
        background: none;
        color: var(--dispo-blue);
        border-bottom-color: var(--dispo-blue);
    }

    /* Rozbalený panel (stav z desktopu v localStorage) se na telefonu dřív uplatnil
       i v liště záložek: měla šířku 190 px, ukazovala nadpisy skupin („VIEW") a záložka
       byla useknutá (kancelář v appce, Karolína 20. 11.). Na telefonu platí vždy lišta
       přes celou šířku, ikona s popiskem, bez přepínače. */
    .dispo-sidebar-toggle { display: none; }
    .dispo-sidebar,
    .dispo-sidebar.expanded { width: 100%; padding: 0 8px; }
    .dispo-sidebar.expanded .dispo-sidebar-label { display: none; }
    .dispo-sidebar-link,
    .dispo-sidebar.expanded .dispo-sidebar-link {
        width: auto;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        font-size: .8rem;
        font-weight: 500;
        white-space: nowrap;
    }
    .dispo-sidebar-link i,
    .dispo-sidebar.expanded .dispo-sidebar-link i { font-size: 1rem; display: inline-block; }
    .dispo-sidebar-link .sidebar-label { display: inline; }
    .dispo-sidebar-link .badge,
    .dispo-sidebar.expanded .dispo-sidebar-link .badge {
        position: static;
        margin-left: 2px !important;
        font-size: .62rem;
    }
}

/* Content area */
.dispo-content {
    flex: 1;
    padding: 1.5rem 2rem;
    min-width: 0;
}

/* Flash zprávy */
.dispo-flashes {
    position: sticky;
    top: var(--dispo-header-h);
    z-index: 800;
    padding: 8px 16px 0;
}
.dispo-flash { margin-bottom: 6px; }

/* ── Page header ──────────────────────────────────────────────────────────── */
.dispo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.dispo-page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.025em;
}
.dispo-page-header p {
    color: var(--dispo-muted);
    margin: .15rem 0 0;
    font-size: .825rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.dispo-card {
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius-lg);
    padding: 1.25rem 1.5rem;
}

/* ── Tabulky ──────────────────────────────────────────────────────────────── */
.dispo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.dispo-table th {
    font-weight: 600;
    font-size: .7rem;
    color: var(--dispo-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    text-align: left;
    background: var(--dispo-surface);
}
.dispo-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    vertical-align: middle;
}
.dispo-table tbody tr:hover { background: #fafbfc; }
.dispo-table tbody tr:last-child td { border-bottom: none; }

/* Široká tabulka na telefonu a tabletu: roluje se karta, ne celá stránka. Bez toho
   tabulka vylezla z karty, stránka se roztáhla a celé Dispo se hýbalo do stran
   (appka Dispo Office, předávání autobusů, 16. 11. 2026). */
@media (max-width: 991.98px) {
    .dispo-card:has(> .dispo-table),
    .dispo-card:has(> form > .dispo-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dispo-card:has(> .dispo-table) > .dispo-table th,
    .dispo-card:has(> form > .dispo-table) .dispo-table th { white-space: nowrap; }
}

/* ── Status badges ────────────────────────────────────────────────────────── */
.badge-active      { background: #dcfce7; color: #15803d; }
.badge-inactive    { background: #f3f4f6; color: #6b7280; }
.badge-planned     { background: #fef9c3; color: #854d0e; }
.badge-in-progress { background: var(--dispo-blue-mid); color: #1d4ed8; }
.badge-done        { background: #dcfce7; color: #15803d; }
.badge-warning     { background: #fef9c3; color: #92400e; }
.badge-danger      { background: #fee2e2; color: #b91c1c; }

.dispo-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
}

/* ── Color dot ────────────────────────────────────────────────────────────── */
.vehicle-color-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Color picker swatch (vehicle form) — checked state via sibling selector */
.dispo-color-option { margin: 0; cursor: pointer; }
.dispo-color-swatch {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .1s, border-color .1s;
}
.dispo-color-option:hover .dispo-color-swatch { transform: scale(1.15); }
.dispo-color-option input:checked + .dispo-color-swatch {
    border-color: #111;
    transform: scale(1.1);
}

/* ── Formuláře ────────────────────────────────────────────────────────────── */
.dispo-form-section { margin-bottom: 1.75rem; }
.dispo-form-section-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--dispo-muted);
    text-transform: uppercase;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--dispo-border);
}

/* ── Prázdný stav ─────────────────────────────────────────────────────────── */
.dispo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--dispo-muted);
    text-align: center;
}
.dispo-empty i  { font-size: 2.5rem; margin-bottom: 1rem; opacity: .35; }
.dispo-empty h3 { font-size: 1rem; font-weight: 600; color: var(--dispo-text); }
.dispo-empty p  { font-size: .85rem; }

/* ══════════════════════════════════════════════════════════════════════════
   CHAT
   ══════════════════════════════════════════════════════════════════════════ */

.chat-root {
    display: flex;
    height: calc(100vh - var(--dispo-header-h));
    overflow: hidden;
}

/* ── Chat sidebar ─────────────────────────────────────────────────────────── */
.chat-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--dispo-surface);
    border-right: 1px solid var(--dispo-border);
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--dispo-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-sidebar-title {
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--dispo-text);
}

.chat-compose-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--dispo-radius);
    color: var(--dispo-blue);
    background: var(--dispo-blue-light);
    border: none;
    cursor: pointer;
    font-size: .95rem;
    transition: background .13s, color .13s;
    text-decoration: none;
    flex-shrink: 0;
}
.chat-compose-btn:hover { background: var(--dispo-blue-mid); color: var(--dispo-blue-dark); }
.chat-compose-btn::after { display: none; }

.chat-conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
}

.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--dispo-radius);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.chat-conv-item:hover { background: var(--dispo-bg); }
.chat-conv-item.active { background: var(--dispo-blue-light); }
.chat-conv-item.active .chat-conv-name { color: var(--dispo-blue); }

.chat-conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-conv-body { flex: 1; min-width: 0; }

.chat-conv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.chat-conv-name {
    font-weight: 600;
    font-size: .8125rem;
    color: var(--dispo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conv-time {
    font-size: .7rem;
    color: var(--dispo-muted);
    flex-shrink: 0;
}

.chat-conv-preview {
    font-size: .775rem;
    color: var(--dispo-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.chat-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--dispo-blue);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Chat main ────────────────────────────────────────────────────────────── */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--dispo-bg);
    min-width: 0;
    overflow: hidden;
}

.chat-main-header {
    background: var(--dispo-surface);
    border-bottom: 1px solid var(--dispo-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 58px;
}

.chat-main-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-main-header-name {
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: -.01em;
}
.chat-main-header-sub { font-size: .75rem; color: var(--dispo-muted); }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-msg-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.chat-msg-group.mine  { align-items: flex-end; }
.chat-msg-group.other { align-items: flex-start; }

.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 0 4px;
}
.chat-msg-group.mine .chat-msg-meta { flex-direction: row-reverse; }

.chat-msg-sender { font-size: .75rem; font-weight: 600; color: var(--dispo-text); }

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-bubble {
    max-width: min(520px, 68%);
    padding: 9px 14px;
    font-size: .875rem;
    line-height: 1.45;
    word-break: break-word;
}

.chat-msg-group.other .chat-bubble {
    background: var(--dispo-surface);
    color: var(--dispo-text);
    border-radius: 4px 16px 16px 16px;
    box-shadow: var(--dispo-shadow-sm);
}

.chat-msg-group.mine .chat-bubble {
    background: var(--dispo-blue);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}

.chat-bubble-time {
    font-size: .65rem;
    color: var(--dispo-muted);
    margin-top: 3px;
    padding: 0 4px;
}

/* ── Chat input ───────────────────────────────────────────────────────────── */
.chat-input-bar {
    background: var(--dispo-surface);
    border-top: 1px solid var(--dispo-border);
    padding: 12px 20px 14px;
    flex-shrink: 0;
}

.chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dispo-bg);
    border: 1.5px solid var(--dispo-border);
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
    transition: border-color .15s;
}
.chat-input-wrap:focus-within { border-color: var(--dispo-blue); background: #fff; }

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .875rem;
    color: var(--dispo-text);
    font-family: inherit;
    padding: 2px 0;
}
.chat-input::placeholder { color: var(--dispo-muted); }

.chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dispo-blue);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    flex-shrink: 0;
    transition: background .13s, transform .1s;
}
.chat-send-btn:hover { background: var(--dispo-blue-dark); }
.chat-send-btn:active { transform: scale(.93); }

/* ── Chat empty state ─────────────────────────────────────────────────────── */
.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--dispo-muted);
    text-align: center;
    padding: 2rem;
}
.chat-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dispo-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--dispo-blue);
    margin-bottom: 4px;
}
.chat-empty-state h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dispo-text);
    margin: 0;
    letter-spacing: -.01em;
}
.chat-empty-state p { font-size: .85rem; margin: 0; max-width: 260px; line-height: 1.5; }

/* ── Compose dropdown ─────────────────────────────────────────────────────── */
.chat-compose-dropdown {
    min-width: 230px;
    padding: 6px;
    border-radius: var(--dispo-radius-lg);
    border: 1px solid var(--dispo-border);
    box-shadow: var(--dispo-shadow);
}
.chat-compose-dropdown .dropdown-item {
    border-radius: var(--dispo-radius);
    padding: 7px 10px;
    font-size: .8125rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-compose-dropdown-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dispo-blue-mid);
    color: var(--dispo-blue-dark);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-compose-dropdown-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--dispo-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px 6px;
}

/* ── Tours split layout ───────────────────────────────────────────────────── */
.tours-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.tours-list-col {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
}
.tours-map-col {
    flex: 1;
    min-width: 280px;
}
.tours-map-sticky {
    position: sticky;
    top: calc(var(--dispo-header-h) + 1rem);
    border-radius: var(--dispo-radius-lg);
    overflow: hidden;
    border: 1px solid var(--dispo-border);
    box-shadow: var(--dispo-shadow-sm);
}
#tours-map {
    height: min(560px, calc(100vh - var(--dispo-header-h) - 3rem));
    min-height: 360px;
}
.tour-row { transition: background .12s; cursor: default; }
.tour-row:hover { background: var(--dispo-blue-light) !important; }
.tour-num-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .tours-layout { flex-direction: column; }
    .tours-list-col { flex: none; width: 100%; }
    .tours-map-col { width: 100%; }
    .tours-map-sticky { position: static; }
    #tours-map { height: 320px; }
}

/* ── Responsive chat ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .chat-sidebar { width: 100%; border-right: none; }
    .chat-root { flex-direction: column; }
    .chat-sidebar.hide-mobile { display: none; }
    .chat-main.hide-mobile { display: none; }
    .chat-back-btn { display: flex !important; }
}
@media (min-width: 768px) { .chat-back-btn { display: none !important; } }

/* ── Route stops (inquiry tours tab) ─────────────────────────────────────── */
.route-stops { display: flex; flex-direction: column; }
.route-stop {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .45rem 0;
}
.route-stop-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.route-stop-dot.dot-to {
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
}
.route-stop-info { flex: 1; }
.route-stop-leg { margin-left: auto; padding-top: 3px; font-size: .75rem; white-space: nowrap; }
.route-waiting {
    display: flex;
    align-items: center;
    font-size: .78rem;
    color: #d97706;
    padding: .15rem 0 .15rem 38px;
    font-weight: 500;
}

/* ── Address autocomplete ────────────────────────────────────────────────── */
.dispo-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    list-style: none;
    margin: 2px 0 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}
.dispo-autocomplete-list:empty { display: none; }
.dispo-autocomplete-list li {
    padding: 6px 12px;
    font-size: .8125rem;
    cursor: pointer;
    line-height: 1.4;
}
.dispo-autocomplete-list li:hover { background: var(--dispo-hover); }

/* ── Inquiry metric chips ────────────────────────────────────────────────── */
.dispo-metric-chip {
    display: flex;
    flex-direction: column;
    background: var(--dispo-card-bg);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    padding: .35rem .75rem;
    min-width: 90px;
}
.dispo-metric-chip span:first-child { margin-bottom: 1px; }
.dispo-metric-chip span:last-child  { font-size: .875rem; }

/* ── Sales inquiry split view ────────────────────────────────────────────── */
.sales-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100vh - var(--dispo-header-height, 56px) - 1px);
    overflow: hidden;
}
.sales-split-list {
    border-right: 1px solid var(--dispo-border);
    overflow-y: auto;
    background: var(--dispo-bg);
    display: flex;
    flex-direction: column;
}
.sales-split-detail {
    overflow-y: auto;
    padding: 1.5rem;
}
.sales-split-list-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    background: var(--dispo-card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}
.sales-inq-row {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.sales-inq-row:hover    { background: var(--dispo-hover); color: inherit; }
.sales-inq-row.active   { background: #eff6ff; border-left: 3px solid var(--dispo-primary); }
.sales-inq-row-num      { font-size: .75rem; font-weight: 600; color: var(--dispo-primary); }
.sales-inq-row-customer { font-size: .8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-inq-row-meta     { font-size: .72rem; color: #94a3b8; }
@media (max-width: 900px) {
    .sales-split { grid-template-columns: 1fr; height: auto; }
    .sales-split-list { height: auto; max-height: 320px; border-right: none; border-bottom: 1px solid var(--dispo-border); }
    .sales-split-detail { padding: 1rem; }
}

/* ── Message center bubbles ──────────────────────────────────────────────── */
.dispo-msg-bubble       { border-radius: 12px; padding: .6rem .9rem; }
.dispo-msg-bubble.outbound { background: #eff6ff; border: 1px solid #bfdbfe; }
.dispo-msg-bubble.inbound  { background: var(--dispo-card-bg); border: 1px solid var(--dispo-border); }
.dispo-msg-meta         { font-size: .72rem; color: #94a3b8; margin-bottom: 4px; }
.dispo-msg-subject      { font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.dispo-msg-body         { font-size: .8125rem; line-height: 1.5; white-space: pre-wrap; }


/* ══════════════════════════════════════════════════════════════════════════
   INQUIRY — split view + detail
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── Left: list panel ──────────────────────────────────────────────────── */
.inq-list-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    background: var(--dispo-surface);
    position: sticky; top: 0; z-index: 10;
    display: flex; flex-direction: column; gap: .5rem;
}
.inq-list-search {
    display: flex; align-items: center; gap: .5rem;
    background: var(--dispo-bg);
    border: 1px solid var(--dispo-border);
    border-radius: 7px;
    padding: 5px 10px;
}
.inq-list-search i { color: var(--dispo-muted); font-size: .8rem; flex-shrink: 0; }
.inq-list-search input {
    border: none; background: transparent; outline: none;
    font-size: .8125rem; color: var(--dispo-text); font-family: inherit; flex: 1; min-width: 0;
}
.inq-list-search input::placeholder { color: var(--dispo-muted); }
.inq-list-filters { display: flex; flex-wrap: wrap; gap: .3rem; }
.inq-list-filter-btn {
    padding: 3px 9px;
    border-radius: 5px; border: 1px solid var(--dispo-border);
    background: transparent; font-size: .72rem; font-weight: 500;
    color: var(--dispo-muted); cursor: pointer; font-family: inherit;
    transition: all .12s; white-space: nowrap;
}
.inq-list-filter-btn:hover { background: var(--dispo-bg); color: var(--dispo-text); }
.inq-list-filter-btn.active { background: var(--dispo-blue-light); color: var(--dispo-blue); border-color: var(--dispo-blue-mid); font-weight: 600; }
.inq-list-new-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--dispo-blue); color: #fff;
    text-decoration: none; font-size: .95rem; flex-shrink: 0; transition: background .13s;
}
.inq-list-new-btn:hover { background: var(--dispo-blue-dark); color: #fff; }

/* List items */
.inq-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--dispo-border-light);
    text-decoration: none; color: inherit;
    transition: background .1s; position: relative;
}
.inq-item:hover { background: var(--dispo-bg); }
.inq-item.active { background: var(--dispo-blue-light); }
.inq-item.active::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--dispo-blue);
}
.inq-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.inq-item-body { flex: 1; min-width: 0; }
.inq-item-customer {
    font-size: .85rem; font-weight: 600; color: var(--dispo-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inq-item.active .inq-item-customer { color: var(--dispo-blue); }
/* Client reference badge in front of the account name, so several groups of the
   same client stay apart at a glance */
.inq-item-ref {
    display: inline-block; margin-right: 5px; padding: 0 5px;
    border-radius: 4px; background: var(--dispo-bg, #f1f5f9);
    color: var(--dispo-muted); font-size: .7rem; font-weight: 600;
    vertical-align: 1px;
}
.inq-item-number { font-size: .75rem; color: var(--dispo-muted); margin-top: 1px; }
.inq-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.inq-item-date { font-size: .7rem; color: var(--dispo-muted); }
.inq-status-dot {
    display: inline-block; padding: 1px 6px; border-radius: 999px;
    font-size: .62rem; font-weight: 600;
}
.inq-status-dot.new       { background: #dbeafe; color: #1d4ed8; }
.inq-status-dot.quoted    { background: #dcfce7; color: #15803d; }
.inq-status-dot.ordered   { background: #f3e8ff; color: #7c3aed; }
.inq-status-dot.cancelled { background: #f3f4f6; color: #6b7280; }
.inq-status-dot.pending   { background: #fef9c3; color: #854d0e; }
.dot-new       { background: #3b82f6; }
.dot-quoted    { background: #22c55e; }
.dot-ordered   { background: #a855f7; }
.dot-cancelled { background: #9ca3af; }
.dot-pending   { background: #f59e0b; }

/* ─── Right: detail panel ───────────────────────────────────────────────── */
.inq-detail-wrap { overflow-y: auto; }
.inq-detail-inner { padding: 1.5rem 2rem; }

.inq-breadcrumb {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; color: var(--dispo-muted);
    text-decoration: none; margin-bottom: .875rem; transition: color .12s;
}
.inq-breadcrumb:hover { color: var(--dispo-text); }

/* ─── Header ────────────────────────────────────────────────────────────── */
.inq-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem;
    margin-bottom: 1.125rem;
}
.inq-header-left { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.inq-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--dispo-text); }
.inq-ts { font-size: .8rem; color: var(--dispo-muted); margin-top: 4px; }
.inq-header-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.inq-star-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 7px;
    border: 1px solid var(--dispo-border); background: var(--dispo-surface);
    color: var(--dispo-muted); text-decoration: none; font-size: .875rem; transition: all .12s;
}
.inq-star-btn:hover { border-color: #cbd5e1; color: var(--dispo-text); }
.inq-star-btn.starred { color: #f59e0b; border-color: #fde68a; background: #fefce8; }

/* Status badges */
.inq-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.inq-badge.new       { background: #dbeafe; color: #1d4ed8; }
.inq-badge.quoted    { background: #dcfce7; color: #15803d; }
.inq-badge.ordered   { background: #f3e8ff; color: #7c3aed; }
.inq-badge.cancelled { background: #f3f4f6; color: #6b7280; }
.inq-badge.pending   { background: #fef9c3; color: #854d0e; }

/* ─── Process section ───────────────────────────────────────────────────── */
.inq-process {
    margin-bottom: 1.25rem;
}
.inq-process-label {
    font-size: .67rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--dispo-muted); margin-bottom: .75rem;
}
.inq-process-cards {
    display: grid;
    grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr));
    gap: .625rem; margin-bottom: 1rem;
}
@media (max-width: 820px) { .inq-process-cards { grid-template-columns: 1fr 1fr; } }
.inq-proc-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem;
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    min-width: 0;
}
.inq-proc-card-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; flex-shrink: 0;
}
.inq-proc-card-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.inq-proc-card-icon.purple { background: #f3e8ff; color: #7c3aed; }
.inq-proc-card-icon.green  { background: #dcfce7; color: #15803d; }
.inq-proc-card-icon.amber  { background: #fef3c7; color: #d97706; }
.inq-proc-card-body { min-width: 0; }
.inq-proc-card-label { font-size: .7rem; color: var(--dispo-muted); font-weight: 500; margin-bottom: 1px; }
.inq-proc-card-value { font-size: .875rem; font-weight: 600; color: var(--dispo-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inq-proc-card-sub { font-size: .75rem; color: var(--dispo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pipeline */
.inq-pipeline {
    display: grid;
    grid-template-columns: minmax(0,1fr) 28px minmax(0,1.6fr) 28px minmax(0,1fr);
    gap: 0; align-items: start;
}
@media (max-width: 820px) {
    .inq-pipeline { grid-template-columns: 1fr; gap: .5rem; }
    .inq-pipe-chevron { display: none; }
}
.inq-pipe-chevron {
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: .9rem; color: #cbd5e1; font-size: .875rem;
}
.inq-pipe-section {
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    overflow: hidden; background: var(--dispo-surface);
}
.inq-pipe-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem .875rem;
    background: var(--dispo-bg);
    border-bottom: 1px solid var(--dispo-border);
    font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dispo-muted);
}
.inq-pipe-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .625rem .875rem; gap: .5rem;
    border-bottom: 1px solid var(--dispo-border-light);
    text-decoration: none; color: inherit; transition: background .1s;
    position: relative;
}
.inq-pipe-item:last-child { border-bottom: none; }
.inq-pipe-item:hover { background: var(--dispo-bg); }
.inq-pipe-item-actions {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    display: flex; gap: 2px; opacity: 0; transition: opacity .15s;
    background: var(--dispo-surface); border-radius: 6px; padding: 2px 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.inq-pipe-item:hover .inq-pipe-item-actions { opacity: 1; }
.inq-pipe-item-actions button {
    background: none; border: none; padding: 3px 5px; border-radius: 4px;
    color: var(--dispo-muted); font-size: .78rem; cursor: pointer; line-height: 1;
    transition: background .1s, color .1s;
}
.inq-pipe-item-actions button:hover { background: var(--dispo-bg); color: var(--dispo-text); }
.inq-pipe-item-actions button.action-danger:hover { color: #ef4444; }
.inq-pipe-item-left { min-width: 0; }
.inq-pipe-item-num { font-size: .8375rem; font-weight: 600; color: var(--dispo-text); }
.inq-pipe-item-sub { font-size: .75rem; color: var(--dispo-muted); white-space: nowrap; }
.inq-pipe-items { max-height: 240px; overflow-y: auto; }
.inq-pipe-empty { padding: .7rem .875rem; font-size: .8125rem; color: var(--dispo-muted); }

/* Other status badges */
.ord-badge {
    display: inline-block; padding: 2px 7px; border-radius: 999px;
    font-size: .63rem; font-weight: 600; flex-shrink: 0;
}
.ord-badge.pending     { background: #fef9c3; color: #854d0e; }
.ord-badge.confirmed   { background: #dbeafe; color: #1d4ed8; }
.ord-badge.in_progress { background: #fef3c7; color: #d97706; }
.ord-badge.done        { background: #dcfce7; color: #15803d; }
.ord-badge.cancelled   { background: #f3f4f6; color: #6b7280; }
.quot-badge {
    display: inline-block; padding: 2px 7px; border-radius: 999px;
    font-size: .63rem; font-weight: 600; flex-shrink: 0;
}
.quot-badge.draft    { background: #f3f4f6; color: #6b7280; }
.quot-badge.sent     { background: #dbeafe; color: #1d4ed8; }
.quot-badge.accepted { background: #dcfce7; color: #15803d; }
.quot-badge.rejected { background: #fee2e2; color: #b91c1c; }

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.inq-tabs {
    display: flex; align-items: center;
    border-bottom: 1px solid var(--dispo-border);
    margin-bottom: 1.25rem; overflow-x: auto;
}
.inq-tab {
    display: inline-flex; align-items: center; gap: 5px;
    padding: .575rem 1rem;
    font-size: .8125rem; font-weight: 500; color: var(--dispo-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; white-space: nowrap; transition: color .12s;
}
.inq-tab:hover { color: var(--dispo-text); }
.inq-tab.active { color: var(--dispo-blue); border-bottom-color: var(--dispo-blue); font-weight: 600; }
.inq-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--dispo-blue); color: #fff;
    font-size: .62rem; font-weight: 700;
}

/* ─── Overview: tour grid + map ─────────────────────────────────────────── */
.inq-tour-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.25rem;
}
@media (max-width: 1100px) {
    .inq-tour-grid { grid-template-columns: 1fr; }
    .inq-map-sticky { position: static !important; }
}
.inq-map-sticky {
    position: sticky; top: 1rem;
    border-radius: var(--dispo-radius-lg); overflow: hidden;
    border: 1px solid var(--dispo-border);
    box-shadow: var(--dispo-shadow-sm);
}
#tours-map { height: min(460px, calc(100vh - 130px)); min-height: 280px; }

/* Tour cards */
.tour-card {
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius-lg);
    margin-bottom: .75rem; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tour-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1.125rem;
    border-bottom: 1px solid var(--dispo-border-light); gap: .75rem;
}
.tour-card-title { font-size: .875rem; font-weight: 700; color: var(--dispo-text); }
.tour-type-pill {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 999px;
    background: var(--dispo-bg); color: var(--dispo-muted);
    font-size: .7rem; font-weight: 500; white-space: nowrap;
}
.tour-card-meta {
    display: grid; grid-template-columns: repeat(4,1fr);
    border-bottom: 1px solid var(--dispo-border-light);
}
@media (max-width: 700px) { .tour-card-meta { grid-template-columns: repeat(2,1fr); } }
.tour-meta-item {
    padding: .6rem 1.125rem;
    border-right: 1px solid var(--dispo-border-light);
}
.tour-meta-item:last-child { border-right: none; }
.tour-meta-label {
    font-size: .62rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--dispo-muted); margin-bottom: 2px;
}
.tour-meta-val {
    font-size: .8125rem; font-weight: 600; color: var(--dispo-text);
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.tour-dep-badge {
    display: inline-block; padding: 1px 5px; border-radius: 4px;
    font-size: .6rem; font-weight: 700;
    background: var(--dispo-bg); color: var(--dispo-muted);
}
.tour-card-route { padding: .8rem 1.125rem; }
.tour-route-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--dispo-muted); margin-bottom: .55rem;
}
.tour-route-stops { display: flex; flex-direction: column; }
.tour-route-stop { display: flex; align-items: flex-start; gap: .55rem; padding: .28rem 0; }
.tour-stop-num {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700; color: #fff; flex-shrink: 0; margin-top: 1px;
}
.tour-stop-body { flex: 1; min-width: 0; }
.tour-stop-place { font-size: .8125rem; font-weight: 500; color: var(--dispo-text); }
.tour-stop-time { font-size: .7rem; color: var(--dispo-muted); margin-top: 1px; }
.tour-stop-time .time-label {
    display: inline-block; padding: 0 4px; border-radius: 3px;
    background: var(--dispo-bg); font-size: .6rem; font-weight: 600;
    color: var(--dispo-muted); margin-right: 3px;
}
.tour-route-leg {
    display: flex; align-items: center; gap: .4rem;
    padding: .08rem 0 .08rem 29px; font-size: .7rem; color: var(--dispo-muted);
}
.tour-route-leg-line { width: 1px; height: 10px; background: var(--dispo-border); margin: 0 10px; }
.tour-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 1.125rem;
    border-top: 1px solid var(--dispo-border-light);
    background: var(--dispo-bg); gap: .75rem; flex-wrap: wrap;
}
.tour-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.tour-stat { font-size: .72rem; color: var(--dispo-muted); }
.tour-stat strong { font-weight: 600; color: var(--dispo-text); }

/* Add tour toggle */
.inq-add-tour-toggle {
    display: flex; align-items: center; gap: .5rem;
    padding: .575rem .875rem;
    border: 1.5px dashed var(--dispo-border);
    border-radius: var(--dispo-radius-lg); background: transparent;
    color: var(--dispo-muted); font-size: .8125rem; font-weight: 500;
    cursor: pointer; width: 100%; font-family: inherit;
    transition: all .13s; margin-bottom: .75rem;
}
.inq-add-tour-toggle:hover { border-color: var(--dispo-blue); color: var(--dispo-blue); background: var(--dispo-blue-light); }

/* Sidebar / detail cards */
.inq-detail-cols { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .inq-detail-cols { grid-template-columns: 1fr; } }
.inq-sidebar-card {
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius-lg);
    padding: 1rem 1.25rem; margin-bottom: .75rem;
}
.inq-sidebar-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--dispo-muted);
    margin-bottom: .75rem; display: block;
}

/* Misc utility for pipeline add-btn */
.inq-pipe-add {
    color: var(--dispo-muted); font-size: .75rem; text-decoration: none;
    display: flex; align-items: center; transition: color .12s;
}
.inq-pipe-add:hover { color: var(--dispo-blue); }

/* ── Tour card redesign — betterbus style ─────────────────────────────────── */
.tour-type-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    background: #dbeafe; color: #1d4ed8;
    font-size: .72rem; font-weight: 700; white-space: nowrap;
}

/* Info cards 2-col grid */
.tour-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .625rem;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--dispo-border-light);
}
.tour-info-card {
    display: flex; align-items: center; gap: .625rem;
}
.tour-info-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
}
.tour-info-icon.green  { background: #d1fae5; color: #059669; }
.tour-info-icon.purple { background: #ede9fe; color: #7c3aed; }
.tour-info-icon.teal   { background: #ccfbf1; color: #0d9488; }
.tour-info-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.tour-info-label { font-size: .67rem; color: var(--dispo-muted); margin-bottom: 1px; }
.tour-info-value {
    font-size: .875rem; font-weight: 600; color: var(--dispo-text);
    display: flex; align-items: center; gap: 5px;
}

/* Route table */
.tour-route-section { padding: .875rem 1.125rem; }
.tour-route-header {
    font-size: .65rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--dispo-muted); margin-bottom: .5rem;
}
.tour-route-cols-hdr {
    display: grid; grid-template-columns: 1fr 58px 58px;
    padding: .25rem 0 .4rem;
    font-size: .72rem; color: var(--dispo-muted);
    border-bottom: 1px solid var(--dispo-border-light);
    margin-bottom: .1rem;
}
.tour-route-cols-hdr span:not(:first-child) { text-align: right; }
.tour-route-row {
    display: grid; grid-template-columns: 24px 1fr 58px 58px;
    align-items: center; gap: .5rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--dispo-border-light);
}
.tour-route-row:last-child { border-bottom: none; }
.tour-route-num {
    width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700; color: #fff !important; flex-shrink: 0;
    background-color: #3b82f6;
}
.tour-route-place { font-size: .8375rem; font-weight: 500; color: var(--dispo-text); }
.tour-route-time-col {
    text-align: right; font-size: .73rem;
    color: var(--dispo-text); line-height: 1.35;
}
.tour-route-time-col.muted { color: var(--dispo-muted); }
.tour-route-leg-row {
    padding: .3rem 0 .3rem 30px;
    font-size: .7rem; color: var(--dispo-muted);
    border-bottom: 1px solid var(--dispo-border-light);
    background: var(--dispo-bg);
    margin: 0 -1.125rem; padding-left: calc(1.125rem + 30px);
    padding-right: 1.125rem;
}

/* Stats section */
.tour-stats-section {
    padding: .75rem 1.125rem;
    border-top: 1px solid var(--dispo-border-light);
    background: var(--dispo-bg);
}
.tour-stats-item {
    font-size: .775rem; color: var(--dispo-muted); line-height: 1.6;
}

.tour-route-waiting {
    display: flex; align-items: center; gap: .4rem;
    padding: .35rem 0 .35rem 30px;
    font-size: .75rem; font-weight: 500;
    color: #d97706; font-style: italic;
    border-bottom: 1px dashed #fde68a;
}

.tour-check-avail {
    padding: .5rem 1.125rem;
    border-bottom: 1px solid var(--dispo-border-light);
    display: flex; justify-content: flex-end;
}
.tour-check-avail-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .875rem;
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    background: var(--dispo-surface);
    color: var(--dispo-text);
    font-size: .8rem; font-weight: 500;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.tour-check-avail-btn:hover { background: var(--dispo-bg); border-color: #cbd5e1; color: var(--dispo-text); }
 
/* ── Tour group cards ─────────────────────────────────────────────────────── */
.tour-group-card {
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    margin-bottom: 1rem;
    background: var(--dispo-surface);
}
.tour-group-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--dispo-border);
    background: var(--dispo-bg);
    border-radius: var(--dispo-radius) var(--dispo-radius) 0 0;
}
.tour-group-title { font-weight: 600; font-size: .9375rem; }
.tour-group-body { padding: .75rem; display: flex; flex-direction: column; gap: .75rem; }

/* ── Time combo (unified time picker, Google Calendar style) ────────────────── */
.time-combo-wrap {
    position: relative;
    display: inline-block;
    flex: none;
}
.time-combo-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    margin-top: 2px;
    min-width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    box-shadow: var(--dispo-shadow);
    z-index: 2000;
    padding: .25rem 0;
}
.time-combo-menu.show { display: block; }
.time-combo-option {
    padding: .3rem .75rem;
    font-size: .8125rem;
    color: var(--dispo-text);
    cursor: pointer;
    white-space: nowrap;
}
.time-combo-option:hover,
.time-combo-option.active {
    background: var(--dispo-blue-light);
    color: var(--dispo-blue-dark);
}

/* ── Help / User Guide ─────────────────────────────────────────────────── */
.help-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.help-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius-lg);
    box-shadow: var(--dispo-shadow-sm);
    text-decoration: none;
    color: var(--dispo-text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.help-card:hover {
    border-color: var(--dispo-blue);
    box-shadow: var(--dispo-shadow);
    transform: translateY(-1px);
    color: var(--dispo-text);
}
.help-card-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--dispo-radius);
    background: var(--dispo-blue-light);
    color: var(--dispo-blue);
    font-size: 1.15rem;
}
.help-card-body { display: flex; flex-direction: column; gap: 3px; }
.help-card-title { font-weight: 600; }
.help-card-summary { font-size: .82rem; color: var(--dispo-muted); line-height: 1.4; }

/* Module guide page */
.help-guide { max-width: 820px; }
.help-guide h1 { margin-bottom: 4px; }
.help-guide .help-lead { color: var(--dispo-muted); margin-bottom: 20px; }
.help-section {
    background: var(--dispo-surface);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius-lg);
    box-shadow: var(--dispo-shadow-sm);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.help-section > h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.help-section > h2 .bi { color: var(--dispo-blue); }
.help-section h3 {
    font-size: .9rem;
    font-weight: 600;
    margin: 16px 0 6px;
}
.help-section p { margin-bottom: 10px; line-height: 1.55; }
.help-path {
    display: inline-block;
    font-size: .8rem;
    background: var(--dispo-bg);
    border: 1px solid var(--dispo-border);
    border-radius: 999px;
    padding: 2px 10px;
    color: var(--dispo-text);
}
.help-steps { margin: 0 0 6px; padding-left: 20px; }
.help-steps li { margin-bottom: 7px; line-height: 1.5; }
.help-fields {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}
.help-fields th, .help-fields td {
    text-align: left;
    vertical-align: top;
    padding: 7px 10px;
    border-bottom: 1px solid var(--dispo-border-light);
}
.help-fields th {
    white-space: nowrap;
    font-weight: 600;
    color: var(--dispo-text);
    width: 190px;
}
.help-fields td { color: var(--dispo-muted); }
.help-tip {
    display: flex; gap: 10px;
    background: var(--dispo-blue-light);
    border: 1px solid var(--dispo-blue-mid);
    border-radius: var(--dispo-radius);
    padding: 10px 14px;
    font-size: .86rem;
    color: var(--dispo-text);
    margin: 12px 0 0;
}
.help-tip .bi { color: var(--dispo-blue); margin-top: 2px; }
.help-badge {
    display: inline-block;
    font-size: .72rem; font-weight: 600;
    padding: 1px 7px; border-radius: 999px;
    background: var(--dispo-bg); border: 1px solid var(--dispo-border);
    color: var(--dispo-text);
}

/* ── Hromadné přiřazení vozidla a řidiče (detail poptávky) ────────────────── */
.bulk-assign {
    background: var(--dispo-bg);
    border: 1px solid var(--dispo-border);
    border-radius: var(--dispo-radius);
    padding: 14px 16px;
    margin-bottom: 1rem;
    container-type: inline-size;
}
.bulk-assign-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 12px;
    font-size: .85rem; font-weight: 600; color: var(--dispo-text);
    cursor: pointer;
}
.bulk-assign-toggle input {
    width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--dispo-blue);
}
/* Pole a tlačítko v jedné mřížce, ať se při zúžení nerozpadnou nahodile */
.bulk-assign-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}
.bulk-assign-field { min-width: 0; }
.bulk-assign-label {
    display: block; margin-bottom: 4px;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--dispo-muted);
}
.bulk-assign-btn { white-space: nowrap; }
.bulk-assign-hint {
    margin: 10px 0 0;
    font-size: .78rem; color: var(--dispo-muted);
}
/* Úzká karta: pole vedle sebe, tlačítko přes celou šířku pod nimi */
@container (max-width: 560px) {
    .bulk-assign-btn { grid-column: 1 / -1; }
}
@container (max-width: 340px) {
    .bulk-assign-grid { grid-template-columns: 1fr; }
}
/* Záloha pro prohlížeče bez container queries */
@supports not (container-type: inline-size) {
    @media (max-width: 575.98px) {
        .bulk-assign-grid { grid-template-columns: 1fr; }
    }
}

/* ── Fleet composition ────────────────────────────────────────────────────────
   Skladba vozového parku na úvodní stránce Fleetu. Dřív jeden dlouhý řádek, ve
   kterém splývaly počty, názvy typů a čísla sedadel; teď dlaždice, kde je počet
   vizuální kotvou (Libor, feedback #9). Mřížka se sama přizpůsobí šířce karty. */
.fleet-composition {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}
.fleet-composition-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--dispo-border, #e5e7eb);
    border-radius: 8px;
    background: var(--dispo-bg, #f8fafc);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background-color .15s;
}
.fleet-composition-item:hover {
    border-color: #93c5fd;
    background: #fff;
}
.fleet-composition-count {
    flex: 0 0 auto;
    min-width: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
    color: #1a56db;
    font-variant-numeric: tabular-nums;
}
.fleet-composition-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fleet-composition-name {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.25;
    /* Dlouhé názvy typů kartu nerozšíří, zalomí se */
    overflow-wrap: anywhere;
}
.fleet-composition-seats {
    font-size: .72rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Travel date, route and pax under the inquiry number in the left list (Jana 8. 10.) */
.inq-item-meta {
    display: flex; flex-wrap: wrap; gap: 0 .6rem; margin-top: 2px;
    font-size: .72rem; color: var(--dispo-muted);
}
.inq-item-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.inq-item-meta .bi { font-size: .68rem; margin-right: 1px; }
.inq-item-noname { color: var(--dispo-muted); font-weight: 500; font-style: italic; }

/* Sent offer with no answer yet (QuotationFollowUp, Jana 8. 10.) */
.inq-follow-up {
    display: inline-block; padding: 1px 6px; border-radius: 999px;
    font-size: .62rem; font-weight: 700; white-space: nowrap;
    background: #ffedd5; color: #c2410c;
}
.inq-follow-up .bi { font-size: .6rem; }

/* Inquiry overview at /sales/inquiry: full-width table instead of the narrow list (Jana 8. 10.) */
.inq-overview { padding: 1.25rem 1.5rem; }
.inq-overview-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin-bottom: 1rem;
}
.inq-table thead th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--dispo-muted); font-weight: 600; white-space: nowrap;
    background: var(--dispo-bg); border-bottom: 1px solid var(--dispo-border);
}
.inq-table td { font-size: .85rem; border-color: var(--dispo-border-light); }
.inq-table tr[data-href] { cursor: pointer; }
.inq-table-main { min-width: 220px; }
.inq-table-name { font-weight: 600; color: var(--dispo-text); text-decoration: none; }
.inq-table-name:hover { color: var(--dispo-blue); }
.inq-table-sub { font-size: .75rem; color: var(--dispo-muted); margin-top: 1px; }
.inq-table-route { min-width: 160px; }
.inq-overview-bar > * { min-width: 0; }
@media (max-width: 767.98px) {
    .inq-overview { padding: 1rem; }
    .inq-overview-bar .inq-list-search { flex: 1 1 100% !important; max-width: none !important; }
    .inq-overview-bar .ms-auto { margin-left: 0 !important; }
}
a.inq-list-filter-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }

/* Sales settings: price includes / excludes catalogue, one item per row with
   column headings (Jana 8. 10.: fields ran together, the two switches had no label). */
.term-grid {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr) 100px 120px 64px 64px 64px 76px;
    gap: 8px;
    align-items: center;
}
.term-grid-head {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--dispo-muted);
    padding-bottom: 4px;
}
.term-grid-group {
    font-weight: 600;
    font-size: .85rem;
    margin: 14px 0 4px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--dispo-border);
}
.term-grid-row { padding: 5px 0; border-bottom: 1px solid var(--dispo-border-light); }
.term-grid-switch { display: flex; justify-content: center; align-items: center; padding-left: 0; }
.term-grid-switch .form-check-input { margin-left: 0; float: none; }
.term-grid-mlabel { display: none; }
@media (max-width: 991.98px) {
    .term-grid-head { display: none; }
    .term-grid { grid-template-columns: 1fr 1fr 1fr; }
    .term-grid-row > input[name="label"] { grid-column: 1 / -1; order: -1; }
    .term-grid-switch { justify-content: flex-start; gap: 6px; }
    .term-grid-mlabel { display: inline; font-size: .8rem; color: var(--dispo-muted); }
}
