:root { --sidebar-w: 250px; }
body { min-height: 100vh; }
#wrapper { display: flex; }
#sidebar {
  width: var(--sidebar-w); min-height: 100vh; position: fixed; top: 0; left: 0;
  overflow-y: auto; transition: transform .2s ease;
}
#content { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); }
#sidebar .nav-link { border-radius: .375rem; }
#sidebar .nav-link.active { background: var(--bs-primary); color:#fff; }
@media (max-width: 991.98px) {
  #sidebar { transform: translateX(-100%); z-index: 1045; }
  #sidebar.show { transform: translateX(0); }
  #content { margin-left: 0; width: 100%; }
}
/* logo Stera: SVG alb (bun pe dark). Pe light îl întunecăm ca să fie lizibil pe fundal deschis. */
[data-bs-theme="light"] .stera-logo { filter: brightness(0); opacity: .82; }
/* backdrop pentru sidebar off-canvas pe mobil (doar < 992px; pe desktop sidebarul e fix) */
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1044; display: none; }
@media (min-width: 992px) { .sidebar-backdrop { display: none !important; } }

/* login video background */
.login-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.login-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  z-index: -1;
}
.login-card-wrap {
  position: relative;
  z-index: 1;
}

.job-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color);
  border-radius: .375rem; padding: .1rem .45rem; font-size: .9em; white-space: nowrap; }
/* chip cod: deja pe --bs-tertiary-bg; asigura contrast text */
.job-code { color: var(--bs-body-color); }

/* Tom Select urmeaza tema Bootstrap */
.ts-control, .ts-dropdown { background: var(--bs-body-bg); color: var(--bs-body-color); border-color: var(--bs-border-color); }
.ts-dropdown .active { background: var(--bs-primary-bg-subtle); color: var(--bs-body-color); }
.ts-control .item { color: var(--bs-body-color); }

/* accent prioritate pe bordura stanga a randurilor de tabel job */
.job-row-p4 { box-shadow: inset 3px 0 0 var(--bs-danger); }
.job-row-p3 { box-shadow: inset 3px 0 0 var(--bs-warning); }
/* carduri operatie: target-uri mari pe mobil */
@media (max-width: 575.98px) {
  .btn-lg { padding: .75rem 1rem; font-size: 1.05rem; }
}
/* focus vizibil consistent */
.btn:focus-visible, .nav-link:focus-visible, a:focus-visible {
  outline: 2px solid var(--bs-primary); outline-offset: 2px;
}
/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* paginare: pill-uri separate rotunjite, theme-aware (variabile BS5), nu deborda pe mobil */
.pagination {
  flex-wrap: wrap;
  gap: .35rem;
  --bs-pagination-border-radius: .55rem;
}
.pagination .page-item .page-link {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: 0;                 /* anulează overlap-ul BS ca gap-ul să fie curat */
  border-radius: var(--bs-pagination-border-radius);
  border-color: var(--bs-border-color);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pagination .page-item .page-link:hover {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateY(-1px);
  z-index: 2;
}
.pagination .page-item .page-link:focus {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25);
  z-index: 3;
}
.pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
  box-shadow: 0 .15rem .5rem rgba(var(--bs-primary-rgb), .4);
}
.pagination .page-item.disabled .page-link {
  background-color: transparent;
  border-color: var(--bs-border-color);
  color: var(--bs-secondary-color);
  opacity: .55;
}
@media (max-width: 575.98px) {
  .pagination { gap: .25rem; }
  .pagination .page-item .page-link { min-width: 2.1rem; height: 2.1rem; font-size: .9rem; }
}
