:root {
    --tracs-blue: #186d94;
    --tracs-cyan: #16a7d9;
    --sidebar-w: 250px;
    --sidebar-bg: #11324a;
}

body { background: #f4f6f9; }

/* ── Sorteerbare tabellen ──────────────────────────────── */
table.sortable th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
table.sortable th[data-sort]:hover { color: var(--tracs-blue); }
table.sortable th[data-sort]::after {
    content: "\2195";              /* ↕ neutraal */
    opacity: .3;
    margin-left: .35em;
    font-size: .85em;
}
table.sortable th[aria-sort="ascending"]::after  { content: "\2191"; opacity: 1; }  /* ↑ */
table.sortable th[aria-sort="descending"]::after { content: "\2193"; opacity: 1; }  /* ↓ */

/* ── App shell ─────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: #cdd9e3;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
}
.sidebar-brand {
    padding: 18px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: var(--tracs-cyan); }
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cdd9e3;
    text-decoration: none;
    font-size: .94rem;
    margin-bottom: 2px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: var(--tracs-blue); color: #fff; }
.sidebar-nav a .badge { font-size: .72rem; }
.sidebar-foot { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }

.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 24px 28px;
    max-width: 100%;
}

/* ── Algemeen ──────────────────────────────────────────── */
.page-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; gap:12px; }
.page-head h1 { font-size: 1.5rem; margin:0; }
.card { border: none; box-shadow: 0 1px 3px rgba(16,32,52,.08); border-radius: 12px; }

/* ── Skill-chips ───────────────────────────────────────── */
.skill-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .75rem; font-weight: 600;
    padding: 2px 7px; border-radius: 6px; margin: 1px;
}

/* ── KPI tiles ─────────────────────────────────────────── */
.kpi { display:flex; flex-direction:column; gap:4px; padding:18px 20px; }
.kpi .kpi-num { font-size:2rem; font-weight:700; line-height:1; }
.kpi .kpi-label { color:#6c757d; font-size:.85rem; }

/* ── Te-plannen wachtrij ───────────────────────────────── */
.queue-row { border-left: 4px solid transparent; }
.queue-row.prio-4 { border-left-color: #dc3545; }
.queue-row.prio-3 { border-left-color: #ffc107; }
.queue-row.prio-2 { border-left-color: #0dcaf0; }
.queue-row.prio-1 { border-left-color: #adb5bd; }

/* ── Kalender ──────────────────────────────────────────── */
.fc .fc-event { cursor: pointer; }
.ev-interventie { background:#186d94 !important; border-color:#186d94 !important; }
.ev-installatie { background:#6f42c1 !important; border-color:#6f42c1 !important; }
.ev-onderhoud   { background:#198754 !important; border-color:#198754 !important; }

#unplanned-drawer .drawer-item {
    border:1px solid #e3e7ec; border-radius:8px; padding:10px 12px; margin-bottom:8px; background:#fff; cursor:grab;
}
#unplanned-drawer .drawer-item:hover { border-color: var(--tracs-cyan); }

@media (max-width: 992px) {
    .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; }
    .sidebar-nav { display: flex; flex-wrap: wrap; }
    .main { margin-left: 0; }
}
