@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
}


@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-Thin.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 100;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-ThinItalic.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-Regular.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-Italic.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-Bold.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-BoldItalic.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-Black.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/Poppins/Poppins-BlackItalic.ttf") format('truetype');
}

:root {
    --dm-brand: #6366f1;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    background: #ffffff;
    color: #222222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* MAQUETACIÓN PRINCIPAL */
.wrapper {
    align-items: stretch;
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left .3s ease-in-out, left .3s ease-in-out, margin-right .3s ease-in-out, right .3s ease-in-out;
    width: 100%;
}

.content {
    flex: 1;
    padding: 1rem 2rem 2rem 2rem;
    background: #ffffff;
}

/* MAQUETACIÓN PRINCIPAL */

a {
    color: #6366F1;
    text-decoration: none;
    background-color: transparent;
    transition: color 0.2s ease;
}

a:hover {
    color: #4F46E5;
}

#spinner {
    height: 100vh;
    width: 100vw;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ----- FORMULARIOS ----- */

input:focus, select:focus, .btn:focus, .bootstrap-select > .dropdown-toggle:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* FORMULARIOS MÁS COMPACTOS Y ETIQUETA FLOTANTE MEJORADA */
.form-floating input, .form-floating select, .form-floating .bootstrap-select, .form-floating textarea {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
}

.form-floating label {
    opacity: 0.65;
}

.form-control:focus, .form-select:hover {
    border-color: #6366F1 !important;
}

.form-control:hover, .form-select:hover {
    border-color: #343a40 !important;
    transition: border-color 0.2s ease;
}

/*.form-control:focus, .form-select:focus {*/
/*    border-color: #6366F1;*/
/*    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);*/
/*}*/

/* ----- Autofill ----- */
:is(input.form-control, textarea.form-control, select.form-select):is(
  :-webkit-autofill,
  :-webkit-autofill:hover,
  :-webkit-autofill:focus,
  :-webkit-autofill:active,
  :autofill,
  :-moz-autofill,
  :-moz-autofill:hover,
  :-moz-autofill:focus
) {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 0s, color 0s, -webkit-text-fill-color 0s;
    color: #212529 !important;
    caret-color: currentColor !important;
}

/* ----- BOOTSTRAP SELECT ----- */

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
    display: flex;
}

.bootstrap-select > .dropdown-menu {
    transform: translate(0, 55px) !important;
}

/* Fix para dropdowns de bootstrap-select con data-container="body" dentro de modales */
body > .bootstrap-select.dropdown {
    z-index: 1060 !important;
}

body > .bootstrap-select.dropdown > .dropdown-menu {
    z-index: 1060 !important;
}

.bootstrap-select > .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0;
    color: #000 !important;
}

.bootstrap-select > button.btn.dropdown-toggle.bs-placeholder.btn-light {
    background: transparent;
    border: none;
}

.bootstrap-select > .dropdown-toggle::after {
    content: none;
}

.bootstrap-select.disabled {
    opacity: .65;
}

/* Habilita el click en la flecha nativa de los bootstrap-select. Solo para el wrapper de bootstrap-select que hereda .form-select */
.form-floating .bootstrap-select.form-select,
.bootstrap-select.form-select {
    padding-right: 0 !important; /* quita el hueco reservado a la flecha nativa */
}


.form-select.is-invalid:not([multiple]):not([size]) {
    padding-right: 0;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #6366F1;
    color: #ffffff;
}

.dropdown-item:hover:not(.active):not(:active), .dropdown-item:focus:not(.active):not(:active) {
    background-color: #F9FAFB;
    color: #222222;
}

/* Estilos específicos para Bootstrap Select */
.bootstrap-select .dropdown-toggle .filter-option {
    color: #222222 !important;
    font-weight: 400;
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: #222222 !important;
}

.bootstrap-select .dropdown-toggle.bs-placeholder .filter-option {
    color: #6B7280 !important;
    opacity: .65;
}

.bootstrap-select .dropdown-toggle.bs-placeholder .filter-option-inner-inner {
    color: #6B7280 !important;
}

.bootstrap-select .no-results {
    background: transparent;
}

/* Estilos para selects normales */
.form-select option {
    color: #222222;
    background: #ffffff;
}

