/* ─── Sidebar ─────────────────────────────────────────── */
#wrapper {
  min-height: 100vh;
}

#sidebar {
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width 0.2s ease;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

#page-content-wrapper {
  min-width: 0;
  transition: all 0.2s ease;
}

#sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

#sidebar .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Tabulky ─────────────────────────────────────────── */
.table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Sticky záhlaví v report tabulce */
#catTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ─── Karty ──────────────────────────────────────────── */
.card-header {
  font-size: 0.9rem;
}

/* ─── Badge barevná tečka ────────────────────────────── */
.badge.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  padding: 0;
}

/* ─── Průvodce importem ──────────────────────────────── */
.wizard-step {
  opacity: 0.5;
}
.wizard-step.active {
  opacity: 1;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Na mobilu sidebar neleží v flow – je fixed a skrytý */
  #sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  #sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Obsah zaujme celou šířku, nereaguje na sidebar */
  #page-content-wrapper {
    width: 100%;
  }
}

/* Backdrop (overlay) pro mobilní sidebar */
#sidebarBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
}

#sidebarBackdrop.show {
  display: block;
}

/* ─── Select2 fix pro dark mode ──────────────────────── */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5
  .select2-results__option--highlighted {
  background-color: var(--bs-primary);
  color: #fff;
}
