:root {
  --shell-primary: #1c4d7a;
  --shell-primary-rgb: 28, 77, 122;
  --bs-primary: var(--shell-primary);
  --bs-primary-rgb: var(--shell-primary-rgb);
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(var(--shell-primary-rgb), 0.35);
}

.shell-body-root {
  margin-bottom: 0;
  min-height: 100vh;
}

.shell-sidebar {
  width: 260px;
  min-height: 100vh;
}

/* Escritorio: menú lateral fijo al viewport; solo el área principal hace scroll con la página. */
@media (min-width: 992px) {
  .shell-app .shell-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
  }
}

.shell-main {
  min-width: 0;
}

.shell-content {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.shell-logo-img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.shell-nav-links .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.shell-nav-links .nav-link:hover,
.shell-nav-links .nav-link:focus,
.shell-nav-links .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.shell-nav-links .nav-link.disabled,
.shell-nav-links .nav-link:disabled {
  pointer-events: none;
}

.shell-nav-links a.nav-link.text-white-50:hover {
  color: #fff !important;
}

.shell-topbar .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991.98px) {
  .shell-content {
    padding-top: 4.75rem !important;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.page-hero {
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.page-hero h1,
.page-hero .h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.table-actions .btn,
.table-actions form {
  display: inline-block;
  vertical-align: middle;
}

.table-actions form .btn {
  margin-left: 0.15rem;
}

.shell-content .card {
  border-radius: 0.5rem;
}

.shell-content .table thead th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: none;
  border-bottom-width: 1px;
}

.badge-jornada-am {
  background: #d8ebff;
  color: #124372;
  border: 1px solid #9cc5ef;
}

.badge-jornada-pm {
  background: #efe3ff;
  color: #4f2a8a;
  border: 1px solid #ccb3ef;
}