.form-select option:checked {
    background: #6366F1;
    color: #ffffff;
}

.form-select option:hover {
    background: #F9FAFB;
    color: #222222;
}

/* Estilos para componente-select */
.componente-select {
    color: #222222 !important;
}

.componente-select option {
    color: #222222;
    background: #ffffff;
}

.componente-select option:checked {
    background: #6366F1;
    color: #ffffff;
}

/* ----- BOTONES DE FILTROS ----- */
#btnBuscarFiltros, #btnLimpiarFiltros {
    min-width: 80px;
    margin: 0 4px;
    padding: 4px 10px !important;
    font-size: 13px !important;
    height: 32px !important;
    border-radius: 5px !important;
}


/* ===== Bootstrap Datepicker – Light (mismo comportamiento que dark, acento morado) ===== */

/* Contenedor */
html:not([data-bs-theme="dark"]) .datepicker.datepicker-dropdown {
    background: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    border-radius: .5rem;
}

/* Tabla base */
html:not([data-bs-theme="dark"]) .datepicker .table-condensed {
    background: transparent;
}

html:not([data-bs-theme="dark"]) .datepicker th,
html:not([data-bs-theme="dark"]) .datepicker td {
    color: #212529;
    border: 0 !important;
}

/* Cabecera (mes/año y flechas) */
html:not([data-bs-theme="dark"]) .datepicker .datepicker-switch,
html:not([data-bs-theme="dark"]) .datepicker .prev,
html:not([data-bs-theme="dark"]) .datepicker .next {
    cursor: pointer;
    border-radius: .375rem;
}

html:not([data-bs-theme="dark"]) .datepicker .datepicker-switch:hover,
html:not([data-bs-theme="dark"]) .datepicker .prev:hover,
html:not([data-bs-theme="dark"]) .datepicker .next:hover {
    background-color: #f1f3f5;
}

/* Días de la semana */
html:not([data-bs-theme="dark"]) .datepicker th.dow {
    color: #6c757d;
    font-weight: 600;
}

/* Celdas día */
html:not([data-bs-theme="dark"]) .datepicker td.day {
    border-radius: .375rem;
}

html:not([data-bs-theme="dark"]) .datepicker td.day:hover:not(.active):not(.disabled) {
    background-color: #f1f3f5 !important;
    color: #212529 !important;
}

/* Días de otros meses */
html:not([data-bs-theme="dark"]) .datepicker td.old,
html:not([data-bs-theme="dark"]) .datepicker td.new {
    color: #6c757d;
}

/* Deshabilitados */
html:not([data-bs-theme="dark"]) .datepicker td.disabled,
html:not([data-bs-theme="dark"]) .datepicker span.disabled {
    color: #adb5bd;
    opacity: .65;
    cursor: not-allowed;
}

/* Día activo/seleccionado (sin degradados del plugin) */
html:not([data-bs-theme="dark"]) .datepicker table tr td.active,
html:not([data-bs-theme="dark"]) .datepicker table tr td.active:hover,
html:not([data-bs-theme="dark"]) .datepicker table tr td.active.disabled,
html:not([data-bs-theme="dark"]) .datepicker table tr td.active.disabled:hover,
html:not([data-bs-theme="dark"]) .datepicker table tr td.selected,
html:not([data-bs-theme="dark"]) .datepicker table tr td.selected:hover {
    background-color: var(--dm-brand) !important;
    background-image: none !important;
    border-color: var(--dm-brand) !important;
    color: #fff !important;
    text-shadow: none !important;
    border-radius: .375rem;
}

/* Focus (teclado) */
html:not([data-bs-theme="dark"]) .datepicker td.focused,
html:not([data-bs-theme="dark"]) .datepicker span.focused {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, .35);
    border-radius: .375rem;
}

/* Meses/Años/Décadas/Century (los <span>) */
html:not([data-bs-theme="dark"]) .datepicker .month,
html:not([data-bs-theme="dark"]) .datepicker .year,
html:not([data-bs-theme="dark"]) .datepicker .decade,
html:not([data-bs-theme="dark"]) .datepicker .century {
    color: #212529;
    border-radius: .375rem;
}

