/* ── Proměnné ─────────────────────────────────────────────────────────────── */
:root {
    --dispo-blue:      #1a56db;
    --dispo-blue-dark: #1343b0;
    --dispo-sidebar-w: 220px;
    --dispo-navbar-h:  52px;
    --dispo-bg:        #f5f6fa;
    --dispo-border:    #e5e7eb;
    --dispo-text:      #111827;
    --dispo-muted:     #6b7280;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
body.dispo-app {
    background: var(--dispo-bg);
    color: var(--dispo-text);
    font-size: 0.875rem;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.dispo-navbar {
    background: #fff;
    border-bottom: 1px solid var(--dispo-border);
    height: var(--dispo-navbar-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 .75rem;
}

.dispo-brand {
    color: var(--dispo-blue) !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.dispo-nav-link {
    color: var(--dispo-text) !important;
    font-weight: 500;
    padding: .35rem .65rem !important;
    border-radius: 6px;
    transition: background .15s;
    white-space: nowrap;
}
.dispo-nav-link:hover,
.dispo-nav-link.active {
    background: #eff6ff;
    color: var(--dispo-blue) !important;
}

.dispo-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: var(--dispo-muted);
    text-decoration: none;
    font-size: 1.05rem;
    transition: background .15s, color .15s;
}
.dispo-icon-btn:hover,
.dispo-icon-btn.active {
    background: #eff6ff;
    color: var(--dispo-blue);
}

.dispo-user-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: .25rem .4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .875rem;
}
.dispo-user-btn:hover { background: #f3f4f6; }

.dispo-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dispo-blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── Main layout ──────────────────────────────────────────────────────────── */
.dispo-main {
    min-height: calc(100vh - var(--dispo-navbar-h));
}

.dispo-sidebar-layout {
    display: flex;
    min-height: calc(100vh - var(--dispo-navbar-h));
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.dispo-sidebar {
    width: var(--dispo-sidebar-w);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--dispo-border);
    padding: 1rem .5rem;
    position: sticky;
    top: var(--dispo-navbar-h);
    height: calc(100vh - var(--dispo-navbar-h));
    overflow-y: auto;
}

.dispo-sidebar-section,
.dispo-sidebar-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--dispo-muted);
    padding: .25rem .5rem;
    margin-top: .5rem;
    text-transform: uppercase;
}

.dispo-sidebar-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .65rem;
    border-radius: 6px;
    color: var(--dispo-text);
    text-decoration: none;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.dispo-sidebar-link:hover { background: #f3f4f6; }
.dispo-sidebar-link.active {
    background: #eff6ff;
    color: var(--dispo-blue);
}

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

/* ── 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.4rem;
    font-weight: 700;
    margin: 0;
}
.dispo-page-header p {
    color: var(--dispo-muted);
    margin: .15rem 0 0;
    font-size: .825rem;
}

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

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

/* ── Status badges ────────────────────────────────────────────────────────── */
.badge-active     { background: #dcfce7; color: #16a34a; }
.badge-inactive   { background: #f3f4f6; color: #6b7280; }
.badge-planned    { background: #fef9c3; color: #854d0e; }
.badge-in-progress{ background: #dbeafe; color: #1d4ed8; }
.badge-done       { background: #dcfce7; color: #16a34a; }

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

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

/* ── Formuláře ────────────────────────────────────────────────────────────── */
.dispo-form-section {
    margin-bottom: 1.75rem;
}
.dispo-form-section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    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; }
.dispo-empty h3 { font-size: 1rem; font-weight: 600; color: var(--dispo-text); }
.dispo-empty p  { font-size: .85rem; }
