html {
  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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .dropdown-toggle.btn-outline-light:hover,
[data-bs-theme="dark"] .dropdown-toggle.btn-outline-light:focus,
[data-bs-theme="dark"] .dropdown-toggle.btn-outline-light:active {
    background-color: #3c3f46;
    border-color: #3c3f46;
    color: white;
    box-shadow: none;
}

.width-fit {
    width: 1%;
    white-space: nowrap;
}

/* Select2 Styles */
.select2-container--default .select2-selection--single {
    height: 2.6rem !important;
    padding: 0.4rem 2rem 0.4rem 2rem !important; /* extra space left */
    display: flex;
    align-items: center;
    position: relative;
}

/* Clean Button (X) of Select2 */
.select2-selection__clear {
    position: absolute;
    left: 0.75rem;
    color: red !important;
    font-weight: bold;
    font-size: 1rem;
    align-self: center;
    cursor: pointer;
}

/* Select2 arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}


.select2-container.select2-selected .select2-selection--single {
    border: 2px solid var(--bs-primary) !important;
    background-color: var(--bs-primary-bg-subtle); /* opcional */
    border-radius: 0.5rem;
}

/* Dropdown de opciones */
.select2-container--default .select2-results > .select2-results__options {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

/* Opciones individuales */
.select2-container--default .select2-results__option {
    background-color: transparent;
    color: inherit;
}

/* Opción seleccionada */
.select2-container--default .select2-results__option--highlighted {
    background-color: var(--bs-primary);
    color: white;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--selected {
    background-color: var(--bs-secondary-bg-subtle); /* o #2c2f36 como base neutra */
    color: var(--bs-body-color) !important;
}

/* Estilo para tablas interactivas */
.main-dataTable tbody tr:hover {
    cursor: pointer;
}

/* --- Select2 pills con color primario dinámico --- */
/* píldora completa (texto + fondo) */
.select2-container--bootstrap-5 .select2-selection--multiple
.select2-selection__choice {
    background-color: var(--bs-primary);
    color: #fff !important; /* fuerza el blanco             */
}

.select2-container--bootstrap-5 .select2-search--inline {
    display: none !important;
}