/* Hover en spans, pero NO cuando están activos */
html:not([data-bs-theme="dark"]) .datepicker table tr td span:hover:not(.disabled):not(.active),
html:not([data-bs-theme="dark"]) .datepicker table tr td span.focused:not(.disabled):not(.active) {
    background-color: #f1f3f5 !important;
    color: #212529 !important;
    background-image: none !important;
}

/* Activo en spans (morado) */
html:not([data-bs-theme="dark"]) .datepicker table tr td span.active,
html:not([data-bs-theme="dark"]) .datepicker table tr td span.active:hover {
    background-color: var(--dm-brand) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: var(--dm-brand) !important;
    text-shadow: none !important;
}

/* Active + Focused simultáneo en spans (mismo morado) */
html:not([data-bs-theme="dark"]) .datepicker table tr td span.month.active.focused,
html:not([data-bs-theme="dark"]) .datepicker table tr td span.year.active.focused,
html:not([data-bs-theme="dark"]) .datepicker table tr td span.decade.active.focused,
html:not([data-bs-theme="dark"]) .datepicker table tr td span.century.active.focused {
    background-color: var(--dm-brand) !important;
    color: #fff !important;
    background-image: none !important;
    border-color: var(--dm-brand) !important;
    text-shadow: none !important;
}

/* “Hoy” sin amarillo (aro morado) */
html:not([data-bs-theme="dark"]) .datepicker table tr td.today,
html:not([data-bs-theme="dark"]) .datepicker table tr td.today:hover,
html:not([data-bs-theme="dark"]) .datepicker table tr td.today.disabled,
html:not([data-bs-theme="dark"]) .datepicker table tr td.today.disabled:hover {
    background-color: transparent !important;
    background-image: none !important;
    color: #212529 !important;
    border-color: transparent !important;
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, .6) !important;
    border-radius: .375rem;
}

/* “Hoy” cuando además está activo */
html:not([data-bs-theme="dark"]) .datepicker table tr td.active.today,
html:not([data-bs-theme="dark"]) .datepicker table tr td.active.today:hover {
    background-color: var(--dm-brand) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Footer (Hoy / Borrar) */
html:not([data-bs-theme="dark"]) .datepicker tfoot th.today,
html:not([data-bs-theme="dark"]) .datepicker tfoot th.clear {
    color: #212529;
    border-radius: .375rem;
    cursor: pointer;
}

html:not([data-bs-theme="dark"]) .datepicker tfoot th.today:hover,
html:not([data-bs-theme="dark"]) .datepicker tfoot th.clear:hover {
    background-color: #f1f3f5 !important;
    color: #212529 !important;
}

/* ----- TYPEAHEAD ----- */

.typeahead {
    background-color: #fff;
}

.tt-hint {
    color: #9CA3AF;
    background-color: #fff !important;
}

.tt-menu {
    width: 100%;
    margin: 8px 0;
    padding: 8px 0;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.tt-suggestion {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.2s ease;
}

.tt-suggestion:hover {
    cursor: pointer;
    color: #222222;
    background-color: #F9FAFB;
}

.tt-suggestion.tt-cursor {
    color: #222222;
    background-color: #F9FAFB;
}

.tt-suggestion p {
    margin: 0;
}

span.twitter-typeahead {
    display: block !important;
}

/* ----- TABS ----- */

.custom-tabs .nav-tabs {
    border-bottom: 1px solid #E5E7EB;
    background: #ffffff;
    /*border-radius: 8px 8px 0 0;*/
    gap: .5rem; /* aire entre tabs */
}

.custom-tabs .nav-item {
    flex: 1;
}

.custom-tabs .nav-link {
    width: 100%;
    text-align: center;
    text-transform: none;
    color: #6B7280;
    border-radius: .5rem; /* pastilla */
    padding: .5rem 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 500;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    margin-bottom: .25rem; /* separa de la línea base */
}

.custom-tabs .nav-link.active {
    background: #6366F1;
    border-color: #6366F1;
    color: #ffffff;
    /*border-radius: 8px 8px 0 0;*/
}

.nav-tabs .nav-link:focus, .custom-tabs .nav-link.active:focus {
    border-color: #6366F1;
}

.custom-tabs .nav-link:hover:not(.active) {
    /*border-radius: 8px 8px 0 0;*/
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #374151;
}

/* ----- COLORES ----- */

.bg-custom {
    background-color: #6366F1;
}

.bg-whitesmoke {
    background-color: #F9FAFB;
}

.color-footer {
    color: #6B7280;
}

a.color-footer:hover {
    color: #374151;
}

/* ----- FOOTER MODERNO ----- */
.footer {
    background-color: #F9FAFB !important;
    border-top: 1px solid #E5E7EB !important;
}

.footer h6 {
    color: #374151 !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer p {
    color: #6B7280 !important;
    line-height: 1.6;
}

.footer a {
    color: #6366F1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #4F46E5 !important;
}

/* ----- BOTONES ----- */

/* Elevación global */
.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) !important;
}

/* EXCEPCIÓN: no elevar los toggles que son "selects" de bootstrap-select */
.bootstrap-select > .dropdown-toggle:hover,
.bootstrap-select > .dropdown-toggle:active,
.form-select.bootstrap-select > .dropdown-toggle:hover,
.form-select.bootstrap-select > .dropdown-toggle:active {
    transform: none !important;
}


.btn-custom {
    color: #ffffff;
    background-color: #6366F1;
    border-color: #6366F1;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    line-height: 1.4;
}

.btn-custom.btn:first-child:active {
    color: #ffffff;
    background-color: #4F46E5;
    border-color: #4F46E5;
}

.btn-custom:hover {
    color: #ffffff;
    background-color: #4F46E5;
    border-color: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-check:focus + .btn-custom, .btn-custom:focus {
    color: #ffffff;
    background-color: #4F46E5;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-check:checked + .btn-custom, .btn-check:active + .btn-custom, .btn-custom:active, .btn-custom.active, .show > .btn-custom.dropdown-toggle, .btn-custom.show {
    color: #ffffff !important;
    background-color: #4F46E5 !important;
    border-color: #4F46E5 !important;
}

.btn-check:checked + .btn-custom:focus, .btn-check:active + .btn-custom:focus, .btn-custom:active:focus, .btn-custom.active:focus, .show > .btn-custom.dropdown-toggle:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-label {
    position: relative;
    left: -12px;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px 0 0 4px;
}

.btn-labeled {
    padding-top: 0;
    padding-bottom: 0;
}

/* Estilos para botones secundarios */
.btn-secondary {
    background-color: #6B7280;
    border-color: #6B7280;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-secondary:hover {
    background-color: #4B5563;
    border-color: #4B5563;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.25);
}

/* Estilos para botones primarios */
.btn-primary {
    color: #000000 !important;
}

.btn-primary:hover {
    color: #000000 !important;
}

/* Badges con fondo de color: texto negro en modo claro */
.badge.bg-danger,
.badge.bg-success,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-info {
    color: #000000 !important;
}

/* Estilos para botones de éxito */
.btn-success {
    background-color: #10B981;
    border-color: #10B981;
    color: #000000;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* Estilos para botones de peligro */
.btn-danger {
    background-color: #EF4444;
    border-color: #EF4444;
    color: #000000;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-danger:hover {
    background-color: #DC2626;
    border-color: #DC2626;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

/* Estilos para botones de información */
.btn-info {
    background-color: #06B6D4;
    border-color: #06B6D4;
    color: #000000;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-info:hover {
    background-color: #0891B2;
    border-color: #0891B2;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}

/* Estilos para botones de advertencia */
.btn-warning {
    background-color: #F59E0B;
    border-color: #F59E0B;
    color: #000000;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-warning:hover {
    background-color: #D97706;
    border-color: #D97706;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* Estilos para botones pequeños */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
}

/* Estilos para botones grandes */
.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
}

/* Estilos para botones outline */
.btn-outline-primary {
    color: #6366F1;
    border-color: #6366F1;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #6366F1;
    border-color: #6366F1;
}

.btn-outline-secondary {
    color: #6B7280;
    border-color: #6B7280;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #6B7280;
    border-color: #6B7280;
}

.btn-outline-success {
    color: #10B981;
    border-color: #10B981;
    background-color: transparent;
}

.btn-outline-success:hover {
    color: #ffffff;
    background-color: #10B981;
    border-color: #10B981;
}

.btn-outline-danger {
    color: #EF4444;
    border-color: #EF4444;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #ffffff;
    background-color: #EF4444;
    border-color: #EF4444;
}

.btn-outline-warning {
    color: #F59E0B;
    border-color: #F59E0B;
    background-color: transparent;
}

.btn-outline-warning:hover {
    color: #ffffff;
    background-color: #F59E0B;
    border-color: #F59E0B;
}

.btn-outline-info {
    color: #06B6D4;
    border-color: #06B6D4;
    background-color: transparent;
}

.btn-outline-info:hover {
    color: #ffffff;
    background-color: #06B6D4;
    border-color: #06B6D4;
}

.spanMostrarPass {
    height: -webkit-fill-available;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* ----- MODALES ----- */
.modal-header {
    background-color: #6366F1;
    color: white;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px 12px 0 0;
    padding: 24px;
}

.modal-body, .modal-footer {
    background-color: #ffffff;
    padding: 24px;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.modal-footer {
    border-top: 1px solid #E5E7EB;
    border-radius: 0 0 12px 12px;
}

/* ----- ACCORDION ----- */
#panelCollapseFiltros {
    box-shadow: 0 0.150rem 0 0 rgba(0, 0, 0, 0.075) !important;
    border-radius: var(--bs-border-radius) !important;
}

.accordion-button:not(.collapsed) {
    color: #222222;
    background-color: #F9FAFB;
    box-shadow: none;
    border: 1px solid #E5E7EB;
}

.accordion-button:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 8px;
}

.accordion-button:not(.collapsed):focus:after, .accordion-button:not(.collapsed):after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366F1'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.accordion-button {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    padding: 16px 20px;
}

.accordion-button:hover {
    background-color: #F9FAFB;
}

/* ----- CARDS ----- */

.card-header {
    background-color: #F9FAFB;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
    padding: 20px 24px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 24px;
}

/* ----- LISTAS ----- */

.list-group-item {
    border: 1px solid #E5E7EB;
    background-color: #ffffff;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #F9FAFB;
}

.list-group-item.active {
    background-color: #6366F1;
    border-color: #6366F1;
    color: #ffffff;
}

/* ----- LOGIN ----- */

.form-signin {
    max-width: 500px;
    padding: 48px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
}

/* ----- FILES ----- */

.files input {
    outline: 2px dashed #6366F1;
    outline-offset: -10px;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
    padding: 120px 0 85px 35%;
    text-align: center !important;
    margin: 0;
    width: 100% !important;
    background-color: #F9FAFB;
    border-radius: 12px;
}

.files input:focus {
    outline: 2px dashed #6366F1;
    outline-offset: -10px;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
    border: 1px solid #6366F1;
    background-color: #F0F9FF;
}

.files {
    position: relative
}

.files:after {
    pointer-events: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 50px;
    right: 0;
    height: 56px;
    content: "";
    display: block;
    margin: 0 auto;
    background-size: 100%;
    background-repeat: no-repeat;
}

.files:before {
    position: absolute;
    bottom: 10px;
    left: 0;
    pointer-events: none;
    width: 100%;
    right: 0;
    height: 57px;
    content: " O arrastra el fichero aquí. ";
    display: block;
    margin: 0 auto;
    color: #6366F1;
    font-weight: 600;
    text-align: center;
}

/* ----- ALTOS Y ANCHOS ----- */
.h-100px {
    height: 100px;
}

.h-200px {
    height: 200px;
}

.h-400px {
    height: 400px;
}

.h-510px {
    height: 510px;
}

.maxh-300px {
    max-height: 300px;
}

.maxh-510px {
    max-height: 510px;
}

.minh-390px {
    min-height: 390px;
}

.minh-510px {
    min-height: 510px;
}

/* ----- ALTOS Y ANCHOS ----- */

/* ----- TAMAÑOS ----- */

.w-16 {
    width: 16.67% !important
}

.w-33 {
    width: 33.34% !important
}

.w-33 {
    width: 33.34% !important
}

.w-66 {
    width: 66.68% !important
}

.w-83 {
    width: 83.35% !important
}

/* ----- TAMAÑOS ----- */
.fs-7 {
    font-size: 0.85rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

/* LIBRERÍA SUMMERNOTE */

.note-modal-footer {
    height: auto !important;
    text-align: right !important;
}

.note-modal-footer .note-btn {
    float: none !important;
}

/* LIBRERÍA SUMMERNOTE */

/* ----- VARIOS ----- */

.cursor-pointer {
    cursor: pointer;
}

/* Estilos para invalid feedback */
.invalid-feedback {
    color: #DC2626;
    font-size: 14px;
    margin-top: 4px;
    font-weight: 500;
}

.is-invalid {
    border-color: #DC2626 !important;
}

.is-invalid:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Estilos para tooltips y popovers */
.tooltip {
    font-size: 14px;
}

.popover {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Estilos para badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 4px 8px;
}

.badge-primary {
    background-color: #6366F1;
    color: #ffffff;
}

.badge-secondary {
    background-color: #6B7280;
    color: #ffffff;
}

.badge-success {
    background-color: #10B981;
    color: #ffffff;
}

.badge-danger {
    background-color: #EF4444;
    color: #ffffff;
}

.badge-warning {
    background-color: #F59E0B;
    color: #ffffff;
}

.badge-info {
    background-color: #06B6D4;
    color: #ffffff;
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-weight: 500;
}

.alert-primary {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.alert-secondary {
    background-color: #F9FAFB;
    color: #374151;
    border-left: 4px solid #6B7280;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background-color: #FFFBEB;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background-color: #ECFEFF;
    color: #0E7490;
    border-left: 4px solid #06B6D4;
}

/* Estilos para breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9CA3AF;
    content: "›";
}

.breadcrumb-item.active {
    color: #6B7280;
}


/* Estilos para checkboxes personalizados */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #6366F1;
    border-color: #6366F1;
}

.custom-switch .custom-control-label::before {
    border-radius: 20px;
    background-color: #E5E7EB;
    border-color: #E5E7EB;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #6366F1;
    border-color: #6366F1;
}

/* Estilos para tooltips de Bootstrap */
.tooltip-inner {
    background-color: #374151;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 12px;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #374151;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #374151;
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #374151;
}

.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #374151;
}


/* ===== Command Palette (light) ===== */

#cmdkModal .modal-dialog {
    max-width: 720px;
}

#cmdkModal .modal-body {
    border-radius: 12px;
    /*padding: 16px;*/
}

#cmdkInput.form-control.form-control-lg {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: #111827;
}

#cmdkInput:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

#cmdkList.list-group {
    border-radius: 10px;
    overflow: hidden;
}

#cmdkList .list-group-item {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: 10px 12px;
    border-color: #F3F4F6;
}

#cmdkList .list-group-item + .list-group-item {
    border-top: 1px solid #F3F4F6;
}

#cmdkList .list-group-item.active {
    background: #EEF2FF;
    color: #111827;
    border-color: #C7D2FE;
}

#cmdkList .list-group-item.cmdk-group-header {
    background: #F9FAFB;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
}

.cmdk-badge {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.cmdk-badge.tipo-Navegación {
    background: #EFF6FF;
    color: #1D4ED8;
}

.cmdk-badge.tipo-Tabla {
    background: #ECFDF5;
    color: #065F46;
}

.cmdk-badge.tipo-Filtros {
    background: #FFFBEB;
    color: #92400E;
}

.cmdk-badge.tipo-Preferencias {
    background: #F5F3FF;
    color: #5B21B6;
}

.cmdk-icon {
    width: 18px;
    height: 18px;
    color: #6B7280;
}

#cmdkList .cmdk-label mark {
    background: rgba(99, 102, 241, .16);
    color: inherit;
    border-radius: .2em;
    padding: 0 .1em;
}

#cmdkModal .kbd-hints kbd {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: 600;
    color: #111827;
}

.cmdk-pin {
    color: #F59E0B;
    margin-left: 4px;
}

#cmdkList [role="option"].list-group-item:not(.active):hover {
    background: #F9FAFB;
}

#cmdkList .cmdk-group-header:hover {
    background: inherit;
}


/* ----- VARIOS ----- */
